WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
TypeScript Version:

1.8.4

Visual Studio Version:

Community 2015 CTP 14.0.25008.00

Everything was working fine using TypeScript 1.8.1 beta. After installing 1.8.4 last night, the editor no longer works. Typing does nothing. The onlys keys it responds to are enter, delete, backspace. The three drop-down lists at the top of the editor that let you jump to certain parts of your code are all blank.

I've tried all of the following with no luck.

Repair/uninstall Visual Studio and TypeScript

Disable extensions

Uninstall ReSharper

Clear MEF component cache

Update devenv.exe.config

I also can't seem to stop Visual Studio from updating to the CTP when I reinstall. I started getting a lot of JavaScript language service crashes after installing the CTP. Viewing a compiled TS file would cause JavaScript to stop working.

Issue 2:
Another one of these :)

declare module Test {
export type Container<T> = T | {
[i: string]: Container<T>;
};

export type IStringContainer = Container<string>;
}

Error in tsc version 1.6.2:

C:\Users\jogol\Desktop\Test>tsc TestFile.d.ts
C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:29825
throw e;
^

RangeError: Maximum call stack size exceeded
at createObjectType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:11093:34)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13789:26)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13810:25)
at instantiateList (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13666:33)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13819:41)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13797:42)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13810:25)
at instantiateList (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13666:33)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13819:41)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13797:42)

Seems to be a duplicate of #4443.
Issue 1:
I've installed toastr and sweetalert today. and when I'm about to run it, multiple errors were detected in the jquery part of type declarations. 'Multiple identifiers', 'Duplicate export = '. Kindly let me know if this is valid.

Issue 2:
Hi all,

I installed last version of "@types/express-validator": "^2.20.33" and get this errors on TS compile.

0] 23 export = ExpressValidator;
[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/@types/express-validator/index.d.ts(23,2): error TS2300: Duplicate identifier 'export='.
[0]
[0]
[0] 37 interface Dictionary<T> { [key: string]: T; }
[0] ~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/@types/express-validator/index.d.ts(37,28): error TS2374: Duplicate string index signature.
[0]
[0]
[0] 24 export = ExpressValidator;
[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/express-validator/index.d.ts(24,3): error TS2300: Duplicate identifier 'export='.
[0]
[0]
[0] 9 import * as expressValidator from 'express-validator';
[0] ~~~~~~~~~~~~~~~~~~~
[0]
[0] src/backend/app.ts(9,35): error TS2497: Module '"express-validator"' resolves to a non-module entity and cannot be imported using this construct.

Anyone can help with this definition ?

Regards,

Diego
Issue 1:
Context: https://tour.golang.org/

Links in the slides are black, as the text, and it's hard to differentiate them.

Issue 2:
What steps will reproduce the problem?

Running "go test -x -compiler gccgo launchpad.net/juju-core/cmd" fails
intermittently (roughly 50% of the time) with linker errors.

What is the expected output?

ok launchpad.net/juju-core/cmd 1.712s

What do you see instead?

Pages of errors like:

/tmp/go-build183489760/launchpad.net/juju-core/cmd/_test/launchpad.net/juju-core/libcmd.a(cmd.o):(.rodata.__go_tdn_launchpad.net_juju_core_cmd.Command+0x0):
multiple definition of `__go_tdn_launchpad.net_juju_core_cmd.Command'
/home/mwhudson/goplay/pkg/gccgo_linux_amd64/launchpad.net/juju-core/libcmd.a(cmd.o):(.rodata.__go_tdn_launchpad.net_juju_core_cmd.Command+0x0):
first defined here

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

gccgo (4.8 and tip)

Which operating system are you using?

Linux, Ubuntu Saucy

Which version are you using? (run 'go version')

go version go1.1.2 linux/amd64

(also tip)

Please provide any additional information below.

It seems to be to do with the order of arguments to the link command. I'll dig more
soon.
Issue 1:
Steps to Reproduce

Use the following code to create tabs for a tab bar:

Widget _buildTab(String label, Color color) {
return new Container(
color: color,
child: new Flex(
direction: Axis.horizontal,
children: <Widget>[
new Expanded(
child: new Container(
height: 50.0,
child: new Center(
child: new Text(
label,
style: new TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 18.0,
),
),
),
),
),
],
),
);
}

Description

Currently, line 894 of material/tabs.dart uses the constant padding of kTabLabelPadding. Link to source. This applies the padding on the entirety of the tab in a tab bar, meaning it'll apply padding not only to text/images/icons but also containers of solid colors. Currently there's no workaround besides the user fashioning their own tab bar from scratch, which is tedious considering the simpler and more flexible workaround is to give the user control via settable field.

Issue 2:
The padding between tabs in a Material TabBar is hard-coded, and this makes it hard to achieve some quite reasonable designs.

I would like this padding between tabs to be configurable per-TabBar, and not hard-coded in the Flutter libraries.

Here's an example. My designer would like to achieve this:

I can approach it in Flutter, but I have a problem:

The tab heading "MON 22" is too long for the space that is available. Here's why:

There is padding around each tab:

The reason for this is in material/tabs.dart, line 880:

@override
Widget build(BuildContext context) {
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
if (_controller.length == 0) {
return new Container(
height: _kTabHeight + widget.indicatorWeight,
);
}

final List<Widget> wrappedTabs = new List<Widget>(widget.tabs.length);
for (int i = 0; i < widget.tabs.length; i += 1) {
wrappedTabs[i] = new Center(
heightFactor: 1.0,
child: new Padding(
padding: kTabLabelPadding,
child: new KeyedSubtree(
key: _tabKeys[i],
child: widget.tabs[i],
),
),
);

}

Each tab is padded by kTabLabelPadding — which I think is Hungarian for a constant tab label padding.

This is defined as:

/// The horizontal padding included by [Tab]s.
const EdgeInsets kTabLabelPadding = EdgeInsets.symmetric(horizontal: 16.0);

If I change this to 8.0 and restart my app, the tab fits:

My designer is happy

This is on today's Flutter master channel.

@HansMuller filing this separate issue as requested in #21026
Issue 1:
Hi ,

compiled ‘setup.py’ in dir 'cuda' of extension-cpp-master and got 2 erros like that:

ran it in torch1.0,1 , win7-x64

help pls!

regards

Issue 2:
Issue description

Building a custom CUDA extension fails with the following error on MSVC 2017:

<env_lib_dir>\site-packages\torch\lib\include\pybind11\cast.h(1393): error: expression must be a pointer to a complete object type

However, I have not observed the error with multiple GCC versions on Linux.

Code example

Here is an MWE.

setup.py

import os
from setuptools import setup
from torch.utils.cpp_extension import CppExtension, CUDAExtension, BuildExtension

setup(name='exten', ext_modules=[
CUDAExtension('exten_cuda', ['exten_cuda.cpp', 'exten_cuda_kernel.cu'])
], cmdclass={'build_ext': BuildExtension})

exten_cuda.cpp

std::vector<at::Tensor> exten_cuda_forward(at::Tensor a);
std::vector<at::Tensor> exten_cuda_backward(at::Tensor a);

std::vector<at::Tensor> exten_forward(at::Tensor a) {
return exten_cuda_forward(a);
}

std::vector<at::Tensor> exten_backward(at::Tensor a) {
return exten_cuda_backward(a);
}

// Do Python bindings.
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("forward", &exten_forward, "Extension forward CUDA");
m.def("backward", &exten_backward, "Extension backward CUDA");
}

exten_cuda_kernel.cu

#include <torch/torch.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <vector>

std::vector<at::Tensor> exten_cuda_forward(at::Tensor a) {
// Do nothing.

// Return empty vector (just for compile error demo).
return {};
}

std::vector<at::Tensor> exten_cuda_backward(at::Tensor a) {
// Do nothing.

// Return empty vector (just for compile error demo).
return {};
}

System Info

Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: 9.2

OS: Microsoft Windows 10 Education
GCC version: (x86_64-posix-seh, Built by strawberryperl.com project) 7.1.0
CMake version: version 3.12.0

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 9.2.148
GPU models and configuration: GPU 0: GeForce GTX 1060 6GB
Nvidia driver version: 399.07
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy (1.15.1)
[pip] torch (0.4.1)
[pip] torchvision (0.2.1)
[conda] cuda92 1.0 0 pytorch
[conda] pytorch 0.4.1 py37_cuda92_cudnn7he774522_1 [cuda92] pytorch
[conda] torchvision 0.2.1 <pip>

PyTorch or Caffe2: PyTorch

How you installed PyTorch (conda, pip, source): conda

OS: Windows 10 x64

PyTorch version: 0.4.1

Python version: 3.7

CUDA/cuDNN version: 9.2

GPU models and configuration: GTX 1060 6GB

MSVC version (if compiling from source): 15.7.5

CMake version: 3.12.0

Versions of any other relevant libraries: setuptools 0.2.1
Issue 1:
I'm trying to test my functions that utilize the Web Crypto API, for example:

const { webkit } = require("playwright")

async function importKey() {
return window.crypto.subtle.importKey("raw", new Uint8Array(8), "HKDF", false, ["deriveKey"])
}

(async function test() {
const browser = await webkit.launch()
const page = await browser.newPage()
await page.goto("https://example.com")

// how to test `importKey` with the Playwright context's `window.crypto`?

await browser.close()
})()

I was thinking about running a dev server that hosts a page with a JS file that contains the importKey function and visiting this page with Playwright. Is there a simpler way to use my custom modules inside Playwright that use Web APIs?

Issue 2:
Context:

Playwright Version: [1.16.3]

Operating System: [Mac]

Node.js version: [16.12.0]

Browser: [All]

Extra: [N/A]

Describe the bug

I have 3 spec files in test folder

Here is my config file

When i run the test with one worker, files are not executed in the order mentioned in testProject.testMatch Array

As per documentation, testMatch support Array of files

https://playwright.dev/docs/next/api/class-testproject#test-project-test-match

Actual:

pw1_test_spec.js
pw10_test_spec.js
pw2_test_spec.js

Expected:

pw1_test_spec.js
pw2_test_spec.js
pw10_test_spec.js

Noticed the same behavior if i use

testMatch: '*_test_spec.js'

Kindly let me know if i am doing something wrong here.
Issue 1:
input words are into command shell

Issue 2:
I’ve run into an odd issue testing the Neovim.AS Atom Shell app, where I cannot get its window to accept keyboard input on OS X 10.10.2 when I start it via the atom-shell CLI; instead, all keyboard input goes to the last active application – in the case of the screenshot, the shell in which Neovim.AS was started:

I also can’t switch to the window with Cmd-Tab, its OS X menu does not display, and the only way to quit it is issuing ^C in the originating shell. I have reproduced the issue with another, more straightforward Atom Shell app, pamm-atom, incidentally showing that the apps are responding to mouse input (Vim not being a really good object to judge that :)).

If I start pamm-atom via the GUI, none of the above occurs (not testable with Neovim.AS due to the Grunt requirement and lack of app folder).

Configuration:

OS X 10.10.2 German locale, German keyboard input. I’ve tried disabling my input hacks (specifically, Seil and Karabiner) and switching to a US keyboard map, but none of that helped.

atom-shell version 0.21.2 64 bit without symbols, downloaded from the Releases pages. The Atom Shell app runs without a hitch by itself, as does Atom the editor (which accepts my keyboard input like a champ, I hasten to add).

OS X stock Terminal.app running the system bash (GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)). The above screenshot shows a version running with TotalTerminal injected, but the same issue occurs within standard terminal windows [EDIT: and in iTerm 2].
Issue 1:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Expected behavior

Actual behavior

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

Postgres errorCode error message no response JDBC and CLI client. PostgreSQLErrorResponsePacket no response error Info

Issue 2:
related dependencies:

+--- io.shardingsphere:sharding-jdbc:3.0.0.M1

| +--- io.shardingsphere:sharding-core:3.0.0.M1

| | +--- com.google.guava:guava:18.0 -> 20.0

| | +--- org.apache.commons:commons-lang3:3.6 -> 3.5

| | +--- org.codehaus.groovy:groovy:2.4.5 -> 2.4.12

| | +--- org.yaml:snakeyaml:1.16 -> 1.17

| | --- org.slf4j:slf4j-api:1.7.7 -> 1.7.25

| +--- com.google.guava:guava:18.0 -> 20.0

| +--- org.apache.commons:commons-lang3:3.6 -> 3.5

| +--- org.codehaus.groovy:groovy:2.4.5 -> 2.4.12

| +--- org.yaml:snakeyaml:1.16 -> 1.17

| --- org.slf4j:slf4j-api:1.7.7 -> 1.7.25
Issue 1:
In the Blender Export 4.4 there is an issue with the vertices of morph targets. They are parsed as triplets of arrays: [[x,y,z],[x,y,z],...] but should be one singel array [x,y,z,x,y,z].

I'm not good enough with python to make the change, but I think it's extend([vertex.co.x, vertex.co.y, vertex.co.z]) that should be extend((vertex.co.x, vertex.co.y, vertex.co.z)) on line 409 in mesh.py.

I't worked for me when changing in the exported json object directly.

Issue 2:
Description of the problem

Many of the Blender examples have morph targets, however I've been trying to export a mesh from Blender and morph targets aren't exported.

You can see shape keys are set up in Blender, and keyed in the "Shape Key Editor" view:

However on export to JSON there are no morph targets. Only one empty array under they "geometry" key, "morphTargets":[],.

Exporter settings include morph:

You can download the .blend file in question to try this out: eye-test.blend.zip

Three.js version

✅ Dev

✅ r76
Issue 1:
Forked from #24038 (comment)

We are adding federation scheduler and controller manager as per the plan in #23653.

There is obviously some common code that is shared with kubernetes controller manager and kubernetes scheduler.

We want to pull out that code into libraries to enable code reuse rather than having to duplicate code.

We need to figure out the right name and directory structure for such libraries.

cc @davidopp @madhusudancs @kubernetes/goog-control-plane @kubernetes/sig-cluster-federation

Issue 2:
According to this page:

https://github.com/GoogleCloudPlatform/kubernetes/blob/5ef34bf52311901b997119cc49eff944c610081b/pkg/api/v1beta3/types.go

"PortalIP is usually assigned by the master. If specified by the user

// we will try to respect it or else fail the request. This field can

// not be changed by updates."

PortalIP string json:"portalIP,omitempty"

just to clarify the above - it means that user is allowed to assign it during creation of service, but not during update service - correct? why update is not supported as well?

what are the considerations for "we will try to respect it" - what validations are made (Except for addr already in use) ?

what exact error is returned when it can't be assigned?
Issue 1:
some js min file like this one:

https://raw.githubusercontent.com/select2/select2/master/dist/js/select2.full.min.js

Issue 2:
May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).

Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.
Issue 1:
Finalizer is currently define to be finalizer(x, function).

But (I assert that) it should be finalizer(function, x)

as this allows do-block syntax to define the function.

Right now I must write

function finalize_state(st)
close(st.pending)
close(st.complete)
end
finalizer(state, finalize_state)

Where as if it took the function as first argument,

like map, filter, (Dict) get! and remotecall (#11406)

I could be writing:

finalizer(state, finalize_state) do st
close(st.pending)
close(st.complete)
end

I suggest deprecating, and creating the new overload.

I wonder if it isn't worth search through the whole of Base and Core looking for methods that take functions (or things that look like functions), as a non-first parameter, then I could raise just one issue for all of them (or do PR)

(I could script that pretty easy using parse)

Issue 2:
To be consistent with other APIs and allow the use of do-block syntax, the finalizer argument to finalizer should be the first argument, not the second.
Issue 1:
copied from a question on the scipy-dev mailing list

Hello,
I've been using scipy for a while and found out the following, which seems to me like a true bug.
Converting coo_matrix to dok_matrix doesn't take into account coinsiding i and j cases:

>>> cols = (0, 1, 2, 1)
>>> rows = (0, 1, 2, 1)
>>> vals = (1, 1, 1, 1)
>>> B = sparse.coo_matrix((vals, (rows, cols)))
>>> print B.todense()
[[1 0 0]
[0 2 0]
[0 0 1]]
>>> print B.todok().todense()
[[1 0 0]
[0 1 0]
[0 0 1]]

>>> sp.__version__
Out[17]: '0.14.0'

I've spent a lot of time figuring this out, therefor I decided to report it.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/655 on 2008-04-25 by @cournape, assigned to @dmcooke.

Executing tests for gammaincinv hangs the python interpreter with 100 % cpu.
Issue 1:
Is your feature request related to a problem? Please describe.

May be needed to access.

Describe the solution you'd like.

.loc and .scale, or methods.

Describe alternatives you've considered.

No.

Additional context (e.g. screenshots, GIFs)

Messing with args when differrent dists have different args and they can be either keyword or positional ones is extremily inconvenient. loc and scale are universal ones, so should be available easily.

Issue 2:
It would be useful to easily get access to distribution arguments.

for example

a=scipy.stat.norm(1, 3)
b=scipy.stat.norm(loc=1, scale=2)
c=scipy.stat.norm(1, scale=2)

In a params go to args and in b into kwds. In c loc goes to args and scale to kwds. So how am I going to get distributions parameters in a uniform way? For example to get a name -> value mapping. I guess you have some internal function for that, could you document and expose it? Or alternatively it may worth to make params available as attrs of a distr:

a.loc
a.scale
Issue 1:
System info

Playwright Version: 1.36.1

Operating System: Ubuntu LTS

Browser: Chromium

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Test file (self-contained)

import { test } from '@playwright/test';

test('', async(fixtures, testInfo) => {
fixtures;
});

According to docs, 1st argument of testFunction is Fixtures. However, when actually writing code, I am seeing properties of fixtures in addition to fixtures:

This doesn't really make sense from the documentation point of since built-in fixtures only list 6 fixtures. Further more, in Auth guide we are shown that we can override storageState "fixture". However, storageState is really property of Context fixture and not a standalone fixture.

I guess for newcomers it's a bit confusing since fixtures and their properties are used interchangeably. For example, you can override the entire Page class or just storageState. Also, it is not really stated that testFunction splats fixtures where you can also access properties of the fixtures. It's really confusing when you expect 6 fixtures but instead presented with a list of dozens and not really sure (initially) where those come from.

Issue 2:
Similar to Fiddler's autoresponder feature we could use the BrowserContext.route function to create responses based on an exported har file from a previous playwright run

maybe something like this:

import * as playwright from 'playwright';
import { Har, Entry, Response } from './har';

export interface HarAutoResponderOptions {
unmatchedRequestHandling?: 'ignore' | 'continue';
}

type AutoResponderResponse = {
body?: string;

contentType?: string;

headers?: { [key: string]: string; };

status?: number;
}

export class HarAutoResponder {

constructor(
private readonly har: Har,
private readonly options: HarAutoResponderOptions = {}) {
}

async applyTo(context: playwright.BrowserContext | playwright.Page) {
context.route(_ => true, async (route, request) => {
const matchedEntry = this.matchEntry(request);
if (!matchedEntry) {
if (this.options.unmatchedRequestHandling === 'continue') {
return await route.continue();
} else {
return;
}
}

const response = this.createResponse(matchedEntry.response);
await route.fulfill(response);
});
}
private createResponse(response: Response): AutoResponderResponse {
const headers = response.headers.reduce((acc, header) => {
acc[header.name] = header.value;
return acc;
}, {});
const body = response.content.text;
const status = response.status;
const contentType = response.content.mimeType;
return {
headers,
body,
status,
contentType
}
}

private matchEntry(request: playwright.Request): Entry | undefined {
for (const entry of this.har.log.entries) {
if (entry.request.url === request.url()) {
return entry;
}
}

return undefined;
}
}
Issue 1:
hi.

Thank you for using bebel. I have a question.

After I used bable, my code changed from

var obj = {
// key wrapped '
'key': "value"
};

to

var obj = {
// ' is rejected
key: "value"
};

Almost all transform is ok.

But to change from 'key' to key is not ok for me.

I want the result to be 'key' -> 'key', so I want to keep 'key' as it.

In order to do it, what I should do?

Issue 2:
export default {
'bind' (value, f) {},
'null' () {},
'for' () {},
'return' () {}
}

Gets converted to:

"use strict";

module.exports = {
bind: function bind(value, f) {},
"null": function _null() {},
"for": function _for() {},
"return": function _return() {}
};

Not the missing quotes for bind