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

Windows Terminal (Preview)
Version: 0.6.3121.0

PS C:\> $PSVersionTable

Name Value
---- -----
PSVersion 5.1.19018.1
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19018.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PS C:\> conda --version
conda 4.7.12

Steps to reproduce

Install Anaconda

Create a profile in profiles.json which is the same as the following, with updated references where needed:

// profiles.json

{
"profiles":
[
{
"guid": "{398546a1-6641-4b31-b81d-2afca23ddc5f}",
"icon": "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png",
"hidden": false,
"name": "Anaconda Powershell Prompt (current)",
"startingDirectory": "%HOMEPATH%",
"commandline": "%windir%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -ExecutionPolicy ByPass -NoExit -Command \"& 'C:\\Users\\[REDACTED]\\scoop\\apps\\anaconda3\\current\\shell\\condabin\\conda-hook.ps1' ; conda activate 'C:\\Users\\[REDACTED]\\scoop\\apps\\anaconda3\\current' \""
},
],
}

Try to launch launch this profile in Terminal

Expected behavior

This same profile had been used to launch an Anaconda Powershell Prompt and until Terminal v0.6.3121.0, had been working properly.

Actual behavior

Now, there is a brief flash where it seems like Terminal is trying to launch the shell, but it quickly fails to do so and closes that tab. If I launch a regular PowerShell shell, and then manually issue the Command, I can get things working as they previously did, so this seems to be a recent change with how the commandline property is read rather than what I'm trying to execute. This seems to have stopped working with the update I received from Microsoft Store recently. Microsoft Store indicates that I received an update yesterday, but I can't confirm that this was when this change occurred, only that it happened in the past few days as this was working last week. I am suspicious that there was a change with how escaping things might have changed but I wasn't able to determine what is different now and what might work.

Issue 2:
This means a profile specifying %WINDIR%/system32/cmd.exe will hyperexplode, much like my coffee mug.
Issue 1:
In previous versions of Superset, whenever we double-clicked on a category in a chart with dimensions, it would become the only active category in the chart. However, in version 2.1.0, it doesn't seem to work as expected. Double-clicking on a category now has the same behavior as a single click, which deactivates the category from the chart.

How to reproduce the bug

Go to a Time-series chart (for example) with a dimension - see screenshot below as an example

Double Click on one of the categories found on the legend of the chart

Expected results

As it happened in latest versions, it would be expected that the only category which would appear in the chart is the double clicked one.

Actual results

It's currently working as if it were a single click, by deactivating the double clicked category from the chart.

Screenshots

Environment

browser type and version: Google Chrome v113.0.5672.93

superset version: 2.1.0

python version: 3.8.10

node.js version: Not installed

any feature flags active: Yes, the following ones -> THUMBNAILS, LISTVIEWS_DEFAULT_CARD_VIEW, DASHBOARD_NATIVE_FILTERS, VERSIONED_EXPORT, ALERT_REPORTS, OMNIBAR, DASHBOARD_RBAC, THUMBNAILS_SQLA_LISTENERS, EMAIL_REPORTS_CRON_RESOLUTION, ENABLE_TEMPLATE_PROCESSING, CUSTOM_TEMPLATE_PROCESSORS

Checklist

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Issue 2:
After update to 2.1.0 from 2.0.1 we are unable to filter one line on chart with multiple dimensions via double clicking on it. (Does not depends on chart type: for example, Time-series Area chart and time-series bar chart had been tested).

It was very useful feature and all of our charts were depended on it (on version 2.0.1) - our users would simply double click on a single line to explore certain tendency rather then disabling every other line via navigation bar on top-right of the chart.

Are there any options to turn this feature back on?

How to reproduce the bug

Go to any chart (for example, 'Time-series Area chart') with multiple dimensions

Double click on a single row

Expected results

Only chosen dimension left on a chart

Actual results

Nothing happens, there are still multiple dimensions on a chart.

Environment

browser type and version: Google Chrome 109.0.5414.120 (also tested on Firefox 111.0.1)

superset version: superset 2.1.0

python version: python 3.8.12

node.js version: node 10.24.0

Checklist

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.
Issue 1:
According to #5185, string literal types are assignable to plain strings. Given the following type definition:

type NodeType = "IfStatement"
| "WhileStatement"
| "ForStatement";

Both these assignments are valid:

const nodeType1: NodeType = "IfStatement";
const nodeType2: string = nodeType1;

However, string literal types currently can't be used as index signature parameter types. Therefore, the compiler complains about the following code:

let keywords: { [index: NodeType]: string } = {
"IfStatement": "if",
"WhileStatement": "while",
"ForStatement": "for"
};

// error TS1023: An index signature parameter type must be 'string' or 'number'.

Shouldn't that scenario be supported, given that string literal types are assignable to strings?

/cc @DanielRosenwasser

Issue 2:
Hi, I'm porting a "huge" solution which consists of more than one web application project on the same Visual Studio solution. The scenario is like this:

a Visual Studio Solution consisting of multiple App Library projects and multiple websites, all using a mix of jquery/signalr/angularjs and so on client side libraries.

the plain javascript portion of each website projects is going to be ported to TypeScript.

References to the same NuGet packages for .d.ts file for jQuery, SignalR and so on were added to every web application project.

Half of the times I open the solution I get 'TS2300 duplicate identifire' error on all those .d.ts files, building the solution as a whole is impossible.

The error goes away if I unload all the website projects and I keep open just the one that I'm going to compile.

The obvious workaround is to create multiple solutions: one for each website, but it's a thing I would like to avoid if possible.

Anyone else has experimented something similar?

Thanks for any help.

Alessandro
Issue 1:
This happened when I renamed stylesheets folder to styles and reloaded.

The handle(3) returned by watching /root/.atom/packages/git-diff-popup/styles is the same with an already watched path(/root/Dropbox/.atom/packages/git-diff-popup/styles)/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/main.js:70
HandleWatcher.start/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/main.js:30
HandleWatcher/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/main.js:120
PathWatcher/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/main.js:179
exports.watch/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/directory.js:334
module.exports.Directory.subscribeToNativeChangeEvents/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/directory.js:95
module.exports.Directory.willAddSubscription/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/directory.js:3
__bind/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/directory.js:89
module.exports.Directory.onDidChange/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/watcher.js:50
module.exports.Watcher.watchDirectory/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/package-watcher.js:46
module.exports.PackageWatcher.watch/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/package-watcher.js:30
PackageWatcher/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/ui-watcher.js:71
module.exports.UIWatcher.createWatcher/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/ui-watcher.js:65
module.exports.UIWatcher.watchPackage/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/ui-watcher.js:31
module.exports.UIWatcher.watchPackages/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/ui-watcher.js:16
UIWatcher/usr/share/atom/resources/app.asar/node_modules/dev-live-reload/lib/main.js:16
(anonymous function)/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82
module.exports.Emitter.emit/usr/share/atom/resources/app.asar/src/package-manager.js:402
(anonymous function)/usr/share/atom/resources/app.asar/node_modules/q/q.js:794
_fulfilled/usr/share/atom/resources/app.asar/node_modules/q/q.js:823
Promise.then.Q.nextTick.self.promiseDispatch.done/usr/share/atom/resources/app.asar/node_modules/q/q.js:756
promise.promiseDispatch/usr/share/atom/resources/app.asar/node_modules/q/q.js:564
(anonymous function)/usr/share/atom/resources/app.asar/node_modules/q/q.js:110
flushnode.js:357
_tickCallback

atom 201

ubuntu 14.0.4

apm 0.168.0

npm 2.5.1

node 0.10.35

python 2.7.6

git 1.9.1

Issue 2:
This doesn't actually initialize a livereload watcher, does it?

It's just a shortcut to refresh the UI, correct?
Issue 1:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

jax.numpy.prod does not work with tuples but numpy.prod works just fine. See MWEs below

import numpy
print(numpy.prod((1,128)))
# 128
print(numpy.prod((128,)))
#128

The same code crashes for jax.numpy

import jax
print(jax.numpy.prod((1,128)))

Error mesage:

TypeError: prod requires ndarray or scalar arguments, got <class 'tuple'> at position 0.

Issue 2:
I have come across a case where grad of a scalar with respect to another scalar gives a vector. I have noticed at least one place where if you change the code you get a scalar (indicated by the fail clause).

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

from jax import numpy as jnp, vmap, value_and_grad

FAIL = True

def f2(y, z):
v1 = z
v2 = jnp.sum(y) + z

if FAIL:
return jnp.logaddexp(v1, v2)
else:
return v1 + v2

def f1(y, z):
v = vmap(lambda _y: f2(_y, z))(y)
return jnp.sum(v)

if __name__ == '__main__':
y = jnp.ones((3, 2))
f = lambda z: f1(y, z)
z = 0.1
val, g = value_and_grad(f)(z)
print(val.shape, g.shape)
assert val.shape == ()
assert g.shape == ()

jax.__version__ = 0.2.9
jaxlib.__version__ = 0.1.61
Issue 1:
It would be nice if we could write some kind of validation on user defined types. Something like:

type Integer(n:number) => String(n).macth(/^[0-9]+$/)
let x:Integer = 3 //OK
let y:Integer = 3.6 //wrong

type ColorLevel(n:number) => n>0 && n<= 255
type RGB = {red:ColorLevel, green:ColorLevel, blue:ColorLevel};
let redColor:RGB = {red:255, green:0, blue:0} //OK
let wrongColor:RGB = {red:255, green:900, blue:0} //wrong

type Hex(n:string) => n.match(/^([0-9]|[A-F])+$/)
let hexValue:Hex = "F6A5" //OK
let wrongHexValue:Hex = "F6AZ5" //wrong

The value that the type can accept would be determined by the function parameter type and by the function evaluation itself. That would solve other issues like #6902, #6579 or #7982

Issue 2:
There are cases, where a property can not just be any string (or a set of strings), but needs to match a pattern.

let fontStyle: 'normal' | 'italic' = 'normal'; // already available in master
let fontColor: /^#([0-9a-f]{3}|[0-9a-f]{6})$/i = '#000'; // my suggestion

It's common practice in JavaScript to store color values in css notation, such as in the css style reflection of DOM nodes or various 3rd party libraries.

What do you think?
Issue 1:
When initially running this, I had the incorrect px size in my code (30 instead of 16), but it gave me a pass..

Challenge Change the Font Size of an Element has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<style>
.red-text {
color: red;
}
p {font-size: 30px;}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Issue 2:
Issue Description

One of the requirement to pass the test is "Between the style tags, give the p elements font-size of 16px. Browser and Text zoom should be at 100%." however is passes with "30px" as well that was given with example

Browser Information

Browser Name, Version: Firefox 50.0.2

Operating System: Ubuntu

Mobile, Desktop, or Tablet: Desktop

The Code

<style>
p {font-size: 30px;}
.red-text {
color: red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

first time reporting for a bug
Issue 1:
VSCode Version: 1.0.0-alpha

OS Version: Windows 10

Steps to Reproduce:

Open a folder

Open a file outside that folder

Drag the non-workspace file from working files to your open folder in explorer

You cannot move the non-workspace file into your project from working files. I'm guessing this might be by design based on #4893

Issue 2:
VSCode Version: 0.10.12-alpha

OS Version: Windows10

Steps to Reproduce:

Launch app and add any file or open any folder.

Verify rename operation inside explorer using F2 key.

Actual: There is no way to rename explorer contents using any keyboard shortcut or with mouse double click.

Scenario:

I tried to add a html file but forgot to add extension. As there is no way to rename the file or change the extension inside explorer window so I added other file with the same name and .html extension. That took me to perform couple of actions along with copy and paste the file contents. If we have a option to rename the file or change the file extension by pressing F2 then it would be more convenient and save multiple user's actions.
Issue 1:
When I click the 'File', 'Edit', etc menu items when atom is opened on a secondary screen, the menu items do not show up. I have to drag atom to my primary monitor to see the menu items expand. Depending on the location of atom on the secondary scree, you can see the menu items appear in the top right hand screen of my primary monitor (attached screenshot)

Issue 2:
I have a 3 monitor setup, when atom is maximized on any monitor but the left most one the file menu opens up one monitor to the left.

Windows 7

Atom vs 0.124.0
Issue 1:
OS X 10.11.1 (also happens in 10.11.0), Electron 0.34.0

Steps to reproduce:

Create a new browser window with "title-bar-style": "hidden-inset".

Enter fullscreen mode.

The titlebar is not hidden in fullscreen mode, meaning there is a blank bar on the top of the screen:

This should have the same behavior as `"title-bar-style": "hidden"`` - The title bar is hidden, and mousing over the top of the window reveals a small title bar with window controls.

Issue 2:
Origintal ticket: sindresorhus/caprine#5

In fullscreen mode, instead of showing the user toolbar, it covers it up with a gray frame.

1. Normal

#### 2. Fullscreen

#### 3. Fullscreen with menubar visible

Ideally it would show the top (covered up) web content in both 2. and 3., so my custom toolbar would be visible there.

OS X 10.10 and Electron 0.32.3.

@jaanus
Issue 1:
Steps to Reproduce

Open the Text Fields demo in Flutter Gallery. Write some text in the Life Story field, hit the return key on the keyboard. The text cursor doesn't move to the next line until you type another character.

[✓] Flutter (Channel dev, v0.2.0, on Mac OS X 10.13.2 17C88, locale en-US)
• Flutter version 0.2.0 at /Users/vik/Projects/flutter
• Framework revision f8ac23cd86 (10 days ago), 2018-03-05 23:27:57 +0100
• Engine revision a00f8e8bc0
• Dart version 2.0.0-dev.32.0.flutter-ee15c8eb68

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/vik/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
✗ Android license status unknown.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.2.0

[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio - old.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.2.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 20.0.2
• Dart plugin version 172.4343.25

[✓] Connected devices (1 available)
• Viktor’s iPhone • 0f78a8bf61e64931b13636987dc7597b86ba55a7 • ios • iOS 11.2.6

! Doctor found issues in 1 category.

Issue 2:
Hi.

How do I create a TextArea? That means a TextField where when you press enter on your keyboard it adds a new line, something like notepad, or really any text editor. When I press enter in a TextField it just toggles the keyboard.

How can I achieve this in flutter? Thank you.
Issue 1:
We do not report much in the way of stats (memory used, latency, counters, etc) for our core components.

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Kubernetes version (use kubectl version):

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:
Issue 1:
Library Version: THREE.WebGLRenderer 74dev (also occured in current master branch)

Firefox 42.0, Windows 10, NVIDIA GeForce GTX 560 Ti

The code for creating a sphere in SphereBufferGeometry.js (https://github.com/mrdoob/three.js/blob/master/src/extras/geometries/SphereBufferGeometry.js) creates multiple vertices ontop of each other.

(see lines 53-55):

for ( var y = 0; y <= heightSegments; y ++ ) {

var verticesRow = [];

var v = y / heightSegments;

for ( var x = 0; x <= widthSegments; x ++ ) {

var u = x / widthSegments;

var px = - radius * Math.cos( phiStart + u * phiLength ) * Math.sin( thetaStart + v * thetaLength );
var py = radius * Math.cos( thetaStart + v * thetaLength );
var pz = radius * Math.sin( phiStart + u * phiLength ) * Math.sin( thetaStart + v * thetaLength );

Since v is always 0 for the first row of vertices, and the sin(0) is also 0, x and z of the first vertices will always be zero.

y will always be 1, since cos(0) == 1

So unless thetaStart is chosen != 0, it will create multiple vertices ontop of each other.

See fiddle and screenshot.

Repro:

Create a sphere with default values (let phiStart and thetaStart be 0)

Check vertices (print them to console, for example.

http://jsfiddle.net/hw9rcLL8/

Issue 2:
I noticed that there is an unnecessary repetition of vertices in the output when exporting from blender to JSON in BufferGeometry format.

Consider the following cube example:

When I export it using type: Buffergeometry, I get a 1.8 kb file with 34 vertices:

"metadata":{
"normal":34,
"position":34,
"version":3,
"type":"BufferGeometry",
"generator":"io_three"
}

see full output for flat cube

However, when I smooth out the faces, like this...

... I get a much more reasonable output with only eight vertices, and a 0.9 kb file:

"metadata":{
"normal":8,
"position":8,
"version":3,
"type":"BufferGeometry",
"generator":"io_three"
}

see full output for smooth cube

Why does the flat cube get 34 vertices, instead of the expected 8? Shouldn't the flattening be handled in the normals instead of by making all faces separate? When I export a flat cube using the type: Geometry setting, I get 8 vertices and 6 normals, so it seems that it's possible.

System Specs:

[ x ] Windows

[ x ] Blender 2.78a

[ x ] io_three version: (1, 5, 0)

Exporter settings:

Enabled precision to 2
Issue 1:
by policehsh:

run attachments,you can see each time we call test_handle_leaks_callback , a system
handle is leaked(you can Watch handles in windows task manager)

Attachments:

main.go (286 bytes)

test.c (321 bytes)

test.h (93 bytes)

Issue 2:
What steps will reproduce the problem?
1. compile the following sample program:
package main
//line a.go:2
func main() {
panic(nil)
}

2. run it.

What is the expected output?
the traceback should mention a.go (or t.go?), and the line number should be 3.

What do you see instead?
panic: nil

goroutine 1 [running]:
main.main()
/home/minux/go/go.hg/t/t.go:0 +0x27

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

Which operating system are you using?
Linux/ARM and Linux/amd64.

Which revision are you using? (hg identify)
23995c78329e tip

Please provide any additional information below.
Issue 1:
Environment

Windows build number: 18362.418
Windows Terminal version: 0.5.2762.0

Steps to reproduce

Install Node.js

Run this command in Node.js repl: console.log('\u001b[0m\u001b[7m\u001b[1m\u001b[32m PASS \u001b[39m\u001b[22m\u001b[27m\u001b[0m')

Expected behavior

A PASS is shown in black text and green background.

Actual behavior

In Windows terminal, PASS is shown in dark gray text rather than black. In the old console it is shown in black.

Issue 2:
Currently, the split pane keybindings will always open the default profile.

Perhaps a user will want to open a pane with the currently active pane's profile instead?

This is not #998, which is more about opening a pane with a specific profile, while this is about changing the default split behavior.
Issue 1:
I suspect this is related to the recent release of sphinx 1.7.0 on 2/12/2018. We may need to update the submodule hash for sphinxext, or maybe even fix numpydoc.

Issue 2:
np.abs on a MIN_INT values returns negative numbers.

Reproducing code example:

import numpy as np
t = np.array([-1, 2, 43, -32768], dtype=np.int16)
print(np.abs(t))

or

import numpy as np
t = np.array([-1, 2, 43, -2147483648], dtype=np.int32)
print(np.abs(t))

Numpy/Python version information:

1.17.3 3.7.4 (default, Oct 12 2019, 18:55:28)

[Clang 11.0.0 (clang-1100.0.33.8)]