WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
VS2015 is crashed when opening an empty index.ts file on TypeScript repository that has empty index.ts and tsconfig.json files.

I got this problem since yesterday. I feel this problem is related to windows update.

TypeScript Version:

1.8.30

Issue 2:
In the following example, running original.js directly in MS Edge 25 / EdgeHTML 13 (with experimental JavaScript enabled) outputs "Get to the chopper!" to the console.

downlevel.js is produced by running typescript@next (I used v1.8.0-dev.20151210) over original.js with the --allowJs option. Running downlevel.js in MS Edge outputs an error SCRIPT445: Object doesn't support this action.

// file: tsconfig.json
{
"compilerOptions": {
"target": "ES6",
"allowJs": true,
"outFile": "downlevel.js"
},
"files": ["original.js"]
}

// file: original.js
var Promise = "I promise not to kill anyone";
var foo = async () => "Get to the chopper!";
foo().then(console.log);

// file: downlevel.js (this one is output by tsc)
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promise, generator) {
return new Promise(function (resolve, reject) {
generator = generator.call(thisArg, _arguments);
function cast(value) { return value instanceof Promise && value.constructor === Promise ? value : new Promise(function (resolve) { resolve(value); }); }
function onfulfill(value) { try { step("next", value); } catch (e) { reject(e); } }
function onreject(value) { try { step("throw", value); } catch (e) { reject(e); } }
function step(verb, value) {
var result = generator[verb](value);
result.done ? resolve(result.value) : cast(result.value).then(onfulfill, onreject);
}
step("next", void 0);
});
};
var Promise = "I promise not to kill anyone";
var foo = () => __awaiter(this, void 0, Promise, function* () { return "Get to the chopper!!"; });
foo().then(console.log);

It looks like the down-levelled code picks up the locally-scoped Promise instead of using the native Promise.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1961 on 2011-10-13 by trac user staticfloat, assigned to unknown.

If I type numpy.log(2**63), I get the expected answer of 42.975.

If I type numpy.log(2**64), I get:

AttributeError Traceback (most recent call last)

/Users/sabae/ in ()

----> 1 np.log(2**63)

AttributeError: log

My numpy.version.version says "1.6.1", but that is not an option in the dropdown box, so I've set it to "devel"

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1013 on 2009-02-20 by @wesm, assigned to unknown.

This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.

In [15]: arr = np.random.randn(100).astype(object)

In [16]: np.log(arr)

AttributeError Traceback (most recent call last)

H:\workspace\Python\src in ()

AttributeError: log

Same AttributeError is raised for other ufuncs
Issue 1:
VSCode Version: 1.00

OS Version: Win 10

Steps to Reproduce:

Install node.js 6.0.0

Try to debug within a router.get function.

router.get("/:id", (req, res, next) => {
controller.getSingle(req.params.id).then(data => res.json(data));
});

When I add a breakpoint at the controller. call, the debugger stops when I'm using node 5.11.0. It does not after upgrading to 6.0.0. The debugger stops (so it notices a breakpoint), but it doesn't show the line where it stopped anywhere.

Breakpoints outside of the express calls work fine by the way. So when I add a breakpoint at the router.get, it works (but at the start of the application, which is good, obviously).

Changing from () => to function() did not change anything.

Issue 2:
VSCode Version: 1.0.0

OS Version: Windows 10

Steps to Reproduce:

install node v6

generate express application

open the app folder with vscode

open console and run node --debug bin\www

attache to node process with vscode

set break point to users.js:line:6

and navigate in the web browser to '/users'

it works with node v5.10
Issue 1:
System information (version)

System information (version)

OpenCV => 3.4.0

Operating System / Platform => Raspbian jessie

Compiler => python 2.7/python 3

Detailed description

for my project i need to install opencv so i picked the latest version 3.4.0 ...I followed instruction and it was all good with 0 errors but when it comes to build and executing the "make" command it interrupt the operation with this errors :

[ 39%] Generating perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch

/home/pi/opencv-3.4.0/build/modules/dnn/perf_precomp.hpp:12:20: fatal error: can’t write PCH file

using namespace dnn;

^

compilation terminated.

modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/build.make:62: recipe for target 'modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch' failed

make[2]: *** [modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch] Error 1

CMakeFiles/Makefile2:6569: recipe for target 'modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all' failed

make[1]: *** [modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all] Error 2

Makefile:160: recipe for target 'all' failed

make: *** [all] Error 2

i tried to disable c exemples by switching it to OFF but it was the same faillure what should i do to fix it and run opencv correctly ? should i switch to other version ? please help me i already lost 3 days debugging it my self with no progress .thank you

Issue 2:
System information (version)

System information (version)

OpenCV => 3.4.0

Operating System / Platform => Raspbian jessie

Compiler => python 2.7/python 3

Detailed description

for my project i need to install opencv so i picked the latest version 3.4.0 ...I followed instruction and it was all good with 0 errors but when it comes to build and executing the "make" command it interrupt the operation with this errors :

[ 39%] Generating perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch

/home/pi/opencv-3.4.0/build/modules/dnn/perf_precomp.hpp:12:20: fatal error: can’t write PCH file

using namespace dnn;

^

compilation terminated.

modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/build.make:62: recipe for target 'modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch' failed

make[2]: *** [modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch] Error 1

CMakeFiles/Makefile2:6569: recipe for target 'modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all' failed

make[1]: *** [modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all] Error 2

Makefile:160: recipe for target 'all' failed

make: *** [all] Error 2

i tried to disable c exemples by switching it to OFF but it was the same faillure what should i do to fix it and run opencv correctly ? should i switch to other version ? please help me i already lost 3 days debugging it my self with no progress .thank you
Issue 1:
I'm use the onBeforeRequest to intercept my request and redirect to my protocol "app",but,when i use the http.request(nodejs) to make a request(a set-cookie will come with the response),let this registerStreamProtocol‘s callback process the response,and then , I'm lose the set-cookie.’

How do I get this set-cookie

electron@9.3.1

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

v9.0.0

Operating System:

macOS 10.15.5

Last Known Working Electron version:

5.x.y

Expected Behavior

request.on('redirect', (statusCode, method, redirectUrl, responseHeaders) => {
console.log(responseHeaders['set-cookie']); // should not be undefined
});

Actual Behavior

request.on('redirect', (statusCode, method, redirectUrl, responseHeaders) => {
console.log(responseHeaders['set-cookie']); // is undefined no matter what
});

To Reproduce

I've put together a small proof of concept using the electron-quick-start demo found here.

To run the example:

git clone https://github.com/walmat/electron-quick-start.git && yarn && yarn start

Screenshots

Additional Information
Issue 1:
VSCode Version: 0.10.11

OS Version: Mac OS X 10.11.3

Steps to Reproduce:

Open a new project and make sure editor.tabSize is set to auto

Create a new file test.js with the following contents

'use strict';

const multiline = `
this is a multiline
string with 2 space indentation
`;

function log(str) {
console.log(str);
}

log(multiline);

Note: The indentation inside the log function is a tab but GitHub parses it to 4 spaces. So make sure to convert this to a tab when copy-pasting.

Close the file and reopen it

As you can see, it sets the tabSize to 2 because it is 2 in the multiline template literal. But it shouldn't take strings into account to determine this.

// @alexandrudima

Issue 2:
VS Code 64 bit compile is desperately needed.

When you use the explorer extension "Open with Code" and are looking at files in c:\windows\System32 on a 64 bit OS, the File System Redirector gets in the way and sends you to the SysWOW64 directory, which may not contain your file. UX is horrible.

For example, right click on C:\Windows\System32\BestPractices\v1.0\Models\Microsoft\Windows\WebServer\WebServer_Model.ps1 and select "Open with Code"

Code starts, but has a blank file in the editor that's dirty and ready for a save.

Since the 64 bit Explorer doesn't populate the SysNative tree there's no way to use the explorer extesion on this and similar files.
Issue 1:
I have just tried to update an installed extension, but the process seemed to hang.

I eventually decided to restart VS Code, and when I did, the extension in question was no longer installed. I attempted to install it again, but the process never seemed to complete. I did this a few times, each time opening/closing VS Code, and eventually, on I think the fourth attempt, the extension correctly installed.

Is this a known issue? Are there any logs that I can provide to help identify the problem?

Issue 2:
The maximum number of editors currently is three. There doesn't appear to be a way to change this in user settings.

It would be helpful and flexible if there was a configuration option in user settings to override this default max value (i.e. some developers might be able to handle four or five editors and still feel "organized").

I like the max editor cap, but I believe the count of max editors should be configurable.
Issue 1:
Consider jsonify()cation of a dictionary contained in a list:

print flask.__version__
print repr(flask.jsonify([{"a": 1, "b": 2}]).data)

With the following output:

0.10.1
'{\n "a": "b"\n}'

jsonify() has -- without complaining -- mangled the data into something really not useful: The original dictionary values are gone, and the "b" key suddenly is a value.

I appreciate that top-level array elements are not allowed to be created in Flask's jsonify() implementation (http://flask.pocoo.org/docs/0.10/security/#json-security). Also, there are for sure straight-forward strategies for solving this in application code, for example by wrapping the list in a dictionary: jsonify({"items": collection}).

However, in the Python world we do not find it very often that an entity accepts invalid input and produces garbled output without complaining. Also, it looks like jsonify() once raised an exception when provided a list (at least in 2011 it did raise a TypeError: #170).

Should we raise an exception again or is the current behavior carefully designed with a focus on performance? I mean, it is unlikely that this data mangling ends up in a production environment (a developer really should realize that jsonify() produces garbage in this case , like I did).

Issue 2:
ECMAscript 5 changed behavior of Array literals. That part of the documentation is outdated by now. We should check what browsers are affected by this and update the docs accordingly.
Issue 1:
I plan to move to using AWS S3 SDK instead of using JetS3T. I have noticed the following problems with JetS3T:

AWS SDK has better support for auth (reading credentials files etc)

It is far behind AWS S3 SDK in terms of development-release/support.

What do you think @gianm @leventov @cheddar ?

Issue 2:
Impossible to take advantage of using tools insert-segment-to-db when using s3 as deep storage backend.
Issue 1:
A gradient snippet was recently added to the CSS snippets.

This has an incorrect syntax for the unprefixed version. When it was standardised the angles were changed so that the old "top" keyword (as used in the snippet) maps to "to bottom" in the standard syntax. "left" becomes to right, and so on.

The current code will create a gradient that is flipped for browsers that use the unprefixed version.

Issue 2:
It looks like Visual Studio Code locks some files and I can't use the command line Git client when it is open. Closing Visual Studio Code resolves this issue. The index.lock file did not exist when I checked for it so it must be preventing the command line client from working in some other way. Here's the output from the command line client:

Updating ca3f107..3e957b8

fatal: Unable to create 'C:/dev/GIS/.git/index.lock': File exists.

If no other git process is currently running, this probably means a

git process crashed in this repository earlier. Make sure no other git

process is running and remove the file manually to continue.
Issue 1:
VSCode Version: 1.2.0

OS Version: Win 10 enterprise preview

Steps to Reproduce:

Set user setting to "terminal.integrated.shell.windows": "%programfiles%\Git\git-bash.exe"

Open terminal ctrl+`

Expected:

Terminal opens.

Actual:

Terminal window flickers and closes (presumably crashes).

Workaround:

Use explicit pathing like "C:\Program Files\Git\git-bash.exe" instead.

Issue 2:
I have a suite of projects that I'd like to have a shared configuration (e.g. all the repos at my company).

Currently we have duplicate .vscode/settings.json files, and several common .vscode/tasks.json tasks. Some projects have additional tasks defined beyond the common ones.

I'm unsure what the right approach to take here is. I'd love some input

Can extensions apply user settings, or define tasks/problem matchers? The docs don't seem to indicate that.

Can a project declare a VS Code extension as a dependency? (seems unlikely, but hey :P)

We're toying with the idea of a common package with a postinstall script that symlinks the configuration in (and just over-defining tasks) - but it's pretty ugly.
Issue 1:
I would be nice if the explorer would collapse to the bottom given that the "Opened Editors" view is becoming more useful lately.

Issue 2:
VSCode Version: 0.10.11

OS Version: Mac OS X El Capitan

I would like to be able to specify multiple commands in a Task Runner. Right now, only one command is supported. Is the best way to do this with a shell script?

Cheers,

Trevor Sullivan

Microsoft MVP: PowerShell
Issue 1:
Documentation Link

No response

Problem

The footer reads:

© Copyright 2021 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2021 The Matplotlib development team.

The first year range 2021-2012 is obviously wrong.

Suggested improvement

No response

Matplotlib Version

3.5.0 devdocs

Issue 2:
Documentation Link

https://matplotlib.org/devdocs/index.html

Problem

Bottom copyright starts with

© Copyright 2021 - 2012 John Hunter, ...

Compare with stable docs:

© Copyright 2002 - 2012 John Hunter, ...

Suggested improvement

No response

Matplotlib Version

master

Matplotlib documentation version

3.4.2.post1702+g0a4a10c5a1
Issue 1:
Code Sample, a copy-pastable example if possible

On master:

In [3]: values = ['a', 'b', np.nan]

In [4]: lib.infer_dtype(np.array(values))
Out[4]: 'string'

This returns 'mixed' if the list itself or a Series is passed:

In [5]: lib.infer_dtype(values)
Out[5]: 'mixed'

In [6]: lib.infer_dtype(pd.Series(values))
Out[6]: 'mixed'

This is a problem because it impacts any function that uses hash tables, as it causes NaN to be returned as a string (notice the quotes around 'nan' below):

In [7]: pd.unique(np.array(values))
Out[7]: array(['a', 'b', 'nan'], dtype=object)

Again, this doesn't happen if the list itself or a Series is passed:

In [8]: pd.unique(values)
Out[8]: array(['a', 'b', nan], dtype=object)

In [9]: pd.unique(pd.Series(values))
Out[9]: array(['a', 'b', nan], dtype=object)

Which appears to be caused by infer_dtype returning 'string' instead of 'mixed' here:

pandas/pandas/core/algorithms.py

Lines 207 to 211
in
488db6f

# its cheaper to use a String Hash Table than Object

if lib.infer_dtype(values) in ['string']:

ndtype = 'string'

else:

ndtype = 'object'

Problem description

infer_dtype incorrectly returns 'string', causing NaN to get converted to a string by functions that use hash tables.

Expected Output

infer_dtype to return 'mixed'.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: 488db6f

python: 3.6.1.final.0

python-bits: 64

OS: Windows

OS-release: 10

machine: AMD64

processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.22.0.dev0+74.g488db6f

pytest: 3.1.2

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.25.2

numpy: 1.13.1

scipy: 0.19.1

pyarrow: 0.6.0

xarray: 0.9.6

IPython: 6.1.0

sphinx: 1.5.6

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2017.2

blosc: None

bottleneck: None

tables: 3.4.2

numexpr: 2.6.2

feather: 0.4.0

matplotlib: 2.0.2

openpyxl: 2.4.8

xlrd: 1.1.0

xlwt: 1.3.0

xlsxwriter: 0.9.8

lxml: 3.8.0

bs4: None

html5lib: 0.999

sqlalchemy: 1.1.13

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

fastparquet: 0.1.0

pandas_gbq: None

pandas_datareader: None

Issue 2:
It is not clear if this should raise on construction or not

http://stackoverflow.com/questions/17338148/pandas-duplicate-datetimeindex-entries-lead-to-odd-exception?noredirect=1#comment25166923_17338148

In [3]: from collections import OrderedDict

In [4]: import datetime as dt

In [5]: a = [1371215933513120, 1371215933513121, 1371215933513122, 1371215933513122]

In [6]: b = [1,2,3,4]

In [7]: df = pd.DataFrame({'a':a, 'b':b, 'c':[dt.datetime.fromtimestamp(t/1000000.) for t in a]})

In [8]: df.index=pd.DatetimeIndex(df['c'])

In [9]: d = OrderedDict()

In [10]: d['x'] = df

In [11]: p = pd.Panel(d)

In [12]: for y in p.major_axis:
....: print y
....: print p.major_xs(y)
....:
2013-06-14 09:18:53.513120
x
a 1371215933513120
b 1
c 2013-06-14 09:18:53.513120
2013-06-14 09:18:53.513121
x
a 1371215933513121
b 2
c 2013-06-14 09:18:53.513121
2013-06-14 09:18:53.513122
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Issue 1:
[ ] 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 2:
I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ x ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

Templates cannot refer to anything not directly associated with the component, so you can't for example do this:

<div *ngIf="user.id === someConstant">
</div>
<div *ngIf="user.status === UserStatus.Active"> <!-- UserStatus is an enum -->
</div>
<div *ngIf="isDevMode()">
</div>

To make this work, I have to declare these as members of my component:

import { someConstant } from './somewhere';
import { UserStatus } from './somewhere';
import { isDevMode } from '@angular/core';

export class MyComponent {
public someConstant = someConstant;
public UserStatus = UserStatus;
public isDevMode = isDevMode;
}

These can quickly clutter the component code, and can't be used for const enums. For const enums I have to duplicate the entire enum into a constant, which becomes a maintenance headache.

Expected behavior

It would be helpful if I could use constants, enums and functions directly from within the template, without needing to assign them to a component member. Maybe a way of importing variables/types into the HTML, or declaring types in the component that are available to the template. Something like this perhaps:

import { someConstant } from './somewhere';
import { UserStatus } from './somewhere';
import { isDevMode } from '@angular/core';

@Component({
selector: 'app-user-list',
templateUrl: './user-list.component.html',
templateImports: [someConstant, UserStatus, isDevMode]
})

(this particular solution wouldn't work for const enums, other solutions may be better)

Environment

Angular CLI: 6.1.2
Node: 8.11.1
OS: linux x64
Angular: 6.1.1
Issue 1:
I'm suggesting some sort of interface to incorporate the functionality of Node's tty module, which would solve #6738, as well as setting all sort of terminal configurations, such as enabling/disabling input echo, and getting the terminal size.

Issue 2:
In some cases, such as a Git Credential Helper, a script needs to get both program arguments through stdin, and prompt the user for data.

In Linux, this is done by opening /dev/tty which is, according to the manpage, a handle to the process' controlling terminal, which is a separate stream from stdin.

I have also noticed that Deno currently has no handle in its API for such a stream, so for now there's no cross-platform/native solution to this.

My suggestion is adding a Deno.tty handle to Deno's API, similar to the Deno.stdin handle, to allow for cross-platform usage of this feature.

Edit: On further research, according to this page from the bottom of the internet, something like this could work easily for mac, linux and windows.

Edit2: On even further research, i got the wrong Windows device name. Edited in the code snippet.

//Within the Deno namespace:
export const tty = Deno.build.os === "windows"?await Deno.open("CON:"):await Deno.open("/dev/tty");
Issue 1:
Sorry, I'm not sure if I should open this in the Vue CLI or the Vue CLI Webpack template repository. I'll move them if necessary.

The problem is, Vue triggers the componentchanged event of an a-frame component forever.

This is the code:

<a-scene>
<a-entity>
<a-camera @componentchanged="onChange()">
</a-camera>
</a-entity>
</a-scene>

<script>
export default {
methods: {
onChange: function () {
console.log('Changed!')
}
}
</script>

Here's a demo: https://desolate-island-90618.herokuapp.com/#!/5EfhFj+R3DY1zo8JIGGQhosrSqn7p0t8pON9y5asxnM=

This only happens in .vue files. The problem doesn't occur in a simple new Vue instance: http://codepen.io/anon/pen/PNQdwO

Issue 2:
Sorry, I'm not sure if I should open this in the Vue CLI or the Vue CLI Webpack template repository. I'll migrate them if necessary.

The problem is, Vue triggers the componentchanged event of an a-frame component forever.

This is the code:

<a-scene>
<a-entity>
<a-camera @componentchanged="onChange()">
</a-camera>
</a-entity>
</a-scene>

<script>
export default {
methods: {
onChange: function () {
console.log('Changed!')
}
}
</script>

Here's a demo: https://desolate-island-90618.herokuapp.com/#!/5EfhFj+R3DY1zo8JIGGQhosrSqn7p0t8pON9y5asxnM= (see console).

This only happens in .vue files. The problem doesn't occur in a simple new Vue instance: http://codepen.io/anon/pen/PNQdwO

(Note: I also tested this code in a fresh vue init webpack project. The problem, seem to occur in .vue files.)

(Note 2: The event is being triggered even if the oldData is the same as the newData.)