WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge Add a Submit Button to a Form has an issue.

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

Indicator moves to an incorrect location when clicking inside the text editor, specifically at the end of existing text.

My code:

<link href="https://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>

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

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
<button type="submit">submit</button>
</form

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
✅ ➡️ Edit 2020 for Webpack users:

always prefer import nowadays. Only use require if the package is not an ES Module.

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

const ofi = require('object-fit-images');

In webpack 1.x, this picks up the CommonJS file defined in main.

In webpack 2.x, this loads the module file and sets ofi = {default: realOfi}, which means that users have to use the unnatural const ofi = require('object-fit-images').default. Example

If the current behavior is a bug, please provide the steps to reproduce.

npm i object-fit-images@3.1.3
npm i webpack@2.4.1 --global
echo 'var ofi = require("object-fit-images"); ofi()' > src.js; webpack src.js errors.js
echo 'var ofi = require("object-fit-images").default; ofi()' > src.js; webpack src.js works.js
echo 'import ofi from "object-fit-images"; ofi()' > src.js; webpack src.js works-esm.js

What is the expected behavior?

import is for ES Modules and it should try to read the module file if it exists. This works correctly.

require is for CJS files and it should only read the main entry point, not the module one. If it does, it should at least flatten default wherever possible.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

node 7.8.0

webpack 2.4.1

OSX 10.11.6

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Wrong parsing images by webpack

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Current binding a src attribute from 'string'

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Hello!

I'im using webpack + vue-loader for insert my images from unsplash api.

Here a code https://gist.github.com/TeodorDre/742a244039e2ea6f3f7ceede4d2e4d30

On 11 line i try dinamically binding my images. But instead of string src attribute, i got this -> http://tinypic.com/r/t7kfbm/9 first link

https://imgur.com/6mckmWM second link

I'have no idea what is a trouble. It can be file-loader or url-loader, but i cant understand why webpack trying to do something with image. It is remote an api link.

Webpack 3.10.0. Here is my config https://gist.github.com/TeodorDre/5865d1b5bcc45dc02e7245ded2237b16

example string that comes from api https://images.unsplash.com/photo-1522205940279-d75807ebcd91?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE5NzE1fQ&s=7cd6765ea295c5b917e921e8ea4aa007
Issue 1:
ℹ Computer information

Windows build number: Windows 10 Version 2004 (OS Build 19041.329)

PowerToys version: v0.19.2

PowerToy module: PowerToys Run

📝 Provide detailed reproduction steps (if any)

Set global hotkey/shortcut key to Ctrl+Alt+Shift+Z

Make Brave browser (https://brave.com/) or Altap Salamander (https://www.altap.cz/) window have focus. There are other apps, but these are the ones that are not working for me.

Use the shortcut key and nothing happens. Switch to another app or to the desktop and the shortcut key works

✔️ Expected result

PowerToys Run opens

❌ Actual result

PowerToys Run does not open

📷 Screenshots

N/A

Issue 2:
Steps to reproduce

Start PowerToys as admin, and open cmd as admin. Press Alt+Space

Expected behavior

PT Run should appear

Actual behavior

PT Run doesn't appear and window context menu gets opened.
Issue 1:
I cannot seem to replicate the bug I encountered, But I figure it's probably worth checking for an issue.

After writing some 50 lines of CSS, and then using CMD+Z to undo about 30 of those lines and saving, I was unable to CMD+Y to Redo that code I removed. I was luckily able to get it back through via the dev tools. Haven't been able to replicate the issue, but for now I'm going to switch back to my previous editor to be safe.

Using the new Version 1.0, with only 3 extra plugins: Autoprefixer, Atom-terminal and emmet.

Issue 2:
Hi,

I used the Undo feature to go back into a stage that I desire to check something in my code. I went back something like 50 times. I checked watherever I was looking for and then I was ready to go back to the last stage by using Ctrl+Y. Unfortunatelly, the Redo feature only worked something like 20 times, and I lost some code.

Did anyone have the same issue?

P.S.: Hope this is the right place to post about it...
Issue 1:
Given a DataFrame which has a MultiIndex. When a label of the MultiIndex has the value NaN and the DataFrame is written to an excel file, the label will have a value which is not NaN in the excel file.

Code Sample, a copy-pastable example if possible

df = pd.DataFrame({'c1': [1,1,2,2],
'c2': [None] + "b a b".split()})
df

returns a DataFrame where the first element of column 'c2' is NaN:

c1 c2
0 1
1 1 b
2 2 a
3 2 b

Set both columns as the index:

df_midx = df.set_index(['c1', 'c2'])
df_midx

returns

c1 c2
1
1 b
2 a
2 b

Write DataFrame to excel file and read it back in:

df_midx.to_excel('df_midx.xlsx')
df_midx_from_xlsx = pd.read_excel('df_midx.xlsx')
df_midx_from_xlsx

returns

c1 c2
0 1.0 b
1 b
2 2.0 a
3 b

The first element of column 'c2' is now set to 'b' instead of NaN.

Expected Output

c1 c2
0 1.0
1 b
2 2.0 a
3 b

output of pd.show_versions()

INSTALLED VERSIONS

commit: ac174349b0e1525475c2354e1c0b8ee1ed1cabad

python: 2.7.6.final.0

python-bits: 64

OS: Linux

OS-release: 3.13.0-88-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

pandas: 0.18.1

nose: None

pip: 1.5.4

setuptools: 2.2

Cython: None

numpy: 1.11.0

scipy: 0.16.1

statsmodels: 0.6.1

xarray: None

IPython: 4.0.1

sphinx: None

patsy: 0.4.1

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: 2.5.2

matplotlib: 1.5.0

openpyxl: 2.3.5

xlrd: 1.0.0

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None

Issue 2:
This is related to the following commit.

jreback@625ee94

When one level in the MultiIndex is all NaN, line 2819 in DataFrame.reset_index() and subfunction _maybe_cast, will have a problem, because values is empty.

2819: values = values.take(labels)

IndexError: cannot do a non-empty take from an empty axes

A possible fix is to add the following lines before 2819:

if mask.all():

values = labels * np.nan

return values
Issue 1:
It worked on babel 6.

It occurred in React Component on babel 7.

Here is an example.

// browser error: Uncaught TypeError: Cannot read property 'bind' of undefined

export default class App extends React.Component {
constructor(props: Props) {
super(props);
console.log(this); // App class Object
console.log(this.onChange); // undefined (Property exists)
this.onChange = this.onChange.bind(this);
}

onChange() {}
}

Issue 2:
Bug Report

Current Behavior

@babel/plugin-proposal-class-properties transform flow type annotation to a property assigning undefined.

this may caught statement order unexpected error.

Input Code

let code = `
class B {}
class Logger extends B {
log: {
error: boolean
}
silent: boolean
log = {
error: true
}
get silent(): boolean {
return this._silent;
}
set silent(val: boolean) {
this._silent = !!val;
if (!this.log) {
throw new Error('#log should not be nil.')
}
Object.keys(this.log).forEach(k => { /* do something... */ })
}
constructor() {
super()
}
}
`

let r = require("@babel/core").transform(code, {
"presets": [ "@babel/preset-flow" ],
"plugins": [
[ "@babel/plugin-proposal-class-properties", { "loose": true } ]
]
})
console.log(r.code)

ouput =>

class B {}

class Logger extends B {
get silent() {
return this._silent;
}

set silent(val) {
this._silent = !!val;

if (!this.log) {
throw new Error('#log should not be nil.') // <----- will throw if the annotation property assigning undefined
}

Object.keys(this.log).forEach(k => { /* do something... */ });
});
}

constructor() {
super();
this.log = void 0; <<<<<----
this.silent = void 0; <<<<<---- with setter defined.
this.log = {
error: true
};
}
}

Expected behavior/code

class B {}

class Logger extends B {
get silent() {
return this._silent;
}

set silent(val) {
this._silent = !!val;

if (!this.log) {
throw new Error('#log should not be nil.')
}

Object.keys(this.log).forEach(k => { /* do something... */ });
}

constructor() {
super();
this.log = {
error: true
};
}

}

Environment

Babel version(s): [e.g. v6.0.0, v7.0.0-beta.55]

Node/npm version: [e.g. Node 8/npm 5]

OS: [e.g. OSX 10.13.4]

Monorepo [e.g. yes/no/Lerna]

How you are using Babel: js

Possible Solution

Should strip the ClassProperty type of TypeAnnotation.
Issue 1:
Symfony version(s) affected: Probably all of them, but I am currently in 4.1

Description

When you try to put the Translator Path in an envrionment variable, Symfony try to check if the Path exist BEFORE the compilation of the envrionment variable.

So with '%env(resolve:PATH_TRANSLATION)%', Symfony throw an UnexpectedValueException : %env(resolve:PATH_TRANSLATION)% defined in translator.paths does not exist or is not a directory.

A second Exception is thrown after that, EnvParameterException : Incompatible use of dynamic environment variable "resolve:PATH_TRANSLATION" found in parameters.

How to reproduce

You can reproduce the bug easily by adding an environment variable (in .env) and resolve it in the config file.

framework:
translator:
paths:
- '%env(resolve:PATH_TRANSLATION)%'

Possible Solution

Symfony should resolve the environment variable before checking if the file exist or not.

Additional context

Symfony bump into here ==> https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L1020

Issue 2:
The problem

As many of you know, the getRoles() method of the UserInterface doesn't take into account the role hierarchy that you may have defined in your application.

That's why usually you must end up with a code similar to the following:

use Symfony\Component\Security\Core\Role\RoleHierarchyInterface;
use Symfony\Component\Security\Core\User\UserInterface;

private $roleHierarchy;

public function __construct(RoleHierarchyInterface $roleHierarchy = null)
{
$this->roleHierarchy = $roleHierarchy;
}

private function userHasRole(UserInterface $user, $roleName)
{
if (null === $this->roleHierarchy) {
return in_array($roleName, $user->getRoles(), true);
}

foreach ($this->roleHierarchy->getReachableRoles($user->getRoles()) as $role) {
if ($roleName === $role->getRole()) {
return true;
}
}

return false;
}

The solution

The obvious solution would be to provide a method such as ->hasRole(string $role_name). What do you think?
Issue 1:
The instructions say "Let's remove all the values greater than five", but the test looks for a different filter: "You should have removed all the values from the array that are greater than 4."

_----------

Challenge Waypoint: Filter Arrays with filter has an issue.

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

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

My code:

var array = [1,2,3,4,5,6,7,8,9,10];
// Only change code below this line.
array = array.filter(function(val) {
return val <= 5;
});

// Only change code above this line.
(function() {return array;})();

Issue 2:
Assignment: Let's remove all the values greater than five

Assert: You should have removed all the values from the array that are greater than 4.

problem arises if user includes 5 in result set
Issue 1:
Hi I was using mmdetection for custom data, after training i saved the model.

But during testing on single image i am getting error during show which is given please. Please help guys.

QObject::moveToThread: Current thread (0x3d9b720) is not the object's thread (0x5af24f0).

Cannot move to target thread (0x3d9b720)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/surbhi/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Aborted (core dumped)

Issue 2:
Hi I was using mmdetection for custom data, after training i saved the model.

But during testing on single image i am getting error during show which is given please. Please help guys.

QObject::moveToThread: Current thread (0x3d9b720) is not the object's thread (0x5af24f0).

Cannot move to target thread (0x3d9b720)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/surbhi/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Aborted (core dumped)
Issue 1:
Hi,

I was wondering if the following was expected behavior.

I have a MeshPhongMaterial which shows specular highlights appropriately on one side but not the other if I have a mesh that is doublesided = true.

Is this expected or is it a lighting issue, or something else?

Thanks

Issue 2:
Hi

I was trying to set objects so that when the camera was inside them that they still have a color inside them.

I found that setting the mesh to doubleSided when the object has a meshBasicMaterial works ok.

The meshLambertMaterial looks way better than the MeshBasicMaterial from the outside though so I wanted to change to this material.

However, when I do this, the inside of the object seems to go black.

Is there a different setting i should change for the MeshLambertMaterial to get this to work?

I have included some sample code below that causes the problems I am describing.

regards

Patrick

var renderer, scene, projector, camera, stats;

window.onload = Initilise;
function Initilise()
{
var container = $('#container');
var width = container.width();
var height = container.height();
var viewAngle = 45;
var aspect = width / height;
var near = 1;
var far = 100000;

renderer = new THREE.WebGLRenderer();
renderer.setSize(width, height);
container.append(renderer.domElement);

//scene
scene = new THREE.Scene();

//camera
camera = new THREE.Camera( viewAngle,
aspect,
near,
far);

camera.target.position.x = 200;
camera.target.position.y = 200;
camera.target.position.z = 200;
camera.position.x = 0;
camera.position.y = 0;
camera.position.z = 0;

/***************Turn on the lights*****************/
// create a point light
pointLight = new THREE.PointLight( 0xFFFFFF );
pointLight.position = camera.position.clone();
scene.addLight(pointLight);

if ( true )
{
stats = createStats();
container.append( stats.domElement );
}

/******************Draw the scene******************/
var sphereMaterial = new THREE.MeshLambertMaterial({color: 0xff0000, wireframe: false});
var geometry = new THREE.SphereGeometry( 10000, 30, 30 );
var slice = new THREE.Mesh(geometry, sphereMaterial);
slice.doubleSided = true;
scene.addChild(slice);

var sphereMaterial2 = new THREE.MeshLambertMaterial({color: 0x0000ff, wireframe: false});
var geometry2 = new THREE.CylinderGeometry( 30, 50, 50, 50 );
var slice2 = new THREE.Mesh(geometry2, sphereMaterial2);
slice2.doubleSided = true;
slice2.position.x = 200;
slice2.position.y = 200;
slice2.position.z = 200;
scene.addChild(slice2);

animate();
}

function animate()
{
requestAnimationFrame( animate );
render();
}
function render()
{
renderer.render( scene, camera );
stats.update();
}
function createStats()
{
var stats;
stats = new Stats();
stats.domElement.style.position = 'absolute';
stats.domElement.style.top = '0px';
stats.domElement.style.left = '0px';
stats.domElement.style.zIndex = 100;
return stats;
}
Issue 1:
I have tried to bundle my spider .py into .exe, but weeks pasted, I didn't make it. It pointed that some modules were missing. Even I used --hidden-import to put the missing modules into my bundled exe, it still didn't work. It's amazing that I can see the modules in the HTML document under build file. Pls help me ,Thks!

Issue 2:
After I failed to bundle .py document into .exe document by pyinstaller, I tried cxfreeze. Similar error happened. Someting went wrong when importing scrapy module, and AttributeError: module object has no attribute '_fix_up_module' appeared in the command window. Would someone tell me what happened. Can I make it? Thks!
Issue 1:
flutter doctor -v

[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-IN)
• Flutter version 1.0.0 at /Users/stenjoll/github/flutter
• Framework revision 5391447fae (7 days ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

⣾Unhandled exception:
RangeError (index): Invalid value: Only valid value is 0: 1
#0 List.[] (dart:core/runtime/libgrowable_array.dart:145:60)
#1 IntelliJValidatorOnMac.pluginsPath (package:flutter_tools/src/doctor.dart:677:31)
#2 IntelliJValidator.validate (package:flutter_tools/src/doctor.dart:514:53)
<asynchronous suspension>
#3 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:111:52)
#4 Doctor.diagnose (package:flutter_tools/src/doctor.dart:184:41)
#5 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#6 Doctor.diagnose (package:flutter_tools/src/doctor.dart:174:24)
#7 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:48:39)
#8 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6)
#9 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:34:42)
#10 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
#11 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#12 _rootRunUnary (dart:async/zone.dart:1132:38)
#13 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#16 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#17 Future._complete (dart:async/future_impl.dart:476:7)
#18 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#19 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#20 _rootRun (dart:async/zone.dart:1124:13)
#21 _CustomZone.run (dart:async/zone.dart:1021:19)
#22 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#26 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

Issue 2:
http://docs.flutter.io/flutter/widgets/PerformanceOverlay/optionsMask.html

@chinmaygarde
Issue 1:
I'm witnessing a behavior that seems like a bug when using imshow() with the interpolation flag. Consider this example:

from matplotlib import pyplot as plt
W=np.random.randn(200,200)
plt.imshow(W, interpolation='bicubic', cmap='seismic', vmin=-3, vmax=3)

This results in the following image:

Obviously I did not expect the squares to be there. This issue also happens with the option bilinear, gaussian, bessel and pretty much every other interpolation that I tested that isn't nearest.

Here's the output of the nearest option, just for comparison:

So this is weird in that the squares are larger than a "data pixel". I don't know what's causing this. The squares apparently pop where the value is larger/smaller than vmax/vmin, but that's about all I know.

Some notes:

If I don't set vmin and vmax this effect doesn't happen.

I'm using version 2.0.2 of matplotlib

This issue happens in Python 3.4 and 3.5 and Python 2.7 with said version of matplotlib

Doesn't appear to affect Python 2.7 and matplotlib 2.0.0

Issue 2:
Bug report

Bug summary

With imshow(), image interpolation gives wrong results near pixels with values exceeding vmax. A large rectangular region (given by the interpolation kernel size) is filled with color corresponding to maximum value.

Code for reproduction

t = zeros((50, 50))
t[10, 10] = 1
t[10, 20] = 2
imshow(t, vmin=0, vmax=1, interpolation='lanczos')

see gist

Actual outcome

Expected outcome

Ok with matplotlib 2.0.0

Matplotlib version

Operating System: macOS

Matplotlib Version: 2.0.1, 2.0.2

Python Version: 2.7

Jupyter Version (if applicable):

Other Libraries:

matplotlib installed via conda-forge