WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS10.14.4

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:iPhone7 & iPhone6

TensorFlow installed from (source or binary):binary

TensorFlow version: tensorflow-lite-gpu:0.0.0

Python version:3.7

Installed using virtualenv? pip? conda?:cocoapod

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:16G memory

Describe the problem

I am building my codes with tensorflow_lite_gpu.framework on iPhone 7. The codes is just like Google recommends:

_model = FlatBufferModel::BuildFromFile(modelPathCString);
ops::builtin::BuiltinOpResolver resolver;
InterpreterBuilder(*_model, resolver)(&_interpreter);
_delegate = NewGpuDelegate(nullptr); // default config
_interpreter->ModifyGraphWithDelegate(_delegate);
...//Other codes

When I use the model mobilenet_v1_1.0_224.tflite which Google provides, I get warning: WARNING: 25 cannot be handled by this delegate. Only the first 30 ops will run on the GPU, and the remaining 1 on the CPU from console after excuting _interpreter->ModifyGraphWithDelegate(_delegate). But the model deeplabv3_257_mv_gpu.tflite is good which Google provides too. As for my own model, the result is like mobilenet_v1_1.0_224.tflite does. Someone please help me.

PS: Here is my podfile:

platform :ios, '10.0'
target "SpeechExample" do
pod 'TensorFlowLiteGpuExperimental'
end

Issue 2:
I am building my codes with tensorflow_lite_gpu.framework on iPhone 7. The codes is just like Google recommends:

_model = FlatBufferModel::BuildFromFile(modelPathCString);
ops::builtin::BuiltinOpResolver resolver;
InterpreterBuilder(*_model, resolver)(&_interpreter);
_delegate = NewGpuDelegate(nullptr); // default config
_interpreter->ModifyGraphWithDelegate(_delegate);
...//Other codes

When I use the model mobilenet_v1_1.0_224.tflite which Google provides, I get warning: WARNING: 25 cannot be handled by this delegate. Only the first 30 ops will run on the GPU, and the remaining 1 on the CPU from console after excuting _interpreter->ModifyGraphWithDelegate(_delegate). But the model deeplabv3_257_mv_gpu.tflite is good which Google provides too. As for my own model, the result is like mobilenet_v1_1.0_224.tflite does. Someone please help me.

PS: Here is my podfile:

platform :ios, '10.0'
target "SpeechExample" do
pod 'TensorFlowLiteGpuExperimental'
end
Issue 1:
Issue Type:

Bug Report

Ansible Version:

ansible 1.9 (devel 3b80f63e22) last updated 2014/12/05 14:09:09 (GMT +1000)
lib/ansible/modules/core: (ec2_snapshot_remove b287e7c0a6) last updated 2014/12/02 11:18:53 (GMT +1000)
lib/ansible/modules/extras: (detached HEAD 7e6fc7023d) last updated 2014/11/05 11:09:14 (GMT +1000)
v2/ansible/modules/core: (detached HEAD cb69744bce) last updated 2014/11/05 11:09:23 (GMT +1000)
v2/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated 2014/11/05 11:09:31 (GMT +1000)
configured module search path = None

Environment:

Fedora 21

Summary:

You cannot use inventory_dir with vars_files - it's just not available to the _update_vars_files method.

Steps To Reproduce:

---
- hosts: localhost

vars_files:
- "{{included}}"

tasks:
- debug: msg="{{included}}"
- debug: msg="{{inventory_dir}}"
- debug: msg="{{hello}}"

run with ansible-playbook -i ~/hosts and ~/files/hello containing:

hello: world

and ~/group_vars/all.yml containing included: "{{inventory_dir}}/files/hello

shows that inventory_dir is correctly set but hello which should be set by files/hello is never set.

Expected Results:

vars_files should be able to expand inventory_dir

Actual Results:

PLAY [localhost] **************************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [debug msg="{{included}}"] **********************************************
ok: [localhost] => {
"msg": "/home/will/files/hello"
}

TASK: [debug msg="/home/will"] *********************************************
ok: [localhost] => {
"msg": "/home/will"
}

TASK: [debug msg="{{hello}}"] *************************************************
fatal: [localhost] => One or more undefined variables: 'hello' is undefined

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/home/will/vars_files.retry

Issue 2:
ISSUE TYPE

Documentation Report

COMPONENT NAME

os_subnet

ANSIBLE VERSION

ansible 2.2.1.0

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Several of the Openstack os_* modules (e.g http://docs.ansible.com/ansible/os_subnet_module.html) reports two different python versions as requirements:

python >= 2.6
python >= 2.7
shade

Looking in module os_subnet.py I can see that it only has these specified:

requirements:
- "python >= 2.6"
- "shade"

So I guess the requirement python >= 2.7 is automagically picked up somehow.

Is the correct way to fix this to remove the item python >= 2.6 from requirements list?

If so I can send PRs for that.

STEPS TO REPRODUCE

N/A

EXPECTED RESULTS

N/A

ACTUAL RESULTS

N/A
Issue 1:
Environment

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0

+ Ubuntu 16.04.5 LTS via WSL

Steps to reproduce

Create profile for Ubuntu.

Set "tabTitle": "Ubuntu" in config.

Start bash tab. Notice title says "Ubuntu".

Run Win32 console program: sc.exe

Expected behavior

Title still shows "Ubuntu"

Actual behavior

Title shows, before and after running the program, "C:\Windows\system32\sc.exe"

Issue 2:
Description of the new feature/enhancement

Currently it seems like the terminal doesn't pass mouse events to WSL (for example to select text in visual mode in vim). I would like to be able to continue using my mouse inside WSL.
Issue 1:
System information (version)

OpenCV => 4.1.2

Operating System / Platform => Arch Linux

Compiler => gcc 9.2.0

Detailed description

Compilation of core module fails when specifying WITH_TBB=ON CMake option.

In file included from /usr/include/c++/9.2.0/ext/string_conversions.h:41,
from /usr/include/c++/9.2.0/bits/basic_string.h:6493,
from /usr/include/c++/9.2.0/string:55,
from /usr/include/c++/9.2.0/stdexcept:39,
from /usr/include/c++/9.2.0/array:39,
from /home/andrew/opencv/modules/core/include/opencv2/core/cvdef.h:700,
from /home/andrew/opencv/modules/core/include/opencv2/core.hpp:52,
from /home/andrew/opencv/modules/core/include/opencv2/core/utility.hpp:56,
from /home/andrew/opencv/modules/core/src/precomp.hpp:49,
from /home/andrew/opencv/modules/core/src/algorithm.cpp:43:
/usr/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.

The error seems unrelated to TBB, but it doesn't appear without WITH_TBB=ON. Probably a bug in CMake files?

Steps to reproduce

cmake ../opencv \
-DWITH_TBB=ON \
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so" \
-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
-DLAPACK_LAPACKE_H="/usr/include/lapacke.h"
make -j $(nproc)

Issue 2:
System information (version)

OpenCV => 4.1.0 (Master)

Operating System / Platform => Windows 10

Compiler => Visual Studio 2019

Detailed description

Steps to reproduce

There is no support for the ONNX "Expand" layer inside OpenCV.

I will try to make this work myself, "Expand" basically broadcasts (Numpy style) a tensor to a specified size.

Feel free to find a solution yourself as it might take quite a while for me to figure this out!
Issue 1:
Opening a new issue so this isn't lost.

In #18882 banned duplicate names in a MultiIndex. I think this is a good change since allowing duplicates hit a lot of edge cases when you went to actually do something. I want to make sure we understand all the cases that actually produce duplicate names in the MI though, specifically groupby.apply.

In [1]: import dask.dataframe as dd

In [2]: import pandas as pd

In [3]: pdf = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
...: 'b': [4, 5, 6, 3, 2, 1, 0, 0, 0]},
...: index=[0, 1, 3, 5, 6, 8, 9, 9, 9]).set_index("a")
...:
...:

In [4]: pdf.groupby(pdf.index).apply(lambda x: x.b)

Another, more realistic example: groupwise drop_duplicates:

In [18]: df = pd.DataFrame({"B": [0, 0, 0, 1, 1, 1, 2, 2, 2]}, index=pd.Index([0, 1, 1, 2, 2, 2, 0, 0, 1], name='a'))

In [19]: df
Out[19]:
B
a
0 0
1 0
1 0
2 1
2 1
2 1
0 2
0 2
1 2

In [20]: df.groupby('a').apply(pd.DataFrame.drop_duplicates)
Out[20]:
B
a a
0 0 0
0 2
1 1 0
1 2
2 2 1

Is it possible to throw a warning on this for now, in case duplicate names are more common than we thought?

Issue 2:
I think the replace docstring is lacking in many ways (https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.replace.html):

The explanation of to_replace keyword is both way too complex and lacking an explanation of the simple cases:

the most simple case of a scalar value is not clearly mentioned (like df.replace(to_replace=0, replace=1), it is mentioned in the 'str' explanation, but it is not specific to strings)

the simplest dict case of df.replace({to_replace: replacement}) is not mentioned (the dict explanation starts with explanation of nested dicts)

I would personally rewrite this whole explanation of this keyword, start with basic cases, and only after that (or in the notes) explain the complex cases.

There is a reference to the examples section for "examples of each of those", but there is no examples section. We should add one.

In the 'see also' section it references reindex, asfreq and fillna. fillna is fine, but I fail to see the link with the first two. I would rather add a reference to where to replace values based on a boolean condition (and the 'see also' should not just refer to the other methods, but also include a sentence on why / the difference)

The docstring also uses NDFrame, and this should never be in a public docstring (failing substituion of docstring in generic)

I would personally also write separate docstrings for the series and dataframe case. This will give some duplication, but I think this gives room to simplify the docstring (or certainly for the simpler Series.replace case). (xref #13852)

See the tutorial docs (https://pandas.pydata.org/pandas-docs/stable/missing_data.html#replacing-generic-values) with some actual examples.

Underlying reason is that this function of course can do way too many things at the same time (or the same things in too many different ways) ... (orthogonal to this, we could maybe also think if certain functionality could be moved into its own function).
Issue 1:
Electron version: 1.2.0

Operating system: OSX 10.11.5

Hi,

I just moved an app from 1.1.x to 1.2.x and discovered my preload script isn't executing for the BrowserWindow

'use strict';

window.$ = window.jQuery = require('jquery');
console.info("Preloaded jquery");

If I move back to 1.1.x, the script runs as expected.

Issue 2:
Electron version: 1.2.0

Operating system: OS X 10.11.5

webview preload attribute seems to be broken in Electron 1.2.0/Chrome 51 (worked with 1.1.3/Chrome 50).

Here is how I used it (successfully) on versions prior to 1.2.0:

@webview.preload = "file://#{app.getAppPath()}/js/player-preload.js"

Tried to put it in the HTML webview tag directly as attribute, same thing.

Note: No error in the Console though, it's just that the script is never actually executed.
Issue 1:
Description of the new feature/enhancement

It seems that I have to restart the application to apply changed environmental variables (such as PATH). Opening a new "cmd" tab did not reflect the changes.

How about adding an option to read environmental variables again when opening a new "cmd" tab? Or a "Refresh environmental variables" entry in the drop-down menu.

Issue 2:
Environment

Windows build number: 1903 18362.267
Windows Terminal version (if applicable): 0.3.2142.0

Steps to reproduce

Window Terminal have to be possible to use internationally.

"international localization" is the keyword which have to remember.

Cant give chars @ $ £ { [ ] } because keymapping ctrl+alt+1-9 kill those keys ex. in swedish, finnish, ... keyboards.

@ = AltGr+2

$ = AltGr+4

...

Expected behavior

After I changed those tabbing keymapping ex. ctrl+shift+1, ctrl+shift+2, ... I got those important shell level characters from my keyboard as they have been since 199x.

Actual behavior
Issue 1:
It's often useful to avoid duplicate work by performing an assignment at the same time as evaluating a condition, i.e.

if (val = expensive()) != nothing
val
else ...

If a function predicate is used, this is parsed as a keyword argument and throws an error:

if isvalid(true, (val = expensive()))
...
else ...

Assignments inside brackets are special cased when using &&, || etc., it might be useful if they were here, too. name = val would be a keyword argument but (name = val) would be a regular assignment.

Issue 2:
I just learned about the keyword outer today. It would be nice if it had a docstring, and perhaps also if similar words (local, global) contained a "see also" link to outer.
Issue 1:
Now I know this is something not inline with web specs, with how Deno handles modules and all. But an API to "invalidate" a module would be so handy for implementing some rudimentary HMR. import.meta.invalidate('./path/to/module.js') for instance

I've got this dev.ts module which I run with deno run -A dev.ts ./server.tsx that creates a Worker of ./server.tsx.

I'm then watching project directory for changes and posting a message to that worker. Server is then listening for messages posted to it and sending a message via websocket to the browser to reload.... phew. Problem is, any modules imported in the server, aren't "fresh". So on my frontend, the window reloads, yet I get hydration mismatch, since the "server" is still using the old modules.

I hope this makes sense.

My dev.ts contents below. Server is kind of irrelavant, so have left that out of this issue.

import {
join,
SEP,
toFileUrl,
} from "https://deno.land/std@0.153.0/path/mod.ts";

const cwd = join(Deno.cwd(), SEP);
const watcher = Deno.watchFs(cwd);

// args[0] will be something like ./server.tsx
const mainModule = new URL(Deno.args[0], toFileUrl(cwd)).href;

let mainWorker = new Worker(mainModule, {
type: "module",
name: "main",
});

for await (const event of watcher) {
if (event.kind === "modify") {
mainWorker.postMessage({
type: "reload",
paths: [mainModule, ...event.paths],
});

queueMicrotask(() => {
mainWorker.terminate();
mainWorker = new Worker(mainModule + `?t=${new Date().getTime()}`, {
type: "module",
name: "main",
});

console.log(Deno.resources());
});
}
}

Issue 2:
Basically, assume we have a file 1.ts:

import "2.ts";
console.log("1.ts");

and another file 2.ts:

import "1.ts";
console.log("2.ts");

With latest master, running deno 1.ts --recompile would generate the following:

Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/1.ts
Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/2.ts
Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/1.ts <== duplicate compilation
2.ts
1.ts
Issue 1:
Uncaught Error: spawn /usr/local/share/atom/atom (deleted) ENOENT

Atom Version: 0.159.0-d9a5e3c

System: linux 3.16.7-200.fc20.x86_64

Thrown From: Atom Core

Steps To Reproduce

Opening atom.

Switching focus to other window of different program (not atom).

Switching back to atom, error pops up.

Stack Trace

At events.js:85

Error: spawn /usr/local/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Issue 2:
TEMPORARY WORKAROUND: ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

Atom Version: 0.152.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
Challenge Waypoint: Change Text Inside an Element Using jQuery has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0.

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

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target4").html("<i>#target4</i>");
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Issue 2:
Challenge Waypoint: Use Hex Code for Specific Colors has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586.

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

My answer is correct but wrongly flagged as erroneous.

My code:

<style>
body {
background-color: #000000;
}
</style>
Issue 1:
It's currenty hard to read TypeScript errors in VS Code:

There is a --pretty option for TypeScript, but AFAIK it doesn't show any effect when applying it using gulp-typescript or other task runner plug-ins.

So I'd like to suggest to support colored messages in Output window.

VS Code may be "skinned", or, "themed", which may cause interference with colored Output text. So if you decide to implement colored Output text I suggest to change Output colors like the following if their respective brightness will be getting too close to the Output panel's background color brightness:

/** Class definition for RGB color.
*/
class Rgb
{
constructor( public r: number
, public g: number
, public b: number
, public name: string
);

get isBright() : boolean { return r + g + b > 348; }
get isDark() : boolean { return !isBright(); }

/** converts blue <=> darkblue; red <=> darkred; white <=> black, etc. */
function inverseLuminance() : Rgb { ...; return this; }
}

/** Function used by the Output panel for setting the panel's text color.
* @param textColor - Text color requested by task runner for output.
* @param bgColor - Output panel background color.
*/
function getTextColor(textColor: Rgb, bgColor: Rgb) : Rgb
{
// If the brightness of the desired color is too close to the brightness
// of the Output panel's background color, inverse the desired color's
// luminance, i.e. switch from yellow to darkyellow etc.
if (Math.abs((textColor.r + textColor.g + textColor.b)
- (bgColor.r + bgColor.g + bgColor.b)) < 30
)
{
return textColor.inverseLuminance();
}

return textColor;
}

This will result in considerably better legible output messages:

(Text color for task runner's time stamp and basic logging information is suggested to be lightgray. Default task output text color is suggested to be white.)

Issue 2:
We have a IStatusBarService and IMessageService.setStatusMessage which looks like duplication or re-exporting. Should we move the setStatusMessage feature into the status bar service?
Issue 1:
ℹ Computer information

PowerToys version: v0.22.0

PowerToy Utility:

Running PowerToys as Admin: Yes

Windows build number: 18363.1082

📝 Provide detailed reproduction steps (if any)

Fresh install PowerToys 0.22.0

Switch Enable FancyZones radio to Off, or On

PowerToys closes (but continues to show in taskbar)

✔️ Expected result

We may continue to use PowerToys, like we can switch on/off the other tools in PowerToys

❌ Actual result

Disabling should not cause the application to close.

* I saw through many issues on FancyZones, but still this maybe a duplicate, if i find one i will close this.

Issue 2:
Summary of the new feature/enhancement

This may be more of a personal opinion but I think the PowerToys icon looks a bit out of place in the notification area. Compared to the other icons, it looks too detailed. Example

Proposed technical implementation details (optional)

A more simplified icon, possibly white only.
Issue 1:
Got the error Could not find or load main class org.neo4j.tooling.ImportTool when using the import tool with neo4j 3.1 installed with the neo4-community_macos_3_1_0.dmg on Mac El Capitan 10.11.6

The cmd I run was /Applications/Neo4j\ Community\ Edition\ 3.1.0.app/Contents/Resources/app/bin/neo4j-import

Issue 2:
Neo4j Version:: 3.1.0-M13-beta3 Community Edition

Operating System:: macOS Sierra 10.12.1

Steps to reproduce

Download the 3.1.0-M13-beta3 Community Edition version from neo4j site

Run neo4j-import

Expected behavior

Should start the process

Actual behavior

Got an Error: Could not find or load main class org.neo4j.tooling.ImportTool
Issue 1:
Glide allows to do center-crop from a file, as such:

Glide.with(this).asBitmap().load(someFile)
.apply(RequestOptions.centerCropTransform().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE))
.into<SimpleTarget<Bitmap>>(object : SimpleTarget<Bitmap>(width, height) {
override fun onResourceReady(resource: Bitmap, transition: Transition<in Bitmap>?) {
_bitmap = resource
}

override fun onLoadFailed(errorDrawable: Drawable?) {
super.onLoadFailed(errorDrawable)
}
})

That's in case we want to crop from the center.

But what if we want to crop from somewhere else? And from a specific region, while keeping the aspect ratio of this region?

For example, suppose we have 1000x1000 image, and I want to crop a 200x400 part of it.

For keeping aspect ratio of the cropping part, this means that even if I go outside of the source image, it will move (or resize if really needed) the cropping to make it right.

This means that if for some reason I tell it to crop from 899 in X coordinate, it might actually move the cropping to start from 799, instead of from 899 .

The sort of protection like of center-crop...

Issue 2:
Similar to BitmapRegionDecoder class.