WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Create some text with a folding region that includes foobar

Fold this region

Start a find for foobar

-> the find box shows the correct number of matches, but when you want to step through them the match in the folded region isn't shown.

The expected behaviour is that the folding region expands to show the match.

Issue 2:
Create some text with a folding region that includes foobar

Fold this region

Start a find for foobar

-> the find box shows the correct number of matches, but when you want to step through them the match in the folded region isn't shown.

The expected behaviour is that the folding region expands to show the match.
Issue 1:
Code Sample,

In [4]: df = pd.DataFrame({'series': pd.Series(range(3))})

In [5]: df["name"] = "abc"

In [6]: df_copy = df.copy()

In [7]: df.series.loc[2] = None

In [8]: df
Out[8]:
series name
0 0.0 abc
1 1.0 abc
2 NaN abc

In [9]: df_copy
Out[9]:
series name
0 0 abc
1 1 abc
2 2 abc

In [10]: df[df.isnull()] = df_copy

#or
#df.where(-df.isnull(), df_copy, inplace=True)
#basically it's doing that at the end

Problem description

Pandas throws a TypeError:

Traceback (most recent call last):
File ".../test_replace.py", line 8, in <module>
df[df.isnull()] = df_copy
File ".../anaconda/lib/python2.7/site-packages/pandas/core/frame.py", line 2516, in __setitem__
self._setitem_frame(key, value)
File ".../anaconda/lib/python2.7/site-packages/pandas/core/frame.py", line 2552, in _setitem_frame
self._check_inplace_setting(value)
File ".../anaconda/lib/python2.7/site-packages/pandas/core/generic.py", line 3738, in _check_inplace_setting
raise TypeError('Cannot do inplace boolean setting on '
TypeError: Cannot do inplace boolean setting on mixed-types with a non np.nan value

I understand that in-place setting doesn't like to work with the mixed types, but I can't see a reason why it shouldn't work in this case and maybe check in "_check_inplace_setting()" is a bit too tight ?

Expected Output

same as with df.where(-df.isnull(), df_copy)

In [12]: df.where(-df.isnull(), df_copy)
Out[12]:
series name
0 0.0 abc
1 1.0 abc
2 2.0 abc

Issue 2:
Problem description

pandas.DataFrame.where seems to be not replacing NaTs properly.

As in the example below, NaT values stay in data frame after applying .where((pd.notnull(df)), None)

Code sample

In [26]: pd.__version__
Out[26]: '0.19.2'

In [27]: df
Out[27]:
d v
0 2015-01-01 30.0
1 NaT 40.0
2 2015-01-03 NaN

In [28]: pd.notnull(df)
Out[28]:
d v
0 True True
1 False True
2 True False

In [29]: df.where((pd.notnull(df)), None)
Out[29]:
d v
0 2015-01-01 30
1 NaT 40
2 2015-01-03 None

In [30]: pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.0.final.0

python-bits: 64

OS: Darwin

OS-release: 16.0.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.19.2

nose: None

pip: 9.0.1

setuptools: 34.3.1

Cython: None

numpy: 1.12.0

scipy: 0.18.1

statsmodels: None

xarray: None

IPython: 5.3.0

sphinx: None

patsy: None

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 2.0.0

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 0.9999999

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.9.5

boto: None

pandas_datareader: None
Issue 1:
Challenge use-css-selectors-to-style-elements has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0.

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

it keeps telling me that "your h2 element should be blue" , but as you look in the screenshot it is color blue :)

<style>
h2{color:blue;}
</style>
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

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

<div>
<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>
</div>

<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>

Issue 2:
http://www.freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements instructs you to create a link to http://catphotoapp.com - which is one of those obnoxious 'sit on a domain and fill it with vaguely relevant ads' pages.

It would be better to use a link to a site FreeCodeCamp controls - while this has a fairly innocuous set of cat ads at the moment, it could change at any time to something even less pleasant.
Issue 1:
My issue is about ...

Sos output is incorrect for analog filter design. I found a comment in fitler_design.py stating as much, but I would expect an error or clearer documentation if this is a known limitation. Instead the code below will generate incorrect SOS coefficients. The combined SOS result in a higher order analog highpass fitler, not a bandpass.

For this this ticket I suggest adding a simple exception to the library code to make this obvious. After which, we can open another ticket to add the feature of correct SOS analog filter design.

Reproducing code example:

BWsos = signal.butter(order,np.array([flow, fhigh]),btype='bandpass', analog=True, output='sos')

Scipy/Numpy/Python version information:

version 1.5.4

Issue 2:
As described in #3717 (comment), zpk2sos does not work for analog filters since the coefficients of each stage are different.

b, a = butter(1, 1, analog=True) produces b = [1], a = [1, 1] → H(s) = 1/(s+1)

sos = tf2sos(b, a) produces [1, 0, 0, 1, 1, 0]

this stage is b = [1, 0, 0], a = [1, 1, 0] → H(s) = s^2/(s^2+s) = s/(s+1) which is not the same as above. For digital filters, trailing zeros don't matter, but for analog filters, they do, and leading zeros don't matter. The correct result should be [0, 0, 1, 0, 1, 1]

So docstring should probably say it's not meant for analog at all for now?

and add analog=True to zpk2sos?
Issue 1:
Launch an iOS application with a light-colored launch screen storyboard and a light-colored home view. Note that a frame or two of total black is shown between the launch screen and the initial Flutter view.

This is my workaround for now, in the app delegate:

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
FlutterViewController *controller = (FlutterViewController*)self.window.rootViewController;
controller.view.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}

Issue 2:
Steps to Reproduce

Use this to run on iOS:

flutter create myapp
cd myapp
flutter run

The app will show the (white screen) contents of LaunchScreen.storyboard, followed by a black screen, followed by the app.

The problem is that we have a surface created but we haven't drawn pixels to it yet. We should try to show the contents of the LaunchScreen.storyboard instead.

Flutter Doctor

flutter doctor

[✓] Flutter (on Mac OS, channel unknown)

• Flutter at /Users/jackson/git/flutter

• Framework revision 04e7446 (3 months ago), 2016-11-07 15:48:50

• Engine revision 16077d4

• Tools Dart version 1.21.0-dev.3.0

[✓] Android toolchain - develop for Android devices (Android SDK 23.0.3)

• Android SDK at /Users/jackson/Library/Android/sdk/

• Platform android-N, build-tools 23.0.3

• ANDROID_HOME = /Users/jackson/Library/Android/sdk/

• Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.2.1)

• XCode at /Applications/Xcode.app/Contents/Developer

• Xcode 8.2.1, Build version 8C1002

[-] IntelliJ IDEA Community Edition (version 2016.3.1)

• Dart plugin not installed; this adds Dart specific functionality.

• Flutter plugin not installed; this adds Flutter specific functionality.

• For information about managing plugins, see

https://www.jetbrains.com/help/idea/2016.2/managing-plugins.html

[✓] Connected devices

• iPhone SE • 3075EA0A-334E-4125-83FA-7DE6BA24C9ED • ios • iOS 10.2 (simulator)
Issue 1:
Running from numpy source directory.

Traceback (most recent call last):

File "", line 1, in

ImportError: No module named Cython.Compiler.Main

Processing numpy/random/mtrand/mtrand.pyx

Traceback (most recent call last):

File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 199, in

main()

File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 195, in main

find_process_files(root_dir)

File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 187, in find_process_files

process(cur_dir, fromfile, tofile, function, hash_db)

File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 161, in process

processor_function(fromfile, tofile)

File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 81, in process_pyx

raise Exception('Cython failed')

Exception: Cython failed

Note: if you need reliable uninstall behavior, then install

with pip instead of using setup.py install:

pip install . (from a git repo or downloaded source

release)

pip install numpy (last Numpy release on PyPi)

Cythonizing sources

Traceback (most recent call last):

File "setup.py", line 386, in

setup_package()

File "setup.py", line 369, in setup_package

generate_cython()

File "setup.py", line 207, in generate_cython

raise RuntimeError("Running cythonize failed!")

RuntimeError: Running cythonize failed!

Issue 2:
Couldn't find it anywhere mentioned in the docs, but it seems that Cython is a build requirement of the development version.
Issue 1:
Description of the problem

Rendering an InstancedBufferGeometry with no (used) attributes does not render.

This happens when a shader uses only (implicit) gl_InstanceID and/or gl_VertexID,

and user program establishes count with 'geom.maxInstancedCount = ...'

(It only applies to WebGL2 as earlier shaders do not support this.)

The internal value geometry._maxInstanceCount is never established, so

var instanceCount = Math.min( geometry.instanceCount, geometry._maxInstanceCount );

does not set a sensible value.

A workaround is to set geometry._maxInstanceCount in the user's program (eg to Infinity),

but this is obviously not the correct solution.

With earlier versions of three.js (eg 109) a program could provide a 'dummy' attribute not actually used in the shader to establish count; but 117 is clever enough to realize this dummy is not used, and therefore does not take account of it in the count calculation.

example to follow

Three.js version

Rel

r117

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
The ColladaLoader fails to load this model.

https://raw.githubusercontent.com/0ad/0ad/master/binaries/data/mods/public/art/meshes/skeletal/elephant_african_bush.dae

Results in this error (in Firefox):

too much recursion ColladaLoader.js:3377:8

Here is the fiddle.

https://jsfiddle.net/L923p7ke/

I can provide more Collada files that reproduce this issue if requested 👍
Issue 1:
Can playwright test generator be configured to look for specific HTML attribute as precedence and record it?

Example : If my web page has an input field with attribute myId like:

Can I configure test generator to look for myId attribute and generate a step as:

await page.FillAsync("//*[@myid='MyProject.Data.Username']", "My Text");

Issue 2:
Please make the list of ["data-test-id", "data-testid", ...] selector building attributes configurable. Or even please add an configuration option to add custom JS/TS method that prepends your selector building code.

Reasons:

Some projects use different names like e2e-target, data-cy, data-e2e, data-qa, data-test, data-testid

There are also companies that use extended data-test-id strategy where you have 2 tags. "data-test-id" (for example: "signup") and "data-test-id-type" (for example: "modal"). In order to fully use e2e recording using your cli it would be best to prepend your selector builder strategy with custom method that uses "data-test-id-type" too.
Issue 1:
UPDATE: I've solved the problem but I am now filing a bug report instead of a request for help. See below.

Original request for help:

Electron version: v0.37.5

Operating system: Mac OS X 10.11.4

I'm building my first Electron app.

My WebView, which was working just fine, has suddenly stopped loading URLs and/or data URLs.

I was distracted and didn't notice what change if any I made at the time the WebView stopped working.

In my index.html, I'm trying each of the following, one at a time:

<webview src="data:text/plain,Hello, world!"></webview>

<webview src="https://www.example.com/"></webview>

The overall structure of my index.html is:

div display:table
div display:table-row
div display:table-cell
sidebar content
div display:table-cell
div wrapper (height & width set to 100%)
webview

In my index.css I have:

webview {
autosize: on;
min-width: 800px; // the width of the enclosing div's parent
min-height: 600px; // the ehight of the enclosing div's parent
background-color: blue; // just so I can visually check the webview's dimensions
display: inline-block;
}

My main.js instantiates the browser window in the usual way:

mainWindow = new BrowserWindow({
width: 1050,
height: 622,
resizable: false,
});

The window and its sidebar content load and display correctly.

The webview displays with a blue background in the desired location and with the desired dimensions.

However, it contains no content -- neither the "Hello world" message nor the Example.com website.

When I change the webview to an iframe, the content does load and the iframe is in the correct location, though smaller than intended.

When I made a new copy of electron-quick-start and paste in just the webview code, it initially displays the "Hello world" message and/or the Example.com website, but when I paste in the entire HTML and CSS it stops working. And now it's stopped working full-stop.

I've linked to the code in full case it helps:

app/html

app/index.css

main.js

package.json

What process would I follow to debug this?

UPDATE & BUG REPORT

I solved this by inserted random non-empty script into the of the HTML (inspired by an earlier bug report about an earlier version of Electron that required a script in for to render correctly. This appears to to be a new bug.

Incidentally, I also had to comment out display: inline-block; in the stylesheet for the webview to be the right height and width once it started displaying again.

Issue 2:
I have a very little demo like this:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<webview src="https://www.google.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>

When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script>console.log("Hello World");</script>
<webview src="http://www.baidu.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>
Issue 1:
iOS builds require putting dart SDK on system path. If you don't you'll get a build error.

pub: command not found

Putting the Dart SDK on the system path isn't something that we are telling developers to do, rather they're putting it in their .bash_profile. Perhaps we should give iOS developers a way to specify where their Dart SDK lives (maybe default to where it is normally in the engine repo?)

Issue 2:
I've just tried Flutter, but I noticed that the app on Android uses almost 14MB of user data.

How to reproduce

flutter create demo1
cd demo1
flutter build apk --release

And install the app-release apk.

When you will open the app, 14MB of User Data will be used.

Tested on

Nexus 5X

Android 8.1.0

Latest Flutter version (installed yesterday)
Issue 1:
Description

While working on implementing custom task notes I wanted to test my changes with Dynamic Task mapping, but we don't have any example DAGs for this.

We should add an example DAG containing this.

Use case/motivation

For showing our users how this functionality can be used and also to improve testability for new features.

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

2.3.0 (latest released)

What happened

The automatic cloud_sql_proxy download via the CloudSqlProxyRunner is not working because the environment is using the uname -a info and it is pull x86_64. The url for the cloud_sql_proxy binaries are no longer using x86_64. Instead, the binaries are now using amd64 indicator.

What you think should happen instead

The hardcoded process should be opened up to include a user defined option via an extra parameter for the CloudSQLDatabaseHook and other hooks. This would hedge for future URL updates without the need for a full blown release.

How to reproduce

Run in an environment that has no local copy of the cloud_sql_proxy and the uname -a gives x86_64.

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Composer

Deployment details

No response

Anything else

This will happen every time the _download_sql_proxy_if_needed is ran in an x86_64 environment.

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
Version

2.5.17

Reproduction link

https://codesandbox.io/s/zzq75rm38x

Steps to reproduce

Create a component, A, which makes use of $listeners in the template somehow.

Create a component, B, that includes component A, so that an instance of B is parent of an instance of A.

Attach an event listener to A in B.

Update state in component B somehow.

What is expected?

Component B should update, and component A should be unaffected.

What is actually happening?

Component A is updated. It is rendered again, and the update lifecycle hooks are triggered.

Issue 2:
I'm new with Vuejs and probably my issue is a dummy one, but I've not still realized how to fix it.

Situation: I have a collection of objects which I've sorted with lodash:

{
computed: {
sortedAlerts: function() {
return _.orderBy(this.filteredAlerts, 'createdAtUtc', 'desc');
}
}
}

And iterating with v-for="alert in sortedAlerts".

I also display one of the object property with the usage of Vuejs component:

components: {
'alert-title': {
props: ['model'],
computed: {
indicatorTitle: function() {
return this.alert.indicator.title.toLowerCase();
},
conditionTitle: function() {
return this.alert.condition.title.toLowerCase();
}
},
template:'<span><i>{{indicatorTitle}}</i> is {{conditionTitle}} {{alert.amount}}</span>',
data: function() {
return {
alert: this.model
}
}
}
}

like this <span is="alert-title" v-bind:model="alert"></span>.

Finally, when I add new objects into this array (which going to be the first elements in ordered array), the alert-title component do not display newly added object in a proper way (but continue to display the previous one, which now is actualty the second and duplicate).

Page refresh is fixing this situation, but I'm pretty sure that the code have an issue.

I know it's not too clear but I hope someone could figure out what's wrong with it.

Let me know if an example should also be provided.

Thank you.
Issue 1:
When validation class is active (i.e. has-error), the form with input-group-btn looks like doesn´t render the red border correctly:

http://plnkr.co/edit/PbbJhCjNwG3w0gD8mv8s?p=preview

Issue 2:
Buttons in an input-group do not get their border colour changed when there is a parent element with has-error .

Example:

<div class="has-error" style="margin: 2em; width: 300px;">
<div class="input-group">
<input type="text" class="form-control" value="zzz">
<span class="input-group-btn">
<button type="button" class="btn btn-default">Search</button>
</span>
</div>
<p class="help-block">No results found for the provided criteria</p>
</div>

See the attached picture to see how it renders.

I would expect something more like the screen shot below.
Issue 1:
Environment

Windows build number: 10.0.18362.145
Windows Terminal version (if applicable): Not sure where to find, it's compiled from the master branch with the commit 2da5b0b

Steps to reproduce

Copy texts with different line endings into wsl opened in windows terminal

Expected behavior

Line endings should be converted to the correct ones for the given environment (LF for Linux subsystem, CRLF for cmd/powershell)

Actual behavior

Different based on what line endings the copied text contains.

Here are images of all possible scenarios pasted into WSL in Terminal: https://imgur.com/a/HYFrznJ

Issue 2:
Environment

Windows build number: 10.0.18362.116
Windows Terminal version (if applicable): 71e19cd + changing toolset to v142 and SDK version

Steps to reproduce

Clone, build, package, install and launch Windows Terminal (DevBuild).

Execute docker run --rm -it mcr.microsoft.com/windows/nanoserver:1903

Select multiple lines and right click.

Paste in any text editor. I used VSCode.

Expected behavior

I expected to see the same thing I saw in the terminal - specifically multiple lines.

Actual behavior

One line with lots of space.

Notes

This is different from #65 since it was about conhost and I'm talking about the new terminal, and I didn't have Shift pressed.
Issue 1:
For linting files.

Probably should be implemented similar to how we've done --fmt ... that is get eslint into deno_std, and then load from URL in core.

Issue 2:
Right now for npm specifiers, we sort the npm package requirements by name only and then resolve them. This is ok for specifiers with different names, but not when they match. Instead we should probably resolve npm specifiers with the same name by module depth. This would allow npm specifiers with the same name closer to the user to have higher precedence than those at a lower tree depth in remote modules for example.

I will open a PR for this after landing the peer dependency support because resolution has undergone a lot of changes.
Issue 1:
Jonathan recently created the code and layout for the new certificates.

going through the "claim your ____ certificate" challenges grants camper the appropriate certificate

certificates have proper verbiage and all 9 have a different color that corresponds to one of the colors in our design style guide

3 old certificates and 6 new certificates all show up on profile if claimed

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The shift value on the "ourArray" sample is removing the last value of the array (["cat"]) instead of the first value ("Stimpson"). Not an actual bug, but can confuse someone.