WhereIsAI/github-issue-similarity huggingface dataset:
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:

7.0.0 and up

Operating System:

Windows 10, 1903

Last Known Working Electron version:

6.1.7

Expected Behavior

process.windowsStore returns true

Actual Behavior

process.windowsStore returns undefined

To Reproduce

Package and run App as a Windows Store App

Screenshots

Additional Information

Issue 2:
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:

Tested on electron 5.0.0, through 5.0.6

Operating System:

Windows 10 (Tested on both 1803 and 1809)

Expected Behavior

process.windowsStore should return true if running inside of an appx package, as described in https://electronjs.org/docs/api/process#processwindowsstore

Actual Behavior

process.windowsStore returns undefined, even when running in an appx package

To Reproduce

I forked electron-quick-start to demonstrate the issue I found.

https://github.com/dangeredwolf/electron-quick-start

You can then use npm run buildWindows to create the appx.

If you're unfamiliar with appx deployment, appx files need to be signed to be installed, even in developer mode. This is basically how to do that (from Microsoft's docs)

process.windowsStore is undefined in both the main and renderer processes when installed as an AppX

Screenshots

I set it up to throw a dialog box of whatever process.windowsStore is

It's obvious from electron itself that it's running from C:\Program Files\WindowsApps

Additional Information

After further testing, I confirmed that this is an issue introduced in Electron 5.0.0. You can test this by cloning the electron-quick-start fork with process.windowsStore checks and changing package.json's "devDependencies">"electron" from "^5.0.0" to "^4.2.0"
Issue 1:
Code Sample, a copy-pastable example if possible

import win32timezone
import pywintypes
import pandas

d = pywintypes.TimeType(2001, 1, 1, tzinfo=win32timezone.TimeZoneInfo('Eastern Standard Time'))

ix = pandas.Index([d]) ## crash occurs here

Problem description

In the example above, tzinfo.utcoffset(None) returns None. In tslib.pyx _get_dst_info calls int(total_seconds(_get_utcoffset(tz, None))), and _get_utcoffset(tz, None) returns None. This causes a hard crash because total_seconds from datetime_helper.h expects a timedelta object, and crashes if the attributes "microseconds", "seconds" or "days" don't exist.

// from datetime_helper.h
npy_int64 get_long_attr(PyObject *o, const char *attr) {
npy_int64 long_val;
PyObject *value = PyObject_GetAttrString(o, attr); <-- This returns NULL

When using a timezone from pytz the _utcoffset attribute is set, which is used by _get_utcoffset, and so this crash doesn't happen with that library.

Expected Output

It shouldn't crash. Ideally it would handle these timezone types, but at least it should raise an Exception if the timezone type isn't currently supported.

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.20.0rc1+6.g844013b20.dirty

pytest: 3.0.5

pip: 9.0.1

setuptools: 34.3.3

Cython: 0.25.2

numpy: 1.11.2

scipy: None

xarray: None

IPython: 5.3.0

sphinx: 1.5.3

patsy: None

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: None

openpyxl: 2.4.1

xlrd: None

xlwt: None

xlsxwriter: 0.9.3

lxml: None

bs4: None

html5lib: None

sqlalchemy: 1.1.4

pymysql: None

psycopg2: 2.7.1 (dt dec pq3 ext lo64)

jinja2: 2.9.5

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Thanks to the wonders of duck typing, pandas.Timestamp happily accepts pywintypes.TimeType objects (otherwise known as pywintypes.datetime), including those that employ the win32timezone.TimeZoneInfo object. And most methods work.

For some reason, to_datetime does not, and indeed it crashes:

import pandas as pd
from win32timezone import TimeZoneInfo
from pywintypes import TimeType
x = TimeType(2012,12,1,0,0,tzinfo=TimeZoneInfo('GMT Standard TIme'))
y = pd.Timestamp(x)
print(y)
y.tzinfo
y.utcoffset()
y.to_datetime64()
y.to_datetime()

This occurs with Anaconda installed win64 Python 3.4.3 and Pandas 0.16.2.

I'm going to see if I can't dig down to find a key source of failure. Stay tuned
Issue 1:
🚀 Enhancement

It seems like we can improve the way user-facing APIs are surfaced in the python inteface for distributed. Specifically, we have user-facing APIs defined in many places, but there is no clear way to make something part of the external API vs internal only. One way to do this would be to define an all in init.py that exports all of our public-facing APIs.

This will also make it easier for users to introspect our module in python and see the different functions/classes that are intended to be used, and our implementation stays hidden.

Motivation

The discussion and context in #26997 makes it seem like something that we would want.

Pitch

Figure out our external facing APIs

Instead of importing everything (*) from other modules in init.py, import only the ones required

Create an all that exports these in __init__.py

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini

Issue 2:
This is to summarize maintability requests from #26919, #26997.

I think rpc should create a folder like distributed/autograd does

Maintain the names want to be exposed to users in torch/distributed/rpc/__init__.py.

Do the actual implmentation in torch/distributed/rpc/rpc_api.py.

Also, do not use from "something" import *, as descirebd in https://docs.quantifiedcode.com/python-anti-patterns/maintainability/from_module_import_all_used.html, it's not clear what has been imported to current module.

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma
Issue 1:
The waypoint throws an error asking you to make sure your li element has a closing tag even though all of them do. The reason for this error is really the fact that the element has a class assigned to it. I read the waypoint instructions as saying to replace the

elements with

elements but keep the class. Maybe consider creating an additional check/error for
elements with classes assigned to them.

Challenge Waypoint: Create a Bulleted Unordered List has an issue.

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

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

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
<ul>

<li>Click here for <a href="#">cat photos</a>.</li>

<li class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</li>
<li class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</li>
</ul>

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-create-a-bulleted-unordered-list has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.13

TensorFlow installed from (source or binary): source

TensorFlow version: v1.13.1

Python version: 3.6.7

Installed using virtualenv? pip? conda?: conda

Bazel version (if compiling from source): 0.19.2

GCC/Compiler version (if compiling from source): Apple LLVM version 9.1.0 (clang-902.0.39.2)

CUDA/cuDNN version: 10/7.4.2.24

GPU model and memory: GTX 1060

Describe the problem

I am unable to build a static version of tensorflow as described for a solution to:

#22810 (comment)

Provide the exact sequence of commands / steps that you executed before running into the problem

Trying to use tensorflow/contrib/cmake results in a number of errors

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Can you describe the approach to creating a static version of the libraries needed for the following headers:

#include <tensorflow/core/platform/init_main.h>

#include <tensorflow/core/public/session.h>

#include <tensorflow/core/framework/tensor_shape.h>

To link against my software?

Or alternatively solve this issue:

#22810

Dated in October of last year.

Static linking seems to be doable.

Issue 2:
I tried the tensorflow demo for android and it looks really promising, but there is a big problem, every time I completely cover the camera my cellphone will horribly crash and reboot, which has never happened to me, I have never encountered an error in an application that will reboot my phone completely, so in order to take this into production I have to find the reason for this, and try to fix it, I hope someone here can provide some guidance or feedback as to why this is happening, it might be that the app is working too hard, but still it would be weird for the whole phone to crash, the scenario is like this, the app is working fine and then when I cover the camera with my finger it will recognize a nematode and immediately crash, any comments would be appreciated, I wonder if anybody else has run into this issue, my cellphone is a samsung galaxy s6 by the way.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. When entering the three lines required for the code to execute:

$($(".slot")[0]).html(slotOne);
$($(".slot")[1]).html(slotTwo);
$($(".slot")[2]).html(slotThree);

If you use single quotes (') instead of double (") the code will pass, but the grader will fail you for:

You should have used the the selector given in the description to select each slot and assign it the value of slotOne, slotTwo and slotThree respectively

Issue 2:
Issue 1:
i have it set to false but format replaces tabs with spaces and there is no tabify command to repair it? thanks

Issue 2:
From @TJSoftware on January 29, 2016 17:35

Summary

I am unable to format code for xml and c#. json and javascript do not have any issues.

What I have done

Originally I modified my editor.tabSize to be 2 (in workspace). I removed this override and just left in the defaults. I also overwrote the keybinding for editor.action.format to use ctrl+k ctrl+d. I also removed those and left just the default in. Working with test files of each type mentioned above I am able to format some file types, but not others. This does not seem to be dependent on any of my settings, I have just added that information in just in case it is relevant.

C# example - what I expect

The following screenshot the brackets should line up in MyClass.

In this case while the tab size is set to 2 I would also expect that MyClass would be moved left to adjust to the correct tab size.

Officially the starting bracket would be on the same line as the class definition for my company policy, but I do not see that option available. Bonus points if you can mention how to set this in VSCode. VS Enterprise was able to do this with just a checkbox in settings, I am ok with a bool in json, I just do not see the value anywhere.

XML example - what I expect

Here I expect that subLevel3 would be tabbed in to whatever the current tab setting is.

Tech Specs

Windows 10 Pro

Copied from original issue: microsoft/vscode#2554
Issue 1:
This is a feature request.

Can we have variable-sized (non-square) GridView widgets? E.g. the example from https://docs.flutter.io/flutter/widgets/GridView-class.html:

new GridView.count(
primary: false,
padding: const EdgeInsets.all(20.0),
crossAxisSpacing: 10.0,
crossAxisCount: 2,
children: <Widget>[
const Text('He\'d have you all unravel at the'),
const Text('Heed not the rabble'),
const Text('Sound of screams but the'),
const Text('Who scream'),
const Text('Revolution is coming...'),
const Text('Revolution, they...'),
],
)

This results in a lot of extra space below the text, since each grid item is square. It would be neat to set the height of each grid item. The simplest would be to set all the grid items to the same height. But we could envision the height being determined based on the height of the child widgets.

We could use a Wrap widget to have child widgets of variable heights, but then there is no scrolling.

Issue 2:
We should consider adding a sliver wrap widget. This widget would function like the Wrap widget, but support scrolling.

SliverGrid currently relies on users specifying a fixed cross axis count, or a max extent for the cross axis. Further, the only layout we support (SliverGridRegularTileLayout) assumes that the items in the grid are all the same size as well as evenly spaced.

Adding a SliverWrap widget could provide a lot more flexibility for users' layouts.
Issue 1:
I have a form type that incorporates another form type.

I've added an event-listener to the sub-form but the listener is never executed.

The first Form Type :

class AFormType extends AbstractType {

public function buildForm(FormBuilderInterface $builder, array $options) {
$builder
->add('aSubFormType', new SubFormType());
}
//[...]
}

The second Form Type :

class SubFormType extends AbstractType
{

public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add("metier", "text");

$builder->addEventListener(
\Symfony\Component\Form\FormEvents::PRE_SET_DATA,
function(\Symfony\Component\Form\FormEvent $event){
// Some Stuff never executed
});
}
}

I don't know if this behaviour is the right or if this is a bug? And how I can use EventListner in sub-form ?

Issue 2:
Hi @bschussek

I'm having an issue since I've updated my code to Symfony v2.3.1, I have an embed form defined as virtual and neither FormEvents::PRE_SET_DATA event nor setData method are called anymore.

I wrote a test to be more explicit on the problem I have: https://gist.github.com/jeremyb/5764427. I ran this test on the Symfony 2.2 and 2.3 branches and I think there's a regression on testVirtualAndEvents.

Test
2.2
2.3

testVirtual
success
success

testVirtualWithCountry
fails
fails

testVirtualAndEvents
success
fails

I'm trying to understand the differences made on Form component between 2.2 and 2.3 and I see some PR that can be related to this issue:

I would have thought that PR #6573 fixes the setData call for virtual forms but it seems that it's not the case and the latest comment of @Strate confirms that ;

the PR #7878 introduces the auto_initialize option, so the setData isn't called anymore on children if I understand it correctly?

So I think my problem comes from the fact that setData isn't called for virtual forms and because auto_initialize prevents initialization of children (according to this the exception Automatic initialization is only supported on root forms.), so without initialization and data the FormEvents::PRE_SET_DATA event isn't called anymore. Is this correct?

I'm not sure whether it's a bug or an evolution of the Form component but is there a new way to do this kind of code and adapt the behavior of a virtual form from the data?

Let me know if you want me to commit my FormVirtualTest.php test somewhere, I can do a PR to your symfony fork if you want.
Issue 1:
Hello everyone. I have some issues that i can't find in the internet. I have two screen on the extends mode and i want to change it in the electron on duplicate mode in time. Does electron has this properties.

Issue 2:
I do not know whether this is a bug or just not installed dependencies. Code:

home/gs/Рабочий стол/PROECT/image_editor/node_modules/electron/dist/electron: /lib/i386-linux-gnu/libdbus-1.so.3: no version information available (required by /home/gs/Рабочий стол/PROECT/image_editor/node_modules/electron/dist/electron)

/home/gs/Рабочий стол/PROECT/image_editor/node_modules/electron/dist/electron: /lib/i386-linux-gnu/libdbus-1.so.3: no version information available (required by /home/gs/Рабочий стол/PROECT/image_editor/node_modules/electron/dist/electron)
Issue 1:
Environment

Windows build number: [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Steps to reproduce

Open the Windows Terminal

Open the Setting menu, either by pressing Ctrl + , or clicking on the Settings button in the dropdown menu next to the new tab button

Expected behavior

The Windows Terminal settings window showing up.

Actual behavior

Windows asking me how do I want to open this file, specifying that it's a .json file in the "Always use this app to open .json files" ; see picture attached below.

Issue 2:
When I press the settings on the Windows Terminal, it asks me how I want to open the .json file. So the settings won't open. Please help me
Issue 1:
Hi,

When try to make a multiline database query, the syntax colouration is bad...

$newUser = $db->prepare("INSERT INTO users".
"(id, realname, pseudo, email, pwd, isfirstvisit)".
"VALUES (:id,:realname,:pseudo,:email,:pwd,1)");

(just like markdown :) )

Issue 2:
Tab spacing should be absolute, independent of any text on a given line.

Currently, tab spacing is relative to the last 'word'. This makes it a little ridiculous to line up lines of text. As you can see, the tabs just don't like up at all.
Issue 1:
I want SerialPort communication on my application, but WebSerial is not implemented, so I thought I'd use the device file provided by the platform instead.

That's where the problem came...

I'm having trouble finding a way to abort reading a device file that never closes infinitely like this.

Even if you forcibly specify the "ResourceID" and close the resource with Promise.race(), setTimeout or std::async::delay(), the "promise runaway" still could not be stopped.

(Looking at Deno.resource() after closing, the resource was successfully closed.)

import {abortable, delay} from "...std@0.172.0/async/mod.ts";
import {readAll, writeAll} from "...std@0.172.0/streams/mod.ts";

const file = await Deno.open("COM1");
const ac = new AbortController();

// Successfully written
await writeAll(file, new TextEncoder().encode("AT\n"));

delay(1000).then(()=>{
ac.abort();
file.close();
// Successfully closed
console.trace(Deno.resources());
});

// Can't next on from here
const result = await abortable(readAll(file), ac);

This is something that can't be helped due to the internal specifications, so is there any other way to solve it than to ask them to add AbortSignal to read() or write() like fetch()?

Or are there other workarounds?

Issue 2:
This will improve performance
Issue 1:
Not sure how this could be done but for our application we could run the same container 10 times on the same minion quite happily using different ports as it is lightweight. To load balance though we would need to map the ports back to appear as one service port. To allow other machines to talk to it easily.

May be it could hang of the container port name and a matching regex on the pod name. So all pods that start Fred- with a port called http would be load balanced by the same service?

Issue 2:
IIUC, host port numbers in each pods are not important for replicated services in Kubernetes.

From the perspective of orchestration, the important thing is port of service, but not port of pod.

Also manual assignment of host port can be troublesome because spawn of container just fails if the container manifest specified a port which is already taken by other containers or Kubernetes daemons.

So I propose the following enhancement.

Keep tracking taken ports in etcd

Allow omitting host port in container manifest

If omitted, Kubelet automatically choose an available host port for each exposed container port.
Issue 1:
The latest stable release of Next is 4.2.3, but 3.2.3 is listed as the latest release in https://github.com/zeit/next.js/releases

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

Expected Behavior

The latest release on the releases page should be 4.2.3

Current Behavior

The latest release on the releases page is 3.2.3

It looks like maybe the security release was backported which was why the new version was released.

Steps to Reproduce (for bugs)

N/A

Context

I was upgrading next.js in my package.json and needed to know what number to upgrade it to.

Your Environment

N/A

Issue 2:
Following the instructions in README to listen to route events doesn't work

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

Expected Behavior

It should be called and I should see the console logs

Current Behavior

Nothing

Steps to Reproduce (for bugs)

Add the code (either in pages/*.js or pages/_document.js)

// onRouteChangeStart(url) - Fires when a route starts to change
Router.onRouteChangeStart = (url) => {
console.log('App is changing to: ', url)
}

// onRouteChangeComplete(url) - Fires when a route changed completely
Router.onRouteChangeComplete = (url) => {
console.log('App has changed to: ', url)
}

// onRouteChangeError(err, url) - Fires when there's an error when changing routes
Router.onRouteChangeError = (err, url) => {
console.log('App has error when changing: ', err, url)
}

// onBeforeHistoryChange(url) - Fires just before changing the browser's history
Router.onBeforeHistoryChange = (url) => {
console.log('App is changing to before history change: ', err, url)
}

// onAppUpdated(nextRoute) - Fires when switching pages and there's a new version of the app
Router.onAppUpdated = (nextRoute) => {
console.log('App is updating to: ', nextRoute)
}

Refresh the page, and click around and add some Router.push events

Nothing in inspector

??

Context

I can't use this to track pageviews for my in-house analytics system.

Your Environment

Tech
Version

next
2.4.6

node
8.1.3

OS
10.12.5

browser
chrome 60.0.3112.72 (Official Build) beta (64-bit)

etc