WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Behavior in the vast majority of editors/programs is that if you execute the 'Copy' command (Control/Command + C) when no text is selected is that nothing happens.

Atom instead copies the current line. There's already a nice duplicate-line command, making the behavior not quite necessary.

The real annoyance is that many, many times I mean to press Ctrl-V but I press Ctrl-C instead. So I lose my selection and have to go copy the original text again.

Issue 2:
It's too frequent that someone might accidentally hit the 'c' key instead of the 'v' key when pasting in atom.

instead of copying empty space, the copy shortcut should simply not do anything.

I can write the pull request myself if someone can point me in the right direction, either way if we could improve this very annoying problem it would be great!
Issue 1:
I know you can alter the darkness of the shadow cast based on the light itself:

light.shadowDarkness = 0.5;

but say i have objects with materials of various opacities:

var material = new THREE.MeshPhongMaterial( { color : 0x000000, opacity:0.1} );

material.transparent = true;

all of the shadows are the same darkness. Is there any way for to make the shadows adjust the darkness based on the shadow-casting objects opacity? (more translucent objects cast a lighter shadow)

Issue 2:
Description of the problem

Just as the issue title indicated, I create an InstancedMesh with more than one instances at different positions, but it's just the Box3 result of the Geometry attached to it. After reading the code, I have made a fix.

var _box = new THREE.Box3();
var _vector = new THREE.Vector3();
THREE.Box3.prototype.expandByObject = function (object) {

// Computes the world-axis-aligned bounding box of an object (including its children),
// accounting for both the object's, and children's, world transforms

object.updateWorldMatrix(false, false);

var geometry = object.geometry;

if (geometry !== undefined) {

if (geometry.boundingBox === null) {

geometry.computeBoundingBox();

}

if (object.isInstancedMesh) {
var matrixWorld = object.matrixWorld,
matrix4Array = object.instanceMatrix.array,
arrayLength = matrix4Array.length;
for (var posOffset = 12; posOffset < arrayLength; posOffset += 16) {
_vector.set(matrix4Array[posOffset], matrix4Array[1 + posOffset], matrix4Array[2 + posOffset]);
_box.expandByPoint(_vector);
}
} else {
_box.copy(geometry.boundingBox);
}
_box.applyMatrix4(object.matrixWorld);

this.expandByPoint(_box.min);
this.expandByPoint(_box.max);

}

var children = object.children;

for (var i = 0, l = children.length; i < l; i++) {

this.expandByObject(children[i]);

}

return this;
}

See also:

Box3.expandByObject

Box3.setFromObject

InstancedMesh.instanceMatrix

BufferAttribute.getX

Matrix4.setPosition

Please also include a live example if possible. You can start from these templates:

jsfiddle (dev branch 39)

jsbin (latest release branch)

codepen(latest release branch)

Three.js version

Dev

r113

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Try this:

create a new app

start an emulator

flutter run your new app

yay, it works!

then, replace your lib/main.dart with the following contents:

import 'package:flutter/material.dart';

void main() {
runApp(new MyWidget());
}

class MyWidget extends StatelessWidget {

@override
Widget build(BuildContext context) {
return new GestureDetector(
onTap: () => print('tapped!')
);
}
}

And then:

type r in your flutter run console

Expected: hot reloads and everything is awesome

Actual:

This error:

Initializing hot reload...
I/flutter ( 3394): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 3394): The following _CompileTimeError was thrown building MyApp(dirty):
I/flutter ( 3394): 'file:///C:/Users/sethladd/Documents/Code/circles/lib/main.dart': malformed type: line 25: cannot
I/flutter ( 3394): resolve class 'MyHomePage' from 'MyApp'
I/flutter ( 3394): home : new MyHomePage(title : "Flutter Demo Home Page"),
I/flutter ( 3394): ^
I/flutter ( 3394):

This is a pretty poor user experience:

There is no more MyHomePage class in my source code, why is Flutter telling me there's an error here?

There is no suggestion or hint that I need to Hot Restart

Luckily, I then remembered that:

I can Hot Restart

There is some issue about changing types of widgets and not working well with Hot Reload

(Neither of which a new user would understand :/)

Suggestions:

Tolerate changing widget types (from stateless to stateful) during Hot Reloads

Detect when a Hot Reload isn't possible, error out earlier than showing me code that no longer exists

Suggest to the user something like "Bummer, that didn't seem to work. Please try Hot Restart with capital R."

Thanks!

Issue 2:
Add infrastructure to check for program elements changed in the last reload and not executed. Use this facility in flutter tools to figure out situations where the user makes changes that will not be reflected after a hot reload and warn users about the need to do a hot restart for the changes to take effect.
Issue 1:
like javascript, TypeScript editor needs auto { --> } with auto formatting

it will be very useful

thanks

Issue 2:
In Visual Studio if you go into the options for TypeScript(Tools > Options > Text Editor > TypeScript > General) the "Automatic brace completion" option is grayed out.

I was wondering why this is and if there is any way to turn this on.

Visual Studio Version: Visual Studio Express 2013 for Web v12.0.31101.00 Update 4

OS: *Windows 8.1
Issue 1:
VSCode Version: 1.1.1

OS Version: linux

The list of default keyboard shortcuts does not include alt+click or any other click commands. Is it possible to rebind them?

Issue 2:
On most Linux desktops alt+click will allow you drag a window by clicking anywhere over it. This conflicts with the multiple cursors binding.

It's still possible to obtain multiple cursors with commands like insertCursorAbove or insertCursorAtEndOfEachLineSelected, but this affects multiple people, and it's already covered in some articles with a workaround (which I'm copying here for Gnome based systems: gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "<Super>" change <Super> with your preferred key )

It's also acknowledged in VScode's documentation that this shortcut might conflict even on Windows or Macosx...

Note: Your graphics card provider might overwrite these default shortcuts.

So, fixing this for Linux users might also be useful elsewhere. For comparison, the Atom editor uses ctrl+click instead of alt+click for this shortcut.

Rather than changing the default, making it customizable would already be a welcome improvement, but afaik unfortunately there's no way to change it. These are a couple of related default keybindings:

{ "key": "ctrl+shift+up", "command": "editor.action.insertCursorAbove",
"when": "editorTextFocus" },
{ "key": "shift+alt+up", "command": "editor.action.insertCursorAbove",
"when": "editorTextFocus" }

But since I cannot find any editor.action.insertCursor command, it seems that this option is lacking.
Issue 1:
Environment

Windows build number: win10 1903(18362.239)
Windows Terminal version (if applicable): 0.3.2142.0(from Microsoft Store)

Steps to reproduce

Start this application and drag it somewhere

Expected behavior

Nothing happened

Actual behavior

this window got blank and can't be input

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.267]
Windows Terminal version (if applicable): 0.3.2142.0

Any other software?
Ubuntu 18.04 running in WSL1 with zsh as the default shell.

Steps to reproduce

apt install sl lolcat in case they are not installed yet.

Then run sl | lolcat

Expected behavior

A colorful steam locomotive runs over the screen and my productivity increases by 0.2 %.

Actual behavior

🤷‍♂️

sl works on its own but when piped through lolcat, I only see hundreds of lines of colorful gibberish scrolling by.
Issue 1:
According to the package doc, address without host specified should be allowed, e.g. Dial("tcp", ":80"). But an error connectex: The requested address is not valid in its context is returned on windows 10.

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

$ go version
go version go1.6 windows/amd64

What operating system and processor architecture are you using (go env)?

$ go env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:/Users/taylorchu/go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1

What did you do?

http://play.golang.org/p/G8gttmZyvA

What did you expect to see?

net.Dial without specifying host should cause no error.

What did you see instead?

connectex: The requested address is not valid in its context.

Issue 2:
What steps will reproduce the problem?

run this program on windows

package main

import (
"log"
"net"
)

func dial() error {
l, err := net.Listen("tcp", ":0")
if err != nil {
return err
}

go func() {
c, err := l.Accept()
if err != nil {
return
}
c.Close()
}()

c, err := net.Dial("tcp", l.Addr().String())
if err != nil {
return err
}
c.Close()
return nil
}

func main() {
err := dial()
if err != nil {
log.Fatal(err)
}
}

What is the expected output?

Should output noting.

What do you see instead?

2013/08/30 16:43:22 dial tcp 0.0.0.0:1406: ConnectEx tcp: The format of the specified
network name is invalid.

Please use labels and text to provide additional information.

The problem seems to be that l.Addr().String() returns '0.0.0.0', but connecting to that
address is not allowed on windows. From
http://msdn.microsoft.com/en-us/library/aa923167.aspx

" ... If the address member of the structure specified by the name parameter is
all zeroes, connect will return the error WSAEADDRNOTAVAIL. ..."
Issue 1:
Describe the workflow you want to enable

I Would like to enable KBinsDiscretizer to handle NaNs, in order to create bins representing missing values. This is a bit awkward for ordinal encoding, but makes a lot of sense for one hot encoding, where one can have a dummy variable for NaN values or simply set all dummis of a single feature to zero, meaning the feature value is missing.

Describe your proposed solution

A few tweaks in fit, transform and inverse_transform are enough to ensure this behaviour, without changing the current behaviour of the transformer. The new estimator has two new parameters in the constructor:

nan_handling: {"handle","raise"}, defaults to "raise".

defines the behaviour for hadling NaN. if "handle", the fit process will be performed excluding and the missing values of each column and the transform method will transform only not missing values and after that, a NaN bin is created (of index self.n_bins_ +1)

create_nan_dummy: bool

Only applicable if encode == "onehot". Defines whether a new dummy column is created for NaNs or if the dummies of a missing value for a given feature are all set to zero

Describe alternatives you've considered, if relevant

No response

Additional context

I Have already implemented a solution for a project of mine. Just wanna know if this feature is intereseting for other people and if it makes sense to merge it into the main project.

Issue 2:
Missing values, represented as NaN, could be treated as a separate category in discretization. This seems much more sensible to me than imputing the missing data then discretizing.

In accordance with recent changes to other preprocessing, NaNs would simply be ignored in calculating fit statistics, and would be passed on to the encoder in transform. I can't recall if we're handling this sensibly in OneHotEncoder yet...
Issue 1:
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 2:
#27208 will require Docker to be version 1.9+.

The current image, e2e-node-coreos-stable20160531-image is based on CoreOS 835.13.0 and thus has docker v1.8.3.

An update to the current stable or alpha CoreOS image should unblock #27208.

The process used to be roughly documented here (and further down on the same page).

Validate with export IMAGES=myimage; export IMAGE_PROJECT=my-project; make test_e2e_node REMOTE=true.

I'll get to this when I have spare cycles, but if someone wants to do it sooner that would be awesome too!

cc @yifan-gu @aaronlevy @tmrts if any of you feel like tackling it.

cc @pwittrock @vishh as well
Issue 1:
I know that this issue has been discussed many times before, and that it depends on Chromium integrating support for it. However, maybe there can be an easy workaround?

For example: track a force touch on the entire window rather than on a specific element, and have Electron fire events when it is detected?

Issue 2:
I'd like Electron to support Force Touch mainly for what is described here : atom/atom#11776.

API should have function to receive Force Click/levels of pressure and to send Force Feedback.
Issue 1:
A.ts:

class A<T> { method() {} }
export = A;

B.ts:

import A = require('A');
new A().method();

When using code completion on the .method call in B.ts, getCompletionEntryDetails throws an exception:

TypeError: Cannot read property 'parent' of undefined
at appendOuterTypeParameters (/home/jeffrey/nbts/build/cluster/nbts-services.js:12322:28)
at getOuterTypeParametersOfClassOrInterface (/home/jeffrey/nbts/build/cluster/nbts-services.js:12338:20)
at getTypeParametersOfClassOrInterface (/home/jeffrey/nbts/build/cluster/nbts-services.js:12355:35)
at appendParentTypeArgumentsAndSymbolName (/home/jeffrey/nbts/build/cluster/nbts-services.js:11386:75)
at walkSymbol (/home/jeffrey/nbts/build/cluster/nbts-services.js:11418:29)
at Object.buildSymbolDisplay (/home/jeffrey/nbts/build/cluster/nbts-services.js:11425:21)
at /home/jeffrey/nbts/build/cluster/nbts-services.js:32608:51
at mapToDisplayParts (/home/jeffrey/nbts/build/cluster/nbts-services.js:32592:13)
at Object.symbolToDisplayParts (/home/jeffrey/nbts/build/cluster/nbts-services.js:32607:16)
at addFullSymbolName (/home/jeffrey/nbts/build/cluster/nbts-services.js:37752:49)

Several other services APIs, including getQuickInfoAtPosition and getOccurrencesAtPosition, also throw the same error when used on that .method call.

Issue 2:
Create a new package directory

npm install github

write the following file:

import GH = require("github");

new GH().activity

Get quick info on the word activity

Expected: Quick info.

Actual:

TypeError: Cannot read property 'parent' of undefined
at appendOuterTypeParameters (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:23851:28)
at getOuterTypeParametersOfClassOrInterface (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:23867:20)
at getTypeParametersOfClassOrInterface (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:23884:35)
at appendParentTypeArgumentsAndSymbolName (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:22618:75)
at walkSymbol (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:22650:25)
at Object.buildSymbolDisplay (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:22656:21)
at C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:53274:51
at mapToDisplayParts (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:53260:9)
at Object.symbolToDisplayParts (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:53273:16)
at addFullSymbolName (C:\Users\drosen\AppData\Roaming\npm\node_modules\typescript\lib\tsserver.js:60166:49)
Issue 1:
In a stand-alone CMD window, the CLS command clears not only the text currently visible in the window, but all of the history in the scrollback buffer. In a Windows Terminal CMD tab, clear is clearing only the currently visible text, leaving the scrollback content untouched.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0

Any other software? no

Steps to reproduce

Open a command (CMD) tab.

Execute enough commands to put data in the scrollback buffer.

Execute cls

Observe results

Expected behavior

I expect the screen and scrollback buffer to be completely cleared.

Actual behavior

Only the screen is cleared.

Issue 2:
I feel like this problem should have been reported already, but I couldn't find it in GitHub issue search.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.205] - Win10 ver. 1903 with Microsoft-internal test build for monthly quality update

Windows Terminal version: 8dd2e79 - Azure DevOps CI build for AMD64

Steps to reproduce

Start Terminal, with either a Command Prompt (cmd.exe) tab or a PowerShell tab.

Run this command: type C:\Windows\System32\OEMDefaultAssociations.xml

Observe a long XML file appear on screen.

Run this command: cls

Expected behavior

The visible area of the window is cleared of everything except the cmd/PS prompt, and you can no longer scroll the window view to see any part of the file you displayed. This is what happens in the old console window (conhost.exe).

Actual behavior

The visible area is cleared, but the window scrollbar remains active. When you scroll up, you see that most of the file you displayed remains; only the end of the file is erased up to a length determined by your visible window height.
Issue 1:
You guys seem to be using np.std(x) to scale each column instead of np.std(x, ddof=1). As a result your std estimate is biased. Note that similar function in R, base::scale uses unbiased std estimate.

Issue 2:
Description

It would be nice to provide StandardScaler with an option to chose unbiased estimator of variance,

It it sometimes convenient to use unbiased estimator of variance: numpy.var(X, ddof=1)

instead of default: numpy.var(X, ddof=0)

So far StandardScaler does not allow to set ddof.

Versions

Linux-4.4.0-45-generic-x86_64-with-Ubuntu-16.04-xenial

('Python', '2.7.12 (default, Jul 1 2016, 15:12:24) \n[GCC 5.4.0 20160609]')

('NumPy', '1.11.2')

('SciPy', '0.18.1')

('Scikit-Learn', '0.19.dev0')
Issue 1:
I tried using this method : https://groups.google.com/forum/#!topic/twitter-bootstrap-stackoverflow/O4H28d1-d7Q

but it doesnt work well with bootstrap 3.

Can anyone help me out with this?

Thanks.

Issue 2:
I have problem in the version of the iPad's Safari browser 5.1.1 (9b2060), where scrollspy reacts in an unexpected way. After clicking on a menu session, it redirects to him, so far everything ok, but if I do not move the page and press on another item, the menu does not recognize the touch. After I move the page up or down, he acknowledges.

Is there a solution so far?

Thanks...
Issue 1:
I read in my dataframe with

pd.read_csv('df.csv')

And then I run the code:

df['a'] = pd.to_numeric(df['a'], errors='coerce')

but the column does not get converted. When I use errors = 'raise' it gives me the numbers that are not convertible but it should be dropping them with coerce.... This was working perfectly in Pandas 0.19 and i Updated to 0.20.3. Did the way to_numeric works change between the two versions?

Issue 2:
scikits.timeseries notions of fill_missing_dates, duplicates possible, etc. Little to no testing in this regard
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

run without any error

Current Behavior

work good with node server.js

but with: next export got error Couldn't find a pages directory. Please create one under the project root

Steps to Reproduce (for bugs)

move pages to ./src

create server.js

add the code: const app = next({ dev, dir: './src' });

run: "export": "next export"

Your Environment

Tech
Version

next
4.2.1

node
v7.6.0

OS
window 8.1

browser
chrome

Issue 2:
In repositories with multiple projects, sometimes it is appealing to share code between the projects. Next currently requires that all of the site code is under the Next project's root directory. With code sharing, the shared code usually resides outside of the Next project's root. With a few modifications to the Webpack config and Babel plugins, Next can support code outside of its project root.

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

In a directory hierarchy that looks like this:

.
├── next
│ └── pages
└── shared
└── module.js

A file under next/pages should be able to do import module from '../../shared/module' or use a Babel plugin like module-resolver to require code that is outside of the Next project root.

Current Behavior

Next does not run the shared code through the same Webpack loaders as the ones used for code under the Next project's root. Also, the shared code is not compiled and emitted under .next/dist, and require/import paths to that shared code are not correct.

Steps to Reproduce (for bugs)

Set up a directory structure like the on in the ASCII art diagram above

Add index.js under next/pages with import module from '../../shared

Run yarn dev and get errors

Context

In general this is useful for any project that has a website (vs. being only a website) and wants to share code between the Next website and other programs. Specifically I am writing this up since we need it for sharing code across expo.io, snack.expo.io (not yet Next.js), Node servers, and native apps.

This is a list of PRs so far to support code sharing:

Apply .babelrc's own config when it specifies babelrc: false: #3016

Your Environment

Tech
Version

next
4.0.0-beta.2

node
8.6.0

OS
macOS 10.13

browser
*
Issue 1:
Describe the workflow you want to enable

Enable preprocessor.get_feature_names_out() where preprocessor is a ColumnTransformer with SimpleImputer.

Describe your proposed solution

If you do this on sklearn v1.0, you get the error:

AttributeError: Transformer simpleimputer-1 (type SimpleImputer) does not provide get_feature_names_out.

The solution is to add get_feature_names_out() to SimpleImputer. This should be fairly straightforward, since there's a one-to-one mapping between input and output features in this transformer. Additionally, it's high impact since SimpleImputer is a common use case when preprocessing data.

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Issue 2:
Describe the workflow you want to enable

I would like to get the feature names input to a classifier after imputation.

column_trans = ColumnTransformer([('imputed', SimpleImputer(add_indicator=True), x_con)], remainder='drop')
# column_trans = ColumnTransformer([('scaler', preprocessing.StandardScaler(), x_con)], remainder='drop')
pipe = make_pipeline(column_trans, LogisticRegressionCV(cv=2, random_state=0))
pipe.fit(X, y)
pipe[:-1].get_feature_names_out()

Describe your proposed solution

Implement get_feature_names_out for SimpleImputer as it is implemented for other transformers e.g. it works for StandardScaler.

Describe alternatives you've considered, if relevant

No response

Additional context

No response