WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Problem description

There are several convenient datasets available in sklearn. They consistently return the Bunch sklearn object. Therefore, it would not be too difficult to create a function to convert from sklearn into a nice, clean pandas dataframe.

Proposal

I am happy to take on the task of creating this conversion, but I'd like to get some input so that I create what users would actually want, and ideally my pull request would be accepted.

Below is a toy example of how I would expect the API to work, where to_dataframe is the name of the new method. (I'm happy to call it whatever, that just seemed like a good guess.)

>>> from sklearn.datasets import load_iris
>>> sk_iris = load_iris()
>>> pd_iris = sk_iris.to_dataframe()
>>> pd_iris.head()

sepal length (cm) sepal width (cm) petal length (cm) petal width (cm) target
0 5.1 3.5 1.4 0.2 setosa
1 4.9 3.0 1.4 0.2 setosa
2 4.7 3.2 1.3 0.2 setosa
3 4.6 3.1 1.5 0.2 setosa
4 5.0 3.6 1.4 0.2 setosa

>>> pd_iris.dtypes
sepal length (cm) float64
sepal width (cm) float64
petal length (cm) float64
petal width (cm) float64
target category
dtype: object

>>> type(pd_iris)
<class 'pandas.core.frame.DataFrame'>

Would this be desirable? Is this API I propose reasonable? What should I consider in the API? (E.g., in the example above, I have taken the fact that the sklearn dataset object has both a target and target_names, which means that I could infer that this should be a categorical. This can obviously make things a bit more fragile. Should this inference be skipped?

Issue 2:
Users should be able to get datasets returned as [Sparse]DataFrames with named columns in this day and age, for those datasets otherwise providing a Bunch with feature_names. This would be controlled with an as_frame parameter (though return_X_y='frame' would mean the common usage is more succinct).
Issue 1:
Problem description

Steps to reproduce

Versions

Material-UI:

React:

Browser:

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

If using multiple prop on Select component, label goes back to placeholder position on lost focus, although value is set.

Sandbox

My Environment

Tech
Version

Material-UI
v1.0.0-beta.26

React
v16.2.0
Issue 1:
Environment

Windows build number: Version 10.0.18362.175

Windows Terminal version (if applicable): Commit a08666b

Steps to reproduce

Start the Windows Terminal (Dev Build).

Open an Ubuntu tab (or whatever Linux shell you have).

Do a bunch of directory listings that really fill up the scrollback buffer (the System32 directory is good for that).

Execute printf "\e[3J" to clear the scrollback buffer.

Expected behavior

The scrollback buffer should be cleared and control returned to the user almost immediately.

Actual behavior

The app essentially stops responding. It will return to normal eventually, but how long that takes depends on the speed of your computer and how full the scrollback was to start with.

This might be a duplicate of one of the other freeze-on-exit bugs (e.g. #1445), since the terminal seems to generate an erase scrollback call whenever you exit. But it only happens when actually typing exit in the shell - closing the tab directly works OK.

From what I've been able to determine, the source of the problem is in the Terminal::EraseInDisplay method. When the eraseType is EraseType::Scrollback, it performs a loop to clear every line of the scrollback:

terminal/src/cascadia/TerminalCore/TerminalApi.cpp

Lines 340 to 345
in
a08666b

auto eraseIter = OutputCellIterator(UNICODE_SPACE, _buffer->GetCurrentAttributes(), _mutableViewport.RightInclusive() * (eraseEnd - eraseStart + 1));

for (SHORT i = eraseStart; i <= eraseEnd; i++)

{

COORD erasePos{ 0, i };

_buffer->Write(eraseIter, erasePos);

}

Note that the eraseIter OutputCellIterator is set to the size of the full area being cleared, but a _buffer->Write call is made with that iterator for every line. Each one of those calls is enough to clear the entire area, so it's essentially performing a huge write operation over and over again. If your scrollback buffer is large, this can take forever.

I think this is probably a regression. I have preview build 0.2.1831.0 installed on this machine too, and that doesn't seem to have the problem.

Issue 2:
Environment

18362.449: [run `[Environment]::OSVersion: 1903]
Windows Terminal version (if applicable):V0.6

Any other software?

Steps to reproduce

my project just use euc-jp encode

powerShell command:

chcp 20932

but can't read text for euc-jp encode

and i can't change to write japanese

Expected behavior

Actual behavior
Issue 1:
ReactBaseClasses.js:64 Uncaught TypeError: this.updater.enqueueCallback is not a function

at Transition../node_modules/react-transition-group/node_modules/react/lib/ReactBaseClasses.js.ReactComponent.setState (ReactBaseClasses.js:64)

at Transition.safeSetState (Transition.js:294)

at Transition.performEnter (Transition.js:244)

at Transition.updateStatus (Transition.js:213)

at Transition.componentDidMount (Transition.js:157)

at commitLifeCycles (react-dom.development.js:11505)

at commitAllLifeCycles (react-dom.development.js:12294)

at HTMLUnknownElement.callCallback (react-dom.development.js:1299)

at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)

at invokeGuardedCallback (react-dom.development.js:1195)

at commitAllWork (react-dom.development.js:12415)

at workLoop (react-dom.development.js:12687)

at HTMLUnknownElement.callCallback (react-dom.development.js:1299)

at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)

at invokeGuardedCallback (react-dom.development.js:1195)

at performWork (react-dom.development.js:12800)

at batchedUpdates (react-dom.development.js:13244)

at performFiberBatchedUpdates (react-dom.development.js:1646)

at stackBatchedUpdates (react-dom.development.js:1637)

at batchedUpdates (react-dom.development.js:1651)

at Object.batchedUpdatesWithControlledComponents [as batchedUpdates] (react-dom.development.js:1664)

at dispatchEvent (react-dom.development.js:1874)

Tech
Version

Material-UI
v1 beta 1.0.12

React
16

browser
chrome

etc

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

MenuItems passing a containerElement prop, e.g.:

<MenuItem
onClick={props.toggleDrawerOpen}
primaryText={t('nav.home')}
containerElement={<NavLink exact to="/" />}
/>

...throw the following warning:

Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.

Check the render method of `EnhancedButton`.
in NavLink (at DrawerMenu.js:60)
in EnhancedButton (created by ListItem)
in div (created by ListItem)
in ListItem (created by MenuItem)
in MenuItem (at DrawerMenu.js:57)

Expected Behavior

No warnings should be thrown.

Your Environment

Tech
Version

Material-UI
0.19.2

React
16.0.0
Issue 1:
I've been building an entire application to get my hands wet with deno. It's great so far. Thank you everyone for your hard work and contributions.

A main development pain point I experience is importing new packages. I have to visit the package documentation, and get the url. Even for packages I have already used, I have to go to the documentation every time to copy the really long url.

Now most of us deno users would be coming from npm, so it'd be more productive to be able to use common packages without having to visit documentations all the time to copy the url.

With node, I could just npm i express, then require('express'), because express is easy to remember.

My suggestion is to have similar functionality with deno. We could have an alias for urls. For example, import * as log from 'log' resolves to import * as log from 'https://deno.land/std/log/mod.ts'. Deno just resolves the alias behind the scenes.

I hope the suggestion makes sense. Looking forward to what you think, or any drawbacks and feedback. Thanks !

Issue 2:
This has probably cross your mind while in the early stages of development in Deno, but what about an alias standard for packages?

If I wanna import say React into most of my files I may not wanna write its url into each one(gotta admit it's kinda ugly), so why not reference it once into a file that act as a synonim of it so i can use it into my project?

First thoughts were something like this (not that it is any prettier but will do)

This isn't really a feature but more of a standard for Deno development to maybe be included into the documentation now that 1.0 is coming close.
Issue 1:
Domain Errors and Bounds Errors provide incorrect tracebacks when called within loops. For example, if a file contains

while true
10^(-1)
end

then the domain error is traced back to line 1, instead of line 2. Bounds errors provide incorrect tracebacks in the following example:

function do_something()
foo = rand(4)
foo[5]
end

while true
do_something()
end

In this case, the error is traced back to the do_something() line, instead of where the error actually occurs at the foo[5] line.

I'm running Julia commit 74a41d2 on Windows.

Issue 2:
Should this test not succeed?

using Test
function becareful()
@warn "attention"
end

@test_warn r".*attention.*" becareful()

I get this error message on Julia 0.7.0 and 1.0.0 (official Linux build).

┌ Warning: attention
└ @ Main REPL[2]:2
Test Failed at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:605
Expression: contains_warn(read(fname, String), $(Expr(:escape, :(#= REPL[3]:1 =# @r_str ".*attention.*"))))
ERROR: There was an error during testing

Julia Version 0.7.0
Commit a4cb80f3ed (2018-08-08 06:46 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i3-3120M CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, ivybridge)
Issue 1:
When visualizing high-dimensional datasets, parallel coordinates plots are sometimes very useful. I would love for Seaborn to have a build in function to do this!

Resources

Wikipedia: Parallel coordinates

Python Graph Gallery: Parallel coordinate plot

plotly: Parallel Coordinates Plot in Python

Pandas docs: pandas.plotting.parallel_coordinates

Issue 2:
Tested with seaborn's latest dev version, pandas 1.2.3.

Dataframes can have indices with repeated entries. For example, df.explode which converts lists in cells into separate rows, keeps the original indices. Some seaborn functions generate an error ValueError: cannot reindex from a duplicate axis with such dataframes. lineplot, stripplot, swarmplot give such error. pointplot, barplot and boxplot work without problem.

Calling .reset_index() makes the problem go away.

import` pandas as pd
import seaborn as sns

df = pd.DataFrame({'x': [1, 2],
'val': [[3, 4, 5], [6, 7]] })
sns.stripplot(data=df.explode('val'), x='x', y='val')

In seaborn 0.11.1 this same problem doesn't seem to exist.

PS: sns.violinplot(data=df.explode('val').reset_index(), x='x', y='val') gives a complete different error, although something similar to boxplot would be expected (TypeError: No loop matching the specified signature and casting was found for ufunc add, during a call to gaussian_kde, numpy version 1.20.1, scipy 1.5.2).
Issue 1:
Issue Description

When Issue Happens

When I want to scroll down in the Map during a lesson.

Steps To Reproduce

Open a lesson.

Click Map

Try to scroll down.

Browser Information

Browser Name, Version

Safari 9.0.3

Operating System

OSX 10.11.3

Issue 2:
This happens many times. When I click on the map tab, I cannot scroll down the list on the right. But I can scroll up normally.

It seems that the "menu" button displays abnormally as well.
Issue 1:
While playing with #6911 I ran into a strange intermittent problem.

julia> ° = pi/180
0.017453292519943295

julia> 60°
ERROR: syntax: invalid character "?"

julia> 60°
ERROR: syntax: invalid character "?"

julia> 60°
ERROR: syntax: invalid character "?"

julia> 60°
ERROR: syntax: invalid character "?"

julia> 60°
1.0471975511965976

julia> 60°
1.0471975511965976

julia> 60°
ERROR: syntax: invalid character "?"

julia> 60°
1.0471975511965976

The first two degree signs were entered with \degree TAB, the remaining lines with arrow up. I cannot provoke the same problem with 60.0° or with sin(60°). Switching from \degree to \alpha gives the same behavior.

Issue 2:
At first I thought it could have been an issue related to how I copied and pasted the pi character because after pasting it again it simply worked but after playing with multiplications I get seemingly random errors like:

ERROR: syntax: invalid character "�"

Notice how 2 * π evaluates as expected but 2π raises an exception...

notroot@dev-mint ~ $ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" to list help topics
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.3.0-prerelease
_/ |\__'_|_|_|\__'_| | Official http://julialang.org release
|__/ | i686-linux-gnu

julia> ☃ = 1
1

julia> ☃
1

julia> ☃
1

julia> ☃
1

julia> ☃
1

julia> 3☃
3

julia> 5☃
5

julia> 5☃8
ERROR: ☃8 not defined

julia> 5☃
5

julia> 5☃*2
10

julia> s = "This is a string."
"This is a string."

julia> s = "âThis is a string."
"âThis is a string."

julia> s[1]
'â'

julia> s[2]
ERROR: invalid UTF-8 character index
in getindex at utf8.jl:63

julia> s[3]
'T'

julia> @printf "%d is less than %f" 4.5 5.3 # casa
5 is less than 5.300000
julia> bla! = 2
2

julia> Bla! = 2
2

julia> Bla! = 6
6

julia> bla!
2

julia> Bla!
6

julia> 2 * π
6.283185307179586

julia> 2π
ERROR: syntax: invalid character "�"

julia> ☃
ERROR: syntax: invalid character "�"

julia> π
π = 3.1415926535897...

julia> ☃
ERROR: syntax: invalid character "�"

julia> 5☃
5

julia> ☃
1

julia> 5☃*2
10

julia> 5☃
ERROR: syntax: invalid character "�"

julia> 5☃*2
10

julia> 5☃
5

julia> 5☃*2
10

julia> 5☃
5

julia> 5☃*2
10

julia> 5☃
5

julia> ☃
1

julia> π
π = 3.1415926535897...

julia>

Any clues?

EDIT: adding versioninfo

julia> versioninfo()
Julia Version 0.3.0-prerelease
Platform Info:
System: Linux (i686-linux-gnu)
CPU: Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz
WORD_SIZE: 32
BLAS: libblas.so.3
LAPACK: liblapack.so.3
LIBM: libopenlibm
Issue 1:
The sort functions currently require a pure comparison function. Is this actually required?

For example, I need to be able to sort the results of a query where the results are not always orderable. If the comparison functions are allowed to be impure then I can add a err: @mut ~str argument to my function and see if it is set when the sort finishes. But if purity is required then I'll need to do a pass before the sort which is a) duplicating a traversal that sort has to do anyway and b) very inefficient (especially given that queries can have lots of results).

Issue 2:
When building current rust master, the following warning is emitted (non-fatal)

rustc: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_typeck
../src/librustc_typeck/astconv.rs:1565:17: 1566:79 warning: diagnostic code E0045 already used
../src/librustc_typeck/astconv.rs:1565 span_err!(tcx.sess, ast_ty.span, E0045,
../src/librustc_typeck/astconv.rs:1566 "variadic function must have C calling convention");
../src/librustc_typeck/check/mod.rs:688:13: 701:14 note: previous invocation
../src/librustc_typeck/check/mod.rs:688 for item in &m.items {
../src/librustc_typeck/check/mod.rs:689 let pty = ccx.tcx.lookup_item_type(local_def(item.id));
../src/librustc_typeck/check/mod.rs:690 if !pty.generics.types.is_empty() {
../src/librustc_typeck/check/mod.rs:691 span_err!(ccx.tcx.sess, item.span, E0044,
../src/librustc_typeck/check/mod.rs:692 "foreign items may not have type parameters");
../src/librustc_typeck/check/mod.rs:693 }
Issue 1:
This afternoon I have been writing code that relies in both elliptic integrals (scipy.special.ellipk and scipy.special.ellipe) but I was getting completely wrong values.

This has been until I realized that scipy defines the elliptic integrals in a different that wikipedia or other resources do.

For example, wikipedia and Wolfram MathWorld First Kind and Second Kind define the complete integral of first kind as:

K(x) = int_0^(pi/2) dy / sqrt(1 - x^2 sin^2 y)

While scipy documentation defines it as:

K(x) = int_0^(pi/2) dy / sqrt(1 - x sin^2 y)

Note the lack of a square in the x.

So, problem:

Different definition of what an elliptic integral is from what would be expected.

Proposed fix:

Change the implementation of the functions to match that of the more usual version.

Improve the documentation by including a (possibly in red or some bright colour) note saying that the parameter you pass doesn't get squared, or that you are calculating the integrals of the square root of the parameter.

Issue 2:
Dear All

While working with special functions that can be defined in terms of

the complete elliptic integrals of the first and second kind, provided

by ellipk and ellipe I realized, that , in contrast to

the definition found on wikipedia, i.e.

K(k) = \int_0^{\pi/2} \frac{d\theta}{\sqrt{1-k^2 \sin^2\theta}} = \int_0^1 \frac{dt}{\sqrt{(1-t^2)(1-k^2 t^2)}},

the functions provided in scipy use the parameter m = k^2 appearing in the integral

as argument.

This is not exactly a bug, but it should maybe discussed why this convention

was chosen in contrast to the more common one in

lots of references on this matter.

regards

Moritz Braun
Issue 1:
Just clone JodaTime. Start out of tree.

Issue 2:
Right now add on two Options effectively treats a None as a Some(Zero::zero()), which is:

Unnecessary because Some(Zero::zero()) is already a valid value, why duplicate it's meaning with None?

Contrary to the way the Maybe Monad in Haskell works: If both values are a Some, add them, else return None.
Issue 1:
Hello - thanks for all the hard work on sqlalchemy!

I have an application where a handful of processes all interact with a single sqlite DB: foo.db. foo.db starts with 0 tables, and each process "lazily" bootstraps foo.db with a table named "some_table".

I notice, however, that when multiple processes call metadata.create_all(checkfirst=True) to try and create "some_table" in foo.db...sqlalchemy winds up raising an OperationalError "table already exists" error.

In other words, running this script...

import concurrent.futures

from sqlalchemy import create_engine, Table, Column, Integer, MetaData

def make_db():
engine = create_engine("sqlite:///foo.db")
metadata = MetaData()
Table(
"some_table",
metadata,
Column("id", Integer, primary_key=True),
)
metadata.create_all(bind=engine, checkfirst=True)

def main():
n = 3
with concurrent.futures.ProcessPoolExecutor() as executor:
futures = [executor.submit(make_db) for _ in range(n)]
for future in concurrent.futures.as_completed(futures):
future.result()

if __name__ == "__main__":
main()

... yields the following error:

Traceback (most recent call last):
File "sqlite_multiprocessing_create.py", line 26, in <module>
main()
File "sqlite_multiprocessing_create.py", line 22, in main
future.result()
File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 455, in result
return self.__get_result()
File "/usr/local/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 414, in __get_result
raise exception_type, self._exception, self._traceback
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table some_table already exists
[SQL:
CREATE TABLE some_table (
id INTEGER NOT NULL,
PRIMARY KEY (id)
)

]
(Background on this error at: http://sqlalche.me/e/e3q8)

Of course, an obvious workaround would be to have, "the parent process bootstrap tables in foo.db. Is it possible, however, to instruct sqlalchemy to use the if not exists clause that sqlite supports?

I've read through the notes on sqlite / pysqlite 's DDL semantics, but hadn't found a nice workaround.

Issue 2:
Migrated issue, originally created by Craig Weber (@weberc2)

For tables without a primary key, TableClause.count() surprisingly compiles down to SELECT count(<first-column-in-ColumnCollection>)... instead of SELECT count(*).... As a consequence, the returned result is incorrect by the number of NULLs in the first column in the column collection. This behavior is unexpected, and I couldn't find any documentation on the subject.

Here is the offending code (from https://bitbucket.org/zzzeek/sqlalchemy/src/7189d0bc82598c2d6dcbb55b054837416db2ee7d/lib/sqlalchemy/sql/selectable.py?at=master&fileviewer=file-view-default):

@util.dependencies("sqlalchemy.sql.functions")
def count(self, functions, whereclause=None, **params):
"""return a SELECT COUNT generated against this
:class:`.TableClause`."""

if self.primary_key:
col = list(self.primary_key)[0]
else:
col = list(self.columns)[0]
return Select(
[functions.func.count(col).label('tbl_row_count')],
whereclause,
from_obj=[self],
**params)
Issue 1:
(Please close this issue if you folks have already discussed a similar request.)

Summary of the new feature/enhancement

Window size memory when dragging out of FancyZones alignment.

Proposed technical implementation details

In default Windows snapping, once you drag a window away from a snapped position, the window returns to its pre-snap size. This return action is not a part of FancyZones behavior.

Feature would necessitate a toggle option within FancyZone settings.

You devs are superb ♥

Issue 2:
I could never figure out how to make this work. Would be nice but is a hard problem.
Issue 1:
@timothysc has a comment on this on #23387. It's orthogonal to the issue but of course we could extend it to a discussion.

Currently, Codec() and Versioner() wrap an input object that could be shared across different storage back-ends. The code is just a repeat for each implementation:

func NewSomeImpl(codec runtime.Codec, ...) {}

func (i *someImpl) Codec() {
return i.codec
}

Issue 2:
BUG REPORT

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:13:23Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:06:06Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration:

bare metal ubuntu

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

14.04.5 LTS

Kernel (e.g. uname -a):

Linux yehiyam-adsl 3.19.0-68-generic #76~14.04.1-Ubuntu SMP Fri Aug 12 11:46:25 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Install tools:

Others:

What happened:

In kubernetes 1.3.6 every container that is created has an ipv6 address that is marked as duplicate address.

i.e.

10: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 inet6 fe80::42:acff:fe10:2e02/64 scope link tentative dadfailed valid_lft forever preferred_lft forever

this prevents one of our services (kurento-media-server) from working correctly.

This never happened with an older version of k8s (1.1.7)

What you expected to happen:

The IPv6 address should not be marked as duplicate

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

Create a container (e.g. busybox, nginx)

execute the ip command in the container

kubectl exec pod_name ip add show

Anything else do we need to know: