WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

"Let's try getting a for loop to work by pushing values to an array."

In this text the 'for' should be replaced by 'while'.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops has an issue.

Text reads, "Let's try getting a for loop to work by pushing values to an array." It should instead read, "Let's try getting a while loop to work by pushing values to an array."
Issue 1:
Environment

Windows build number: 10.0.19041.329
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

I see it during random times while using the computer. It does not matter which program I use.

Expected behavior

At first, I thought it interfered with one of the keyboard shortcuts in a program, so I tried to change the shortcut, but it didn't work.

Actual behavior

I press ِAlt+space then i don't see anything pops up, after a while I try again it works.

Screenshots

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt]
PowerToys version: 0.19
PowerToy module for which you are reporting the bug (if applicable): PT Run

Steps to reproduce

Remap key from alt-space to win-space

execute shortcut multiple times

Expected behavior

don't have start menu false positive executions

Actual behavior

Lots of start menu executions
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

11.3.0

Operating System:

Windows 10 Pro (20H2)

Last Known Working Electron version:

Expected Behavior

I would like to make a default callback if I don't want to modify the request

Actual Behavior

I can create a callback of my own, but there is no way to return the default callback or let it follow normal rhythm without modifying

To Reproduce

Fiddle: https://gist.github.com/19c24511024997d2415c2df3f5eabe2e

Issue 2:
Electron version: 1.3.6 (win32-ia32 zip)

Operating system: Windows 10.0.14393 Build 14393

Create a main.js file that loads a wikipedia page:

var electron = require('electron')
var app = electron.app
var BrowserWindow = electron.BrowserWindow

var mainWindow;

function createWindow () {
mainWindow = new BrowserWindow({width: 800, height: 600})
mainWindow.loadURL(`https://en.wikipedia.org/wiki/Timi%C8%99oara`)
mainWindow.webContents.openDevTools()
mainWindow.on('closed', function () {
mainWindow = null
})
}

app.on('ready', createWindow)

app.on('window-all-closed', function () {
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', function () {
if (mainWindow === null) {
createWindow()
}
})

run electron.exe main.js

scroll up and down rapidly by dragging the scrollbar

watch CPU usage or Record with the Timeline

renderer process goes to 100% CPU usage

main process stays at 1-2% CPU usage

both Chromium on a version before and Chrome on a version after do not have this problem.

Electron v1.3.6 (process.versions.chrome = 52.0.2743.82)

Chromium version 52.0.2743.0

Chrome version 53.0.2785.113 m (64-bit)

Electron version 0.37.6 (process.versions.chrome = 49.0.2623.75)

More info:

Reproduces in Electron version 0.37.6

fyi @bbondy Reproduces in Brave 0.12.0 (Electron 1.3.10, libchromiumcontent: 52.0.2743.116)

Reproduces on Surface Book, in external monitor at 100% zoom

Does not reproduce on Lenovo w530 with the same Windows version

this impacts VSCode considerably (why I started looking into this)

Hints:

The only hints I could find are when clicking on the input events and most of them in Electron appear to be waiting a long time on the main process. For Chromium 52 or Chrome 53, the total time of these events is never longer than 20-30ms, typically even shorter:

fyi @zcbenz @kevinsawicki @bpasero @dbaeumer
Issue 1:
I ran tensorflow debugger using the command "python -m --debug" but got the following error (i,e Signal only works in main thread):

The error is thrown when a session run call is executed in a child thread (spawned from main thread). Is tensorflow debugger only supported for single threaded applications?

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

None

Environment info

Operating System: CentOS 7.2.1511

Installed version of CUDA and cuDNN:

(please attach the output of ls -l /path/to/cuda/lib/libcud*):

If installed from binary pip package, provide:

A link to the pip package you installed: https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-linux_x86_64.whl

The output from python -c "import tensorflow; print(tensorflow.__version__)".

If installed from source, provide

The commit hash (git rev-parse HEAD)

The output of bazel version

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)

What other attempted solutions have you tried?

Logs or other output that would be helpful

(If logs are large, please upload as attachment or provide link).

Issue 2:
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): archlinux

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): v1.3.0-rc2-20-g0787eee 1.3.0

Python version: 3.6

CUDA/cuDNN version: 8.0/6.0

import numpy as np
import tensorflow as tf
m = tf.placeholder(tf.bool, shape=[None, 1], name='m')
b = tf.placeholder(tf.float32, shape=[1, None], name='b')
output = tf.boolean_mask(b, m)
mask = [[True],[True],[True],[True],[True]]
y = np.random.rand(1, 4)

with tf.Session() as sess:
print(y)
print(sess.run(output, feed_dict={m: mask, b:y}))

The code runs, while I expect an index out-of-bound error.

In fact, even when mask is a 4x1 boolean, I still expect an error (since b is 1x4). But that's somewhat arguable.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

12.0.4

What operating system are you using?

macOS

Operating System Version

macOS Catalina 10.15.7

What arch are you using?

x64

Last Known Working Electron version

11.4.5

Expected Behavior

With either the sandbox option or the nativeWindowOpen option enabled:

When you open a new window using window.open from a window that is created using window.open, I expect to see 3 windows rendering their own html.

Actual Behavior

When you open a new window using window.open from a window that is created using window.open, the second window goes blank (white screen). Closing either of these two windows closes the other window.

Step to reproduce:

Run the attached sample:

Click open window to create a new window

Click open window from the new window to create third window

Observe second window is blank

Testcase Gist URL

https://gist.github.com/naineshsolanki-lmi/587f79ad7a4f0c794f9561f9ec85b389

Additional Information

No response

Issue 2:
Using VS Code 1.29 insiders on Electron 2.0.12

Ubuntu 18.10 with Yaru GTK3 theme

Expected Behavior

The menubar should have light text with a black background.

Actual behavior

The menubar has dark text on a dark background.

To Reproduce

Install and Run VS Code 1.29 insiders

See dark text on dark background for menubar

Screenshots

If applicable, add screenshots to help explain your problem.

Additional Information

After tweaking the theme css for the Yaru Ubuntu 18.10 theme, it seems the foreground color for the menubar is being pulled from the context menu color, not the menubar foreground color.

The colors are set here:

electron/atom/browser/ui/views/menu_bar.cc

Line 142
in
74644e5

background_color_ = libgtkui::GetBgColor(menubar_selector);

Related VS Code issue: microsoft/vscode#62593
Issue 1:
Not sure if this is how it started, but when I reset my code, the "tracks" part of 5439 is missing. Like this:

5439: {

album: "ABBA Gold"

}

Since it's above the "only change code below this line" part, it took me a while to realize why my code wasn't passing. Don't know if anyone else is having this issue.

Challenge Record Collection has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Setup
var collection = {
2548: {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
2468: {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
1245: {
artist: "Robert Palmer",
tracks: [ ]
},
5439: {
album: "ABBA Gold",
tracks:[],
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function updateRecords(id, prop, value) {
if(prop!=="tracks" && value!==""){
collection[id][prop]= value;
}
else if(prop=="tracks" && value!==""){
collection[id].tracks.push(value);
}
else if (value===""){
delete collection [id][prop];
}
return collection;
}

// Alter values below to test your code
updateRecords(5439, "artist", "ABBA");

Issue 2:
Challenge Record Collection has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Setup
var collection = {
2548: {
album: "Slippery When Wet",
artist: "Bon Jovi",
tracks: [
"Let It Rock",
"You Give Love a Bad Name"
]
},
2468: {
album: "1999",
artist: "Prince",
tracks: [
"1999",
"Little Red Corvette"
]
},
1245: {
artist: "Robert Palmer",
tracks: [ ]
},
5439: {
album: "ABBA Gold"
}
};
// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function updateRecords(id, prop, value) {
if( value !== ""){
if(prop!=="tracks"){
collection[id][prop]=value;
}
else if( prop ==="tracks"){
collection[id][prop].push(value);
}
}
else
delete collection[id][prop];

return collection;
}

// Alter values below to test your code
updateRecords(5439, "artist", "ABBA");
Issue 1:
This is related to #6848 and #5424. I am trying to use the host matching for changeing my routing resource by domain.

test:
resource: "routing.yml"
host: "my.first.domain"

test2:
resource: "routing.yml"
host: "any.other.domain"

This routing works well for "any.other.domain" but calling by "my.first.domain" I get a NotFoundHttpException. If I change the order of my entries to:

test2:
resource: "routing.yml"
host: "any.other.domain"

test:
resource: "routing.yml"
host: "my.first.domain"

it works well for "my.first.domain" but "any.other.domain" is broken now. Is there a way to get around this problem?

Issue 2:
Currently running into an issue with the new host matching when I'm trying to generate urls that requires me to pass in a host parameter.

InternalUserController:
resource: "@ApiBundle/Controller/Internal/UserController.php"
type: annotation
host: "api.{domain}"

DashboardController:
resource: "@DashboardBundle/Controller/DashboardController.php"
type: annotation
host: "{domain}"

The examples above work perfectly with the url matcher, but when needing to generate the url, it will require me to provide the domain parameter each time. I know this is how it's suppose to function, but it seems a bit annoying to require putting in the domain each time.
Issue 1:
Description of the problem

Go to in Oculus Go: https://threejs.org/examples/webvr_video

Hit Enter VR Button

See Black / Gray squares instead of video content

Here are the errors I see from the Remote Console ( which works on Oculus Go now! So cool! )

Unfortunately I cannot capture a screenshot of what it looks like when it's presenting in VR to Oculus Go...

Three.js version

r94

Browser

Oculus Browser ( Chromium underneath )

OS

Oculus ( Android underneath )

Hardware Requirements (graphics card, VR Device, ...)

This is for Oculus Go

Issue 2:
WebVR video example not working on Oculus Go / Oculus Browser in VR mode

com.oculus.browser (OculusBrowser/4.5.1.108860099 SamsungBrowser/4.0 Chrome/61.0.3163.141)

Description of the problem

Steps to reproduce:

0. grab an Oculus Go and open the Oculus Browser

go to https://threejs.org/examples/#webvr_video

press "Enter VR"

notice a black screen

Expected:

Video plays and is displayed in VR mode.

In the console we got the following warnings:

THREE.WebGLRenderer: Can't change size while VR device is presenting.
WebGLRenderer.setSize @ three.js:21995
13:53:05.330 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.330 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.347 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.348 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.366 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]GL ERROR :GL_INVALID_VALUE : glTexParameteri: unknown texture
13:53:05.367 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]GL ERROR :GL_INVALID_VALUE : glTexParameteri: unknown texture
13:53:05.367 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]GL ERROR :GL_INVALID_VALUE : glTexParameteri: unknown texture
13:53:05.367 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]GL ERROR :GL_INVALID_VALUE : glTexParameteri: unknown texture
13:53:05.367 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: unknown texture for target
13:53:05.367 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.367 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.391 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.391 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]RENDER WARNING: there is no texture bound to the unit 0
13:53:05.396 webvr_video.html:1 [.Offscreen-For-WebGL-0xc89fac00]GL ERROR :GL_INVALID_VALUE : glTexParameteri: unknown texture

Three.js version

Dev

r93

...

Browser

All of them

Chrome

Firefox

Internet Explorer

Oculus Browser

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Oculus Go
Issue 1:
In the procedure of installing from source,

when I try to do "bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg"

then an error occurs and the message is like this:

"error: can't copy 'tensorflow/models/embedding/gen_word2vec.py': doesn't exist or not a regular file"

In the directory of 'tensorflow/models/embedding/', there does not exist named "gen_word2vec.py", only "word2vec.py" is in there.

(Changing the file name "word2vec.py" as "gen_word2vec.py", but it does not make it.)

OS : OS X El Capitan(10.11.6)

TensorFlow : r0.11(Same problem occurs r0.10)

In #4234, recommended method is installing the TF's branch r0.10, but it does not work for me.

How can I solve it?

Issue 2:
I’m running into a couple of issues with transpose on GPUs. First, even the forward computation can’t be registered on a GPU unless I explicitly set the perm option. For example this fails (I’m setting allow_soft_placement=False in the session Config):

with tf.device('/gpu:0'):
a = tf.constant(npr.rand(5, 3).astype('float32'))
b = tf.transpose(a)

with the following error:

InvalidArgumentError: Cannot assign a device to node 'transpose/Reverse': Could not satisfy explicit device specification '/gpu:0'
[[Node: transpose/Reverse = Reverse[T=DT_INT32, _device="/gpu:0"](transpose/Range, transpose/Reverse/dims)]]

If however I set perm=(1, 0) in the transpose operation above, it works. But that’s not the only problem, as the backward computation doesn’t work either way. For example this fails:

with tf.device('/gpu:0'):
a = tf.Variable(tf.random_uniform([5, 3]))
b = tf.transpose(a, perm=(1, 0))
l = tf.reduce_sum(b)
o = tf.train.AdamOptimizer().minimize(l)
i = tf.initialize_all_variables()

sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=False))
sess.run(i)
sess.run(o)

with the following error:

InvalidArgumentError: Cannot assign a device to node 'gradients/transpose_grad/InvertPermutation': Could not satisfy explicit device specification '/gpu:0'
[[Node: gradients/transpose_grad/InvertPermutation = InvertPermutation[_device="/gpu:0"](transpose/perm)]]
Issue 1:
Hi, plz have a look at this issue #116 with robotframework-requests library, take particular notice of my second comment, it might be related to 'requests'.

Cheers

Tset

Issue 2:
Requests uses urlib.proxy_bypass to check if the proxy should be bypassed. This uses socket.gethostbyaddr to check if the provided IP matches a hostname entered in the proxy bypass list. In some cases, gethostbyaddr takes up to 4.5 seconds on Windows (e.g. when the IP is found but the primary DNS doesn't recognize it).

Currently, the proxy bypass detection is done for every request, making it pretty unusable when the conditions are met where gethostbyaddr is this slow.

A reasonable solution might be caching the results from urlib.proxy_bypass.
Issue 1:
Migrated issue, originally created by v (@vr2262)

I would like to filter a query with ILIKE while escaping special characters like % and _. I tried this:

from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker

Base = declarative_base()

class Example(Base):
__tablename__ = 'example'
id = Column(Integer, primary_key=True)
string_col = Column(String)

session = sessionmaker()()
session.add(Example(string_col='S%mething'))

search_string = 's%'
print(
session.query(Example)
.filter(
func.lower(Example.string_col)
.contains(func.lower(search_string), autoescape=True)
)
)

But I get the error TypeError: String value expected when autoescape=True because contains() expects an actual string as the first argument.

Ideally SQLAlchemy would provide this feature out of the box, perhaps with icontains() or contains(insensitive=True, ...).

Issue 2:
Migrated issue, originally created by jvanasco (@jvanasco)

discussed previously in

https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/MUyt8zYaP0c/ht4fGR9q9w8J

https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/331XoToT4lk/RPjIYNTkSEIJ

I tried doing this myself, but don't know enough of the internals to get this done on my own.

it looks like these need to be modified

sqlalchemy/sql/default_comparator.py

sqlalchemy/sql/operators.py

but not sure about

sqlalchemy/sql/compiler.py

there are probably more files.

if someone can get one working, I can do the rest and build out tests.
Issue 1:
If i like to use a tileable normalmap i can't use RepeatWrapping - nothing happens with the settings and no errors are showing up.

var textureLoader = new THREE.TextureLoader();
var textureNormal = textureLoader.load( "./textures/carpet_normal.png" );
textureNormal.wrapS = textureNormal.wrapT = THREE.RepeatWrapping;
textureNormal.repeat.set( 8, 8 );

=> no effect!

Three.js version

Dev

r78

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

iMac with cuda enabled nvidia card

Issue 2:
plunker

When setting the map to repeat the alphaMap is also affected.

I'm expecting each face of the cube to have a giant whole in the middle with the edges of the taco time texture showing near the edges of the cube in a 3x4 pattern.

I'm getting the 3x4 pattern of the taco time texture but the alphaMap, although it does not repeat it does scale down to the size of the other map. It also produces some nasty streaks.

If you comment out line 35 material.map.repeat.set(3,4); you can see what I'm expecting from the alphaMap.

Three.js version

Dev

r79

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
From now on, i think that superset-frontend is a little complex, it's hard to embed in micro frontend application as a sub-app

by single-spa(https://single-spa.js.org/) or even qiankun(https://qiankun.umijs.org/) which is inspired by single-spa.

superset-frontend has multi entries and its a little complex for me to embed it into micro frontend application.

Do you have any ideas or successful example about who has already embed superset into any micro frontend application or how i could embed superset into a big application? exclude iframe, any good ideas?

Issue 2:
[SIP-29] Proposal to add support for row-level security

Motivation

Many BI applications, particularly in multi-tenancy scenarios, require support for row-level security. That is, the ability to show different slices of a table to users based on some user attribute.

This feature has been requested in Superset several times, including:

#660

#5128

#7887

#8023

Proposed Change

Primarily, this feature would require two sub-features:

The ability to add user attributes

The ability to filter queries based on these attributes

The proposed solution would be to add an 'attributes' property to roles that would essentially be a user-defined key-value store:

and to make those role attributes available as values for Query Filters:

New or Changed Public Interfaces

New 'attributes' property added to roles

Changes to Query Filters to allow access to attribute values (e.g by macros like WHERE column={{role.attributes.key}}

Minor UI changes associated with the above

New dependencies

N/A

Migration Plan and Compatibility

TBD

Rejected Alternatives

Pre-processing data into multiple tables or views:

This solution does not scale well, and requires all attribute values to be known a priori

Requires duplicate dashboards and charts

Reverse proxy

Issues with identifying the user initiating the query
Issue 1:
We seem to have hit a requirement where we need to pass

--device=[]: Allows you to run devices inside the container without the --privileged flag.

Looking at https://cloud.google.com/container-engine/docs/spec-schema (which I have been using heavily as I could not see any other current doc) I have not figured how to pass that through the spec file.

Talking to @brendandburns on Mailing list his reply

"

Yes, afaik we don't support that flag currently. We'd welcome a PR to add support. Please file an issue on github or send code.

You can use hostDir to mount the device file into your container, but I don't know if the permissions will work correctly if you don't have --privileged set.

"

Filing this GitHub issue as a tracker for this small enhancement.

Issue 2:
It would be nice if the container api payload had support for exposing host devices to the container (like docker run --device does).

The kubelet could pass it go-dockerclient once they add support for it (fsouza/go-dockerclient#241), or create container with the docker remote api by passing an addition member in the /create HostConfig payload:

{
"PathOnHost": "/dev/deviceName",
"PathInContainer": "/dev/deviceName",
"CgroupPermissions": "mrw"
}