WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi !

I have this kind of code :

interface FooInterface {}
abstract class AbstractBar implements FooInterface{}
class Baz extends AbstractBar {}

$object = new Baz();
$validator->validate($object, null, ['validator_group']);

If i create a constraints validator on AbstractBar, like this :

AbstractBar:
constraints:
- MyConstraint:
groups: [validator_group]

MyConstraint is called once.

But if i just change AbstractBar by FooInterface in config :

FooInterface:
constraints:
- MyConstraint:
groups: [validator_group]

MyConstraint is called twice !

I can't search why for now, someone could do it please ?

Issue 2:
I'm using UniqueEntity validation in a form and it works fine. (master branch)

@UniqueEntity(fields={"gateway", "list", "address"})

gateway is a relation, the others are scalar fields.

/**
* @ORM\ManyToOne(targetEntity="Gateway", inversedBy="access_lists")
* @ORM\JoinColumn(name="gateway_id", referencedColumnName="id", onDelete="CASCADE")
*/

private $gateway;

BUT when i try to validate manually I get no error. The fields are populated correctly, I checked the values.

$validator = $this->get('validator');
$access_list = new AccessList();
$access_list->setGateway($gateway);
$access_list->setList('someval');
$access_list->setAddress('someval');

$errors = $validator->validate($access_list);

if (count($errors) > 0) {
throw new \Exception('duplicate');
}

The validation gives no errors. It accepts duplicate records.
Issue 1:
Opening file from command line with line-column didn't work in Windows (particularly on Windows 8.1 and Atom 1.0.0).

Both

> atom.cmd article.tex:22:10

and

> atom.cmd "article.tex:22:10"

Didn't work as expected, it open the file article.tex:22:10 and not the article.tex on line 22 and column 10.

Issue 2:
Running atom file.tex:100, Atom will open a file called atom file.tex:100 rather than open file.tex at line 100

.
Issue 1:
When basicConfig() from logging (python 2.7.11) is used, tensorflow duplicates output of logger (load logger twice).

Example code and output:

from logging import basicConfig
import tensorflow as tf
from tensorflow.contrib.learn import Estimator

basicConfig()
tf.logging.set_verbosity(tf.logging.INFO)

def cnn_model_fn(features,labels,mode):
pass

if __name__ == '__main__':
classifier = Estimator(
model_fn=cnn_model_fn)

output:

WARNING:tensorflow:Using temporary folder as model directory: /var/folders/qn/z_b3zdss1g730kn_mlrwcwnc0000gn/T/tmpEdygBY

WARNING:tensorflow:Using temporary folder as model directory: /var/folders/qn/z_b3zdss1g730kn_mlrwcwnc0000gn/T/tmpEdygBY

INFO:tensorflow:Using default config.

INFO:tensorflow:Using default config.

Issue 2:
I am trying transform a csv file consisting two columns: short_description, label. Description consists sentences from length 1 to 4 and label is just an integer number. The csv file has a size of 740 MBs however on converting it to TFRecord the size of the new file increased to 1.2GB, which I think is not correct since TFRecord files are supposed to have lesser size.

For short_description (column 1), I am using BytesList and for label (coulmn2) I am using Int64List as was shown here in this tutorial. Just to be clear, the data read from the new TFRecord file is fine i.e. no problem. It is just the size of the file. Now I do not understand what the problem is. Please help. Thank you!
Issue 1:
With the deprecation notice at http://golang.org/pkg/net/http/httputil/#NewClientConn
it would be good to have client-side HTTP hijack support in a supported way.

Current RoundTripper etc force a request-reply cycle. I'm not sure what the ideal API
would look like; for my current use case, calling a hypothetical Response.Hijack before
reading Response.Body would be enough -- but I can see others arguing they'd like to be
in charge of reading the response headers too.

Related, it would be nice to be able to interact with the connection pool. Imagine
talking a back-and-forth protocol as a consequence of a HTTP request, concluding that
conversation, leaving the connection open, and letting the next HTTP request use it.
This applies both on the client and server side. (Ugly workarounds: a fake Listener for
server-side, that returns the previously-hijacked connections from Accept; for
client-side, a Dialer that does a non-blocking receive on a recycle channel first,
falling back to normal Dial if none are there -- this would duplicate the
connectMethodKey logic in net/http.)

Issue 2:
by raul.san@sent.com:

Sometimes you use a function to initialize and return a new type, having the type like
private.

In those cases, godoc doesn't shows the documentation of public methods for private
types.

Here[1] you have an example, where the type column is private, but it is used function
Column to get it.

[2]: https://github.com/kless/go2sql/blob/master/column.go#L23
Issue 1:
System information (version)

OpenCV => 3.2.0

Operating System / Platform => Windows 10 64-bit / Python

Compiler => MSC v.1900 64 bit (AMD64)

Detailed description

Using the VNG demosaicing in cvtColor( ) results in edge artifacts for edges running at orientations of 315 degrees (roughly NW -> SE). You can see these artifacts in the image below created with the OpenCV VNG algorithm (top row), but not in an image created using a reference implementation of the VNG algorithm (in attached code vng.py) (bottom row). Some color artifacts along edges are expected due to the nature of the interpolation, but the artifacts shown here on edges running from upper left to lower right are more severe than expected, and worse than the reference output. Displaying a single channel (such as just the red channel shown on the right) makes it easier to see that pixels far from the edge are being modified in the OpenCV version.

For edges running along different orientations, such as 45 degrees (roughly SW -> NE), the OpenCV VNG implementation does not show artifacts, and appears to match the reference VNG implementation, as shown below.

Since the VNG algorithm computes gradients in the eight compass directions and there are separate blocks of code for processing each gradient direction, is it possible that there is a pointer error in the code for one of the gradient directions ?

Steps to reproduce

The examples above were generated by calling OpenCV from Python inside a Jupyter Notebook.

The input and output images for the examples above are attached, and can be duplicated by running the attached notebook "VNG_bug.ipynb"

VNG_bug.zip

Issue 2:
System information (version)

OpenCV => 3.3

Operating System / Platform => Ubuntu 16.04 x86-64

Compiler => g++ 5.4.0

Detailed description

CascadeClassifier::detectMultiScale (https://docs.opencv.org/3.3.0/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498) is not const, but it should be, in my opinion.

Steps to reproduce

In my opinion, it should be possible to build a function like the following, since detection should not alter the internal state of the cascade (as no training is happening):

static void FindFaces(const Mat &image, /*const*/ CascadeClassifier &classifier, vector<Rect> &faces) //detectMultiScale should be const, but is not
{
classifier.detectMultiScale(image, faces /* optional parameters here */);
}

Maybe the method can even be made const even in the base class, BaseCascadeClassifier (https://docs.opencv.org/3.3.0/da/dd5/classcv_1_1BaseCascadeClassifier.html#a68623391e16daa264f089af99d8d4bbb)
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce-reboot-release-1.4/589/

Failed: BeforeSuite {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:154
Dec 1 05:54:04.228: Error waiting for all pods to be running and ready: Not all pods in namespace "kube-system" are successful within 10m0s
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:124

Previous issues for this test: #26135 #26236 #27920 #28492 #29970 #30075 #32980 #33313 #35444

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/10992/

Failed: BeforeSuite {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:158
Sep 23 11:26:08.874: Error waiting for all pods to be running and ready: 1 / 418 pods in namespace "kube-system" are NOT in the desired state in 10m0s
POD NODE PHASE GRACE CONDITIONS
node-problem-detector-v0.1-dwpq2 e2e-scalability-minion-group-i5cw Pending [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:12:13 -0700 PDT } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:12:13 -0700 PDT ContainersNotReady containers with unready status: [node-problem-detector]} {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:16:54 -0700 PDT }]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:128

Previous issues for this test: #26135 #26236 #27920 #28492 #29970 #30075 #32980 #33313
Issue 1:
In IE8 (8.0.7601.17514), showing a modal then showing a second modal either crashes the browser or causes a "stack overflow on line 0" error.

Jsfiddle here.

(Jsfiddle doesn't work with IE8 though, so to reproduce you will will need to plonk it somewhere local & open in IE8.)

Bootstrap: 2.3.1

JQuery: 1.9.1

Issue 2:
http://jsfiddle.net/guyong/EUVWC/2/

Click the button read 'Click Me'

On the modal dialog click 'Show Another'

Then click the textbox

Firefox will be unresponsive
Issue 1:
Using 1.0.0-beta.21.

I have something like this:

<Dialog
fullScreen
open={this.addProductDialogOpen}
transition={props => <Slide direction="up" {...props} />}
onRequestClose={this.handleAddProductClose}
>
<AppBar className={classes.appBar}>
<Toolbar>
<IconButton
color="contrast"
disableRipple
onClick={this.handleAddProductClose}
>
<CloseIcon />
</IconButton>
<Typography type="title" color="inherit" className={classes.flex}>
Select product
</Typography>
</Toolbar>
</AppBar>
<DialogContent>
<Autocomplete
getOptions={() => options()}
onSuggestionSelected={this.handleAddProduct}
/>
</DialogContent>
</Dialog>

When closing the dialog the <div data-mui-portal="true"> remains and, although the contents are not visible, it blocks any interaction with the page.

If I remove transition={props => <Slide direction="up" {...props} />} the div is removed on close.

I see the same behaviour (div remains attached) with the docs demo but there there's no obstruction.

Anything I can do do provide more info ?

Issue 2:
My app break after updated to latest beta.

The dialog always shown. Previous version beta 18 don't have this issue

<Drawer
open={false}
type={window.innerWidth < 768 ? 'responsive' : 'persistent'}
anchor="right"
classes={{ paper: classes.paper, docked: classes.docked }}
>

/// content

</Drawer>

I've tried to set open to false still show the drawer.

Your Environment

Tech
Version

Material-UI
v1.0.0-19 beta

React
16

browser
Chrome

etc
Windows 10
Issue 1:
Question about Next.js

i am curious about why this warning will occur. now i am using next.js 6.0.0 to develop my client side app. i have never use the 'url' property in my page-level component, for my page -level component is generated by an hoc -- withDvaReduxHoc. never have i used the 'url' properiy, but dispear to me, i think is unreasonable for i have never use the feature my cause warning.

or other props have use the 'url' property, when i get that props ? i have use pathname and query in my apps, but i use these props in getInitialProps life-cycle method, not the render method, will these properites cause an warning ? and these props will be deprecated in the future ? if not, i couldn't find out what cause this warning.

can u explain these to me?

Issue 2:
Currently next/link will ignore onClick props set on <Link> or contained <a> elements:

import Link from 'next/link'

const customHandleClick = () => console.log('Free pizza!')

// Somewhere in render-land

<Link href='/' onClick={customHandleClick}>
<a>No free pizza :(</a>
</Link>

<Link href='/'>
<a onClick={customHandleClick}>No free pizza :/</a>
</Link>

Clicking either of those two links will not call the customHandleClick function.

This is because the onClick handler of the contained <a> tag is overridden by the next/link implementation here.

If this were to be changed a good way would be checking for, and calling, the onClick prop passed to the <Link> element as part of its internal click handler. See react-router’s Link element for inspiration.

Why I would consider changing this: onClick handlers on links can be useful for various things, but mostly I didn’t expect that the onClick wasn’t being called at all. I’ve added support for this to my custom Link element, but I think onClick "should just work".
Issue 1:
Dear Fabien,

Thank you for uploading your slides on the symphony hack day in Berlin.

I played around with the expression language and the got the error, that in the router the request is missing.

I created a fork of symfony standard to reproduce the problem:

https://github.com/sebastianblum/symfony-standard/tree/routing-condition

If I add the condition in the routing.yml

condition: "request.getMethod() in ['GET', 'POST'] and request.headers.get('User-Agent') matches '/firefox/i'"

see https://github.com/sebastianblum/symfony-standard/blob/routing-condition/src/Acme/DemoBundle/Resources/config/routing.yml

then I got the following error:

FatalErrorException: Error: Call to a member function getMethod() on a non-object

See complete stack trace https://gist.github.com/sebastianblum/7417064

Issue 2:
I had a problem where i put assetic: twice in config_prod.yml by accident. Because of that it didn't work as i expected. It would be nice if symfony throws a warning for this instead of just overriding/ignoring. Perhaps part of developer experience.

Edit: when throwing a warning the parsing can continue
Issue 1:
I couldn't find any examples of this anywhere so here goes.

What I have in mind is this:

I have an already fit custom transformer and i want to use it in a pipeline with a model that is not fit to the transformed data yet.

The goal is to keep the old fit transformer without refiting it to the new data and only fit the model, all combined in a Pipeline().

Currently, if I try to do that I get and error that the model has to be fit first.

The only alternative i can think of is transforming the data, training the model with it and then combining them into a Pipeline(). Or creating the Pipeline() and then fitting them step by step.

Issue 2:
Describe the workflow you want to enable

There is no cohesive way of knowing when a classifier will finish training. What is shown by verbose = True is not consistent across models.

Describe your proposed solution

I propose wrapping all most/all .fit() functions in tqdm.

Describe alternatives you've considered, if relevant

No response

Additional context

No response
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/8270/

Failed: [k8s.io] Dynamic provisioning [k8s.io] DynamicProvisioner should create and delete persistent volumes {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:123
Jun 1 22:01:48.966: Couldn't delete ns "e2e-tests-volume-provisioning-9pmxr": the server does not allow access to the requested resource (delete namespaces e2e-tests-volume-provisioning-9pmxr)

Issue 2:
HPA wants to be GA in 1.2.

Let's collect graduation requirements here.
Issue 1:
by andrewdevplu:

What steps will reproduce the problem?
---------------------------------------------------------------
1.Create a http.Client object, and Get() a web page containing javascript. The specific
page I am using is http://www.stedwards.edu

2.Create a html.Tokenizer, walk through the html with Tokenizer.Next(), print out errors
when html.ErrorToken is found.

What is the expected output?
---------------------------------------------------------------
I expect the html.Tokenizer to skip javascript (or at least getting walk through the
javascript without blowing up) when calling the Next() function.

What do you see instead?
------------------------------------------------
The error produced is:
html: TODO(nigeltao): handle malformed tags

The javascript to blame is:

<script type="text/javascript" language="javascript">
if ((screen.width<1025) && (screen.height<769))
{

The less than symbol in "screen.width<", is causing the tokenizer to blow
up.

Which compiler are you using (5g, 6g, 8g, gccgo)?
-------------------------------------------------
6g

Which operating system are you using?
------------------------------------------------
debian 6

Which revision are you using? (hg identify)
----------------------------------------------------
c5c62aeb6267 release/release.r56/weekly.2011-03-07.1

Please provide any additional information below.
------------------------------------------------
Should html.Tokenizer really be trying to parse javascript? I personally think anything
between <script>...</script> should be skipped.

I have attached the program I am using (just in case it is needed). Please let me know
if there is anything I can do to help. I am interested in becoming more part of this
project (I have even considered attempting to fix the problem myself). Thanks.

Issue 2:
by gconnell@google.com:

http://golang.org/doc/devel/release.html does not yet include go 1.1.
Issue 1:
It's really awesome that you now host a official Debian package for atom, however, there is one area for improvement, updating. Currently, you have to check the website for updates and then go to the atom website to download the new Debian package. This is ignoring one of the most useful parts of the debian packaging system, the updater. On Debian, packages are updated (almost) automatically via PPA's (Personal Package Archives) which are hosted for free by Ubuntu at launchpad.net or packages repositories, which you need to host yourself.

A PPA is probably the easiest solution. All you would have to do is upload the Debian package to launchapd.net whenever you upload it to atom's website.

Google Chrome also does this nifty thing that is really useful and I think atom should implement as well. You download the Debian package from the Google Chrome website, and the Debian installer automatically adds the package repository to the users system for updates in the future.

If you have any more questions or need help setting this up I'm happy to help.

It's free, requires almost no work on your part to set up and maintain, and improves the updating experience on Linux by a lot. Thanks! 😄

Issue 2:
launchpad.net

would you please release atom for ubuntu , as a launchpad ppa repository?
Issue 1:
I'm trying to connect to a local websocket server.

socket = new WebSocket("ws://localhost:30003");

The socket never connects properly. When I try to do socket.send(), it throws a DOMException:

Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.

It works fine in Chrome 43. I've also tried running this code inside the Atom editor, it doesn't work.

Issue 2:
I'm connecting to a websocket server and would like to use the user agent string to record which app versions are hitting my server as specified here: #134

Here is the headers my Golang websocket server is seeing as set

http.Header{"Connection":[]string{"Upgrade"}, "Pragma":[]string{"no-cache"}, "Cache-Control":[]string{"no-cache"}, "Upgrade":[]string{"websocket"}, "Origin":[]string{"file://"}, "Sec-Websocket-Version":[]string{"13"}, "Accept-Encoding":[]string{"gzip, deflate"}, "Sec-Websocket-Extensions":[]string{"permessage-deflate; client_max_window_bits"}, "Accept-Language":[]string{"en-us,en"}, "Sec-Websocket-Key":[]string{"3PMSIjv8pr7CzxjnJI+LGw=="}, "User-Agent":[]string{"”}}

Possibly related to: nwjs/nw.js#2914
Issue 1:
Continuation of the discussion here which is a bit stale at this point: #5410

The docs currently have 4 sections

Manual

This has two pages at present, a very useful "Creating a scene" page and a kind of orphaned looking page on matrix transformations

Reference

This still needs some expansion in places, but should now be a complete API reference (as of r83). (ping me if you find mistakes, of which I'm sure there are more a few!)

Examples

This is very incomplete

Developer Reference

Also very incomplete

The Wiki is a bit of a mess at the moment but has

TODO (things to be developed in Three)

JSON reference

link to migration guide

code style guide

FAQ section which largely link to github issues

various manual type articles

"On the Net" section with links to all kind of Three related info across the net (some broken and some out of date)

@mrdoob you mentioned here #10342 that you'd like the JSON reference to stay in the Wiki (although you also said in #5410 that everything should go in the docs :p )

I have two suggestions:

Everything goes in the docs. Get rid of the Wiki

Split like so:

Docs: Everything related to using Three

Wiki: Everything related to developing Three

Obviously there would be some crossover in 2. but in ambiguous cases the docs should be preferred.

Issue 2:
When I create a shape with a sequence (shape.moveTo ..) and this sequence contains a shape.absarc or shape.arc (haven't tried splines) a twin point is added before the arc into the Shape definition ?

In this sample the twin point is # 2 (into the console).

I don't know if it's a bug since it doesn't seems to alter following process (such as ShapeGeometry), but shape.extractPoints() retrieves these twin points ... and if I reuse the result to build something with THREE.ShapeUtils.triangulateShape() I will get the warning 'Unable to triangulate..' .. that's why I have to add this ugly patch :

var loops = shape.extractPoints ( settings.curveResol );
for (var l = 1 ; l < loops.shape.length ; l++) {
if( Math.abs( loops.shape[l].x - loops.shape[l-1].x ) < 1E-10 && Math.abs( loops.shape[l].y - loops.shape[l-1].y ) < 1E-10 ) loops.shape.splice( l , 1 )
}