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

Windows build number: 10.0.18362.295
Windows Terminal version: 0.4.2382.0

Other Software: WSL1 Ubuntu 18.04

Steps to reproduce

Open Windows Terminal. Open new Ubuntu tab.

Expected behavior

Tab title should be the profile name

Actual behavior

Tab title still shows current directory.

Note

I did also try to change the title via the settings, but it had no effect.

profiles.txt

Issue 2:
Environment

Microsoft Windows [version 10.0.18362.175]

Terminal Version：0.2.17150

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

After the cmd window is dragged to change the size, some of the text positions inside can be restored without being restored, such as the SET command.
Issue 1:
Describe what you were doing when the bug occurred:

Open the Profiler after playing a while with some React Application

Try to reach some snap with the player

This happens

Please do not remove the text below this line

DevTools version: 4.6.0-6cceaeb67

Call stack: at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162825)

at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161772)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164582)

at ec (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:339280)

at ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59620)

at nl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:69923)

at Ll (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:110996)

at qc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102381)

at Hc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102306)

at Vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102171)

Component stack: in ec

in div

in div

in div

in So

in Unknown

in n

in Unknown

in div

in div

in rl

in Ze

in fn

in Ga

in _s

Issue 2:
Describe what you were doing when the bug occurred:

I did profiling on a list, that gets updated on each pagination api call.

Once the profiling was done, I moved around in the Profiler to view the Flamegraph

Moving to second capture, the Profiler crashed.

DevTools version: 4.6.0-6cceaeb67

Component stack: in ec
in div
in div
in div
in So
in Unknown
in n
in Unknown
in div
in div
in rl
in Ze
in fn
in Ga
in _s
Issue 1:
The Geometric and Harmonic means have two sets of test cases in test_stats. Ideally, the tests for related functions should occur in one place, not spread across multiple suites. I think these tests should be reviewed and combined into a single test suit where possible.

For reference, the tests covering the geometric mean are TestGMean and GeoMeanTestCase / TestGeoMean(GeoMeanTestCase). And for the harmonic mean TestHMean and HarMeanTestCase / TestHarMean(HarMeanTestCase)

Issue 2:
Currently, scipy.stats has a function variation, which computes the coefficient of variation (std/mean).

However, there is a closely-related function called the Fano factor (http://en.wikipedia.org/wiki/Fano_factor). While the coefficient of variation is std/mean, the Fano factor is var/mean. Different random distributions have different Fano factors. It is particular important as a measure of how well similar a random process is to a Poisson process (which is important for everything from particle detectors to neurons), since a purely Poisson process has a Fano factor of 1.

So I think it would be good to have a fano function in scipy.stats, to give the counterpart to the variation function but more importantly because Poisson processes are critically important to many fields.
Issue 1:
I have 3 screens connected to my PC, 1 on the internal graphic card, 2 on external USB-C dock.

When I move the Terminal windows from screens on my external to the screen on my internal GC, the program crash (Version: 0.6.2951.0) :

Exception non gérée à 0x00007FF8FEF42DC0 (Windows.UI.Xaml.dll) dans WindowsTerminal.exe : 0xC000027B: Une exception interne de l’application s’est produite (paramètres : 0x000001A4EF7FDD90, #0x0000000000000001).

Issue 2:
Description of the new feature/enhancement

I like having my console sessions start with a dump of pertinent version information. I was hoping to find an easy way to get the version info of the Windows Terminal session. I'd add it to my profile.ps1:

"- posh-git version/path: $($m = Get-Module posh-git; '{0} {1} {2}' -f $m.Version,$m.PrivateData.PSData.Prerelease,$m.ModuleBase.Replace($HOME,'~'))`n- PowerShell version: $($PSVersionTable.PSVersion)`n- $(
git --version)`n- OS: $([System.Environment]::OSVersion)`n- Terminal: ($([System.Environment]::WindowsTerminalVersion)"

Seems the best place to do this is in an environment variable as I've shown above (- Terminal: ($([System.Environment]::WindowsTerminalVersion)).
Issue 1:
Description

Please refer to the link below

https://stackoverflow.com/questions/49848932/sklearn-load-svmlight-file-overflowerror-python-int-too-large-to-convert-to-c-lo

My data format is libsvm below. " label <feature_index>:<feature_value>". The data type of feature_index is uint64. I got the error here

File "sklearn/datasets/_svmlight_format.pyx", line 97, in sklearn.datasets._svmlight_format._load_svmlight_file

OverflowError: Python int too large to convert to C long

Steps/Code to Reproduce

X_all, y_all = load_svmlight_file(libsvm_filename, dtype=np.float64)

or

X_all, y_all = load_svmlight_file(libsvm_filename, dtype=np.uint64)

Expected Results

Actual Results

Fail to load

Versions

import platform; print(platform.platform())

Linux-3.10.106-1-tlinux2-0044-x86_64-with-centos-7.2-Final

import sys; print("Python", sys.version)

Python 3.5.4 (default, Apr 11 2018, 20:14:45)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]

import numpy; print("NumPy", numpy.version)

NumPy 1.14.2

import scipy; print("SciPy", scipy.version)

SciPy 1.0.1

import sklearn; print("Scikit-Learn", sklearn.version)

Scikit-Learn 0.19.1

Issue 2:
Description

I am using scikit-learn (0.19.1) in the following setup: Ubuntu 17.10 (x86_64) with numpy-1.14.1 and scipy-1.0.0

When I tried loading a big libsvm file (1696462087 rows) like this:

from sklearn.datasets import load_svmlight_file
X_train, y_train = load_svmlight_file('/home/user_name/sets/big_dataset.txt')

I got the following error:

...
File "sklearn/datasets/_svmlight_format.pyx", line 114, in sklearn.datasets._svmlight_format._load_svmlight_file

OverflowError: signed integer is greater than maximum

I googled around and found a similar issue which, however, was related to the query_id parameter. By looking at the _svmlight_format.pyx function I can see that both indices and indptr arrays are of type interger and the overflow error occurs when the following assignment is attempted:

indptr[len(indptr) - 1] = len(data)

Any remedy for such a problem? Would the fix be the same as in the previous issue?

P.S. I would like to avoid splitting a big libsvm file into many small chunks.
Issue 1:
Issue Type:

I'm getting "ERROR: Syntax Error while loading YAML script," when a tasks/main.yml file in my role doesn't start with '---', this is optional in YAML and works in previous versions.

Ansible Version:

ansible 1.6 (devel 5f3ea75)

Environment:

Ubuntu 12, 13 and Gentoo

Summary:

Over eager syntax checking

Steps To Reproduce:

create a role with a tasks/main.yml w/o starting with ---

Expected Results:

file works w/o error

Actual Results:

"ERROR: Syntax Error while loading YAML script,"

Issue 2:
ISSUE TYPE

Bug Report

Documentation Report

COMPONENT NAME

apt module

ANSIBLE VERSION

ansible 2.2.3.0
config file = /home/heartsucker/code/freedomofpress/securedrop/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

n/a

OS / ENVIRONMENT

n/a

SUMMARY

In the online ansible documentation, the section for force says only this

If yes, force installs/removes.

By looking at the code, it passes --force-yes to apt-get

From man apt-get:

--force-yes
Force yes; this is a dangerous option that will cause apt to continue without prompting if it is doing something potentially harmful. It should
not be used except in very special situations. Using force-yes can potentially destroy your system! Configuration Item: APT::Get::force-yes.
This is deprecated and replaced by --allow-downgrades, --allow-remove-essential, --allow-change-held-packages in 1.1.

This is two things: deprecated and extremely dangerous.

Also, the key phrase here:

It should not be used except in very special situations. Using force-yes can potentially destroy your system!

At the very least, the ansible docs should also use the phrase "Using force-yes can potentially destroy your system."

Additionally, it is the direct cause of this security breach: freedomofpress/securedrop#2472

The code in question has been reviewed multiple times by highly qualified pentesters and was not revealed in their audits. It has been present in the code since 2015. This means it is very, very likely many people are also making this dangerous mistake.

In fact, github search agrees.

EXPECTED RESULTS

If a flag/arg/module can do something harmful to the system (like install unauthenticated packages), then it should be made clear in the documentation.

ACTUAL RESULTS

The documentation did not state the dangers of using force: yes
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

npm install next should work without any errors

Current Behavior

When running npm install next I get the following error

$ npm install --save next

npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated @semantic-release/last-release-npm@2.0.2: Use @semantic-release/npm instead
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: timed-out@^4.0.1 (node_modules/got/node_modules/timed-out):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No valid versions available for timed-out

npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for duplexer3

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sgore/.npm/_logs/2018-01-06T19_02_46_815Z-debug.log

Additionally, When I check at npmjs.org there is no duplexer3 package listed.

Steps to Reproduce (for bugs)

Following the steps from getting started - https://learnnextjs.com/basics/getting-started/setup

npm install --save next

Context

I am unable to get started with next

Your Environment

Tech
Version

next

node
9.3.0

npm
5.5.1

OS
MacOS X El Capitan 10.11.6

browser
Chrome

etc

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

Overview

React 16.3 will include a utility for ref forwarding called React.forwardRef. Its RFC has been ratified and the initial implementation is available in alpha builds of 16.3.

The typeof objects returned by forwardRef happens to be "object", not "function", which means that if you wrap your Page component in a HOC that uses forwardRef, it will fail the overly-aggressive test here.

Expected Behavior

If I wrap a top-level Page component with React.forwardRef, I expect Next.js to render it without issue.

Current Behavior

If I wrap a top-level Page component with React.forwardRef, Next.js throws the following error:

Error: The default export is not a React Component in page: ...

Steps to Reproduce (for bugs)

For any Page component in a Next.js app, add the following lines:

// ...
const MyPage = () => (...);
export default React.forwardRef((props, ref) => <MyPage {...props} forwardedRef={ref} />);

Context

As soon as the forwardRef API is released, library that expose HOCs are going to start using it to provide a standard way of accessing the ref of the wrapped component. (Prior to this, each HOC library would take a slightly different approach.)

As more libraries and apps are updated, the number of people impacted will grow. I expect this to happen fairly rapidly, at least for actively-maintained libraries.

Your Environment

Tech
Version

next
5.0.1-canary.17
Issue 1:
Currently, pd.DataFrame does not have a .nunique method

DataFrames have various aggregation methods that they share with series, examples being .sum, .count etc. Likewise with DataFrame.groupby-objects.

In many cases, a .nunique would be useful as on DataFrame and DataFrame.groupby-objects, for example when you're trying to assess the diversity of data in a DataFrame.

Expected Output

When you're using DataFrame.nunique, with n columns, you should get back a series where the index values are the dataframe.columns values, and the series values are the count of unique values, for each column.

Issue 2:
When exploring a data set, I often need to df.apply(pd.Series.nunique) or df.apply(lambda x: x.nunique()). How about adding this as nunique()-method parallel to DataFrame.count() (count and unique are also the two most basic infos displayed by DataFrame.describe())?

I think there are also use cases for this as a groupby-method, for example when checking a candidate primary key for different lines (values):

>>> import pandas as pd
>>> df = pd.DataFrame({'id': ['spam', 'eggs', 'eggs', 'spam'], 'value': [1, 5, 5, 2]})
>>> df.groupby('id').filter(lambda g: (g.apply(pd.Series.nunique) > 1).any())
id value
0 spam 1
3 spam 2
Issue 1:
In addition to "launch" and "attach" we should support any request, e.g. "listen"

(php-debug uses a "listen" model).

Issue 2:
The actual code editor should be extracted and made into its own separate project outside of VSCode itself. The editor would be massively useful in a variety of other projects that need to embed an editor and many could benefit from this separation. It would also provide a nice 3rd alternative to the other two well-established editors of Ace and CodeMirror.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]

Windows Terminal version (if applicable):0.0.1.0

Steps to reproduce

Login to WSL, use nano to edit a file, mark a text that has at least a linebreak, and paste it on another line. For example in my local Deb Mirror, i mark this

Expected behavior

The expectet behavior like wsl command line, would be to paste the text exactly as copied with right click on the selected one, with all line-breaks

Actual behavior

The actual behavior is that it copies it without preserving any linebreak and tries to do it in one line

Issue 2:
I can't switch to Chinese input method after update, current version is 0.3.2142.0.
Issue 1:
by izmalych:

What steps will reproduce the problem?

package main
import (
"fmt"
"json"
)

func main() {
o := &JsonObject{ 1, 2, 3 }
b, e := json.Marshal(o)
if e != nil { panic("json panic") }
fmt.Printf(string(b))
}

type JsonObject struct {
UpperCase int
camelCase int
lowercase int
}

What is the expected output?
{"UpperCase":1,"camelCase":2,"lowercase":3}

What do you see instead?
{"uppercase":1,"camelcase":2,"lowercase":3}

What is your $GOOS? $GOARCH?
$GOARCH
386

$GOOS
linux

Which revision are you using? (hg identify)
#hg identify
f98f784927ab tip

Issue 2:
by kullmann.daniel:

Go to tour.golang.org. Enter following code:

package main

import (
"fmt"
"time"
)

func main() {
fmt.Println(time.Now())
}

Run the code. It prints:

2009-11-10 23:00:00 +0000 UTC

This a minor issue, but it breaks item 43 of the tour, "Switch".
Issue 1:
s = pd.Series(x)
m = s.groupby().count() # does not work
m = s.groupby(s.values).count() # works

In https://github.com/pydata/pandas/blob/master/pandas/core/generic.py, by=None should be corrected to just by as None always leads to an error.

def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
group_keys=True, squeeze=False):

from pandas.core.groupby import groupby
axis = self._get_axis_number(axis)
return groupby(self, by, axis=axis, level=level, as_index=as_index,
sort=sort, group_keys=group_keys, squeeze=squeeze)

See this http://stackoverflow.com/questions/17929426/groupby-for-pandas-series-not-working

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

pd.read_sql(
'''
SELECT CountryCode, ShortName,LatestPopulationCensus
FROM Country
WHERE Region = 'South Asia'

UNION

SELECT CountryCode, LatestPopulationCensus, LongName
FROM Country
WHERE Region = 'North America'
'''
,con=conn)

Problem description

I noticed that when doing UNION of two datasets. The result depends on the order of selected columns and unites data according to this order and not to underlying labels. That doesn't look right.

CountryCode	ShortName	LatestPopulationCensus

0	AFG	Afghanistan	1979

1	BGD	Bangladesh	2011

2	BMU	2010	The Bermudas

3	BTN	Bhutan	2005

4	CAN	2011	Canada

5	IND	India	2011

Is there a way to correct it withing pandas or is it SQL issue?

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:
I assumed macroexpand is supposed to produce the same code whether or not if it expands all the macros at once or sequentially expands macros with recursive = false option.

Here is a MRE where macroexpand(m, ex; recursive = true) produces valid code while sequential application of macroexpand(m, ex; recursive = false) leads to different code (and invalid code as a consequence).

using Test

ex = :(@test_warn "foo" println(stderr::IO, "foo"))

fully_expanded = macroexpand(@__MODULE__, ex)
Core.eval(@__MODULE__, fully_expanded) # runs w/o any problem

partially_expanded = macroexpand(@__MODULE__, ex; recursive = false) # expand `@test_warn`
partially_expanded2 = macroexpand(@__MODULE__, partially_expanded; recursive = false) # expand `@test`
Core.eval(@__MODULE__, partially_expanded2) # leads to syntax error
Core.eval(@__MODULE__, partially_expanded) # this also leads to syntax error

Issue 2:
julia> macro foo()
f = esc(:f); :(let $f(x) = x; $f(3); end)
end
@foo (macro with 1 method)

julia> @foo
ERROR: syntax: invalid function name "(escape f)"

julia> macroexpand(:(@foo))
:($(Expr(:error, "invalid function name \"(escape f)\"")))

It looks like macroexpand.scm is forgetting to unescape somewhere. @JeffBezanson, any ideas?

(I'm running into this when trying to fix a bug I found in #20164.)
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1764 on 2012-11-03 by trac user theyoud, assigned to @pv.

Interpolation (and spline) functions, such as interpolation.interp1d, currently require the array of independent variables (x values) be given in ascending order. These functions could be enhanced to also accept descending order. Such a modification would avoid unnecessary reversing of arrays. Also it would make the routines harder to break.

Currently if an array in descending order is specified for x, the behavior is problematic. The interpolation function is created without error, but when you try to evaluate the interpolation function (at an x value that is in range) you get an error message that the x value is out of range.

The following code illustrates the problem I describe above:

import numpy as np
from scipy.interpolate import interp1d

xa = np.arange(10)[::-1]
ya = xa**2
f = interp1d(xa , ya)
f(5.5)

While the interpolation fn. f is created, there is an error on the attempted evaluation.

ValueError: A value in x_new is below the interpolation range.

It's probably a "bug" to create a non-functioning interpolation fn. The better "enhancement" is probably to accept both ascending and descending order.

Issue 2:
Describe your issue.

Hi all,

Our Valgrind CICD run broke after upgrading to Scipy >= 1.9.2 from 1.9.1.

The error does not occur without valgrind.

Due to the valgrind involvement making an MRE is though. If needed I can create a MRE repo and add a maintainer.

Some additional info:

OS: Ubuntu-latest

valgrind amd64 1:3.15.0-1ubuntu9.1

Bindings and generator:

Pybind11 v2.10.1

ninja v1.10.2.4

Extension does include a number of Numpy headers but nothing special.

Valgrind is run with:

PYTHONMALLOC=malloc valgrind --leak-check=yes --track-origins=yes python -m pytest

See Workflow file for details.

Reproducing Code Example

import scipy.stats

Error message

/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/sklearn/utils/fixes.py:19: in <module>
import scipy.stats
/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/scipy/stats/__init__.py:467: in <module>
from ._stats_py import *
/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/scipy/stats/_stats_py.py:46: in <module>
from . import distributions
/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/scipy/stats/distributions.py:10: in <module>
from . import _continuous_distns
/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/scipy/stats/_continuous_distns.py:31: in <module>
import scipy.stats._boost as _boost
/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/scipy/stats/_boost/__init__.py:1: in <module>
from scipy.stats._boost.beta_ufunc import (
E SystemError: initialization of beta_ufunc raised unreported exception

SciPy/NumPy/Python version information

1.9.3 1.23.3 sys.version_info(major=3, minor=10, micro=7, releaselevel='final', serial=0)
Issue 1:
Chris Beams opened SPR-5499 and commented

Affects: 3.0.5

This issue is a sub-task of #9097

Issue Links:

#12474 Use of semicolon delimited lists in REST URIs ("is duplicated by")

Referenced from: commits 2201dd8

8 votes, 12 watchers

Issue 2:
nebhale opened SPR-2704 and commented

Create and upload Maven Source and Javadoc Bundles for Spring 2.0 per user request

Affects: 2.0 final

Attachments:

SPR-2704.patch (19.66 kB)

Issue Links:

#6083 add version number to jars and produce separate source jars for modules [build.xml patch] ("depends on")

#7725 Maven 2 Support - Source Jars ("is duplicated by")

#7883 Create javadoc and source jars for seperate modules (Maven friendliness) ("is duplicated by")

#6929 Provide source code and maven2 poms at ibiblio ("is duplicated by")

#6083 add version number to jars and produce separate source jars for modules [build.xml patch] ("is duplicated by")

28 votes, 23 watchers
Issue 1:
Make scrapy.selector into a separate project.

When we're scraping web pages, the most common task you need to perform is to extract data from the HTML source. There are several libraries available to achieve this: BeautifulSoup, lxml.

And although scrapy selectors are built over the lxml library, it is a better way to extract data from HTML source. In my opinion, people will prefer selector to BeautifulSoup and lxml , if make the scrapy.selectors into a separate project,

Issue 2:
What do you think about adding response.follow_all shortcut, which returns a list of requests? This is inspired by this note in docs:

response.follow(response.css('li.next a')) is not valid because response.css returns a list-like object with selectors for all results, not a single selector. A for loop like in the example above, or response.follow(response.css('li.next a')[0]) is fine.

So instead of

for href in response.css('li.next a::attr(href)'):
yield response.follow(href, callback=self.parse)

users would be able to write (in Python 3)

yield from response.follow_all(response.css('li.next a::attr(href)'), self.parse)

We can also add 'css' and 'xpath' support to it, as keyword arguments; it would shorten the code to this:

yield from response.follow_all(css='li.next a::attr(href)', callback=self.parse)

(this is a follow-up to #1940 and #2540)