WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
The string "0.6" appears 35 times in our tree and we don't have an obvious way to eliminate this duplication. Something like include_lit! might do the job.

Issue 2:
Consider

extern crate innercrate; //defines only one public item `from_inner_crate`

pub use inner::{inner_fn, from_inner_crate};

/// Top level documentation
pub fn top_level(){}

pub mod inner {
pub use innercrate::from_inner_crate;
/// Defined inside inner module
pub fn inner_fn(){}
}

Documentation renders from_inner_crate as if it was defined at the top level of crate rather than showing it as an reexport from inner module.
Issue 1:
We can obviously have the task bar on multiple displays, but currently only one display will show system icons on one display at a time, without using third party software.

Would it be possible to add a feature to show them on all displays at once?

Thanks

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
.NET Core 3 upgrade

Update all sections that use .NET to .NET Core 3

.NET Framework 4.7.2

ColorPicker <- done by @snickler

MarkdownPreviewHandler <- #8405

PreviewHandlerCommon <- #8405

SvgPreviewHandler <- #8405

SVGThumbnailProvider <- #8405

Tests

Microsoft.Interop.Tests <- done by @eriawan

PreviewPaneUnitTests <- #8405

UnitTests-PreviewHandlerCommon <- #8405

UnitTests-SvgPreviewHandler <- #8405

UnitTests-SvgThumbnailProvider <- #8405

PowerToysTests <- done by @riverar WinAppDriver tests

.NET Standard 2.0

Managed Common

Telemetry

Settings.UI.Library

PowerLauncher.Telemetry

.NET Core 3.1

FancyZonesEditor

Settings.UI.Runner

Settings.UI.UnitTests

UnitTest-ColorPicker

ImageResizerUI

ImageResizerUITests

PowerLauncher

Wox.Infrastructure

Wox.Plugin

Wox.Test

UWP

Settings.UI

Things to include

ReadyToRun should be timed to verify boost. see blog post

PublishTrimmed to reduce file size. see blog post
Issue 1:
Hello,

I faced this issue: #24829 with DNS, and it ended up being a problem with my ServiceAccount secret token that was invalid.

I had 3 secrets in my kube-system ServiceAccount for some reason.

I understand that when secrets are deleted, a new token is generated and associated with the ServiceAccount.

I just don't understand how I ended up with 3 secrets, and how one (maybe 2?) was invalid.

How are secrets invalidated?

How are they created besides when there are none? Is it on apiserver start? on kubelet start?

It's obviously possible to have multiple tokens for a service account, but how can this happen automatically?

When invalidated, shouldn't these automatically generated tokens also be automatically removed from the ServiceAccount?

Thanks

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/.): bo

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

What happened:

I ran etcd in container, without binding its ports to the host.

I started k8s local cluster (./hack/local-up-cluster.sh)

Error etcd appears to already be running...

What you expected to happen:

I expect that local-up-cluster.sh will allow to run containerized instances of etcd which don't bring any conflict to the k8s etcd instance. Why? Because for some external software which is intended to run alongside Kubernetes (i.e. Calico) it's recommended to run separate etcd. I'm also working on the external runtime service, which will be running its own etcd instance.
Issue 1:
This is needed for compatibility with histogram, which deprecated normed in favor of density.

Issue 2:
Reproducing code example:

$ python3 -c 'print(1.0<1.0+1.0j)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: '<' not supported between instances of 'float' and 'complex'
$ python3 -c 'import numpy; print(1.0<numpy.complex64(1.0+1.0j))'
True
$ python3 -c 'import numpy; print(1.0<numpy.complex64(1.0-1.0j))'
False

NumPy/Python version information:

1.17.4 3.8.5 (default, May 27 2021, 13:30:53)

[GCC 9.3.0]

The bare python implementation throws an error, as it should. The behavior of the numpy.complex64 class shows behavior that is inconsistent with that, doesn't make sense mathematically, and doesn't seem to be documented anywhere. It appears to be doing a lexicographic comparison of real and imaginary parts. It should throw a type error instead. Since the present behavior does not seem to be defined anywhere, nobody should be depending on the undefined behavior, and fixing it should not cause problems.
Issue 1:
What is the current behavior?

Using .stopPropagation in an onFocus event on a textarea or its parent causes the cursor to disappear or render at an incorrect location in Firefox.

You can see the vanishing cursor at this fiddle. There are no issues on Chrome and Edge, but FireFox 50.1.0 has this problem. In my full app, the cursor doesn't vanish but rather moves elsewhere (italics are placeholder text):

I have not reproduced this behavior in the fiddle.

What is the expected behavior?

It's hard to say what the expected behavior is, since the real focus event does not bubble. Here's a fiddle to show that the cursor position is not affected when the event is stopped in a vanilla-JS environment.

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

The fiddle shows the issue with 15.4.1 on FF (on Windows 10). I saw the same issue on 15.3.

Why stopPropagation

Before I get eaten alive for using this, I'll just say that having a non-bubbling focus event simplifies one of the interactions I'm setting up. Specifically, my app has a bunch of widgets that can be marked active. When a user clicks into a field in the widget, that widget should be marked active. However, widgets can be nested in other widgets, in which only the inner-most widget should be marked active.

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

Bug

What is the current behavior?

When the onFocus event handler of an element calls stopPropagation, the cursor of the element as well as the selection is not shown in Firefox 54.0.1 64 Bit.

Steps to reproduce

Create an element and call stopPropation() in the onFocus event handler.

handleOnFocus(e) {
e.stopPropagation();
}
render() {
return <input onFocus={this.handleOnFocus} type="text" />;
}

JSFiddle

What is the expected behavior?

Expected is that the cursor and the selection of text is visible in the element, as seen in Chrome 58 64-Bit and Edge 38.

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

I have seen this issue in React 15.5.4 and 15.6.1 in Firefox 54.0.1 64-Bit on Windows 10
Issue 1:
1. What is a short input program that triggers the error?
package pkg

type A interface{}
type B interface{}

func F(a A) {
control := make(chan B)
control <- a
}

2. What is the full compiler output?
example.go:8: internal compiler error: syslook: can't find runtime.convE2E

Please file a bug report including a short program that triggers the error.
http://code.google.com/p/go/issues/entry?template=compilerbug

3. What version of the compiler are you using? (Run it with the -V flag.)
6g version release.r56 7666

4. Notes?
This clearly is an invalid program, but its error message needs some love.

Issue 2:
by louisk@google.com:

There is a bug in the RPC server that causes an infinite loop (with infinite error
messages on the console) if there is an error condition on the socket. This bug
triggers routinely on Windows, but it can also happen on Linux. Here is a sample code
which reproduces the problem.
Bug verified on Go r60.1 and Go weekly.2011-09-21

Run "./bug server" in one window and "./bug client" in another. The
server will infinite loop and print the following message forever:
2011/09/29 12:27:34 rpc: rpc: server cannot decode request: invalid character '{'
looking for beginning of object key string
2011/09/29 12:27:34 rpc: rpc: server cannot decode request: invalid character '{'
looking for beginning of object key string
2011/09/29 12:27:34 rpc: rpc: server cannot decode request: invalid character '{'
looking for beginning of object key string
2011/09/29 12:27:34 rpc: rpc: server cannot decode request: invalid character '{'
looking for beginning of object key string
...

/////////// bug.go /////////////

package main

import "os"
import "net"
import "rpc"
import "rpc/jsonrpc"
import "fmt"

func handleErr(who string, err os.Error) bool {
if (err != nil) {
fmt.Fprintln(os.Stderr, who, err)
return true
}
return false
}

type BugRequest struct {
Foo int
}

type RPCMethods struct{}

func (RPCMethods) Method(req *BugRequest, resp *string) os.Error {
*resp = "Hello"
return nil
}

func serve() {
li, err := net.Listen("tcp", ":5432")
if (handleErr("listen:", err)) {
return
}
rpcserver := rpc.NewServer()
err = rpcserver.Register(RPCMethods{})
fmt.Println("listening on port 5432")
for {
conn, err := li.Accept()
if handleErr("accept:", err) {
return
}
go rpcserver.ServeCodec(jsonrpc.NewServerCodec(conn))
}

rpcserver.Accept(li)
}

func client() os.Error {
sock, err := net.Dial("tcp", "localhost:5432")
if (handleErr("rpc.Dial:", err)) {
return err
}
cli := jsonrpc.NewClient(sock)
var resp string
err = cli.Call("RPCMethods.Method", BugRequest{}, &resp)
fmt.Println(resp)
// add some junk to the socket -- triggers bug
sock.Write([]byte { 123, 123, 123, 123})
sock.Close()
return nil
}

func main() {
switch(os.Args[1]) {
case "server":
serve()
case "client":
client()
}
}
Issue 1:
Description of the new feature/enhancement

Allow the users to switch tabs easily like in Edge or other applications that allow multiple tabs. It will be very helpful to be able to switch tabs. This is possible in many linux terminals and helps with activity management, where the user drags the tabs that have long lasting processes to the end.

Following image describes the feature:

Proposed technical implementation details (optional)

When there is a mouse down event on a tab and the the mouse key is left, then allow the user to switch tabs when mouse is moved. GIF image attached for demonstration.

Issue 2:
Ctrl+Tab allows you to move forward through open tabs. I'd like an option that works like Alt+Tab so I can just press Ctrl+Tab once to go to a previous tab and Ctrl+Tab a second time to go back to the current tab.
Issue 1:
I have old versio 0.7.20 and I open XML file

I can use RMB (Right Mouse button) to "Format Code" for easy reading.

But after I update to 0.10.2 that is not possible anymore.

Issue 2:
before the update I could use alt+shift+f to code format an xml file. After the update this no longer works (using windows version 0.10.1)
Issue 1:
Symfony choice fields with expanded set to true don’t render the selected option correctly when the value in the underlying entity is false.

This affects Symfony 2.7.

Steps to reproduce

Create the following entity:

class Foo
{
public $bar = false;
}

Create the following form:

$form = $this->createFormBuilder(new Foo())
->add('bar', 'choice', array(
'choices' => array(
1 => 'Yes', // boolean `true` and `false` as keys also exhibit the same problem
0 => 'No',
),
'expanded' => true,
))
->getForm()
;

return $this->render('AppBundle::form.html.twig', array(
'form' => $form->createView(),
));

Create the following template:

{{ form_start(form) }}
{{ form_widget(form.bar) }}
{{ form_end(form) }}

Expected result: the “no” radio button to be checked.

Actual result: none of the checkboxes are checked.

Changing the value of Foo::$bar to true makes the “yes” radio button correctly render in its selected state.

When the expanded option on the choice field is changed to false, an HTML select menu is correctly rendered with the “no” option selected.

The exact same effect can be observed when the keys in the choices array are boolean true and false instead of 1 and 0.

Issue 2:
I have a form with the following code:

$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\ChoiceType', null, array(
'multiple' => false,
'expanded' => false,
'choices' => array(
'label a' => false,
'label b' => true,
),
'choices_as_values' => true,
));

When submitting the form, none of the two radio buttons are selected, i.e. the values are lost.

I've written a unit test for it in imphil@71a59b7

Currently it fails with

There were 2 failures:

1) Symfony\Component\Form\Tests\Extension\Core\Type\ChoiceTypeTest::testSubmitSingleExpandedBooleanValueFalse
Failed asserting that false is identical to '0'.

/home/philipp/src/symfony/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:354

2) Symfony\Component\Form\Tests\Extension\Core\Type\ChoiceTypeTest::testSubmitSingleExpandedBooleanValueTrue
Failed asserting that true is identical to '1'.

/home/philipp/src/symfony/src/Symfony/Component/Form/Tests/Extension/Core/Type/ChoiceTypeTest.php:373

The problem only happens with boolean values and expanded=true. It seems that a proper conversion to the view data is missing. Unfortunately I have no idea about the inner workings of Symfony -- maybe someone with a bit more experience can have a look?

(This seems to be similar to #14877, but maybe not exactly the same, so I didn't want to hijack that issue.)
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
from decimal import Decimal
df = pd.DataFrame({'id': [1], 'x': [1], 'y': [Decimal(1)]})
df.groupby('id')[['x', 'y']].sum()

# x
# id
# 1 1

Problem description

I unknowingly encountered the feature described here when running the above code. While I see how this can be a useful feature, it's a nuisance not knowing that it happened and that I can't disable it. I feel that in the case of doing a groupby on explicitly selected columns groupby(...)[COLS], it should not drop any columns and let whatever errors that occur raise. I also think that a warning could be added and/or an option to disable the feature.

Expected Output

# x y
# id
# 1 1 1

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.2.final.0

python-bits: 64

OS: Linux

OS-release: 3.10.0-327.10.1.el7.x86_64

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.22.0

pytest: 3.2.1

pip: 9.0.1

setuptools: 36.4.0

Cython: 0.28.1

numpy: 1.13.1

scipy: None

pyarrow: None

xarray: None

IPython: 6.1.0

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: None

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 0.9999999

sqlalchemy: 1.1.13

pymysql: None

psycopg2: 2.7.1 (dt dec pq3 ext lo64)

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
>>> import pandas as pd
>>> pd.CategoricalIndex(['a', 'b'], categories=['a', 'b']).equals(
... pd.CategoricalIndex(['a', 'b'], categories=['b', 'a']))
False

I fixed this for regular Categoricals in #16339, but that didn't affect CategoricalIndex.equals. Do we want .equals to ignore order when ordered=False on both (I think we do)?

Discovered during my CategoricalDtype refactor, which does fix it so that order is ignored when order=False.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I should be able to use withData from the with-apollo example and translate from react-i18next HoCs together.

Current Behavior

I've been using Apollo as per the with-apollo example quite happily for some time and I'm now trying to integrate with-i18n. Unfortunately I think there may be issues with combining the two approaches. I'm receiving the following error:

Cannot read property 'options' of undefined
TypeError: Cannot read property 'options' of undefined
...
at new I18n node_modules/react-i18next/dist/commonjs/I18n.js:56:20

It seems i18n isn't being initialised correctly (hence options of undefined (the i18n instance)), or is being overridden, perhaps because of the usage of getInitialProps in withData.js?

Has anyone managed to get Next.JS, Apollo and i18n working together? Any working examples?

Steps to Reproduce (for bugs)

Follow the steps to setup with-apollo example and with-i18n

Create a page which is wrapped in translate from react-i18next and withData from the with-apollo example.

See error.

Context

I'm trying to integrate react-i18next into my current next/apollo setup.

Your Environment

Tech
Version

next
5.0.0

node
8.9.4

OS
macOS High Sierra

browser
Chrome

etc

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

Expected Behavior

I can host a Next.js app on a GitHub Pages.

Current Behavior

As far as I have digged into the issue, we can't host a Next.js app on a GitHub Pages because of the location of the hosting: http://username.github.io/project-name/. It would be working perfectly if we hadhttp://project-name.github.io/.

Steps to Reproduce (for bugs)

Humm. I'm not sure it's relevant. I can provide something if it help. I noticed the issue with http://oliviertassinari.github.io/react-swipeable-views/.

Context

Deploying a Next.js app into GitHub Pages guide is misleading. It's not possible as far as I know.

Your Environment

Tech
Version

next
4.1.4
Issue 1:
Under some circumstances, trace returns a scalar on a 3-D masked array, even though it should return a vector. It appears to be related to the mask, as illustrated below.

In [326]: Z = numpy.ma.empty((2, 2, 2), dtype="<f4")

In [327]: trace(Z, 1, 2)
Out[327]:
masked_array(data = [ 0. 0.],
mask = False,
fill_value = 1e+20)

In [328]: Z.mask = zeros_like(Z)

In [329]: trace(Z, 1, 2)
Out[329]: 0.0 # oops, that should have been [0., 0.]

In [330]: trace(Z.data, 1, 2)
Out[330]: array([ 0., 0.], dtype=float32)

Issue 2:
When column_stacking two arrays, the dtype of the result is the dtype of the input arrays (if they are are the same). However, if the endianness of the input array is not the system endianness, it is not respected.

MWE:

import numpy

a = numpy.array([1, 2, 3], dtype="i4")
b = numpy.array([1, 2, 3], dtype="i4")
c = numpy.column_stack([a, b])
print(a.dtype) # int32 okay
print(b.dtype) # int32 okay
print(c.dtype) # int32 okay
print()

a = numpy.array([1, 2, 3], dtype="=i4")
b = numpy.array([1, 2, 3], dtype="=i4")
c = numpy.column_stack([a, b])
print(a.dtype) # int32 okay
print(b.dtype) # int32 okay
print(c.dtype) # int32 okay
print()

a = numpy.array([1, 2, 3], dtype="<i4")
b = numpy.array([1, 2, 3], dtype="<i4")
c = numpy.column_stack([a, b])
print(a.dtype) # int32 okay
print(b.dtype) # int32 okay
print(c.dtype) # int32 okay
print()

a = numpy.array([1, 2, 3], dtype=">i4")
b = numpy.array([1, 2, 3], dtype=">i4")
c = numpy.column_stack([a, b])
print(a.dtype) # >i4 okay
print(b.dtype) # >i4 okay
print(c.dtype) # int32 WRONG
print()

Edit:

Even more obvious:

import numpy

a = numpy.array([1, 2, 3], dtype=">i4")

print(a.dtype) # >i4
print((+a).dtype) # int32 !
Issue 1:
Sometimes, Japanese file (UTF-8) gets garbled.

Maybe that arises when I replace strings that contains Japanese charactors.

ref:

http://yogoma.hatenablog.com/entry/2015/04/20/043907 (JP)

"���"

Issue 2:
sometimes a chinese-char become '���',(as we all know that in charset utf-8, a chinese-char need 3 byte )
Issue 1:
Migrated issue, originally created by Anonymous

in the following schema:

+-------------------------------------------*
| people (abstract) --- has a --- car |
| ^ ^ ^ |
| | | | |
| engineers managers offroad |
| |
+-------------------------------------------+

you define a ploymorphic car_mapper for car and offroad

you define a polymorphic people_mapper for engineers and managers with a property 'car' relation(car_mapper)

after clearing the session, if you query a Person and you retrieve his car property (person.car), the object returned is wrong but the reference to the car (person.car_id) is right.

see attached test case

Attachments: 493.py

Issue 2:
Migrated issue, originally created by Anonymous

I could not find a way to do that and I think it's an enhancement request.

Would be really nice to have a way to cast between classes. I mean, when you have Person and Employee classes, for example (where Employee is a subclasse of Person), would be great to create an Employee based on a previous saved Person.

Today, if you try to do:

>>> # myPerson = a Person object from database
>>> myPerson.__class__ = Employee
>>> myPerson.working = True
>>> session.save(myPerson)
>>> session.flush()

you would get an identity change Exception:

Can't change the identity of instance Employee@-0x4873a7d4 in session (existing identity: (<class '__main__.Person'>, (1,), None); new identity: (<class '__main__.Employee'>, (1,), None))

(see attached script for details)

Would be possible to do something like this?

Attachments: modified_teste.py | sqlalchemy_cast.2.patch | sqlalchemy_cast.patch | teste.py
Issue 1:
If you have a question or would like help and support, please ask at our

forums.

If you are submitting a feature request, please preface the title with [feature request].

If you are submitting a bug report, please fill in the following details.

Issue description

I've built pytorch from source after git checkout v0.4.1, however, the version is 0.5.0.

Tag v0.4.1 leads to 0.5.0a0

Code example

>>> import torch
>>> torch.__version__
'0.5.0a0+a24163a'

System Info

Collecting environment information...

PyTorch version: 0.5.0a0+a24163a

Is debug build: No

CUDA used to build PyTorch: 9.2.148

OS: Ubuntu 18.04.1 LTS

GCC version: (Ubuntu 7.3.0-16ubuntu3) 7.3.0

CMake version: version 3.11.1

Python version: 3.6

Is CUDA available: Yes

CUDA runtime version: 9.2.148

GPU models and configuration: GPU 0: GeForce GTX 1070 Ti

Nvidia driver version: 396.37

cuDNN version: Probably one of the following:

/usr/local/cuda-9.2/lib64/libcudnn.so.7.2.1

/usr/local/cuda-9.2/lib64/libcudnn_static.a

Versions of relevant libraries:

[pip] Could not collect

[conda] magma-cuda90 2.3.0 1 pytorch

[conda] torch 0.5.0a0+a24163a

Issue 2:
Issue description

The __version__ provided by Pytorch is wrong

See this line
Issue 1:
The following simple example shows an issues with zero values when calling loglog:

import matplotlib.pyplot as plt

nu = [1e2, 1e3, 1e4, 1e5, 1e6, 1e7]
fnu = [1, 1e-30, 1e-45, 0., 0., 0.]

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.loglog(nu, fnu, color='blue')
fig.savefig('mpl.png')

The output is:

Of course, zero is undefined in log space, but I don't understand why it defaults to plotting a value of 0.1 instead. Doing:

fnu = [1, 1e-30, 1e-45, np.nan, np.nan, np.nan]

Does the right thing on the other hand. So maybe the best solution is to replace 0 values by np.nan inside loglog?

I am using matplotlib 1.5.x with Python 3.4.

Issue 2:
Consider the following test code:

from numpy import *
from matplotlib.pyplot import *

x = arange(-10,10)
y = (1.0 - 1.0/(x**2+1))**20

figure()
semilogy(x, y, "-o")
grid(True)
savefig("test.png")

Correct Plot (the value y=0 at x=0 is masked out from y-log plot):

Wrong Plot (spurious point at x=0 with y=1e-1):

A git bisect tells me that:

91725d8665975de9a26d631445ab1448b0391e1a is the first bad commit
commit 91725d8665975de9a26d631445ab1448b0391e1a
Author: Joel B. Mohler <joel@kiwistrawberry.us>
Date: Thu Aug 21 10:43:28 2014 -0400

use _fast_from_codes_and_verts in transform code

The commit diff introduces the use of _fast_from_codes_and_verts,

so the issue is probably somewhere deeper inside this function.