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

I build dashboards on a “dev” instance, export them, and import the archive on the “prod” one; all via CLI.

I grant access to these dashboards to certain roles using RBAC — i.e. I edit dashboard properties and add one (or more) user group(s) to the “Role” selector (e.g. guest in the example below):

However, the dashboard's YAML file in the export does not include any mention of the role(s) I grant access to.

So I then need to grant access to these roles again, after the exported archive get imported on “prod”.

Wished solution

I would like that the imported dashboards grant the same RBAC authorisations as their exported counterpart.

Practically, this means that I would like to:

be able to track RBAC roles on the YAML file of an exported dashboard,

be able to set RBAC roles of an imported dashboard, based on the imported YAML file data.

Alternative

Manual work… but I'm afraid I'm lazy 😉

Additional context

Both dev and prod are running Superset 1.3.2, alongside the following feature flags:

FEATURE_FLAGS = {
"VERSIONED_EXPORT": True,
"DASHBOARD_RBAC": True,
}

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

23.3

Expected results

Dashboard with chart inside

Actual results

When I create a new dashboard it appears empty, to circumvent this problem I have to add manually [] in the "Position JSON" field.

Steps to reproduce

Create a new dashboard or create a new chart and add to a new dashboard
Issue 1:
issue/a/a.go:

package a

/*
static long long mod(long long a, long long b) { return a % b; }
*/
import "C"

func F(a, b int64) int64 {
return int64(C.mod(C.longlong(a), C.longlong(b)))
}

issue/b/b.go exactly the same except "package b" instead of "package a".

issue/main.go:

package main

import (
"fmt"

"issue/a"
"issue/b"
)

func main() {
fmt.Println(a.F(1, 1), b.F(1, 1))
}

GOARCH=386 go build issue

# issue
/var/tmp/go-link-0Vel41/000001.o: In function `__moddi3':
(.text+0x70): multiple definition of `__moddi3'
/var/tmp/go-link-0Vel41/000000.o:(.text+0x70): first defined here
collect2: error: ld returned 1 exit status
/home/iant/go/pkg/tool/linux_amd64/8l: running gcc failed: unsuccessful exit status 0x100

The problem is that for GOARCH=386 both object files require __moddi3. The go command links both cgo objects against libgcc, because of issue #3261. So both object files define __moddi3, and the linker complains.

On systems that support external linking, which I think is everything but Windows, it should no longer be necessary to link libgcc into each cgo object file. Unless, of course, the standard packages that use cgo (net, crypto/x509) use a libgcc function.

Issue 2:
This issue perplexes me to the point that I'm not able to reproduce it using a minimal
example.

andlabs/ui#29
A bunch of people have reported in my GUI package (github.com/andlabs/ui) is spitting
out numerous errors such as

github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/1124)
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/1081)
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/1031)
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/982)

during the executable link process.

What Wessie in #go-nuts and myself have gathered is:

- this happens with any configuration of gcc 4.9.x from MinGW-w64
- this happens on real Windows, not with the Linux cross-compilers
- Windows version doesn't matter (I've confirmed this with the Windows 10 Technical
Preview)

As mentioned, I tried writing several different possible minimal examples, but none of
them have exhibited this problem.

Thanks...
Issue 1:
I’m having an issue using the prediction probabilities for sparse SVM, where many of the predictions come out the same for my test instances. These probabilities are produced during cross validation, and when I plot an ROC curve for the folds, the results look very strange, as there are a handful of clustered points on the graph. Here is my cross validation code, I based it off of the samples on the scikit website:

skf = StratifiedKFold(y, n_folds=numfolds)

for train_index, test_index in skf:
#split the training and testing sets
X_train, X_test = X_scaled[train_index], X_scaled[test_index]
y_train, y_test = y[train_index], y[test_index]

#train on the subset for this fold
print 'Training on fold ' + str(fold)
classifier = svm.SVC(C=C_val, kernel='rbf', gamma=gamma_val, probability=True)
probas_ = classifier.fit(X_train, y_train).predict_proba(X_test)

#Compute ROC curve and area the curve
fpr, tpr, thresholds = roc_curve(y_test, probas_[:, 1])
mean_tpr += interp(mean_fpr, fpr, tpr)
mean_tpr[0] = 0.0
roc_auc = auc(fpr, tpr)

I’m just trying to figure out if there’s something I’m obviously missing here, since I used this same training set and SVM parameters with libsvm and got much better results. When I used libsvm and printed out the distances from the hyperplane for the CV test instances and then plotted the ROC, it came out much more like I expected, and a much better AUC. Since the decision_function() method is not supported for sparse matrices, I cannot recreate this functionality in scikit, and therefore have to rely on the prediction probabilities.

There are 20k instances total, 10k positive and 10k negative, and I'm using 5-fold cross-validation. In the cross-validation results, there are several prediction values for which there are 1k-2k samples that all have the same prediction value, and there are only 3600 distinct prediction values over all of the folds for cross-validation. The resulting ROC looks like five big stair steps, with some little bits of fuzziness around the inner corners.

I have many sparse features, so I'm hashing those into index ranges for different types of feature subsets, so one feature subset will be in the index range 1 million to 2 million, the next will be in the range 2 million to 3 million, etc.

Issue 2:
Add a test for the following:

A sample weight of 2 (3, 4, 5, n) on a given sample should have the same effect as placing this sample 2 (3, 4, 5, n) times in the data. This should hold for many estimators, especially those that fully optimize a convex loss.
Issue 1:
When maximized and then exited, it saves the sizes and not the maximization. And it ends up opening un-maximized, but with the maximized sizes.

Correct behaviour should be: If maximized, use the value of last resize before maximization, but also flag the maximization.

On Windows, resizing due to Aero-Snap behaviors should be not be saved, and ignored. Similar behavior to maximization has to be used for correctness.

Issue 2:
This error shows up when I save/close a file or for some files when I switch to that tab.

v0.103.0 on Mac OS X 10.9.3 with the react editor enabled.

Uncaught Error: spawn ENOENT util.js:682 exports._errnoException
util.js:682 ChildProcess._handle.onexit
child_process.js:857 (anonymous function)
child_process.js:1005
_tickCallback node.js:605
Issue 1:
when i use the javatype of LocalDateTime mapped to sql timestamp，the resultset can not call LocalDateTimeTypeHandler rightly to finish converting, framework throws ' java.sql.SQLFeatureNotSupportedException: getObject with type'，i wonder why?

Issue 2:
Please answer these questions before submitting your issue. Thanks!

com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '162887478624124928' for key 'PRIMARY'

Which version of Sharding-Jdbc do you using?

Expected behavior

不知道为啥会出现主键冲突的情况

Actual behavior

Steps to reproduce the behavior

Please provide the reproduce example codes (such as github link)

Code should based on https://github.com/shardingjdbc/sharding-jdbc-example
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

I was excited to see a static site generator in Next. I want to write a prototype of a site, which would end up using Next. I'd love the prototype to be static so I can zip it up and send to someone who isn't tech savvy unzip and run the html. The issue is that someone needs to make the html run on "server" ie serve

Describe the solution you'd like

Allow an option for next export which lets things run without a server. As far as I can tell the main issue is the way things are routed, followed by the way clicking <Link> is counted.

Describe alternatives you've considered

I tried detecting an environment variable to do an update like this:

correctedHref = file:///C:${prefix}${href}/index.html`

That made the href= point at an actual file, however clicking the link did nothing in the app, despite opening the link via source view showing what I wanted.

Issue 2:
There are many tags in the HTML which NextJS generates which contain absolute URLs. For example:

href="/_next/blah"

I've added selenium + chrome headless testing to my Next project, and it works fine when I test http://localhost:3000, but when I do a next export, and then try to to test file:///home/user/project_dir/out/index.html, all of those absolute links are broken.I.e, it tries to fetch file:///_next/blah instead of: file:///home/user/project_dir/out/_next/blah.

If I post-edit the generated HTML to make those links relative, then it all works fine.

I need to be able to run my tests against the static files which are generated by export to ensure that they have been generated correctly before publishing.

I suspect this is also an issue when people simply wish to run their nextjs application from a location other than the root of their website.

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

Your Environment

Tech
Version

next
v3.0.1-beta.15

node
v8.1.3

OS
Debian 9

browser
Google Chrome 59.0.3071.115
Issue 1:
hi,

i have a dialog with autoScrollBodyContent={true} and it works on a desktop. but when opening the dialog on a mobile device (nexus6), the scrollbar is not on the right edge of the dialog it is about 1cm inside the dialog. when using the chrome-inspector you can simulate this behaviour with other small devices too (iphone, etc).

when removing the style

box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25), 0 10px 18px rgba(0, 0, 0, 0.22);

with the inspector, the scrollbar appears exactly on the right side of the dialog. but the shadow disappears :-(

/usc

Issue 2:
Problem description

How can I make the Dialog scrollable in v1. I have a modal with a list in it, and the list goes off the page. I would like the ability to scroll down. I would like the scrollbar to be on the main browser window, rather than on the modal itself.

Link to minimal working code that reproduces the issue

Versions

Material-UI: 1

React:

Browser:
Issue 1:
When I type in Chinese, the word choice box is alway stay in the top left corner of the screen instead of following the cursor.

Issue 2:
This bug-tracker is monitored by Windows Console development team and other technical types. We like detail!

If you have a feature request, please post to the UserVoice.

Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.

Please use this form and describe your issue, concisely but precisely, with as much detail as possible

Your Windows build number: (Type ver at a Windows Command Prompt)

10.0.18890.1000

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

Build & run the new Windows Terminal, and type something using IME (I am using Microsoft Pinyin IME)

What's wrong / what should be happening instead:

The IME UI appears in the upper left corner of the screen, not following the current cursor.
Issue 1:
Hi,

I use glide to load gif, it can be loaded and displayed in ImageView, but the display is not normal.

I use another open source project(GifDrawable) that also support gif, the gif can be loaded and displayed normally in ImageView.

Use glide and gifdrawable to load gif effect is as follows.

Use glide
Use gifdrawable

https://www.dropbox.com/s/doe062ghzpp5ryg/device-2015-09-18-113927.mp4?dl=0
https://www.dropbox.com/s/whuooxsn8wdd2kr/device-2015-09-18-114503.mp4?dl=0

I suspect this is a bug of glide.

Issue 2:
Glide Version: 3.6.1

Issue details:

While loading GIF's there is significant delay before showing only the second frame, and this happens only for the first loop, all the later loops goes with expected delay.

So after doing some research, I thought it may be because Glide is resizing the frames, so I override resize operation using override().

Below is the Glide load line:

Glide.with(this).load(trainingItem.getUrl()).asGif().override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL).diskCacheStrategy(DiskCacheStrategy.SOURCE).into(draweeView);

But still there is significant delay before showing the next frame for the very first loop.

Any suggestions/pointers?
Issue 1:
VSCode Version: 1.2.0

OS Version: Windows 10.0.10586

Steps to Reproduce:

Make the font size larger than default in user settings

Write code that causes IntelliSense to raise a tooltip

Notice the truncated text due to the tooltip not growing to fit the content

Repro screenshot

Issue 2:
Installing extensions and themes would be easier if there was a GUI to do so. It's currently somewhat hidden in the command palette, especially for users not familiar with similar editors.
Issue 1:
Spinoff discussion of #1373, #3128 and #3228.

We're pretty sure that we need to change the current way refs work (see above). However, the new ref callbacks are also not ideal because it relies on some imperative code and suffers from timing issues like all imperative life-cycles. It is also not very convenient without arrow functions. Even with arrow functions it might suffer from performance issues.

A few things refs tries to solve:

Imperative access to APIs that doesn't have declarative counter-parts yet. E.g. DOM layout.

Fast-path down the tree to update deeply to by-pass reconciliation. Perf-optimization.

Get the current state of a child that you don't want to control without duplicating state (which might possibly diverge).

Send signals/pulses downwards.

Issue 2:
In Internet Explorer, a disabled radio button will fire an onChange event when double clicked. The checked state does not change, but the onChange event fires nonetheless.

http://jsfiddle.net/abzosdau/4/
Issue 1:
Hi all

For some reason Launcher duplicates items on the list. It shows the application in the search list but also it duplicates that same application by showing .lnk file from the menu start folder for the same app. Please see the screenshot below:

Do you think it is a bug. Perhaps we could exlude .lnk file in future updates as an option?

Issue 2:
Add tabs to each Fancy zone to allow multiple applications within each zone

Adding tabs to each Zone will allow users to position multiple unrelated windows on limited screen real-estate. This is a must-have feature for PowerToys users with single screens, including laptops on the move.

Add the capability that when a User drags a window onto a zone that is already occupied, provide an onfocus tab, thus allowing the user to place the window into the new tab. Once there are multiple windows in a zone, show tabs for each window.
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

My application is not always redirecting when I enter the URL into the address bar of Internet Explorer 11. Sometimes it works and sometimes it does not. I do not see this problem with the Chrome browser.

Expected behavior

When an user enters an URL into the address bar, my application should always redirect to the "page" associated with the URL.

Minimal reproduction of the problem with instructions

I cannot provide a MINIMAL DEMO of the problem via plnkr because I need to enter a value into the address bar for the application and that functionality is not supported by plnkr.

To reproduce,

First, get and build a starter project like the one from Angular class.

git clone --depth 1 https://github.com/angularclass/angular2-webpack-starter.git

cd angular2-webpack-starter

npm install

npm start

When the application is ready, then open an internet explorer 11 browser, enter the URL "http://localhost:3000" into the address bar, and press enter.

Click on the hyperlink "Detail" in the page. Then select (CTRL-A) and copy (CTRL-C) the URL from the address bar. You should have copied "http://localhost:3000/#/detail".

Click on the hyperlink "Index" in the page to return to the home page.

In the internet explorer address bar, replace the entire URL by pasting (CTRL-V) the URL from step 3, and press enter.

This should redirect internet explorer to the detail page but sometimes it does not. If you do see the detail page, repeat steps 4 and 5 until you see the bug. I usually see the error by the third repetition.

Please tell us about your environment:

Angular version: 2.0.0

Browser: IE 11

Language: TypeScript 2.0.3

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

The problem happened only on IE. After doing redirection by clicking on the link in page, if we enter the URL directly in address bar on browser, the page does not refresh. However, if we change from HashLocationStrategy to normal LocationStrategy. it works fine without any problem.

Expected/desired behavior

Page should refresh if we enter the URL directly.

Please tell us about your environment:

Angular version: 2.0.0-rc.4

Angular Router version: 3.0.0-beta.2

Browser: [IE 11 ]

Language: [TypeScript X.X]
Issue 1:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

e6328cb989cfb789189227892cb892740095d2d6

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy

Expected behavior

connect normal

Actual behavior

cann't connect

Reason analyze (If you can)

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

use server.yaml to start proxy

mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: 0715distsql
server-lists: 192.168.10.21:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: true

rules:
- !AUTHORITY
users:
- root@%:root
- sharding@:sharding
provider:
type: ALL_PERMITTED
- !SQL_PARSER
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
parseTreeCache:
initialCapacity: 128
maximumSize: 1024

props:
proxy-frontend-database-protocol-type: "openGauss"

use gsql connect proxy

Example codes for reproduce this issue (such as a github link).

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

Please answer these questions before submitting your issue. Thanks!

Which version of Sharding-Sphere do you using?

2.0.3

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

Sharding-JDBC

Expected behavior

Sharding configuration is not configured locally, and sharding configuration is fully obtained from the reg center。

Actual behavior

There must be an initial sharding configuration locally

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:
Describe what you were doing when the bug occurred:

Start profiling

End profiling

Iterate over commits using arrows and/or bar graph

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

I got this error when I click 'Ranked'.

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)

at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

Component stack: in _i

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul