WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The quality of three.js tagged questions on SO is horrible. Each question that makes sense and is properly formatted is followed by 20 that are just incomprehensible, RTFM, i've no idea wtf im doing sort of thing. At one point I started getting frustrated, but for some reason, I can't stop looking at them. I'm under the impression that some experts who used to frequent SO have stopped doing so.

I'm still learning how SO works, so I posted this, and got some interesting information, but i'm not sure what to make out of it:

https://meta.stackoverflow.com/questions/357466/three-js-tag-has-really-bad-questions

40% overall unanswered questions seem to be really bad, average is 29%, good is 10-15%. Sounds like it's worse than one of the two worst tags, almost as bad as the other.

three.js seems to end up in the same spot as categories that attract many non-programmer types 3D graphics attracts a lot of beginners who neither have the math skills nor the programming skills to handle these APIs.

Since people do get referred to SO from here:

If you need help, please use [stackoverflow](http://stackoverflow.com/questions/tagged/three.js).

I thought i'd share this.

I'm also under the impression that a few years ago, there were more good quality questions overall. I've even seen links to West Langley's answers on SO as a three learning reference, but it looks like those are coming in less frequently.

I've heard that the resources and tutorials can be quite out of date. Three moves quite quick, and often has major overhauls (?), which would explain this. Maybe having more official tutorials that have to be fixed and working the same way examples do could address this?

Maybe some strategy and effort could be put to clean up SO's [three.js] tag. Perhaps rather than sending people to SO, we could send them to the docs, and possibly some three agnostic literature on graphics, webgl, math etc.

Also might be worth having a discussion on who uses three, and how. It feels that all the shortcuts that three offers work while someone is copy pasting the code, as soon as some modification occurs, things start breaking up.

The current situation could be good for the experts though. The more people dive into projects thinking it will be easy but get stuck, the more consultancy gigs should come, maybe i just need to jump on that boat.

Issue 2:
The shading property has been removed from MeshLambertMaterial, it is only rendered the SmoothShading way.

Is it the desired effect ? Phong looks heavier to get this result.
Issue 1:
Environment

Windows build number:Microsoft Windows NT 10.0.18363.0
Windows Terminal version (if applicable):0.6.2951.0

Any other software?
no

Steps to reproduce

on a touchpad capable device try scroll using the 2 finger gesture on any terminal

with some lines on the buffer

Expected behavior

an slow by line scrolling like on conhost.exe

Actual behavior

1st - it is too sensitive, milimeters of movement on the touchpad is enough to go all the way up or down on the buffer

2nd - it scrolls 4 lines at a time instead of 1 line

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18898.1000], Microsoft Windows [Version 10.0.18908.1000] (both)
Windows Terminal version (if applicable): commit d24d647 and even before.

PC Info: Samsung NT901X5L

Steps to reproduce

Just scroll (up and down) by touchpad. (two-hand scrolling)

That's all.

Expected behavior

Smooth scrolling

Actual behavior

Terminal scrolls too fast.
Issue 1:
It appears that the Angular2, http and router typings files are no longer included in the npm package under bundles/typings.

Are they hosted somewhere else now?

Issue 2:
As a follow up to the closed PR #5149 and in particular to the comments on the downside of the approach taken here is a new proposal:

let's produce 2 UMD bundles:

core + RxJS

core + http + router + RxJS

those bundles, being UMD, should be usable via a <script> tag and CJS-based tooling (WebPack etc.)

those bundles won't contain "truly" external dependencies (zone, reflect-metadata, shims) - we are going to publish a separate file with those

@jeffbcross @robwormald @vsavkin - feel free to comment.

//cc.: @IgorMinar @rkirov
Issue 1:
This doesn't parse in 0.3.0, and I'm not sure it's entirely-documented syntax on release-0.3 at the moment. There was a backport somewhere to make it parse, but it looks like there's a bug.

| | |_| | | | (_| | | Version 0.3.7-pre+15 (2015-03-02 23:43 UTC)
_/ |\__'_|_|_|\__'_| | Commit 0f0b136* (7 days old release-0.3)
|__/ | x86_64-linux-gnu

julia> [1, 2, 3, 4;] == [3, 2, 1, 4]
true

Issue 2:
On beb5486:

julia> [1,2,3;]
3-element Array{Int64,1}:
2
1
3

julia> [1,2,3,4;]
4-element Array{Int64,1}:
3
2
1
4

julia> [1,2;]
2-element Array{Int64,1}:
1
2

This syntax is not supported on v0.3 (probably because of #8250). I would expect this to behave the same as, e.g. [1,2,3], but maybe that's naive. I definitely wasn't expecting this, though.
Issue 1:
Create a new JS file in a project set to ES6

Add the following code

var mytext = some ES6 \'text\';

// this comment is brown

console.log('the console log is brown but this string inside it is coloured!');

You will see that everything after the first ' is brown. I am aware that there is no need to use the backslash to escape the ' character, but as far as I am aware it is also not invalid javascript. And if it is invalid, I would expect some other kind of error to indicate that it is invalid.

Issue 2:
Right now, those keywords like import class from are all plain white.
Issue 1:
xref #21160

it maybe possible to change the impl of intna to be backed by

bitarray (for mask)

pyarrow (for both)

to improve the memory footprint of the mask

Issue 2:
Currently, our nullable / masked extension arrays (boolean, integer, for now) are using a numpy boolean array as their _mask to keep track of missing values. A potential route for improving memory and performance would be using a bitarray instead of a boolean numpy array (which is a byte per value).

This should require some exploration: what are options how to implement this? (existing libraries, custom implementation) What is the performance impact? (some things like masking will also be slower, since we still rely on numpy for that, which needs boolean arrays) Is this worth it to do a custom implementation rather than using pyarrow for this? etc
Issue 1:
Hi,

I encountered a 'problem' when my program tried to groupby a dataframe with an empty (ie full of nan) column. Here a code sample with pandas 0.19.2 :

In [4]: a = pd.DataFrame({'a': [2,2,3,4,5],
'b': [5,5,6,6,7],
'c': [np.nan]*5,
'sum': [1]*5})

In [5]: a
Out[5]:
a b c sum
0 2 5 NaN 1
1 2 5 NaN 1
2 3 6 NaN 1
3 4 6 NaN 1
4 5 7 NaN 1

In [6]: a.groupby(['a','b','c']).agg({'sum':'sum'})
Out[6]:
Empty DataFrame
Columns: [sum]
Index: []

In [7]: a.groupby(['a','b']).agg({'sum':'sum'})
Out[7]:
sum
a b
2 5 2
3 6 1
4 6 1
5 7 1

I think we could throw a warning (or maybe an error) when this case is encountered in addition to return an empty dataframe.

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-75-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.19.2

nose: 1.3.7

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.25.2

numpy: 1.11.3

scipy: 0.18.1

statsmodels: 0.6.1

xarray: None

IPython: 5.1.0

sphinx: 1.5.1

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: 1.2.0

tables: 3.3.0

numexpr: 2.6.1

matplotlib: 2.0.0

openpyxl: 2.4.1

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.6

lxml: 3.7.2

bs4: 4.5.3

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.1.5

pymysql: 0.7.9.None

psycopg2: None

jinja2: 2.9.4

boto: 2.45.0

pandas_datareader: None

Issue 2:
ENH: maybe for now just provide a warning if dropping the nan rows when pivotting...

rom ml

http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans

This is effectivly trying to groupby on a NaN, currently not allowed

In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]]

In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e'])

In [15]: df.groupby(['a','b']).sum()
Out[15]:
c d e
a b
a b 13.00 13 13
b a 123.23 123 1

Workaround to fill the index with a dummy, pivot, and replace

In [31]: df2 = df.copy()

In [32]: df2['dummy'] = np.nan

In [33]: df2['b'] = df2['b'].fillna('dummy')

In [34]: df2
Out[34]:
a b c d e dummy
0 a b 12.00 12 12 NaN
1 a dummy 12.30 233 12 NaN
2 b a 123.23 123 1 NaN
3 a b 1.00 1 1 NaN

In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum)
Out[35]:
a b c d e
0 a b 13.00 13 13
1 a dummy 12.30 233 12
2 b a 123.23 123 1

In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan)
Out[36]:
a b c d e
0 a b 13.00 13 13
1 a NaN 12.30 233 12
2 b a 123.23 123 1
Issue 1:
>>> import pandas as pd
>>> from collections import OrderedDict
>>> od = [OrderedDict([('z', 0), ('a', 1), ('*', 2)])]
>>> pd.DataFrame(od)
* a z
0 2 1 0
>>> pd.DataFrame.from_dict(od)
* a z
0 2 1 0

If OrderedDicts are used, I would expect the column order of the first OrderDict that is encountered to be preserved, as the following:

>>> pd.DataFrame(od, columns=od[0].keys())
z a *
0 0 1 2
>>>

If different orders occur in the list, the earlier would overwrite the later. If new columns are introduced with subsequent list entries, I would expect all new columns to be appended to the original columns, with their relative order preserved.

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

# Your code here

Problem description

[this should explain why the current behaviour is a problem and why the expected output is a better solution.]

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

Note: Many problems can be resolved by simply upgrading pandas to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if master addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]
Issue 1:
import pandas as pd

dat = pd.DataFrame([
{'a':1,'b':2,'c':3},
{'a':1,'b':2,'c':3}
])

dat.drop_duplicates(subset=['a','d'])

a	b	c
0	1	2	3

Problem description

When using drop_duplicates() with the subset option, a warning should probably be raised when trying to subset on a column that doesn't exist.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.3.final.0

python-bits: 64

OS: Darwin

OS-release: 17.5.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.22.0

pytest: 3.3.1

pip: 10.0.1

setuptools: 28.8.0

Cython: None

numpy: 1.13.3

scipy: 1.0.1

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: 2.2.2

openpyxl: None

xlrd: 1.1.0

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 1.0.1

sqlalchemy: 1.1.15

pymysql: None

psycopg2: 2.7 (dt dec pq3 ext lo64)

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
There's a duplicate plot created when calling Series.hist as well as a duplicate plot when calling groupby.plot that I think would be fixed by resolving this issue.

#4113 #413 #2168
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

I'm using npm@8.5.2 and making use of the workspaces feature, my (simplified) project's structure is the following:

my_project
|_ packages
|_ commons
|_ logger
|_ metrics
|_ tracing
package.json

In my package.json file I have the following config:

"workspaces": [
"packages/*"
]

The project uses TypeScript and the packages logger, metrics, tracing all depend on commons.

When I run npm ci in my CI/CD environment (GitHub Actions) after installing the dependencies npm tries to build (tsc) the packages but appear to do so in parallel and so the build of all the dependant packages fails because it's being done before commons is ready.

Expected Behavior

Npm to understand that some packages of the workspace are dependant on others and build accordingly.

Alternatively to allow me to specify that I want to use a remote (i.e. not linked) version of the package even though the version number is the same as the local one.

Steps To Reproduce

Read above, also you can see the error (with logLevel == silly) here https://github.com/dreamorosi/aws-lambda-powertools-typescript/runs/5345787297?check_suite_focus=true#step:6:5380 (<- Line that causes the error)

Environment

npm: 8.5.2

Node.js: lts/fermium (aka 14.x)

OS Name: Ubuntu

System Model Name: GitHub Actions

npm config: N/A

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

npm i runs Prepare script concurrently across all workspaces.

This causes major problems when using TypeScript and having one workspace dependent on another, since the build (prepare script) runs concurrently, there is no way to ensure the prepare command is done on one workspace before running on the next.

Expected Behavior

It to actually follow what the documentation says (https://docs.npmjs.com/cli/v7/using-npm/workspaces#running-commands-in-the-context-of-workspaces):

Nothing in there says anything about commands being run concurrently, or at the same time.

Steps To Reproduce

Create 2 workspaces

Add a prepare command to each where the second is reliant on the first completing

Run npm i

Notice that everything fails since the commands are run concurrently

Environment

npm: 8.1.0

Node: v16.13.0

OS: macOS 12.1 Beta (21C5039b)

platform: MacBook Pro M1 Max

npm config:

; "user" config from /Users/charliefish/.npmrc

//npm.pkg.github.com/:_authToken = (protected)
//registry.npmjs.com/:_authToken = (protected)
registry = "https://npm.network.charlie.fish/"

; node bin location = /Users/charliefish/.nvm/versions/node/v16.13.0/bin/node
; cwd = /Users/charliefish
; HOME = /Users/charliefish
; Run `npm config ls -l` to show all defaults.
Issue 1:
Hi,

I just noticed that the nodes on our (AWS) cluster also have the region in the zone label:

failure-domain.beta.kubernetes.io/region=eu-west-1
failure-domain.beta.kubernetes.io/zone=eu-west-1a

This doesn't make sense to me as it prevents you from using the zone label as a selector without knowing the region upfront (which is not always the case).

If for example you want to duplicate a k8s cluster on a different region it would require me to edit the manifest and change the zone label everywhere to contain the new region.

So say you have 2 nodes in separate availability zones and want to deploy a pod in availability zone a I would expect to just specify the zone as a

nodeSelector:
failure-domain.beta.kubernetes.io/zone=a

If for some reason I need to also specify the region you can alway use the failure-domain.beta.kubernetes.io/region label.

Issue 2:
Several things do or will use a .kubernetes_auth file:

kubectl

cmd/e2e/e2e.go

kubecfg

I'd like kubelet to use it too.

I'd like things in pods that talk to the API to use it too (e.g scheduler running in a pod on a non-master node).

They use different ways to specify its location:

kubectl has a persistent flag called auth-path

e2e test uses --auth_config

kubecfg uses --auth

There are several routines for loading the file:

kubecfg uses kubecfg.LoadAuthInfo, which does prompting for user/pass if the file does not exist

kubectl uses kubectl.LoadAuthInfo, which is identical to kubecfg code.

e2e test uses ``kubecfg.LoadAuthInfo`

There are several format definitions:

kubecfg uses kubecfg.AuthInfo

kubectl uses kubectl.AuthInfo which is identical to kubcfg's

e2e test uses kubecfg.AuthInfo indirectly.

The Marshalled file contents then get copied from the kubec*.AuthInfo into the almost-but-not-quite same-named fields of Config in pkg/client.

Questions:

Can we standardize on a flag name for the path to the .kubernetes_auth file?

Should there be a single format for a .kubernetes_auth file?

Should the go type that defines that format be the same file or a copy of the code in pkg/client? If the former, should the type in pkg/client be put in a less obscure location than pkg/client/helpers.go.

Should there be a single parser for a .kubernetes_auth file, to also be used by kubelet, scheduler, etc?
Issue 1:
by daniel.crettol:

package main

import "fmt"

type A struct {
i int
}

func new1() *A {
return &A{10}
}

func new2() *A {
p := A{}
p.i = 11
return &p
}

func dummy(p *A) {
}

func new3() *A {
p := A{}
p.i = 12
dummy(&p)
return &p
}

func main() {
a1 := new1()
fmt.Printf("a1=%p %+v\n", a1, a1)

a2 := new2()
fmt.Printf("a2=%p %+v\n", a2, a2)

a3 := new3()
fmt.Printf("a3=%p %+v\n", a3, a3)
}

$ go build -gcflags '-N' bugtst.go && ./bugtst
a1=0xc208000150 &{i:10}
a2=0x7f31b606ddc0 &{i:11}
a3=0xc2080001e0 &{i:12}

$ go build -gcflags '' bugtst.go && ./bugtst
a1=0xc208000150 &{i:10}
a2=0xc2080001a8 &{i:11}
a3=0xc2080001e8 &{i:12}

$ go version
go version go1.3.1 linux/amd64

I had this pattern in a program and the struct generated by the new2 function was
corrupted after returned.

It seems to me that the compiler does not generate a copy of the structure when using
the new2 function but does it when we call the new1 and new2 function.

As the -N -L flags seems to be required to debug with gcc, it's really annoying.

Happy debugging :)

Issue 2:
by linuxhacker100:

What is the problem?

time.Nanoseconds() returns int64
os.Dir.Mtime_ns is uint64

What is the expected output? What do you see instead?

I would expect that all of the standard go libraries would use the same
type to represent the same type of data.

What is your $GOOS? $GOARCH?
AMD64 Linux

Which revision are you using? (hg identify)
3887d4d81bca tip

Please provide any additional information below.

This is not too important. But you should not need to caste to manipulate
the same type of data.
Issue 1:
Apologies if this is the wrong place to ask the question, but I thought it might be better to have this explained somewhere that wasn't as ephemeral as the IRC channel…

Storing an instance and trying to reuse it results in an error:

Can only mount an unmounted component. Make sure to avoid storing components between renders or reusing a single component instance in multiple places.

Recently, I started wondering, if these are just descriptors, why is that desired behavior? Or is it a concession for the sake of performance? It seems like there are some good reasons (memoization, worry-free duplication, etc) why it would be preferable for React not to mutate them so they could be reused.

Thanks!

Issue 2:
Do you want to request a feature or report a bug?

Feature

What is the current behavior?

There is no way to run a side-effect generating hook before the first render.

What is the expected behavior?

For certain platforms (like Meteor) the reactive data access paradigm both runs immediately (data can be available on first render), and sets up side effects for later updates. I'd like to be able to set all that up before the first render, instead of waiting a render pass with useEffect. Currently, we have to jump through hoops to make sure sure we don't generate side-effects early, then duplicate effort later to actually set up the desired side effects. (we had been simply setting up the side-effects in sync with render, but understand that upcoming Suspense features may cancel a render cycle, and never run the useEffect cleanup hook). A hook which ran before render (or synchronously with first render) with it's cleanup method in case the render pass is thrown away, would solve the issue nicely, without hoop jumping.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

16.8.x. Previous versions of react had life cycle methods componentWillMount or even just the constructor which could be used for similar behavior.
Issue 1:
Summary: FancyZones autofilling

Idea-Feature / Feature request

When enabled, new windows (that are not ignored) snap to the next empty fancy zone. This would allow users to quick populate layouts with high zone counts.

Issue 2:
The "Window-Tiling" PowerToy

Here's an idea, add the ability to tile windows automatically. What I mean by that is when a window would open, it'll cover the whole screen but when another window would open, it'll cover the half of the screen automatically and the first app would also resize to the half of the screen. If the third window opens it'll open below the second window, resizing the second window to half vertically. And the new window would take place under the second window.

It has been done before in some Linux window managers like "i3". And a lot of people really appreciate the ability to do that.

Concept Shots

I've prepared some concept shots to show that:

In the image above, a single window is opened. When the user wants open another window, they would need to click the start button or hit the start key on the keyboard. The Start Menu would be replaced with Power Run. The user would be able to select the desired app by typing it's name and selecting one of the results by using the arrow keys. Or just type the name and hit enter

And when more than two apps are opened:

And when more than three apps are opened, the third app would be resized to half of it's size and the fourth window would appear in the empty space created by the third app.

There are better explanations of tiling window managers (than what I've done here) online

Conclusion

The window tiling feature is inspired by some window managers in Linux (like i3). I think it'll help with productivity stuff. I've posted these concept shots on Twitter and many people wanted this feature to be in PowerToys. Maybe integrate it in FancyZones by adding a toggle for this feature. What do you think? :)
Issue 1:
Just deleted 91 since gke-ci was completely hosed on quota. We hit the limit on http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gke-ci/10377/ so it was some set of suites before that.

19:06:05 client [kubectl]. To install, run
19:06:05 $ gcloud components install kubectl
19:06:05
19:06:06 ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Insufficient project quota to satisfy request for resource: "ROUTES". The request requires '3.0' and is short '2.0'. The project has a quota of '100.0' with '1.0' available.
19:06:06 2016/01/17 19:06:06 e2e.go:309: Error running up: exit status 1
19:06:06 2016/01/17 19:06:06 e2e.go:305: Step 'up' finished in 2.107868944s
19:06:06
2016/01/17 19:06:06 e2e.go:141: Error starting e2e cluster. Aborting.
19:06:06 exit status 1

@kubernetes/goog-testing

Issue 2:
Our kubernetes-upgrade-gce Jenkins job has been broken for quite a while now, and it looks like it's due to target pools and/or forwarding rules leaking and exceeding quota:

Sep 2 00:48:45.094: INFO: event for mutability-service-test: {service-controller } creating loadbalancer: creating loadbalancer
Sep 2 00:48:45.094: INFO: event for mutability-service-test: {service-controller } creating loadbalancer failed: error creating load balancer (will retry): failed to create external load balancer for service e2e-tests-services-mrlvq/mutability-service-test: googleapi: Error 403: Quota 'TARGET_POOLS' exceeded. Limit: 50.0

I've cleared out the old rules, and I'll try to diagnose what's leaking them and why.