WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Vue.js version

2.0.2

Reproduction Link

http://codepen.io/anon/pen/WGyrdz

Steps to reproduce

Just load up the page in edge or internet explorer (11) with your console open. Vue will display the warning "duplicate attribute: class".

When removing the class attribute, the warning goes away.

What is Expected?

No warnings :). I expect vue to use both the regular class attribute and the :class attribute and merge them together into the class attribute.

Issue 2:
What problem does this feature solve?

利用keep-alive结合compontent，实现切换tab的效果。但是有多个tab用同一个组件的情况，我加了key做区分，如下：

<component :is="currentTabComponent" :key="moduleId" ></component>

这样，可以缓存这些使用同一个组件的tab。问题是，删除tab时，用include只能匹配组件的name或注册名，并不能区分使用相同组件的tab。

然后我用$desytoy销毁，再次创建时又会有组件不断created，缓存不了的现象。

有什么办法解决这种场景吗？

What does the proposed API look like?

include中是否可以把key带进去，区分组件相同key不同的缓存实例
Issue 1:
Context:

Playwright Version: [0.11.1]

Operating System: [Mac Catalina]

package.json

{ "dependencies": { "playwright": "^0.11.1" } }

test.js

const playwright = require('playwright');

(async () => {

for (const browserType of ['chromium', 'firefox', 'webkit']) {

const browser = await playwright[browserType].launch({ headless: false });

const context = await browser.newContext();

const page = await context.newPage();

await page.goto('http://whatsmyuseragent.org/');

await page.screenshot({ path:output/example-${browserType}.png });

await browser.close();

}

})();

With default settings and for any browser if launch tests with parameter launch({ headless: false }) can see double window/tab. Its kinda strange

Issue 2:
Version: d367a2e (current master)

When running this script it opens two pages (and I think two contexts)

one after chromium.launch

the other after context.newPage

const { chromium, devices } = require("playwright");
const iPhone = devices["iPhone 6"];

(async () => {
const browser = await chromium.launch({ headless: false });
const context = await browser.newContext({
viewport: iPhone.viewport,
userAgent: iPhone.userAgent
});
const page = await context.newPage();
})();

I would like to close the page opened by chromium.launch, or skip opening it in the first place. Since it is confusing to have a blank page that is not in use (https://github.com/qawolf/qawolf/issues/395).
Issue 1:
Seen on current main in job ci/circleci: refguide_check:

===================
scipy.sparse.linalg
===================

scipy.sparse.linalg.svds
------------------------

File "build-install/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/_svds.py", line 280, in svds
Failed example:
s_a(u2[:, :1], u[:, :1]) + s_a(u2[:, 1:], u[:, 1:]) > 1e-3
Expected:
True
Got:
array([False])

File "build-install/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/_svds.py", line 283, in svds
Failed example:
(s_a(vT2[:1, :].T, vT[:1, :].T) +
s_a(vT2[1:, :].T, vT[1:, :].T)) > 1e-3
Expected:
True
Got:
array([False])

ERROR: refguide or doctests have errors

Both are potentially only marginal tolerance violations, AFAICT.

An old similar issue I found while searching for this: #16900

Issue 2:
Describe your issue.

Lately I have seen the refguide job failing in CI multiple times in some sparse svd section: https://app.circleci.com/pipelines/github/scipy/scipy/19755/workflows/7be1af01-79dc-459c-92c4-d4a6d72c2471/jobs/66447

Thought I would raise attention with a separate issue.

Slightly related: it looks like the Fortran sparse SVD libraries are very painful to maintain. One unfortunately license incompatible alternative could be Spectra, ARPACK rewritten in C++. Are there any thoughts on replacements for the old PACKs?

Reproducing Code Example

N/A

Error message

File "build-install/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/_svds.py", line 280, in svds
Failed example:
s_a(u2[:, :1], u[:, :1]) + s_a(u2[:, 1:], u[:, 1:]) > 1e-3
Expected:
True
Got:
array([False])

File "build-install/lib/python3.9/site-packages/scipy/sparse/linalg/_eigen/_svds.py", line 283, in svds
Failed example:
(s_a(vT2[:1, :].T, vT[:1, :].T) +
s_a(vT2[1:, :].T, vT[1:, :].T)) > 1e-3
Expected:
True
Got:
array([False])

SciPy/NumPy/Python version and system information

N/A
Issue 1:
**I'm submitting a bug report **

[x] bug report
[ ] feature request
[ ] support request

Current behavior

Unable to create custom TypeScript decorators when using AoT compiler.

Reproduce steps:

Create new angular-cli project.

Run project using: ng serve --port 3000 (serve without AoT)

Create a new decorator and use it in one of the Components:

function test(props: any) {
return function(target: any) {
console.log("Running decorator...", props, target);
}
}

@Component({
template: "Hello!"
})
@test({})
class MyComponent {
// ...
}

Note that the logic of the decorator works great and executed (printed to the browser's log).

Now close the cli, and run again, now the command: ng serve --aot --port 3000 (serve with AoT)

The decorator is stripped from the Component and the logic of the decorator does not executed.

The generated factory file contain the actual decorator logic, but it does not execute it when creating the Component.

Tried to change angularCompilerOptions and change skipMetadataEmit - but still the same.

When running with JIT compiler all works, only AoT compiler causes problems.

Expected behavior

The decorator should execute when using AoT compiler.

Minimal reproduction of the problem with instructions

In the description above.

What is the motivation / use case for changing the behavior?

Same compiler behavior for AoT and regular compiler.

Please tell us about your environment:

Dotans-MacBook-Pro:~ dotansimha$ ng --version
angular-cli: 1.0.0-beta.19-3
node: 6.9.1
os: darwin x64

Angular version: 2.1.0

Browser: all

Language: all / TypeScript?

Node (for AoT issues): node --version =

Dotans-MacBook-Pro:~ dotansimha$ node --version
v6.9.1
Dotans-MacBook-Pro:~ dotansimha$ npm --version
3.10.8
Dotans-MacBook-Pro:~ dotansimha$ watchman --version
4.7.0

Issue 2:
Right now, we have to specify the attribute name as a parameter of the @Attribute decorator.

@Directive({selector: 'input})
class Component {
constructor(@Attribute('type') private type:String, private element:ElementRef){
if(type === 'date') {
}
}
}

It would be very interesting to be able to specify this attribute name directly by naming correctly the corresponding parameter, in order to avoid duplicates code.

So for example :

@Directive({selector: 'input})
class Component {
constructor(@Attribute() private type:String, private element:ElementRef){
if(type === 'date') {
}
}
}

What do you think ?
Issue 1:
The code for data-toggle="buttons" doesn't listen for change events. If the underlying radio/checkbox is changed by other code and fires a change event the .active class remains as-is.

Issue 2:
Maybe I'm doing something wrong, but when I use the btn-group with the radio input type and then set the input checked value, the toggle button state doesn't become active.

<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary">
<input type="radio" name="options" id="option1"> Option 1
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="option2"> Option 2
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="option3"> Option 3
</label>
</div>

And here's the script.

$('#option1').prop('checked', true);

Should I expect that the button's data-toggle would be subscribed to the input checked state changing and update it's active state?
Issue 1:
The Flask Doc Download link mentioned below are broken

http://flask.pocoo.org/docs/flask-docs.pdf

http://flask.pocoo.org/docs/flask-docs.zip

Issue 2:
Expected Behavior

For the server to start correctly, this code used to work before 1.1.2.

from pathlib import Path

ui_dist_dir = Path(__file__).parent / "ui" / "public"
app = Flask(__name__, static_folder=ui_dist_dir, static_url_path="/static", template_folder=ui_dist_dir)

I'm not sure if it was intended to be used with pathlib before but since python2 support is being dropped I think it would make a lot of sense to support. I would even say that instead of manually replacing slashes in strings, it would be a good idea to use pathlib internally and not duplicate that logic in Flask.

Actual Behavior

Traceback (most recent call last):
File "/opt/spike/server/envs/default/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/spike/server/envs/default/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/spike/server/spike/start.py", line 140, in <module>
start()
File "/opt/spike/server/spike/start.py", line 64, in start
app = Flask(__name__, static_folder=ui_dist_dir, static_url_path="/static", template_folder=ui_dist_dir)
File "/opt/spike/server/envs/default/lib/python3.7/site-packages/flask/app.py", line 420, in __init__
self.static_folder = static_folder
File "/opt/spike/server/envs/default/lib/python3.7/site-packages/flask/helpers.py", line 1004, in static_folder
value = value.rstrip("/\\")
AttributeError: 'PosixPath' object has no attribute 'rstrip'

Environment

Python version: 3.7.4

Flask version: 1.1.2

Werkzeug version: 0.16.1
Issue 1:
Currently if a compute node receives a duplicate request it just does the same query twice. Should be pretty easy to keep track of in progress queries and if a dup comes in block the request until the results are cached (pretty much all read through caches do this)

Issue 2:
CachingCostBalancerStrategyFactory registers callbacks in its start() method, which is problematic since any callbacks that happen between start of ServerInventoryView and BalancerStrategyFactory will be missed. Inventory view callbacks should generally be registered in constructors, not in start methods.

I discovered this when trying to test the cachingCost balancer on a cluster that has a small number of segments, and found that it missed the initialization callback (happened too fast) so it refused to create itself.

cc: @dgolitsyn @leventov
Issue 1:
When using Atom (0.138.0 from zip download) on german Windows 7 with german keyboard layout the backslash (\) is entered with the AltGr+ß combination. In atom this does not enter the character in the text but swallow the keypress. AltGr+q (which produces the at (@) is also ignored).

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
Code Sample, a copy-pastable example if possible

Your code here

import sqlite3

import pandas as pd

cnx = sqlite3.connect('database.sqlite')

df = pd.read_sql_query("SELECT * FROM Player_Attributes", cnx)

#### Problem description
AttributeError: module 'pandas' has no attribute 'read'

**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on `master` here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

#### Expected Output

#### Output of ``pd.show_versions()``

<details>

[paste the output of ``pd.show_versions()`` here below this line]

</details>

Issue 2:
Struggled with this for a while to work out why I was getting TypeError: incompatible index of inserted column with frame index when doing df['new_col'] = my_series.

Turns out the the series had duplicates in its index. This occured because I was importing a CSV and then setting the index. Perhaps we need a warning when setting an index with duplicate values?

In [2]: df = pd.DataFrame({'foo':['a', 'b', 'c'], 'bar':[1,2,3], 'baz':['d','e','f']}).set_index('foo')

In [3]: df
Out[3]:
bar baz
foo
a 1 d
b 2 e
c 3 f

[3 rows x 2 columns]

In [5]: ser = pd.DataFrame({'foo':['a', 'b', 'c', 'a'], 'fiz':['g','h','i','j']}).set_index('foo')

In [6]: ser
Out[6]:
fiz
foo
a g
b h
c i
a j

[4 rows x 1 columns]
In [8]: df['newcol'] = ser
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-a8d535085de2> in <module>()
----> 1 df['newcol'] = ser

C:\WinPython-64bit-2.7.5.2\python-2.7.5.amd64\lib\site-packages\pandas-0.13.1-py2.7-win-amd64.egg\pandas\core\frame.pyc in __setitem__(self, key, value)
1885 else:
1886 # set column
-> 1887 self._set_item(key, value)
1888
1889 def _setitem_slice(self, key, value):

C:\WinPython-64bit-2.7.5.2\python-2.7.5.amd64\lib\site-packages\pandas-0.13.1-py2.7-win-amd64.egg\pandas\core\frame.pyc in _set_item(self, key, value)
1965 is_existing = key in self.columns
1966 self._ensure_valid_index(value)
-> 1967 value = self._sanitize_column(key, value)
1968 NDFrame._set_item(self, key, value)
1969

C:\WinPython-64bit-2.7.5.2\python-2.7.5.amd64\lib\site-packages\pandas-0.13.1-py2.7-win-amd64.egg\pandas\core\frame.pyc in _sanitize_column(self, key, value)
2008 value = value.reindex(self.index).values
2009 except:
-> 2010 raise TypeError('incompatible index of inserted column '
2011 'with frame index')
2012

TypeError: incompatible index of inserted column with frame index
Issue 1:
Steps to reproduce and a minimal demo of the problem

http://plnkr.co/edit/IAMpyeJl9rQlAcEFPoRs?p=preview

What steps should we try in your demo to see the problem?

put some input longer than 2 characters in the first input

try to put some input longer than 2 characters in the second input

Current behavior

HTML5 specifies a number of validation attributes for form elements that browsers are able to interpret to various effects. These are useful for things like restricting input length (maxLength) and for doing DOM queries (e.g. find all required input elements).

Currently, Angular2 applies validation for a number of these attributes if they are applied in the form template. However, when forms are built using FormBuilder, validation is defined in the ControlMeta object and not as attributes on the form elements. ngControl does not apply these validations as attributes to the host element, so when FormBuilder is used, either these attributes will not get defined and therefore the browser's HTML5 validation behavior will not be in effect or validation constraints must be duplicated in the form templates and ControlMeta.

Expected/desired behavior

I think it would be useful to have the ngControl directive manage HTML5 validation attributes on the host form element based on the validators applied to the Control object.

Other information

Issue 2:
npm install is failing on a change done on May 1st is causing all fresh/clean checkouts to fail

Reproduced by

First Bad (you can also use master(as of 9f784dc)) check in that appeared in history (note you will never see this error if you already have build from a previous version)

rm -rf node_modules;
git checkout a66cdb469f56f8ebab2e5f2e44d59b53effd0489;
npm install

it stops with the message

< angular-srcs@2.0.0-beta.17 preinstall angular

< node tools/npm/check-node-modules

:-( npm dependencies are stale or in an in unknown state!

Last Good npm install

rm -rf node_modules
git checkout 4fe0f1fa655717fd49045dedaebc8b1100f11238
npm install

produces at the same lines

< angular-srcs@2.0.0-beta.17 preinstall angular
< node tools/analytics/build-analytics start install npm3-install && node tools/analytics/build-analytics start install npm-preinstall && node tools/npm/check-node-modules && node tools/analytics/build-analytics success install npm-preinstall && node tools/analytics/build-analytics start install npm-install-net

:-( npm dependencies are stale or in an in unknown state!

(so tools/analytics/build-analytics is never fired) which makes sense as someone was working with repackaging and must of buggered it up

a66cdb4: "repackaging: all the repackaging changes squashed"
Issue 1:
Julia has a few setting that can controlled through environmental variables. Most of these settings are undocumented in the manual. From a cursory scan of Julia base these seem to be the available environmental variables settings for Julia:

JULIA_HISTORY
JULIA_CPU_CORES
JULIA_LOAD_PATH
JULIA_WORKER_TIMEOUT
JULIA_EDITOR
JULIA_SHELL
JULIA_DEBUG_LOADING
JULIA_INPUT_COLOR
JULIA_ANSWER_COLOR
JULIA_ERROR_COLOR
JULIA_WARN_COLOR
JULIA_INFO_COLOR
JULIA_STACKFRAME_LINEINFO_COLOR
JULIA_STACKFRAME_FUNCTION_COLOR

Issue 2:
It would be useful to have a doc section on envvars, seeing as we're starting to get more of them (that are quite useful as well!) Things like JULIA_PKGDIR, JULIA_LOAD_PATH (once #5425 is merged), JULIA_HOME, JULIA_CPU_CORES, JULIA_EDITOR, etc...
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.815]
PowerToys version: v0.17.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Settings

Steps to reproduce

Install a previous version (I had v0.16.1)

Enable "Always run as administrator"

Update PowerToys

Expected behavior

In version 0.16.1 my PC would boot and PowerToys would load in the background

Actual behavior

Every time I boot my PC I get a UAC promt asking me if I'll grant PowerToys admin privileges

Issue 2:
When PowerToys is started on windows startup an uac dialog is popping up.

I checked the wiki (https://github.com/microsoft/PowerToys/wiki/Release-check-list) this should not be the case.

UAC level on my machine is default.

PowerToys is running as admin.

Always run as admin is on.

Windows build number: 10.0.18363.720

PowerToys version: 0.16.1
Issue 1:
Deno lint in 1.4.0 is flagging this piece of code unreachable.

switch (token) {
case "auto":
return i + "width: auto;" + nl;
case "full":
return i + "width: 100%;" + nl;
case "screen":
return i + "width: 100vw;" + nl;
case "min-content":
return i + "width: -webkit-min-content;" + nl +
i + "width: -moz-min-content;" + nl +
i + "width: min-content;" + nl;
case "max-content":
return i + "width: -webkit-max-content;" + nl +
i + "width: -moz-max-content;" + nl +
i + "width: max-content;" + nl;
}

return i + "width: " + calcUnit(token) + ";" + nl;

Specifically the last line. As a switch without a default, it would fall through the switch to the bottom return statement.

This get's flagged as part of no-unreachable rule.

Issue 2:
Previous related issues:

#6559

#7615 (marked as duplicate of 6559)

These seem to be considered resolved via the -j flag implemented by #9815.

-j is definitely a welcome improvement. However, it's only enabling separate test files to run parallel. I believe instead the expectation is that parallelism be supported within the same file. In any case, I would like to request this feature.

For example:

// test/blah.ts

Deno.test("foo", async () => {
console.log("start foo");
await new Promise((resolve) => setTimeout(resolve, 1000));
console.log("end foo");
});

Deno.test("bar", async () => {
console.log("start bar");
await new Promise((resolve) => setTimeout(resolve, 1000));
console.log("end bar");
});

Running with -j4:

$ deno test -j4 test/blah.test.ts
running 2 tests from file:///home/voltrevo/workspaces/ethf/aggregator/test/blah.test.ts
start foo
end foo
test foo ... ok (1008ms)
start bar
end bar
test bar ... ok (1006ms)

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (2031ms)

If parallelism was enabled between these tests, we should expect output more like this:

running 2 tests from file:///home/voltrevo/workspaces/ethf/aggregator/test/blah.test.ts
start foo
start bar
end foo
test foo ... ok (1008ms)
end bar
test bar ... ok (1006ms)

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (1031ms)

(Implementing this might be considered a breaking change, requiring a new flag, perhaps -jj.)

Can you confirm that this kind of parallelism is not yet supported or advise how to enable it?

If it's not supported, are there any intentions to implement this?

(It's also possible to enable this kind of concurrency for synchronous tests, by running a first pass to identify test names and then running separate processes with different filters. Can this also be considered?)
Issue 1:
I'm trying to upgrade from legacy version 2.0.3 -> Sharding-JDBC 4.0.0-RC1, here I have many compatibility issue, such as:

FORCE INDEX will cause BAD SQL.

LIMIT NOT WORKING with sum etc.

so I am wondering how much SQL test case is included in this project?

Issue 2:
version: sharding proxy 5.0.0

yml:

schemaName: sharding_db

dataSourceCommon:

username: root

password: 123456

connectionTimeoutMilliseconds: 30000

idleTimeoutMilliseconds: 60000

maxLifetimeMilliseconds: 1800000

maxPoolSize: 50

minPoolSize: 1

maintenanceIntervalMilliseconds: 30000

dataSources:

ds1:

url: jdbc:mysql://192.168.255.115/testdb1?serverTimezone=UTC&useSSL=false&characterEncoding=utf8

ds1_slave:

url: jdbc:mysql://192.168.255.116/testdb1?serverTimezone=UTC&useSSL=false&characterEncoding=utf8

ds2:

url: jdbc:mysql://192.168.255.115/testdb2?serverTimezone=UTC&useSSL=false&characterEncoding=utf8

ds2_slave:

url: jdbc:mysql://192.168.255.116/testdb2?serverTimezone=UTC&useSSL=false&characterEncoding=utf8

rules:

!SHARDING

tables:

t_order:

actualDataNodes: ms_ds${1..2}.t_order${1..2}

databaseStrategy:

standard:

shardingColumn: uid

shardingAlgorithmName: database_inline

tableStrategy:

standard:

shardingColumn: id

shardingAlgorithmName: t_order_inline

keyGenerateStrategy:

column: id

keyGeneratorName: snowflake

bindingTables:

t_order

broadcastTables:

t_user

t_org

defaultDatabaseStrategy:

none:

defaultTableStrategy:

none:

shardingAlgorithms:

database_inline:

type: INLINE

props:

algorithm-expression: ms_ds${uid % 2+1}

t_order_inline:

type: INLINE

props:

algorithm-expression: t_order${order_id % 2+1}

keyGenerators:

snowflake:

type: SNOWFLAKE

props:

worker-id: 123

!REPLICA_QUERY

dataSources:

ms_ds1:

primaryDataSourceName: ds1

replicaDataSourceNames:

- ds1_slave

loadBalancerName: ROUND_ROBIN

ms_ds2:

primaryDataSourceName: ds2

replicaDataSourceNames:

- ds2_slave

loadBalancerName: ROUND_ROBIN

##############################################

*** when I try to connect the proxy db it misreport:

10002 _ 2Unknown exception [Can not route tables for '[ENGINES]', please make sure the tables are in same schema.]