WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This feature is best suited to tablet/desktop.

From https://www.google.com/design/spec/components/menus.html

Issue 2:
For some embeddings (macOS, Windows, Linux, ChromeOS, Fuschia), an application-level menu bar widget is necessary. It should be able to display keyboard accelerators, menu item separators, and have cascading menus.

The design doc is here: https://flutter.dev/go/cascading-menus

The draft Framework PR is here: #109179

The draft Engine PR is here: flutter/engine#31124

This PR is part of the overall effort to support Material 3 - #91605

The current burndown list for implementing the Material menu bar:

Basic prototype, menus can be defined, open and close.

Design doc update

Convert overlay usage into regular Stack

Figure out how to add all menus offstage initially to allow activator registration.

Hover support

Activator support

Keyboard navigation support

RTL support

Visual Density support

Platform system menu plugin support for macOS

Platform default menu item support (basic)

Screen placement and scrolling on small windows.

#127617

unit tests x1000

API docs update

Final formatting pass

Add examples and example tests

Connect activators and keyboard support with Shortcuts and Actions?
Issue 1:
At the moment SingleBucketAggregator extends BucketAggregator and MultiBucketAggregation is a separate interface. This means that single bucket Aggregations are different from multi bucket aggregations which can lead to problems when traversing the aggregation response. The reason for this is that single bucket aggregations don't render the same way as multi-bucket ones and so while parsing a response you need to work out what type of aggregation you are looking at before you know how to parse it.

If would be better if SingleBucketAggregator was a multi-bucket aggregator which just happened to only have a single bucket. In the response there would still be a 'buckets' field but it would only contain a single entry for single-bucket aggregations. This would mean that single and multi bucket aggregation could be treated the same both by users of the REST API and users of the JAVA API.

Issue 2:
SingleBucketAggregations (like filter aggregation) have no method getBuckets() and also the json response contains no buckets array. This saves some space but also makes it harder to traverse the aggregation tree because when looking at the result one always has to know if the aggregation that produced the current level was a SingleBucketAggregation or a MultiBucketAggregation (like terms agg).

Example for json:

Request with top level multi bucket agg:

POST testidx/_search?size=0
{
"aggs": {
"terms": {
"terms": {
"field": "label",
"size": 10
},
"aggs": {
"histogram": {
"histogram": {
"field": "num",
"interval": 1
}
}
}
}
}
}

Request with top level single bucket agg:

POST testidx/_search?size=0
{
"aggs": {
"terms": {
"filter": {
"term": {
"label": "label_a"
}
},
"aggs": {
"histogram": {
"histogram": {
"field": "num",
"interval": 1
}
}
}
}
}
}

multi bucket yields:

"aggregations": {
"terms": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "label_a",
"doc_count": 3,
"histogram": {
"buckets": [
{
"key": 1,
"doc_count": 1
},
...

single bucket yields:

"aggregations": {
"terms": {
"doc_count": 3,
"histogram": {
"buckets": [
{
"key": 1,
"doc_count": 1
},
...

although the two requests have the same level of "nestedness". If I was to post process the result I would have to change whichever application is consuming it when I change the top level aggregation from single to multibucket or the other way round.

The following would be more convenient for the second request:

"aggregations": {
"terms": {
"doc_count": 3,
"buckets": [
{
"key": "some_key_that_makes_sense",
"histogram": {
"buckets": [
{
"key": 1,
"doc_count": 1
},
...

This also affects the coming soon getProperty method for aggregations which is currently implemented to be consistent with the different behavior of single and multi buckets: #8421 (comment)
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

This challenge will allow you to pass even if your code for which section an image is forgotten. (The correct way to say this is passing me so I'll add some code).

Ex:

$($('.slot')[0]).html('<img src = "' + images[slotOne-1] + '">');
$($('.slot')[0]).html('<img src = "' + images[slotTwo-1] + '">');
$($('.slot')[0]).html('<img src = "' + images[slotThree-1] + '">');

**Passes and allows you to go to the next challenge.

$($('.slot')[0]).html('<img src = "' + images[slotOne-1] + '">');
$($('.slot')[1]).html('<img src = "' + images[slotTwo-1] + '">');
$($('.slot')[2]).html('<img src = "' + images[slotThree-1] + '">');

** But this is correct.

I understand the [#] isn't the focus here, but I wanted to say something just to avoid developing bad practices. Also I believe the previous Waypoint may have this issue as well.

I sincerely appreciate all of the support FCC. Your application is pure awesome. 👍

Issue 2:
The tests are not covering the task fully. One can pass it by updating only slot 0 three times:
Issue 1:
The page isn't recognizing that I have specified a border width and style. The code is rendered properly in the "Cat Photo App", but I can't advance to the next challenge. The code in question:

.thick-green-border {

border-color: green;

border-style: solid;

border-width: 10px;

}

Issue 2:
The following HTML is not working for this challenge:

<style>
.smaller-image {
width: 100px;
}

.thick-green-border{
border-width: 10px;
border-color: green;
border-style: solid;
}
</style>

I'm not sure what I'm doing wrong?
Issue 1:
For audio / scalar time series / 1d signals of shapes T or BxT, one currently has to unsqueeze at least to 3d tensor and then squeeze back.

With PyTorch now used for everything and not just imaages, easy support for 1d signals would be great!

Issue 2:
Currently, torch.nn.functional.interpolate has dedicated implementation for 1d, 2d and 3d data, as well as for nearest, bilinear and bicubic interpolation. The set of different kernels that are dispatched can be seen here.

Those implementation are all very similar one to the other, and there is a lot of code duplication in there.

Compare for example nearest with bilinear.

I believe it is possible to refactor the underlying implementation so that we can have a single C++ / CUDA codepath, with minimal code duplication.

This could be achieved in two independent steps (that could be done at the same time):

factor out the different kernel computations, so that we have a generic filter that is used to compute the interpolation, plus the size of the filter as a struct. For an example, see how Pillow implements it, and then the interpolation coefficients can be generically computed as in here.

make the interpolate kernel separable (it is already separable in most cases). This means that we can have the user specify the dimensions he wants to interpolate as a list, and in the C++/CUDA code we have a loop over the dimensions. Something like F.interpolate(image, dim=[-2, -1]) for spatial interpolation, or F.interpolate(volume, dim=[-3, -2, -1]) for volumetric data. We can have reasonable defaults if dim is not specified (that depends on the shape of the input), to keep backwards compatibility.

The first point will allow us to fuse the nearest / bilinear / bicubic interpolation modes in a single file, while the second point will fuse temporal / spatial and volumetric into the same function.
Issue 1:
Electron version: 1.4.0

Operating system: OS X 10.11.6

Hi Electron team,

Awesome project! Discovered this the other day and it's on our way to production!

Chrome 53 has a flag Desktop Share with tab source (chrome://flags/#tab-for-desktop-share) that enables audio recording on the tab level. Is this possible on Electron?

I have tried this:

var screenSource = null;
desktopCapturer.getSources({
types: ['window', 'screen']
}, function(err, sources) {
for (let source of sources) {
if (source.name === 'Electron Dashboard') {
console.log('Found dashboard:', source);
screenSource = source;
}
}
});

and then grabbing the tab with:

getUserMedia({
audio: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: screenSource.id
},
optional: []
},
video: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: screenSource.id,
maxWidth: window.screen.width,
maxHeight: window.screen.height
},
optional: []
}
},
function(screenStream) {
console.log('getUserMedia on screen success', screenStream);
// attach screenStream to local video element
},
function(err) {
console.error('getUserMedia on tab video error:', err);
});

The video is captured splendidly, but audio is not. This audio recording works using my old setup, with the flag enabled and Chrome extensions. I used chrome.desktopCapture.chooseDesktopMedia and passed in the captured stream id to the above getUserMedia function as the chromeMediaSourceId.

Is there something I'm doing wrong? Thanks again! Let me know if you need anything else from me.

Issue 2:
Electron version: 0.37.0

Operating system: All

I've been trying for weeks now to figure this out, I need to somehow capture the audio output from my electron application. But the desktopCapturer API appears to exclude that exact use case 😢

Is there an alternative way of performing this capture WITHOUT capturing the entire computers audio through the "screen" capturer?

https://github.com/atom/electron/blob/master/docs/api/desktop-capturer.md

Also open to any JS methods of capturing a stream from an Audio element
Issue 1:
This text in the spec:

---
As a special case, if the return parameters of a function or method g are equal in
number and individually assignable to the parameters of another function or method f,
then the call f(g(parameters_of_g)) will invoke f after binding the return values of g
to the parameters of f in order. The call of f must contain no parameters other than the
call of g. If f has a final ... parameter, it is assigned the return values of g that
remain after assignment of regular parameters.

---

doesn't preclude the following program:

package main
func f() {}
func g() {}
func main() {
f(g())
}

though the tools reject it.

The text should be amended to restrict the special case to functions g with more than
one return parameter.

Issue 2:
go version go1.3beta2 +1de165698f51 Thu May 22 11:45:03 2014 -0400 darwin/amd64

The program is

package a
type S struct {
x interface{}
i int
}
func f() {
c := make(chan int)
a := [2]*int{}
for ; ; c <- *a[S{}.i] {
}
}

$ go build -race src.go
src.go:6: internal error: f autotmp_0001 (type S) recorded as live on entry
Issue 1:
Installation of scipy using zc.buildout fails, because numpy.distutils.core is not available during install:

$ ./bin/buildout
Unused options for buildout: 'unzip'.
Getting distribution for 'scipy'.
Traceback (most recent call last):
[…]
File "setup.py", line 230, in <module>
File "setup.py", line 218, in setup_package
ImportError: No module named numpy.distutils.core
An error occurred when trying to install scipy 0.13.3. Look above this message for any errors that were output by easy_install.
While:
Installing ipython.
Getting distribution for 'scipy'.
Error: Couldn't install: scipy 0.13.3

Issue 2:
See numpy/numpy#8762
Issue 1:
When trying to use jasmine and angular-scenario type definitions in same project, I get the following conflicts:

Duplicate identifier 'browser'.
Duplicate identifier 'element'.
The property 'toThrow' does not exist on value of type 'angularScenario.Expect'.
The property 'toNotEqual' does not exist on value of type 'angularScenario.Expect'.
Duplicate identifier 'xdescribe'.
Duplicate identifier 'it'.
Duplicate identifier 'xit'.
Duplicate identifier 'beforeEach'.
Duplicate identifier 'afterEach'.

I had to comment out these lines in angular-scenario.d.ts to kind of get it working. But I think I may have to remove that file completely:

//declare var describe: angularScenario.RunFunctionWithDescription;
declare var ddescribe: angularScenario.RunFunctionWithDescription;
//declare var xdescribe: angularScenario.RunFunctionWithDescription;
//declare var beforeEach: angularScenario.RunFunction;
//declare var afterEach: angularScenario.RunFunction;
//declare var it: angularScenario.RunFunctionWithDescription;
declare var iit: angularScenario.RunFunctionWithDescription;
//declare var xit: angularScenario.RunFunctionWithDescription;
declare var pause: angularScenario.PauseFunction;
declare var sleep: angularScenario.SleepFunction;
//declare function browser(): angularScenario.Browser;
declare function expect(expectation: angularScenario.Future): angularScenario.Expect;
declare var using: angularScenario.UsingFunction;
declare var binding: angularScenario.BindingFunction;
declare function input(ngModelBinding: string): angularScenario.Input;
declare function repeater(selector: string, repeaterDescription?: string): angularScenario.Repeater;
declare function select(ngModelBinding: string): angularScenario.Select;
//declare function element(selector: string, elementDescription?: string): angularScenario.Element;

Thanks!

Jay

Issue 2:
I'll try and add a section to the bottom of npm test script to show the error log for each file that failed.

Creating here to track and prevent duplication of effort.
Issue 1:
Description

Up until database interaction is introduced, the tutorial for FastAPI uses pydantic models for everything, such as this example in the sextion on Extra Models :

class UserOut(BaseModel):
username: str
email: EmailStr
full_name: str = None

class UserInDB(BaseModel):
username: str
hashed_password: str
email: EmailStr
full_name: str = None

This alows for the "database model" to have private data which will not be exposed through the API. Later, in the section on security, a similar trick is used, but this time using inheritance to stack the two models (which I find makes the return-casting used by some functions better encoded in the type system).

class User(BaseModel):
username: str
email: str = None
full_name: str = None
disabled: bool = None

class UserInDB(User):
hashed_password: str

def get_db_user() -> UserInDB:
return UserInDB(
username="johndoe", full_name="John Doe",
email="johndoe@example.com",
hashed_password="fakehashedsecret",
disabled=False
)

def get_user() -> User:
return get_db_user()

However, when proper databases are introduced, those Pydantic models are dropped in favor of a single SQLAlchemy ORM model, with no effort to bridge the two parts. And while one could see this as the SQLAlchemy models completely superseding the Pydantic models, the fullstack demo app appears to actually use both, so there appears to be value in attempting to use them together, something which the documentation doesn't seem to address.

So can/should Pydantic and SQLAlchemy models be used together? If they are, how is one meant to connect the two together and can this still be done while maintaining some kind of type hierarchy?

Issue 2:
Describe the bug

Getting duplicate headers on API methods with subdependencies requiring the same dependency with a Header argument.

To Reproduce

I've created an example repo to reproduce https://github.com/henriklindgren/fastapi-header-bug

Steps to reproduce the behavior:

Create an API-method which uses the same dependency, with a Header argument, in each of 2 paths of the dependency tree. Like this https://github.com/henriklindgren/fastapi-header-bug/blob/master/app/main.py

Visit generated OpenApi json and see duplicate header requirements for the method.

"parameters": [
{
"required": true,
"schema": {
"title": "Someheader",
"type": "string"
},
"name": "someheader",
"in": "header"
},
{
"required": true,
"schema": {
"title": "Someheader",
"type": "string"
},
"name": "someheader",
"in": "header"
}
]

Expected behavior

A single header requirement shown in the OpenApi definition.

Environment:

OS: Linux

FastAPI Version: 0.33.0

Python Version: 3.7.3
Issue 1:
$ cat test.rs
enum A { B = A::B as isize }

fn main() {
println!("{}", A::B as isize);
}
$ rustc test.rs

thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
$ rustc --version --verbose
rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
binary: rustc
commit-hash: 9854143cba679834bc4ef932858cd5303f015a0e
commit-date: 2015-04-02
build-date: 2015-04-02
host: x86_64-unknown-linux-gnu
release: 1.0.0-beta

Issue 2:
enum X { A = X::A as isize }

fn main() {}

thread 'rustc' has overflowed its stack
Illegal instruction (core dumped)
Issue 1:
VSCode Version: 1.0.0

OS Version: OS X El Capitan 10.11.4

No syntax highlighting for C#. Also unable to select C# from the languages menu.

Steps to Reproduce:

Open a .cs file in Visual Studio Code

Expected:

Syntax highlighting for C# supported.

Actual:

File is recognised as Plain Text

Try to set language to C#

Click on "Plain Text" on the bottom right

"Select Language Mode" dialog opens

Expected:

Entry listing C#

Actual:

C# language is missing from the list.

Issue 2:
VSCode Version: 1.0.0

OS Version: Ubuntu Mate 15.10

Steps to Reproduce:

Install VS Code Stable 1.0

Open a folder created by: yo aspnet --grunt

Open a .cs file eg Controllers/HomeController.cs

The text loads white (no syntax highlighting)

In the status bar at the bottom of the window is says "Plain text" which I'm assuming is the file type. When I click on this to change file type, the list does not include C#- but it does include many others eg C, C++, F#, CSS, etc.
Issue 1:
When viewing a navbar menu on my iPhone, the whole navbar menu is presented as a long list (by clicking on the icon in the top right) - which is expected as there isn't enough room to show it conventionally.

If the menu contains dropdown items, these expand when they are clicked on, and fold out as expected.

However, when clicking on the menu item within the dropdown, the dropdown collapses again, meaning the item isn't selectable.

Everything works fine in a desktop browser, but not on my iPhone or Android devices.

Is this a known issue? I can't imagine it isn't!

You can see the functionality I'm talking about on my website:

http://www.bigemrg.co.uk/ig-photography/home/home.html

Issue 2:
I have simple dropdown buttons we built with 2.04

links are A tags, proper quotes, href='#'

Used to work fine.

Upgraded today to 2.1 and the links in any dropdown button don't work. The dropdown menu opens, but clicking on a link closes the menu without any action. tested on Android 2.3 and iOS 5

Rolledback to 2.04 and everything works again. Anyone else has this issue?
Issue 1:
I'm on a Mac OSX. It's "easier" to scroll (using the two-finger scroll on my mac) when I put my mouse on the off-white space between the text editor and the description, rather than being able to scroll easily in the text editor alone.

I've noticed that in beta there are scroll bars (perhaps to help with this issue) but it replaces it with a new problem. Once you hit the bottom (or top) of the editor, the scrolling doesn't stop and the editor moves out of view. Or another way to put it is that the scrolling continues to scroll the whole page instead of stopping, and that makes you have to scroll the whole page now to get the editor back in view. The sam over-scrolling issue results from scrolling the instructions area. Also, I still find scrolling the editor to be stubborn (needing to "overscroll" to get movement).

Related to this...in order to avoid the scrolling annoyance, I tried just using the cursor + arrow keys on the keyboard in the text area. if you scroll down that way, the bottom of the text editor area doesn't even show up and then you have to use the scroll method to finish it anyway...which brings up the same problems as stated above.

Sorry if this is a duplicate. I couldn't find it.

Issue 2:
Challenge http://freecodecamp.com/challenges/zipline-build-a-simon-game has an issue. It contains the video of Tic-Tac-Toe, and it shows that it's completed, although I didn't.
Issue 1:
I've deactivated the soft tab option in the preferences.

Using tabulators does not align the text correctly. Looks like the offset is not correct.

I tried this example text:

asdasd asd
asdas asd

If someone could give me a hint, where in the code I could look for this Issue - I could try to fix it.

Issue 2:
Halp tickets and forum discussions:

support/e81a1594b92311e38c14f6435a91cb51

support/4a790a5cb67b11e38a43313fda33ea39

support/7bb3319eb34011e39a2834190894c452

support/7cc4f4b0b3f811e38f004d617216e1a5

http://discuss.atom.io/t/auto-aligned-indenting/3553

http://discuss.atom.io/t/tabulators-are-not-aligned-correctly/6182

http://discuss.atom.io/t/soft-tabs-should-follow-tab-stops/5154

I'm having an issue that is probably related in that hard tabs are not shown properly. They are all just rendered as the number of space characters I have set instead of just being as wide as the length to the next tab stop.

So when I'm using hard tabs and set tabs to be 8 characters wide I get this: http://puu.sh/7zWi1.png13 While I would expect it to look more like this: http://puu.sh/7zWil.png9

Actual:

Expected:
Issue 1:
If I navigate to an Angular SPA from another page (outside the SPA), I have to click back twice to return to where I was. When the page first loads a duplicate history entry is created. If I keep refreshing the SPA page, the history gets longer and longer...

Some initial investigation shows that:

The problem does not occur if the URL that serves the SPA does not match any defined routes.

The problem does not occur for applications that have no routing configuration.

Possibly related to #5025 ?

Using Angular 2.0.0-beta.0

Issue 2:
In case of an Observable array, in component template if we add *ngIf =" (list$ | async)?.length>0" it doesn't loops through the child *ngFor.

For example if I have below Observable list in the component:

list$: Observable<any[]>;

and below in template:

<div>
Length: {{(list$ | async)?.length}}
<div *ngIf="(list$ | async)?.length>0">
<ul>
<li *ngFor="let item of (list$ | async)">
{{item.name}}
</li>
</ul>
</div>
</div>

It seems that (list$ | async)?.length gives us the length of the list but the list isn't printed on the screen.

Whereas if I remove ngIf it start working:

<div>
Length: {{(list$ | async)?.length}}
<ul>
<li *ngFor="let item of (list$ | async)">
{{item.name}}
</li>
</ul>
</div>