WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Related to #5180

Pills with dropdowns and button dropdowns: On my iPhone the dropdown opens OK, but touching a menu item causes it to close - not link to another page.

Wanted to ask if this will be fixed in 2.1.2, otherwise I'll work around it? My testing in 2.1.2-wip shows there is still a problem.

Thanks a lot!

Lee

Issue 2:
Well, every author knows about she's baby that it is not perfect... But please let me identify few (high level) issues with current approach in Bootstrap, which could be quite easily fixed.

HTML is for semantic elements, and CSS is for visual formatting. It is well known for everyone... But when I was looking for best CSS framework over there, I found following answer on Stackoverflow:

http://stackoverflow.com/questions/203069/what-is-the-best-css-framework-and-are-they-worth-the-effort

Accepted answer has a good merits, so I was starting thinking how to solve it cleanly...

My conclusion was that using Less preprocessor it is quite easy. It's enough to have a whole framework as mixins and it is possible to make your own *.less, which will just import visual elements from bootstrap. Then no visual elements need to migrate into HTML.

E.g.

my.html

## my.less

.menu {

.nav;

.nav-pills;

.nav-stackable;

}

instead of writing in HTML:

Above solution partially works. But only partially. Currently problem is that Bootstrap is not defined properly to mix classes into user LESS files. In above example there is e.g. error importing .nav-stackable. It is because .nav-stackable is not defined in "nested way" but traditionally:

// Stacked tabs and pills

.nav-stacked > li {

float: none;

}

.nav-stacked > li > a {

margin-right: 0; // no need for the gap between nav items

}

Because of that you can not mixin this class into your own *.less stylesheet (there is no simple .nav-stackable class - just descendants).

If it works it will be possible to completely get rid of visual elements from HTML, as you can always use your own having semantic meaning in your *.less file. There will be still problems with other selectors basing on .nav-stackable (which will be effectively renamed after mixin into client code), but I think it is a way to go nevertheless. Changing even part of Bootstrap can much improve situation.

It is another positive consequence of point 1.

Currently I am trying to create Joomla template using Bootstrap. Unfortunately it is not possible to get it right. The problem is that Joomla uses it's own tags in HTML, which are expanded into other HTML.

E.g.

<jdoc:include type="modules" name="menu" />

is expanded into:

Home

test 1

and now I can not apply nav styles to ul list! It is generated by Joomla and I can not change it.

With Bootstrap defined as mixins it would be possible to make it in own *.less file as presented above:

.menu {

.nav;

.nav-pills;

.nav-stackable;

}

After these changes code in less files and in user HTML should be much cleaner and just better.
Issue 1:
I'm trying to implement a 3d fully convolutional network on my GPU. But for some reason I get a crash.

Environment info

Operating System: Ubuntu 14.04 LTS

GPU: GeForce Titan X .

Installed version of CUDA and cuDNN: 8.0 and 5

(attach the output of `ls -l /path/to/cuda/lib/libcud*

cud.filelist.txt )

I installed tensorflow version 0.11.0rc2, and it also reproduce in docker installation (gcr.io/tensorflow/tensorflow:latest-gpu)

Example code

The following code reproduce the problem:

import numpy as np
import tensorflow as tf

graph = tf.Graph()

with graph.as_default():
tf_dataset = tf.placeholder(tf.float32, shape=(1, 512, 512, 512, 1))
tf_label = tf.placeholder(tf.float32, shape=(1, 512, 512, 512, 1))

layer1_weights = tf.Variable(tf.truncated_normal((2, 2, 2, 1, 1), stddev=0.1))
layer1_bias = tf.Variable(tf.zeros(1))

conv = tf.nn.conv3d(tf_dataset, layer1_weights, (1, 1, 1, 1, 1), padding='SAME')
logits = tf.nn.relu(conv+layer1_bias)

loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits, tf_label))
optimizer = tf.train.GradientDescentOptimizer(0.05).minimize(loss)

with tf.Session(graph=graph) as session:
tf.initialize_all_variables().run()
batchData = np.random.rand(1, 512, 512, 512, 1).astype(np.float32)
batchLabels = (np.random.rand(1, 512, 512, 512, 1)>0.5).astype(np.float32)
feed_dict = {tf_dataset : batchData, tf_label : batchLabels}
_ = session.run((optimizer, ), feed_dict=feed_dict)

with the following output:

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so locally

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally

I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:

name: GeForce GTX TITAN X

major: 5 minor: 2 memoryClockRate (GHz) 1.076

pciBusID 0000:01:00.0

Total memory: 11.92GiB

Free memory: 11.68GiB

I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0

I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0: Y

I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:01:00.0)

F tensorflow/stream_executor/cuda/cuda_dnn.cc:2440] failed to enqueue convolution on stream: CUDNN_STATUS_NOT_SUPPORTED

Issue 2:
when my graph has the digamma function
Issue 1:
TypeScript Version:

1.8.30.0

Issue

We have a solution with a number of web projects. We recently made a new project which used a tsconfig.json file.

This affected other projects to believe they had a tsconfig.json file, overriding our project typescript settings for those projects.

"One or more tsconfig.json files detected. Project properties are disabled."

I've checked and the project file itself does not contain any reference to any tsconfig.json files nor does the project folder contain a tsconfig file.

Reproduce

Create two new Web Api projects in same solution.

Add a typescript file to each project and accept that they are converted into a typescript project.

Add a tsconfig.json to the second project.

Open properties for the first project and go to the TypeScript Build Tab. Observe "One or more tsconfig.json files detected. Project properties are disabled."

Code

// None

Expected behavior:

tsconfig.json detection to only work within project folder or files defined in the project file.

Actual behavior:

tsconfig,json detection aparently appears on a solution level or at least a project will detect tsconfig files that are in other projects folders.

Issue 2:
Allow a declarative way of adding members to an existing type's prototype

Example:

class Shape {
// ...
}

/* ...elsewhere...*/
extension class Shape { // Syntax??
getArea() { return /* ... */; }
}

var x = new Shape();
console.log(x.getArea()); // OK
Issue 1:
currently, there's no way to extend the Schema with statics, because it's being exported as a class. It would require converting to an interface then make the schema class implement the interface. The reason is that mongoose plugins usually apply either to statics member of the Schema, or using Schema.static('name', fn). Doing a

declare module 'mongoose' {
export class Schema {
static paginate(/*...*/);
}
}

gives a duplicate declaration error. applying the extra methods to the model doesn't seem to work.

export interface IModelTest extends mongoose.Document, ITimestamp, ITest { }

export var TestSchema = new mongoose.Schema({
/*...*/
});

TestSchema.plugin(require('../modules/pagination'));
/* does
module.exports = function(Schema) {
Schema.static('pagination', function(){
return this.paginate({hide: {$ne: true}}, 1, 10, { populate: 'user' });
});
}
*/

export var model = mongoose.model<IModelTest>('Test', TestSchema);

model.pagination; // error

Issue 2:
my IEntityModel definition:

interface IEntityModel extends mongoose.Document { }

my method fefinition:

create(item: T): Promise<IEnityModel>{ return this._model.create(item); }

How can I fix this problem?

here is error tips by VSCODE:

[ts] Type 'Promise' is not assignable to type 'Promise'.

Types of property 'then' are incompatible.

Type '(onFulFill: (result: IEntityModel) => void | U | Promise, onReject?: (err: any) => void | U...' is not assignable to type '{ (onfulfilled?: (value: IEntityModel) => TResult | PromiseLike, onrejected?: (...'.

Type 'Promise' is not assignable to type 'Promise'.

Property 'catch' is missing in type 'Promise'.

(method) mongoose.Model.create(doc: Object, fn?: (err: any, res: IEnityModel) => void): mongoose.Promise (+3 overloads)
Issue 1:
I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

all

Operating System:

ubuntu 19.04

Last Known Working Electron version:

none

Expected Behavior

The webview 'console-message' event doesn't have an 'args'

https://electronjs.org/docs/api/webview-tag#event-console-message

If you want to listen to what's happening in a webview you can only get the message.

For example if you do:

log.info("hello: ", "electron");

You can only get 'hello: ' not the "electron" string because there isn't an args.

This makes it very very difficult to debug what's happening in a webview.

Normally what I do is forward the console message from the child webview to the parent console so I can see what's happening there but I can't get 'args' which really breaks things.

I can fix my own code but I can't fix the code of others.

Issue 2:
Electron version: 1.4.2

electron-builder@5.35.0

electron-packager@7.7.0

electron-prebuilt@1.3.9

electron-rebuild@1.4.0

Operating system: Windows 10

Expected behavior

In Javascript you can chain messages together in the console.log function by adding multiple arguments. I would like to be able to capture this functionality in the webview 'console-message' listener.

console.log("testing",4,new Object());

Actual behavior

When re-directing messages to the webview like so...

webview.addEventListener('console-message', function(e) { console.log(e.message); });

The listener event message only gets the first argument sent from the console.log in the webview. From my example, it would only print "testing".

Things I have tried

I looked around inside the event object to see if the other arguments had been captured in another part of the object (outside of e.message), but I didn't see anything.

I tried sending, webview.addEventListener('console-message', function(a,b,c...) the extra arguments were undefined.

Note

I could use the + operator instead of sending multiple arguments, but the results would not be the same. For instance, sending an Object allows you to expand the Object.
Issue 1:
I am trying to use the bootstrap modal feature, but get a little bug on toggling the modal on.

This problem exists also on bootstrap 3 documentation page: http://getbootstrap.com/javascript/#modals

If you click on the button to open modal, you can see the background position changing by approximately 1 cm to the left.

Tested on latest Safari & Chrome.

Thanks in advance.

Issue 2:
When launching the modal component (http://getbootstrap.com/javascript/#modals) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.

You can observer the problem on the bootstrap page
Issue 1:
See build dashboard.

http://build.golang.org/log/b02e6aaa2fe497fadf898192d5425e7201569703

http://build.golang.org/log/350de48b4c0e31390ac02f7a1af96c22401a5628

http://build.golang.org/log/58502b25b5c6dc158954ba111690223cb5bc078f

http://build.golang.org/log/2bb42bac80498052be38e335298d05b43d370f1a

No errors at the package API, looks like timeoutTransmitter goroutine is not scheduled well, not sure the reason but seems like it needs further investigation.

process continue
Process 580 resuming
--- FAIL: TestWriteTimeoutFluctuation (1.89s)

timeout_test.go:706: Write took over 1s; expected 0.1s

FAIL

Process 580 exited with status = 1 (0x00000001)
go_darwin_arm_exec: timeout running tests

Issue 2:
by dsmid@clever.cz:

gofmt should have an option to enable putting left brace/parenthesis on the
next line.
I find this coding style more readable:

func (p *printer) writeNewlines(n int)
{
if n > 0
{
if n > maxNewlines
{
n = maxNewlines
}
p.write(newlines[0:n]);
}
}

I made a modification that adds option -nextline to gofmt. See attached patch.

Attachments:

gofmt_nextline.patch (2406 bytes)
Issue 1:
Environment

Windows build number: 10.0.18362
Windows Terminal version (if applicable): 0.4.2382.0

Any other software?

Steps to reproduce

Open Terminal.

Open new tab of powershell.

Run VS Code as a child process of the tab (just code . as long as no other VS Code windows are open).

Close tab with GUI child process.

Expected behavior

Tab is closed, child process is killed.

Actual behavior

WindowsTerminal.exe is not responding.

Issue 2:
Environment

Windows: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal: 0.2.1831.0
Remote OS: Raspbian GNU/Linux 9.8 (stretch) armv7l
Emacs 25.1.1 with rust-mode
Vim 8.0.707

Steps to reproduce

Open Windows Terminal

Run ssh to remote GNU/Linux

Download https://file.veer66.rocks/windows/re.rs

Run emacs

Install rust-mode to Emacs

In Emacs, open file re.rs

Expected behavior

Windows Terminal should display this code:

lazy_static! {
static ref DATE_RE: Regex = Regex::new(r"(\d{4})(\d{2})(\d{2})").unwrap();
static ref CHUNK_RE: Regex = Regex::new(r"[ก-์]+|\([^\)]+\)").unwrap();
static ref THAI_RE: Regex = Regex::new(r"[ก-์]+").unwrap();
}

like below:

Actual behavior

Line 3 was broken.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0 (Store Version)

Any other software? No

Steps to reproduce

Start Windows Terminal and try to invoke ColorTool in the Store Version of the app - not built from source.

Expected behavior

Invoke ColorTool correctly

Actual behavior

Not found.

Issue 2:
Environment

Microsoft Windows [版本 10.0.18362.356]
Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.5.2681.0

# Steps to reproduce

<!-- 1. input "dir" in the Terminal, copy some thing from the Terminal by select and right click mouse 2. Pause in the Wechat input windows-->

# Expected behavior

<!--Pause success -->

# Actual behavior

<!-- Pause none -->
Issue 1:
When using withStyles() hoc in typescript, I am getting the following error when trying to use the returned component:

Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<App> & Readonly<{ children?: ReactNode; }> & Reado...'.
Type '{}' is not assignable to type 'Readonly<WithStyles<"main">>'.
Property 'classes' is missing in type '{}'.

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

It appears this change to the type definition might be related to this issue.

Expected Behavior

Given the App component code below, I should be able to use the component <App /> without the type error as I did in 1.0.0-beta.10.

Current Behavior

Given the App component code below, trying to use <App /> results in the aforementioned error.

The Code

import * as React from 'react';
import { withStyles } from 'material-ui/styles';

const styles = {
main: {
marginTop: 48,
padding: 10,
},
foo: {
margin: 0,
},
};

interface Props {
message: string;
};

type ClassNames = { classes: { [className in keyof typeof styles]: string } };

class App extends React.Component<Props & ClassNames> {
render() {
const { classes, message } = this.props;
return (
<div className={classes.main}>
<div className={classes.foo} >
Hello World! {message}
</div>
</div>
);
}
}

export default withStyles(styles)(App);

Context

The code worked fine in 1.0.0-beta.10, when I upgraded to 1.0.0-beta.12 I got the type error.

In the code snippet provided I used the keyof typeof styles trick so that I would not need to define a list of class names twice (I strongly dislike the repetitiveness). I have also tried other variations:

type ClassNames = WithStyles<keyof typeof styles>;

and doing it the more common way (as seen in styles.spec.tsx):

type ComponentClassNames = 'main' | 'foo';
type ClassNames = WithStyles<ComponentClassNames>;

I still get the same error.

It seems the previous type definition would return a component whose props type would be StyledComponentProps which has an optional classes property. The new definition...

<P, C extends React.ComponentClass<P & StyledComponentProps<Names>>>(
component: C
): C;

...returns the same type C as the component, this means that passing ClassNames which is not marked optional propagates to the returned component. I see mentioned here the use of Partial<> which I think it an unsightly hack.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.12

React
15.6.1

browser
Chrome 61.0.3163.100

Issue 2:
Problem description

Cannot ad xs prop on Grid in Typescript (it works in 1.0.0-beta.6, according to the docs, the prop is still there: https://material-ui-1dab0.firebaseapp.com/api/grid/).

Steps to reproduce

import * as ui from 'material-ui';

function Grid() {
return (
<ui.Grid container>
<ui.Grid item xs={12} />
</ui.Grid>
);
}

Code above emits following error:

Property 'xs' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Grid> & Readonly<{ children?: ReactNode; }> & Read...'.

Versions

Material-UI: 1.0.0-beta.7

typescript: 2.5.2
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

7.1.1

What operating system are you using?

macOS

Operating System Version

macOS Big Sur 11.5

What arch are you using?

x64

Last Known Working Electron version

7.1.1

Expected Behavior

Macos app work well in webRTC call

Actual Behavior

AudioRtpReceiver::OnSetVolume: No audio channel exists.

Testcase Gist URL

No response

Additional Information

I am building one macos app has webview loads an domain. In that webview use webRTC to make a call. But whenever I make a call i receive this issue AudioRtpReceiver::OnSetVolume: No audio channel exists.

Issue 2:
Issue Details

Error in console when using WebRTC APIs.

Electron Version:

9.0.0-beta.24

Operating System:

Windows 10

Expected Behavior

No error in console

Actual Behavior

[304:0512/163130.458:ERROR:audio_rtp_receiver.cc(89)] AudioRtpReceiver::OnSetVolume: No audio channel exists.

Additional Information

How to reproduce and other details are here: #11112 (comment)
Issue 1:
When adding to a collection of form elements, the collection is empty after calling $form->createView() on the parent form.

I noticed this after switching from 2.2.1 to 2.3.0-RC1. It could be intended behavior but I haven't noticed any documentation indicating a change.

To duplicate the problem, I created a new symfony project via composer create-project for versions 2.2.1 and 2.3.0-RC1. I then added to the buildForm method in src/DemoBundle/Form/ContactForm.php:

$builder->add('foo', 'collection', array('type' => 'text'));

for ($i = 0; $i < 5; $i++) {
$builder->get('foo')->add("bar{$i}", 'text');
}

In 2.2.1, the form displayed when rendering the /demo/contact url contains the expected 5 text elements. In 2.3.0, the label for "contact_foo" element is displayed, but none of the sub-elements are displayed.

I believe the cause for this something that occurs during the $form->createView() call. If you var_dump($form->get('foo')->count()) before and after calling createView(), you'll get 5/0, respectively in 2.3.0-RC1, and 5/5 in 2.2.1. So far I've not been able to determine the exact cause of the problem. I am using php 5.4.9-4ubuntu2 with the built-in web-server for this test.

Issue 2:
I am running Symfony 2.7 and I have found that non unique form choice labels are being removed from my choices. I have a choice which shows labels in a parent/child format. e.g:

Header Nav

Page 1

Page 2

Page 3

Footer Nav

Page 1

Page 2

Page 4

In the above example, "Page 1" and "Page 2" are stripped from the choice because it isn't unique. However, the actual ID within the choice is different.

I have created an example of this from the Symfony Standard repo: https://github.com/trsteel88/symfony-standard/tree/unique-choices-bug

Here is the form:

$form = $this->createFormBuilder(array())
->add('choice', 'choice', array(
'mapped' => false,
'choices' => array(
1 => 'Header Nav',
2 => ' - Page 1',
3 => ' - Page 2',
4 => ' - Page 3',
5 => 'Footer Nav',
6 => ' - Page 1',
7 => ' - Page 2',
8 => ' - Page 4',
)
))
->getForm()
;

Here is the output:

<select id="form_choice" name="form[choice]">
<option value="1" >Header Nav</option>
<option value="6" > - Page 1</option>
<option value="7" > - Page 2</option>
<option value="4" > - Page 3</option>
<option value="5" >Footer Nav</option>
<option value="8" > - Page 4</option>
</select>

You will notice that the id for "2" and "3" is now missing, and it has been shifted up and is sitting in the wrong position.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1772 on 2011-03-15 by @rgommers, assigned to @pv.

The methods and attributes sections are wrong, because sphinx tries to import numpy.methodname instead of numpy.classname.methodname. See numpy.chararray for example.

This is probably a Sphinx bug (in autosummary/generate.py), but currently we duplicate/extend the autosummary class template in doc/source/reference/_templates. That class template should probably be completely removed anyway, this is fixed in Sphinx. I tried removing it, and the generated pdf got 20 pages longer while the number of warnings went from 1600 down to 800.

Issue 2:
Is this behavior expected?

>>> print type(np.uint32(0) + int(0))
<type 'numpy.int64'>
>>> print type(np.uint64(0) + int(0))
<type 'numpy.float64'>

The latter took me by surprise!
Issue 1:
I posted this issue on the ASP.NET Project:

aspnet/Mvc#4236 (comment)

When can we expect to be able to debug server side code on the Mac?

JP

Issue 2:
Not sure this is the right place to ask that.

Do you guys have any update on this issue?

https://code.visualstudio.com/Issues/Detail/18573

This is currently a blocker for my SharePoint plugin, as I can't open project folders (which are network folders on SharePoint sites)
Issue 1:
http://twitter.github.io/bootstrap/customize.html clicked on the 'Customize and Download button.

Its not responding.

please provide alternative link for customize download if possible.

Issue 2:
when the user try to download a custom version only without the responsive 1200, the navbar, and the hero unit, the download get an error >

"""

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{}

"""