WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
trait Bound where u8: Into<Self> {}

// u8: Into<Self> is enforced here:
// error: the trait `core::convert::From<u8>` is not implemented for the type `u16` [E0277]
impl Bound for u16 {}
// ^~~~~~~~~~~~~~~~~~

fn test<B: Bound>() -> B {
// but the compiler seems to be unaware of it here:
// error: the trait `core::convert::From<u8>` is not implemented for the type `B` [E0277]
0u8.into()
// ^~~~~~
}

As you can see, the compiler enforces the bound in the traits where clause when implementing the trait, but seems to be unaware of it when the trait is used itself as a bound.

I don't know if the traits where clause should be valid or not, however if it is valid, the compiler should be aware of the additional information provided by it.

At least if I haven't completely misunderstood something.

Issue 2:
The following example:

trait Foo<T> {
fn foo(&self) -> &T;
}

trait Bar<A> where A: Foo<Self> {}

fn foobar<A, B: Bar<A>>(a: &A) -> &B {
a.foo()
}

fails with "error: type &A does not implement any method in scope named foo".

This UFCS variant

trait Foo<T> {
fn foo(&self) -> &T;
}

trait Bar<A> where A: Foo<Self> {}

fn foobar<A, B: Bar<A>>(a: &A) -> &B {
Foo::foo(a)
}

fails with "error: the trait Foo<_> is not implemented for the type A".
Issue 1:
WARNING Compiled with 1 warnings 20:40:39

warning in ./node_modules/try-prop-types/index.js

4:11-24 Critical dependency: the request of a dependency is an expression

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

Expected Behavior

Current Behavior

error is referencing this line in the refnux package

Steps to Reproduce (for bugs)

npm install

npm run dev

open http://localhost:3000/page1

Context

Your Environment

Tech
Version

next
"next": "latest",

node
v8.9.1

OS
macOS, sierra

browser
firefox

etc

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

In my project using next.js, I was trying to make carousel for mobile.

But for some reason, setTimeout / setInterval in event handler doesn't work correctly.

Timer takes few seconds even if set 100ms.

This is affect ONLY for Android Chrome. iOS Safari and Chrome work fine.

Here is my sample component code.

handler is called right after touchend, but the code inside setTimeout run after few seconds.

This component works fine in the project by using create-react-app .

import React from 'react';

class Scroller extends React.Component {
constructor(props) {
super(props);
this.state = {
scrolled: [],
};
this.handler = this.handler.bind(this);
}
handler(e) {
setTimeout(() => {
this.setState({
scrolled: [...this.state.scrolled, 'yes'],
});
}, 100);
}
render() {
return (<div>
<style jsx>{`
.scroller {
width: 300px;
overflow-x: auto;
white-space: nowrap;
}
.box {
display: inline-block;
margin: 0 15px;
width: 100px;
height: 100px;
line-height: 100px;
text-align: center;
border: 1px solid #ccc;
}
`}</style>
<div
className="scroller"
onTouchEnd={this.handler}
>
{[1,2,3,4,5,6,7,8,9,10].map(key => (
<div className="box" key={key}>{key}</div>
))}
</div>
<ul>
{this.state.scrolled.map((str, i) => (
<li key={i}>{str}</li>
))}
</ul>
</div>)
}
}
export default Scroller;

Your Environment

Tech
Version

next
3.2.2

node
8.4.0

OS
MacOS 10.12.6

browser
Android Chrome
Issue 1:
http://twitter.github.com/bootstrap/scaffolding.html#fluidGridSystem

"Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column."

The example provided in the docs uses 12 as the number of columns in the top level, but that can lead to confusion because the number of nested columns actually does match up to the parents number of columns. A better example would be to use 10 as the number of top level columns, and then a pair of size 6 nested columns.

Issue 2:
Window load doesn't allow for use of the data API when affix has been loaded asynchronously, as it will have missed the window load event. Also, by switching to document ready the affix data API now follows the paradigm set by the other bootstrap plugins
Issue 1:
logabsdet(x::Real) throws an error, while log(abs(det(x::Real))) happily returns log(abs(x)). Is this intentional?

Issue 2:
Similar to #42909, I suggest extending logabsdet and factorize for Number types. This would be in line with the existing philosophy of extending linear algebra functions to numbers, like det or adjoint - and simplify code I am working on.
Issue 1:
It's possible to make segment merging more in-memory and reduce the time needed for segment merging by 50%, but it doesn't work (failing with OOM errors) when v8 segment format is build first, and then converted to v9.

I don't see a way to keep the ability to merge segments in v8 format and make the improvement without massive code duplication (because v8 and v9 use the same classes on certain level).

If we remove ability to build v8, on the contrary, some code could be removed. But not all v8-related, because segments in this format should be still readable.

Issue 2:
Affected Version

The master branch

Description

#10843 added support for segment granularity for auto compaction. This change can make auto compaction to fail in finding candidate segments for compaction when those segments have mixed versions, especially when you change segment granularity from something small to something large. When you change segment granularity, auto compaction internally creates another timeline which is populated based on the new segment granularity. Here is a code snippet of how we populate the new timeline.

DataSegment segmentsForCompact = segment.withShardSpec(new NumberedShardSpec(partitionNum, partitions));
// PartitionHolder can only holds chunks of one partition space
// However, partition in the new timeline (timelineWithConfiguredSegmentGranularity) can be hold multiple
// partitions of the original timeline (when the new segmentGranularity is larger than the original
// segmentGranularity). Hence, we group all the segments of the original timeline into intervals bucket
// by the new configuredSegmentGranularity. We then convert each segment into a new partition space so that
// there is no duplicate partitionNum across all segments of each new Interval. We will have to save the
// original ShardSpec to convert the segment back when returning from the iterator.
originalShardSpecs.put(new Pair<>(interval, segmentsForCompact.getId()), segment.getShardSpec());
timelineWithConfiguredSegmentGranularity.add(
interval,
segmentsForCompact.getVersion(),
NumberedPartitionChunk.make(partitionNum, partitions, segmentsForCompact)
);

As shown in the snippet, we use the segment version directly when populating the new timeline. Since the interval in the snippet is a time chunk based on new segment granularity, those segments of mixed versions can be added into the same time chunk in the new timeline. Finally, we replace the shardSpec of those segments with a new one that has partitions of the number of segments in the new time chunk. As a result, all those segments of mixed versions will not be visible since there will be always less number of non-overshadowed segments than partitions in that time chunk.
Issue 1:
Add possibility to cancel a search request in ES.

When a request is sent from a web site and the end-user decide to go to another page, we will like to have the possibility to stop the current search .

Issue 2:
Currently service.bat and elasticsearch.bat duplicate the code required to trigger the variable and classpath initialization on windows. In a similar vein to elasticsearch.in.sh, a common file between the two would simplify the maintenance of the two going forward.
Issue 1:
📝 Provide a description of the new feature

An option in the settings that would make it so when a user clicks full screen on a video that video will only be full screen within its current zone/area.

What is the expected behavior of the proposed feature? What is the scenario this would be used?

If a user has the monitor divided into two equal zones, with a video on the left and another application on the right, when the video is made 'Fullscreen' it will only go full screen within its zone, leaving the application on the right visible and useable.

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

Issue 2:
Maximize window within the zone

Maximizing the window currently maximizing it to the whole desktop. It would be useful if it has the ability to maximize within the zone
Issue 1:
The refractionRatio has no effect on MeshPhysicalMaterial

In threejs example https://threejs.org/examples/?q=refract#webgl_materials_cubemap_refraction

replace line 81,82 and 83 with the following:

var cubeMaterial3 = new THREE.MeshPhysicalMaterial( {color: 0xccddff,envMap: textureCube, refractionRatio: 0.90,reflectivity: 0.1,transparent : true,opacity : 0.2,} );
var cubeMaterial2 = new THREE.MeshPhysicalMaterial( { color: 0xccfffd, envMap: textureCube, refractionRatio: 0.985, transparent : true,opacity : 0.2 } );
var cubeMaterial1 = new THREE.MeshPhongMaterial( { color: 0xffffff, envMap: textureCube, refractionRatio: 0.98 } );

and you will see only the middle model showing refraction effect:

Three.js version

Dev

[x ] r111

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Issue 2:
Description of the problem

In the webgl_materials_cubemap_refraction example, I tried to change the materials from MeshPhong to MeshStandard, and the refraction effect was gone (the statue on the left still uses the MeshPhongMaterial, the other two use a MeshStandardMaterial):

Is there something I am missing to enable refraction? from the documentation, it doesn't look so.

Three.js version

r92

Browser

Chrome

Safari

OS

macOS
Issue 1:
Hi,

this kind of graphical glitches open very often when opening folders in the file selector, is there already an issue for these?

Thanks!

OS X 10.10.2, Atom 0.179, MacBookPro Retina display.

Issue 2:
Most noticeable in the tree view, resizing it, scrolling, etc. makes it redraw and go away.

/cc @zcbenz Any ideas on this one?
Issue 1:
Apache Airflow version

2.3.3 (latest released)

What happened

Testing airflow docker installation, checking correct dir mapping by copying one of the default dags into the ./dags folder.

The new dag is not added as a duplicate because duplication is detected, but the addition fails silently in the web UI while in command line tool the error Error: Failed to load all files. For details, run airflow dags list-import-errors is presented.

What you think should happen instead

As the cli warns about the error, the web UI should warn about the duplication occurence.

How to reproduce

Copy a default dag into the mapped ./dags of a docker-compose install.

Operating System

manjaro linux

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else

Evvverytime a good soul tries to test the docker-compse deployment :D

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:
Apache Airflow version

2.5.3

What happened

I upgraded my airflow cluster from 2.5.2 to 2.5.3 , after which strange things started happening.

I'm currently using a standalone dagProcessor, and the parsing time that used to take about 2 seconds has suddenly increased to about 10 seconds.

I'm thinking it's weird because I haven't made any changes other than a version up, but is there something I can look into? Thanks in advance! 🙇🏼

What you think should happen instead

I believe that the time it takes to parse a Dag should be constant, or at least have some variability, but shouldn't take as long as it does now.

How to reproduce

If you cherrypick this commit into 2.5.2 stable code, the issue will recur.

Operating System

Debian GNU/Linux 11 (bullseye)

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

Kubernetes 1.21 Cluster

1.7.0 helm chart

standalone dag processor

using kubernetes executor

using mysql database

Anything else

This issue still persists, and restarting the Dag Processor has not resolved the issue.

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 1:
I am trying to use ansible, unfortunately It does not work with my list of hosts defined in .ssh/config.

In paramiko mode - my hosts are throwing "Name of service not known" - my /etc/ansible/hosts file refers to aliases defined in .ssh/config.

In -c ssh - it tries connect to default 22 port, instead of the ones defines in .ssh/config

Issue 2:
ISSUE TYPE

Bug Report

ANSIBLE VERSION

ansible 2.1.0.0.

CONFIGURATION

OS / ENVIRONMENT

N/A

SUMMARY

I recently upgraded to ansible 2.1 from 1.9.1 in our development environment. I use virtualenv to install ansible 2.1 using pip. Recently while running the playbook, I got this error:

fatal: [xxxxx-dev.com]: FAILED! => {"changed": false, "failed": true, "msg": "unsupported parameter for module: gather_subset"}

I see that in Ansible 2.1, they have added a new capability to gather limited facts about hosts but by default it sets gather_subset to all. Thus, I have not set this value in my config file and expect it to default to all.

This failure is happening intermittently. I also read here that if ansible is installed separately through apt as well, it may cause issues but since I'm using venv, I'd assume that it will be forced to use version 2.1. Any help is appreciated.

STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS
Issue 1:
Is the project dead? Are new maintainers sought?

97 open pull requests

411 open issues

Issue 2:
Describe the issue

Since axios@0.20.0-0 the url config parameter has stopped merging the default instance value if one exists. This question is similar to #3491 that was auto-closed.

It looks like duplication of the url key was addressed in this comment, PR #2844, and 24b8ce3

I am wondering if this change had an unintended side effect of not using the instance value if the passed in config does not contain a url key.

I believe that removing url from valueFromConfig2Keys and adding it to defaultToConfig2Keys in mergeConfig.js would solve this and not reintroduce the duplication mentioned before, but I'm not sure if that would have other unintended consequences.

Example Code

const instance = axios.create({ url: 'https://someexample.com' });

instance.request({ method: 'GET', params: { foo: 'bar' } }); // after merge occurs, this config will not have a url key

Expected behavior, if applicable

The url should default to the passed in value, if one exists. If not, then the default should come from the instance's config.

Environment

Axios Version [^0.20.0-0]

Adapter [core]

Browser [N/A]

Browser Version [N/A]

Node.js Version [N/A]

OS: [N/A]

Additional Library Versions [N/A]

Additional context/Screenshots

Having to pass a url to instance.request() may be the desired behavior, but I wasn't sure where else to ask

Merging of url currently happens here

When url is not present, none of the other merges can add a url value from another config.

Moving url key to defaultToConfig2Keys should grab the value from the passed in config (current behavior) and merge from the default config when not found (past behavior) here
Issue 1:
Hey,

I'm trying to create simple html page, that use iframe with link from superset.

In this dashboard , there are 2 echarts:

1 Timeseries - MarkDown element with iframe

1 Big Number -Markdown Element with iframe

Print from superset:

Print from my created page, that contain a iframe with url dashboard:

I don't know how this happen, one iframe work's and the other have the error: "Unexpected token < in JSON at position 0"

In devtools from chrome, i have this result:

At the moment in file config.py, I have wtf_crsf_enable = true(default), and use this cors configuration:

CORS Options

ENABLE_CORS = True

CORS_OPTIONS: Dict[Any, Any] = {}

#I add my domain to list SUPERSET_WEBSERVER_DOMAINS, example:

SUPERSET_WEBSERVER_DOMAINS = {"domain1","domain2","domain3"}

My config.py: config.py.txt

I think this is the most important changes that I did, but it's not enought... if any one can help me, I would appreciate it

Best regards

Issue 2:
use case is to embed superset dasboards in a web application as iframe but while doing so on some visualization getting Unexpected token < in JSON at position 0 error.

normally in superset application same dashboard is working fine but while sahring as iframe only this issue is coming.

superset version 1.32

html page content for testing:

<iframe name="iframe1" src="https://xxxxxxxxxxx-
![supersetiframeerror](https://user-images.githubusercontent.com/48901138/150507033-1e215d15-2824-41f8-9e61-6e7834add800.JPG)
superset.ad.infosys.com/superset/dashboard/13/" frameborder="0"
marginheight="0"
marginwidth="0"
width="100%"
height="100%"
scrolling="auto"></iframe>
Issue 1:
Clark Duplichien opened SPR-8178 and commented

When using RequestMapping annotated controller methods, you can only have have access to the handler method if you have an Errors object as one of the method arguments, and perform error handling within the method.

This is not ideal for use cases where you want to remove boiler plate code and delegate handling of BindExceptions, but need to have access to the method that (would have been) executed. For example, we have an annotation on the controller method indicating what view the bind errors should be displayed on when a BindExcpetion occurs.

Since the annotation is on the controller method, we're currently having to perform some ugly reflection in the HandlerExceptionResolver that handles the BindException in order to extract the controller method for the request from the HandlerAdapter.

It would be preferable if we could have one of:

The handler method that would have been called exposed in the BindException (or even a subclassed "HandlerMethodBindException" or the like for the case when it fails from HandlerMethodInvoker)

Or the handler method exposed to the HandlerExceptionResolver itself (Though admittedly have no idea how this would work).

Or a (thread-bound) accessor method on AnnotationMethodHandlerAdapter that would return the last resolved controller method.

Or a public method in AnnotationMethodHandlerAdapter that accepts Object handler and HttpServletRequest request, and returns the Method object for the request (what we're currently doing, just with reflection).

Affects: 3.0.3

Issue Links:

#12776 @ExceptionHandler doesn't handle exceptions from other controllers ("duplicates")

Referenced from: commits aa7a100, 5309e43, f752b47

1 votes, 3 watchers

Issue 2:
Eugen Paraschiv opened SPR-8124 and commented

The fact that a method annotated with @ExceptionHandler can only handle exceptions from the same controller is a restrictive issue. The better behavior would be if the annotated method would be able to handle all exceptions of that particular type, regardless of their source.

Issue Links:

#11937 @ResponseBody usage limitations ("duplicates")

#12829 Expose handler method when BindException is thrown from HandlerMethodInvoker ("is duplicated by")
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Upon first entering this page part of the code is missing at first. the top part p to Line 11 is present and everything past line 11 is missing . upon clicking in the actual black area in the page the code reappears. I was able to replicate this upon refreshing the page. additonally at the end of the page once done with the session and pressing CTRL +Enter. the pop up to get to the next page did not appear Upon refreshing this issue resolved itself so a screen capture was not made.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

When this page is first loaded, it only shows code up to line 11. The rest of the code shows up when the blank space below line 11 is clicked, or when the code area is scrolled.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When setting fullWidth on tabs i expected the tabs to use the fullWidth of their parent node.

Current Behavior

Currently the fullWidth property only resizes the listcontainer, not the contained buttons.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/vnqj0j71vy

Context

Similar to the sandbox above I want to display two tabs which use the full screen-width.

Your Environment

Tech
Version

Material-UI
beta.16

Issue 2:
I'm seeing this both in the docs and my own project. In Firefox, when you type something that matches any of the data, the input loses focus and you have to click it continue typing.

A good example of this is the floating label example in the docs. If you start typing "abc" it keeps focus, but type a "2" and you get the results and but lose focus.
Issue 1:
#12935 added full support for duplicate column names (in header or in names) by mangling them. While this has been considered acceptable by users, ideally, we would like to not have to mangle them.

Issue 2:
This works fine:

In [13]: df = pd.DataFrame(np.random.randn(300), columns=['a'])
In [14]: df['dtime'] = pd.DatetimeIndex(start='2014-01-01', freq='h', periods=300).time
In [15]: df.plot(x='dtime', y='a')
Out[15]: <matplotlib.axes._subplots.AxesSubplot at 0x118fd17f0>

This raises a KeyError

In [17]: df.plot(x='dtime', y='a', kind='scatter')

We call df._get_numeric_data() which excludes datetimes.

May happen for other kinds too.

I'll fix this; just have to decide how much refactoring.

Matplotlib is ok with datetime.time values, it chokes on datetime values.
Issue 1:
If you are ignoring a folder but are tracking one file in that folder, you cannot see that file in the tree view to edit it.

Issue 2:
Let's say I add the following rules to my .gitignore to ignore everything in the root except the wp-content directory:

/*
!.gitignore
!wp-content/

So far this works correctly (only .gitignore and wp-content/ are shown in the tree view). Now I add the following rules to ignore everything in the wp-content directory, except the plugins and themes directories

wp-content/*
!wp-content/plugins/
!wp-content/themes/

Before Atom 0.116.0, the plugins and themes directories were shown correctly in the tree view, but now the wp-content directory disappears completely. My machine's git (v2.0.0) parses the .gitignore correctly and sees changes in plugins and themes.

I see that 0.116.0 moved to libgit2 0.21.0. If this is what's causing this behavior I'll open an issue with them.
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.15.0

Expected results

Show the result of SQL

Actual results

(psycopg2.OperationalError) FATAL: database "public" does not exist

Steps to reproduce

access PostgreSQL through SQL Lab,

Issue 2:
I want to run my superset other than the root directory

currently its working on localhost:8080 I want to setup this localhost:8080/superset

Any Solution for this??