WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Original report : http://stackoverflow.com/questions/28844917/typescript-cant-find-external-module-when-referenced-by-two-different-files

Given the structure :

./first/shared.ts
./first/second/class_a.ts
./first/second/class_b.ts
./third/class_c.ts

and files :

shared.ts:
class Shared{}
export = Shared;

class_a.ts:
import Shared = require('../shared');
class A{}
export = A;

class_b.ts:
import A = require('./class_a');
import C = require('../../third/class_c');
class B {}
export = B;

class_c.ts:
import Shared = require('../first/shared');
class C {}
export = C;

Compiling class_b.ts fails with the error that it can't find shared.ts:

tsc --module commonjs class_b.ts

../../third/class_c.ts(1,25): error TS2307: Cannot find external module '../first/shared'.

It should not error.

Note that it doesn't happen in the language service

Issue 2:
(Also posted on StackOverflow: https://stackoverflow.com/questions/28844917/typescript-cant-find-external-module-when-referenced-by-two-different-files)

I may be missing something obvious, but Typescript's module resolver for commonjs isn't working as expected.

Given the following directory structure and files:

./first/shared.ts

./first/second/class_a.ts

./first/second/class_b.ts

./third/class_c.ts

Where:

class_a references shared.ts

class_b references class_a.ts and class_c.ts

class_c references shared.ts

Specifically:

shared.ts:

class Shared{}
export = Shared;

class_a.ts:

import Shared = require('../shared');
class A{}
export = A;

class_b.ts:

import A = require('./class_a');
import C = require('../../third/class_c');
class B {}
export = B;

class_c.ts:

import Shared = require('../first/shared');
class C {}
export = C;

All compile individually, except class_b.ts, using the following compiler invocation:

tsc --module commonjs class_b.ts

Compiling class_b.ts fails with the error that it can't find shared.ts:

../../third/class_c.ts(1,25): error TS2307: Cannot find external module '../first/shared'.

Note that if you reverse the order of imports in class_b.ts, you get a different error:

class_a.ts(1,25): error TS2307: Cannot find external module '../shared'.

It seems the compiler is finding shared.ts the first time it is imported, but not the second time.

This is with tsc 1.4.1.0.
Issue 1:
Issue Type:

Bug Report

Ansible Version:

ansible 1.6

Environment:

Ubuntu 13.10

Summary:

The module does not handle hosts file like this:

10.0.3.204 ansible_ssh_user=ubuntu

Steps To Reproduce:

Install Ansible from the devel branch of the repository.

Update hosts file with content in summary.

Create a playbook using the synchronize module.

Run it.

Expected Results:

It does synchronize files.

Actual Results:

It does fail with the following message:

failed: [10.0.3.204 ansible_ssh_user=ubuntu] => {"failed": true}
msg: unsupported parameter for module: ansible_ssh_user
FATAL: all hosts have already failed -- aborting

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.6

Environment:

Ubuntu 13.10 amd64

Summary:

Ansible is unable to handle aliases that are not "real" hostnames:

cloudncode-ansible-0 ansible_ssh_host=10.0.3.204 ansible_ssh_user=ubuntu

Steps To Reproduce:

Install Ansible from GitHub devel branch.

Update hosts file with content in summary.

Create a dummy playbook.

Run it.

Expected Results:

Expected to not fail.

Actual Results:

fatal: [cloudncode-ansible-0 ansible_ssh_host=10.0.3.204 ansible_ssh_user=ubuntu] => {'msg': 'FAILED: [Errno -2] Name or service not known', 'failed': True}
Issue 1:
I recently tried babel@7.0.0-beta.35 and I noticed that there's a regression.

My dependency chain is:

(my project) <-- @babel/preset-stage-0 <-- @babel/preset-stage-1 <-- @babel/plugin-proposal-decorators

It looks like the pre-beta.35 version of the plugin did opt out because of this code:

babel/packages/babel-plugin-proposal-decorators/src/index.js

Lines 375 to 381
in
a7c9264

if (

!path

.get("right.callee")

.isIdentifier({ name: state.initializerWarningHelper.name })

) {

return;

}

While beta.35 does not opt out at its replacement:

babel/packages/babel-plugin-proposal-decorators/src/index.js

Line 261
in
8a4124b

if (!path.get("right.callee").isIdentifier()) return;

(introduced via 9cc0a26)

I was not able to track it down to a minimum reproducible example yet.

All I was able to check is that the result of expression path.get("right.arguments") in

babel/packages/babel-plugin-proposal-decorators/src/index.js

Line 268
in
8a4124b

path.get("right.arguments")[1].node,

has length of 1.

I also checked that adding if (!path.get("right.arguments")[1]) return; prevents the error from being triggered but it was only a blind guess of mine to add that line there. I'm not aware of the consequences of such move

software
version(s)

Babel
7.0.0-beta.35

Babylon
n/a

node
8.9.1

npm
5.5.1

Operating System
macOS 10.13.1

Issue 2:
Choose one:

bug

feature

Repro repository.

Input Code

global.foo = f()

Babel/Babylon Configuration (.babelrc, package.json, cli command)

{
"plugins": [
"@babel/plugin-proposal-decorators"
]
}

Expected Behavior

It should compile the code.

Current Behavior

TypeError: Cannot read property 'node' of undefined
at PluginPass.AssignmentExpression (<dir>/node_modules/@babel/plugin-proposal-decorators/lib/index.js:139:224)
at newFn (<dir>/node_modules/@babel/traverse/lib/visitors.js:223:21)
at NodePath._call (<dir>/node_modules/@babel/traverse/lib/path/context.js:64:19)
at NodePath.call (<dir>/node_modules/@babel/traverse/lib/path/context.js:38:17)
at NodePath.visit (<dir>/node_modules/@babel/traverse/lib/path/context.js:99:12)
at TraversalContext.visitQueue (<dir>/node_modules/@babel/traverse/lib/context.js:139:18)
at TraversalContext.visitSingle (<dir>/node_modules/@babel/traverse/lib/context.js:98:19)
at TraversalContext.visit (<dir>/node_modules/@babel/traverse/lib/context.js:180:19)
at Function.traverse.node (<dir>/node_modules/@babel/traverse/lib/index.js:76:17)
at NodePath.visit (<dir>/node_modules/@babel/traverse/lib/path/context.js:106:18)

Your Environment

software
version(s)

Babel
7.0.0-beta.35

Babylon

node
9.3.0

npm
5.5.1

Operating System
Fedora 27
Issue 1:
Challenge Name

https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap

Issue Description

The final product of the kitten picture tasks is quite ugly (at least on firefox). The "Loving" choice in personality section drops down a line instead of staying on the row. And the button text on some buttons overflow or are too far to the right.

Browser Information

Browser Name, Version:

Firefox, 51.0.1 (64 bit)

Operating System:

MacOS

Mobile, Desktop, or Tablet:

Screenshot

Issue 2:
Forewarning, this may be bike-shedding worthy....

Workspace

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36. (Chrome on Windows 7)

Setting

The CatPhoto is where you make an web page and one component is adding three buttons like below.

Problem

But then you will eventually make it into something like this below.

Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)

Mobile Version

Solution

So I propose two things:

Change the "Delete" button into a "Edit" button so it'll fit on the button better.

This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge Warn your Users of a Dangerous Action where the button is added.

Then change the challenges up until the last one on Line up Form Elements Responsively with Bootstrap.

You could also change the icon if appropriate.

Add new challenge to add in making all three of those buttons also have the class btn-sm to make the text inside the button not seem all smushed.

This one will require a little more effort in making an entirely new challenge, which may be unnecessary.

Example:

<button class="btn btn-block btn-info btn-sm"><i class="fa fa-info-circle"></i> Info</button>

If the proposed changes were made, the finished app will look like this:
Issue 1:
Challenge target-the-children-of-an-element-using-jquery has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

```

Issue 2:
Challenge target-the-children-of-an-element-using-jquery has an issue.

User Agent is: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

<script>
$(document).ready(function() {
$("#target1").css("color", "red");

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

```
Issue 1:
I have a YML file that I parse, which has the following syntax for an empty array:

some_field: [ ]

Upon dumping the same YML file, and not adjusting some_field, the value is dumped as:

some_field: { }

My understanding is that the { } syntax is intended for objects, not arrays. As such, I isolated the code found in the dumpArray function which was introducing this behavior:

https://github.com/symfony/yaml/blob/2.8/Inline.php#L191

return sprintf('{ %s }', implode(', ', $output));

.... adjusted to ....

return sprintf('[ %s ]', implode(', ', $output));

... fixes this issue.

Is there a reason why this is using the object-based syntax and not the array syntax?

Issue 2:
Right now YAML component dumps an empty array like this: $dump = array('test' => array()); as test: { }. In some applications that use the YAML it needs to be test: [ ] a list instead of a hash.

In the symfony codebase on this line (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Yaml/Inline.php#L160) I found:

$keys = array_keys($value);
if ((1 == count($keys) && '0' == $keys[0])
|| (count($keys) > 1 && array_reduce($keys, function ($v, $w) { return (integer) $v + $w; }, 0) == count($keys) * (count($keys) - 1) / 2)
) {

It looks to me if I pass $dump = array('test' => array('0' => '')) It should work? However this code outputs: test: - ''. Its successfully using the list format but its passing the blank value. I think another conditional is missing to be able to create: test: [ ]. I checked the unit tests and I can't find anywhere that explains what (1 == count($keys) && '0' == $keys[0]) was intended for other than this purpose.

EDIT: It doesn't look to be hitting that section of code at all since my indent level is really high. However I am still tring to figure out how to get it to output a [ ] instead of hash { } since it is invalid yaml for what I am using it for and a blank array defaults to the hash.
Issue 1:
When I quit Atom and reopen, the tabs that I had used disappeared. Can we have Atom remember the last tabs that were open before quitting?

Issue 2:
A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.

This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.

It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.
Issue 1:
Summary of the new feature/enhancement

Proposed technical implementation details (optional)

Issue 2:
Summary of the new feature/enhancement

Support running commands, utilities with parameters.

The older run box supports commands and parameters to be used in cases like this:

cmd /k [your command here]

ssh username@server.local

runas.exe .......

wt (Launch Windows Terminal)

ping [server_address_here]

and more!

Could you please allow commands to be used with their optional parameters? Like the old run box did ?
Issue 1:
In WebVR one could simply use camera.getWorldDirection() to find the direction in which the camera is pointed in VR. As of r113, in WebXR this same call returns information about the parent rig of the camera, rather than the camera, at least in Oculus browser on both Quest and Go.

The culprit is the line this.updateMatrixWorld( true ) in the function, because without it the correct camera information is returned. I can't see any recent changes in camera.updateMatrixWorld that would cause the change. Is this just expected behavior in WebXR vs WebVR? If so then camera.getWorldDirection is not useful in this context.

Issue 2:
Description of the problem

If an object has an onBeforeRender function which calls getWorldPosition on the camera argument, and the user is in VR, then that object (and any rendered after it) will stick to the user's face, as though the VR camera jumped to the origin mid-render.

Example: https://ravenworks.ca/temp/threeOBRcamerabug/

Three.js version

r112 (and some earlier, though I'm not sure exactly where it broke; this used to work in 2017, but it doesn't now.)

Browser

my demo only runs in Chrome because of Three dropping WebVR support, but the same bug happens in Firefox if using A-Frame (that's how I discovered the bug)

OS

only tried on Windows 10

Hardware Requirements (graphics card, VR Device, ...)

Oculus Rift
Issue 1:
I am constructing this in my main menu structure:

{
label: 'Delete',
accelerator: 'Backspace',
click: function () {
var focusedWindow = BrowserWindow.getFocusedWindow();
focusedWindow.webContents.send('remove', 'removing');
}

Now I would like to use The Backspace AND the Delete keys as an accelerator. Have tried several combination for the accelerator, like:

accelerator: 'Alt+Backspace,Alt+Delete'

or

accelerator: 'Alt+Backspace'
accelerator: 'Alt+Delete'

But with both attempts, Electron just used the second one. Is there really now way how we can use two keys for the same Accelerator?

Issue 2:
I am constructing this in my main menu structure:

{
label: 'Delete',
accelerator: 'Backspace',
click: function () {
var focusedWindow = BrowserWindow.getFocusedWindow();
focusedWindow.webContents.send('remove', 'removing');
}

Now I would like to use The Backspace AND the Delete keys as an accelerator. Have tried several combination for the accelerator, like:

accelerator: 'Alt+Backspace,Alt+Delete'

or

accelerator: 'Alt+Backspace'
accelerator: 'Alt+Delete'

But with both attempts, Electron just used the second one. Is there really now way how we can use two keys for the same Accelerator?
Issue 1:
I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting

Current behavior

A template that refers to a static property of the component class from formGroup as below fails with "formGroup expects a FormGroup instance. Please pass one in" in Angular 4. Works if the property is a non-static instance member.

<div [formGroup]="metaFormGroup">
...
</div>

export class TestHostComponent implements OnInit {
public static readonly metaFormGroup: FormGroup = new FormGroup({
...
});
...
};

Expected behavior

The template should be able to refer to static members of a component, just like it can refer to instance members.

Please tell us about your environment:

Angular version: 4.0.0

Browser: Chrome

Language: Typescript 2.2.1

Node (for AoT issues): node --version = 7.6

Issue 2:
[ ] bug report
[x] 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

you need to use constructor

Expected/desired behavior

perhaps $class

Reproduction of the problem

http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview

What is the expected behavior?

you have to use constructor

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

to have access to static data

Please tell us about your environment:

Angular version: 2.0.0-rc.4

Browser: Chrome

Language: TypeScript

http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview

related #4707
Issue 1:
Hi!

I found slider, but I did not see how to make a from-to value selection. Does the material-ui support this behavior?

Thanks for the excellent library!

Issue 2:
When an Avatar is used with a Chip component, it's rendered position is not the same as the chip. See screenshot for clarification. My CSS is a little weak, but I think the correct solution is to remove position: 'relative' from the Avatar root class? Can the default 'relative' position be removed from the Avatar root class or should I be manually overriding it on my end? Perhaps the Chip component should override the Avatar root position with 'inherit'? Either of the above solutions fix my issue, but I am not sure which is the correct way.

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

Expected Behavior

I would expect the Avatar to be rendered with the same position as the Chip.

Current Behavior

Currently the Avatar is rendered with the 'relative' position by default.

Environment

Tech
Version

Material-UI
1.0.0-beta.33

React
16.2.0

browser
Chrome 64.0.3282.140

etc
Issue 1:
Which version of Sharding-Sphere do you using?

sharding-jdbc 3.0.0.M1

Expected behavior

shardingConditions.getShardingConditions() should only one

Actual behavior

I get multiple of the same conditions

Steps to reproduce the behavior

sql:select * from table1 where shardingcolumn = *** and ( field1='test' or field2 ='test' )

Only one shardingCondition is met, but shardingConditions.getShardingConditions() contains multiple identical conditions

The final routing result is correct, however ComplexKeysShardingAlgorithm.doSharding() is executed multiple times

Issue 2:
Excuse me, if you use broadcastTables to implement a broadcast table, is it possible to implement a global broadcast? Is the broadcast table set up * or what? Directly realize that all tables are broadcast.

Because I mainly want to realize the function of a redundant data, there are almost hundreds of tables, it seems too troublesome to match all of them, if you add or delete tables, you have to set it up again... Seek answers.
Issue 1:
Elasticsearch 5 introduced better handling of default settings, that has no reference doc.

I wonder if "dealing with defaults" could be linked from cluster settings, index settings, etc.

#Show defaults
GET /_cluster/settings?include_defaults

#Return me to default
PUT /_cluster/settings
{
"persistent": {
"xpack.monitoring.collection.interval" : null
}
}

Issue 2:
Hiya

I'm starting 3 nodes, then creating a mapping, then creating a duplicate (with ignoreDuplicate=false).

It is sufficient to throw the whole cluster out. It doesn't seem to recover.

Run this script a few times, and watch the server logs:

#!/bin/bash
curl -XGET 'http://127.0.0.1:9200/_cluster/nodes'
curl -XDELETE 'http://127.0.0.2:9202/es_test_1/'
curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test/_mapping?ignoreDuplicates=false' -d '
{
"properties" : {
"num" : {
"type" : "integer"
},
"text" : {
"type" : "string"
}
}
}
'
curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test/_mapping?ignoreDuplicates=false' -d '
{
"properties" : {
"num" : {
"type" : "integer"
},
"text" : {
"type" : "string"
}
}
}
'
curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test_2/_mapping?ignoreDuplicates=false' -d '
{
"properties" : {
"num" : {
"type" : "integer"
},
"text" : {
"type" : "string"
}
}
}
'
curl -XDELETE 'http://127.0.0.2:9202/es_test_1/'
curl -XDELETE 'http://127.0.0.2:9202/es_test_2/'
curl -XPUT 'http://127.0.0.2:9202/es_test_1/' -d '
{}
'
curl -XPUT 'http://127.0.0.2:9202/es_test_2/' -d '
{}
'
curl -XPUT 'http://127.0.0.2:9202/_all/type_1/_mapping?ignoreDuplicates=false' -d '
{
"properties" : {
"num" : {
"store" : "yes",
"type" : "integer"
},
"text" : {
"store" : "yes",
"type" : "string"
}
}
}
'
curl -XPUT 'http://127.0.0.2:9202/_all/type_2/_mapping?ignoreDuplicates=false' -d '
{
"properties" : {
"num" : {
"store" : "yes",
"type" : "integer"
},
"text" : {
"store" : "yes",
"type" : "string"
}
}
}
'
curl -XPOST 'http://127.0.0.2:9202/_flush?refresh=true'