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

2.5.13

Reproduction link

https://codepen.io/anon/pen/oEGjqO

Steps to reproduce

In Vue if you add elements programmatically, the scoped css is not applied to those elements inside the given .vue file. If you add the styling in the style tag or remove the scoped attribute, it will work.

Example:

<template>
<div class="item"></div>
</template>

<script>
export default{
created(){
const item = document.querySelector(".item");
item.innerHTML = "<div class="box"></div>";
}
</script>
<style scoped>
.box{
width:300px;
height:300px;
background:red
}
</style>

Intended or a bug?

What is expected?

We expect the css to be applied

What is actually happening?

It's not being applied

Issue 2:
When using scoped CSS the styles and the elements are given data- attributes. But when content is added Dynamically it won't have those data- attributes. So the styles are not applying to the dynamic content.

I think it's better to add a data- attribute to the root element of the template and add the styles as the children of that attribute instead of adding attributes to individual elements..
Issue 1:
const bar = (target: any, name: any, value: any) => {
const parentName = target.constructor.name
console.log(parentName)
}
class a {
@bar
public foo() {
}
}

It works. But

const bar = (target: any, name: any, value: any) => {
const parentName = target.constructor.name
console.log(parentName)
// it would be an empty string here!!!!!!!!
}
const log = (target: any) => {}

@log
class a {
@bar
public foo() {
}
}

these code is ok when compile target was ES5, but missing class name when target was ES6

Issue 2:
I have decorator:

export function Document() {
return function(objectConstructor: Function) {
console.log(objectConstructor.name); // when targeting es5 it gives me what I want - the name of my class. When targeting es6 it does not give anything
}
}

Here is decorator usage:

@Document()
export class User {
}

Im using "User" class name to create a document called "User", I need information how class is called. I always used es5, but now when I switched to es6 compile target I dont have information about class name anymore. Is it a bug, or it by design? If second then what is the way to get the class name?
Issue 1:
Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

Go to explore

Create time-series bar chart

Add annotation layer

Set y=constant e.g. y=100 as formula

Expected behavior

A horizontal line at y 100

Screenshots

It adds a bar for each grouped bar instead.

Environment (please complete the following information):

superset-ui version: current

Issue 2:
Hello,

an issue is present on Superset v1.5.2, permissions are duplicated when the display name of database is updated.

Steps to reproduce :

I add a database connection with the display name "ECOSQL_1".

After, I only update the display name to "ECOSQL_2"

I have following permissions :

As you could see permissions "ECOSQL_1" still exist and new permissions "ECOSQL_2" are created rather than updated.

This implies having to redefine the rights when it is only a simple update of the display name of connection.

Thanks for your support.

Best regards
Issue 1:
Hello guys!

Some days ago I was trying to debug a Node.js application written in TypeScript from Visual Studio Code and I had some troubles; then I asked on stackoverflow and shared my code on GitHub.

This is the latest working version, you can download it and debug correctly on Visual Studio Code (by "debug correctly" I mean that you can add a breakpoint on a .ts file and then see the debugger stopping on it) but if you then rename the root folder by adding some spaces in the path (for example changing from "stackoverflow" to "stack overflow") the debugger stops working and when launching it I get the following error:

Cannot launch program 'c:\Users\brutus\Desktop\stack overflow\src\app.ts'; setting the 'outDir' attribute might help.

I think it's a bug but I'm not completely sure, can you confirm please?

Thank you very much, hope this helps! 😄

Issue 2:
We had some team members who could not debug mocha unit-tests and others who could. We tracked the problem down to the path which contained spaces (in our case c:\development next\frontend) . This is probably also the cause of issues #3144 and #3659.

This issue has appeared in the last month, before that, we did not have problems with spaces in the path. We suspect that something is wrong with reading the sourcemaps.
Issue 1:
When I opened atom, I got these errors:

Unable to watch path: config.cson. Make sure you have permissions to /home/ely/.atom/config.cson.

Unable to watch path: keymap.cson. Make sure you have permission to read /home/ely/.atom/keymap.cson.

Unable to watch path: styles.less. Make sure you have permissions to /home/ely/.atom/styles.less.

Unable to watch path: snippets.cson. Make sure you have permissions to the ~/.atom directory and /home/ely/.atom/snippets.cson.

Atom Version: 0.184.0

System: linux 3.13.0-37-generic

OS: Linux Mint 17.1 Cinnamon 64-bit

I installed atom via the deb from the main site. I previously had v0.182.0 installed, then tried to purged it and the configuration files from my system using sudo apt-get purge atom before getting the newer version, but the "/home/ely/.atom" folder was still there, so I don't know if there's also problem with my package manager.

Issue 2:
Uncaught TypeError: Unable to watch path

Atom Version: 0.162.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/main.js:66

TypeError: Unable to watch path
at TypeError (native)
at HandleWatcher.start (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/main.js:66:29)
at /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/main.js:43:25
at Object.oncomplete (fs.js:93:15)
Issue 1:
"connectMode":{"type":"string","index":"not_analyzed"},

connectMode: "12" || "48" || "1" All the results will be listed why?

connectMode: "12" || "48" Results is correct.

connectMode: "1" Results is correct.

"logRank":{"type":"integer","index":"not_analyzed"},

logRank: 1 Results is correct.

logRank: 1 || 2 || 3 All the results will be listed why?

Issue 2:
Describe the feature:

Currently when a painless script cannot be compiled, the error looks something like this:

[2016-11-22T14:16:11,800][WARN ][o.e.s.ScriptService ] [rcl-nas] failed to load/compile script [sensors-count-transform]
org.elasticsearch.script.ScriptException: compile error
...
Caused by: java.lang.IllegalArgumentException: invalid sequence of tokens near [':'].
at org.elasticsearch.painless.Executable$Script.compile(sensors-count-transform.painless:104) ~[?:?]
...

In this case the number 104 is not very helpful in determining the actual location of the error - it would be much more helpful if the error could output the actual line and character number where the syntax error occurred.
Issue 1:
In order to write ']', I need on my french keyboard to type AltGr+° because the ] is made like that.

But this triggers the folding action Alt+Ctr+]...

this is really annoying I can't type] except if I remove the keybinding

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:
#![feature(unsafe_destructor)]
struct A;

impl Drop for A {
fn drop(&mut self) {}
}

struct B<'a> {
a: &'a A,
}

#[unsafe_destructor]
impl<'a> Drop for B<'a> {
fn drop(&mut self) {}
}

impl A {
fn b(&self) -> B {
B { a: self }
}
}

fn main() {
let a = A;
match a.b() {
_ => {}
}
}

test.rs:25:11: 25:12 error: `a` does not live long enough
test.rs:25 match a.b() {
^
test.rs:23:11: 28:2 note: reference must be valid for the destruction scope surrounding block at 23:10...
test.rs:23 fn main() {
test.rs:24 let a = A;
test.rs:25 match a.b() {
test.rs:26 _ => {}
test.rs:27 }
test.rs:28 }
test.rs:24:14: 28:2 note: ...but borrowed value is only valid for the block suffix following statement 0 at 24:13
test.rs:24 let a = A;
test.rs:25 match a.b() {
test.rs:26 _ => {}
test.rs:27 }
test.rs:28 }
error: aborting due to previous error

Adding anything after the match (like ; or ()) causes the error to go away.

cc @pnkfelix

Issue 2:
Found while investigating the remaining wrong case in #32433. Effectively use-after-free.

Can be used to cause a segmentation fault (check out on playpen):

struct Fine<T: std::fmt::Debug>(T);

impl<T: std::fmt::Debug> Drop for Fine<T> {
fn drop(&mut self) {
print!("Fine({:?}) ", self.0);
}
}

enum Evil<'a, T: 'a+std::fmt::Debug> {
None,
Some(&'a Fine<T>)
}

impl<'a, T: std::fmt::Debug> Drop for Evil<'a, T> {
fn drop(&mut self) {
if let Evil::Some(x) = *self {
print!("Evil({:?}) ", x.0);
}
}
}

// Allocates a new 3-usize Box on drop.
struct Dirty;
impl Drop for Dirty {
fn drop(&mut self) {
let _ = Box::new((1usize, 1usize, 1usize));
}
}

fn assign<'a, T: std::fmt::Debug>(x: &mut Evil<'a, T>, _: &Dirty, y: &'a Fine<T>) {
*x = Evil::Some(y);
}

fn main() {
let mut _x = Evil::None;
assign(&mut _x, &Dirty, &Fine(Box::new(vec![1, 2, 3])))
}

The Fine pointee drops before the Evil holding of the pointer, and in between those the destructor of Dirty overwrites the same heap location of the deallocated Box<Vec<i32>> with a different 3-usize Box, causing a segmentation fault on Debug mode and garbage to be printed on Release mode.

EDIT: Works fine even with old trans if there is any sort of block nesting (i.e. only the outermost block of a function has the broken behavior) - check out on playpen.

cc @rust-lang/compiler @rust-lang/lang
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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

the url of the article is "http://dubbo.apache.org/zh-cn/blog/grpc-http2-protobuf.html"

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

Operating System version: Linux

Java version: 1.8

Steps to reproduce this issue

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

What actually happens?

2.6.5的时候没强依赖配置monitor

2.7.7的时候不配置就要报空指针异常了？

If there is an exception, please attach the exception trace:

ConfigValidationUtils 第226行
Issue 1:
Today, I can only use images (files) to create decorations, defining gutterIconPath. It would be interesting also support octicons, maybe the same way that StatusBarItem does:

var myDecorationType = vscode.window.createTextEditorDecorationType({
gutterIconPath: '$(icon-name)'
});

Issue 2:
When pressing Shift Tab with the cursor in the following position, the editor outdents the line. It felt a bit weird when it happened to me. It should be a no-op.

some code | <- cursor
Issue 1:
Hi,

I have come across some unexpected behaviour when using dataclasses mapped to SQLAlchemy using classical mapping.

Here's a snippet with the essence of the issue:

from __future__ import annotations

from dataclasses import dataclass, field

from sqlalchemy import Column, Table, String, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import mapper, sessionmaker

Base = declarative_base()
metadata = Base.metadata

table = Table(
"table",
metadata,
#
Column("id", String, primary_key=True),
Column("active", Boolean),
)

@dataclass
class C:
id: str
active: bool = True

@dataclass
class C1:
id: str
active: bool

@dataclass
class C2:
id: str
active: bool = field(default_factory=lambda: True)

mapper(C, table)
mapper(C1, table)
mapper(C2, table)

Session = sessionmaker()
session = Session()

query = session.query(C)
print(query.filter(C.active == True))
print()

# Result (WRONG)
# SELECT "table".id AS table_id
# FROM "table"
# WHERE true

query = session.query(C1)
print(query.filter(C1.active == True))
print()

# Result: OK
# SELECT "table".id AS table_id, "table".active AS table_active
# FROM "table"
# WHERE "table".active = true

query = session.query(C2)
print(query.filter(C2.active == True))
print()

# Result: OK
# SELECT "table".id AS table_id, "table".active AS table_active
# FROM "table"
# WHERE "table".active = true

So, yes, I have found a workaround (using = field(default_factory=lambda: something) as an initializer instead of just = something), but it doesn't look as good.

Is there some general advice regarding the interaction of dataclasses and SQLAlchemy ORM? (I have also tried with attrs, and got the same issue).

Issue 2:
Migrated issue, originally created by Anonymous

Something I'd love to see is having a one-to-many relation() (non-lazy at least) is to have a dictionary returned instead of a list or scalar, the key being a specified column from the joined table, breaking up the results on lists on the given keys.
Issue 1:
Use ANDROID_SDK_ROOT instead.

https://developer.android.com/studio/command-line/variables.html#envar

If you continue to use it, the following rules apply:

If ANDROID_HOME is defined and contains a valid SDK installation, it's value is used instead of the value in ANDROID_SDK_ROOT.

If ANDROID_HOME is not defined, the value in ANDROID_SDK_ROOT is used.

If ANDROID_HOME is defined but, does not exist or does not contain a valid SDK installation, the value in ANDROID_SDK_ROOT is used instead.

Related(?): #13750

Issue 2:
brew install android-sdk
echo 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' >> ~/.zshrc
source ~/.zshrc
flutter doctor

[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.

ANDROID_HOME is deprecated. The variable is now called ANDROID_SDK_ROOT.
Issue 1:
If I open a tmux session and then use the shortcut "Ctrl+b + %" to add a new vertical window it displays properly. However if I maximize the terminal and then minimize it again to its original size the terminal will freeze for a second and then close without appearing any error message.

This behaviour only happens with vertical windows, and not with horizontal ones.

I don't know if it's a problem of the WSL terminal or tmux itself. I'm new to developping in Windows, so where can I find the log or any information to let you know what is happening with the terminal?

EDIT: I just find out that it happens with tmux and only when you minimize back to its size a terminal which contains many lines or rows. For example if I go to /usr/bin/ and type "ls -l" all the content will show in screen; if I maximize the window then minimize it back to its default size it will crash and close without showing any error. If I do the same operation out of tmux, it displays without any error.

Issue 2:
Environment

Windows 10 Pro 18956 Insider Preview

Steps to reproduce

The option "closeOnExit" will be invalid with only a tab running, and it could be reproduce with multi-tabs running occationally.

Expected behavior

Fix it

Actual behavior

There is an option named "closeOnExit", but it seems to be invalid after inputting exit command, and the windows would not be closed.

Following content is a part of my configuration file about powershell, it might help you to resolve it.

{
"startingDirectory": "%USERPROFILE%",
"guid": "{95e05ea2-6bad-4896-bcdf-a4f96c885cc8}",
"name": "PowerShell",
"background": "#002731",
"colorscheme": "Campbell",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"commandline": "powershell.exe",
"fontFace": "Consolas",
"fontSize": 12,
"acrylicOpacity": 0.5,
"useAcrylic": true,
"closeOnExit": true,
"padding": "0, 0, 0, 0",
"icon": "ms-appdata:///roaming/icons/powershell_32px.png"
}
Issue 1:
I was randomly seeing benchmarks report 0 ns/iter and had no idea why until @alexcrichton clued me in on the 1ms limit per iter. I'd like to add a warning when the initial iteration takes longer than 1ms so the user knows why the benchmark is "failing". Instead of just reporting 0 ns/iter.

I've got a question on the intent of part of the code before I continue trying to make this change.

https://github.com/mozilla/rust/blob/master/src/libextra/test.rs#L1060

if self.ns_per_iter() == 0 {
n = 1_000_000;
} else {
n = 1_000_000 / self.ns_per_iter().max(&1);
}

The .max(&1) seems needless because self.ns_per_iter can only return positive integers and it was just checked for 0. I'm wondering if the line should actually be:

n = (1_000_000 / self.ns_per_iter()).max(&1);

To guarantee at least one iteration is run. If zero iterations is fine, then I'd like to add a check for that and print a warning instead.

Issue 2:
Compiling hyper v0.1.1 (file:///home/manishearth/Mozilla/Git/hyper)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: !generic_bounds.has_escaping_regions()', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_typeck/check/mod.rs:2281

I was trying to use unboxed closures in Hyper, and I came across this.

Here's the commit where it got introduced.

The following MWE also causes the ICE:

#![feature(unboxed_closures)]

pub struct HttpConnector<T = NoSslVerify>(Option<T>);
pub struct NoSslVerify;

impl Fn(&mut u8) -> () for NoSslVerify {
#[inline(always)]
fn call(&self, _: (&mut u8)) {}
}
Issue 1:
Feature Request

Is your feature request related to a problem?

Yes, sometimes. Scaling job on PostgreSQL, the fetched statements include: create table, drop index, create index.

Describe the feature you would like.

Currently, scaling job will be sharded and run concurrently, include preparing target tables (create tables and constraints), so there might be duplicated tables and constraints creation, it might cause error. And there's some strange issue in ShardingSphereDataSource metadata when creating index just after creating table, it's still not resolved.

Possible solution:

Limit concurrency, make sure there's only one thread to do create tables and constraints at the same time, other threads should ignore creating tables and constraints. But it should support retry of creation in case of scaling job restarting.

We could try PipelineSimpleLock for now.

Issue 2:
Which version of Sharding-Jdbc do you using?（您使用的Sharding-Jdbc版本为？）

2.0.3

Expected behavior （您预期的结果是）

shardingjdbc datasource能否针对非路由的表，sql解析时不做兼容性检查

Actual behavior （实际运行的结果是）

shardingjdbc datasource针对非路由的表，sql解析时会对不兼容的sql报错

Steps to reproduce the behavior （可重现问题的操作步骤）

shardingjdbc datasource针对非路由的表，sql解析时会对不兼容的sql报错

Please provide the reproduce example codes (such as github link)，otherwise we will label the issue as Invalid and close it.（为了节省复现问题的时间，请务必提供可重现的代码，否则我们会将issue直接标记为invalid并关闭）

shardingjdbc datasource能否针对非路由的表，sql解析时不做兼容性检查

<select id="find" resultMap="baseResultMap">
select * from t_order
where count_date>=#{from,jdbcType=TIMESTAMP}
and count_date &lt; #{to,jdbcType=TIMESTAMP}
and (status is null or satus='FALSE')
</select>
<sharding:complex-strategy id="orderTableShardingStrategy" sharding-columns="id,count_date,systemflowid" algorithm-class="io.shardingjdbc.exampleExt.spring.namespace.mybatis.algorithm.PreciseTableComplexShardingAlgorithm"/>
<sharding:none-strategy id="orderTableNoneShardingStrategy" />

<sharding:data-source id="shardingDataSource">
<sharding:sharding-rule data-source-names="demo_ds4sharding" default-data-source-name="demo_ds4sharding" default-table-strategy-ref="orderTableNoneShardingStrategy">
<sharding:table-rules>
<sharding:table-rule logic-table="logic_t_order" actual-data-nodes="demo_ds4sharding.t_order_${['2018','2019']}${['01','02','03','04','05','06','07','08','09','10','11','12']}"
table-strategy-ref="orderTableShardingStrategy" />
</sharding:table-rules>
<sharding:binding-table-rules>
<sharding:binding-table-rule logic-tables="logic_t_order"/>
<!--<sharding:binding-table-rule logic-tables="t_order, t_order_item"/>-->
</sharding:binding-table-rules>
</sharding:sharding-rule>
<sharding:props>
<prop key="sql.show">true</prop>
</sharding:props>
</sharding:data-source>

Code should based on https://github.com/shardingjdbc/sharding-jdbc-example

（代码请基于 https://github.com/shardingjdbc/sharding-jdbc-example）
Issue 1:
Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

- Az Component Version ---> AZ 2.5.0 and AZ 2.8.0;
- PowerShell Version ----> 5.1.18362.145
- Windows Terminal Version ----->0.6.2951.0
- Windows Version ------->10.0.18362

Any other software?

Steps to reproduce

I Install the Az Component(AZ 2.5.0 and AZ 2.8.0) in my PowerShell and i run the command Connect-AzAccount .

Expected behavior

The Expected behavior is run command to open website microsoft.com/deviceslogin or open a webpage to log in my account Azure.I opened the powershell window and repeated the process and the result is login with sucess in my Azure Account

Actual behavior

The Terminal is processing in process about 10 mint, and no ansewered

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18965.1000]
Windows Terminal version (if applicable): Version: 0.4.2382.0

Steps to reproduce

Open an Azure Cloud Shell with a column width of <= 90

Expected behavior

The following message should appear:

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <code> to authenticate.

Actual behavior

The text of the message, including the code required for input at url, is cutoff and no way to get the terminal to repaint/provide the code again. Only solution is to increase width of window and open another tab to get the code.

Is it possible to apply a wordwrap to that initial message?
Issue 1:
A POST request changed to GET request when the Request object got 3xx answer from server.

I don't know the RFC exactly, but the expected result would be that request repeat as POST at new URL.

Here is the code:

r = requests.post("http://foobar.com/script", data={'foo': 'bar'})

The server answer:

HTTP/1.1 302 Found
Date: Thu, 15 Feb 2018 10:42:16 GMT
Server: Apache/2.4.25 (Debian)
Location: https://foobar.com/script
Content-Length: 222
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>

Then Request repeats the request as GET.

Debian Linux 9.3

Python3 (3.5.3)

Apache2.4 (the server where Request sends the request)

>>> requests.__version__
'2.12.4'

I've changed the url to https schema, then it works.

Issue 2:
Summary.

Basically HTTP 301 redirection replaces POST method with a GET.

More Info: https://softwareengineering.stackexchange.com/questions/99894/why-doesnt-http-have-post-redirect

Need an config option in python requests to override this behavior and follow redirect method after http redirection.

Thanks

Raja