WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

--- It would be great if we could search Google using PowerToys Run. If it's not an app or any files then automatically search google for it.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Summary of the new feature/enhancement

Instead of explorer preview, quick look like in Mac would be more intuitive to the user

Proposed technical implementation details

If there was an tab in power toys with QuickLook, it would be more useful than just preview which cannot show preview for various file types like .py, .kt etc..
Issue 1:
At present, using ESNext features such as decorators, async/await, class instance fields, etc. results in the editor drawing red squiggles. In the very least, it would be nice if there was an easy way to stop VSCode from complaining about these features in a normal .js file.

Perhaps some thought needs to go into how VSCode will handle the evolution of ES in general. With developers using tools like Babel, and opting into stage-n features before they are finalized as a norm, I think this is going to crop up more and more. Not to mention that popular frameworks like Aurelia, React, Ember and Angular 2 are using these features more.

As for me, I have a hard time recommending VSCode to anyone that isn't doing TypeScript or sticking strictly to ES2015. It gets ugly pretty quick otherwise. I'm looking forward to seeing this improve. It's the only thing really holding me back. Thanks for all the great work so far!

Issue 2:
… and I can't turn it off by setting javascript.validate.enable false.

Perhaps this is a soft documentation bug: the release notes proudly mention experimentalObjectRestSpread but then say:

Support for ObjectRestSpread is not yet provided by Salsa but it is on the roadmap (see microsoft/TypeScript#2103).

… which is confusing and misleading.

It's confusing because the stand-out tone of core dev responses to that issue is "not until TC39 moves it to stage 3; bother them, not us", which is much less optimistic than the Feb 2016 release notes or the TypeScript Roadmap itself.

It's misleading because it fails to describe the impact of "support… not yet provided" as error messages you can't make go away. If there's some way to make them go away, please describe it in that part of the release notes. If not, I don't think it's too strong to outright advise users of object spread properties to delay upgrading.

Without a work-around, this kills code for me, as I now have to dig for the real errors amongst a few dozen erroneous:

Property assignment expected.

Argument expression expected.

Declaration or statement expected.

I trust a workaround is possible, as code is not erroring in JSX.
Issue 1:
When there is enough content in the tab pane to go past the bottom of the tabs the content will wrap to the left under the tabs. I'd expect the content to continue to be indented the same amount rather than wrapping under. (IE9, Chrome16)

It seems floating the tab-pane left solves the issue but I'm no CSS guru so I don't know if this is a robust fix.

<div class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a href="#1" data-toggle="tab">First pane</a></li>
<li><a href="#2" data-toggle="tab">Second pane</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="1">
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content<br />
Lots of content
</div>
<div class="tab-pane" id="2">
pane 2
</div>
</div>
</div>

Issue 2:
When a page is narrow enough for the responsive navbar to kick in and you click on it and select a menu item the navbar just sits there until you click on the navbar button again to close it. This is frustrating for users as it's not how these things normally work everywhere else.
Issue 1:
When I specify a date pattern like this :

->add('h4', 'date', array( 'label' => 'Date of bird',
'widget' => 'choice',
'pattern' => '{{ day }}/{{ month }}/{{ year }}',

the result isn't Day/Month/Year but Year-Month-Day.

In the form_div_layout.html.twig, the block date_widget use "date_pattern" and not "pattern". So, I changed "date_pattern" to "pattern" and now I have the good result Day/Month/Year.

{% block date_widget %}
{% spaceless %}
{% if widget == 'single_text' %}
{{ block('field_widget') }}
{% else %}

{{ date_pattern|replace({
'{{ year }}': form_widget(form.year),
'{{ month }}': form_widget(form.month),
'{{ day }}': form_widget(form.day),
})|raw }}

{% endif %}
{% endspaceless %}
{% endblock date_widget %}

to

{% block date_widget %}
{% spaceless %}
{% if widget == 'single_text' %}
{{ block('field_widget') }}
{% else %}

{{ pattern|replace({
'{{ year }}': form_widget(form.year),
'{{ month }}': form_widget(form.month),
'{{ day }}': form_widget(form.day),
})|raw }}

{% endif %}
{% endspaceless %}
{% endblock date_widget %}

I don't know if this bug was fixed and if my solution is the good.

Issue 2:
#Customer.php

class Customer {
# (...)

/**
* @var string $phone
* @Assert\NotBlank()
* @Assert\Regex("/^\(\d{2}\) \d{4}-\d{4}$/")
* @ORM\Column(name="phone", type="string", length=14)
*/
private $phone;

# (...)
}

#CustomerType.php

class CustomerType extends AbstractType
{
# (...)
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('phone', null, array('label' => 'Telefone'))
;
}
# (...)
}

HTML Result:

<input type="text" id="paggy_admin_customer_phone" name="paggy_admin_customer[phone]" required="required" maxlength="14" class="input-text">

Workaround: If I add the "pattern" property, duplicating the code of entity, it works as expected:

#CustomerType.php

class CustomerType extends AbstractType
{
# (...)
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->->add('phone', 'text', array('label' => 'Telefone', 'pattern' => '^\
(\d{2}\) \d{4}-\d{4}$'))
;
}
# (...)
}

HTML Result:

<input type="text" id="paggy_admin_customer_phone" name="paggy_admin_customer[phone]" required="required" maxlength="14" pattern="^\(\d{2}\) \d{4}-\d{4}$" class="input-text">

Thanks!
Issue 1:
I use my File Encoding setting as Windows 1252, because I mostly use this kind of file with Atom. And every time I open a large file (let's say 500Kb size, 10k lines), Atom freezes. After a while Atom displays that keep waiting / close window, and sometimes it will load, sometimes not.

Atom always open the file as UTF-8. I noted it because I can see the erroneous characters instead of accented words, and then it changes the encoding to Windows 1252. If I use File Encoding as UTF-8, the file is opened almost instantaneously (but with that erroneous characters).

It should avoid the UTF-8 loading step, and directly open it as the defined encoding.

Issue 2:
I noticed this morning, that on OS X, Atom refocuses the application while starting up.

This means that if I CMD+TAB to another application while waiting for Atom to launch, Atom immediately grabs the focus back again.

And if I CMD+TAB again, Atom keeps grabbing it back again.

It would be great if these startup issues could be fixed quickly, especially the issue with Atom opening an untitled window all the time.
Issue 1:
In some cases, it would be really handy to be able to do this:

julia> a = randn(5, 100);

julia> norm(a, dims=1) # Doesn't work
ERROR: MethodError: no method matching norm(::Matrix{Float64}; dims=2)

julia> sqrt.(sum(abs2, a, dims=1)) # Intended result (in this case, with `p=2`)
1×100 Matrix{Float64}:
1.26534 0.763155 2.55044 2.38645 1.69696 … 1.71206 2.61463 2.81637 1.82003 1.69302

As a more advanced example, for a tensor a of shape (m, n, k), norm(a, dims=(2, 3)) would compute norm(a[i, :, :]) for all i and return something of shape (m, 1, 1).

Issue 2:
It would be nice if the LinearAlgebra.norm function have the dims keyword, like others linear algebra functions and like numpy norm axis parameter (https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.norm.html)

Just for example:

function norm(itr, p::Real=2; dims)
sum(itr.^p; dims=dims).^(1/p)
end
Issue 1:
Challenge Steamroller has an issue.

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

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

My code:

var resArr=[];
function steamrollArray(arr) {
for(var i=0;i<arr.length;i++)
{
if(Array.isArray(arr[i]))
steamrollArray(arr[i]);
else
resArr.push(arr[i]);
}

return resArr;
}

steamrollArray([[["a"]], [["b"]]]);

Issue 2:
Challenge Use a CSS Class to Style an Element has an issue.

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

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

Hello,

The code preview on the right hand side of the page is completely blank and will not update when new code is typed into the editor. Also the "Run Tests" button is unresponsive. I have tried to use three web browsers: Goggle chrome, Firefox and Safari. All three web browsers have the exact same problem so I think perhaps there is something wrong with the FCC site currently or there is something wrong on my end. Is this a common issue? Any help would be appreciated.

Thank you

My code:

<style>
.red-text {
color: blue;
}
</style>

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

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Issue 1:
http://pypi.python.org/pypi/scikits.learn (v. 0.8.1) vs http://pypi.python.org/pypi/scikit-learn (v. 0.10).

Issue 2:
Follow-up of @jnothman comment.

I would like to propose to enforce milestones in pull requests.

That means:

create a check that verify if the milestone is present

modify the check on the change log to verify consistency with the milestone.

I believe it is helpful in anticipating breaking changes, and could give a more long-term vision on the library developments. It is also helpful for contributors, as they will have a better understanding of how much their pull request is awaited.

This approach is used for example by the Astropy project: no milestoned pull requests will still have their place anyway, they are long term feature implementations or code reformatting.
Issue 1:
When the application loads I am getting the following error.

http://localhost:49769/node_modules/@angular/platform-browser-dynamic/index.js Failed to load resource: the server responded with a status of 404 (Not Found)

localhost/:21 Error: Error: XHR error (404 Not Found) loading http://localhost:49769/node_modules/@angular/platform-browser-dynamic/index.js

at XMLHttpRequest.wrapFn as _onreadystatechange

at ZoneDelegate.invokeTask (https://npmcdn.com/zone.js@0.6.12?main=browser:356:38)

at Zone.runTask (https://npmcdn.com/zone.js@0.6.12?main=browser:256:48)

at XMLHttpRequest.ZoneTask.invoke (https://npmcdn.com/zone.js@0.6.12?main=browser:423:34)

Error loading http://localhost:49769/node_modules/@angular/platform-browser-dynamic/index.js as "@angular/platform-browser-dynamic" from http://localhost:49769/app/main.js(anonymous function) @ localhost/:21

http://localhost:49769/node_modules/@angular/core/index.js Failed to load resource: the server responded with a status of 404 (Not Found)

I have explained in details about this issue in the stackoverflow

http://stackoverflow.com/questions/38212731/not-able-to-load-angular-platform-browser-dynamic

Please let me know why I am facing this issue? How do I resolve it?

Issue 2:
It seems like the static method resolveAndCreate is not present in the DefinitelyTyped typings for angular.d.ts.
Issue 1:
Expected Behavior

In flask website use tutorials, in the third step flask run to run my web, appear this mistake.

In py files line first, I use the # - coding: utf-8 -- specified utf-8.

I'm writing code in Pycharm. Start the web with the CMD run command.

I copy the project directory into ubuntu and it works.

No related problems were found on the Internet.

Please give us some ideas and solve this problem.

thank you

Below is a screenshot of the Pycharm

Tell us what should happen.

kevin@DESKTOP-5KM5T43:~/workspaces/flaskr$ flask run
* Serving Flask app "flaskr"
* Forcing debug mode on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: 244-441-781

Actual Behavior

Tell us what happens instead.

D:\workspace\development\python\WebProject\flaskr>flask run
* Serving Flask app "flaskr"
* Forcing debug mode on
* Restarting with stat
File "D:\ProgramData\Anaconda3\Scripts\flask.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file D:\ProgramData\Anaconda3\Scripts\flask.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Environment

Operating system

OS name: Microsoft Windows 10 professional edition
OS version: 10.0.16299 temporary lack of Build 16299

Python version:

D:\workspace\development\python\WebProject\flaskr>python --version
Python 3.6.3 :: Anaconda, Inc.

Flask version:

D:\workspace\development\python\WebProject\flaskr>python -m flask --version
Flask 0.12.2
Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)]

Werkzeug version:

Werkzeug (0.12.2)

Issue 2:
I am running apistar on python 3 and encountering an issue that has lead me to the werkzeug reloader.

(fresh) C:\Users\uskaxb07\PycharmProjects\testapi>apistar run
Starting up...
* Restarting with stat
File "C:\Users\uskaxb07\env\fresh\Scripts\apistar.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Users\uskaxb07\env\fresh\Scripts\apistar.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Removing the use_reloader from the call to run_simple() works. After digging into a couple of comments I found that https://github.com/pallets/werkzeug/blob/master/werkzeug/_reloader.py#L118 is doing some encoding to latin1 but only when the os is windows and the python version is 2. Could this be causing the Non-UTF-8 Syntax Error that I am recieving in python3?
Issue 1:
Simply add anywhere in template the following:

{{123456 | number}}

or

{{123456 | number:'4.2-2'}}

In desktop browsers (Firefox, Chrome, IE10) the value is correctly interpolated as:

123,456

or

123,456.00

but on mobile browsers on iPad iOS 9.2.1 (Chrome 47, Safari, Firefox 2.0) it fails resulting in empty value.

Issue 2:
Running unit tests in non-Chrome browsers raised some doubts about this API which is currently used in the Date and Currency pipes.

To start with, it is not supported in all Safari versions (desktop and mobile) and older browsers:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl

http://caniuse.com/#search=intl

Then, on browsers which support it, the result doesn't match what Chrome does.

On Firefox, one of the test fires this 2 years old bug: https://bugzilla.mozilla.org/show_bug.cgi?id=866372

On IE11, most tests are failing due to discrepancies in output (formatting, white space, special chars,etc).

At the end of the day, it seems only reliable in Chrome, but it is also difficult to polyfill.

So, if anyone has a good solution to that, please speak up!
Issue 1:
Tareq Abedrabbo opened SPR-5516 and commented

The RestTemplate does not encode the url variables. The following line:

template.postForLocation("http://twitter.com/statuses/update.xml?status={status}", "", "Ho Ho");

Results in an exception:

Exception in thread "main" java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:842)
at org.springframework.web.util.UriTemplate.expand(UriTemplate.java:140)
at org.springframework.web.client.core.RestTemplate.execute(RestTemplate.java:266)
at org.springframework.web.client.core.RestTemplate.postForLocation(RestTemplate.java:203)
at test.RestClientTest.main(RestClientTest.java:30)
Caused by: java.net.URISyntaxException: Illegal character in query at index 48: http://twitter.com/statuses/update.xml?status=Ho Ho
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3072)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URI.create(URI.java:840)
... 4 more

Affects: 3.0 M2

Issue Links:

#16441 Unable to retrieve FlashMap when contains "+"(half-space) in the request parameters

#10957 UrlPathHelper is too aggressive decoding URLs

#10962 Spring:url tag should not use application/x-www-form-urlencoded encoding

0 votes, 5 watchers

Issue 2:
ArielS opened SPR-7037 and commented

Hi,

I have the same problem that you resolved in the following issue for the put method:

http://jira.springframework.org/browse/SPR-5836

Right now i'm subclassing RestTemplate but i have to add AcceptHeaderRequestCallback and PostPutCallback inner classes because they are private members of the parent class.

Issue Links:

#15256 Please add a putForEntity and a putForLocation method to RestTemplate ("duplicates")

2 votes, 2 watchers
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

role

ANSIBLE VERSION

ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/overrides
python version = 2.7.13 (default, Dec 21 2016, 07:16:46) [GCC 6.2.1 20160830]

CONFIGURATION

OS / ENVIRONMENT

Arch Linux

SUMMARY

Roles where the directory roles/${role_name} exists but if empty are silently ignored.

STEPS TO REPRODUCE

Be @lrvick

Forget to run git submodules update --init

Call a playbook that uses role from the missing submodules

EXPECTED RESULTS

Ansible warns about the role being empty.

ACTUAL RESULTS

Missing roles are silently ignored.

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

"Playbook roles"

ANSIBLE VERSION

$ ansible --version
ansible 2.0.1.0
config file = ..../ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

OS / ENVIRONMENT

N/A

SUMMARY

We have some git submodule in the roles repository, and sometimes we don't update our git clone submodules, which make some failures.

STEPS TO REPRODUCE

A teammate adds a new "role submodule"

git pull (creates an empty directory for the new submodule)

running a playbook that includes this new role does nothing, since roles is an empty directory

<!--- Paste example playbooks or commands between quotes -->

EXPECTED RESULTS

ansible-playbook should warn about that empty role, or maybe fail because a role that does nothing should not exists.

ACTUAL RESULTS

role is "ignored"

<!--- Paste verbatim command output between quotes -->
Issue 1:
I feel like Atom should come with everything needed to make it work. This includes Git for installing packages (arguably the most important feature of Atom). When you try to install a package without Git, it throws a pretty useless and confusing error. I think Atom should check to see if Git is installed, and if not, prompt the user to install it along side Atom.

Issue 2:
Hi, I understand the need to open the devtools on errors, Atom is constantly being fixed and improved, and I agree that it should be the default behavior.

But for users like me who are trying to give this awesome editor a chance, when working on a project (not working on Atom itself), the behavior of the devtools to pop on every single error is very annoying. I am aware that packages might have problems and they need to be fixed (or disabled to stop the errors), but since I'm working on a project I don't have the time to do this. If things get critical I might debug and start disabling and debugging every single package installed, but if you keep popping that screen on my face every single time I'm gonna ditch Atom for a long time.

So, after my whining, I propose this:

At least there should be an option to disable it, probably accompanied by a warning like "procceed at your own risk, if Atom starts to misbehave, follow the debugging procedure described here >link<".

PS: I searched through the issues and didn't find a similar request, only bugs that referenced this behavior. So, in case this is a duplicate, sorry.
Issue 1:
Challenge escaping-literal-quotes-in-strings has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50.

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

Hello there. The code seem to be correct but I still can't pass the "use two double quotes (") and four escaped double quotes (")" issue. Am I mistaken and there's something wrong with the code, or I got it right and it just doesn't want to go through?

Thanks

var myStr = "I am a \"double quoted\" string inside \"double quotes\"."; // Change this line

Issue 2:
After creating a couple of bug reports I notice that there is a lot of duplication of the same bugs/errors. I don't have a bug report but a suggestion that clicking on a bug button in one particular challenge should list all the previous bugs filed here at github, so people can see if this has already been filed or not. github api someone?? I'm new to web-dev but if someone can point me the direction I can try myself to look into this.

if someone has already filed this bug, you get the point.