WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
What problem does this feature solve?

can vuejs support "Fragments" tag, just like react

What does the proposed API look like?

<template> <Fragment v-for="item in lst" key={item.id}> <dt>{item.term}</dt> <dd>{item.description}</dd> <Fragment > <template>

Issue 2:
What problem does this feature solve?

Right now you can only have 1 root element per template. I know this is by design, but I find myself wrapping everything around a <div> a lot. Now, most of the time is not a big deal, I can live with that, the problem is when either Bootstrap requires a very specific hierarchy, or when dealing with Tables that also require a very specific hierarchy and wrapping everything on a div is not an option.

What does the proposed API look like?

Now, there will be a couple of things to figure out, mainly to what element will the properties provided on the Custom Element will be attached to. I think there two things that can be done:

Find the first child and stick everything to it.

Provide a custom attribute to indicate to what element they should be attached to.
Issue 1:
https://airflow.readthedocs.io/en/stable/_modules/airflow/hooks/dbapi_hook.html#DbApiHook.get_records

In the method description said, that get_records can take string and list of the strings. But it can execute only string, not list. The method doesn't even check is it a list or is it a string.

Issue 2:
Apache Airflow version:1.10.10

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

passing a list to dbapi_hook.get_records fails

TypeError: argument 1 must be a string or unicode object: got list instead

What you expected to happen:

return list of query results.

How to reproduce it:

from airflow.hooks.postgres_hook import PostgresHook
PostgresHook().get_records(['select * from dag_run limit 1', 'select * from dag_run limit 1'])

Anything else we need to know:
Issue 1:
I am running Tensor-flow on Google compute engine instances and I met with this problem when the training period is finished (after step 9990).

2017-03-17 00:24:23.021298: step 9980, loss = 0.72 (242.4 examples/sec; 0.264 sec/batch)
2017-03-17 00:24:34.693612: step 9990, loss = 0.79 (208.4 examples/sec; 0.307 sec/batch)
E tensorflow/stream_executor/cuda/cuda_event.cc:49] Error polling for event status: failed to query event: CUDA_ERROR_DEINITIALIZED
F tensorflow/core/common_runtime/gpu/gpu_event_mgr.cc:198] Unexpected Event status: 1
Aborted (core dumped)

Can anyone identify this problem and let me know how to fix it?

Issue 2:
Environment info

Hardware Platform:

Google Cloud Compute Engine

4 vCPUs, 15 GB memory

4 * NVIDIA Tesla K80

Software Platform:

Operating System: Ubuntu 16.04

cuDNN v5

CUDA toolkit 8.0

CUDA Compute Capability 3.7

Tensor-flow:

Installed from pip

https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.1-cp34-cp34m-linux_x86_64.whl

(Installing from source also doesn't work)

Steps to reproduce

python3 cifar10_multi_gpu_train.py --num_gpus=4

Error occurs after training.

What have you tried?

restart machine and rerun several times;

--num_gpus=2 --> Segmentation fault

Reinstall Tensor-flow from source

Logs or other output that would be helpful

Log file is attached.

Terminal Saved Output.txt
Issue 1:
With electron getting more popular, there's an issue when user installs several apps using electron - each application will have same duplicate codebase, except actual app part.

I'd like to suggest to find a solution to this issue. E.g. provide electron core as separate library, so multiple apps could use it without eating a lot of disk space.

Issue 2:
Currently developers using atom-shell have to ship the whole atom-shell binaries when distributing their apps, but since now we have asar as atom-shell's app format, we may add runtime mode to atom-shell like Adobe Air or Chrome Hosted Apps that developers only need to distribute packaged app in asar format as long as end users have the runtime mode of atom-shell installed.

The runtime mode can just be another app based on atom-shell (let's call it atom-runtime for now), and has deep platform integrations:

On Windows, we can provide installer and auto updater for atom-runtime, and register the .asar file type to be opened with it.

On Linux, we provide official software sources of atom-runtime for some popular distributions, and also register atom-runtime as handler of .asar files.

On Mac, we need to provide a tool to help users package their apps into Mac bundles. We can reference how Steam created bundles for downloaded games, or how Parallel created bundles for applications in hosted OS.

We can even provide a tool or service to help generating installers for developers' apps which can automatically download atom-runtime if it is not installed on user's machine, just like many .NET applications.
Issue 1:
As brought up at the mailinglist, this code ates up much memory:

spectrumArray = np.random.randint(0,255, (2**20,2**12)).astype(np.uint8)

It has also crossed my mind that np.random.randint and np.random.rand could use an extra 'dtype' keyword. It didn't look easy to implement though.

See this thread on the mailinglist: [Numpy-discussion] array of random numbers fails to construct

Issue 2:
>>> dtype = numpy.dtype([('position', numpy.int32, 3)])
>>> values = [([1, 2, 3],), ([4, 5, 6],)]
>>> a = numpy.array(values, dtype=dtype)
>>> a.tolist()
[(array([1, 2, 3], dtype=int32),), (array([4, 5, 6], dtype=int32),)]

In the code snippet above, I would have thought that a.tolist() would return [([1, 2, 3],), ([4, 5, 6],)] instead of a structure still containing non-expanded versions of ndarray objects.

Is this behaviour to be expected?

I wrote a quick and dirty workaround but this is far from optimal as it duplicates part of the work of ndarray.tolist.

def array_to_list(array):
if isinstance(array, numpy.ndarray):
return array_to_list(array.tolist())
elif isinstance(array, list):
return [array_to_list(item) for item in array]
elif isinstance(array, tuple):
return tuple(array_to_list(item) for item in array)
else:
return array

For reference, this question was first raised on StackOverflow http://stackoverflow.com/questions/39502461/truly-recursive-tolist-for-numpy-structured-arrays
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 7

Steps to Reproduce:

Create an scss file with a simple variable

Create another scss file that is importing the previously created scss file

Try to implement a class in the second scss file and try to use the variable in there. Intellisense is not working inside a class, just outside a class:

Issue 2:
VSCode Version:1.0.0

OS Version: windows10.0.10586

Steps to Reproduce:

Open file with language code GB2312

Detected code is UTF-8.
Issue 1:
Hi all, it's a bit difficult to explain the problem I'm facing but I'll try:

I have a Form with lot of fields, some of them can be dynamically added\removed. When the added field correspond to an entity whose FormType has not any other collection of embedded forms, it works fine both the rendering of the template and the submit with the save on the DB (with Doctrine2.1.7). When the added entity has at least a collection of fields, I get the following error:

Catchable Fatal Error: Argument 1 passed to AIC\UserBundle\Entity\AnagraficaPersone::setRubriche() must be an instance of Doctrine\Common\Collections\ArrayCollection, array given, called in /Applications/MAMP/htdocs/AIC_22-5-12/vendor/symfony/src/Symfony/Component/Form/Util/PropertyPath.php on line 347 and defined in /Applications/MAMP/htdocs/AIC_22-5-12/src/AIC/UserBundle/Entity/AnagraficaPersone.php line 116
500 Internal Server Error - ErrorException

the incriminated method is the following:

//AnagraficaPersone.php
public function setRubriche(ArrayCollection $rubriche) {
foreach ($rubriche as $rubrica) {
if($rubrica instanceof Rubrica)
$rubrica->setPersona($this);
else
throw new InvalidTypeException();
}
$this->rubriche = $rubriche;
}

the html code I added via jQuery is equals to that which is generated by Symfony himself but with different ids, from what I understood "symfony/src/Symfony/Component/Form/Util/PropertyPath.php" when handling the data from post, creates an array of objects Rubrica and not an ArrayCollection of Rubrica. I need to tell symfony not to do this, is there a way? Is there any other workaround?

Please excuse me for the poor explanation, if you need anything more to understand this you're wellcome

Linuxatico

Issue 2:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
x.y.z

Possibility to create a new http kernel event KernelEvents::CONTROLLER_CALL to act in

https://github.com/symfony/http-kernel/blob/master/HttpKernel.php#L151 to be replaced for something like this :

$event = new FilterControllerCallEvent($this, $controller, $arguments, ....);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_CALL, $event);
$response = $event->getResponse();

I can help with this feature if need.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

The current withTypescript example works well for client-side only NextJS implementations. However, given that Next5 now loads Typescript, it isn't clear exactly what combination of tsconfig.json/next.config.(t|j)s/tsc/babel/ts-node/babel-node needs to be set for an implementation with a server.ts file to work with correct source maps etc.

A simple example that renders a hello world page for both 'yarn dev' demo'ing hot reloading, and 'yarn build && yarn start' would be great.

Issue 2:
Hello everyone!

Help required.

I am now on NextJS learning guid. Lesson №6 - fetching data. Step №3.

When i do all steps in lesson, where we first time trying to fetch data from external public api in getInitialProps(https://api.tvmaze.com/search/shows?q=batman) and type in terminal "npm start dev", dev server is started on localhost:3000, but i get an error:

request to https://api.tvmaze.com/search/shows?q=batman failed, reason: connect ECONNREFUSED 88.99.29.81:443

FetchError: request to https://api.tvmaze.com/search/shows?q=batman failed, reason: connect ECONNREFUSED 88.99.29.81:443
at ClientRequest.<anonymous> (C:\Sandbox\React training\test3NextJsLearning\next-learn-demo-master\6-fetching-data\node_modules\node-fetch\lib\index.js:1455:11)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

I spend alot of time in search how to solve it and find this - marked as duplicate of next one but it seems that its dosnt work for me.

I have .npmrc file with next config:

strict-ssl=false
registry=http://registry.npmjs.org/
http-proxy= http://myCompanyProxy:8080
https-proxy= http://myCompanyProxy:8080

both are http.

I start feel myself a little bit silly because i still dont understand how to fix it :c

System:

OS: Windows 7

Binaries:

Node: 8.10.0

npm: 6.7.0

Browsers:

Firefox: 68.0.2,

IE: 11,

P.s. i wanted write this in spectrum chat, but i have crashed websocket connection and my FF trying to reconnect in loop.
Issue 1:
Please see comments:

interface ObjectHash {
[key: string]: any;
}

var hash: ObjectHash;

hash = {
"key": "value"
}

declare class Model {
defaults: ObjectHash;
}

class MyModel1 extends Model { // Okay
defaults = hash;
}

class MyModel2 extends Model { // Why ERROR?!
defaults = {
"key": "value"
};
}

class MyModel3 extends Model { // Okay
defaults: ObjectHash = {
"key": "value"
};
}

Issue 2:
Hi,

I think this is a bug. Please see comments for details:

interface ObjectHash {
[key: string]: any;
}

// OK
var defaults: ObjectHash = {
title: "untitled",
};

// This is error, expected
defaults = ["a"];

declare class Model {
defaults: ObjectHash
}

// Index signatures of types '{ title: string }' and 'ObjectHash' are incompatibe.
// Why?! Unexpected error.
class MyModel extends Model {
defaults = {
title: "untitled"
};
}

// It works when assigned in the constructor
class MyModel1 extends Model {
constructor() {
// OK
this.defaults = {
title: "untitled"
}
super();
}
}

// Trying different way
declare class Model2 {
// 'defaults' is method
defaults(): ObjectHash
}

// Same here. Why is this an error? Is this a bug?
class MyModel2 extends Model2 {
defaults() {
return {
title: "untitled"
}
}
}
Issue 1:
Issue Type:

Bug Report

Ansible Version:

1.8-devel only

Environment:

What OS are you running Ansible from: Ubuntu 14.04

What OS are you managing? Centos 6

Summary:

this commit e294e31 seems to cause,

service: name=example-service state=started changed=yes

always returns changed. The same task before this commit don't report changed.

Expected Results:

should not report changed.

Actual Results:

reports changed.

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.8 (latest devel)

Environment:

Centos 6.5

Summary:

When enabled parameter of the service module is used, the module always reports as changed. This works without any problems on Ansible 1.7.

Steps To Reproduce:

You can use this playbook:

---
- hosts: test
tasks:
- service: name=ntpd enabled=yes

Expected Results:

It should report as unchanged:

PLAY [test] ************************************************************

TASK: [service name=ntpd enabled=yes] *****************************************
ok: [test]

PLAY RECAP ********************************************************************
test : ok=1 changed=0 unreachable=0 failed=0

Actual Results:

It always reports as changed, no matter how many time your run the playbook:

PLAY [test] ************************************************************

TASK: [service name=ntpd enabled=yes] *****************************************
changed: [test]

PLAY RECAP ********************************************************************
test : ok=1 changed=1 unreachable=0 failed=0
Issue 1:
Summary of the new feature/enhancement

Allow the user to switch between every FancyZone template available by using a keyboard shortcut.

I'm a software developer, and sometimes I need different configurations on my screen given the applications I'm running. Like, sometimes I need several terminals, but after that, I'm running an IDE and the application I'm developing side-by-side.

Users like me would just switch the FancyZone template, start opening the desired applications, and they would be placed at the adequate slots.

Proposed technical implementation details (optional)

By using a keyboard shortcut, switch between FancyZone templates.

Issue 2:
User defined, meaning that the user can actually customize the hotkeys to there own liking

not Microsoft Predefined hotkeys, that cant be changed (microsoft is bad at this)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

App should automatically reload with new CSS changes.

Current Behavior

When making CSS changes, the app throws an error:

Error: StyleSheetRegistry: styleId: `jsx-215943140` not found.

A page refresh clears the error and loads the app correctly.

Steps to Reproduce (for bugs)

Install next@canary

Create a new React.Component in pages/index.js

Add some <style jsx></style>

Open the app and make some CSS changes

Show code example

import React, { Component } from 'react'

export default class Index extends Component {
render() {
return (
<div>
<h1>next@canary</h1>
<style jsx>{`
h1 {
font-size: 3rem;
}
`}</style>
</div>
)
}
}

Initially I thought it was an issue with my .babelrc config (as I was using PostCSS plugins) but I eliminated those and was still experiencing the issue.

If I change the stateful component to a stateless component it works as expected.

I created a sample repository here to allow replication of the issue. This issue could be related to #4265 but there might be some differentation.

Context

The issue primarily affects the developer experience. It is managable but irritating.

Your Environment

Tech
Version

next
6.0.1-canary.1

node
8.9.0

OS
macOS 10.13.4

browser
Chrome 66.0.3359.139

Issue 2:
In server/build/webpack/utils.js, nextPagesDir is absolute and is used to add _error.js and _document.js as webpack entries.

This absolute path prevents you from compiling the code in one dir, and then moving it to another dir. All paths need to be relative.

https://github.com/zeit/next.js/blob/e093441bad588e98765a05df90f76f75283eda07/server/build/webpack/utils.js#L4

I am using pnpm, this could also be related...

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

Your Environment

Tech
Version

next
5.0.0

node
8.1.2

OS
macOS + Ubuntu

browser

etc
Issue 1:
Do I flutter start every time I make a change, waiting for the app to compile each time, or is there something better? (I'm running on device atm, not Simulator.) It looks like there is live reloading and more for Android at least.

Issue 2:
If a developer makes a change in their editor, it should take 3 seconds or less to see the effect of that change on their iOS device.

(assuming they already have their device connected, and configured.)
Issue 1:
Broken documentation link:

https://docs.scipy.org/doc/scipy/reference/generated/scipy-integrate-odeint-1.py

On doc web page:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.odeint.html#scipy.integrate.odeint

Issue 2:
I wanted to consult the source code of interpolate univariate at the following link :

http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.UnivariateSpline.html#scipy.interpolate.UnivariateSpline

But the source code gave me a dead link :

http://docs.scipy.org/doc/scipy/reference/generated/scipy-interpolate-UnivariateSpline-1.py
Issue 1:
Version

2.6.10

Reproduction link

https://codepen.io/anon/pen/ZZvVWv

Steps to reproduce

Create a component that contains a button or input sandwiched in between two other elements that are both conditionally rendered using v-if against the same piece of data:

new Vue({
el: '#app',
template: `
<div id="app">
<div v-if="open">Hello</div>
<input key="input" ref="input" @focus="open = true" @blur="open = false">
<div v-if="open">World</div>
</div>
`,
data: {
open: false
}
)

Now click the input to try and focus it.

What is expected?

The two conditional elements appear, the input is focused.

What is actually happening?

The input is focused but immediately blurred, the component renders twice, and the conditional elements are hidden. It is impossible to actually focus the input. This is bizarre because the element is the exact same DOM node, you can confirm via logging, and that's what key is there to ensure.

This example looks silly but it's a real problem when you start trying to build things like autocomplete components, where you want to render an invisible clickable backdrop to add simple "click away" behavior (this is how GitHub does click away, it's the only bullet proof approach I've found especially when you start using portals as well) and you also need to render the autocomplete dropdown when the input is focused.

Issue 2:
Experienced real trouble migrating to Vue 2

because:

#Duplicate Slots removed

How it works in Vue 1.x

https://jsfiddle.net/Yenisey/hchx3v1o/

Consider, there must be API method, or some other way to clone this.$slots.default
Issue 1:
TypeScript Version:

1.8.9

Code

// A self-contained demonstration of the problem follows...
<div>{integer}<span>,{fraction}</span></div>

Expected behavior:

Same as in example

Actual behavior:

<div>{integer}<span>, {fraction}</span></div>

Formatter inserts space after the comma inside tags

Issue 2:
TypeScript Version:

1.8.9

I should first mention that i using Typescript inside Titanium Mobile Framework. Which means no browser environment.

It also means that sometimes (compiled library modules) to do require('test') i actually have to write require('mymodule/test')

Now my issue is not about the actual require but about the "imported definition" that goes with it.

For example if i have this

//test.ts
class A {
toString(){return "test";}
}
export = A

Now i want to use that class in another ts file. If i do this

import A = require('test');

it won't work because i actually have to write

import A = require('mymodule/test');

but then the compiler wont find A declaration because it wont find the test.ts file

Another use case is when we actually hide the require. For example i have that class

class Loader {
__creators = {}
__constructors = {}
registerCreator(name: string) {
this.__creators[name] = (...args) => {
if (!this.__constructors[name]) {
this.__constructors[name] = require(name);
}
return this.__constructors[name].call(this, args);
}
}
create(name:string, ...args) {
return this.__creators[name](args);
}
}

I am using that class to only require(which means load the js file) when needed.

But because of that when i use Loader.create there is no way for me to cast the resulting object to A for example because i did not use import

Right now i solve that by creating an interface in a declaration file and then make my class implement that interface. But that's a real pain because i have to duplicate all my classes definitions (which are already generated for example in test.d.ts

So what i would need is a way to only import declaration. I am not sure of the form it could take.

Maybe something like

import declaration A from 'test';

or

/// <reference path="test.d.ts" /> // i actually can't do this right now because test.d.ts is generated by the compiler

Or may be there is already a way to do this?

Thanks a lot, love Typescript!
Issue 1:
Symfony version(s) affected: 3.4.16

Description

/usr/bin/php ./bin/console lint:twig src

PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Twig_Environment::addExtension() must implement interface Twig_ExtensionInterface, boolean given, called in /var/cache/dev/ContainerLpxnnt7/appDevDebugProjectContainer.php on line 880 in /vendor/twig/twig/lib/Twig/Environment.php:670

How to reproduce

I just updated the symfony library and pass twig lint.

If I get back, it pass.

Issue 2:
Symfony version(s) affected: 3.4.16

Description

After update to 3.4.16 version inlined dependencies (in my case with circular dependencies) dumped with use $this->privates value from the container for return as service.

But every value from $this->privates is a boolean.

How to reproduce

git clone https://github.com/andrew-demb/sf-di-3.4.16-circular-reference-dump.git
cd sf-di-3.4.16-circular-reference-dump/
php bug.php

Additional context

Repository with reproduce script: https://github.com/andrew-demb/sf-di-3.4.16-circular-reference-dump

This PR #28388 represents a change for PhpDumper to use privates in dumped container.

Some pieces from cached container:

class ProjectServiceContainer extends Container
{
private $parameters;
private $targetDirs = array();

public function __construct()
{
$this->services = array();
$this->methodMap = array(
'service_one' => 'getServiceOneService',
'service_two' => 'getServiceTwoService',
);
$this->privates = array(
'service_one' => true,
'service_two' => true,
);

$this->aliases = array();
}
// ...
protected function getServiceTwoService()
{
$a = ${($_ = isset($this->services['service_one']) ? $this->services['service_one'] : $this->getServiceOneService()) && false ?: '_'};

if (isset($this->privates['service_two'])) {
return $this->privates['service_two'];
}

return $this->services['service_two'] = new \ArrayObject(array('source' => $a));
}

YAML config

services:
service_one:
class: ArrayObject
calls:
- [ offsetSet, ['sv', '@service_two'] ]

service_two:
class: ArrayObject
arguments:
-
source: '@service_one'