WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Though we can specify query granularity and intervals in search query spec.,

search query runner ignore those and scans whole the interval of the given segment and works with QueryGranularity.ALL.

For example, in testSearchWithCardinality() of SearchQueryRunnerTest,

it requests search for interval [2011-01-12, 2011-02-28) and [2011-03-01, 2011-04-15) within a segment of interval [2011-01-12, 2011-04-15] and unions the results.

But, it actually scans whole the segment for each interval and results in duplicated counting of matching entries.

As a result, you can see that the result count from testSearch() is much smaller than that of testSearchWithCardinality() even though testSearch() has larger query interval.

Issue 2:
This issue tracks all the "related" efforts targeted towards making realtime ingestion better in one way or the other.

Here is a wishlist of items we should try to solve for. I understand that some of this is already solved by tranquility (probably not in kafka based ingestion), but we should ensure that those are not broken as we make changes and are supported by kafka based ingestion as well.

Exactly once semantics: There should be no duplication introduced and no dropping of events (except when input event is malformed/unparseable). This directly relates to both "No window period" and "FirehoseV2 proposal"

We should be able to scale realtime ingestion by adding more nodes.

Realtime Ingestion and Querying on that data should continue to happen successfully in the event of some process/node failures. It only happens for standalone realtime nodes today. With ingestion done via "tasks", there is possibility of node dying leading to data loss (replication of ingestion tasks should potentially solve this).

Query result consistency: Given query should get exactly same result independent of which realtime nodes/replicants served the query.

No downtime upgrade: Realtime ingestion and Queries should continue to make progress while upgrade.

Operational simplicity: For example kafka ingestion should be able to automatically handle kafka partition addition/removal

(Realtime Delta Ingestion: ability to ingest late events as they come would probably happen as a side effect of 1st)

Related Refs:

https://groups.google.com/forum/#!msg/druid-development/kHgHTgqKFlQ/fXvtsNxWzlMJ (No window period proposal)

https://groups.google.com/forum/#!msg/druid-development/9HB9hCcqvuI/L59RgsloZfoJ (FirehoseV2 proposal)

https://docs.google.com/document/d/1PUG3crI2jiPa_u926R0KrkZVM7t706rXp1IuUxVXB5E/edit?usp=sharing (doc covering design details for both above)

https://groups.google.com/forum/#!searchin/druid-development/tier/druid-development/1I3CmxlOipM/e3-SpWqG170J (Task Tiering proposal)

Related PRs:

#1609 (kafka simple consumer based firehose and initial FirehoseV2 updates)

#1639 (new plumber)

Related Issues:

#401 (log management for long-running tasks)

#1513 (preemption for indexing service locks)

#1514 (aggregatorFactories in segment metadata)

#1515 (AllocateSegmentAction)

#1516 (ElasticShardSpec)

#1517 (user-friendly Hadoop-based re-indexing/compaction)
Issue 1:
df1 = pd.DataFrame([[1, 1]], columns=['x','x'])
df2 = pd.DataFrame([[1, 1]], columns=['x','y'])
pd.merge(df1, df2, on='x')

Results in:

Traceback (most recent call last):
File "test.py", line 5, in <module>
m = pd.merge(df1, df2, on='x')
File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 35, in merge
return op.get_result()
File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 196, in get_result
join_index, left_indexer, right_indexer = self._get_join_info()
File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 324, in _get_join_info
sort=self.sort, how=self.how)
File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 516, in _get_join_indexers
llab, rlab, shape = map(list, zip( * map(fkeys, left_keys, right_keys)))
File "/usr/lib/python3/dist-packages/pandas/tools/merge.py", line 681, in _factorize_keys
llab = rizer.factorize(lk)
File "pandas/hashtable.pyx", line 850, in pandas.hashtable.Int64Factorizer.factorize (pandas/hashtable.c:15601)
ValueError: Buffer has wrong number of dimensions (expected 1, got 2)

See #11754

Issue 2:
Fitting a linear model to Timestamps currently does not work out of the box.

and pandas does not support the ols function any further. When using e.g. seaborn to make a fit it throws an error.

TypeError: reduction operation 'mean' not allowed for this dtype

I wonder whether the dtype can be change so that mean is supported? And whether this would make it compatible with other packages, such as scikit-learn, seaborn, etc. Also, the mean of some dates could be useful for other use cases. It does make sense to calculate the mean of some dates doesn't it?
Issue 1:
There is an asymmetry to EnterLeave event plugin. Since mouseenter is created from the relativeTarget of the mouseout event it fires even though the target is disabled. Since the mouseleave is the inverse, i.e requires that the disabled element fire a mouseout, it doesn't fire a mouseleave for the disabled element.

I am pretty sure the correct behavior here is that neither event should fire if its target is disabled, since this mirrors mouseout. No idea if none-chrome browsers have the same behavior for which mouse events fire on disabled elements.

Additional caveat I just realized, React is probably also not firing mousenter events in the case where the mouse leaves a disabled element into a non disabled element

Issue 2:
I'm experiencing an unexpected error related to "native" DOM events created in an "owner" component and triggered by DOM elements rendered by "owned" components. There's been a number of seemingly related issues, the closest being #3790 - but this might be a different edge case so I thought I'd create a new issue for it.

Reproduction

I've tried to whittle this down as much as possible:

(The JSFiddle is using 0.13.3, but I get the same error using 0.14.0-beta1)

https://jsfiddle.net/dmininger/8rdqhnox/

Steps

Click "Go to Two"

Click "Go to One"

Click "Go to Two"

The second time component Two is rendered React throws Invariant Violation: ReactMount: Two valid but unequal nodes with the same data-reactid``

Notes

As I was trying to narrow down the cause, I found that under the following scenarios no error will be thrown:

An onClick prop with an empty function (onClick: function(){}) is added to the "a" element in component One. See https://jsfiddle.net/dmininger/kx98qfd2/

The "input" element in component Two is removed (leaving the "form" element). See https://jsfiddle.net/dmininger/snjb8ysq/

The return value of the render methods of components One and Two are inlined in the render method of the Main component (i.e. everything is rendered by a single component). See https://jsfiddle.net/dmininger/3majxxL0/

ONLY WHEN USING 0.14.0-beta1: The "form" element in component Two is removed (leaving the "input" element). (Sorry, no fiddle, is 0.14.0-beta1 on a CDN?) This still throws in 0.13.3.

Thanks!
Issue 1:
There are several cases where one property is only required depending on some other properties. It's not possible to use the expression validator in such cases.

public function validate($value, Constraint $constraint)
{
if (null === $value || '' === $value) {
return;
}
// ....
}

Example: I have a state property which is only required if my country property has states.

<property name="state">
<constraint name="Expression">
<option name="expression">
!this.getCountry().hasStates() or null !== value
</option>
<option name="message">
Please select a state
</option>
</constraint>
</property>

If the state is null, it should raise an error but this will never happen due to the first condition of the validate method.

Issue 2:
Empty properties are not validated by default:

class ExpressionValidator extends ConstraintValidator
public function validate($value, Constraint $constraint)

if (null === $value || '' === $value) {
return;
}

it has sense for serveral validators (Issn, Data, etc), but in case of Expression validator it makes it impossible to use for following case "if other value is provided then this one cannot be empty".

Dummy example:

class Dog
{
/**
* @Assert\NotBlank()
*/
private $age;

/**
* @Assert\Expression("this.getAge() > 10 ? true : this.getName() != '' ", message="Dog name is required when dog is older then 10 years")
*/
private $name;

So is it bug or feature ;) ?
Issue 1:
expvar$ go test -cpu=1,2
2012/06/08 23:38:31 Reuse of exported var name: requests
panic: Reuse of exported var name: requests
[recovered]
panic: Reuse of exported var name: requests

parser$ go test -cpu=1,2
panic: testdata/commas.src used multiple times [recovered]
panic: testdata/commas.src used multiple times

exp/locale/collate/build$ go test -cpu=1,2
--- FAIL: TestConvertLarge-2 (0.00 seconds)
builder_test.go:83: 1: unexpected error: found primary weight 4F4F2; should be <= 0xFFFF
builder_test.go:86: 1: conversion was [[4f4f2 20 2 2f9b2] [f9b2 0 0 2f9b2]]; want [[4f4f2 20 2 2f9b2]]
builder_test.go:83: 4: unexpected error: found primary weight 15FB3F; should be <= 0xFFFF
builder_test.go:83: 5: unexpected error: found primary weight 15FB40; should be <= 0xFFFF

flag$ go test -cpu=1,2
--- FAIL: TestEverything-2 (0.00 seconds)
flag_test.go:58: VisitAll misses some flags
flag_test.go:83: Visit fails after set

net/http$ go test -cpu=1,2

--- FAIL: TestResponseWrite-2 (0.00 seconds)
responsewrite_test.go:100: error writing #0: http: Request.ContentLength=6 with Body length 0
responsewrite_test.go:105: Test 1, expecting:
"HTTP/1.0 200 OK\r\n\r\nabcdef"
Got:
"HTTP/1.0 200 OK\r\n\r\n"
responsewrite_test.go:105: Test 2, expecting:
"HTTP/1.1 200 OK\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\n6\r\nabcdef\r\n0\r\n\r\n"
Got:
"HTTP/1.1 200 OK\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\n0\r\n\r\n"
panic: http: multiple registrations for / [recovered]
panic: http: multiple registrations for /

net/smtp$ go test -cpu=1,2
--- FAIL: TestBasic-2 (0.00 seconds)
smtp_test.go:92: Expected AUTH supported

Issue 2:
Unlink Linux, BSD variants may change their kernel ABIs between major releases as reported in #7849. To follow the circumstances with minimal maintenance cost, I'd like to propose having an internal package that provides routing message/socket parsers.

Exposed APIs:

ABI agnostic routing message/socket types

Routing message/socket parsers

Destination address prefix lookup for helping address selection in net.Dialer

It's also fine vendoring "internal/x/golang.org/x/net/internal/route " if possible.
Issue 1:
Usage of the withStyles()-function enforces setting the classes property.

TS doesn't seem to split WithStyles<ClassKey> from P. This could be seen as a typescript-fault, but I think it can easily be fixed within the type definition.

export default function withStyles<ClassKey extends string>(
style: StyleRules<ClassKey> | StyleRulesCallback<ClassKey>,
options?: WithStylesOptions,
): <P>(
component: React.ComponentType<P & WithStyles<ClassKey>>,
) => React.ComponentType<P & StyledComponentProps<ClassKey>>;

One could replace

<P>(
component: React.ComponentType<P & WithStyles<ClassKey>>,
) => React.ComponentType<P & StyledComponentProps<ClassKey>>;

with

import { Omit } from 'material-ui/index';

<P extends WithStyles<ClassKey>>(
component: React.ComponentType<P>
) => React.ComponentType<Omit<P, keyof WithStyles>> & StyledComponentProps<ClassKey>;

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

Expected Behavior

Compile without error

Current Behavior

(55,17): error TS2322: Type '{}' is not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes<Component<{ classes: any; } & StyledComponentProp...'.

Type '{}' is not assignable to type 'IntrinsicAttributes & { classes: any; } & StyledComponentProps & { children?: ReactNode; }'.

Type '{}' is not assignable to type '{ classes: any; }'.

Property 'classes' is missing in type '{}'.

Steps to Reproduce (for bugs)

const Test = withStyles({})((props: { classes: any }) => <div/>);
const App = () => <Test />

Your Environment

Tech
Version

Material-UI
1.0.0-beta.30

React
16.2.0

browser
none / compile-error

typescript
2.6.2

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

I did find this: #6520 which made me believe this should partly be solved.

Expected Behavior

Current versions of material ui should install in current versions of react without warnings

Current Behavior

Run npm i and see:

npm WARN recompose@0.24.0 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-event-listener@0.4.5 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group@1.2.0 requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group@1.2.0 requires a peer of react-dom@^15.0.0 but none is installed. You must install peer dependencies yourself.

Check where this comes from:

PS C:\Users\alex\apf2> npm list react-event-listener
apf2@0.1.0 C:\Users\alex\apf2
`-- material-ui@0.19.3
`-- react-event-listener@0.4.5

PS C:\Users\alex\apf2> npm list recompose
apf2@0.1.0 C:\Users\alex\apf2
`-- material-ui@0.19.3
`-- recompose@0.24.0

PS C:\Users\alex\apf2> npm list react-transition-group
apf2@0.1.0 C:\Users\alex\apf2
`-- material-ui@0.19.3
`-- react-transition-group@1.2.0

Steps to Reproduce (for bugs)

install react and react-dom v16.0.0

install material-ui v0.19.3

run npm i
Issue 1:
🐛 Bug

To Reproduce

Steps to reproduce the behavior:

1.clone the source pytorch and success build from source

1.load libtorch

1.compile failed

Expected behavior

When load torch lib with QTCreator in Window 10,compile failed:

error LNK2019: unresolved external symbol "public: long * __cdecl at::Tensor::data(void)const " (??$data@J@Tensor@at@@QEBAPEAJXZ) referenced in function "public: class at::TensorAccessor<long,1,struct at::DefaultPtrTraits,__int64> __cdecl at::Tensor::accessor<long,1>(void)const & " (??$accessor@J$00@Tensor@at@@QEGBA?AV?$TensorAccessor@J$00UDefaultPtrTraits@at@@_J@1@XZ)

my .pro:

INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include

INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include/torch

INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include/torch/csrc/api/include

INCLUDEPATH += D:/app/conda/envs/pytorch/Lib/site-packages/torch/include/ATen

LIBS += -LD:/app/conda/envs/pytorch/Lib/site-packages/torch/lib

-lc10 -lc10_cuda -ltorch -ltorch_python -l_C

-lcaffe2_detectron_ops_gpu -lcaffe2_module_test_dynamic

-lfoxi_dummy -lonnxifi_dummy -lonnxifi_loader -lfoxi_loader -lonnx -lonnx_proto

-lshm -lcaffe2_observers -lcaffe2_detectron_ops_gpu -lcaffe2_nvrtc

-lcaffe2 -lcaffe2_gpu -lclog -lcpuinfo

-lcaffe2_module_test_dynamic -lthnvrtc -llibprotoc -llibprotobuf -llibprotobuf-lite

Environment

Please copy and paste the output from our

environment collection script

(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

PyTorch Version (e.g., 1.0): PyTorch 1.2.0a0+b1bf16e

OS (e.g., Linux): Window10

How you installed PyTorch (conda, pip, source): source

Build command you used (if compiling from source): python setup.py install

Python version: Python 3.6.8

CUDA/cuDNN version: CUDA 9.0/cuDnn 7.5

GPU models and configuration:

Any other relevant information:

Additional context

Issue 2:
I AM trying to execute buid_and_install.sh from github https://github.com/sshaoshuai/PointRCNN on windows10, pytorch 1.1, gcc 8.1.0, VS2017

the second task, iou3d.

I met problem of unresolved external symbol, "public: long * __cdecl at::Tensor::data(void)const "

ALL THESE libs have been found, cudart.lib c10.lib c10_cuda.lib caffe2.lib torch.lib torch_python.lib caffe2_gpu.lib _C.lib, but I think I DO miss one lib, according to the problem.

is it possible that the author use pytorch 1.0?

and I have read quite a lot issue with error LNK2001, BUT no idea how to solve mine

plz, help...
Issue 1:
allow to assign shortcut or key to a string

It would be nice to improve keyboard manager to allow us to assign a shortcut/key to a string.

An exemple of problem it can solve : for markdown stuff, we have to use often tree backticks. It's not a problem on english qwerty keyboard, but for french azerty keyboard (and probably other non english keyboards), it's a real pain.

We have to use [ALT GR] + [7] + then [space] ton generate a single backtick.

We have to use [ALT GR] + [7] +[ALTR GR] + [7] +[ALTR GR] + [7] + then [space] to generate three backticks.

So we could for example use [CTRL] + [7] to generate 3 backticks. And if I always write "Regards," at the end of my email, I could assign [CTRL]+[SHIFT]+[R] to the string "Regards," and save time.

I think that it's a simple way of working and can help in various situations and not only help frenchies developers with the three backticks markdown stuffs :-)

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

Issue 2:
I would like to use Keyboard Manager to map some shortcuts to keys that currently are accessible only from the "Windows Character Map" application. Specifically I would like to map AltGr + ' to ` and AltGr + ì to ~.

I know that the Keyboard Manager enables only to map to keyboard keys, but allowing also custom characters would be such a great feature for a programmer.
Issue 1:
Website or app

Please checkout the linked branch not main

https://github.com/eps1lon/react-devtools-repro-no-matching-node/tree/repro/elements-leaking

Repro steps and screen recording included in the repro

Repro steps

Clone repro

yarn

yarn start

Open app page

open devtools

Uncomment the useEffect block i.e. add an effect

inspect Component element

comment useEffect block i.e. remove the effect

Repeat comment/uncomment to see that children grow indefinitely

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

Could not inspect element with id 4

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

Might be a duplicate of #21436 (comment) since the repro steps are the same. But depending on what the effect is doing, the behavior is different.

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

how about an answer....

What is the current behavior?

40,0000 foot high level of frustration not relieved by reading over 100 different articles, doc articles, 4 pluralsight courses, stack overflow answers and many other useless leads.

**code provided

class firstComponent extends Component{
render(){
return(
<div>
<h1>my first component</h1>
<Button />
</div>
)
}
}
export default firstComponent;

class Button extends Component{
constructor(props){
super(props);
console.log('handleClick');
this.state = {counter: 25};

}
handleClick(e){
e.preventDefault();
console.log('Button:handleClick');
this.state = {counter: 10}; THIS DOESN'T WORK '
}
render(){
// console.log(this.state.counter);
var counter = 15;
return (
<div>
<h1>Button: component</h1>
<h1>{this.props.counter}</h1>
<button onClick={this.handleClick}>{this.state.counter}</button> this crap doesn't work either.'

<h1>{this.props.counter}</h1>
</div>
)
}
}

export default Button;

What is the expected behavior?

Something that works as good a plain HTML (maybe that's what I should be using.

**React v15, chrome browser, edge, FF / Windows 10

This works in previous versions of React using the var foo = React.createClass({})** but have not been able to get to work with the new class version and I can't find ANY examples that work and have been trying for well over a week. I need to start migrating some react modules from v0.13 to v15 but this is telling me I should give up and move on...

React may be fast but it's a PITA to start with and to update your knowledge and the glorified DOCS don't help
Issue 1:
It follows #12099.

This matcher is IMO really dirty.

It searches for routes with a whole bunch of methods, hosts and all, and even if each route is different in its requirements, we know that there are a "fix" amount of requirement types which can all have their own "priority", each with a wildcard * to allow non-required elements.

Here is an example of a priority usage (all beginning with wilcard check, and after that, specific check):

host

prefix

methods

requirements

This may creates a few duplicates for multiple methods, but it may get rid of these old and dirty goto inside the matcher for example. The best point IMO is that it would really more "flatten" the matcher.

I don't know if this issue is relevant enough for Symfony, but feel free to close it if it really does not suit :)

Issue 2:
Currently, decorating event listeners (kernel.event_listener) makes the decorated service private:

https://github.com/symfony/dependency-injection/blob/5d4f4ff02a3a5b24a7c81bb7e22f2e57c7526ee2/Compiler/DecoratorServicePass.php#L47-L58

resulting in an exception being thrown here:

symfony/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php

Lines 61 to 63
in
94078a0

if (!$def->isPublic()) {

throw new \InvalidArgumentException(sprintf('The service "%s" must be public as event listeners are lazy-loaded.', $id));

}

This makes it impossible to decorate event listeners. (Also, I can't find any tests of decorating event listeners. Are there any?)
Issue 1:
When I update, I'd expect my tab state to be saved so that when it restarted, the tabs that were open are reopened.

When that failed, I'd expect to be able to open the last item. The menu item was available, but when I tried, it simply opened a blank editor window.

Issue 2:
A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.

This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.

It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.
Issue 1:
Describe the bug

applying a query string parameter ("onlyApproved=true" in this instance), is throwing URL contains XSS injection attempt.

To Reproduce

perform an axios.get request (not tried any other methods) with any query string parameter beginning with on.

https://randomdomain.com/api/endpoint?onlyRandomThings=true

Expected behavior

This should not be caught as valid XSS.

Environment:

Axios Version [0.19.1]

OS: [Windows 10 Professional]

Browser [all]

Browser Version [all]

Additional Library Versions [React 16.12]

Issue 2:
It seems that axios v0.19.1 introduced a new bug.

The bug comes from #2464

All urls containing javascriptkeyword is throwing XSS error. So, all following urls cannot be used in axios any more:

https://www.javascript.com

https://stackoverflow.com/questions/tagged/javascript

https://www.google.com/search?q=javascript

Here is a link to regexp: https://regexr.com/4rsst

Expected behavior: axios should accept javascript in urls