WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Affected Version

0.22.2 (suspected code path remains unchanged in druid 23 and master)

Description

2022-08-30T14:10:38,628 INFO [HttpServerInventoryView-6] org.apache.druid.server.coordination.ChangeRequestHttpSyncer - [https://XXXXXX.XXXXXX.com:8283/_1661264760506] requested resetCounter for reason [counter[Counter{counter=94953, hash=1661868638606}] >= last counter[Counter{counter=94953, hash=1661868638606}]].

You can see here that the client request for changes on this historical provides a Counter that matches the last counter on the server. This causes the client to send a fresh request to the server with a null counter in order to get the full set of segments. I am struggling to understand why we would want to reset a server that is up to date.

It looks like this is what is causing the Counter to be reset.

It seems that the above code path is run either when the Counter does not match when the client request is made OR when the waiting futures (requests waiting for a new change) are resolved here. It is this latter case that I don't understand the reset Counter return to client? Why not send some empty response and the client comes back with the same counter looking for a new change? Resetting it feels like overkill and added work for no gain. Perhaps I'm missing something here, but as of now it feels like incorrect, albeit not destructive, behavior.

spit balling on change to the code that controls resetting the Counter

if (counter.counter == lastCounter.counter) {
if (counter.matches(lastCounter)) {
// return some empty response that does not cause client to reset counter
} else {
// this is bad, fail with a reset due to an incorrect hash - unlikely this would happen here, but it adds safety
}
} else if (counter.counter > lastCounter.counter) { // This is modification of original conditional to just GT
return ChangeRequestsSnapshot.fail(
StringUtils.format(
"counter[%s] > last counter[%s]",
counter,
lastCounter
)
);
} else if ...

Issue 2:
Hi all,

We're using a count aggregator in most of our data sources, once in a while we get a request to migrate a set of events from some external system. We get these events aggregated, so that a single row represents multiple events.

In order to get the correct count metric, I was thinking about one of -

Generate duplicate input rows according to the aggregated count - naturally this would be a huge overhead for large number of events

Avoid using count aggregator in general - always use longSum instead, and make sure to send "count": 1 in all our regular/non-migrated events

I think it would be great (maybe there already is such a feature? :) ) to have the ability to configure fieldName on the count aggregator - so that -

a. If fieldName exists in the event JSON, its value will be used

b. Otherwise, the value will be assumed to be 1 (as count normally behaves)

Thanks!

Eran
Issue 1:
Environment

I am running Windows 10 version 1903 (18362.356)
I have PowerToys 0.11.0 installed from the Releases tab of GitHub
Bug concerns FancyZones

Steps to reproduce

I have several virtual desktops set up

I have set up 3 zones on my display using FancyZones.

I opted to use the Win+left and Win+right keys to use my FancyZones instead of the default Windows 10 behavior.

I changed between virtual desktops and ended up having my focus on the Windows Task Bar. But the behavior can be triggered by clicking on an empty area of the Windows Task Bar as well.

I hit Win+left (believing I have focused on a Window)

Expected behavior

Nothing should have happened, because I really do not expect to resize / move the task bar.

Actual behavior

The task bar behaved like a regular window and got stuck into my FancyZones. I could even move it between the FancyZones just like any other window. Not what I want :)

Issue 2:
Environment

Windows build number: Windows 10 1903 (18362.356) - 64bit
PowerToys version: 0.11.0
PowerToy module: Shortcut Guide, FancyZones

Steps to reproduce

Open the shortcut guide click onto the taskbar and then trigger the window controls to move a window to a specific zone (Windows + Arrow Keys), the taskbar gets moved into that zone even when locked. Weird behaviour appears when switching virtual desktops (see GIF below).

Screenshots

GIF

Imgur
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

When interpolation delimiters are changed to [[ and ]], having an unescaped { in template still throws an error (including {{).

Expected behavior

{ should be allowed in templates if interpolation delimiters are changed.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/5Kl9w2Mpct9z7ljEgogS?p=preview

What is the motivation / use case for changing the behavior?

One would normally change interpolation string because one needs {{ for something else (eg. LaTeX syntax uses { heavily).

Please tell us about your environment:

Angular version: 2.4.x

Browser: all

Language: TypeScript

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

<div>Test binding: {{2 + 2}}</div>

=> Test binding: 4

<div ngNonBindable>Test non binding: {{2 + 2}}</div>

=> Test binding: {{2 + 2}}

<div>Test non binding: {2 + 2}</div>

=> Template parse errors, the "(Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)" message.

This is a problem because precisely due to the fact that they are [ngNonBindable] marked elements, "{{ '{' }}" doesn't produce the expected result.

Expected behavior

As the escaping of { characters isn't possible inside [ngNonBindable] elements so it's the compiler's job to ignore them altogether, I believe.

<div>Test non binding: {2 + 2}</div>

=> Test binding: {2 + 2}

Reproduction of the problem

here => http://plnkr.co/edit/GSzwEUyXyY1qDabjpEL1?p=preview

Angular version: 2.0.0
Issue 1:
There does not appear to be a way to replicate this feature with the current aggregation API.

Issue 2:
have a web service, where every time a button is pressed from UI, it connects to elastic search and fires a query. This is the code which is executed every time. The issue is that after a while, intermittently, the UI hangs.

private static final String CONFIG_CLUSTER_NAME = "cluster.name";

private static final String CLUSTER_NAME = "sample_es";

private static final String[] transportAddress = {

//Machine details

};

private static final int transportPort = 9300;

public static Client initClient(){
settings = ImmutableSettings.settingsBuilder().put(CONFIG_CLUSTER_NAME, CLUSTER_NAME).build();

Client client = new TransportClient(settings);
for (int i=0 ; i < transportAddress.length-1 ; i++){
((TransportClient)client).addTransportAddress(new InetSocketTransportAddress(transportAddress[i], transportPort));
}
logger.info("TransportClient Created");
return client;

}

public static int query( String query) throws Exception

{

Client client = null;

try{

client = initClient();

//Query search code

}catch(Exception e){
e.printStackTrace();
}finally{
if(client != null){
client.close();
logger.info("TransportClient Closed");
}
}
return result_count;

}

Whenever we restart the tomcat server, this is the error message we are seeing in logs. How should we fix this?

[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom$1](value

[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom$1@5838ce3e]) and a value of type

[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom](value

[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom@796c75b1]) but failed to remove it

when the web application was stopped. This is very likely to create a memory leak.
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/postcss-import: Socket timeout

npm ERR! network This is a problem related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in:

npm ERR! /home/bentex/.npm/_logs/2022-03-11T08_41_06_921Z-debug-0.log

✖ Package install failed, see above.

The Schematic workflow failed. See above.

Expected Behavior

I expect to create a new angular project using the command ng new but seems theres a socket timeout each time i try

Steps To Reproduce

In this environment... linux distro parrotOs

With this config...

Run '...' ng new ..

See error...

Environment

npm -v

8.3.1

$node -v

v17.4.0

"user" config from /home/bentex/.npmrc

legacy-peer-deps = true

; node bin location = /home/bentex/.nvm/versions/node/v17.4.0/bin/node

Issue 2:
Current Behavior:

When trying to install packages, without a previous cache, we get constant timeouts when trying to fetch packages, both locally and in a CI environment. The package that fails is always different, so there isn't a specific package causing the issue.

Stack trace:

19505 verbose stack FetchError: request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19505 verbose stack at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\npm\node_modules\minipass-fetch\lib\index.js:97:14)
19505 verbose stack at ClientRequest.emit (events.js:315:20)
19505 verbose stack at TLSSocket.socketErrorListener (_http_client.js:469:9)
19505 verbose stack at TLSSocket.emit (events.js:327:22)
19505 verbose stack at emitErrorNT (internal/streams/destroy.js:106:8)
19505 verbose stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
19505 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
19506 verbose cwd D:\a\1\s
19507 verbose Windows_NT 10.0.17763
19508 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.15.4\\x64\\node.exe" "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js" "ci" "--no-audit"
19509 verbose node v14.15.4
19510 verbose npm v7.9.0
19511 error code ERR_SOCKET_TIMEOUT
19512 error errno ERR_SOCKET_TIMEOUT
19513 error request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19514 verbose exit 1

Tried using the fetch-retries, fetch-retry-mintimeout, and fetch-retry-maxtimeout options, but didn't seem to have any effect.

Expected Behavior:

Install packages without timing out.

Steps To Reproduce:

Using a project with workspaces (~6425 packages)

No cache available

Run npm ci

Environment:

OS: Mac OS 11.2.3 or Windows 10

Node: 14.15.4

npm: 7.9.0
Issue 1:
In Julia >1.0 I observed the product between a real and a complex matrix run very slowly. This does not concern the complex and real matrix product however:

M = 2000
C = rand(M,M) + im*rand(M,M)
R = rand(M,M)
@time C * R;
@time R * C;

0.090447 seconds (11 allocations: 61.036 MiB, 2.09% gc time)
6.074982 seconds (12 allocations: 61.036 MiB, 0.61% gc time)

Issue 2:
Julia 0.4:

julia> A=rand(3000,3000);B=rand(3000,3000);

julia> tic();for k=1:50;C=A.*B;end;toc()

elapsed time: 2.386786733 seconds

2.386786733

Matlab 2013a:

A=rand(3000);B=rand(3000);

tic;for k=1:50;C=A.*B;end;toc

Elapsed time is 1.501691 seconds.

This is on a 2 core machine. I also ran it on another computer with 6 cores and the difference is greater (about 4x). So it seems Matlab is using parallelism for .* while Julia isn't. A little experimentation in Matlab shows that it drops to 1 core when the matrix size is 191x191 or smaller.
Issue 1:
Code Sample

>>> import pandas as pd
>>>
>>> # Toy data
>>> series = pd.Series([0, 1, 5, 6, 10, None, np.nan])
>>> bins = [0, 5, 8]
>>>
>>> pd.cut(series, bins=bins, include_lowest=True)

Out[23]:
0 (-0.001, 5.0]
1 (-0.001, 5.0]
2 (-0.001, 5.0]
3 (5.0, 8.0]
4 NaN
5 NaN
6 NaN
dtype: category
Categories (2, interval[float64]): [(-0.001, 5.0] < (5.0, 8.0]]

Problem description

It was expected that the lower boundary would be [0, 5] (for the first three instances). However, a value of -0.001 was "invented" (?). It worked in version 0.19.2 (with the output shown in Expected Output). Is there any bug? Is there anything I have to specify to make it work again as before?

Expected Output

0 [0, 5.0]
1 [0, 5.0]
2 [0, 5.0]
3 (5.0, 8.0]
4 NaN
5 NaN
6 NaN
dtype: category
Categories (2, interval[float64]): [ [0, 5.0] < (5.0, 8.0]]

Output of pd.show_versions()

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

pandas: 0.20.3

pytest: None

pip: 9.0.1

setuptools: 36.2.0

Cython: None

numpy: 1.13.1

scipy: 0.19.1

xarray: None

IPython: 5.1.0

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: 2.0.0

openpyxl: 2.4.1

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.8

lxml: None

bs4: None

html5lib: 0.999999999

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Hi,

When trying to concat() multiple big fortran order arrays, there is a big performance hit, as most of the work goes into calling ravel().

See:

https://github.com/pydata/pandas/blob/master/pandas/core/internals.py#L4772

You can see the is_null(self) is using just a few values from the data after calling .ravel()

An easy fix is to change that line to values_flat = values.ravel(order='K')

Here is a link to numpy.ravel docs: http://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ravel.html

‘K’ means to read the elements in the order they occur in memory, except for reversing the data when strides are negative. By default, ‘C’ index order is used.
Issue 1:
System information (version)

OpenCV => 4.1

Operating System / Platform => Windows 10 64Bit

Operating System / Platform => Ubuntu 18.04

Compiler => vs2015

Detailed description

I found that cv2.VideoCapture() costs different CPU utilization in Windows and in Ubuntu.

I ran the following code in Windows and in Ubuntu respectively, it costs 25% CPU utilization in Windows and more than 80% CPU utilization costed in Ubuntu. Why it makes such big difference? Both OSs are run in a same machine, the only difference is the OS. So I guess is there some dependency libs I missed in the Ubuntu OS?

cam = cv2.VideoCapture('rtmp://192.168.1.29:9935/live/0')
while True:
ret, frame = cam.read()
frame = cv2.resize(frame, (960,540))

Steps to reproduce

Issue 2:
Transferred from http://code.opencv.org/issues/3774

|| Dennis Evangelista on 2014-06-27 15:59
|| Priority: Normal
|| Affected: 2.4.0 - 2.4.8
|| Category: calibration, 3d
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: Other / Mac OSX

findCirclesGrid() finding duplicate points

Sometimes,

retval,corners = findCirclesGrid(image,size,flag=cv2.CALIB_CV_CLUSTER)

returns retval=True and corners but where the corners have duplicate points. We can detect the duplicate points by checking for the pairwise distances using scipy.spatial.distance.pdist. Removing the CALIB_CV_CLUSTER makes the duplicate points go away but results in fewer pattern detections.

If this is expected behavior, it might help to note this in the documentation; inadvertently having duplicate points really messes up our calibration.

History

Dmitry Retinskiy on 2014-09-17 09:56

Ilya, could you check this?
Thanks.
- Assignee set to Ilya Lysenkov
- Status changed from New to Open
Issue 1:
Maybe I'm misunderstanding, or doing something wrong, but I don't think Secrets should be available in clear text by means of kubectl describe secrets even if they are created using kubectl apply -f

Example

my-secret.yaml

apiVersion: v1
kind: Secret
metadata:
name: tls
type: Opaque
data:
tls.crt: BASE64...
tls.key: BASE64...

Commands:

kubectl apply -f my-secret.yaml
kubectl describe secrets my-secret

kubectl describe will have an "Annotations:" field which contains the entire yaml file (as JSON), including my base64 encoded secrets:

Name: tls
Namespace: default
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration={"kind":"Secret","apiVersion":"v1","metadata":{"name":"tls","creationTimestamp":null},"data":{"tls.crt":"BASE64...","tls.key":"BASE64..."},"type":"Opaque"}

Type: Opaque

Data
====
tls.key: 1565 bytes
tls.crt: 1234 bytes

I appreciate that it's hard to apply something without storing last-applied-configuration, but maybe Secrets should be treated as a special case?

Issue 2:
when using kubectl apply for secrets the annotation will store the secret data, making it visible to kubectl describe
Issue 1:
I made a simple app to test compatibility with IE and it seems that adding router (RouteConfig and <router-outlet>) gives following error:

TypeError: Unable to get value of the property 'contains': object is null or undefined

I can't really say which line exactly produces the error (debugging on IE is really painful, especially on VM - any tips regarding that are welcome).

Main component looks like this:

import {Component} from 'angular2/angular2';
import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';

import {TestComponent} from './components/test';

@Component({
selector: 'app',
template: '<router-outlet></router-outlet>',
directives: [ROUTER_DIRECTIVES]
})
@RouteConfig([
{ path: '/', component: TestComponent }
])
export class App {}

TestComponent is:

import {Component} from 'angular2/angular2';

@Component({
selector: 'test',
template: 'Hello from component: {{ test }}'
})
export class TestComponent {
public test: string = 'test';
}

Issue 2:
Hi,

I'm having some issues with Angular 2, pushState & IE9 as I've documented initially in https://groups.google.com/forum/#!topic/angular/TdCt6KyhwI8 before carrying out much more investigation!

I've read #5792 and attempted to apply the history.js script with mixed results!

I have had to modify angular2.dev.js locally to return window.History instead of window.history (not a long term solution really!)

In Everything but IE9 things work as expected using path location mode - in IE9 history.js takes over and injects urls to look like http://my.app.com/#./dashboard

But those hashtag paths are then not recognised by the angular router..!!

So I turn on the hash location strategy and that works fine in chrome etc but in IE history.js kicks in and alerts the following..

History.js does not support states with fragment-identifiers (hashes/anchors).

The root issue is found in the following code in the router..

PlatformLocation.prototype.pushState = function(state, title, url) {
console.log('pushState line 2022');
this._history.pushState(state, title, url);
console.log('after push line 2026');
};

If I comment out the pushState line then everything works.. but of course the url is not updated in the browser window :(

It feels a bit like a catch-22 situation!!

a) Is this a bug??

b) Does the Angular team have a compatible IE9 routing solution?

Help!!!
Issue 1:
Bug report

Describe the bug

static css files appear to be served with sub-optimal cache-control:

/_next/static/css/commons.4e4de3e2.chunk.css

/_next/static/css/styles.4015be53.chunk.css

served with:

cache-control: public, max-age=0

I am new to Next.js behavior so apologies if this is not really a bug and css chunk shouldn't be served max-age=31536000, immutable for some reason. I just assume that the chunk hash (commons.4e4de3e2.chunk.css) ensure these things could/should be immutable but I am ready to be educated.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Go to any next.js page in chrome right click on any element and inspect element

Right click on any element and inspect element

Look at the network tab and click on a /_next/static/css

See cache-control is "public, max-age=0"

Expected behavior

I expect them to be served with "cache-control: public, max-age=31536000, immutable" like everything else in the /_next/static seems to be served with.

System information

OS: [e.g. macOS, Windows]

Browser: chrome

Version of Next.js: 7.0.2

Additional context

You can see this here: https://client.gelltest.com/

I can provide this sample repo if this for some reason isn't immediately and obviously reproducible.

(Identified after looking into css due to this comment: https://spectrum.chat/?t=9f9f43b8-ec8b-45e5-a8e3-5b57a62e9e67)

Issue 2:
Bug report

Describe the bug

.babelrc.js file compilation failed with next.prepare() and custom . Working with configuration inside of package.json and .babelrc file without .js extension.

To Reproduce

Use Custom Server next.js - https://github.com/zeit/next.js/tree/canary/examples/custom-server

npm install babel-plugin-transform-define --save

create .babelrc.js with this content:

module.export = {
"presets": [
"next/babel"
],
"plugins": [
[
"transform-define",
{
"process.env.REACT_APP_SENTRY_DSN_ADDR": "TEST_URL"
}
]
]
};

Override global component by creating _app.js page inside of pages directory with basic config:

import React from 'react'
import App, { Container } from 'next/app'

export default class MyApp extends App {
static async getInitialProps({ Component, router, ctx }) {
let pageProps = {};

if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}

return { pageProps }
}

render () {
const { Component, pageProps } = this.props;

return (
<Container>
<Component {...pageProps} />
</Container>
)
}
}

Project structure looks like:

npm run dev - shows errors with _app.js file compilation.

Expected behavior

Compile _app.js file with .babelrc.js configuration

System information

OS: Windows

"babel-plugin-transform-define": "^1.3.0",
"next": "^7.0.2",
"react": "^16.5.2",
"react-dom": "^16.5.2"

Additionally

Fun fact is everything works correctly when I change .babelrc.js file to .babelrc without js inside, with pure json. Imposibru!
Issue 1:
Hi,

Please add show command which will show image or video files inside the terminal, crazy idea?

Well, something like this:

show myphoto.png

or:

show myvideo.mpeg

It can also be shown when using dir so if the file is an image it will show the image in small thumbnail

Thanks,

Jassim

Issue 2:
Would like to see Sixel support in the Terminal, this is the standard used to show graphics in the console.

Sixel is part of the original DEC specification for doing graphics in terminals and has been re-popularized in recent years for doing graphics on the command line, in particular by Pythonistas doing data science.

The libsixel library provides an encoder but is also a great introduction to the subject (better than the Wikipedia page):

https://github.com/saitoha/libsixel