WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In Waypoint: Add Borders Around your Elements, the requirement is:

Give your image a border width of 10px.

However, this does not check for actual pixel width. This test is passed with any border width (1px, 5px, 50px, etc.)

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements has an issue. Waypoint requires you to have a 10px border around the img element, but you can pass by with a 5px border.

Steps to reproduce:

Paste .thin-red-border { border-color: red; border-width: 5px; border-style: solid; } into your code, inside your style tag.

Add thick-green-border to your img tag classes

Change your .thin-red-border to .thick-green-border and border-color: red; to border-color: green; inside your style tag.

Then the Waypoint allows you to the next challenge even if you don't change your border-width to 10px;
Issue 1:
Challenge Name

Replacing If Else Chains with Switch

Issue Description

Tests are evaluating commented out code. In cases where existing if/else block is left in place and commented rather than deleted the tests fail.

Looks to be similar if not the same issue affecting a different challenge reported in #11360

Browser Information

Chrome, Version: 56.0.2924.87

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Your Code

![untitled](https://cloud.githubusercontent.com/assets/8456105/23828563/07185c06-072a-11e7-9f2b-e19014eecc39.jpg)
function chainToSwitch(val) {
var answer = "";
// Only change code below this line

// if (val === "bob") {
// answer = "Marley";
// } else if (val === 42) {
// answer = "The Answer";
// } else if (val === 1) {
// answer = "There is no #1";
// } else if (val === 99) {
// answer = "Missed me by this much!";
// } else if (val === 7) {
// answer = "Ate Nine";
// }
switch(val){
case "bob":
answer = "Marley";
break;
case 42:
answer = "The Answer";
break;
case 1:
answer = "There is no #1";
break;
case 99:
answer = "Missed me by this much!";
break;
case 7:
answer = "Ate Nine";
break;
}
// Only change code above this line
return answer;
}

// Change this value to test
chainToSwitch(7);

Screenshot

Issue 2:
When I complete the code that I have been working on for a bonfire there is sometimes something that I will want to change after I have already submitted and run my code. I then noticed that there will be multiple bonfire completions under your profile when you run the code more than once. This occurs even when you run the same code twice. Across the ~40,000 users that are signed up right now, it might save some significant drive space to only show one of these.
Issue 1:
TypeScript Version:

1.8.2

Problem

I've found that somewhere between typescript 1.6.2 and 1.8.2, it started printing relative file names in error messages instead of absolute file names. This makes it harder for us to find the right (generated) input file, since we have to know what the paths are relative to. Was this change on purpose, or accidental? It's not listed in the change log.

Issue 2:
TypeScript Version: 1.8.5

Visual Studio 2013 Version: 12.0.40629.00 Update 5

Code

The code is available via a codeproject article, called "First Angular2 App with TypeScript and Visual Studio 2013." I downloaded the code, unblocked it, opened it in VS2013 and ran it.

http://www.codeproject.com/Articles/1060262/First-Angular-App-with-TypeScript-and-Visual-Studi

Expected behavior:

When the application is Cleaned in Visual Studio 2013, and then rebuilt, it should regenerate javascript from typescript and then run if there are no errors. The problem is that there are errors that were probably not there in a prior version of TypeScript.

Actual behavior:

The first time the application builds, it gets me to upgrade TypeScript to 1.8.5. The first time it runs, the application works successfully, I believe because the custom tool does not need to run as there have been no changes to the typescript file.

Changing the typescript file will cause typescript to return "Build: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."

This is in spite of having the TypeScriptExperimentalDecorators option set to true in the csproj file.

But there is no need to even change the typescript file. Simply cleaning the code appears to cause the failure.

The (poor) workaround is to tick the box to allow the code to be generated even if there's an error. Obviously this is bad especially if there are real errors needing to be corrected.

Based on the number of demonstration apps out there I believe this option was working at some stage but is not working presently.
Issue 1:
I tried using the @types/color package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/color

Authors: @@jameswlane @BeeeQueue

ERROR ERROR in /Users/lifenautjoe/Documents/code/okuna/okuna-web/node_modules/@types/color/index.d.ts(13,40): nuxt:typescript 13:54:14
13:40 Type parameter 'T' has a circular default.
11 | type ColorParam = Color | string | ArrayLike<number> | number | { [key: string]: any };
12 |
> 13 | interface Color<T extends ColorParam = ColorParam> {
| ^
14 | toString(): string;
15 | toJSON(): Color<T>;
16 | string(places?: number): string;

Issue 2:
React typings throws errors in terminal after installation via typings

error TS2320: Interface 'Element' cannot simultaneously extend types 'ReactElement<any>' and 'ReactElement<any>'.
Named property 'type' of types 'ReactElement<any>' and 'ReactElement<any>' are not identical.

ERROR in /Users/ajvivek/Dev/ES6/motionize-code/typings/globals/react/index.d.ts
(2375,5): error TS1036: Statements are not allowed in ambient contexts.

ERROR in /Users/ajvivek/Dev/ES6/motionize-code/typings/globals/react-dom/index.d.ts
(69,5): error TS2309: An export assignment cannot be used in a module with other exported elements.

ERROR in /Users/ajvivek/Dev/ES6/motionize-code/node_modules/@types/react-dom/index.d.ts
(19,31): error TS2315: Type 'DOMAttributes' is not generic.

ERROR in /Users/ajvivek/Dev/ES6/motionize-code/node_modules/@types/react-dom/index.d.ts
(44,60): error TS2315: Type 'DOMAttributes' is not generic.

ERROR in /Users/ajvivek/Dev/ES6/motionize-code/node_modules/@types/react/index.d.ts
(2368,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'a' must be of type 'HTMLProps<HTMLAnchorElement>', but here has type 'HTMLProps<HTMLAnchorElement>'.

ERROR in /Users/ajvivek/Dev/ES6/motionize-code/node_modules/@types/react/index.d.ts
(2369,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'abbr' must be of type 'HTMLProps<HTMLElement>', but here has type 'HTMLProps<HTMLElement>'.

index.d.ts

/// <reference path="globals/react/index.d.ts" />
/// <reference path="globals/react-dom/index.d.ts" />

Is anyone facing this issue?
Issue 1:
I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting

Current behavior

Related to #9047. AppConfig is loaded using APP_INITIALIZER. Before the returned promise has been resolved, the initializer for the requested route is already invoked. The initializer will fail if it requires settings from AppConfig

Expected behavior

The route resolvers should be invoked after the APP_INITIALIZER promise(s) have been resolved

Minimal reproduction of the problem with instructions

https://plnkr.co/edit/PbTGxQ2X1aKUVfUvJdcO?p=preview

What is the motivation / use case for changing the behavior?

Use API url from AppConfig in a resolver

Please tell us about your environment:

Not relevant

Angular version: 2.0.X

2.4.8 (I have not tried downgrading but I thought is was working properly in 2.4.7)

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome but does not seem relevant

Language: [all | TypeScript X.X | ES6/7 | ES5]

Typescript

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

[x ] bug report
[ ] feature request
[ ] support request

Current behavior

After update angular my application shows the loader and that's it, nothing happens.

On version 2.4.7 the site works just fine.

I have no errors on console. I have no clue what's causing this issue except the version change

Expected behavior

The site should work just like it 2.4.7

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Updating angular from 2.4.7 to 2.4.8

Please tell us about your environment:

Windows 10,

Webstorm 2016.3.3

Angular version: 2.0.8

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome 56.0.2924.87 (Only one that was tested)

Language: [all | TypeScript X.X | ES6/7 | ES5]

TypeScript 2.1.6
Issue 1:
there is a problem in Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler

lines 38-42

$method = $form->getConfig()->getMethod();

if ($method !== $request->getMethod()) {
return;
}

i use the same form and it's creating process for POST, PUT, PATCH. i set the method in the template like this:

form_start( form , {'method': 'POST' , 'action': url( 'post_resource' ) })

when the method is PUT or PATCH (other than the one in form's config, which is default, ie POST), then the check on line 40 fails with no verbal error.

why is this check&return here anyway? i don't see any point in it.

Issue 2:
I am trying to forward a request to controller action

using

i am inside actionA and i am trying to forward request to actionB

$this->forward('controller:actionB', $path);

The problem is come methods in actionB throw Exception and get a blank page after that.

I expected to see the exception trace in the debugging page not a blank page.

after check the source code of the forward function

public function forward($controller, array $path = array(), array $query = array())
{
$path['_controller'] = $controller;
$subRequest = $this->container->get('request_stack')->getCurrentRequest()->duplicate($query,
null, $path);
return $this->container->get('http_kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
}

And then forward function call

return $this->container->get('http_kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
}

handle function code

public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());

try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if (false === $catch) {
$this->finishRequest($request, $type);

throw $e;
}

return $this->handleException($e, $request, $type);
}
}

the catch variable is by default = true and there no way to pass it in the forward function

so it will never throw any exception and always return a blank page

I think there is something wrong here because i can't see any exception thrown in actionB
Issue 1:
Dear Pandas community, this is a duplicate of SO's question. I have seen a lots of similar questions across the web, but unfortunately I was not able to find the answers that could help me.

What I'm trying to do is just to reshape the DataFrame with MultiIndex via unstack() method. Here is it:

val
item indicator
0 Расположение: Минское шоссе /Минское шоссе
Направление: Запад
Площадь: 1200 м²
Стоимость: 1 007 259 000 руб.
1 Расположение: Переделкино /Минское шоссе
Направление: Запад
Площадь: 850 м²
Стоимость: 973 683 700 руб.
2 Расположение: Бородки /Минское шоссе
Направление: Запад
Площадь: 860 м²
Стоимость: 786 669 600 руб.

The desired output:

Расположение: Направление: Площадь: Стоимость:
0 ... ... ... ...
1 ... ... ... ...
2 ... ... ... ...

I tried to use the unstack() according to the manual, but with no success:

In [6]: combined.unstack('indicator')
...
ValueError: Index contains duplicate entries, cannot reshape

Any help will be appreciated.

Issue 2:
It would be nice to have the possibility to plot expressions. Suppose I have a dataframe with three columns: col1, col2, col3. Now I can do:

df.plot.scatter(x='col1', y='col2')

it would be nice to be able to plot expressions directly:

df.plot.scatter(x='col1 ** 2', y = 'col2 / sqrt(col3)')

and also for other plotting methods (e.g. histograms)
Issue 1:
This issue in markupsafe is transitively included in flask, so even applications running Flask 1.1.4 are crashing on startup.

Here is a sample stack trace:

Traceback (most recent call last):
File "/<...>/bin/superset", line 33, in <module>
sys.exit(load_entry_point('apache-superset==1.4.1', 'console_scripts', 'superset')())
File "/opt/bb/bin/superset", line 25, in importlib_load_entry_point
return next(matches).load()
File "/<...>/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/<...>/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/<...>/lib/python3.9/site-packages/superset/__init__.py", line 18, in <module>
from flask import current_app, Flask
File "/<...>/lib/python3.9/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
File "/<...>/lib/python3.9/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/<...>/lib/python3.9/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/<...>/lib/python3.9/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/<...>/lib/python3.9/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/<...>/lib/python3.9/site-packages/markupsafe/__init__.py)

Environment:

Python version: 3.9

Flask version: 1.1.4

Issue 2:
Since the update of itsdangerous module to version 2.1.0, Flask 1.1.2 fails to run.

This is because Flask’s requirements.txt indicates to install itsdangerous >= 0.24, it automatically installs the newest version which leads to using deprecated feature.

I can do a workaround in my project’s requirements.txt to install itsdangerous <= 2.0.1 before installing Flask but is it possible to fix the requirements.txt in Flask to install itsdangerous not upper than 2.0.1?

To replicate the bug,

install Flask 1.1.2

flask run in terminal

it will produce ImportError: cannot import name 'json' from 'itsdangerous'

Thank you in advance.

Environment:

Python version: 3.8

Flask version: 1.1.2
Issue 1:
It looks like Pace (or NProgress) ! So cool man!

But there isn't any isomorphic loading bar component out in the React ecosystem. Yes, I tried to make one, but it just feels un-natural, and I couldn't figure out how to place loading bar during AJAX/REST request...😂

Issue 2:
Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with react-motion etc). As I understand it, one would need to modify the top-level App component.

The client entry file seems to look for a globally assigned __NEXT_DATA__.app variable but I can't find any documentation on that.
Issue 1:
Don't have time to implement this, but I wanted to float the idea and park it. It's pretty trivial and you can achieve the same thing with filter, but it might be nice if drop had a regex keyword. E.g., these would be equivalent

df = df.filter(regex="^(?!var_start)")
df = df.drop(regex="^var_start", axis=1)

Issue 2:
I assume that this was officially supported before. Haven't narrowed it down any more than sometime between 0.16.2 and 0.17.0.

In [1]: pd.__version__
Out[1]: '0.16.2'

In [2]: pd.date_range("Jan 1", "March 31", name="date")
Out[2]:
DatetimeIndex(['2015-01-01', '2015-01-02', '2015-01-03', '2015-01-04',
'2015-01-05', '2015-01-06', '2015-01-07', '2015-01-08',
'2015-01-09', '2015-01-10', '2015-01-11', '2015-01-12',
...

In [1]: pd.__version__
Out[1]: '0.17.0'

In [2]: pd.date_range("Jan 1", "March 31", name="date")
---------------------------------------------------------------------------
OutOfBoundsDatetime Traceback (most recent call last)
<ipython-input-2-8eaca08051ac> in <module>()
----> 1 pd.date_range("Jan 1", "March 31", name="date")

/Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/tseries/index.py in date_range(start, end, periods, freq, tz, normalize, name, closed)
1912 return DatetimeIndex(start=start, end=end, periods=periods,
1913 freq=freq, tz=tz, normalize=normalize, name=name,
-> 1914 closed=closed)
1915
1916

/Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/util/decorators.py in wrapper(*args, **kwargs)
87 else:
88 kwargs[new_arg_name] = new_arg_value
---> 89 return func(*args, **kwargs)
90 return wrapper
91 return _deprecate_kwarg

/Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/tseries/index.py in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, ambiguous, dtype, **kwargs)
234 return cls._generate(start, end, periods, name, freq,
235 tz=tz, normalize=normalize, closed=closed,
--> 236 ambiguous=ambiguous)
237
238 if not isinstance(data, (np.ndarray, Index, ABCSeries)):

/Users/tom.augspurger/Envs/py3/lib/python3.5/site-packages/pandas/tseries/index.py in _generate(cls, start, end, periods, name, offset, tz, normalize, ambiguous, closed)
383
384 if start is not None:
--> 385 start = Timestamp(start)
386
387 if end is not None:

pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:8967)()

pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:22303)()

pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas/tslib.c:24364)()

pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:23344)()

pandas/tslib.pyx in pandas.tslib._check_dts_bounds (pandas/tslib.c:26590)()

OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1-01-01 00:00:00
Issue 1:
In my page by using ng-outlet.

<ng-outlet class="app"></ng-outlet>

I aspect something like, where month-cmp it's just my directive view.

<ng-outlet class="app" month-cmp>
<div class="tasks"><div>
</div>

Instead I have an extra div that will start creating some possible css conflict.

<ng-outlet class="app ng-scope" month-cmp>
<div month-cmp>
<div class="tasks"><div>
</div>
</div>

Issue 2:
Angular 1 Component Router adds a <div> who wraps the template's content :

<ng-outlet>
<div component-name="" ng-scope>
<!--- template content -->
</div>
</ng-outlet>

But this behaviour breaks some CSS rules, for example with angular material.

Why this div is added ? If it is mandatory, how add attributes (who will compiled after) to this div from the template ?
Issue 1:
ISSUE TYPE

Bug Report / Feature Idea

ANSIBLE VERSION

$ ansible --version
ansible 2.1.0.0

OS / ENVIRONMENT

Ubuntu 16.04.1

SUMMARY

Ubuntu 16 comes without aptitude package:

"Could not find aptitude. Please ensure it is installed."

STEPS TO REPRODUCE

Tasks with upgrade parameter fails:

~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a "upgrade=full"
lab.xxx | FAILED! => {
"changed": false,
"failed": true,
"msg": "Could not find aptitude. Please ensure it is installed."
}
~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a "upgrade=yes"
lab.xxx | FAILED! => {
"changed": false,
"failed": true,
"msg": "Could not find aptitude. Please ensure it is installed."
}
~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a "upgrade=full"
lab.xxx | FAILED! => {
"changed": false,
"failed": true,
"msg": "Could not find aptitude. Please ensure it is installed."
}
~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a "upgrade=safe"
lab.xxx | FAILED! => {
"changed": false,
"failed": true,
"msg": "Could not find aptitude. Please ensure it is installed."
}

Only upgrade=dist work fine:

~/ansible-scripts $ ansible -i inventory/hosts lab -m apt -a "upgrade=dist"
lab.xxx | SUCCESS => {
"changed": false,
"msg": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nCalculating upgrade...\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\n",
"stderr": "",
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nCalculating upgrade...\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"Calculating upgrade...",
"0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded."
]
}

Issue 2:
From @tjbenator on April 23, 2016 7:18

ISSUE TYPE

Bug Report

COMPONENT NAME

apt

ANSIBLE VERSION

ansible 2.0.1.0

CONFIGURATION

Mostly defaults, nothing that would affect this.

https://github.com/binarypenguin/automation/blob/master/ansible.cfg

OS / ENVIRONMENT

Ubuntu 16.04 -> Ubuntu 16.04

SUMMARY

STEPS TO REPRODUCE

ansible [HOSTNAME] -m apt -a 'update_cache=yes cache_valid_time=3600'

EXPECTED RESULTS

Download apt updates

ACTUAL RESULTS

HOSTNAME | FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"cache_valid_time": 3600,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"install_recommends": null,
"package": null,
"purge": false,
"state": "present",
"update_cache": true,
"upgrade": null
},
"module_name": "apt"
},
"msg": "Could not fetch updated apt files"
}

sudo apt-get update works fine on the host. I thought the issue was that Ubuntu 16.04 LTS does not include Aptitude by default. Also python-apt wasn't installed. Installing them both on the remote machine did not fix the issue.

Copied from original issue: ansible/ansible-modules-core#3523
Issue 1:
PowerRun is fantastic, and I have missed it every time I switch from Mac to PC.

I can search programs on my computer, and I can do simple calculations such as 9*3 and 5+2 and similar.

Would is be possible to add web search and currency calculations?

Entering for instance "10DKK" should result in conversions to 5 top currencies and the one from you locale settings in Windows.

Web search should be either default Google, or for instance "g " to search Google, "b " to search Bing, "w " to search WiKipedia, "d " to search DuckDuck and "y " to search Youtube

Issue 2:
ℹ Computer information

PowerToys version: Version v0.20.1

PowerToy Utility: FancyZones

Running PowerToys as Admin: Yes

Windows build number: [run "winver"] 1803

📝 Provide detailed reproduction steps (if any)

Using Google Chrome, when moving a tab to merge with the browser. FancyZone interferes and makes the tab that the user wants to merge with the browser becomes white and takes around a minute to close manually.

✔️ Expected result

To merge a google chrome tab to the browser

❌ Actual result

instead of merging the tab becomes white with invisible Minimize, Enlarge, Close. Takes a minute to close manually

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form