WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I tried using the @types/request package and had problems.

Latest release seems to have added a duplicate 'time' identifier to the CoreOptions interface

node_modules/@types/request/index.d.ts(146,9): error TS2300: Duplicate identifier 'time'.
node_modules/@types/request/index.d.ts(157,9): error TS2300: Duplicate identifier 'time'.

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @soywiz @Bartvds @joeskeen @ccurrens

Issue 2:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @gaspard @vbfox

As mentioned in React documentation, a stateless component can return false for empty content. Currently StatelessComponent is defined as:

interface StatelessComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;

whereas Component has

class Component<P, S> {
constructor(props?: P, context?: any);
// ...snip...
render(): JSX.Element | null | false;

Shouldn't these types be the same (including eliminating the ReactElement vs JSX.Element difference)? And to avoid future such issues (#14064, this one) it should probably be a named type, e.g. RenderResult.

A search for | null also comes up with ComponentSpec.render which probably should also have the same result type.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): (built from latest source as of July 17th, 2019, morning)

I am working on implementing some new VT escape sequences (PR here), but I've run into a strange problem. What the sequences do (or are supposed to do) is not important here. The problem is that in certain circumstances, something is reordering VT escape sequences in my content (which is very surprising to me).

The control sequences in question are XTPUSHSGR and XTPOPSGR: [CSI]#p and [CSI]#q, respectively. Note in the string below, how there is an XTPUSHSGR sequence, then a normal SGR sequence to set the color to red, then an XTPOPSGR sequence (and then a normal SGR sequence to reset the color).

When I open OpenConsole.sln in Visual Studio 2019, with the CascadiaPackage set as the default project to debug, and then F5 to start debugging it, it launches a terminal running Windows PowerShell. When I send my string to the console, something is moving the XTPUSHSGR and XTPOPSGR sequences to the very beginning of the string!

Steps to reproduce

Start OpenConsole.sln in Visual Studio 2019. Make sure CascadiaPackage is the default project, and platform is set to x64, and build the solution if necessary.

F5 to start debugging a new instance. You should now have a PowerShell instance in the terminal.

In the PowerShell instance in the terminal, run the following commands:

$esc = [char] 0x1b
$s = "Hello. Push:${esc}[#p ${esc}[91m this text is RED Pop:${esc}[#q FG should " +
"no longer be red (unless it was red before) courtesy reset: ${esc}[0m"

Set a breakpoint at TerminalControl.dll!Microsoft::Console::VirtualTerminal::StateMachine::ProcessString (the two-parameter one).

In the PowerShell instance in the terminal, run the command $s to output the string.

When you hit the breakpoint, observe the value of rgwch.

Expected behavior

The content of the string should be just as it was set in PowerShell.

Actual behavior

The XTPUSHSGR and XTPOPSGR sequences have been moved to the beginning of the string!

My first thought was that PowerShell must be doing something funny, but I attached windbg to the PowerShell and set a breakpoint on kernel32!WriteConsoleW, and the string passed in there is correct. So something is happening after the string has left PowerShell's hands.

Issue 2:
Steps to reproduce

build OpenConsole.sln

Expected behavior

conpty.dll should be output

Actual behavior

conpty is built as a static lib
Issue 1:
I think that cloning a scene and using the original scene in one renderer and the cloned scene in another renderer should be possible. Currently there is a conflict where the two renderers think they are sharing resources.

I have created a fiddle http://jsfiddle.net/vAxYx/ to demonstrate. At the bottom, if both renderers are enabled you get in the console a lot of warning messages which boil down to sharing resources between the renderers. If either renderer is used then everything is fine.

Issue 2:
Hey --

Trying to render the same scene to two different (WebGL) renderers with two different cameras. The effect is such that only the first renderer to be asked to render the scene within my draw loop is actually drawn.

function draw() {
debugRenderer.render(scene, debugCamera);
renderer.render(scene, camera);
}

Have you encountered this before?
Issue 1:
With IoT, WebRTC and VoIP DTLS (Datagram Transport Layer Security) is becoming more and more important.

It would be great if the Go standard libray has support for it like it has for TLS.

It would allow to implement secure versions of protocols using UDP as the underlying protocol like CoAP for example.

Issue 2:
by kzjeef:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What does 'go version' print?
go version go1.3 darwin/amd64

Testing:

Testing require setup and tearDown function in test case file wide,
like the test framework like
rspec(http://old.rspec.info/documentation/before_and_after.html)
Each test case can have a setup method to allow do some setup stuff, like create a DB
connection or start a HTTP server etc.

After the test case, can have a function clear some up, so a lot of duplication setup in
each test case can be avoid.

I think rspec is really have a good point, but Golang can at least add some function
like, TestSetup () and TestEnd() function in each test file to archive same propose.
Issue 1:
Kubernetes e2e suite.Generated release_1_2 clientset should create pods, delete pods, watch pods (from (junit_24.xml))

Failing for the past 1 build (Since Unstable#28905 )
Took 5 min 7 sec.
Stacktrace

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/generated_clientset.go:158
Expected error:
<*errors.errorString | 0xc20850e0a0>: {
s: "gave up waiting for pod 'podf9342a69-d526-11e5-a8f5-42010af00003' to be 'running' after 5m0s",
}
gave up waiting for pod 'podf9342a69-d526-11e5-a8f5-42010af00003' to be 'running' after 5m0s
not to have occurred

And e2e logs:

Feb 16 19:36:45.943: INFO: Waiting for pod podf9342a69-d526-11e5-a8f5-42010af00003 in namespace 'e2e-tests-clientset-kx6g0' status to be 'running'(found phase: "Pending", readiness: false) (4m58.478121768s elapsed)
Feb 16 19:36:47.943: INFO: Unexpected error occurred: gave up waiting for pod 'podf9342a69-d526-11e5-a8f5-42010af00003' to be 'running' after 5m0s
[AfterEach] Generated release_1_2 clientset
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework.go:83

Issue 2:
Forked from #2841, #4926 (comment), #9399, #11361, #5465, and other issues.

We need to decide how we want examples to be written, document that, and make existing examples conform.

Issues:

Decide objectives: teaching system concepts, demonstrating system features, getting started quickly with a particular application, providing sample configurations that can be extended by the user for real use cases, ...

If teaching concepts or demonstrating features, which ones? How many examples need to illustrate the same concepts/features?

What techniques do we want to use to make the examples engaging: interactivity, rewards, etc.?

Does it need to be a realistic application configuration (e.g., HA)?

Should the example demonstrate the application being used?

System best practices

https://github.com/kubernetes/kubernetes/blob/master/docs/user-guide/config-best-practices.md

Show individual files and then combined files?

https://github.com/kubernetes/kubernetes/blob/master/docs/user-guide/pods.md#durability-of-pods-or-lack-thereof

Show singleton pods and then demonstrate why controllers are needed for self-healing?

Secret

Cross references to other documentation (e.g., concept and feature documentation)

Consistent organization (e.g., should the summary appear at the beginning or the end?)

Keeping examples up to date with new features and evolving conventions

Repo locations for text vs. config and code

Whether/how to show multiple solutions (e.g., kubectl run and yaml)

Shell command format (e.g., prompt or no prompt)

kubectl output or not

Screenshots

How to make it possible to run examples without cloning the whole repo

System addons that can be assumed (e.g., DNS)

Examples that show the cluster being created and destroyed in addition to deploying the application

Cloud-provider-specific examples vs. portable examples

Unit and end-to-end testing of the examples

cc @aronchick
Issue 1:
deno version 1.1.0

index.tsx

//@deno-types="https://deno.land/x/types/react/v16.13.1/react.d.ts"
import React from "https://cdn.pika.dev/react@16.13.1";
console.log(React);
const App = () => {
return <div>Hello deno</div>;
};

console.log(<App />);

use deno run index.tsx

output:

{
$$typeof: Symbol(react.element),
type: [Function: App],
key: null,
ref: null,
props: {},
_owner: null
}

no problem, but use deno bundle index.tsx index.js, then

browser to index.html

<body>
<script src="index.js"></script>
</body>

Issue 2:
Steps to reproduce

Run deno bundle https://deno.land/x/once/index.js

Expected behavior

It prints a bundled JavaScript code

Actual behavior

error TS5012: Cannot read file 'https://deno.land/x/once/index.js': Error: assert.

►
error TS6053: File 'https://deno.land/x/once/index.js' not found.

►

Found 2 errors.

I didn't try to bundle remote URL at first, instead, I tried bundling a local file (deps.ts) that import remote JS file. No compile errors occur, but a runtime error (cannot read property of undefined) was thrown when attempting to run it in the browser and in Node.js.
Issue 1:
To connect with Trello API, this is done in a popup after filling access, I have a blank page ...

Could you help me ?

Thank you !

You try connect with this access :

login : jerryxilimm-9589@yopmail.com

password : jerryxilimm-9589

My code test :

Package.json :

{
"name" : "NQ trello",
"version" : "0.1.0",
"main" : "main.js"
}

Main.js :

var app = require('app');
var BrowserWindow = require('browser-window');
require('crash-reporter').start();

var mainWindow = null;

app.on('window-all-closed', function() {
if (process.platform != 'darwin')
app.quit();
});

app.on('ready', function() {

mainWindow = new BrowserWindow({
width: 800,
height: 600,
'node-integration': false
});

mainWindow.loadUrl('file://' + __dirname + '/index.html');

mainWindow.on('closed', function() {
mainWindow = null;
});
});

Index.html :

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, maximum-scale=1" media="(device-height: 568px)"
<title>Test</title>

<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="https://api.trello.com/1/client.js?key=6c3067ffd2a5feda29e39e1c8df9e3a8"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#login').click(function(ev){
Trello.authorize({
type: 'popup',
response_type: 'token',
name: 'TEST',
expiration: '30days',
interactive: true,
success: function (data){
alert('Connexion OK');
},
error: function () {
alert('Connexion KO');
}
});

ev.preventDefault();
});

function getMe(){
Trello.get('members/me', {}, function (data){
alert(JSON.stringify(data));
}, function (){
alert('Don\'t retrieve information about me....')
});
}
});
</script>
</head>
<body ontouchstart="">
<div id="app">
<a href="#" id="login">LOGIN</a>
</div>
</body>
</html>

Issue 2:
Browser-Window node-integration breaks after POST. require / global are undefined in browser-window after a POST request. I've seen this behavior since I first used Electron - 0.26.0. Still happens in 0.28.1. Here is simple way to reproduce:

package.json

{
"name": "PostExample",
"version": "0.1.0",
"main": "main.js",
"description": "Post Loses Global"
}

main.js

var app = require('app')
var BrowserWindow = require('browser-window')

var mainWindow = null;

app.on('window-all-closed', function() {
app.quit()
});

app.on('ready', function() {

mainWindow = new BrowserWindow({
"node-integration": true,
});

mainWindow.loadUrl('file://' + __dirname + '/index.html')

mainWindow.openDevTools()

});

index.html

<html>
<script type="text/javascript">
console.log(typeof global)
try{
var fs = require("fs");
} catch(e){
console.warn("ERROR", e)
}
</script>
<body>
<h1>Posts to self</h1>
<form action="" method="post">
<input type="text" name="somevar" value="val" />
<button type="submit">Submit to see Error</button>
</form>
</body>
</html>
Issue 1:
I'm submitting a ... (check one with "x")

[ ] 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

If a subclass component has any field marked @ViewChild, any other @ViewChild field in an abstract superclass will not evaluate.

Expected/desired behavior

Both the superclass @ViewChild and the subclass @ViewChild should be populated.

Reproduction of the problem

https://plnkr.co/edit/w5EvslQbHMMVqjx8v52U

The superclass @ViewChild does populate from the subclass template, but only if the subclass @ViewChild is commented out.

If uncommented, the subclass @ViewChild is populated, but the superclass one is not.

What is the expected behavior?

Both the superclass @ViewChild and the subclass @ViewChild should be populated.

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

Multiple components that inherit common code but supply their own template. The linked plunkr demonstrates the use case where the abstract class encapsulates all the code and logic for the common feature of performing a search, while the child component provides the specific template in which the #searchInput element can be found and whatever other divergent behavior.

Please tell us about your environment:

Angular version: 2.0.0-rc.4

Browser: Chrome 51

Language: TypeScript 1.8

Issue 2:
The repo is using system.js 0.18, but still on systemjs-builder 0.10 (roughly corresponding to system 0.16). There has been a number of breaking changes in the way path configuration works, so this is not be trivial - https://github.com/systemjs/builder.

// cc @IgorMinar @pkozlowski-opensource
Issue 1:
James Cook of slack came up with an interesting problem of inference:

function foo(scale)
output(x) = scale + x
output(::Float64) = output("")
return output
end

bar(x) = foo(5)(x)
baz = foo(5)

Here, bar(3) is inferred to Any, but baz(3) is correctly inferred. Is there any reason for this? Shouldn't both be inferred completely?

Issue 2:
I just built live 0.4 under 64 bit Windows. The build ended successfully, but the result in /usr didn't contain the Git folder as in the windows 0.3 version from the installer. I don't have git on my path and doing things like Pkg.status or readall(git --version) would throw an error. I copied over the Git folder from 0.3.10 and it's now working fine.

Is this intentional or was something left out? If the former, perhaps we should mention this in the build instructions here.
Issue 1:
Summary of the new feature/enhancement

When using the backgroundImage profile setting, the image is anchored to the center of the TermControl. Background images that have a primary point of interest that is not the center are not aesthetically pleasing when either... a large part of this focus is cut off via uniformToFill, or the image is centered via uniform or none and there is a abrupt end to the image before the border of the terminal control.

Image Example

Here is a background designed for anchoring to the bottom right. If we rely on uniformToFill, then we run the risk of the image's focus getting completely cut off. If we use none or uniform, then the image will display in the middle and abruptly end on the right while the console display has more room. Alignment anchoring would allow us to display the background image as it is intended.

Figure A (Left), shows an image making use of alignment. Figure B (Right), shows the outcome of using the same background without alignment.

Proposed technical implementation details (optional)

Changes would require two additional profile settings shown below, (with center being the default for both).

"backgroundImageHorizontalAlignment": "center" | "left" | "right",
"backgroundImageVerticalAlignment": "center" | "top" | "bottom",

These settings will be needed only once, in this location:

terminal/src/cascadia/TerminalControl/TermControl.cpp

Lines 273 to 276
in
02e8389

Media::Imaging::BitmapImage image(imageUri);

_bgImageLayer.Source(image);

_bgImageLayer.HorizontalAlignment(HorizontalAlignment::Center);

_bgImageLayer.VerticalAlignment(VerticalAlignment::Center);

Here, HorizontalAlignment::Center and VerticalAlignment::Center will be replaced with their respective parsed settings of backgroundImageHorizontalAlignment and backgroundImageVerticalAlignment.

These two settings will need constant definitions for of their JSON/serialized values, and Parse/Serialize methods for the enums (in Profile.cpp).

Alternative Setting

One enum setting that combines the flags of HorizontalAlignment and VerticalAlignment could be used. The setting and values would be as follows:

"backgroundImageAlignment": "none" | "left" | "top" | "right" | "bottom"
| "topLeft" | "topRight" | "bottomLeft" | "bottomRight"

A value of none, or missing axis alignment, implies that the default action of centering is used. Alternatively none could be labeled center to make this clearer.

There are pros and cons to this alternative. The pros being the setting name is shorter, and can be fully modified from a single line in profiles.json. The longer enum value names are still relatively simple and easy to remember. The cons being we are not referring to a real existing enum anymore, but a combination of enums. We also require more enum definitions and handling cases than if we made each setting separate. Lastly the implied centering with the values of none, left, top, right, and bottom are not as user-friendly.

Issue 2:
How to do that can be open Windows Terminal and running it when i trying to clicked a .bat batch file?

Like right click deploy.bat --> use "Windows Terminal" open.
Issue 1:
🐛 Bug

The JIT can't pass following code when I tried to passing another instance with same class type.

To Reproduce

not working in python3.6

import torch

@torch.jit.script
class A:
def __init__(self):
self.v = 100

def copy(self, b: 'A'):
self.v = b.v

working in python3.6

class A:
def __init__(self):
self.v = 100

def copy(self, b: 'A'):
self.v = b.v

Expected behavior

RuntimeError:

Expression of type string_literal cannot be used in a type expression:

at demo_class.py:8:23

def copy(self, b: 'A'):

~ <--- HERE

self.v = b.v

Environment

Collecting environment information...

PyTorch version: 1.2.0

Is debug build: No

CUDA used to build PyTorch: 10.0.130

OS: Ubuntu 18.04.3 LTS

GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

CMake version: version 3.10.2

Python version: 3.6

Is CUDA available: Yes

CUDA runtime version: 10.1.243

GPU models and configuration: GPU 0: GeForce GTX 1080

Nvidia driver version: 430.26

cuDNN version: Could not collect

Versions of relevant libraries:

[pip3] numpy==1.15.0

[pip3] torch==1.2.0

[pip3] torch-nightly==1.2.0.dev20190530

[pip3] torchvision==0.2.2.post3

[conda] Could not collect

Additional context

Reference

Stack Overflow

cc @suo

Issue 2:
🐛 Bug

Cannot type a class with an annotation that contains itself using python 3 style comments

To Reproduce

@torch.jit.script
Class UDT(object):
def __init__(x):
self.x = x

def __add__(other: 'UDT'): -> 'UDT'
return UDT(self.x + other.x)

Expected behavior

Should work based on the description of forward references in PEP 484

https://www.python.org/dev/peps/pep-0484/#forward-references

cc @suo
Issue 1:
I'm using version 0.129.0 on a new MacBook Pro, with OSX 10.9.5

Whenever I perform a "Find in Project" command: ⌘⇧F

a new tab is opened titled "Project FindResults".

This tab contains the matches, arranged per file.

I've noticed two different and inconsistent behaviors:

If I start collapsing match sets by file (click the v to change it to >),

the files collapse properly, but any files that were not already displayed in the panel

will not show up as I continue to collapse match sets by file.

This leads to not being able to see all of the matches.

If, instead, I scroll to the bottom first,

I can see all of the matches. Then the collapsing works as expected.

And regardless of the order in which I collapse match sets by file,

I can find all of the matches.

Issue 2:
I'm looking for a word in a project. I know the first result doesn't have what I want. I hide the first result, but there are no more results. I need to scroll to trigger the rest of the results to be fetched, and then I can hide the first listing.

/cc @benogle
Issue 1:
Many attributes in the configurationAttributes section of the debuggers extension point are shared across the different request types 'launch' and 'attach'. Currently they have to be duplicated for the request types.

We should allow for having top-level attributes definitions in the configurationAttributes section. They would be shared between the different request types.

Issue 2:
Today some debug adapters have to duplicate attribute schemas for their "launch" and "attach" requests.

It would be nice if attribute schemas could be easily shared between them (e.g. by contributing them 'one level up')