WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This works:

df = pd.DataFrame({'A': [1, 2, 1, 2, 1, 2, 3], 'B': [1, 1, 1, 2, 2, 2, 2]})
df.groupby('B').agg(pd.Series.mode)

but this doesn't:

df.groupby('B').agg('mode')

...
AttributeError: Cannot access callable attribute 'mode' of 'DataFrameGroupBy' objects, try using the 'apply' method

I thought all the series aggregate methods propagated automatically to groupby, but I've probably misunderstood?

Issue 2:
Feature Request

Hi,

I use pandas a lot in my projects and I got stack with a problem of running the "mode" function (most common element) on a huge groupby object. There are few solutions available using aggregate and scipy.stats.mode, but they are unbearably slow in comparison to e.g. groupby.mean(). Thus, I would like to make a feature request to add cytonized version of groupby.mode() operator.

Thanks in advance!

Jan Musial
Issue 1:
First checkmark says: Wrap your all of your checkboxes inside one div with the class "row".

It should be: Wrap your text area and submit button inside one div with the class "row".

Issue 2:
One of the requirements are not fulfilled (Wrap your all of your checkboxes inside one div with the class "row".) even though the codes have fulfilled the requirement. Per checking my code 3 times, I know I have fulfilled the requirement. Kindly check and see if this is just an error on my part. Thank you.

Here are my codes:

<style>
h2 {
font-family: Lobster, Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

</style>

CatPhotoApp

Like

Info

Delete

Things cats love:

cat nip

laser pointers

lasagna

Top 3 things cats hate:

flea treatment

thunder

other cats

Indoor

Outdoor

Loving

Lazy

Crazy

Submit

#

Here is a screenshot:
Issue 1:
Playpen: http://is.gd/XdDyHg

Inline:

pub trait Editor<Cntx> where Cntx: Context<Self> {}

pub trait Context<Edtr> where Edtr: Editor<Self> {}

Failure:

task 'rustc' has overflowed its stack

Issue 2:
This code causes rustc's stack to overflow:

trait Hash<H: Hasher> { }
trait Hasher<H: Hash> { }

trait StreamHash<H: StreamHasher>: Hash<H> { }
trait StreamHasher<H: StreamHash>: Hasher<H> { }

fn main() {
}

As a workaround, you can break up the recursion with another trait:

trait Hash { }
trait Hasher<H: Hash> { }

trait Stream { }
trait StreamHash<S: Stream>: Hash { }
trait StreamHasher<H: StreamHash<Self>>: Stream + Hasher<H> { }

fn main() { }
Issue 1:
"axios": "^0.19.0"

import axios, { AxiosRequestConfig } from 'axios'

axios.defaults.crossDomain = true //Property 'crossDomain' does not exist on type 'AxiosRequestConfig'. TS (2339)

export interface AxiosRequestConfig {
url?: string;
method?: Method;
baseURL?: string;
transformRequest?: AxiosTransformer | AxiosTransformer[];
transformResponse?: AxiosTransformer | AxiosTransformer[];
headers?: any;
params?: any;
paramsSerializer?: (params: any) => string;
data?: any;
timeout?: number;
withCredentials?: boolean;
adapter?: AxiosAdapter;
auth?: AxiosBasicCredentials;
responseType?: ResponseType;
xsrfCookieName?: string;
xsrfHeaderName?: string;
onUploadProgress?: (progressEvent: any) => void;
onDownloadProgress?: (progressEvent: any) => void;
maxContentLength?: number;
validateStatus?: (status: number) => boolean;
maxRedirects?: number;
socketPath?: string | null;
httpAgent?: any;
httpsAgent?: any;
proxy?: AxiosProxyConfig | false;
cancelToken?: CancelToken;
}

There is no “crossDomain” in interface

Issue 2:
Summary

Allow for typesafe extension of AxiosConfiguration

Context

Allow for the following user case (without the cast)

interface Config extends AxiosRequestConfig {
start?: Date
}
const requestConfig: Config = {
...
}
const instance = axios.create(requestConfig)

instance.interceptors.request.use(axiosConfig => {
const config = axiosConfig as Config // Cast is needed as axiosConfig is infered to AxiosConfiguration and not Config
config.start = new Date()
return config
})
Issue 1:
VSCode Version:0.10.11 stable, 0.10.14-insiders

OS Version:Windows 7

Steps to Reproduce:

Follow the CSS transpiling section and create a tasks.json with 'node-sass' as the command.

Save tasks.json

Ctrl+Shift+B to Run Build Task

"No task runner configured." error displayed.

Restart VS Code in the same folder.

'node-sass' now runs correctly

Issue 2:
VSCode Version:0.10.11 stable, 0.10.14-insiders

OS Version:Windows 7

Steps to Reproduce:

Follow the CSS transpiling section and create a tasks.json with 'node-sass' as the command.

Save tasks.json

Restart VS Code

Ctrl+Shift+B to Run Build Task

Rendering Complete, saving .css file...

Wrote CSS to ...

No .css file shows up in the Explorer

Restart VS Code in the same folder.

Now styles.css is displayed
Issue 1:
Neo4J Version 2.1.1 - new install (tarball).

Go to /browser/ in web browser and you will find that the following HTTP requests are constantly spinning:

OPTIONS http://192.168.1.152:7474/db/data [HTTP/1.1 302 Found 0ms]

OPTIONS http://192.168.1.152:7474/db/data/ [HTTP/1.1 204 No Content 0ms]

It causes the browser to become unresponsive with regular freezes (in Ubuntu). Profiling the javascript code using firefox console shows that more than 50% of time is spent in: WCF__flushMessageQueue. Will enclose screenshot.

Issue 2:
On all systems I tried Neo4j, the web interface is causing high CPU usage, even if nothing is happen. On a Mac Mini 5.1 with OS X 10.9.3 in Safari this leads to 70-75% CPU usage, on a Windows 8 PC with AMD Phenom II X4 it reaches 35%. The same on my notebook with Intel Core 7. The java server process itself has not high usage.
Issue 1:
Hello,

I had reopened an old closed issue. I think it might be wiser to create a new one.

I have been trying to understand why the colors_ratio parameter of the clustermap was never working for me.

I am running python3.8, with seaborn0.10.1 and my call is the following:

sns.clustermap(np.log2(1.01+merged[merged.columns[8:-12]].loc[rand].T),col_cluster=False, standard_scale=0, colors_ratio=0.7, col_colors = data, figsize=(30,20), xticklabels=False)
fig.ax_col_dendrogram.set_visible(False)

but I have been trying without all possible parameters and array sizes and I was never able to make this parameter work (except is set at 0). I always seem to get the same error:

ValueError: Width and height specified must be non-negative:

with the following stacktrace:

~/.local/lib/python3.8/site-packages/seaborn/matrix.py in clustermap(data, pivot_kws, method, metric, z_score, standard_scale, figsize, cbar_kws, row_cluster, col_cluster, row_linkage, col_linkage, row_colors, col_colors, mask, dendrogram_ratio, colors_ratio, cbar_pos, tree_kws, **kwargs)
1379
1380 """
-> 1381 plotter = ClusterGrid(data, pivot_kws=pivot_kws, figsize=figsize,
1382 row_colors=row_colors, col_colors=col_colors,
1383 z_score=z_score, standard_scale=standard_scale,

~/.local/lib/python3.8/site-packages/seaborn/matrix.py in __init__(self, data, pivot_kws, z_score, standard_scale, figsize, row_colors, col_colors, mask, dendrogram_ratio, colors_ratio, cbar_pos)
825 height_ratios=height_ratios)
826
--> 827 self.ax_row_dendrogram = self.fig.add_subplot(self.gs[-1, 0])
828 self.ax_col_dendrogram = self.fig.add_subplot(self.gs[0, -1])
829 self.ax_row_dendrogram.set_axis_off()

~/.local/lib/python3.8/site-packages/matplotlib/figure.py in add_subplot(self, *args, **kwargs)
1417 self._axstack.remove(ax)
1418
-> 1419 a = subplot_class_factory(projection_class)(self, *args, **kwargs)
1420
1421 return self._add_axes_internal(key, a)

~/.local/lib/python3.8/site-packages/matplotlib/axes/_subplots.py in __init__(self, fig, *args, **kwargs)
74
75 # _axes_class is set in the subplot_class_factory
---> 76 self._axes_class.__init__(self, fig, self.figbox, **kwargs)
77 # add a layout box to this, for both the full axis, and the poss
78 # of the axis. We need both because the axes may become smaller

~/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py in __init__(self, fig, rect, facecolor, frameon, sharex, sharey, label, xscale, yscale, **kwargs)
422 self._position = mtransforms.Bbox.from_bounds(*rect)
423 if self._position.width < 0 or self._position.height < 0:
--> 424 raise ValueError('Width and height specified must be non-negative')
425 self._originalPosition = self._position.frozen()
426 self.axes = self

ValueError: Width and height specified must be non-negative

Would you be able to help me on this?

Thanks for having implemented this feature in the first place,

Best,

Issue 2:
I have a custom legend and colors aren't matching well.

Is there a workaround? Is this intended?
Issue 1:
we have setup one kubernetes cluster to test the HA if support to transfer the container with the cinder volume plugin. I have three nodes. One Master Node, and two Nodes are minion nodes. I install with cinder volume plugin successfully.

1.I use the case to create the pod on A minion node. It can run well. And the cinder can also be attached to the container.

apiVersion: v1

kind: ReplicationController

metadata:

name: wqonlynginx

spec:

replicas: 1

selector:

name: wqonlynginx

template:

metadata:

labels:

name: wqonlynginx

spec:

containers:

- name: wqonlynginx

image: nginx

ports:

- containerPort: 6379

resources:

limits:

cpu: "0.1"

volumeMounts:

- mountPath: /nginx-data

name: data

volumes:

- name: data

cinder:

# Enter the volume ID below

volumeID: 37ef6468-dfde-4468-8317-2c4142a6827f

fsType: ext4

2. I stop the A minion by the command "nova stop instance_id", But I find the status of pod is ContainerCreating all the time. I find the cinder volume isn't attached to the B minion node if HA supports, and the B minion node don't find the container to be transfered.

From our test, it seems kubernetes HA Not support this container with cinder volume plugin to transfer to the another minion node.

Could any kubernetes developers confirmed that ?

Issue 2:
Even after extending/randomizing the server timeout I see too many watch window expirations. This leads to concurrent lists (it has dropped from > 50, to >30 < 50). There are periods when we get one expiration a second, and times when we have > 20 on the same second.

I can boil this down to cpu starvation of the go-etcd watcher:

https://github.com/coreos/go-etcd/blob/master/etcd/watch.go#L39

And reproduce it with:

go test -bench BenchmarkPodList -bench-pods 3000 -bench-tasks 100 -bench-quiet 3 -tags 'benchmark'

while concurrently setting up a cpu starved watch:

func TestEtcdWatch() {
client := etcd.NewClient()
var yield sync.Mutex
go func() {
for {
yield.Lock()
yield.Unlock()
}
}()
go func() {
if _, err := client.Watch(Key, waitIndex, true, incomingCh, stopCh); err != nil {
errCh <- err
}
}()
for {
select {
case res := <-incomingCh:
glog.Infof("Got result %v", res)
case err := <-errCh:
glog.Fatalf("Got error %v", err)
}
}
}

I don't think this is s pathological test case. We hammer cpu on our n1-standard-4 master, and in reality we have 100's of open watches (and each of those 3000 pods will send at least 7 events).

There are a few solutions:

Make the etcd watch window a command line parameter and bump it up to 5000.

Etcd server supports stream watching.

We Implement a cache with a custom watch window.

I've tested 1 and it seems to work (haven't investigated tradeoffs of larger window). 2, 3 are probably not going to happen for 1.0.

@lavalamp @fgrzadkowski @wojtek-t
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Route redirect on signout should work as expected.

Current Behavior

Signout won't work the first time if user is already signed in when loading the page.

Steps to Reproduce (for bugs)

Signin

Reload the page

Signout won't work the first time

Context

Your Environment

Tech
Version

next
5.0.0

node
8.9.4

OS
osx 10.11.6

browser
chrome

etc

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

Expected Behavior

In dev mode, navigating to /blog/posts/my-post-title should be picked up by the router as a destination that will eventually be available on static export.

Current Behavior

In dev mode, navigating to /blog/posts/my-post-title is not be picked up by the router, and you get a 404 where a static HTML file would normally be located after exporting the static site.

Steps to Reproduce (for bugs)

Use the following next.config.js:

// next.config.js
module.exports = {
exportPathMap: function () {
return {
"/": { page: "/" },
"/p/hello-nextjs": { page: "/post", query: { title: "hello-nextjs" } },
}
},
}

Run the dev server with next

Navigate to localhost:3000/p/hello-nextjs

The result will be a 404

Context

The expected behavior is extremely relevant to using Next to build static websites. One key component to developing a static website is the ability for the local development server to resemble as closely as possible the conditions where the static site will be served. In this case, I would expect that the paths exported from exportPathMap would be used to serve the correct page.

You may be thinking that next-routes + <Link as='...' /> is a good solution to this problem, where the browser push state masks navigation to /blog/posts/my-post-title with something like blog-post?slug=my-post-title, but this only works when navigating from a root page or index, not when reloading or opening a new window.
Issue 1:
I'm trying to achieve both "allowJs" and "Compile On Save" at the same time. "allowJs" exists in tsconfig.json, but not the IDE's TypeScript Build options. "Compile On Save" exists in the IDE (which makes sense, since it is really an editor concern), but is disabled if tsconfig.json is present. What I think would be ideal is to allow "Compile On Save" to be lit up and active in the IDE regardless of whether tsconfig is present or not, even if the other options (which are passed through to to the compiler) are not available.

Issue 2:
ES6 module loader assumes that there should be only one entry for every imported module in the module dependency list and as a consequence there should be only one setter for every module.This does not play well with the current TypeScript emit where we generate a separate entry for every import\export statement.

export {x} from 'b';
export {y} from 'b';

will become

System.register(['b', 'b'], function(exports_1) {
return {
setters:[
function (_b_1) {
exports_1("x", _b_1["x"]);
},
function (_b_2) {
exports_1("y", _b_2["y"]);
}],
execute: function() {
}
}
});

ES6 module loader does not raise any errors in presence of duplicate entries and will call both setters when module is instantiated however it will call only the first one if something in module 'b' will invoke exporter function. Relevant part of ES6 module loader source code is here
Issue 1:
Context:

Playwright Version: [1.15]

Operating System: [Ubuntu 20.04 LTS]

Node.js version: [14.17.6]

Browser: [Chromium, Firefox, WebKit]

Extra: I am using Playwright + native test runner + Allure + Moon

Here is short snapshot of project

https://github.com/AndreyMelnichenko/playwright-test-ts

Describe the bug

For Moon test execution Allure or Playwright can't create screenshot and attach into report

For local run all works fine

See source code

https://github.com/AndreyMelnichenko/playwright-test-ts

Issue 2:
I'm trying to follow up https://www.browserstack.com/docs/automate/playwright, is there a way to setup wsEndpoint as a configuration in config file or in fixtures?

Edit: from the Playwright Team:

import base, { chromium } from '@playwright/test';

// caps is copied from browserstack guide
const caps = {
browser: 'chrome',
os: 'osx',
os_version: 'catalina',
name: 'My first playwright test',
build: 'playwright-build-1',
'browserstack.username': process.env.BROWSERSTACK_USERNAME
'browserstack.accessKey': process.env.BROWSERSTACK_ACCESS_KEY,
'client.playwrightVersion': '1.13.1',
};

export const visitorTestFixture = base.extend<{}>({
browser: async ({ browser }, use, workerInfo) => {
const vBrowser = await chromium.connect({
wsEndpoint:
`wss://cdp.browserstack.com/playwright?caps=` +
`${encodeURIComponent(JSON.stringify(caps))}`,
});
await use(vBrowser);
await vBrowser.close();
},
});
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

Superset version

superset (0.27.0)

Expected results

Order of series change when i configure options "Sort By" and "Sort Descending"

Actual results

It orders ONLY by the metrics defined

Steps to reproduce

create Time series - Stacked graph

Change option "Sort By" that should change the order of series in the stack

Issue 2:
Any experience of using the Sort By” when stacking time series data?

Expected result: the order should change as a consequence of changing the value of "Sort By" in the web_health_population slice, i.e. the series as the bottom should change, as well as the series at the top, and the order of the series between these.

Actual results: The "Sort by" seems to have no effect I have tried with different data sets. The category with the largest count is and remains at the bottom, the second largest on top of that and so on. This leads me to suspect that the feature has not been implemented yet. If it has been implemented, please explain how to configure the data so that the "Sort by" has the desired effect.

Superset version: 0.17.0
Issue 1:
Environment

Windows build number:18362
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

I am attaching a simple program that write "\033[" and "0c" to stdout. When I use the EchoCon sample to launch this under ConPTY, I only see "0c" in the output. Breaking at the WriteFile at the bottom of the EchoCon sample, I see the following things:

An initial XTERM SetTitle OSC, which is unexpected but manageable.

A sequence of "[escape code for cursor off]" "0c" "[escape code cursor on]" (notice \033[ is missing)

code attached:

#include <Windows.h>
#include <stdio.h>

int main(int argc, char**argv) {

char *csi = "\033[";
char *da = "0c";
DWORD bwrote =0;

/*
HANDLE hConsole = { GetStdHandle(STD_OUTPUT_HANDLE) };

DWORD consoleMode = 0;
GetConsoleMode(hConsole, &consoleMode);
SetConsoleMode(hConsole, consoleMode | ENABLE_VIRTUAL_TERMINAL_PROCESSING);
*/
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),csi,2,&bwrote,NULL);
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),da,2,&bwrote,NULL);

}

If I uncomment the call to SetConsoleMode in the child process, it shows a bizzarre sequence of "\r\n" after the Xterm sequence.

Expected behavior

Just my \033[0c

Actual behavior

As described above. I am probably just overlooking something, but I'd love to find an explanation for this.

Issue 2:
Environment

Windows build number: Version 10.0.18362.356
Windows Terminal version (if applicable): 0.4.2382.0

Any other software?: as usual: *mine*. :-)

Steps to reproduce

echo -ne "a\tb"

Expected behavior

The terminal emulator should receive "a\tb\n" (or "\a\tb\r\n" respectively).

Actual behavior

Receives "a\x20\x20\x20\x20\x20\x20\x20b\n" (I'm using \x20 here, because GitHub didn't like my actual SPs :) )
Issue 1:
Apache Airflow Provider(s)

sftp

Versions of Apache Airflow Providers

apache-airflow-providers-sftp==4.1.0

Apache Airflow version

apache-airflow==2.4.3

Operating System

NAME="Ubuntu" VERSION="20.04.2 LTS (Focal Fossa)"

Deployment

Composer

Deployment details

No response

What happened

SFTPSensor is continuously running even when the files matching file pattern passed by the user are available in sftp location. This is happening because the variable actual_file_to_check holds just file name where as the method get_mod_time expects file name with path.

airflow/airflow/providers/sftp/sensors/sftp.py

Lines 70 to 79
in
12c3c39

file_from_pattern = self.hook.get_file_by_pattern(self.path, self.file_pattern)

if file_from_pattern:

actual_file_to_check = file_from_pattern

else:

return False

else:

actual_file_to_check = self.path

try:

mod_time = self.hook.get_mod_time(actual_file_to_check)

What you think should happen instead

SFTPSensor should stop execution as soon as it finds first file match.

How to reproduce

Trigger SFTPSensor with file pattern as shown in the below code snippet.

checkForSFTPFiles = SFTPSensor( task_id="checkForSFTPFiles", path=f"{SFTP_ROOT_DIR}", file_pattern='Migrate*', poke_interval=10 )

Anything else

Every time

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Body

issue is described in PR #25705

the author of the PR abandon it so anyone can try to submit a fix to the issue.

Committer

I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Issue 1:
tooltip in this page ,http://twitter.github.com/bootstrap/scaffolding.html

Screenshot below http://www.tcreator.info/demo/bugs/tooltip-bug.jpg

Issue 2:
When you move your cursor from bottom to top over the tooltip, the tooltips repeats itself.

It only happens on this page: http://twitter.github.com/bootstrap/scaffolding.html#gridSystem

I use Google Chrome 23.0.1271.64
Issue 1:
Just want to make sure this is recorded and heard. Is there any reason why tab alignments be removed in bootstrap 3? I have a bunch of web designs using it and it doesn' really break any other parts of bootstrap 3. Currently relying on some custom CSS hacks to make it work again.

ref (other compliants): http://stackoverflow.com/questions/18455192/twitter-bootsrap-3-0-tabs-left-not-working-anymore

ref (hacks): http://stackoverflow.com/questions/18432577/stacked-tabs-in-bootstrap-3/18443236#18443236

Thanks.

Issue 2:
Hi, guys!

Left-sided and right-sided tabs are missing.

Thank you!
Issue 1:
When you're passing multiple files/globs to babel that will be built into a single file, is it possible to eliminate duplicate file paths in the resulting build rather than duplicating the contents?

I'm trying to influence the ordering of some files where the order is important, so I have a command that looks like this:

babel -s -c false --out-file tmp/built.js --ignore *.spec.js src/module.js "src/**/*.js"

At the moment, module.js would be included as the first file, then duplicated again when the second glob matches it. Ideally, the file would only be included the first time it was encountered.

Issue 2:
Bug: If in your build script, you have --copy-files passed, files that are ignored in .babelrc files will be copied over, instead of being ignored.

Input Code

babel src --out-dir lib --copy-files

Babel Configuration (.babelrc, package.json, cli command)

{
"presets": [
"es2015",
"stage-1",
"react"
],
"ignore": [
"**__mocks__/*.js"
]
}

Expected Behavior

Babel should not copy files that are explicitly ignored in .babelrc configuration. In this case, babel should not transpile or copy Jest mocks.

Current Behavior

Babel copies files that are ignored are explicitly .babelrc.

> npm run build
> babel src --out-dir lib --copy-files
src/api/__mocks__/index.js -> lib/api/__mocks__/index.js
src/api/endpoints.js -> lib/api/endpoints.js

If you pass an --ignore flag (with the same blob) after the --copy-files flag, it will behave as expected.

> npm run build;
> babel src --out-dir lib --copy-files --ignore **__mocks__/*.js
src/api/endpoints.js -> lib/api/endpoints.js
(output does not include ignored directories)

Context

This issue comes up when you work with Jest manual mocks inside of your source directory. Jest warns that you have duplicate mocks directories.

software
version(s)

Babel
6.26.0

node
6.9.2

npm
5.4.0

Operating System
OSX El Capitan