WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Kenny MacLeod opened SPR-4432 and commented

It occurred to me that a neat application of autowiring would be the ability to autowire logger objects.

Say a class declares something like:

private @Autowired Log logger;

where Log is from commons-logging. Spring would then generate a Log object for the declaring class and then inject it.

I don't think this can be done using the existing resolveResolvableDependency mechanism, since information about the dependent class isn't made available in order to create the Log.

Thoughts?

Issue Links:

#9109 Support @autowiring of Loggers ("duplicates")

Issue 2:
Kenny MacLeod opened SPR-4431 and commented

It occurred to me that a neat application of autowiring would be the ability to autowire logger objects.

Say a class declares something like:

private @Autowired Log logger;

where Log is from commons-logging. Spring would then generate a Log object for the declaring class and then inject it.

I don't think this can be done using the existing resolveResolvableDependency mechanism, since information about the dependent class isn't made available in order to create the Log.

Thoughts?

Attachments:

IAutowireCandidateFactory.java (241 bytes)

Log.java (566 bytes)

LoggerAutowireFactory.java (1.14 kB)

LogPostProcessor.java (1.31 kB)

PluggableAutowireCandidateResolver.java (2.10 kB)

Issue Links:

#9110 Support @autowiring of Loggers ("is duplicated by")

11 votes, 14 watchers
Issue 1:
Problem description

Any material-ui button stays in a focused state even after click or tap event has ended. It displays a white translucent overlay. It looks really bad! How can I hide it? Is there a standard way to do that? Here's a little hack on how to accomplish it.

this.refs.searchBtn.refs.overlay.style.background = 'none';

### Steps to reproduce
### Versions
- Material-UI: ^0.15.1
- React: ^15.1.0
- Browser: Chrome

Issue 2:
This issue has been around for quite a while, and I just reproduced it in 0.14.4 and 0.15.1-alpha.1. I looked through all "button" and "ripple" related issues and found no mention of this, so apologies if this is a duplicate.

https://dl.dropboxusercontent.com/u/19969663/ripple_issue.mov

As you can see, this is the latest version of the demos on material-ui.com. Video was taken in chrome on a mac.

Basically, through some sequence of clicks the ripple effect doesn't go away. I've been playing around with it for quite a while and couldn't find consistent repro steps. It also seems to happen much more often on chrome in android as well as safari in iOS. I've noticed this issue in all browsers.
Issue 1:
Environment

Windows build number: [Version 10.0.18363.900]
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones

Steps to reproduce

Set up remote desktop connection in a zone and start it in full screen mode afterwards. It wont be in the zone anymore. Instead it will be covering all zones like without even having the PowerToys installed.

Expected behavior

A full screen app will think it is running in full screen inside of a fancy zone. This could also be seen as a feature request, to me it is a bug though.

Unlike remote desktop, which is only annoying in window mode, other apps like games don't even allow you to switch to window mode, leaving fancy zones useless in those scenarios.

With 4k screens nowadays, this is important!

Actual behavior

When an app switches to full screen, it sadly breaks out of the zone. It will cover all zones instead.

Issue 2:
Summary of the new feature/enhancement

It would be nice if it would be possible to split a screen to allow for multiple "full screen" windows.

This would enable for example to have You Tube in full screen mode without the rest of the UI together with for example the email program below for people using a PIVOTed Display.

This would allow to have a video playing like this:

Instead of having a lot of dead space from the UI>
Issue 1:
From @yamatt on October 31, 2016 21:15

ISSUE TYPE

Bug Report

COMPONENT NAME

docker_container

ANSIBLE VERSION

ansible 2.1.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

None

OS / ENVIRONMENT

Linux/Fedora 22

SUMMARY

When running a task with an entrypoint parameter, a docker container is destroyed and recreated each time after the first time it is run.

STEPS TO REPRODUCE

Fill in the variables and run this twice:

- name: Create data container
docker_container:
name: "{{ docker_data_name }}"
image: "{{ image }}"
state: present
entrypoint: "/bin/echo Data-only container for {{ name }}"

On the second run this roduces:

TASK [docker-image : Create data container] ************************************
changed: [hostname]

Destroy that container, comment out the entrypoint, then run this twice

- name: Create data container
docker_container:
name: "{{ docker_data_name }}"
image: "{{ image }}"
state: present
#entrypoint: "/bin/echo Data-only container for {{ name }}"

On the second run this poduces:

TASK [docker-image : Create data container] ************************************
ok: [hostname]

EXPECTED RESULTS

Ansible reports no change. The created timestamp should be the same as the first time it was run.

ACTUAL RESULTS

Ansible reports a change, and the created timestamp becomes recent.

Copied from original issue: ansible/ansible-modules-core#5446

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

win_firewall_rule

ANSIBLE VERSION

2.2.1.0

OS / ENVIRONMENT

Windows Server 2012

SUMMARY

When the rule already exists, win_firewall_rule fails to verify that isn't changed because of netsh output in English. My host is using German language and then netsh output is different.

STEPS TO REPRODUCE

Try to execute the following task twice on a non-English host:

- name: Firewall rule to allow smtp on TCP port 25
action: win_firewall_rule
args:
name: smtp
enable: yes
state: present
localport: 25
action: allow
direction: In
protocol: TCP

EXPECTED RESULTS

The task doesn't fail.

ACTUAL RESULTS

The task fails.
Issue 1:
Hi,

in the bootstrap.css

line 790 - 799 is the same as line 800 - 809

and

line 815 - 824 is the same as line 825 - 834

Issue 2:
show on bootstrap.css

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.10012]
Windows Terminal version (if applicable): Version: 0.3.2171.0

Any other software?
No

Steps to reproduce

Create tabs until they get created outside of the visible area of the tab bar

Expected behavior

After scrolling the created tabs should be visible

Actual behavior

After scrolling only empty space is visible instead of the tabs

See attached screenshot with empty tab bar

Issue 2:
This bug-tracker is monitored by Windows Console development team and other technical types. We like detail!

Please use this form and describe your issue, concisely but precisely, with as much detail as possible

Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.18898.1000]

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

Video demonstration of both issues below

A newly created tab doesn't scroll the tab bar to the end - could possibly be a config variable

When using tabs in the title bar and creating a new partially hidden tab, the tab gets cut off.

What's wrong / what should be happening instead:

The tab should not be cut off.
Issue 1:
Code Sample

import pandas as pd
df = pd.DataFrame({'tms': pd.date_range('2017-1-1', '2017-1-31'), 'v': xrange(31)})
df_3 = pd.concat([df, df, df], axis=1)
# What I would like to do: df_3.drop_duplicates(axis=1)
deduplicated_df = df_3.T.drop_duplicates().T

Problem description

Duplicate columns can be introduced when using the pd.concat(axis=1) method.

It would be nice (not necessary) to use the drop_duplicates method with an axis parameter set to 1.

This can be implemented right now using: df.T.drop_duplicates().T. Maybe there is an alternative, better way.

Notice that this isn't a bug but a feature request/feature enhancement of an existing one.

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 16.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: fr_FR.UTF-8
LOCALE: None.None

pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: None
Cython: None
numpy: 1.13.0
scipy: 0.19.1
statsmodels: 0.6.1
xarray: None
IPython: 4.0.2
sphinx: None
patsy: 0.4.0
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 2.0.2
openpyxl: None
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.9.2
apiclient: 1.4.2
sqlalchemy: 1.1.11
pymysql: None
psycopg2: 2.7.1 (dt dec pq3 ext lo64)
jinja2: 2.9.6
boto: 2.47.0
pandas_datareader: None

Issue 2:
Here is sample code that finds duplicate columns in a DataFrame based on their values (useful for cleaning data):

def duplicate_columns(frame):
groups = frame.columns.to_series().groupby(frame.dtypes).groups
dups = []
for t, v in groups.items():
dcols = frame[v].to_dict(orient="list")

vs = dcols.values()
ks = dcols.keys()
lvs = len(vs)

for i in range(lvs):
for j in range(i+1,lvs):
if vs[i] == vs[j]:
dups.append(ks[i])
break

return dups

I've seen others suggest something like df.T.drop_duplicates().T. However, transposing is a bad idea when working with large DataFrames.

I would add a pull request, but I'm not sure I even know what that means.
Issue 1:
After following doc from below link setup email config

https://superset.apache.org/docs/installation/email-reports

ENABLE_ALERTS = True

ENABLE_ALERTS = True

I'm using superset 1.0.0 Jan 21 Release

email schedule working fine

Add button is gray couldn't able add any alerts or reports

please help

Issue 2:
After following doc from below link setup email config

https://superset.apache.org/docs/installation/email-reports

ENABLE_ALERTS = True

ENABLE_ALERTS = True

email schedule working fine

Add button is gray couldn't able add any alerts or reports

i'm using superset 1.0.0 Jan 21st Release

firefox-geckodriver = 0.29

OS: Ubuntu 20.04 LTS Linux Sub System

please help
Issue 1:
by tyapca7:

What steps will reproduce the problem?
Install gomatrix.googlecode.com/hg/matrix
Install go-fn.googlecode.com/hg/fn
Get the branch 'tyapca7' from https://code.google.com/p/gostat
cd gostat/stat
gomake install
cd bayes
gomake

What is the expected output?
gopack grc _obj/gostat.googlecode.com/hg/stat.a _go_.8

What do you see instead?
poisson.go:60: internal compiler error: unknown type
make: *** [_go_.8] Error 1

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
linux-386, kernel 2.6.35-22-generic

Which revision are you using? (hg identify)
776b13062a2b (tyapca7) tip

Issue 2:
by justinas@justinas.me:

What does 'go version' print?
go version go1.2.2 darwin/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. Compare two byte slices with ConstantTimeCompare(), where the second slice is longer
and the first slice is a prefix of the second.

http://play.golang.org/p/XH0gRhdDTu

What happened?

The function compares slices only up to the length of the first slice and thus gives a
false-positive.

What should have happened instead?

I understand that this is not the way this function is supposed to be used. However, the
behavior on this incorrect usage varies based on the order of the arguments.

I think that panicking (due to out-of-range access), as the function does when the
*first* slice is longer, is a much better solution. Panic clearly indicates a mistake on
the programmer's part, whereas passing silently can go unnoticed for a long time and
even be exploited.

It's a simple fix to do, I think: instead of iterating up to len(x), iterate up to
max(len(x), len(y)).
Issue 1:
Ubuntu doesn't show up in the terminal. Its installed on my machine but the new terminal is recognizing it.

Issue 2:
Environment

Windows build number: 10.0.18362.295
Windows Terminal version (if applicable): 0.4.2382.0

Steps to reproduce

In your profiles.json, create two profiles (we will call them A and B)

Give A the space background image and B the tree background image (attached at the bottom)

Open windows terminal with A as the default profile

Open B in a new tab

Expected behavior

There should ideally be no delay in loading the background images.

Actual behavior

When we start with profile A, there will be no delay. However, when opening profile B we see the background is gray for small moment of time. Afterwards, the image loads normally. If we switch between tabs every 1.5 seconds(ish) when going from A to B the image has a delay loading. But if switch quickly there will be no delay. I will add a gif showing the result happening. I'll also add both of the background images I'm using.

This is image for profile A.

This is image for profile B.

The issue in action.
Issue 1:
Bug report

Describe the bug

In some circumstances, next build is failing in CI environment (CircleCI) with the exception `Callback was already called'.

There is a random factor and it's not happening 100% of the time, but more than 50% at the moment.

This is triggered from the neo-async package which is used by webpack:

/home/circleci/project/node_modules/neo-async/async.js:14
throw new Error('Callback was already called.');
^

Error: Callback was already called.
at throwError (/home/circleci/project/node_modules/neo-async/async.js:14:11)
at /home/circleci/project/node_modules/neo-async/async.js:2805:7
at afterBuild (/home/circleci/project/node_modules/webpack/lib/Compilation.js:859:17)
at processTicksAndRejections (internal/process/next_tick.js:74:9)

Example

See for example: https://circleci.com/gh/opencollective/opencollective-frontend/5926

Version

This is a new issue after upgrading to next 8.0.x, we never had it with next 7.0.x.

Issue 2:
If you look into the next.js doc you'll see:

since I want to use this buildId to make a predefined service worker file(not using runtime caching), I wonder why buildId for app.js differs from other js files. you can see screenshot of this behaviour in my project:

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

Expected Behavior

I think buildId should be a constant value between all files.

Current Behavior

buildId for app.js is different from all other next.js generated js files.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

core

ANSIBLE VERSION

2.3

CONFIGURATION

OS / ENVIRONMENT

SUMMARY

Hello,

i am getting this error:

[WARNING]: Failure using method (v2_runner_on_ok) in callback plugin (</usr/lib/python2.7/site-packages/ooinstall/ansible_plugins/facts_callback.CallbackModule object at 0x229bf90>): cannot represent an object: common

There was a problem fetching the required information. Please see /tmp/ansible.log for details.

can someone assist ?

STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Issue 2:
Some folks would like roles to pull in content from other roles automatically.

I am envisioning it like this:

roles/foo/meta/main.yml

And in there:

dependencies:
- { role: higher, x: 42, y: 12 }
- { role: component, y: 17, z: "blippy" }

etc
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

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

after typing "$($", chrome crashes.
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

When I include a Typescript file from another package, I get this error:

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

Describe the solution you'd like

I would like to be able to import Typescript files from other packages.

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

Expected Behavior

Calling app.renderError should be straight-forward and render the default error page with the new code that I provide it. Full code is below (scroll down).

I initially tried this:

return app.renderError(403, req, res, "/progress", req.query);

And then I realized that the first parameter is supposed to be an error object, so then I tried this:

res.statusCode = 403;
return app.renderError(null, req, res, "/progress", req.query);

This should simply render the default error page from Next.js with my error code and not bounce to another page on the next ping.

Current Behavior

Instead, what happens is that I see a brief glimpse of the expected error page with my 403 code in it, but on the next ping, it redirects to the /progress page but without an id param being passed down (because there isn't). Ideally, you should never see the /progress page if there is no id in the URL.

Steps to Reproduce (for bugs)

This is the code that I used:

const express = require("express");
const next = require("next");

const port = parseInt(process.env.PORT, 10) || 3000;
const dev = process.env.NODE_ENV !== "production";
const app = next({ dev });
const handle = app.getRequestHandler();

app.prepare().then(() => {
const server = express();

server.get("/progress/:id?", (req, res) => {
if (!req.params.id) {
console.log("no id submitted");
res.statusCode = 403;
return app.renderError(null, req, res, "/progress", req.query);
}
const queryParams = Object.assign(req.query, req.params);
return app.render(req, res, "/progress", queryParams);
});

server.get("*", (req, res) => handle(req, res));

server.listen(port, (err) => {
if (err) throw err;
console.log(`> Ready on http://localhost:${port}`);
});
});

Use the above code in a file server.js.

Run in dev mode by running a script that says node server.js.

Run localhost:3000/progress/ (with no id in the path).

Note that you get the correct error page, but on subsequent ping it redirects to the /progress page but with no ID passed down in its props.

Your Environment

Tech
Version

next
3.0.6

node
8.4.0
Issue 1:
Electron version: v1.6.2

Operating system: Ubuntu 16.04.2 LTS

Expected behavior

BrowserWindow should be transparent and show only the content

Actual behavior

BrowserWindow is rendered with a white background and graphics seem broken

How to reproduce

$ git clone https://github.com/elvisvoer/electron-shadow-issue.git

$ npm install

$ electron . || electron . --disable-gpu --enable-transparent-visuals

Issue 2:
Electron version: 1.5.x

Operating system: mint 18.1

Expected behavior

Window transparency with --enable-transparent-visuals is supposed to produce see thru window

Actual behavior

Window produce black background with old frames not disposing

How to reproduce

Use 1.5.x version; works well with 1.4.x version
Issue 1:
Glide 3.8.0

Is there a callback provided by Glide library when loading of all the images are completed for an Activity or Fragment? We want to take certain actions when that is done.

If not, any pointers how to get that callback.

I have seen #1440, but I would like to completely avoid reflection since it will be part of shipped code within APK.

Issue 2:
glide 3.7.0

Not sure if we already have way to know when image loading started and finished for all the request, even when it loads from cache.

I would like to use using idling resource for android testing which make sure images are loaded and app is idle now.
Issue 1:
From @dpsthree on April 12, 2016 15:52

I have a folder that contains a Typescript Client and Typescript Node Server subfolder. There is a third top level directory, common, where we store our isomorphic Typescript code.

In order for a rename to work across files a tsconfig.json file is needed that includes the top module of your project and all submodules must be imported properly.

When attempting to perform a rename of a class defined in the common folder the action is only applied to one of the two typescript projects. Adding a top level tsconfig.json that points to the starting modules of both projects did not change this behavior.

Ideally, a refactor would follow all tsconfig.json module trees as needed.

Copied from original issue: microsoft/vscode#5194

Issue 2:
Global operations are currently only done on the first project for a file, namely:

rename

find all references

navigate to

For instance if you have three files (a.ts, b.ts, and c.ts) open in the editor, listed below, we create three projects, Project 1 (a.ts), Project 2 (a.ts, b.ts), Project 3 (a.ts, c.ts).

a.ts

var x;

b.ts

/// <reference path="a.ts" />
x ++;

c.ts

/// <reference path="a.ts" />
x = x + 2;

Calling rename on x, in a,ts will only rename it in a.ts and not in b.ts or c.ts as well. if renaming in b.ts it will not rename in c.ts, and vice versa.