WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Mike Youngstrom opened SPR-3370 and commented

There are cases where PersistenceAnnotationBeanPostProcessor doesn't find lazy loaded EMFs. I think it's because in findNamedEntityManagerFactory it uses beanFactory.isTypeMatch() to find EMFs that implement EntityManagerFactoryInfo and isTypeMatch() only matches cached singletons.

This is probably a known limitation so it may only require a documentation mention in PersistenceAnnotationBeanPostProcessor.

For anyone experiencing this problem the solution is to just make your EMF non lazy.

Mike

Affects: 2.0.4

Issue Links:

#8117 PersistenceAnnotationBeanPostProcessor fails to find EMFBs ("is duplicated by")

Issue 2:
Osvaldas Grigas opened SPR-8269 and commented

When using AnnotationConfigApplicationContext, if I declare at least one @Bean of type BeanFactoryPostProcessor (even if it's a stub that doesn't do anything), this breaks default post-processing of the @Configuration bean, meaning that @Autowired fields are no longer injected, @PostConstruct methods are not called, etc.

I'm attaching a test case to prove my point.

A workaround is to manually add the relevant BeanPostProcessors (like AutowiredAnnotationBeanPostProcessor and CommonAnnotationBeanPostProcessor) to BeanFactory.

Same thing happens in web app when I use ContextLoaderInitializer to load @Configuration classes or define them through XML config. My particular case is that I use MyBatis-Spring integration and I cannot declare a @Bean of type org.mybatis.spring.mapper.MapperScannerConfigurer using annotation config, because this bean is a BeanFactoryPostProcessor and thus breaks autowiring of @Configuration class.

Affects: 3.1 M1

Attachments:

org.mybatis.spring.sample.zip (8.37 kB)

testcase.zip (1.98 kB)

Issue Links:

#12905 @PostConstruct and PropertyPlaceholderConfigurer do not work together in AnnotationConfigApplicationContext ("is duplicated by")

#12525 BeanDefinitionRegistryPostProcessor registered via @Bean will not be invoked

#14099 Method postProcessBeanDefinitionRegistry is not called if the bean implements BeanDefinitionRegistryPostProcessor

#18808 Warn about non-static BeanDefinitionRegistryPostProcessor declarations on @Configuration classes

Referenced from: commits 52bef0b
Issue 1:
...to have a better visual separation from files

Issue 2:
Can you please add file icons support in the tree view?

I know that access from extension to the DOM is restricted. But it will be good to add some language-id attribute to the tree-view element. For example in the render function. So it will be easy to modify view of files with different types with CSS, without modifying DOM.

And also It will be nice to add possibility to add/modify directly CSS from extension.
Issue 1:
Steps to Reproduce

Create a nested navigator. The top level navigator handles back just fine, but a WillPopScope within the inner navigator is completely ignored.

This is still the case if a WidgetsBindingObserver is used with the inner navigator.

Discussion...

I've debugged through and the reason this seems to happen is that WidgetsBinding.handlePopRoute iterates forward through the list of WidgetsBindingObservers. This means observers that are registered later are lower down the list so never get called if the first layer can perform a pop. This causes a problem - if I have a nested structure, I want the lower level to be able to decide whether or not to pop before the decision is passed up the structure. But because the top level decides first, I'm going to have to write all my own wiring to propagate the decision downwards through a lower navigator.

I think that a simple fix would be to simply reverse the iteration through the list of WidgetBindingObservers in WidgetsBinding, but I realize that change could cause problems for existing projects (although theoretically if people are following the basic 'flutter' way of doing things, they would only have the one WidgetBindingObserver from the WidgetsApp making pop decisions so maybe it wouldn't cause too many problems).

I also recognize that through what I've seen in other issues & threads, flutter doesn't really want to support nested navigators. However, I think that as adoption grows you're going to see a lot more people attempting to do it as there is nothing that prohibits it, and some of the documentaiton/code make it seem like it should work (i.e. in navigator has a 'bubble RoutePopDisposition' - on close inspection it says it bubbles to the system navigator but I initially assumed it bubbled from navigator to navigator). I personally am using nested navigators because I have an app with multiple sections, and some of the sections have navigational behaviour that are quite different than others, so it made sense to create different navigators (with extra classes for the specific behaviour). And even just for code cleanliness, it's nice to be able to split up functionality into of pages that are handled individually.

Logs

N/A

Flutter Doctor

N/A really - this is with the most recent flutter & dart but is reproducible with older versions as well as the relevant code hasn't changed.

• Flutter at C:\VirtualDrives\Programs\flutter
• Framework revision 8cf109d20f (15 hours ago), 2018-01-11 23:21:53 -0800
• Engine revision 05fe72d068
• Tools Dart version 2.0.0-dev.16.0
• Engine Dart version 2.0.0-edge.28757928b47b192efcec082c78258102beb03f78

Issue 2:
Design doc

The goal for this refactoring:

1. Refactor the imperative api to continue working in the new navigation system

2. Introduce new page api to Navigator widget for more flexible navigator history modification

3. Implement Router widget for a more convenience api which wraps navigator widget and utilize the new page api.
Issue 1:
Apache Airflow version:

2.1.0

Environment:

Cloud provider or hardware configuration:

AWS ECS EC2 mode. RDS PostgreSQL for DB.

OS (e.g. from /etc/os-release):

RedHat

Other

LDAP authentication enabled

What happened:

We upgraded from 2.0.1 to 2.1.0 and now when i go to Users view (as admin). I cannot see delete/edit/add buttons - if i try to simply navigate by chaniging url from Users/list to Users/edit/1 for example I get Access Denied as per FAB.

I checked underlying permission tables and from what i can see Admin Role does not have those permissions anymore there.

I tried deleting all permissions and with :

delete from dbo.ab_permission_view_role
delete from "dbo"."ab_permission_view"

and then re-run airflow sync-perms

this did not help.

loks like the default permissions settings are now defaulting to read-only even for admin on users tab.

the following query:

select abv.permission_id, abv.view_menu_id, avm.name as view_name, ap.name as permission_name
from "dbo"."ab_permission_view" abv
inner join dbo.ab_view_menu avm
on abv.view_menu_id = avm.id
inner join dbo.ab_permission ap
on abv.permission_id = ap.id
WHERE
avm.name = 'Users'

returns only one row with can_read under permission_name

not sure if this is related, but i can see this change in 2.1.0

https://github.com/apache/airflow/pull/13856/commits

What you expected to happen:

Users with Admin role can still fully edit Users view.

How to reproduce it:

Best i can say: just upgrade from 2.0.1 to 2.1.0

Issue 2:
Apache Airflow version: 2.1.0

Browsers: Chrome and Firefox

What happened:

Before upgrading to 2.1.0

After upgrading to 2.1.0

What you expected to happen:

Show/Edit/Delete under Security -> Users are available

How to reproduce it:

Go to Security -> Users (as an admin of course)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6-SNAPSHOT

synchronized (parameterClassName.intern()) {
CtClass ctClass = null;
try {

https://github.com/apache/dubbo/blob/master/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L135

Code should not synchronize on a variable or field of a boxed type (for example Integer, Boolean) or of type String since it is likely to contain an object that is used throughout the program. For example, Boolean.TRUE holds a single instance that will be used in many places throughout the program: whenever true is autoboxed or a call to Boolean.valueOf is made with true as an argument the same instance of Boolean is returned. It is therefore likely that two classes synchronizing on a field of type Boolean will end up synchronizing on the same object. This may lead to deadlock or threads being blocked unnecessarily.

References

https://wiki.sei.cmu.edu/confluence/display/java/LCK01-J.+Do+not+synchronize+on+objects+that+may+be+reused

https://cwe.mitre.org/data/definitions/662.html

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.X

Operating System version: win10

Java version: 1.8

Steps to reproduce this issue

dubbo method A B C on different dubbo server

A call B, B call C

In B MonitorFilter.MonitorListener.onResponse RpcContext.getContext().getRemoteHost() is null

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

RpcContext.getContext().getRemoteHost() is not null

Actual Result

RpcContext.getContext().getRemoteHost() is null
Issue 1:
Hi, I would like to have an option to be able to add an apiPort, same as baseUrl to playwright.config what could possibly improve the way I can manage the projects - also helping to handle api testing.

Issue 2:
Let us know what functionality you'd like to see in Playwright and what your use case is.

Do you think others might benefit from this as well? Yes

From time to time, we like to test our API as well with Playwright. Sometimes the format is different from the baseUrl, that's why an apiEndpoint might be beneficial. Of course, there are some workarounds, but they are less neath than how baseUrl works. (and apiEndpoint should work)

My example: (is configured as baseUrl)

Web application URL: https://practicesoftwaretesting.com

API endpoint: https://api.practicesoftwaretesting.com

The various API request function should try to get the value of apiEndpoint first and then append what is left.. ( similar to .goto())

Responds with a thumbs up if you like this addition.
Issue 1:
When running the following query:

FOREACH ( n0 IN [] | CREATE ()<-[x:A]-(), ({n1:endNode(x).n2}) )

I encountered the following error:

Neo4jError: Neo.DatabaseError.Statement.ExecutionFailed (Index 3 out of bounds for length 0)

I believe the query mentioned above is semantically and syntactically correct and thus no error should be thrown here.

I encountered this issue when testing queries against the Neo4j 5.6.0 enterprise version in a Docker container running alpine v.3.

While the error message is similar to the one from #13129, this bug only arises in the enterprise edition, while the one from the mentioned issue only triggers in the community edition.

Steps to reproduce

Run the following queries and observe it throws an error:

FOREACH ( n0 IN [] | CREATE ()<-[x:A]-(), ({n1:endNode(x).n2}) )

Expected behavior

The query should run successfully

Actual behavior

The query fails with the error message Neo4jError: Neo.DatabaseError.Statement.ExecutionFailed (Index 3 out of bounds for length 0)

Issue 2:
Attempting to create a uniqueness constraint causes Neo4J to hang.

Neo4j Version: 3.2.6

Operating System: Ubuntu 16.04

API: Cypher in web interface, also occurs from Py2Neo

Steps to reproduce

With new, empty graph, enter in web interface

CREATE CONSTRAINT ON (book:Book) ASSERT book.isbn IS UNIQUE

Expected behavior

Constraint should be created

Actual behavior

Neo4J server hangs, apparently while trying to create an index. The request, and all other requests in the web interface, are just met with a spinner.

From debug.log:

2017-10-12 13:29:17.245+0000 INFO [o.n.k.i.DiagnosticsManager] --- SERVER STARTED END --- 2017-10-12 13:29:56.701+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Index population started: [:Book(isbn) [provider: {key=lucene, version=1.0}]] 2017-10-12 13:29:57.088+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Completed node store scan. Flushing all pending updates. BatchingMultipleIndexPopulator{activeTasks=0, executor=java.util.concurrent.ThreadPoolExecutor@1cf9354b[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], batchedUpdates = [], queuedUpdates = 0} 2017-10-12 13:29:57.088+0000 INFO [o.n.k.i.a.i.IndexPopulationJob] Shutting down executor. BatchingMultipleIndexPopulator{activeTasks=0, executor=java.util.concurrent.ThreadPoolExecutor@1cf9354b[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], batchedUpdates = [], queuedUpdates = 0} 2017-10-12 13:51:15.551+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by scheduler for time threshold [4]: Starting check pointing... 2017-10-12 13:51:15.552+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by scheduler for time threshold [4]: Starting store flush...

Discussed on stackoverflow
Issue 1:
I'm doing

def start_requests(self):
while 1:
words = read_a_list_wanna_crawl()
ips = get_a_ip_list()
if words.count() > 0:
for _, __ in zip(words, ips):
print('do while')
yield scrapy.Request(processed_url, self.html_parse, meta={'proxy': ip, ...})

but when len(zip(words, ips)) == 1, scrapy print do while forever(Infinite loop) and never download any requests.

but if len(zip(words, ips)) > 1, scrapy will not go in to infinite loop.

is this a bug? can scrapy handle this?

ps: (another way to solve this)

Is it able to create a fake scrapy.Request() that don't do request but do the callback to finish this kind control flow in scrapy?

Issue 2:
Hey, I'm wondering what would be the correct way of suspending the crawler in a scenario like this:

Crawl a table page per page

Stop once an item on the page has already been processed

Let's say I have 5 pages defined in the start_urls, these pages urls look something like:

target.com/list-0

target.com/list-50

target.com/list-100

target.com/list-150

target.com/list-200

The items on the pages change over time, the number means "0 to 49 most recent", "50 to 99 most recent", and so on.

Assuming the last processed item is on page 100, should I check for duplicates in the item Pipeline and stop the crawler there? To avoid the older page's items from being processed and not wasting the target's resources.
Issue 1:
❓ Questions and Help

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Discussion Forum

Hi,

I am building libtorch for windows from build_windows.bat and build_libtorch.py, it stuck over 12 hours without any verbose log from console.

Is there any log file can help troubleshoot what's the root cause behind this?

disabling CUDA because NOT USE_CUDA is set

-- CuDNN not found. Compiling without CuDNN support

disabling ROCM because NOT USE_ROCM is set

-- MIOpen not found. Compiling without MIOpen support

disabling MKLDNN because USE_MKLDNN is not set

-- Performing Test C_HAS_THREAD

-- Performing Test C_HAS_THREAD - Success

-- don't use NUMA

Issue 2:
Going through the code, I see there is already support for ROI Pooling CUDA kernels. It would be great to have support for various ROI Pooling operations as easy to add layers to facilitate research in object detection and semantic/instance segmentation.

Here is a live checklist:

ROI Pooling

Position Specific ROI Pooling

ROI Align
Issue 1:
Bug report

Describe the bug

Whenever I do npm run build it doesn't remove the old files from previous builds inside the .next folder. This eventually causes the .next/server/static/ folder to have a lot of folders of the old builds. Is this intended?

To Reproduce

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

npm run build

Open .next/server/static

npm run build multiple times

New folders are generated (with the respective BUILD_ID), but the old folders for the previous builds aren't deleted.

npm run dev

.next is rebuilt from the ground up, which deletes old builds

But if you never npm run dev, the old build folders stay there. Which is usually the case for projects in production servers

Expected behavior

Old build folders should be deleted right? (on development environments it's okay since npm run dev resets it, but on production environments these folders will start to pile up)

I just checked one of my servers and saw a bunch of these unnecessary folders. In this server i would git pull, npm run build && pm2 restart [pm2 name]. So it eventually accumulated a bunch of these

Screenshots

All the previous builds are still in the folder, XB7kfZi8MyFj3pO7k5iSZ is the current build as seen in the BUILD_ID file

System information

OS: macOS

Version of Next.js: 9.0.0 (also tested on 8.0.3)

Issue 2:
Bug report

Describe the bug

core-js is getting loaded in my bundles, multiple times actually, both in my main.js file and my _app.js file, and I have no use for it.

To Reproduce

It's the default behavior, the default hello-world example should reproduce this.

Expected behavior

There should be a way to get rid of core-js from my bundles, as I don't even need to target old browsers. How do I do that?

I've tried setting the following .babelrc file and core-js is still getting loaded:

{
"presets": [
["next/babel", {
"preset-env": {
"useBuiltIns": false,
"targets": {
"chrome": 76,
"node": 11
}
},
"transform-runtime": {
"corejs": false
}
}]
]
}
Issue 1:
It appears that when there is a path outside the plotting limits then not all the path coordinates get plotted. When I run the code below with xmax=1.1 versus xmax=1.0, the axvspan is plotted wrong in latex. Inspection of the pgf file for the two versions of xmax indicates that a \pgfpathlineto command is missing in the xmax=1.1 version. I've traced it to _print_pgf_path() in the backend and the line for points, code in path.iter_segments(transform, clip=clip): which is asking for clipped points.

Python Code

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)

ax.plot([0,1],[0,1],'-k')
ax.set_xlim(0,1)
ax.axvspan(xmin=0.5, xmax=1.1)

fig.savefig('test.pgf')

Latex code

\documentclass {article}
\usepackage{pgf}

\begin{document}
\begin{figure}
\centering
\input{test.pgf}
\end{figure}
\end{document

Here is a pic of the result after compiled with latex (pdflatex or xelatex)

However, saving to .pdf produces the right result

Issue 2:
I have a figure that I need to compile using PGF backend because the \Game symbol is incorrect (another issue will be opened for that problem).

But when I do, the curves bounding the fill seem to get cropped to the visible window, which breaks the fill, as seen here:

When using the other backends, this behavior is not seen, for instance,
Issue 1:
On this page, clicking the link [source] brings you to a 404 page:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.trapz.html

Issue 2:
I wanted to consult the source code of interpolate univariate at the following link :

http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.UnivariateSpline.html#scipy.interpolate.UnivariateSpline

But the source code gave me a dead link :

http://docs.scipy.org/doc/scipy/reference/generated/scipy-interpolate-UnivariateSpline-1.py
Issue 1:
Bug report

What is the current behavior?

Since v4.20.0 defining an output.library as an Array results in var = undefined without a output.libraryTarget. Also using values of "this" or "window result in similar behavior when output.library is an Array.

If the current behavior is a bug, please provide the steps to reproduce.

// webpack.config.js

entry: {
main: `./src/main.js`
},
output: {
library: [ 'BLEEP', 'bloop' ],
libraryExport: 'default',
path: '/dist/',
filename: '[name].js',
publicPath: '/'
}

// main.js

export default () => {
console.log('main bundle');
}

results in

var undefined =
/******/ (function(modules) { // webpackBootstrap

if I add output.libraryTarget = "umd" I get a workable result but since I know this library is only consumed directly from the window it seems like adding extra cruft

(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["main"] = factory();
else
root["BLEEP"] = root["BLEEP"] || {}, root["BLEEP"]["bloop"] = factory();
})(window, function() {

Specifying an output.libraryTarget = "window" also fails

window[undefined] =
/******/ (function(modules) { // webpackBootstrap

What is the expected behavior?

prior to v4.20.0 the generated bundle would contain

var BLEEP = typeof BLEEP === "object" ? BLEEP : {}; BLEEP["bloop"] =
/******/ (function(modules) { // webpackBootstrap

Other relevant information:

webpack version: >=4.20.0

Node.js version: 8.10.0

Operating System: OSX Sierra

Issue 2:
Bug report

What is the current behavior?

Combination of output.libraryTarget: 'window' and output.library: string[] gives an erroneous rusult:

window[undefined] =
...

If the current behavior is a bug, please provide the steps to reproduce.

const config = {
mode: 'development',
entry: {
templates: './tpl.js'
},
output: {
path: `${__dirname}/build`,
filename: '[name].js',
library: ['MyLib', '[name]'],
libraryTarget: 'window'
}
};

What is the expected behavior?

This config should generate output like this:

window["MyLib"] = window["MyLib"] || {}; window["MyLib"]["templates"] =
...

Other relevant information:

webpack version: 4.20.2

Node.js version: v10.7.0

Operating System: win10

Looks like the issue is here: https://github.com/webpack/webpack/blob/master/lib/LibraryTemplatePlugin.js#L28-L29

const accessorAccess = (base, accessor, umdProperty, joinWith = "; ") => {
const normalizedAccessor =
typeof accessor === "object" ? accessor[umdProperty] : accessor;
const accessors = Array.isArray(normalizedAccessor)
? normalizedAccessor
: [normalizedAccessor];

if accessor parameter is an array it passes the typeof accessor === "object" condition anyway (thanks JS).

PS.

Sorry for not sumbiting a PR - I am not so familar with github processes.
Issue 1:
Bug fixes to Table and TableBody components.

I have made some bug fixes to v0.20.0, how can I submit them as a PR? There's no base branch for that version.

See the code changes.

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

Expected Behavior

Two behaviours I observed, and provided fixes for:

Selecting all rows then de-selecting any row, de-selected all rows. Changed so all other rows remain checked (9cdd915)

Selecting all rows via the body (not using select all checkbox in header), would not automatically check the 'select all' checkbox when all child rows were selected. Changed so 'select all' checkbox is now checked when all child rows are selected (c006878). I'm not sure if my approach is the best way to address this, as I've added an optional parameter to onRowSelection(), parameters are not documented (see table docs).

Current Behavior

Described above

Steps to Reproduce (for bugs)

Described above

Context

I noticed these issues when implementing a table view in my UI and needing to use the check boxes for a multi-delete feature.

Your Environment

Tech
Version

Material-UI
v0.20.0

React
15.6.2

browser
Chrome 63.0.3239.132

OS
Windows 10 (64-bit)

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

As the title says, adding align-self rule to Grid component like <Grid item={true} alignSelf={'flex-end'} /> would be great => https://css-tricks.com/almanac/properties/a/align-self/