WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

Windows build number: 18950
Windows Terminal version (if applicable): 0.3

Any other software? Python, Firefox, Visual Studio, etc. They shouldn't impact this problem.

Steps to reproduce

Open the Windows Settings app.

Change from dark mode to light mode, or vice versa.

Expected behavior

The Windows Terminal title bar color will change after a simple change in the Settings app and adapt to the rest of the Windows environment.

Actual behavior

The Windows Terminal title bar color stays the same after the Settings app dark/light mode change. I have to restart the app in order for the Terminal title bar to obey the Settings change.

(Not talking about accent color, by the way)

Issue 2:
Environment

Windows build number:
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal version (if applicable): 0.5.2762.0

Any other software?
GNU nano (windows port, installed from chocolatey.)

Steps to reproduce

Run GNU nano.

Expected behavior

Cursor is aligned with where the text is appearing, follows after a newline, etc. (screenshot of conhost)

Actual behavior

Cursor doesn't follow after a newline, and doesn't stay aligned to the insert point.
Issue 1:
Hey.

So I briefly talked with @tacaswell about this. I mostly use scatter to show a discrete third variable via color (say I plot weight vs height and want to color by gender). The current scatter is not entirely equipped for this, because it doesn't really allow me to create the legend that I want, and I doesn't allow me to use cyclers on the symbols or color.

What I want can be relatively trivially implemented as a for-loop over the unique values of the discrete variable, and calling plot once for each.

I use this A LOT, and other data sciency folks, too, I think, so it would be nice to have a one-liner for this, i.e. implement a function that does that for you.

My question is:

Should this go into matplotlib or somewhere else?

If it should go into matplotlib, should it go into scatter or into a new function?

Issue 2:
currently specifying an array for color or size, only works for continuous data. using markers and colors mapped to subsets based on categorical data is hard and manual (basically you subset the data in a loop and call plot multiple times).

i thought it would be hard as list-of-string already means something for some parameters (markers and colors can be specified as strings). but there is pandas’ category dtype.

i propose that using a categorical vector for one of these parameters should be automatically mapped to a palette of colors/markers when specified as c or marker.

# with A, B, C, being either categorical or quantitative,
# S being quantitative, and M being categorical
plt.scatter('A', 'B', s='S', c='C', marker='M', data=df)

# of course also works with arrays, and bool acts like categorical data:
plt.scatter(arr[:,0], arr[:,1], c=arr[:,-1] > 0)

more palettes than just the colormap

the color palette for categorical data would be plt.rcParams['axes.prop_cycle'].by_key()['color'], the marker palette a new rcParam (maybe?)

those palettes would be cycled if there are too many categories.

legends

categorical: legend

discrete: (ordered legend or segmented bar)

continuous: bar (colorbar for color, isosceles trapezoid for size)

open questions

are integers treated as quantitiative + discrete (legend containing all separate values) or continuous (bar)

how to specify if a legend/colorbar/sizebar should created? it makes sense to automatically do it if we use the data= interface
Issue 1:
Steps to reproduce:

Login with an user in level 282.

Go to http://freecodecamp.com

Actual: Redirect to challenge 0.

Expected: Redirect to most recent challenge. One challenge after my last challenge finished. Never redirect to a challenge that the user has already finished.

Issue 2:
every time i log in i am taken back to the start of the new user challenges

I'm using FF 43.0.4 on windows 10
Issue 1:
I'm following the 5 minutes Quick Start

https://angular.io/docs/js/latest/quickstart.html

But, I got the error below from Browser:

Failed to load resource: the server responded with a status of 404 (Not Found)

es6-module-loader@0.16.6.js:1 Potentially unhandled rejection [3] Error loading "appone" at https://registry.jspm.io/appone.js

Not Found: https://registry.jspm.io/appone.js (WARNING: non-Error used)

[file appone.html]

<!doctype html>

<html>
<head>
<title>Angular 2 Quickstart</title>
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.91/traceur-runtime.js"></script>
<script src="https://jspm.io/system@0.16.js"></script>
<script src="https://code.angularjs.org/2.0.0-alpha.34/angular2.js"></script>
</head>
<body>
<!-- The app component created in appone.ts -->
<my-app></my-app>

<script>
System.config({
baseURL: '/app'
});

System.import('appone');
</script>

</body>
</html>

[My Enviroment Information]

TypeScript 1.5.3

Browsers: IE 11 and Chrome 44 (Both has this problem)

Issue 2:
Currently, the 'patchEventTargetMethods' method in utils.js seems to cause an error under Microsoft Edge. The bind operation fails because the function object that is passed is not of type 'function' as expected but is an object instance of type 'FunctionWrapper'.

Here's the output I get in the console:

SCRIPT5022: Expecting function got: [object FunctionWrapper]
core.js (44,7)

Putting a breakpoint in the bind function, I see that typeof fn returns "object".

I'm not sure whether the issue is actually caused by zone.js, angular or another dependency and I don't really know how to go about and debug it..

Here's a basic plunker that has the issue: http://embed.plnkr.co/GohfcaiNrwVRn8Hq42tM/preview
Issue 1:
Currently in a debugger session, console.log etc will not show by default.

Some debuggers can pipe output, though this will be less featureful and not as readily available as channeling through the debugger protocol.

V8 has a builtin console that is "debugger protocol" enabled, resulting in messages like:

Client < {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"Adding 1 2","url":"/home/gudmund/code/ts-test/build/index.js","line":2,"column":13}}}
Client < {"method":"Runtime.consoleAPICalled","params":{"type":"log","args":[{"type":"string","value":"Adding "},{"type":"number","value":1,"description":"1"},{"type":"number","value":2,"description":"2"}],"executionContextId":1,"timestamp":1587836285935.544,"stackTrace":{"callFrames":[{"functionName":"add","scriptId":"54","url":"file:///home/gudmund/code/ts-test/build/index.js","lineNumber":1,"columnNumber":12},{"functionName":"","scriptId":"54","url":"file:///home/gudmund/code/ts-test/build/index.js","lineNumber":7,"columnNumber":15},{"functionName":"Module._compile","scriptId":"44","url":"internal/modules/cjs/loader.js","lineNumber":1152,"columnNumber":13},{"functionName":"Module._extensions..js","scriptId":"44","url":"internal/modules/cjs/loader.js","lineNumber":1175,"columnNumber":9},{"functionName":"Module.load","scriptId":"44","url":"internal/modules/cjs/loader.js","lineNumber":999,"columnNumber":31},{"functionName":"Module._load","scriptId":"44","url":"internal/modules/cjs/loader.js","lineNumber":898,"columnNumber":13},{"functionName":"executeUserEntryPoint","scriptId":"53","url":"internal/modules/run_main.js","lineNumber":73,"columnNumber":11},{"functionName":"","scriptId":"40","url":"internal/main/run_main_module.js","lineNumber":17,"columnNumber":46}]}}}

From which one can inspect logged variables via the debugger.

https://github.com/v8/v8/blob/master/src/inspector/v8-console.cc#L219

This console implementation is available on globalThis.

In trying to utilize this, there were two issues:

Detection of debugger/inspector mode. If the normal 'console...' calls are to be routed to the v8 implementation in debugger mode, I did not see a way to detect debugger/inspector mode.

Implementation routing of console calls to v8 console.

There is a simple example implementation in a PR incoming below, just meant to illustrate.

Diff between deno's and v8's console

A simple name comparison gives the following diff.

v8 extra:

context(name) - Used to group outputs into tabs in devtools

profile(name?: string) - Profile code. Have not investigated if this works currently

profileEnd()

timeStamp(name?: string) - Adds a labeled mark to be used with Performance

deno extra:

(indentLevel - internal)

Issue 2:
Issue 1:
🚀 Feature request

Hello!

I am using the translation pipeline, and I noticed that even though I have to specify the language when I create the pipeline, the passed model overwrites that. So pipeline created as

nlp = pipeline('translation_en_to_de', 'Helsinki-NLP/opus-mt-en-jap')

would translate english to japanese, in contrary to the task name. Is this the intended way of translating other languages, will it change in the future?

Would it be possible to just add a single 'translation' task for pipelines, which would then resolve the languages based on the model (which it seems to do anyway now) ?

Motivation

It would clear up the current confusion, and make the pipeline function singature less prone to change.

It could also possibly reduce code duplication in https://github.com/huggingface/transformers/blob/master/src/transformers/pipelines.py

My contribution

I'd love to help with a PR, though I'm confused: The SUPPORTED_TASKS dictionary in pipelines.py contains exactly the same entries for each translation pipeline, even the default model is the same, yet the specific pipelines actually translate to different languages 🤔

Issue 2:
🚀 Feature

I would like a function like glue_convert_examples_to_features for sequence labelling tasks.

Motivation

The motivation is that I need much better flexibility for sequence labelling tasks. Its not enough to have a final, and decided for me model, for this task. I want just the features (a sequence of features/embeddings I guess).

Additional context

This can be generalized to any dataset with a specific format.
Issue 1:
Secret key names like id_rsa and id_rsa.pub are illegal (see #13357). This makes it impossible to use secrets for loading ssh keys and other files with underscores into your containers.

Can the restrictions be loosened so it maps to linux filename restrictions instead of DNS_SUBDOMAIN?

Issue 2:
Currently the key of a piece of secret data has to be a DNS subdomain. We went with DNS subdomains instead of defining a new format during the implementation because we assumed that a dns subdomain was a strict subset of the eventual format to use. It has been suggested in #7974 that we create a format to model file names use that format to validate keys in secrets.
Issue 1:
From #6106:

we currently do not have support to contribute actions to the context menu of the explorer or to the editor title area, but we have actions there to open a preview from a markdown file in both places and we also have an action to jump back to the source from a markdown preview

Issue 2:
I'd like to add a context menu item that performs a Google search using the current selection.

However, there doesn't seem to be a way to bind to the right click or to an open context menu event.

I see several requests for features to add to the context menu... wouldn't it be easier if VS Code just made it possible for extensions to register a context menu entry?
Issue 1:
👋 team,

I am working on DocSearch , an algolia tool. We are proud to feature the search from your documentation website.

Congrats for the v7 👏

It needed an update from our side in order to avoid having duplicates from v7 and the latest 6.26.3. No worries, everything is proactively updated (we monitor big changes)

If you want, we do offer filtering over language and version. Since you are using Docusaurus, the version and language filters are handled automatically from the Search-UI. We will need you to enable it and check that your Docusaurus instance is updated.

Please ping me if you want to enable this feature. I will PR the required changes from your DocSearch configuration.

Your website will have an adaptive search instead of only retrieving the latest version.

Issue 2:
Babel very strange move comments: example, DojoDoc comments in function and info about copyright.

Input Code

// Available via the modified BSD license. See LICENSE for details.

import a from "a";

const ESC = 27;

var obj = {
isValid: function(/*Boolean*/ /*===== isFocused =====*/) {
return true;
}
};

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

es2015 preset

Expected Behavior

// Available via the modified BSD license. See LICENSE for details.
"use strict";

var _a = require("a");

var _a2 = _interopRequireDefault(_a);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ESC = 27;

var obj = {
isValid: function isValid(/*Boolean*/ /*===== isFocused =====*/){
return true;
}
};

Current Behavior

"use strict";

var _a = require("a");

var _a2 = _interopRequireDefault(_a);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ESC = 27; // Available via the modified BSD license. See LICENSE for details.

var obj = {
isValid: function isValid() /*Boolean*/ /*===== isFocused =====*/{
return true;
}
};

Your Environment

You can reproduce on your sandbox ("Try it out"): http://babeljs.io/repl/
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/3289/

Multiple broken tests:

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for intra-pod communication: udp [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:45
Oct 23 18:38:04.743: Failed to find expected endpoints:
Tries 0
Command curl -q -s 'http://100.96.2.6:8080/dial?request=hostName&protocol=udp&host=10.123.45.3&port=8081&tries=1'
retrieved map[]
expected map[netserver-1:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:206

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for node-pod communication: http [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:52
Oct 23 18:39:59.326: Failed to find expected endpoints:
Tries 0
Command curl -q -s --connect-timeout 1 http://10.123.45.6:8080/hostName
retrieved map[]
expected map[netserver-0:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:255

Issues about this test specifically: #33631 #33995

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for node-pod communication: udp [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:59
Oct 23 18:35:27.966: Failed to find expected endpoints:
Tries 0
Command echo 'hostName' | timeout -t 3 nc -w 1 -u 10.123.45.4 8081
retrieved map[]
expected map[netserver-0:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:255

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for intra-pod communication: http [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:38
Oct 23 18:38:03.456: Failed to find expected endpoints:
Tries 0
Command curl -q -s 'http://100.96.2.7:8080/dial?request=hostName&protocol=http&host=10.123.45.5&port=8080&tries=1'
retrieved map[]
expected map[netserver-1:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:206

Previous issues for this suite: #34196 #34777 #35305

Issue 2:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/2102/

Run so broken it didn't make JUnit output!
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

There is no way to trigger a navigation while preventing a pushState event

Expected/desired behavior

There should by a way of preventing the pushState event, maybe using the NavigationExtras:

this.router.navigate(['/myRoute', {id= id}], {preventPushState: true});

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

I have a route that listen for its fragment parameters. When they are not present, I setup default values and trigger a navigation so that the url is updated correctly. There is no way for the user to go back since it will always be redirected from [route without param]->[route with param]. I would like to update the url without pushing an history state.

Issue 2:
This issue is related to the new-new router:

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

There is not currently any way to navigate through an application while skipping the browser history.

Expected/desired behavior

In the router-deprecated there was a second parameter on the navigateByUrl method that allowed us to skipLocationChange. It would be nice if the navigate method allowed this too.

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

I have a specific use case where we have a 'loader' component that does a service call and essentially decides where to route you. I would like to be able to navigate to this loader component without including it in the back button history so that the browser doesn't get stuck in an infinite loop of going back to the loader only to get redirected.

Please tell us about your environment:

Angular version: 2.0.0-rc.3

Router version: alpha.7

Browser: [all]

Language: [all]
Issue 1:
I don`t know if it is bug or feature, but since you put into input with type number two minuses it will stop calling onChange callback, but value inside input will change

React 15.4.2

Browser Version 60.0.3112.90 (Official Build) (64-bit)

Issue 2:
A controlled number input, without a corresponding setState function, still allows e, - and . to be entered (and numbers can be inputted afterwards). I could be incorrect but I don't believe this is the desired behavior.

Here's a JSFiddle demonstrating the issue.
Issue 1:
I'm pretty sure this was not the behavior last week, but at least today in the new atom version it is.

System: Win8.1, Atom 0.211.0

Issue 2:
Originally reported over at atom/atom#6008 (thanks @philsinatra!).

Example:

<div class="wrapper">
<div class="main">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti ipsam ullam magni minus, aperiam animi, quasi corporis. Impedit expedita, excepturi, iure corporis quo maxime, aperiam perferendis voluptas praesentium sint quam.</p>
</div>
</div>

Position the cursor after class="wrapper"> and execute the "Select inside brackets" command. Result:

Instead, I expected to see this:

I'm guessing that the command doesn't expect it will see any attributes, so it just selects starting from where it thinks the > of the opening tag will be?
Issue 1:
Hi, please help me understand why this component is not working as intended?

Of the two use cases is working only case 2...

Source

component

import {Component, Input} from 'angular2/core';

@Component({
selector: 'c12-viewport-footer',
templateUrl: 'viewport-footer.html'
})
export class ViewportFooterComponent {
@Input()
button: boolean = false;
}

view

<div class="c12-viewport__footer" [ngClass]="{'c12-viewport__footer--button': button}">
<template [ngIf]="!button">
<ng-content></ng-content>
</template>
<template [ngIf]="button">
<button class="...">
<ng-content></ng-content>
</button>
</template>
</div>

Example use

Case 1

<c12-viewport>
...
<c12-viewport-footer>
SOME_HTML_CONTENT
</c12-viewport-footer>
<c12-viewport>

Case 2

<c12-viewport>
...
<c12-viewport-footer [button]="true">
SOME_TEXT_CONTENT
</c12-viewport-footer>
<c12-viewport>

Issue 2:
version: ng2-beta12

For some reason the order in which templates are defined is causing issues with transclusion.

Doesn't Work for buttons but works for link

<template [ngIf]="href ===''">
<button [ngClass]="cssClassList">
<ng-content></ng-content>
</button>
</template>
<template [ngIf]="href !==''">
<a [ngClass]="cssClassList" href="href">
<ng-content></ng-content>
</a>
</template>

Works for buttons but not for links

<template [ngIf]="href !==''">
<a [ngClass]="cssClassList" href="href">
<ng-content></ng-content>
</a>
</template>
<template [ngIf]="href ===''">
<button [ngClass]="cssClassList">
<ng-content></ng-content>
</button>
</template>
Issue 1:
NumPy can create boolean arrays out of strings, but cannot convert string arrays to bool_. I think we should follow Python here and assign truth values to strings.

Reproducing code example:

>>> import numpy as np
>>> np.array('N', dtype='?')
array(True)
>>> np.array('N').astype('?')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: 'N'

Error message:

Numpy/Python version information:

Issue 2:
The following table shows the extents of the problem

x : str
sc = np.str_(x)
arr = np.array(x, np.str_)

x
bool(x)
bool(sc)
bool(arr[()])
bool(arr)
sc.astype(bool)

''
False
False
False
False
ValueError

'\0'
True
True
False
False
ValueError

' '
True
True
True
False
ValueError

' \0'
True
True
True
False
ValueError

'0'
True
True
True
True
False

'1'
True
True
True
True
True

'\0 '
True
True
True
True
ValueError

' \0 '
True
True
True
True
ValueError

def call_or_exc(f):
try:
return f()
except Exception as e:
return e

def truthiness(x):
x_arr = np.array(x)
x_sc = np.unicode_(x)
x_sc2 = x_arr[()]
return bool(x), bool(x_sc), bool(x_sc2), bool(x_arr), call_or_exc(lambda: x_sc.astype(bool))

def fmt(x):
if isinstance(x, str): return repr(x).replace(r'\x00', r'\0')
if isinstance(x, Exception): return type(x).__name__
return repr(x)

print(' | '.join("`{}`".format(x) for x in ['x', 'bool(x)', 'bool(sc)', 'bool(arr[()])', 'bool(arr)', 'sc.astype(bool)']))
print(' | '.join(['--'] * 6))
for val in ['', '\0', ' ', ' \0', '0', '1', '\0 ', ' \0 ']:
print(' | '.join("`{}`".format(fmt(x)) for x in (val,)+truthiness(val)))

Generated with...

The differences come down to:

bool(arr[()]) - indexing string arrays causes trailing nulls to be truncated. This is unavoidable.

bool(arr) - has special handling to treat spaces as falsy. This seems unpythonic, since that's not how str.__bool__ behaves - are we stuck with it

arr.astype(bool) - treated as arr.astype(int).astype(bool), which seems bizarre
Issue 1:
In our project we have a number of files where tabs are strictly required (a format we do not control). However, we want to normalize tabs to spaces throughout the rest of the project.

For now, I just ask that people don't edit those files in VSCode. I even considered adding them to the ignore list for VSCode itself. But it's not uncommon to have file-specific settings, so I thought it would be nice if VSCode allowed for more complex patterns - much like files.exclude, perhaps something like:

"editor.insertSpaces": true,
"diffEditor.ignoreTrimWhitespace": true,
"files.settings": {
"**/*.idt": {
"editor.insertSpaces": false,
"diffEditor.ignoreTrimWhitespace": false
}
}

Issue 2:
The new fuzzy file picker makes it really hard to me to find files in huge projects (~5,000 source files). Regardless of what I'm typing in the file picker I receive a lot of results I definitely don't want. Example below:

The old file picker used to work like the IntelliSense widget which feels consistent to me as a user. Is there a way to turn on the old file picker again?