WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

next export should support static files like robots.txt.

Current Behavior

next export does not apparently support static files like robots.txt. Or if it does, it's a well hidden feature.

Context

I'd like to use next.js for creating a static site (built using next export, with no custom server for routing). This static site needs the usual static URLs, such as /robots.txt.

I can't add a custom server.

How do I implement robots.txt with next export?

I can't use a custom server.js to redirect /robots.txt to /static/robots.txt, because next export doesn't use server.js.

I can't specify { '/robots.txt': { page: '/static/robots.txt' }} in the next.config.js function exportPathMap used by next export, because this mapping applies only to pages inside the pages directory.

I can't create a pages/robots.txt.js that uses getInitialProps and res.write (as described in #751 (comment)) to output plain text, because res isn't available during next export.

My only remaining ideas are to fork next.js, or to do extra steps after the next.js build process to add the necessary static files.

Are there any better ways?

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

Expected Behavior

Next deployments should work in IE11.

Current Behavior

My Next deployment does not work in IE11.

The error is

SCRIPT1053: Const must be initialized
File: main.s, Line: 1, Column 503674

I looked at that place in main.js, which has this snippet--

... for(const e of Object.keys(o)) ...

I looked online, and apparently IE11 doesn't allow const or let in for loops, like for (const var ....

I removed all these for (const and for (let forms from my code and redeployed, but got the same result. I believe it's because there are 9 modules in my node_modules that use the for (const ... form. I can't replace these modules.

Is there some way to have next build the code and convert these for (const and for (let forms to for (var or for (... so I can support IE11?

I am using Typescript, but I don't think that should make a difference.

Steps to Reproduce (for bugs)

Deploy any code with a for (const loop in it.

Your Environment

Tech
Version

next
5.1.0

node
9.8.0

browser
IE version 11.0.9600.18860
Issue 1:
Hello. I'm new to python but i'm a fast study. Kindly bear with me. I'm trying to create an executable involving pdfminer.six. One of the requirements was genism which requires scipy and numpy. I installed the later two then installed gensim. Build finished successfully however when i tried to run my program, i got this error message

I then followed the instructions from pyinstaller/pyinstaller@bf7877f but when i run the program again, i got this

What could i be doing wrong? I'm running python 3.6.5, windows 10 64 bit....

Issue 2:
I pip installed the latest numpy and get the below error. The error goes away if I roll back to v1.15.4.

The most closely related issue I could find is #12028.

Reproducing code example:

import numpy as np

Error message:

Traceback (most recent call last):
File "/home/trey/script.py", line 6, in <module>
import numpy as np
File "/home/trey/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 59, in <module>
from . import numeric
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/numeric.py", line 3093, in <module>
from . import fromnumeric
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 17, in <module>
from . import _methods
File "/home/trey/.local/lib/python3.6/site-packages/numpy/core/_methods.py", line 158, in <module>
_NDARRAY_ARRAY_FUNCTION = mu.ndarray.__array_function__
AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

Numpy/Python version information:

1.16.0

3.6.7 (default, Oct 22 2018, 11:32:17)

[GCC 8.2.0]
Issue 1:
Capture the page using capturePage isn't working when the page is hidden since electron@0.33.2 on OS X 10.10.5.

Issue 2:
Hello,

We are using capturePage feature of browserWindow to get the app screen shot for our feedback mechanism in app. while writing the code, we found an issue, bw.capturePage returns NativeImage.

[mac] when app in hidden/background NativeImage.isEmpty() is always true, i.e, image is empty

[windows it works fine]

Sample App:

https://github.com/kamesh-a/electron-samples/tree/master/CaptureImage

Env :

Mac OS x 0.10.9 & 0.10.10

Electron engine 0.30.6 ... to 0.30.x all versions exhibit this.

Interesting thing, 0.30.6 process.tick and setInterval works smooth when app is hidden/background, when compared to other engines < 0.30.6

Thank you guys for all your work on this environment.
Issue 1:
Dave Syer opened SPR-5973 and commented

Add additional "query builder" features to UriTemplate. The UrlTag already duplicates some features of UriTemplate, and I want to get the same features in Freemarker (#10606). A good starting point would be a common place to get the parameter-appending feature that is needed in the UI. A method like

public URI expandAndAppend(List<ParameterValue> parameters) {
...
}

would work generically. The ParameterValue is a new convenience class containing a name and value pair. The "append" piece could also be separated out for use on its own, but the combined method is needed to get the feature needed in UrlTag (replace placeholders and append the query parameters that are not used in replacement).

Convenience methods that allow the user to pass in a Map<String,String> (in the case where multi-valued parameters are not needed) would also help.

Affects: 3.0 M4

Attachments:

UriBuilder.java (8.38 kB)

UriBuilderTests.java (7.44 kB)

Issue 2:
Matt Young opened SPR-8523 and commented

I've boiled down a confusing situation into a reproducible odd behavior in the attached example application. In an OpenJPA-supported application when there are two classes (an abstract parent and a concrete child) that are both marked with @Entity, the classes are not enhanced when an autowired @Repository DAO is called from a unit test. The DAO contains an inserted @PersistenceContext to get access to the EntityManager.

If the call to the dao is commented out, the classes are enhanced as they should be.

Using spring-instrument-3.1.M2.jar on a -javaagent line.

Notes:

Run a mvn package with the dao call commented out and not commented out in the test class

Observe the difference in openjpa reporting the enhancement of classes vs. not enhancing them

It doesn't matter if you use a persistence.xml file or the new packagesToScan option in LocalContainerEntityManagerFactoryBean

Affects: 3.1 M2

Attachments:

jpa-example.zip (6.77 kB)

Issue Links:

#13148 @Configurable does not work if method with configured classes as parameter exists

#14490 LoadTimeWeaving not working properly in Websphere

1 votes, 3 watchers
Issue 1:
Please:

Check for duplicate requests.

Describe your goal, and if possible provide a code snippet with a motivating example.

Split the print(...) statements into different cells in the notebooks so that they're better rendered in .md. If not split, they are usually rendered on separate cells. For example, the following cell

# Set a step size for finite differences calculations
eps = 1e-4

# Check b_grad with scalar finite differences
b_grad_numerical = (loss(W, b + eps / 2.) - loss(W, b - eps / 2.)) / eps
print('b_grad_numerical', b_grad_numerical)
print('b_grad_autodiff', grad(loss, 1)(W, b))

# Check W_grad with finite differences in a random direction
key, subkey = random.split(key)
vec = random.normal(subkey, W.shape)
unitvec = vec / jnp.sqrt(jnp.vdot(vec, vec))
W_grad_numerical = (loss(W + eps / 2. * unitvec, b) - loss(W - eps / 2. * unitvec, b)) / eps
print('W_dirderiv_numerical', W_grad_numerical)
print('W_dirderiv_autodiff', jnp.vdot(grad(loss)(W, b), unitvec))

gets rendered like

b_grad_numerical

-0.29325485
b_grad_autodiff -0.29227245

W_dirderiv_numerical -0.2002716
W_dirderiv_autodiff -0.19909117

It is cumbersome to separate the print calls, but without a better fix in the underlying rendering, this is likely the best solution for now...

Issue 2:
assume we have written a function which work when a, b are single instances

def f(a,b):
#some computation
return result

using vmap we can repeat same computation for different instances of a and single instance of b as follows

v = partial(vmap, in_axes=(0, None))
af = v(f)

now similarly, we can repeat same computation for single instances of a and multiple instances of b as follows

v = partial(vmap, in_axes=(None, 0))
bf = v(f)

we have different functions af, bf. Is there way to combine this into single function and handle automatically ? If input is batched over a use af and if it is batched over b use bf.

Thanks in advance.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1485 on 2011-07-28 by trac user dobrokot, assigned to unknown.

Python interpreter ignore unhandled exeptions after scipy.optimize import.

For example, python script like

import scipy.optimize

raise Exception("error exit!")

or like

import scipy.optimize

print mistyped_variable

returns success exit code. This silently ignores mistakes in script when running from other process (bash or python subprocess.Popen).

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1314 on 2010-10-18 by trac user markMiscavage, assigned to @wnbell.

I have this bug in a larger program but I've narrowed it down to a script consisting of just :

import sys
import scipy.sparse.sparsetools
sys.exit("EXIT")

This will always exit with code 0. It seems it is the .pyd files in the sparsetools folder that are the source of this problem. I have the same problem in both 0.7.1 and 0.8.0 builds of scipy. I am using python 2.6 on a Windows 7 - 64 bit system.
Issue 1:
Challenge http://freecodecamp.com/challenges/bonfire-no-repeats-please has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The following description is incorrect, in my understanding of permutations:

"

Return the number of total permutations of the provided string that don't have repeated consecutive letters.

For example, 'aab' should return 2 because it has 6 total permutations, but only 2 of them don't have the same letter (in this case 'a') repeating.

"

Number of permutations possible is 3 not 6. Off that only 1 matches the question criteria:

Possible permutations:

aab

aba

baa

Only one, 'aba' matches the conditions. Please correct the bonfire question and the answer checking scripts

Issue 2:
Challenge http://freecodecamp.com/challenges/bonfire-no-repeats-please has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The problem states:

"For example, 'aab' should return 2 because it has 6 total permutations, but only 2 of them don't have the same letter (in this case 'a') repeating."

'aab' has 3 only permutations, not 6 as stated in the question. And the number of permutations that do not repeat any alphabet is 1.
Issue 1:
Migrated issue, originally created by Softbreakers (@softbreakers)

From sqlalchemy.dialects.mysql.base code comments:

ON DUPLICATE KEY UPDATE is used to perform an update of the already

existing row, using any combination of new values as well as values

from the proposed insertion.

But in case of duplicate, MySQL 5.7 supports update using new values, values from proposed insertion and values from the already existing row.

For example:

INSERT INTO t1 (a,b,c) VALUES (1,2,3)

ON DUPLICATE KEY UPDATE c=c+1;

Suppose a table with two columns: 'name' as string and 'counter' as integer.

If I try something like:

insert_stmt = insert(tableobject)

on_duplicate_key_stmt = insert_stmt.on_duplicate_key_update(counter='counter+1')

values =[{'name':valname, 'counter':1, }]

conexBD.execute(on_duplicate_key_stmt, values)

The engine assumes 'counter+1' as a literal value, and generates a SQL statement using quotes for the UPDATE part, like:

'INSERT INTO mytable (name, counter) VALUES (%s, %s) ON DUPLICATE KEY UPDATE counter = %s'] [parameters: ('any_name', 1, 'counter+1')]

Which results in a exception message like:

(1366, "Incorrect integer value: 'counter+1' for column 'counter' at row 1")

Issue 2:
When having a table name My_Table passed to

sqlalchemy.sql.schema.MetaData.reflect(only=[quoted_name("My_Table", False)])

I get the false error, that the table does not exist if the case does not match. For example if pandas tries to drop a table when replacing it:

File "***\lib\site-packages\pandas\io\sql.py", line 1366, in drop_table
self.meta.reflect(only=[table_name], schema=schema)
File "***\lib\site-packages\sqlalchemy\sql\schema.py", line 4268, in reflect
"in %r%s: (%s)" % (bind.engine, s, ", ".join(missing))
sqlalchemy.exc.InvalidRequestError: Could not reflect: requested table(s) not available in Engine(****) schema 'myschema': (My_Table)

The cause of this is that within the MetaData.reflect() method quoted_name objects are not treated properly. Regarding the error above the error caused at:

else:
missing = [name for name in only if name not in available]
if missing:
s = schema and (" schema '%s'" % schema) or ""
raise exc.InvalidRequestError(
"Could not reflect: requested table(s) not available "
"in %r%s: (%s)" % (bind.engine, s, ", ".join(missing))
)

The list available contains all the table names in lowercase since they were unquoted on the database and have been normalized to SQLAlchemys convention for case insensitive.

The table names stored in only are not normalized and a comparison between quoted_name("My_Table", False) and a string in the available list my_table evaluated to False thus causing SQLAlchemy telling me that the table is missing.

I think somewhere in there the dialects normalize_name needs to be called for the tables in only or the comparison has to be done in another way since one should not compare quoted_name objects and strings like that.
Issue 1:
Note: This is less an issue in the common sence than an suggestion to improve the ease of use.

Software
Version

Atom
0.210.0

Operating system
MS Windows 7 Enterprise

Google Chrome
v43.0.2357.124 m

To use the spell correction you've to set the cursor to the word (or mark it). Simply right-clicking on the word and click on "Correct Spelling" won't open the overlay menu.

Issue 2:
I'm using Arch Linux, but have also noticed this behavior on windows and debian.
Issue 1:
For example when rendered on client name and style props are pushed to beggining of attr list, so making dom different on server and client

Issue 2:
Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:

(client) a status update..." name="status" value=

(server) a status update..." value="" name="statu

I'm using react 15.0.0
Issue 1:
Electron version:

* Operating system: window 7

Found in webContents listening 'will - navigate' with 'event callback function event. The preventDefault ();'can't stop jumping events in the iframe.Example: in the iframe "< a href =" github.com "> test < / a >"

Issue 2:
It would be very useful to get events related to navigation:

will-navigate: when the webview is about to navigate (url have been changed but no requests have been emited yet). It could eventually be cancelled with event.preventDefault())

page-url-set: like page-title-set but for url. It is different than before-navigate because it should also handle anchor changes and HTML5 url set without navigating (with history.pushState and history.replaceState)

did-navigate: after the navigation has occured (i.e. when a new entry have been pushed to history and canGoBack/canGoForward/canGo... may have changed)
Issue 1:
It would be nice to allow the generation of routes from an object (just like the symfony1 times)

So instead of this:

{{ path('product_show', {'id': product.id, 'slug': product.slug}) }}

We can do this:

{{ path('product_show', product) }}

For more information check this stackoverflow question, and this gist

Issue 2:
For Symfony2 Router with the help of standart bundle (sensio extra) we can write ParamConverters to convert request param=>object. Is there any standart way to use reversed convertion?

Now we must do something like this:

path('DevBlogBundle_post_show',{'post':post.id})

While a better way would be:

path('DevBlogBundle_post_show',{'post':post})

I've found even example jist:

https://gist.github.com/stevelacey/3226510

Maybe, we should think about adding such functionality to future releases of, for example, sensioFrameworkExtra bundle?

If there is no such functionality, is bundle providing such extension would be needed?

Thanks.
Issue 1:
Environment

Windows build number: 10.0.18362.387
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?

Steps to reproduce

When I try to either engage "runas" on C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe or shift right click and "run as another user" on WindowsTerminal.exe, it gives me an error.

Can this be fixed? Or alternately, can a feature be built into Windows Terminal where you can relaunch as a different user?

Expected behavior

App launches as the user I specify

Actual behavior

The application will either a) reject my perfectly valid credentials (which work in other prompts), or b) give me an access denied error.

Runas:

Attempting to start C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe as user "domainname\otherusername" ...

RUNAS ERROR: Unable to run - C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe

5: Access is denied.

"Run as other user" GUI:

"Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

Unsure if this same issue happens on the non-Store version.

Issue 2:
Description of the new feature/enhancement

Make a setting to disable the bell. This could be a per profile setting.

Maybe other "bell" settings can be desirable like:

"bell": "enable" (default)
"bell": "disable" (this feature request)
"bell": "visual"

So with that in mind don't let the setting be a boolean.

Probably related to #72
Issue 1:
Summary of the new feature/enhancement

I'd like a feature so that I can explicitly indicate that I want to use Window Walker. This is because there are some times where I run Power Run and want to only change the Window, and will get a bunch of unnecessary results. It'd be great to have a keyphrase or command to just use window walker, similarly to how > invokes shell commands. For example maybe $ could be good, so you could use $edge to see your msedge.exe windows, etc.

Proposed technical implementation details (optional)

None! :) Keep up the awesome work.

Issue 2:
Summary of the new feature/enhancement

Currently you can hold the Windows key to bring up the Shortcut Guide overlay, which shows you the many keyboard shortcuts available using the Windows key for managing window location and other operating system features. This is great, no need to memorise everything! I wish this awesome feature worked on all other programs where keyboard shortcuts can speed up your workflow.

My suggestion is to extend this helpful overlay for all other programs and applications.

Either through a super pretty overlay like the one above, or to simply bring up the program's own in-built shortcuts menu (as present in some popular programs such as Adobe Premiere or MS Word).

Shortcuts are not always intuitive across programs; it is sometimes hard to find where the programs specifies their list of available shortcuts; it would be quicker and very useful to have shortcuts appear on screen using the single button you need to memorise.

Proposed technical implementation details (optional)

The way I think it could work is to either:

a) provide an optional "hook" for those program developers to launch their own pretty overlay when the Win key is held;

or b) Power Toys itself could make an index of popular programs, and when we hold the Windows key in these specific programs, somewhere on the screen (say top-left) there is a button like "Show [Program]-specific shortcuts" which brings up that programs own in-built shortcuts menu/editor.

Bringing up that menu might also be invoked by a more direct shortcut (like say Win+Shift+W).

Thank you for your consideration, and I apologise in advance if this has already been suggested!
Issue 1:
Colin Yates opened SPR-1684 and commented

http://forum.springframework.org/showthread.php?t=21986

I keep writing a number of implementations of a single interface and then needing to wrap all those implementations so they are all called.

For example, I might have an ErrorHandler interface and a Log4J implementation, then a Mailing implementation etc. and I want them all to fire when invoked. I would then write a Composite implementation which traversed them all. This was tiresome so I decided to write a FactoryBean which would do the same thing.

Attached is the source code. It may be helpful to others, it might not :)

Attachments:

Copy of spring-utils.zip (2.55 MB)

cor.zip (2.27 MB)

Issue Links:

#7491 Target Chains: factory bean for a proxy that builds up a composite service from a list of targets ("is duplicated by")

4 votes, 3 watchers

Issue 2:
Matt Benson opened SPR-1773 and commented

This broke from M2 to M3. I imagine this could be related to the CustomCollectionEditor changes referenced in the changelog, although I didn't see right off the bat how. Testcase forthcoming.

Affects: 1.2.7, 2.0 M3

Attachments:

nullarraytest.jar (1.34 kB)

Issue Links:

#6517 BeanWrapperImpl: wrong null treatment in array properties ("is duplicated by")
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.6.2

Operating System version: 国产凝思操作系统6.0.45

Java version: 1.7

Steps to reproduce this issue

使用java api的方式调用服务

在非osgi平台时没有问题

在osgi平台使用报错：NotFoundException

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

Expected Result

What do you expected from the above steps？

错误详情

解决

通过搜索我找到了，这个https://blog.csdn.net/paincupid/article/details/51175244

通过在代码中加入以下语句解决问题：

但是，我不知道这样做是否是正确的。

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

Operating System version: Centos

Java version: 1.8

Steps to reproduce this issue

When every RPC comes, the code in TagRouter class will be executed to create a fully new List reference which will increase the memory usage.

private <T> List<Invoker<T>> filterInvoker(List<Invoker<T>> invokers, Predicate<Invoker<T>> predicate) {
return invokers.stream().filter(predicate).collect(Collectors.toList());
}