WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Added in #5157 but had to be reverted in #7432 because it breaks .tsbuildinfo.

Issue 2:
Tracking issue for deno lsp subcommand.

Given that a lot of code in vscode_code duplicates logic inside deno binary (eg. module resolution algorithm, DENO_DIR path hashing) it becomes obvious that deno should provide its own LSP.

Implementing LSP inside the binary should make maintaining the extension easier, as well as it will allow us to provide the same benefits and experience to other editors.

This feature is being worked on
Issue 1:
Code Sample, a copy-pastable example if possible

des_table = df_final_S1415.describe(percentiles=[.05, .25, .5, .75, .95 ]).T

Expected Output

In version 18.0 describe function will return percentiles when columns contain nan.

output of pd.show_versions()

But in version 18.1 describe function will not return percentiles when columns contain nan.

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy
s = pd.Series([1, 2, 3, 4, numpy.nan])
s.quantile(0.5)
nan

Expected Output

I would expect 2.5 as output (as with version 0.17.1).

output of pd.show_versions()

commit: None

python: 2.7.6.final.0

python-bits: 64

OS: Linux

OS-release: 3.13.0-85-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: de_DE.UTF-8

pandas: 0.18.1

nose: None

pip: 1.5.4

setuptools: 2.2

Cython: None

numpy: 1.11.0

scipy: 0.16.1

statsmodels: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.1

openpyxl: 2.3.2

xlrd: 0.9.4

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

boto: None

pandas_datareader: None
Issue 1:
In [11]: a = np.dtype({'names':['time','data','pad'], 'formats':['<f8',('<f8', (3, 2)),'<f8'], 'offsets':[0,8,56], 'itemsize':64, 'aligned':True})

In [12]: b = np.zeros(10, dtype=a)

In [13]: b[3][1] = np.ones((3, 2))

In [14]: b
Out[14]:
array([(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[1.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0)],
dtype={'names':['time','data','pad'], 'formats':['<f8',('<f8', (3, 2)),'<f8'], 'offsets':[0,8,56], 'itemsize':64, 'aligned':True})

In [15]: b[3][1][:] = np.ones((3, 2))

But this works:

In [16]: b
Out[16]:
array([(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[1.0, 1.0], [1.0, 1.0], [1.0, 1.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0),
(0.0, [[0.0, 0.0], [0.0, 0.0], [0.0, 0.0]], 0.0)],
dtype={'names':['time','data','pad'], 'formats':['<f8',('<f8', (3, 2)),'<f8'], 'offsets':[0,8,56], 'itemsize':64, 'aligned':True})

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/2006 on 2011-12-23 by trac user kevin000, assigned to unknown.

Using a recarray with member assignment fails if any column uses the object data type. I don't understand why this fails, especially since the dictionary style assignment works.

Brief example showing what recarray assignments succeed or fail

import numpy as np

recarray with integer datatypes

dt = np.dtype([('foo', 'i8'), ('bar', 'i8')])

r = np.zeros((1,3), dtype=dt).view(np.recarray)

r['foo'] = np.array([1, 2, 3]) # OK

r.foo = np.array([1, 2, 3]) # OK

recarray with an object datatype

dt = np.dtype([('foo', 'i8'), ('bar', 'O8')])

r = np.zeros((1,3), dtype=dt).view(np.recarray)

r['foo'] = np.array([1, 2, 3]) # OK

r.foo = np.array([1, 2, 3]) # RuntimeError

For the relevant C code search for "cannot call setfield on an object array" in this file:

https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/methods.c

Thanks!

Kevin
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
PowerToys version: 0.13.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Press Windows+Left

Expected behavior

Window snaps to the left

Actual behavior

Window snaps to the right

Screenshots

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.17134.1069]
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyLayout

Steps to reproduce

Enable "Override Windows Snap hotkeys"

Select a three column layout

Click on any window not currently in a layout.

Click Win+Left Arrow .

Window will jump to the right-most column.

(Same problem reversed with Win + Right Arrow)

Expected behavior

Window should be placed in the left-most layout when the Win+Left key is used, and right-most layout when Win+Right is used.
Issue 1:
Consider implementing an asynchronous file system API.

On the Web, the Native File System API implements an API surface that provides file and directory access.

Spec: https://wicg.github.io/native-file-system/

Explainer: https://github.com/WICG/native-file-system/blob/master/EXPLAINER.md

A similar API shape for asynchronous file access would be great for interop between server/command-line and web code.

The API has a shape that allows streaming to a file, creating new files, opening an existing file, cloberring or not, iterating through directories, etc.

Adapted from the explainer, here's an example:

const dir_ref = ... // Some mechanism to obtain a directory handle TBD.

for await (const [name, entry] of dir_ref) {
// Iterate through a directory.
// entry is a FileSystemFileHandle or a FileSystemDirectoryHandle.
// name is equal to entry.name
}

const new_file = await dir_ref.getFile('foo.txt', {create: true}); // Create a file.

// Write to a file using an API resembling something like pwrite.
const new_file_writer = await new_file.createWritable();
await new_file_writer.write(await file_ref.getFile());
await new_file_writer.close();

// Or using streams.
const file_ref = await dir_ref.getFile('foo.js'); // Get a file from a directory.
const copy2 = await dir_ref.getFile('foo2.txt', {create: true});
(await file_ref.getFile()).stream().pipeTo(await copy2.createWritable());
...

Issue 2:
The proposal for native file system is out.

Where does deno stand?
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

playbook, tags

ANSIBLE VERSION

2.4.0

SUMMARY

Fact_gathering is run for plays that do not match a tag.

STEPS TO REPRODUCE

- hosts: node-1
gather_facts: yes
tags:
- node-tag

To skip the play run either

ansible-playbook -i node-1, play.yml --skip-tags="node-tag"

or

ansible-playbook -i node-1, play.yml --tags="mismatch"

EXPECTED RESULTS

Works fine with --skip tags=node-tag: the play is matched and skipped.

I have expected the same behaviour with --tags=mismatch.

ACTUAL RESULTS

When run with --tags=mismatch, the play is mismatched and is skipped. However, ansible still tries to gather the facts. It fails because node-1 does not exist.

Issue 2:
With modules taking advantage of module_utils/{ec2,rax}.py there is a lot of duplicated documentation that has to be managed per module. This is especially true of the rax modules.

Currently all rax modules, have documentation references to the following attributes:

api_key
credentials
region
username

The docs for these get copy/pasted into all new modules. Additionally the 'notes' portion of the DOCUMENTATION is identical or should be identical between all rax modules.

I'm not sure if it possible, but I am wondering if we could find a way to not have to duplicate all of those docs.

Especially, as I have plans to add a bit more standard attributes for all rax modules that revolve around authentication.

Since currently we just open/read the module files and parse with ast I don't have an answer for this, and haven't dug into it deeply, but if there are any recommendations, I'd be happy to look into the required changes.
Issue 1:
First I want to apologize if I've done anything wrong with this bug report, I'm still new to development and any mistakes made are unintentional.

Environment:

Python version: 3.11.3

Flask version: 2.3.0

Issue 2:
This code is always import error.

(simplejson is not included in the itsdangerous.)

See: https://github.com/pallets/itsdangerous/blob/master/itsdangerous.py
Issue 1:
The api for tesitng with pointer events looks something like this:

Point start = new Point(...);
Point end = new Point(...);
tester.dispatchEvent(pointer.down(start), start);
tester.pump();
tester.dispatchEvent(pointer.move(end), start);
tester.pump();
tester.dispatchEvent(pointer.up(), start);
tester.pump();

The fact you need to pass your starting point for all of the events - especially after having moved the pointer - is weird.

Issue 2:
Driving a pointer in a test right now requires pumping, continually giving the original location, etc.

Instead the API should look something like:

TestGesture gesture = tester.startGesture(downLocation);
gesture.moveTo(newPoint1);
gesture.moveTo(newPoint2);
gesture.moveTo(newPoint3);
gesture.up(); // or gesture.cancel();

moveTo would dispatch a pointer move event with the new point, at downLocation, then pump.

gesture would also expose the TestPointer.

moveTo() would take optional argument "pump: false" or maybe "duration" which is how long to pump (and null would mean don't pump).
Issue 1:
cli/package.json

Line 72
in
4dbeb00

"cli-table3": "^0.6.0",

vulnerability found in "ansi-regex", child dependency of cli-table3

+-- cli-table3@0.6.0

| -- string-width@4.2.2 (at 4.2.3 it upgrades problematic dependencies)

| ---- strip-ansi@6.0.0

| ------ ansi-regex@5.0.0 (vulnerable version)

while updating npm it keep installing "ansi-regex@5.0.0" .

please remove or replace this package.

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

Security scans fail do to high warning of a security vulnerability in ansi-regex.

Expected Behavior

Security scan pass.

Steps To Reproduce

We use twistlock to do vulnerability detection, which relies on NVD to get vulnerability data.

The issue can be found here, https://nvd.nist.gov/vuln/detail/CVE-2021-3807 and here, https://snyk.io/vuln/npm:ansi-regex.

Environment

OS: Mac 11.5.2

Node: v12.21.0

npm: 7.21.1
Issue 1:
Description of the new feature/enhancement

Allow the users to add new languages into terminal, or create "extensions" like exist in VSCode

Proposed technical implementation details (optional)

No problem currently, other than end-user inconvenience. I've downloaded several different language libraries, and each one comes with their own console shells. It would be so much easier, and convenient if there were a way to "link" the terminal app to these other consoles (e.g. python) so that I could work within one location. I've got compilers and such already downloaded in VS and VSCode, but if I want to try something basic, I've found console to be quicker and easier than starting VS

Issue 2:
Description of the new feature/enhancement

When I open File explorer from terminal using command such as start . control should shift to explorer window but it remains in terminal.

Proposed technical implementation details (optional)

when file explorer starts control should shift to explorer and any further keyboard interaction should be targeted to explorer window.

You can verify how ConEmu or cmd works to validate this.
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No.

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04

TensorFlow installed from (source or binary): Binary

TensorFlow version (use command below): 1.8.0

Python version: 2.7.12

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: n/a

GPU model and memory: n/a

Exact command to reproduce: n/a

Describe the problem

Currently tf.estimator.train_and_evaluate makes it easy to use an Estimator to perform both training and evaluation, possibly in a distributed environment. However, this function only supports a single evaluation dataset. This makes the function suboptimal because we oftentimes want to evaluate on both the training and the validation set in order to get a sense for the amount of overfitting that is happening. It would be ideal if we could perhaps pass a list of EvalSpec objects to train_and_evaluate.

Issue 2:
Sometimes could be useful to evaluate on different clusters of the evaluation set with distinct metrics, summaries etc.

Do you plan that this interface will accept a list of eval_spec in the future?
Issue 1:
I have 3 nodes in my cluster and two are master cum data nodes and one node is client node. When I issues stats api(_cluster/stats), I still see the count of client as 0 even though its is up and working.

Below is the response of stats API

nodes: {

count: {

total: 3,

master_only: 0,

data_only: 0,

master_data: 2,

client: 0

},

versions: [

"2.0.1"

],

jvm: {

max_uptime_in_millis: 1181282,

versions: [

{

version: "1.8.0_73",

vm_name: "Java HotSpot(TM) 64-Bit Server VM",

vm_version: "25.73-b02",

vm_vendor: "Oracle Corporation",

count: 3

}

],

OS is

name: "Linux",

arch: "amd64",

version: "2.6.18-308.4.1.0.1.el5",

available_processors: 32

:

Issue 2:
From a cluster running ES 2.1.1 (or ES 1.x) with 8 nodes, two of which were client nodes:

GET _cluster/stats

produces:

"nodes": {
"count": {
"total": 8,
"master_only": 2,
"data_only": 4,
"master_data": 0,
"client": 0
}
...
}

These nodes were set to being client nodes implicitly by using

node.master: false
node.data: false

It appears that the node.client count is only tripped when using node.client: true, but it should be node.client || (node.master || node.data || node.ingest) == false. This should be done at the source where ever we do that check initially. The annoying thing is that it kind of prevents other types of nodes from being dynamically added without "lying" if we change that check.
Issue 1:
When trying to open a link via shell.openExternal('https://www.google.com') it causes Atom to freeze in case the default browser is Chromium (chromium-browser).

After getting the prompt that Atom has freezed and hitting the kill button I get the following dump on my console on which I've invoked Atom

[9784:0416/151609:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
App load time: 224ms
...
The setuid sandbox is not running as root. Common causes:
* An unprivileged process using ptrace on it, like a debugger.
* A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
The program 'atom' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 789 error_code 3 request_code 40 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

I'm running Xubuntu 14.10 (64bit) with the latest Chromium installed available via apt-get and Atom 0.192.0

Edit: See also discussion here https://discuss.atom.io/t/open-url-in-external-browser/16179/5

Issue 2:
On Ubuntu 14.04 with Atom Shell 0.22.3 require('shell').openExternal('http://github.com') does not seem to work. I have both Firefox and Chromium installed on that VM.

See atom-archive/feedback#40 for other reports.

Similar to #623
Issue 1:
As everyone knows, Electron is great in terms of easiness of designing GUIs, but has some severe security and memory issues. The need to lock a version of Chromium and Node.js into each app means no easy way to quickly solve security issues (each developer has to update their own app's version manually) and it also means a system running several Electron apps will have 150 MB in it's memory multiplied by the number of open apps, even if they require the same version of the framework. This could also mean more than 1 GB of memory used for stuff as simple as desktop widgets.

A possible solution was proposed by the Electrino project, but I think it's kind of an overkill.

What I think would be the ideal fix to all of the aforementioned, would be to provide an installable "Electron libraries" distribution, which would ideally also be able to receive automatic updates, and an option for developers to release a "lite" version of their app. When the first electron-lite app is loaded, the system starts the installed "Electron libraries", and when another app is started, the same libraries are called. This way not only every app weights less on storage, but also on memory, and we're sure that none of them executes old, security-flawed versions of Node and Chromium.

Of course this won't (at least immediately) replace the default way of installing electron apps, but developers could suggest, in their install site, to download the lite version + the electron libraries (if the user doesn't already have them installed), so that the amount of informed users who will prefer the safest option will increase.

Issue 2:
Electron version: 1.82

Operating system: Windows 10 - Windows Subsystem for Linux

With Windows Subsystem for Linux it is now possible to run Windows executables from bash.

To reproduce the %HOMEDRIVE%%HOMEPATH% folder creation issue:

Enable Windows Subsystem for Linux in Windows 10

Download and extract Electron to C:\Program Files\Electron\

Add a convenience alias to bash to run electron by just typing 'electron' and pressing enter:

Update your .bashrc file:

alias electron="/mnt/c/Program\ Files/Electron/electron.exe"

Close out and reenter your bash shell for Windows Subsystem for Linux. Run your newly aliased electron command.

The current folder you were in when you ran electron will now have a new folder titled %HOMEDRIVE%%HOMEPATH%.

It looks like the folder is intended to store some logs, as its complete structure is:

%HOMEDRIVE%%HOMEPATH%\AppData\Roaming\Electron\logs

Would love to find a solution to this to stop these directories from being created.

Thanks!
Issue 1:
When a crate re-exports something from deep in its internal structure with "pub use", you can only find the thing at its original path. A case in point (that just happened on IRC) is searching for something like uid_t in the libc crate; you get the path libc::types::os::arch::posix88::uid_t when actually libc::uid_t suffices, but to know that you have to scan through the list of re-exports. Is it feasible for rustdoc to index these re-exported use paths?

Issue 2:
Currently, resolve does a lot of redundant error reporting. For example,

/home/cmr/hacking/rust/src/libextra/interner.rs:161:8: 161:18 error: unresolved name
/home/cmr/hacking/rust/src/libextra/interner.rs:161 ast::ident { repr: off, ctxt: 0 }
^~~~~~~~~~
/home/cmr/hacking/rust/src/libextra/interner.rs:161:8: 161:18 error: use of undeclared module `ast`
/home/cmr/hacking/rust/src/libextra/interner.rs:161 ast::ident { repr: off, ctxt: 0 }
^~~~~~~~~~
/home/cmr/hacking/rust/src/libextra/interner.rs:161:8: 161:18 error: `ast::ident` does not name a structure
/home/cmr/hacking/rust/src/libextra/interner.rs:161 ast::ident { repr: off, ctxt: 0 }
^~~~~~~~~~

This should be a single error, "error: use of undeclared module ast".

Another example:

/home/cmr/hacking/rust/src/libextra/interner.rs:161:8: 161:18 error: unresolved name
/home/cmr/hacking/rust/src/libextra/interner.rs:161 ast::ident { repr: off, ctxt: 0 }
^~~~~~~~~~
/home/cmr/hacking/rust/src/libextra/interner.rs:161:8: 161:18 error: use of undeclared module `ast`
/home/cmr/hacking/rust/src/libextra/interner.rs:161 ast::ident { repr: off, ctxt: 0 }
^~~~~~~~~~
/home/cmr/hacking/rust/src/libextra/interner.rs:161:8: 161:18 error: `ast::ident` does not name a structure
/home/cmr/hacking/rust/src/libextra/interner.rs:161 ast::ident { repr: off, ctxt: 0 }
^~~~~~~~~~

Fixing this will require careful finagling of resolve. The best way to handle this is probably some central error reporting infrastructure, and as soon as one error is reported, stop making new errors for the current span. This is going to be tricky because every error path needs to be followed to ensure that an error is reported, and that if only one error is reported, it is the right error. Needs vastly improved test coverage in compile-fail. Shouldn't be hard, but will take time.

Nominating for production-ready.
Issue 1:
Elasticsearch version:

1.7.5

JVM version:

1.8.0_40-64

OS version:

centos6

Description of the problem including expected versus actual behavior:

The current merge count is different between _cat/nodes and _stats/merges. We show multiple merges being performed on the _cat/nodes api, however, _stats/merges shows no merges being performed for any index. We are not sure what is the true merge activity on the cluster. Also, is there a way to see what shards are bing merged?

Steps to reproduce:

We are not sure how the cluster gets into this state. We have experienced this multiple times. We have not found a way to clear what we think are stuck merges without bouncing the nodes.

Provide logs (if relevant):

Issue 2:
Marvel Sense is not working over ssl, it hangs when it tried to connect to the elasticsearch API.The rest of Marvel seems to be working fine, as does the elasticsearch API if called directly.

I am using a freshly installed elasticsearch 1.4.1 and the latest Marvel.

Elasticsearch is exposed on the internet over SSL as https://mydomain/.

When I profile the javascript in the browser, I can see that Marvel Sense actually tries to make the calls to the API over http, even though the API and Marval are using https. My Elasticsearch installation is not available over the internet to anything other than https. I have nginx installed, which passes the elasticsearch calls from 443 to 9200. Again this all works fine when calling the Elasticsearch API or the plugins etc.

Marvel Sense ignores the url that is in the config file (plugins/marvel/_site/kibana/config.js). It goes to http even if I hardcode the elasticsearch with a https prefix.
Issue 1:
Summary of the new feature/enhancement

The profiles.json file is hard to find when you don't click the Settings button within the Terminal. Let's move the default location to somewhere more accessible.

Issue 2:
Summary of the new feature/enhancement

The area in which my cursor will shift from a pointer to a double-sided arrow for resizing is very small right now, which makes it more difficult than it needs to be to resize the window.

I'd like to see this area be increased so it's not so difficult to resize.
Issue 1:
deno: 0.10.0

v8: 7.7.37

typescript: 3.5.1

When you try to import an ecmascript module using the REPL, you get an Uncaught SyntaxError:

> import Drash from "https://deno.land/x/drash@v0.8.6/mod.ts";
error: Uncaught SyntaxError: Unexpected identifier
► <unknown>:1:8
at evaluate (js/repl.ts:87:34)
at replLoop (js/repl.ts:145:13)

Node.js allows CommonJS module loading using their REPL, but I'm unable to import ES modules there either: https://stackoverflow.com/questions/56963708/.

Issue 2:
When in the Deno REPL and executing:

import { env } from "deno";

The output is:

SyntaxError: Unexpected token {

Probably related to #1158

Executing: deno -v on the commandline returns:

deno: 0.2.1

v8: 7.1.302.4

typescript: 3.2.1