WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm setting up what (I think) should be a straightforward image loading pipeline:

decoded_image = tf.image.decode_jpeg(value)
resized_image = tf.image.resize_image_with_crop_or_pad(decoded_image, width, height)

However, I get an error 'image' must be fully defined. - the image not being fully defined because the size of the JPEG is variable. When using the tf.image.resize_images() function, it seems that this constraint is not enforced. Is it necessary to have fixed image dimensions to use the resize_image_with_crop_or_pad() function? That would seem to somewhat defeat the point of an auto-crop/resizing function, no?

Issue 2:
Because tf.image.resize_image_with_crop_or_pad() requires its input to have a fully defined shape, it's not useful as part of an input pipeline since the size of images loaded will not be known in advance.

queue = tf.train.string_input_producer(filenames)
reader = tf.WholeFileReader()
_, contents = reader.read(queue)
image = tf.image.decode_jpeg(contents, channels=3)
cropped = tf.image.resize_image_with_crop_or_pad(image, 224, 224)

Ideally the above would work...
Issue 1:
This is with devel as of 61d283e

$ cat test.yaml
- name: derp
hosts: localhost
gather_facts: no
connection: local

tasks:
- name: derp
command: echo

$ ansible-playbook -i foo.com, test.yaml -vv

PLAY [derp] *******************************************************************
ERROR: host not found: localhost

$ ansible-playbook -i foo.com, test.yaml -vv --list-hosts

playbook: test.yaml

play #1 (derp): host count=1
localhost

When I did some quick digging it appears to be a problem somewhere in attempting to insert variable data. I will do some more digging, but wanted to get the simple reproducer logged here.

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

docker_container

ANSIBLE VERSION

ansible 2.3.0.0
config file = /home/marcel/Projects/foo/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]

ansible 2.4.3.0
config file = None
configured module search path = [u'/Users/marcel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/marcel/Projects/bugrq/ansibleDockerContainerHasChanged/lib/python2.7/site-packages/ansible
executable location = /Users/marcel/Projects/bugrq/ansibleDockerContainerHasChanged/bin/ansible
python version = 2.7.14 (default, Feb 15 2018, 23:05:14) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]

but as I see the code in doubt is the same for ansible 2.4 and 2.5

CONFIGURATION

[defaults]
hash_behaviour = merge
display_skipped_hosts = False
display_args_to_stdout = False
retry_files_enabled = False # Do not create them
record_host_keys = False
host_key_checking = False
callback_whitelist = profile_tasks

## ansible 2.1 https://github.com/ansible/ansible/blob/7f30324/docsite/rst/faq.rst#how-do-i-disable-cowsay
nocows=1

OS / ENVIRONMENT

N/A

SUMMARY

using the docker_container playbook, it ignores changes in ENV if only a ENV has been deleted from the list.

It re-creates the container, if an env has been added.

It doesn't touch the container, if an env has been deleted.

reproducable with even present or started

I doubt, there is an error in

https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/modules/cloud/docker/docker_container.py#L1189

and it's inner compare_dict

https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/modules/cloud/docker/docker_container.py#L1327

STEPS TO REPRODUCE

https://gist.github.com/childnode/50295370e2fc79a10847411826210de2

./build.sh

./start.sh

EXPECTED RESULTS

docker container is "changed" even just a ENV has been deleted

ACTUAL RESULTS

docker container stays as it is, configuration is not evaluated as being changed for deleted envs
Issue 1:
I know the protected vs. private debate has been coming up several times already, yet my question: is there a reason not to make the Filesystem components toIterator() method protected? I'd like to extend the class in one project and keep the concept of allowing strings, arrays or any Traversables to be passed.

Issue 2:
There are quite a number of dependencies in symfony/framework-bundle that should be optional.

symfony/asset

Don't need it when building an app without GUI.

symfony/security-core

Don't need when I don't want to include any sort of access control

symfony/security-csrf

Don't need it unless I have forms. Which is an optional requirement in the form (pardon the pun) of symfony/form. Even if you keep security-core, this should go unless you have symfony-form.

doctrine/annotations

I may not want to use annotations.

symfony/translation

I might not care about translations

symfony/stopwatch

Why is this not in require-dev?

symfony/templating

Again, without a GUI I don't really need this.

Anyone sharing this opinion or should I create my own symfony-minimal-framework-bundle if I want something less 'standard distribution'-like?

Possible solution would be extracting the other deps into something like symfony/core-framework-bundle and have symfony/framework-bundle depend on that. Then packages depending on framework-bundle would not suddenly have to deal with missing deps.
Issue 1:
@mdo Two suggestions for the upcoming version:

A page similar to http://html5up.net/twenty (click to slide within page)

A Gmaps page. (this actually is more important as many people have to figure out how to combine the libraries together)

Thanks! :)

Issue 2:
Template based off of example here: http://twitter.github.com/bootstrap/examples/fluid.html

If a href attribute is added to the anchor tag in the .hero-unit, the button text color ends up being #666 instead of white.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.2

Operating System version: mac

Java version: JDK8

Steps to reproduce this issue

ConfigCenterConfig.java
@Parameter(key = CONFIG_NAMESPACE_KEY, useKeyAsProperty = false)
public String getNamespace() {
return namespace;
}

AbstractConfig.java
Parameter parameter = method.getAnnotation(Parameter.class);
if (parameter != null && parameter.key().length() > 0 && parameter.useKeyAsProperty()) {
key = parameter.key();
} else {
key = prop;
}

ZookeeperDynamicConfiguration.java
rootPath = "/" + url.getParameter(CONFIG_NAMESPACE_KEY, DEFAULT_GROUP) + "/config";

问题

在dubbo-admin中定义了黑白名单，设置了分组admin.registry.group=henry1，保存到zk/root/henry1/config下

设置属性dubbo.config-center.group=henry1 dubbo.config-center.namespace=henry1 consumer端启动，但是在ZookeeperDynamicConfiguration取出来的值发现是dubbo，导致规则获取失败。

原因

因为getNamespace的useKeyAsProperty为false，在AbstractConfig解析时取的key为namespace不是config.namespace。在ZookeeperDynamicConfiguration取CONFIG_NAMESPACE_KEY为NULL

是否需要把getNamespace的useKeyAsProperty改为true，或者是修改ZookeeperDynamicConfiguration的取值key

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

希望在ZookeeperDynamicConfiguration可以获取到值，而不是默认值

Issue 2:
Environment

Dubbo version: 2.7.1

Dubbo Admin version: 0.2.0

Java version: 1.8

Steps to reproduce this issue

在dubbo-admin中添加权重设置和负载均衡设置

在zookeeper里面能看到设置的结果在config下面

但是实际dubbo在调用时，并没有从config下面获取配置，仍然从服务接口下面的配置中获取，到账新的配置不生效，而且从服务接口拿配置，也没有应用级一说，仍是服务级
Issue 1:
I'm in the process of trying to get jl_init to work without having to provide an argument for the general embedding case.

My current patch works on windows because libjulia.dll (whose path I'm using to set julia_home) lives in the bin directory there, but breaks on *nix because there it lives in a lib directory.

Of course, it's easy enough to patch the lib path to get the bin path, but it begs the question as to whether julia_home should just point to a level higher.

One fact in favor of redefining julia_home to point a level higher: the majority of references to it begin by appending "..".

Issue 2:
It would be great if there are methods to get CFLAGS and LDFLAGS to link against libjulia. In R, there are

R CMD config to get CPPFLAGS and LDFLAGS. So far, I can only find JULIA_HOME.
Issue 1:
I ran into a bug today where including angular2.min.js would result in my code failing but using angular2.js would run fine.

Example plunkr here: http://plnkr.co/edit/599t9vXIoDWvERnvCTWu?p=preview

In it's current state the [(ngModel)] bind fails so the text box gets no data, but if you switch the page to load angular2.js instead of angular2.min.js the text box will load just fine.

Issue 2:
When using minified bundles with SystemJS, and a simple snippet like this

<template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>

Will throw

TypeError: this.directive_0_0.ngDoCheck is not a function

This is only reproducible with minified bundles, non-minified work correctly.

As an example check this plnkr (took it from #6304 (comment)). To reproduce switch between minified and unminified bundles.

This is also reproducible with Webpack using this line in the config

plugins : [
new webpack.optimize.UglifyJsPlugin()
],

Am I missing something?
Issue 1:
Symfony version(s) affected: 4.3

Description

URL parsing fails. For example:

https://nova.laravel.com/password/reset

This resolves correctly.

However https://nova.laravel.com//password/reset this results in a 404. Which could be seen as a user error.

But https://nova.laravel.com//foobar/password/reset also resolves, however incorrectly. Clearly signaling it as a bug.

How to reproduce

Go to https://nova.laravel.com//foobar/password/reset. Or in any Laravel/Symfony project add an extra / after the host.

Possible Solution

I added a possible solution in this PR.

#29631

Issue 2:
Q
A

Bug report?
no

Feature request?
yes?

BC Break report?
no

RFC?
no

Symfony version
all

I am working on application which define different route parameters depending on subdomain (for simplicity lets call them languages)

For example there are en, pl, gb sub domains. Which may override some global routes (defined in domain routing)

#routing.yml
_domain:
resource: routing_domain.yml

_subdomain:
resource: routing_subdomain.yml

#routing_domain.yml
app_default_index:
path: /{language}/index
defaults: { _controller: AppBundle:Default:index }
methods: ['GET']
requirements:
language: 'en'

app_default_catch_all:
path: /{language}/{slug}
defaults: { _controller: AppBundle:Default:catchAll }
methods: ['GET']

#routing_subdomain.yml
app_default_index:
path: /{language}/index
defaults: { _controller: AppBundle:Default:index }
methods: ['GET']
requirements:
language: 'en|gb'

Because of priority of sub domain routes it has to be imported last (To override app_default_index from routing_domain.yaml)

Problem with this approach is that it puts app_default_index on the bottom of routes priority, causing that app_default_catch_all is before app_default_index.

----------------------- -------- -------- ------ --------------------
Name Method Scheme Host Path
----------------------- -------- -------- ------ --------------------
app_default_catch_all GET ANY ANY /{language}/{slug}
app_default_index GET ANY ANY /{language}/index
----------------------- -------- -------- ------ --------------------

It there any way that I am able to override app_default_index route, but keep its initial position?

I've found an place where this logic is set https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/RouteCollection.php#L125

// we need to remove all routes with the same names first because just replacing them

// would not place the new route at the end of the merged array.

What is an reason that route should be put on end of array? How can I solve this problem, without using dynamic route loader and keep everything as simple as possible?
Issue 1:
I have two GPUs installed, with the same script, if I select to run on RTX 2080 Ti, the error occurs, and if I run on GTX 1080 Ti, it works right.

`~/Molecule_Optimizer.py in forward(self, atom_list, bond_list, atom_degree_list, bond_degree_list, atom_mask)

33 atom_mask = atom_mask.unsqueeze(2)

34 batch_size,mol_length,num_atom_feat = atom_list.size()

---> 35 atom_feature = self.dropout(self.atom_fc(atom_list))

36

37 bond_neighbor = [bond_list[i][bond_degree_list[i]] for i in range(batch_size)]

~/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py in call(self, *input, **kwargs)

475 result = self._slow_forward(*input, **kwargs)

476 else:

--> 477 result = self.forward(*input, **kwargs)

478 for hook in self._forward_hooks.values():

479 hook_result = hook(self, input, result)

~/anaconda3/lib/python3.6/site-packages/torch/nn/modules/linear.py in forward(self, input)

53

54 def forward(self, input):

---> 55 return F.linear(input, self.weight, self.bias)

56

57 def extra_repr(self):

~/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py in linear(input, weight, bias)

1024 return torch.addmm(bias, input, weight.t())

1025

-> 1026 output = input.matmul(weight.t())

1027 if bias is not None:

1028 output += bias

RuntimeError: cublas runtime error : the GPU program failed to execute at /opt/conda/conda-bld/pytorch_1533672544752/work/aten/src/THC/THCBlas.cu:249`

Issue 2:
🚀 Feature

Now the Pytorch cannot support cuda10 directly, so it cannot be run on RTX series GPUs

Motivation

Just wanna get the Pytorch run on my RTX 2080ti asap, thx
Issue 1:
Do you want to request a feature or report a bug?

Request a feature

Per some discussion today with @tomocchino and @thejameskyle, I'd like a non-Flow mechanism to annotate what type(s) of elements a component expects to render.

Here's some examples, with Flow types for comparison (that I realize may not be currently checked in Flow, yet):

function Foo({ yes }){
return yes ? <Bar /> : <div />;
}
Foo.renderTypes = [Bar, 'div'];

class Bar extends React.Component {
static renderTypes = [Button];

render() {
return <Button />;
}
}

function Foo({ yes }): React.Element<Bar | 'div'> {
return yes ? <Bar /> : <div />;
}

class Bar extends React.Component {
render(): React.Element<Button> {
return <Button />;
}
}

Inside @airbnb, we have lots of use cases where we have container components in a separate package - say, a <ButtonRow>, and we have intentionally restrictive propTypes on its children prop, to only allow a Button (also in the same package). However, in an app that consumes this component library package, a dev may want to create a <SpecialProductButton /> that in turn renders a <Button> - however, they're unable to pass it into ButtonRow (our propType warnings fail tests), even though conceptually it should be permitted.

Having .renderTypes would allow us to widen our children propType to allow for either a <Button>, or anything that renders a <Button>, which helps us maintain separation of concerns (the package doesn't have to know about <SpecialProductButton> to accept it) as well as maintain strictness (the package doesn't have to allow any wacky element inside <ButtonRow>).

I imagine the implementation to be:

when render() is called or an SFC is invoked, (in async rendering, it'd be when the component resolves, i suppose)

in development only and if .renderTypes exists on the component

evaluate the equivalent of elementType(...Component.renderTypes)({ children: renderedValue }, 'children', ...),

just like propTypes, log the error if one is returned

(cc @spicyj)

Issue 2:
feature

Warning: A component is contentEditable and contains children managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.

It would help heaps if I would know which component is causing this.
Issue 1:
Hi, we've prepared ourselves for angular2 a while, and decided to use the RC1 version for our new projects. But RC1 is loading hundreds of javascript files. Is this a feature mean to be? Or it will be solved soon? About when?

Thank you for your attention.

Issue 2:
Steps to reproduce and a minimal demo of the problem

create a new A2RC1 app with angular-cli:

ng new blah
cd blah
npm start

load the page with your dev tools open and observe that it submits over 290 xhr requests at startup. beta-14 (from which we just upgraded) loads about 40.

Current behavior

more than 290 requests. (>600 once our 20-30 client-side classes are added)

Many of these requests are duplicated, e.g. exception_handler.js, base_wrapped_exception.js, and collection.js.

Expected/desired behavior

Far fewer requests.

Other information

This many requests is going to KILL us at roll-out time.
Issue 1:
The xml package embeds the fields of an anonymous field type onto the outer structure's
XML element. Currently this isn't supported for pointer types though. This should be
fixed.

Issue 2:
http://blog.golang.org/2011/06/profiling-go-programs.html doesn't use the Go 1 'go' tool.

Update this blog post?

Noted from http://bpowers.github.com/weblog/2013/01/05/optimizing-real-world-go/
Issue 1:
Where did col-*-push-12 classes go? Is there a new way to swap col-*-12 elements?

I vaguely remember this used to work at some point:

<div class="col-sm-12.col-sm-push-12">a</div>
<div class="col-sm-12.col-sm-pull-12">b</div>

rendered

b
a

Issue 2:
I have am using an accordion to display a series of images in carousels, The accordions seem to be working but when I try and open a carousel in one of the accordions they don't size to the area of the carousel. I tried to specify sizes looking at them with firebug and have been unsuccessful. Any suggestions on how to handle this.

| v class="accordion-group"
.accordion-heading
a.accordion-toggle(data-toggle='collapse', data-parent='#accordion2', href='#collapseThree')
| Collapsible Group Item #3
#collapseThree.accordion-body.collapse
.accordion-inner
#myCarousel.carousel
//
Carousel items
.carousel-inner
.item(some.png')
.item

.......

//
Carousel nav
a.carousel-control.left(href='#myCarousel', data-slide='prev') ‹
a.carousel-control.right(href='#myCarousel', data-slide='next') ›
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

elements should be aligned horizontally with homogenous margins/paddings by default in all browsers.

Current Behavior

It's pretty hard to align intput elements horizontally because they have varying margins/paddings by default.

It get's obvious if you have a TextField and Select Field or Switch element side by side and want to have the same behaviour in IE11.

Here is a demo:

https://codesandbox.io/s/9lwnw4j9ow

Remove comment to see it aligned.

/* remove comment to see it aligned in IE11 + Chrome + FF*/

Margins also depend on margin="normal" of TextField elements.

Context

It takes a lot of time fixing layout/alignment issus in all browsers.

Your Environment

Tech
Version

Material-UI
^1.0.0-beta.22

React
^16.0.0

browser
IE11

Issue 2:
In the olde version Button had a fullWidth. The textFields have also a fullWidth.

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

Expected Behavior

The Button needs to have a fullWidth option.

Example: <Button fullWidth>Logion</Button>

Current Behavior

does not apply

Steps to Reproduce (for bugs)

does not apply

Your Environment

Tech
Version

Material-UI
1.0.0-beta.17

React
15.5.4

browser
chrome

etc
Issue 1:
A common way to strip double-quotes from a variable in Windows Batch Language:

set my_var=%my_var:"=%

But, VS code syntax highlighter thinks that the double-quote in the line above is starting a string, and so, it highlights all code in the file beyond that double-quote until it finds another double-quote in the file, as if it were part of a string, which is isn't.

Issue 2:
After upgrading to version 0.10.1 Syntax highlighting within windows .bat files has become reduced.

Previous versions would syntax highlight variables (%VARIABLENAME%) and comments(REM-COMMENT TEXT" now these both appear as normal text:
Issue 1:
Hi reactjs Team, I suggest that, team should add a new prop for every component that purly used to show or hide component conditionally.

i.e

Instead of writing code like this in JSX.

{show && }

we simply use like this and that's it.

Issue 2:
Toggle Component

render(){
var Child = something? A : B;
return (
<Child />
)
}

Toggle CSS Display is simple

className={this.props.shouldHide ? 'hidden' : ''}
Issue 1:
Problem description

I'm getting the followinig warning when I use the closeIcon property on a CardTitle:

Warning: Unknown prop closeIcon on

tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop

However, the element is working just fine, the icon is being displayed and everything works fine.

Link to minimal working code that reproduces the issue

Hope this link is correct:

https://www.webpackbin.com/bins/-KjUqpCIvL3w31h-YqlI

Here is the code in any case. Just open the browsers console.

import React from 'react';
import { AppBar } from 'material-ui';
import FlatButton from "material-ui/FlatButton";
import SvgIconAddShoppingCart from "material-ui/svg-icons/action/add-shopping-cart";
import Add from "material-ui/svg-icons/content/add";
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';

const HelloWorld = () => (

<Card expandable>
<CardTitle title="Users" closeIcon={<Add/>} actAsExpander showExpandableButton />
<CardText expandable>
<FlatButton label="add" icon={<SvgIconAddShoppingCart />} />
</CardText>
</Card>

);

export default HelloWorld;

Versions

Material-UI: 0.18

React: 15

Browser: Chrome

Description

Images & references

Issue 2:
Problem description

When using the closeIcon prop on CardTitle, the selected icon is displayed but a warning that the prop is passed to a div is displayed in the console.

Link to minimal working code that reproduces the issue

https://www.webpackbin.com/bins/-Kjal6iMWuKp0Lg-1DB9

Versions

Material-UI: 0.17.1

React: 15.4.2

Browser: Chrome
Issue 1:
Hi,

Running the example, using a custom Document (with-styled-components) I noticed that the stylesheets are being added in duplicate to the page.

Apparently flushing the stylesheets like we're doing here avoids this issue but raises a total different one (FOUC).

Any idea why the stylesheets are being added more than once and any tip how to avoid this?

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

Expected Behavior

A method in router API that allows aborting upcoming route change.

Current Behavior

Right now router exposes abortComponentLoad method but it seems to be designed only for internal use and it doesn't work if it's called in routeChangeStart handler. It works only after this piece of code was executed:

async fetchComponent (route, as) {
let cancelled = false
const cancel = this.componentLoadCancel = function () {
cancelled = true
}

Workaround:

Router.ready(() => {
Router.router.on('routeChangeStart', () => {
setTimeout(() => {
Router.router.abortComponentLoad();
});
});
});

Context

This is useful for example when building complex forms and we want to warn a user before he leaves the page without submitting.

Your Environment

ANY