WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Version

2.5.13

Reproduction link

https://jsfiddle.net/50wL7mdz/94716/

Steps to reproduce

navigate to page-a to make keep-alive to cache page-a component

navigate to page-b to make keep-alive to cache page-b component

now, if remove cache of page-a, page-a was destroyed correctly,

if navigate back to page-a and remove cache of page-b ,page-b was not destroyed

What is expected?

page-b was destroyed

What is actually happening?

page-b was was not destroyed

https://github.com/vuejs/vue/blob/dev/src/core/components/keep-alive.js#L44

Issue 2:
What problem does this feature solve?

There are many cases where attributes passed to a Vue component should not be added to the root element, but rather a sub-element. For example, in this UI component, an incredible amount of props must be used to ensure that attributes are added to the input element, instead of the wrapper div.

Additionally, it's often desirable to expose all event listeners on a form element to the parent, which also requires a lot of boilerplate currently if the element is not the root (in which case, the .native modifier can solve the problem).

What does the proposed API look like?

EDIT: Start here to catch up on the discussion.

Currently by default, the "exposed" element (the one that arbitrary attributes can be added to) is always the root element. A new directive could be used to define a different exposed element. Some ideas for the name of the directive:

v-expose (probably my personal favorite)

v-expose-attrs (probably clearer, but lengthier)

v-main

v-primary

If v-expose is added to an element, it will accept attributes passed to its component - and these attributes will no longer be passed to the root element.

Other features that may be nice:

If the directive is defined on multiple elements, attributes will be duplicated across each of them

In the case where a subset of attributes should be accepted by an element, v-expose could accept a string or array of strings (e.g. v-expose="class" or v-expose="['class', 'type', 'placeholder']"). In this case, these attributes would be added to the element (again, instead of to the root element), but all other attributes would be added to the root element or to the element(s) with a valueless v-expose.
Issue 1:
Plugin will say cannot load plugin dispite no code has been changed but seems to work on WIndows. flash last worked on Electron 4.2.6 on Linux

E.g:

Gamer World based on Electron 4.2.6 (working Linux)

https://imgur.com/o6dvCP2.png

Gamer World based on Electron 6.0.0 (not LInux)

https://imgur.com/YUrPMs8.png

Gamer World on Electron 6.0.0 on Windows 10

https://i.imgur.com/qquoj9P.png

Code for Flash (code not changed)

// Specify flash path, supposing it is placed in the same directory with main.js. const pluginList = { 'win32': '/legacy/pepflashplayer.dll', 'darwin': '/legacy/PepperFlashPlayer.plugin', 'linux': '/legacy/libpepflashplayer.so' } app.commandLine.appendSwitch('ppapi-flash-path', path.join(__dirname, pluginList[process.platform]))

Issue 2:
this is navigator.plugins console

main.js

I use video.js flash play http://rtmp

The player didn't load the screen and didn't do anything. I tried to play it manually and it didn't work, and there was no error.

What should I do to solve this situation? Thank you.
Issue 1:
Which version of ShardingSphere did you use? shardingsphere-proxy 4.1.1,it also happens at 5.0.0-alpha version.

myApp(jdbc) --> shardingsphere-proxy --> PostgreSQL 12.5, compiled by Visual C++ build 1914, 64-bit

<dependency>

<groupId>org.postgresql</groupId>

<artifactId>postgresql</artifactId>

<version>42.2.18</version>

</dependency>

java code

1. Connection connection=getConn();
2. Statement stmt=null;
3. connection.setAutoCommit(false);
4. stmt=connection.createStatement();
5. stmt.execute("update adm_tenant set law_name='xxxx' where tenant_code='XX'");
6. connection.commit();

shardingsphere-proxy

server.yaml

props:
max.connections.size.per.query: 1
acceptor.size: 16 # The default value is available processors count * 2.
executor.size: 16 # Infinite by default.
proxy.frontend.flush.threshold: 128 # The default value is 128.
proxy.transaction.type: LOCAL
proxy.hint.enabled: true
sql.show: true

config-sharding.yaml

dataSources:
ds_0:
url: jdbc:postgresql://127.0.0.1:5432/postgres?serverTimezone=UTC&useSSL=false
username: xxx
password: xxx
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
shardingRule:
tables:
t_order:
actualDataNodes: ds_0.XXX_${2016..2100}
tableStrategy:
standard:
shardingColumn: d_date
preciseAlgorithmClassName: xxx
rangeAlgorithmClassName: xxx
bindingTables:
- XXX
defaultDatabaseStrategy:
none:
defaultTableStrategy:
none:

Expected behavior

update success!

Actual behavior

myApp throw the PSQLException at No5 ： stmt.execute("update adm_tenant set law_name='xxxx' where tenant_code='XX'");

org.postgresql.util.PSQLException: Expected command status BEGIN, got null 0. at org.postgresql.core.v3.QueryExecutorImpl$1.handleCommandStatus(QueryExecutorImpl.java:582) at org.postgresql.core.v3.QueryExecutorImpl.interpretCommandStatus(QueryExecutorImpl.java:2598) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2233) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:323) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:473) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:393) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:322) at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:308) at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:284) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:279)

at TestClass.main(TestClass.java:5)

Shardingsphere-proxy don't print any expcetion log

Issue 2:
For English only, other languages we will close it directly.

Please answer these questions before submitting your issue. Thanks!

Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.

Which version of Sharding-Sphere do you using?

Which project do you using? Sharding-JDBC or Sharding-Proxy?

Expected behavior

Actual behavior

Reason analyze

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc

For bug report, please MUST provide the reproduce example codes (such as a github link).
Issue 1:
Version

2.6.11

Reproduction link

https://jsfiddle.net/sqh8jL65/4/

Steps to reproduce

Add the bindings :selected="'selected'" and :random="'random'" to an option element.

What is expected?

The option element is rendered in the DOM with both the selected="selected" and random="random" attributes present.

What is actually happening?

The option element is rendered in the DOM with only the random="random" attribute present.

When writing a template with a select element which is using @change and :selected bindings on its option elements, I expect the resulting DOM to contain the selected attribute. I need this because that’s how native HTML behaves and because it would allow me to select the selected option using vue-test-utils and wrapper.find('option[selected]') which is currently impossible (Update: one can use wrapper.find('option:checked') as a workaround).

Issue 2:
Version

2.5.13

Reproduction link

https://jsfiddle.net/50wL7mdz/165238/

Steps to reproduce

Create a component property that has [Boolean, String] types. The HTML5-like attribute doesn't behave like a normal Boolean value anymore, instead it gets discarded as empty string.

What is expected?

I would expect both the HTML5 attribute and the v-bind attribute to have the same output.

What is actually happening?

When adding String as a prop type as well, the HTML5 attribute version is not working.
Issue 1:
http://stackoverflow.com/questions/18646668/pandas-hdfstore-duplicate-items-error/18668217#18668217

Issue 2:
from stackoverflow

The original frame can not be shared, but following code reproduces the issue.

import pandas
import numpy as np
import datetime

# create large list of non periodic datetime
dates = []
sec = datetime.timedelta(seconds=1)
half_sec = sec / 2
d = datetime.datetime(2011, 12, 5, 20, 30)
n = 100000
for i in range(n):
dates.append(d)
dates.append(d + sec)
dates.append(d + sec + half_sec)
dates.append(d + sec + sec + half_sec)
d += 3 * sec

# duplicate some values in the list
duplicate_positions = np.random.randint(0, len(dates) - 1, 20)
for p in duplicate_positions:
dates[p + 1] = dates[p]
print "duplicated values at %s" % str(duplicate_positions)

df = pandas.DataFrame(np.random.randn(len(dates), 4),
index=dates,
columns=list('ABCD'))

pos = n * 3
timestamp = df.index[pos]
print "timestamp = df.index[%d] = %s" % (pos, str(timestamp))
print "timestamp in index? %s" % str(timestamp in df.index)
print "df.ix[timestamp] = \n%s" % str(df.ix[timestamp])
print "df.ix[[timestamp]] = \n%s" % str(df.ix[[timestamp]])

running this script outputs:

duplicated values at [143779 365504 338898 192427 63827 333772 366805 378282 375136 77760
59843 215934 173395 185449 310734 184004 48594 221298 348967 86615]
timestamp = df.index[300000] = 2011-12-08 11:00:00
timestamp in index? True
df.ix[timestamp] =
A 0.959639
B 0.651874
C 1.059355
D -1.296393
Name: 2011-12-08 11:00:00
df.ix[[timestamp]] =
Empty DataFrame
Columns: array([A, B, C, D], dtype=object)
Index: <class 'pandas.tseries.index.DatetimeIndex'>
Length: 0, Freq: None, Timezone: None

for n = 1000000 it gets worse

duplicated values at [ 686452 3862593 3747433 63099 2422495 2191536 486238 1632442 2373460
3266942 3127937 2538658 1405505 739509 1519644 2817907 1005119 755410
1784244 86211]
timestamp = df.index[3000000] = 2011-12-31 21:30:00
timestamp in index? False
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
...
TypeError: Cannot compare Timestamp with 1326116999500000000
Issue 1:
We can improve the searchability of our challenges by including additional text and links in the descriptions of these challenges.

We could add the following to the top of a challenge lesson description.

(these breadcrumbs would be clickable and lead to cert/topic landing pages)

Responsive Web Design > HTML5 and CSS > Say Hello to HTML Elements

Then: "Learn to Code with HTML and Say Hello to HTML Elements"

Issue 2:
Challenge http://www.freecodecamp.org/challenges/waypoint-add-borders-around-your-elements has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

I think the test for this is wrong, but I didn't spend much time than looking at it except to note it was doing a global & ignore case search. Which should probably be swapped to checking the img's style I'd assume.
Issue 1:
The code:

import {Dispatcher as BaseDispacther} from 'flux';

class Dispatcher extends BaseDispacther {

}

Results in:

/Users/andreypopp/Workspace/gang/node_modules/6to5/bin/6to5/util.js:35
throw e;
^
TypeError: ./test.js: Line 1: Duplicate declaration "Dispatcher"
> 1 | import {Dispatcher as BaseDispacther} from 'flux';
| ^
2 |
3 | class Dispatcher extends BaseDispacther {
4 |
at File.errorWithNode (~/6to5/lib/6to5/transformation/file.js:333:13)
at Scope.checkBlockScopedCollisions (~/6to5/lib/6to5/traversal/scope.js:145:21)
at Scope.registerBinding (~/6to5/lib/6to5/traversal/scope.js:299:10)
at Scope.registerDeclaration (~/6to5/lib/6to5/traversal/scope.js:277:10)
at TraversalPath.functionVariableVisitor.enter (~/6to5/lib/6to5/traversal/scope.js:341:44)
at TraversalPath.call (~/6to5/lib/6to5/traversal/path.js:115:24)
at TraversalPath.visit (~/6to5/lib/6to5/traversal/path.js:136:8)
at TraversalContext.visitNode (~/6to5/lib/6to5/traversal/context.js:24:20)
at TraversalContext.visit (~/6to5/lib/6to5/traversal/context.js:41:26)
at Function.traverse.node (~/6to5/lib/6to5/traversal/index.js:38:17)

Issue 2:
I've just updated to 3.6.0. The following gives the error "duplicate declaration", but Is it intended?

import {A as A_} from 'module';

class A {
}

This is a little continuation of #759, sorry if it's a rather obvious issue, I'm not super-familiar with the spec.
Issue 1:
Hi,

After some googling and asking on IRC, there doesn't seem to be a global defaults variable file where you can set things like accelerate and gather_facts.

group_vars/all doesn't seem to work for variables at this level.

This means that for a big playbook with many plays you have to explicitly set them for each play, this is probably suboptimal ?

Issue 2:
ISSUE TYPE

Bug Report

ANSIBLE VERSION

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

CONFIGURATION

No configurations changed.

OS / ENVIRONMENT

SUMMARY

Ansible does not resolve the custom modules which are in form of folders in local library folder.

However it resolve the modules if configured in library parameter ansible.cfg .

Its mentioned that .

STEPS TO REPRODUCE

write a python script for custom module .

create the directory for custom module.

create a directory named library and copy the custom module into it.

Try running the custom module with a playbook at same directory level.

EXPECTED RESULTS

expected result : playbook runs the custom module .

ACTUAL RESULTS

actual result : syntax error ( at the point where the custom module is used . )

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: "schema check for given topology file"
^ here

The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:
Issue 1:
I'm Looking to create a similar custom extension to push any javascript code blocks to a designated area on the page or below footer.

My version works using Python 3.6,Flask and Jinja 2.9. However I have a major

issue that occurs after changing the line number or content within the blocks.

The content will appear multiple times on render.

from jinja2 import nodes
from jinja2.ext import Extension

class JavascriptBuilderExtension(Extension):
tags = set(['push'])

def __init__(self, environment):
super(JavascriptBuilderExtension, self).__init__(environment)
self._myScope = {}
environment.extend(
pull = self._myScope
)
def parse(self, parser):
"""Parse tokens """
tag = parser.stream.__next__()
args = [parser.parse_expression(), nodes.Const(tag.lineno)]
body = parser.parse_statements(['name:endpush'], drop_needle=True)
callback = self.call_method('compiled', args)
return nodes.CallBlock(callback,[], [], body).set_lineno(tag.lineno)

def compiled(self,tagname,linenum,caller):
tagname = "{}_{}".format( tagname, linenum)
self._myScope[tagname] = caller()
return "<!-- moved {} from line {} -->".format(tagname,linenum)

My template code looks like this

<html> <head></head> <body> <h1>Test template</h1>
{% push 'js' %} X {% endpush %}
{% push 'html' %} Z {% endpush %}
{% push 'js' %} Y {% endpush %}
{{ pull }}
</body> </html>

My rendered output is below:

<html> <head></head> <body> <h1>Test template</h1>
name = hyper testing jinja
date = right now
<!-- moved js_4 from line 4 -->
<!-- moved html_5 from line 5 -->
<!-- moved js_6 from line 6 -->
{'js_4': ' X ', 'html_5': ' Z ', 'js_6': ' Y '}
</body> </html>

The Problem happens after I change the template block line number or content.

After changing content and line numbers

<html> <head></head> <body> <h1>Test template</h1>
{% push 'js' %} ABC {% endpush %}

{% push 'html' %} Z {% endpush %}

{% push 'js' %} 123{% endpush %}
{{ pull }}
</body> </html>

Render changed blocks now has prior content

<html> <head></head> <body> <h1>Test template</h1>
name = hyper testing jinja
date = right now
<!-- moved js_4 from line 4 -->

<!-- moved html_7 from line 7 -->

<!-- moved js_9 from line 9 -->
{'js_4': ' X ABC', 'html_5': ' Z ', 'js_6': ' Y ','js_9':'123','html_7':'Z'}
</body> </html>

This issue causes duplicate content to be added into the response.

Is there a way to call the extension on ever page request to re-parse the template for new changes? or Possible to not cache the enclosed extension blocks?

I have already tried adding the code below to auto reload templates but does not help the issue.

app.jinja_env.auto_reload = True

Environment

Python version: 3.6

Flask version:0.10

Werkzeug version:0.12.2

Issue 2:
Duplicate: Sorry

I can't download the documentation ether pdf of zip file from flask website.

Djoudi
Issue 1:
Rusty Weneck opened SPR-6951 and commented

When determining which method of a controller to invoke it can be important to not decode url encodings, especially if the data on the REST request path contains the / (forward slash) character. However once this data is passed to the method as a parameter it would be nice to have it restored to its original encoding. I propose adding an additional boolean which optionally url decodes the return value from AnnotationMethodHandlerAdapter.ServletHandlerMethodInvoker.resolvePathVariable . This issues is particularly tricky as AnnotationMethodHandlerAdapter.ServletHandlerMethodInvoker is a private inner class and cannot easily be overridden.

Affects: 3.0.1

Attachments:

AnnotationMethodHandlerAdapter.patch (3.43 kB)

Issue Links:

#13736 Decode URI variable values when UrlPathHelper.setUrlDecode() is set to false ("duplicates")

Referenced from: commits 0105c5e

Issue 2:
Keith Donald opened SPR-6858 and commented

Since Spring 3 targets Java 5, I wouldn't expect to need SimpleJdbcTemplate anymore. I'd expect Java 5 functionality to be incorporated in the base JdbcTemplate so I could take advantage of simplifications there without having to bring in another class. Then I would only ever want to work with JdbcTemplate.

The most useful feature of SimpleJdbcTemplate not in JdbcTemplate is the ability to specify args using var args.

Affects: 3.0 GA

Issue Links:

#11522 Could SimpleJdbcTemplate/Operations/DaoSupport be deprecated now? ("is duplicated by")

Referenced from: commits c39b529
Issue 1:
I noticed my Bonfires have stopped saving my work after Basic Algorithms #9

Challenge http://freecodecamp.com/challenges/bonfire-repeat-a-string-repeat-a-string has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-find-the-longest-word-in-a-string has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The code editor does not update with the code changes.

The editor retains the code I originally entered, which is not correct. I corrected my code, and passed the challenge. It gave me the success message, and incremented my task counter, but when I return to this page, it still has my original, incorrect code.
Issue 1:
Description

How can I [...]?

Is it possible to [...]?

Additional context

Add any other context or screenshots about the feature request here.

Issue 2:
First check

I added a very descriptive title to this issue.

I used the GitHub search to find a similar issue and didn't find it.

I searched the FastAPI documentation, with the integrated search.

I already searched in Google "How to X in FastAPI" and didn't find any information.

I already read and followed all the tutorial in the docs and didn't find an answer.

I already checked if it is not related to FastAPI but to Pydantic.

I already checked if it is not related to FastAPI but to Swagger UI.

I already checked if it is not related to FastAPI but to ReDoc.

After submitting this, I commit to:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.

Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.

Implement a Pull Request for a confirmed bug.

Example

I propse to allow transforming:

from typing import Optional

from fastapi import Depends, FastAPI

app = FastAPI()

async def common_parameters(q: Optional[str] = None, skip: int = 0, limit: int = 100):
return {"q": q, "skip": skip, "limit": limit}

@app.get("/items/")
async def read_items(commons: dict = Depends(common_parameters)):
return commons

to

from typing import Annotated, Optional

from fastapi import Depends, FastAPI

app = FastAPI()

async def common_parameters(q: Optional[str] = None, skip: int = 0, limit: int = 100):
return {"q": q, "skip": skip, "limit": limit}

@app.get("/items/")
async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
return commons

Discussion

PEP 593 Added Annotated for adding additional annotations beyond type annotations. I think FastAPI's Depends, Query, Body and the likes fit well with the kind of additional annotations this supports.

This would also make default values less awkward:

@app.get("/items/")
async def read_items(q: Optional[str] = Query(None, max_length=50)):
pass

Could become

@app.get("/items/")
async def read_items(q: Annotated[Optional[str], Query(max_length=50)] = None):
pass

This will also solve the issue mentioned in the docs of parameter ordering.

Finally, it is sometimes convenient to use the same function as both a FastAPI dependency and a regular function. In these cases, because = Depends(...) is a default parameter value, if you forget to pass a parameter the error is not caught by your IDE. Worse, it is not caught at runtime because Python will just pass along the Depends object. This will probably cause an error down the road, but may silently succeed in some cases.

I'm willing to implement this if you think it's a good idea.