WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Eventlisteners for doctrine LifecycleEvents are not registered on the default event manager that is available as service in the controller.

Reproduce:

write an event listener

class L{
protected $os;
public function __construct(MyOtherService $os){
$this->os = $os;
}
public function postPersist(LifecycleEventArgs $args){
$this->isFatal();
}
}

register as service

service:
my_listener:
class: \yadda\yadda\L
arguments:
- @my.other.service
tags:
- { name: doctrine.event_listener, event: postPersist }

Debuging in the controller shows no listeners are attached to the event manager on the ntity manager.

Issue 2:
I have 3 Entity classes, 2 of them are almost identical and have a foreign key constraint to the third class, in one of the classes it is possible to create the schema in the other it isn't though the constraints are the same.

Referenced entity class:

https://github.com/ipv6Watch/ipv6watch/blob/master/webfrontend/src/HSP/PageBundle/Entity/IPV6Router.php

Working entity class:

https://github.com/ipv6Watch/ipv6watch/blob/master/webfrontend/src/HSP/PageBundle/Entity/IPV6v4Address.php

Defective entity class:

https://github.com/ipv6Watch/ipv6watch/blob/master/webfrontend/src/HSP/PageBundle/Entity/IPV6v6Address.php

The problematic field is $RouterId.
Issue 1:
TypeScript Version:

nightly (1.9.0-dev.20160429)

Code

interface Foo {
readonly foo: string;
}

const foo = {
get foo(this: Foo): string { // <- A 'get' accessor cannot have parameters.
return 'foo';
}
};

Expected behavior:

Ability to type this without errors.

Actual behavior:

Errors given when trying to type this in a get accessor.

While this example is non-sensical, this typing on other get accessors would be a useful feature and since they are erasable, it isn't like the accessor has an actual parameter.

Issue 2:
TypeScript Version:

Version 1.9.0-dev.20160417

Code

// A self-contained demonstration of the problem follows...
let name: string = "hallo";

Expected behavior:

compile

Actual behavior:

error TS2451: Cannot redeclare block-scoped variable 'name'.
Issue 1:
Migrated issue, originally created by Tiemo Kieft (@tkieft)

I have a schema that defines some Enum's, running create_all() works fine on Postgres, but on SQLite it locks up.

The code below demonstrates the problem:

from sqlalchemy import create_engine, Enum
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()
e = Enum('foo', 'bar', metadata=Base.metadata)

engine = create_engine('sqlite:///:memory:', echo=True)
Base.metadata.create_all(bind=engine)

Remove the explicit metadata kwarg from the Enum constructor solves the problem. I tried running the above code with echo=True, but it doesn't report anything.

Issue 2:
Migrated issue, originally created by eevee (@eevee)

Reported here, but seen someone else experience it too: http://stackoverflow.com/q/24720380/17875

My diagnosis from figuring it out with the someone else on IRC:

18:43 <!eevee> somehow calling self._on_metadata_create within the metadata's create event is adding itself as an event listener again
18:44 <!eevee> because, i think, it re-creates a dialect-specific enum with the same args...
18:44 <!eevee> looks pretty clearly like a bug wow
18:44 <@Zhorken> it specifically hangs with SQLite
18:44 <@Zhorken> or at least, not with Postgres
18:45 <!eevee> ah, postgres has a real enum type; sqlite doesn't so it gets a fallback
Issue 1:
Hi everybody. I use so much bootstrap that I have few problems at few moments.

In this moment, I work on a dashboard for my client. I use all of my screen because I have many informations to show. So, I use col-xs, col-sm, col-md and col-lg for a responsive design. It's awesome except that my dashboard own few items which are too fat when my screen is superior at 1500/1600px.

I would can develop a new custom col-xlg class for my app but I don't know if other people have this problem.

In the future, our displays will be most large and I ask me if that it's necessary to develope a feature like this.

Thanks for your response.

Issue 2:
Hi,

As you know, in Bootstrap 3 RC 1 maximum container width is ~1200px. But what if someone has FullHD screen width crushing width of 1920px? He sees empty space on both sides.
Issue 1:
When I run pwd|xclip and paste in wls, it changs line automaticly. How can I disable the effect?

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

Issue 2:
Windows Terminal sometimes crashes when I run commands. Feedback Hub Report here.

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0
PowerShell 7.0.0-preview.3

Steps to reproduce

No exact steps to reproduce. I'm using Windows Terminal (Preview) for a while, and after running a command it will crash.

For example, the last crash occurred when I ran the following subversion command:

svn cat ^/users/doug/Operations/Operations/Context.cs

However, I ran that command after the crash several times in a row with no issue.

Expected behavior

My command should run without crashing Windows Terminal (Preview).

Actual behavior

Windows Terminal (Preview) crashes.

More Info

Anecdotally, the crashes seem to occur when I run commands that list files contents or spit out a lot of output (e.g., gci -Recurse .).
Issue 1:
I've been using the Estimator API with the model_fn and input_fn as shown in the official examples (https://github.com/tensorflow/models/blob/master/official/resnet/cifar10_main.py for instance).

This all looks great and wonderful. However, I'm now facing an issue for going further with it. I'd like to use a model trained on a dataset and transfer it to another dataset. In practice, I would like to take the weights from the trained model up to the softmax layer and only initialize randomly this final layer. Then, I can do fine-tuning on the new dataset, which has different labels for instance.

I haven't found a way to do what I want. Is it something missing in the interface? Can we have something like a variable list to restore from a checkpoint and some other not? Ideally, it would be also good to specify variables to be frozen. Does that all make sense?

Issue 2:
The Raspberry Pi is an excellent platform for robotics and automation. The native camera also makes a great combo for portable / embedded / robotics computer vision. Having TensorFlow available on this platform would really open up a lot of options in this context.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

none

Environment info

Operating System:

Raspbian Jessie on Raspberry Pi 3

What other attempted solutions have you tried?

https://github.com/samjabrahams/tensorflow-on-raspberry-pi

It only provides a binary for TensorFlow 0.10. I've had lots of issues with it running DNNs trained on 0.11. I need to train on 0.11 because the only fast GPU I have is an Nvidia Pascal chip, and 0.10 doesn't work well on Pascal (due to CUDA version issues).

I've tried to compile 0.11 following the guide there, but there were a lot of errors.
Issue 1:
System information (version)

OpenCV => 4.0.0-pre

Operating System / Platform => Ubuntu 16.04.5 LTS 64 Bit

Compiler => c++

Steps to reproduce

Compiling opencv with "cmake -D WITH_QT=ON" will fail at FilterWidget.cpp

Detailed description

diffFilterWidget.cpp

#include <opencv2/imgproc.hpp>
#include <opencv2/imgproc/types_c.h>

#include <unordered_map>

#include <QComboBox>
#include <QLabel>
#include <QString>
#include <QVBoxLayout>

#include "../../util/util.hpp"
#include "diffFilterWidget.hpp"
namespace cvv
{
namespace qtutil
{

Solution

Adding using namespace cv; after #include "diffFilterWidget.hpp" solved the scope issue

Issue 2:
System information (version)

OpenCV => 4.0.0rc

Operating System / Platform => Ubuntu 18.04, 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Compiler => gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0

Nvidia Driver 410.73

Cuda 10.0

Detailed description

When compiling with the command line make -VERBOSE=1 -j12 the compile fails at

/devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp: In member function ‘virtual void cvv::qtutil::DiffFilterFunction::applyFilter(cvv::qtutil::DiffFilterFunction::InputArray, cvv::qtutil::DiffFilterFunction::OutputArray) const’:

/devel/software/opencv_contrib-4.0.0/modules/cvv/src/qtutil/filter/diffFilterWidget.cpp:72:44: error: ‘COLOR_BGR2HSV’ was not declared in this scope

cv::cvtColor(in.at(0).get(), originalHSV, COLOR_BGR2HSV);

Steps to reproduce

cmake -D CMAKE_BUILD_TYPE=Release

-D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion"

-D INSTALL_C_EXAMPLES=OFF

-D INSTALL_PYTHON_EXAMPLES=ON

-D WITH_TBB=ON

-D WITH_V4L=OFF

-D WITH_QT=ON

-D WITH_OPENGL=ON

-D OPENCV_EXTRA_MODULES_PATH=/devel/software/opencv_contrib-"$cvVersion"/modules

-D BUILD_EXAMPLES=ON ..

make -VERBOSE=1 -j12

CMakeOutput.log

CMakeError.log

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

Expected Behavior

Due to the somewhat slow behaviour when using controlled textfields, I'm currently trying to use uncontrolled textfields. My first idea was to simply use setState in the onChange event handler to update the state.

Basically, the code looks like this:

<TextField placeholder="Text here"
onChange={this.handleAnswer("foo").bind(this)}
/>

The event handler currently looks like this to make sure it's setState() which causes the problem:

handleAnswer = id => event => {
this.setState({
test: event.target.value
});
}

What I expect to see is that the state property "test" is set to the value of the textfield.

Current Behavior

The event handler gets called once, which sets the state to the key pressed. However, said character does not appear in the textfield and the field immediately loses focus afterwards.

What gets me is that the same code works just fine for a RadioButton.

Steps to Reproduce (for bugs)

The non-working code is provided above.

Context

Currently, controlled textfields are very slow. I'll have to make do with refs then.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.30

React
16.2.0

browser
Edge, Firefox, Chrome, Safari

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

Expected Behavior

Popover renders within the context of the anchorEl document.

Current Behavior

Popover will render in the global document unless an explicit container prop is passed to the popover

Steps to Reproduce (for bugs)

See https://codesandbox.io/s/6lqo45vzvk which is a demo I setup for #10037, which includes an explicit container prop (which is clunky).

Context

The changes made in #9613 have been a great step forward in the right direction, and have largely fixed the issues I was having with rendering MUI components in a separate window (many thanks!!! 🎉). However any component that relies on Popover still has issues, as the container used when creating the Portal defaults to the global document.body object, instead of respecting the document.body containing the anchorEl prop.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.30

React
16

browser
all

etc
Issue 1:
I use Atom 0.192 and i write vietnamese text (markdown) with UTF-8, when i put my cursor to the text line, It not true,It deviated from a word which i want

Issue 2:
Halp ticket:

support/e61e5074bc3011e396a434cf997499c3

Support for Unicode is incomplete. Unicode characters are shown, but the cursor get stuck, and the navigation with the keyboard arrows stop working.

The user was using this string as an example ג׳ג׳ג׳dwdwdww

Here's a GIF of me pressing just the right arrow key to get from the beginning of the string to the end:
Issue 1:
I'm on Ubuntu 15.04 and Atom 0.200.0. Whenever I try to open a file via File -> Open File, I am given a file chooser in my "recent files" directory. What I really want is to open another file from the current directory.

Has anyone else seen this?

Issue 2:
This is exactly the same issue as #3618 . I'm re-submitting an issue because the old fix does not work anymore as a result of AtomWindow.projectPath no longer existing (assumed to be the result of #770 where multiple project paths are now supported.

I was unable to figure out how to get console.log statements or errors reported to the dev console. If someone can shed some light on how to get that working, then I can submit a PR.
Issue 1:
React batches all component updates if they become dirty during an event-callback (events are also batched). However, this is not exposed for use with external events, such as setTimeout, addEventHandler, AJAX-replies, non-React DOM events or any other events, and it seems only natural that it should extend to those too.

I see two obvious solutions:

Export React.batchedUpdates(callback, param)

setTimeout(function() {
React.batchedUpdates(function() {
...
}.bind(this));
});

setTimeout(React.batchedUpdates.bind(null, function() {
...
}.bind(this));

Export a callback factory React.batchedCallback(callback, args...)

setTimeout(React.batchedCallback(function() {
...
}.bind(this));

Thoughts?

I'm guessing this belongs with #326

Issue 2:
Ember has a similar Ember.run -- perhaps we should do something to mirror it? They also have helpers like Ember.run.later which is a replacement for setTimeout with better batching:

http://emberjs.com/api/classes/Ember.run.html
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/30577/kubernetes-pull-build-test-e2e-gce/54998/

Failed: [k8s.io] Job should scale a job down {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127
Aug 20 16:09:43.973: Couldn't delete ns "e2e-tests-job-x4mg0": namespace e2e-tests-job-x4mg0 was not deleted within limit: timed out waiting for the condition, pods remaining: []
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265

Happened on a presubmit run in #30577.

Previous issues for this test: #29066 #30592

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

Failed: [k8s.io] V1Job should scale a job up {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127
Aug 16 08:11:16.645: Couldn't delete ns "e2e-tests-v1job-gmj3l": namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: []
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265

Previous issues for this test: #29976 #30464
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Currently when I have and SVG in the HTML of an Angular 2 page it does not render responsively (Width of container and resize with container).

Expected behavior

When I add an SVG to the HTML using ngOnInit it behaves correctly. The SVG is full width and resizes with the window.

Reproduction of the problem

I created the following plunkr that displays the non responsive SVG as well as the dynamically added SVG that is responsive.

https://plnkr.co/edit/yvcO7C6O3nRGNowQPmAA?p=preview

What is the motivation / use case for changing the behavior?

I would like to be able to have the SVG in the HTML so I can have a declarative way for binding information in the SVG to the Angular Module. This was possible in Angular 1.

Please tell us about your environment:

I first experienced this issue in an Ionic 2 application but have been able to duplicate it in a plnkr.

Angular version: 2.0.0-beta.17

Browser:

Chrome Version 52.0.2743.116 (64-bit), 53.0.2785.101 (64-bit) | Firefox 36.0.1, 47.0, 48.0.2 | Safari Version 9.1.3 (11601.7.8) |

Language:

TypeScript

Issue 2:
Most developer workflows are based around CJS (Browserify or WebPack) and not System.js. Since System.js can consume cjs bundles, I suggest we replace our System.register bundle with a CJS bundle. In this case, developers that use Browserify or WebPack will be able to use it, and it should still work with System.

Notes:

System.register has a lot of overhead comparing to CJS. My naive measurements showed the difference is about 18%.

When using a CJS bundle, you cannot important submodudles, only "angular2/angular2". I think this is an advantage cause it prevents users from depending on private API.

Finally, once we produce a CJS bundle, I think we should change our Getting Started guide to use WebPack instead of System.js. The reason is WebPack provides a lot better experience out of the box (including TypeScript and Babel).

The WebPack config for an Angular 2 project written with TypeScript is about 10 lines long:

module.exports = {
resolve: {
root: __dirname,
extensions: ['.ts', '.js']
},
entry: ["webpackapp"],
output: {filename: "webappapp_bundle.js"},
externals: {'angular2/angular2': "angular2"},
devtool: 'source-map',
module: {
loaders: [
{ test: /\.ts$/, loader: 'ts-loader' }
]
}
}

You get source maps, dev server with live reload, production/dev modes -- a very good first impression and a clear path to production setting.

/cc @IgorMinar @mhevery @rkirov @jeffbcross
Issue 1:
Atom 0.209.0 on OS X Yosemite and El Capitan Beta

As the title indicates, the Packages list in Atom Settings always show a package named ".bin". No Atom feature is negatively affected by this bug.

atbuild file content

#! /usr/bin/env node
require('./atbuild.js');

If you need any information that I can provide, please let me know.

Issue 2:
Soon after the new settings view was included, I noticed this odd item:

Which seems to be related to autoprefixer package. See also https://discuss.atom.io/t/whats-this-bin-package/14355/7 for the initial thread.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

It shows the following...

"undefined

assert(editor.getValue().match(/(//)...../g), 'Create a // style comment that contains at least five letters');Create a // style comment that contains at least five letters

assert(editor.getValue().match(/(/)...../g), 'Create a / */ style comment that contains at least five letters.');Create a /* _/ style comment that contains at least five letters.

assert(editor.getValue().match(/(_/)/g), 'Make sure that you close the comment with a */');Make sure that you close the comment with a */"

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Left side error checking seems wrong
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.6.0

Operating System version: Windows 10

Java version: 1.8

I want set some RpcContext property value by telnet invoke, how to achieve it? thanks~

Issue 2:
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: dubbo-spring-boot-starter:2.7.7

Operating System version: MAC OS 10.15.6

Java version: java 8

Steps to reproduce this issue

How to use @DubboReference annotations Like xml, the basic attributes are only configured once, instead of configuring the same attributes for each reference.
Issue 1:
It shouldn't be.

Issue 2:
On playpen nightly

#![crate_type="lib"]
#![feature(asm)]

fn main() {
unsafe {
routine()
}
}

pub unsafe fn routine() {
asm!("mov ecx, 0xFF
.loop:
loop .loop"
: // no outputs
: // no inputs
: "ecx"
: "intel");
}

pub unsafe fn routine2() {
routine(); // causes inlining, duplicating the symbol improperly
}

<anon>:11:5: 17:22 error: <inline asm>:3:11: error: invalid symbol redefinition
.loop:
^

<anon>:11 asm!("mov cx, 0xFF
<anon>:12 .loop:
<anon>:13 loop .loop"
<anon>:14 : // no outputs
<anon>:15 : // no inputs
<anon>:16 : "ecx"
...
error: aborting due to previous error
playpen: application terminated with error code 101

The following two conditions are necessary to trigger this:

Generating a library ( #![crate_type="lib"] )

At least -C opt-level=2

Without both of these, the error does not occur.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/830 on 2008-06-24 by @cournape, assigned to @cournape.

See ticket 493 from scipy trac

Dividing by zero (e.g. 1/scipy.float64(0.)) yields scipy.inf as it is supposed to, but leaks memory in the process.

I'll attach a sample program where memory usage grows without bound.

#!python
import scipy
x = scipy.float64(0.)
while 1:
1/x

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/955 on 2008-11-20 by @stefanv, assigned to unknown.

From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505999:

Version: 1:1.1.0-3

Raising zero to a negative power sometimes leaks memory, depending on the

types involved. While this is easy to work around (check for zero and deal

with it separately), it shouldn't happen.

In particular, with the following combinations of types (where the base is

0 and the exponent is -3 or -3.5), one object is leaked:

float ** numpy.float64
int ** numpy.float64
int ** numpy.int32
int ** numpy.int64
numpy.float32 ** numpy.float32
numpy.float64 ** float
numpy.float64 ** int
numpy.float64 ** numpy.float32
numpy.float64 ** numpy.float64
numpy.float64 ** numpy.int32
numpy.float64 ** numpy.int64
numpy.int32 ** int
numpy.int32 ** numpy.int32
numpy.int64 ** int
numpy.int64 ** numpy.int32
numpy.int64 ** numpy.int64

(In addition, float ** numpy.int32 raises an exception; however, strictly

speaking, that would be a separate issue.)

Code to reproduce this is enclosed below.

#!/usr/bin/python

import gc, numpy

def mem():
gc.collect()
return len(gc.get_objects())

for zt in int, float, numpy.int32, numpy.int64, numpy.float32, numpy.float64:
z = zt(0)
for pt in int, float, numpy.int32, numpy.int64, numpy.float32, numpy.float64:
if zt in (int, float) and pt in (int, float):
continue
p = pt(-3.5)
try:
before = mem()
z**p
if mem()>before:
print 'leak: ', type(z), '**', type(p)
else:
print 'OK: ', type(z), '**', type(p)
except:
print 'error:', type(z), '**', type(p)
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

this issue is mostly fixed by c33d037 with #3028 but that is a different issue being fixed here. if conv() is present we shouldn't be hitting naming convention logic at all. the below fails in 0.9.4 but succeeds in rel_0_9:

from sqlalchemy import UniqueConstraint, Table, MetaData
from sqlalchemy.sql.naming import conv

m = MetaData(naming_convention={"uq": "uq_%(table_name)s_%(column_0_name)s"})

t = Table('mytable', m)
uq = UniqueConstraint(name=conv('my_special_key'))

t.append_constraint(uq)

Issue 2:
Migrated issue, originally created by Maik Riechert (@letmaik)

mybool = Column(Boolean, nullable=False, default=False)

I use PostgreSQL which has a native boolean type. If I then also use naming convention:

"ck": "ck_%(table_name)s_%(constraint_name)s",

Then sqlalchemy complains:

sqlalchemy.exc.InvalidRequestError: Naming convention including %(constraint_name)s token requires that constraint is explicitly named.

If I define the column as

isPublic = Column(Boolean(create_constraint=False), nullable=False, default=False)

it works, so I think this is a bug in which sqlalchemy doesn't connect the fact that there is a native Boolean and no constraint exists actually.

Attachments: 3067.1.patch | 3067.patch | 3067.2.patch