WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug summary

There are two problems here. They might be related so I put them both in the bug report.

1: I want to write $\sigma_{-}^{asdf}$ with asdf as superscript and - as subscript in the legend. When I use font size larger than 25, i.e. from 26 and upwards, the - sign disappears.

2: Also, when I write $\sigma_{-}$ the lowest part of the \sigma symbol does not show in the legend for font sizes larger than 23, i.e. from 24 and upwards.

Code for reproduction

import matplotlib.pyplot as plt
plt.rc('font', size=26) # set font size in plots

fig, ax = plt.subplots(figsize=(12, 12))

x = [1,2,3,4]
y = [1,2,3,4]

ax.plot(x, y, label=r'$\sigma^{asdf}$')
ax.plot(x, y, label=r'$\sigma_{-}$')
ax.plot(x, y, label=r'$\sigma_{-}^{asdf}$')
ax.plot(x, y, label=r'$\sigma_{+}^{asdf}$')
ax.legend()
plt.show()

Actual outcome

Expected outcome

Both superscript and - subscript shows for larger font sizes (up to a sensible value).

Entire math symbol shows for larger font sizes (up to a sensible value).

Additional information

No response

Operating system

Windows 10

Matplotlib Version

3.4.3

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

3.8.12

Jupyter version

6.4.6

Installation

conda

Issue 2:
Bug report

Bug summary

When using the star (*) symbol in a text box, it cuts off the bottom of the text when saved (savefig). This is only the case when usetex=False in rcParams.

Code for reproduction

import matplotlib
import matplotlib.pyplot as plt

from matplotlib import rc
rc('text', usetex=False)

fig, ax = plt.subplots(1,1)
ax.text(0.5, 0.5, '$S_{*} M^{ath}$ and some not math',
transform=ax.transAxes)
plt.savefig('test1.png', bbox_inches='tight')

You can see the bottom of the text box is cut off. Whereas this plots fine:

fig, ax = plt.subplots(1,1)
ax.text(0.5, 0.5, '$S_{ome} M^{ath}$ and some not math',
transform=ax.transAxes)
plt.savefig('test1.png', bbox_inches='tight')

Matplotlib version

Operating system: Unix

Matplotlib version: 3.1.1

Matplotlib backend (print(matplotlib.get_backend())): TkAgg

Python version: Python 3.6.8 (default, Apr 25 2019, 21:02:35)

matplotlib installed from pip

Other libraries:

cycler==0.10.0

kiwisolver==1.1.0

numpy==1.17.2

pyparsing==2.4.2

python-dateutil==2.8.0

six==1.12.0
Issue 1:
Default text cursor is too short (at least on iOS). See images.

Flutter:

Other iOS apps:

[✓] Flutter (Channel master, v0.5.9-pre.60, on Mac OS X 10.13.5 17F77, locale en-US)
• Flutter version 0.5.9-pre.60 at /Users/vik/Projects/flutter
• Framework revision 26ba937846 (3 hours ago), 2018-08-16 13:59:27 +0200
• Engine revision e3687f70c7
• Dart version 2.1.0-dev.0.0.flutter-be6309690f

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/vik/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
✗ Android license status unknown.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio - old.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.2.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25

[✓] Connected devices (1 available)
• iPhone SE • 8D312AD9-51E0-4381-A2AF-FC2E997E5EBD • ios • iOS 11.4 (simulator)

! Doctor found issues in 1 category.

Issue 2:
We list our fonts in flutter.yaml under a fonts section. However, we're also required to list the font file under the assets section of that file. This is duplicate information.

Can we require the user to add the font file once , under fonts, and omit the declaration under assets ?
Issue 1:
Maybe it does not cover main idea of 6to5 compiler, but it will be great if we will have ability to specify for which environment we wrote our application.

For example, I wrote some modern application of latest version of Firefox and Google Chrome, but according this table http://kangax.github.io/compat-table/es6/, we actually have native support for a lot of things from ES6 in these browsers.

This means that it is not necessary to compile a lot of things into ES5.

I like approach from autoprefixer

where we can configure our build like last 2 versions or > 5%.

Issue 2:
Possibly through a blacklistUserAgent option or something. Would use the kangax compat-table. Important to note that it does not guarantee complete spec compliancy on the vendors end.

References:

https://github.com/kangax/compat-table

https://github.com/Fyrd/caniuse

https://github.com/3rd-Eden/useragent
Issue 1:
Currently there are MuiCardHeader and MuiCardContent stylesheets available for overrides, there is not MuiCard though. I need to globally override Card top and bottom margins.

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

Expected Behavior

import { createMuiTheme } from 'material-ui/styles';

const defaultTheme = createMuiTheme();

export const createTheme = () => {
return createMuiTheme({
overrides: {
MuiCard {
root: {
marginTop: 2 * defaultTheme.spacing.unit,
marginBottom: 2 * defaultTheme.spacing.unit,
},
},
},
});
};

Current Behavior

Currently, this is how I have to do it.

import { createMuiTheme } from 'material-ui/styles';

const defaultTheme = createMuiTheme();

export const createTheme = () => {
return createMuiTheme({
overrides: {
MuiCardHeader: {
root: {
marginTop: 2 * defaultTheme.spacing.unit,
},
},
MuiCardContent: {
root: {
marginBottom: 2 * defaultTheme.spacing.unit,
},
},
},
});
};

Btw, pls notice that I use createMuiTheme twice, 1st is to get defaultTheme.spacing.unit to keep everything DRY. Is there any way to get theme defaults without line const defaultTheme = createMuiTheme()? If this is not possible and you think this could be added potentially, I could create a separate issue for this.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.31

React
16.2.0

browser
any

Issue 2:
FontIcon inside an IconButton loose is color from props

In material-ui.alpha.1 when you put a FontIcon with color props inside an IconButton the prop will not work.

I think is related to this commit a99451a

Before styles was merged like that:

this.mergeStyles({styles.root, style, { color: this.state.hovered ? onColor : offColor })

And now it is:

Object.assign({styles.root, style})

Versions

Material-UI: v0.15.0-alpha.1

React: 0.14.7

Browser: chrome 48.0.2564.116
Issue 1:
Summary.

Python 3.7.0b3 has a new warning:

.../python3.7/site-packages/requests/models.py:177: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
if isinstance(hook, collections.Callable):

Expected Result

Need to change this line (and other references) to if isinstance(hook, collections.abc.Callable):

What you expected.

Actual Result

What happened instead.

Reproduction Steps

import requests

System Information

$ python -m requests.help

{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.6"
},
"implementation": {
"name": "CPython",
"version": "3.7.0b3"
},
"platform": {
"release": "16.7.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.18.4"
},
"system_ssl": {
"version": "1010007f"
},
"urllib3": {
"version": "1.22"
},
"using_pyopenssl": false
}

This command is only available on Requests v2.16.4 and greater. Otherwise,

please provide some basic information about your system (Python version,

operating system, &c).

Issue 2:
~/requests/models.py:170: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

if isinstance(hook, collections.Callable):

I created a venv in Python 3.7 and got the warning when using pip.
Issue 1:
Using commit 7fbbfe6 I am experiencing this failure during make check:

metrics saved to: tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-std-metrics.json
failures:

---- io::process::tests::test_override_env::green stdout ----
task 'io::process::tests::test_override_env::green' failed at 'called `Result::unwrap()` on an `Err` value: no such file or directory (no such file or directory)', /tmp/nix-build-rustc-0.12.0-pre-7fbbfe6bf.drv-0/git-export/src/libcore/result.rs:808

---- io::process::tests::test_override_env::native stdout ----
task 'io::process::tests::test_override_env::native' failed at 'receiving on a closed channel', /tmp/nix-build-rustc-0.12.0-pre-7fbbfe6bf.drv-0/git-export/src/libsync/comm/mod.rs:837

failures:
io::process::tests::test_override_env::green
io::process::tests::test_override_env::native

test result: FAILED. 833 passed; 2 failed; 63 ignored; 0 measured

task '<main>' failed at 'Some tests failed', /tmp/nix-build-rustc-0.12.0-pre-7fbbfe6bf.drv-0/git-export/src/libtest/lib.rs:243
make: *** [tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-std.ok] Error 101

Initially I thought it was because my OS (NixOS) did not install env in /usr/bin (in fact, /usr doesn't even exist, but env is in the PATH), but even then, that does not explain why other env tests succeed (such as test_add_to_env, which is almost exactly the same code as test_override_env).

However, if I copy/paste the code from the test into a new program and run it, it seems to work fine.

Furthermore, this exact make check failure seems to be repeatable, even after updating to a newer commit and compiling everything from scratch.

This seems quite mysterious to me... any ideas as to what the problem might be?

Issue 2:
It seems that #20692 is not only a case for duplicate error messages as shown by

fn main() {
let array = [1, 2, 3];
for a in array {
println!( "{}", a);
}
}

Which print the error 3 times.

It is the same as the other case about map

rust/src/librustc/middle/traits/object_safety.rs

Lines 78 to 85
in
7ae4a8e

pub fn object_safety_violations<'tcx>(tcx: &ty::ctxt<'tcx>,

trait_def_id: ast::DefId)

-> Vec<ObjectSafetyViolation<'tcx>>

{

traits::supertrait_def_ids(tcx, trait_def_id)

.flat_map(|def_id| object_safety_violations_for_trait(tcx, def_id).into_iter())

.collect()

}

originally spot at https://users.rust-lang.org/t/iterator-and-differences-between-array-and-array/2672

I think implementing distinctso that you can collect only the different items could be a good way to start solving this in the board way (all across scala error reporting).
Issue 1:
I guess this is as designed, but should we somehow improve this experience?

Windows.

Issue 2:
VSCode Version:

1.1.1

OS Version:

Windows 7

Scenario 1:

We have git hooks installed (a mix of #!/bin/sh and #!/bin/node). The printout messages from these do not show in the VSCode console, only when running from command line (in this case, CMD)

Steps

Try to commit something with an improper commit message

VSC says the commit failed, offers to show console output for git. Console does not contain output message.

Scenario 2:

We use git pull rebase by default (git config --global pull.rebase true). When Syncing or pulling, VSC will show an error if it didn't succeed. When you show the console output for the error, it does not contain the output message.

Steps

Try to rebase after all your commits are in

VSC says the action failed, offers to show console output for git. Console does not contain rebase output

Scenario 3:

All git console output just randomly stops sometimes (sometimes totally blank) and won't fix until restarting the editor. Dies again shortly after after usually. It may be dying from one of the above scenarios, however.

Summary:

In all scenarios, git from the command line produces output just fine.
Issue 1:
I have a screenshot test using flutter_driver where I'm taking a screenshot of a Widget which contains an Image widget which is created via new Image.asset('myasset.png', key: const Key('a')). The test code looks like this:

test('Widget with Image', () async {
await driver.waitFor(find.byValueKey('a'));
await driver.waitUntilNoTransientCallbacks();
await scuba.diffScreenshot('opportunities');
});

This takes a screenshot where the Image is in the tree (I can tell because it changes the alignment of the other elements in the Widget), but has not yet been loaded (it's blank). Very occasionally (<5% of the time), the test will take a screenshot where the image is loaded and visible.

If I add await new Future.delayed(const Duration(seconds: 1));, then the Image is always loaded, but this is likely wasting some amount of time and/or prone to flaking. I think that waitUntilNoTransientCallbacks is probably supposed to be await'ing whatever asset loading is happening in the background; if not, could we expose some other hook that would enable this?

Thanks!

Issue 2:
Collecting a screenshot with driver.screenshot() after calling driver.waitUntilNoTransientCallbacks() doesn't guarantee that the current frame's display list will have reached the GPU before the screenshot is taken.
Issue 1:
v1-beta12

As per title. If you swipe on an element with a button/button base (i.e. a list item with an action on it), the ripple effect fires.

This isn't usually that bad of a problem, however if you are scrolling through a list of items with actions on mobile it is really jarring and janky.

As you tap to scroll, the ripple fires on the element you started your tap swipe on.

It's misleading for the user (as releasing your finger doesn't actually fire the onclick handler), and it looks plain old janky.

The solution (i think) would be to wait a few cycles before firing the ripple, and cancelling the ripple if there was pointer movement above a certain threshold.

Issue 2:
In a case of mine, I am opening a slider onClick and then unmounting it through render logic.

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

Expected Behavior

Should not throw an error to a reference

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null(…)getTrackOffset @ Slider.js:594(anonymous function) @ makeAssimilatePrototype.js:15(anonymous function) @ Slider.js:634

Current Behavior

Throws a reference error on an event after its unmounted

Steps to Reproduce (for bugs)

Basically mount the slider, but then stop rendering it on an if statement.

There are some events that you have not cleaned up?

if (!this.state.DurationSliderOpen) {
this.buttons.push(<CanvasBox name="Duration" dimensions={this.calc.Presentation.Duration} onClick={() => {
this.setComponentState({DurationSliderOpen: true});
}}>
<CanvasText percentSize={.3}>
<IconButton style={{paddingTop: 9}}><Down color={"white"}/></IconButton><span style={{color: "white"}}>Duration: {this.parentState.Room.VideoConference.Duration} minutes</span>
</CanvasText>
</CanvasBox>);
} else {
this.buttons.push(<CanvasBox name="Duration" dimensions={this.calc.Presentation.Duration}>
<span><Slider onChange={(e, v) => {
session_functions.VelocityDump(e,v )
this.setParentState({
Room: {
VideoConference: {
Duration: v.toString()
}
}
});
}} onDragStop={(e, v) => {
this.setComponentState({
DurationSliderOpen: false,
}, () => {
this.setParentState({
Room: {
VideoConference: {
Duration: this.parentState.Room.VideoConference.Duration.toString()
}
}
}, () => {
window.api.post({action:"RoomSave", state: this.parentState, leaveStateAlone:true});
});
});
}} min={30} max={240} step={5} value={parseInt(this.parentState.Room.VideoConference.Duration)} style={{widht: 218}}/></span>
</CanvasBox>);
}

Context

None.

Tech
Version

Material-UI
0.18.6

React
15.4.2

browser
Linux Version 54.0.2840.90 (64-bit)

etc
Issue 1:
System information

**Xcode 9.3 and Mac OS is 10.13.4 **:

TensorFlow r1.2:

iPhone 7 plus:

Describe the problem

NSString* graph_path = FilePathForResourceName(model_file_name, @"tflite");

model = tflite::FlatBufferModel::BuildFromFile([graph_path UTF8String]);

if (!model) {

LOG(FATAL) << "Failed to mmap model " << graph_path;

}

LOG(INFO) << "Loaded model " << graph_path;

model->error_reporter();

LOG(INFO) << "resolved reporter";

Source code / logs

After "tflite::FlatBufferModel::BuildFromFile" is excuted, and it returns

nnapi error: unable to open library libneuralnetworks.so

Loaded model 1resolved reporter(lldb)

Does anyone know how to solve this issue? Thanks in advance.

Issue 2:
It be nice to have autocompletion for the tensorboard arguments.

I experimented a bit Era-Dorta@3c21776 with the argcomplete, however the completion is too sluggish to be useful.

The entry point for the completion is after the flags are defined and the slugginesh is due to too much stuff being done before that.

Another option would be to use native completion, but that would require to duplicate the flag definitions for tensorboard.
Issue 1:
tensorflow 1.2 release will support python 3.6？

Issue 2:
The current .whl does not support python 3.6. Please update to support the latest version of python. Thanks!

C:\WINDOWS\system32>python --version

Python 3.6.0

C:\WINDOWS\system32>pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl

tensorflow-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
Issue 1:
Description of the new feature/enhancement

Arguments to the program. for example the ability to specify which mingw one would want to load, mingw64, mingw32, or msys2. like we can in VSCode

Proposed technical implementation details (optional)

This is accomplished in VSCode via this directive in settings.json

"terminal.integrated.env.windows":
{
"MSYSTEM": "MINGW64",
"CHERE_INVOKING":"1"
},

My thougt process allowed something like

"commandlineEnv" :
{
"MSYSTEM" : "MINGW64"
},

In the settins.json file example. just like VSCode

Please do note, i know little to nothing about this language that this program is written in, so i don't know how difficult it would be to implement.

Issue 2:
Summary of the new feature/enhancement

Current tab styling is ugly, it would be better if some customization options are added:

Custom Tabs Position: {Top, Bottom, Sides}

Custom Tabs height and font size (Affects oversized + button and down pointing arrow too)

Tab opacity and color.

Dynamic app icon set per active tab.

Custom static text for tab name

Tab controls are too far away from window controls, reduce distance or change sides when tabs are on superior position

Proposed technical implementation details (optional)

Adding configuration options to the profiles.json accordingly should do the job
Issue 1:
Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

I am running airflow 2.4.2 in EKS 1.22 with minor tweaks to official helm chart. I am observing in UI, in task logs each log line is coming twice. Attaching a screen-shot below of the issue. As visible here all log lines are repeated twice in task log file.

What you think should happen instead

Each log line should be coming once in task logs, this is important as task logs will take twice the space as required.

How to reproduce

Should be able to reproduce by running any dag on airflow 2.4.2 with official helm chart on EKS v1.22 and observing task logs.

Operating System

PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)” NAME=“Debian GNU/Linux” VERSION_ID=“11” VERSION=“11 (bullseye)” VERSION_CODENAME=bullseye ID=debian

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

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.4.2

What happened

We upgraded airflow from 2.4.1 to 2.4.2 and immediately notice that every task log line is duplicated into CloudWatch. Comparing logs from tasks run before upgrade and after upgrade indicates that the issue is not in how the logs are displayed in Airflow, but rather that it now produces two log lines instead of one.

When observing both the CloudWatch log streams and the Airflow UI, we can see duplicate log lines for all most log entries post upgrade, whilst seeing single log lines in tasks before upgrade.

This happens both for tasks ran in a remote EcsRunTaskOperator's as well as in regular PythonOperator's.

What you think should happen instead

A single non-duplicate log line should be produced into CloudWatch.

How to reproduce

From my understanding now, any setup on 2.4.2 that uses CloudWatch remote logging will produce duplicate log lines. (But I have not been able to confirm other setups)

Operating System

Docker: apache/airflow:2.4.2-python3.9 - Running on AWS ECS Fargate

Versions of Apache Airflow Providers

apache-airflow[celery,postgres,apache.hive,jdbc,mysql,ssh,amazon,google,google_auth]==2.4.2
apache-airflow-providers-amazon==6.0.0

Deployment

Other Docker-based deployment

Deployment details

We are running a docker inside Fargate ECS on AWS.

The following environment variables + config in CloudFormation control remote logging:

- Name: AIRFLOW__LOGGING__REMOTE_LOGGING
Value: True
- Name: AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER
Value: !Sub "cloudwatch://${TasksLogGroup.Arn}"

Anything else

We did not change any other configuration during the upgrade, simply bumped the requirements for provider list + docker image from 2.4.1 to 2.4.2.

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:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
3.3.0

I have recently started using the Guard component to handle formless authentication. Great addition BTW (Thanks @weaverryan).

With the traditional 'form_login', we have the option to add many routes directly under the 'firewalls' key. For example the 'default_target_path'. Using 'guard' we don't have these options. I understand that any key/value pairs can be defined under the implementing bundle, but IMO bundle configuration and firewall configurations should be separate.

Would it be possible to add the configurations, under 'guard', for 'default_target_path', 'always_use_default_target_path', 'use_referer', 'login_path' and 'failure_path'. Then make these configurations available, as possibly a container parameter, so they can be passed into our 'GuardAuthenticator' constructor?

This will keep firewall configuration nice and tidy, and also allow for the easier development of 3rd party bundles.

Issue 2:
Q
A

Bug report?
no

Feature request?
maybe?

BC Break report?
no

RFC?
no

What is the recommended way to do per-firewall guard configuration options? Just add logic based on the request in the Guard? My current use case is redirection settings. Based on what firewall you are using a Guard from you might want different redirection to occur. It would be nice to define some configuration options like this per firewall like you can with the form_login approach.

Currently it seems like the only way would be to add logic to the onAuthenticationSuccess() and onAuthenticationFailure() methods and inspect the Request object. Maybe it should stay that way due to the generic nature of the Guard in general? Thoughts?