WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Note: I am not trying to get help fixing my code. I am only reporting what I think is a bug in typescript.

See branch "AddVS15" of https://github.com/kevinpas/Klib6

There are two imports in the startup file "Klib6/Tests/Core/CoreTests.ts". If you comment out the second one you can successfully run and debug/step through the tests in the startup file.

If you uncomment the second import and uncomment the two lines near the bottom:

//var units = "mm";

//var nameValueUnits = new NameValueUnits( name, value, units );

when you try to run it you get the exception (on win7):

Debugger listening on port 5858

module.js:338

throw err;

^

Error: Cannot find module 'NameValue'

at Function.Module._resolveFilename (module.js:336:15)

at Function.Module._load (module.js:278:25)

at Module.require (module.js:365:17)

at require (module.js:384:17)

at Object. (C:\ ... \Git\GitHub\Klib6\Source\Core

\NameValueUnits.js:46:19)

at Module._compile (module.js:460:26)

at Object.Module._extensions..js (module.js:478:10)

at Module.load (module.js:355:32)

at Function.Module._load (module.js:310:12)

at Module.require (module.js:365:17)

Press any key to continue...

Issue 2:
Issue moved from http://typescript.codeplex.com/workitem/2448

If a require statement has a non-relative path (eg. require('mymod') ) then tsc will search all directories from the container of the requiring file all the way up to the file system root for a corresponding source file.

This can result in the require pulling in a completely unexpected source file.

In my scenario I had the following files:

/home/user/myproject/crypto.ts

/home/user/myproject/typings/DefinitelyTyped/node/node.d.ts

/home/user/myproject/lib/test.ts

test.ts uses a '' directive to reference the Node.js typings. The node.d.ts file happens to have an 'import crypto = require('crypto')' statement in it to get Node.js' crypto module.

When tsc was invoked in the 'lib' directory with 'tsc test.ts' and it encountered the node.d.ts file reference, it ended up looking for:

/home/user/myproject/typings/DefinitelyTyped/node/crypto.ts

/home/user/myproject/typings/DefinitelyTyped/crypto.ts

/home/user/myproject/typings/crypto.ts

...

/crypto.ts

Since I happened to have a file with this name in one of these parent directories, tsc ended up trying to compile that code.

This behavior doesn't feel intuitive to me. Node.js' own require statement does something similar but only looks in 'node_modules/' directories at each level, so is less likely to run into the issue.

I'm unsure of what the best behavior would be. Perhaps align the way require() works with absolute paths to match node.js?
Issue 1:
Is there a command that will run my file without opening the debug console and without opening the debug tab?

Issue 2:
From @Wosi on October 13, 2015 14:22

I'm looking for a way to implement an advanced source highlighting

where a language service changes the color of words in a file. The result would look similar to the output Visual Studio creates in C# files.

The screenshot shows C# code in Visual Studio. The word "Customer" is highlighted differently based on its context:

To implement highlighting like this it's necassary to let a language service decide about the color of a word after the grammar based highlighter has done its job.

I would like to see an API for this in the future.

Copied from original issue: Microsoft/vscode-extensionbuilders#14
Issue 1:
Bug report

Bug summary

When saving the figure as a PDF, the items are grouped unusually, which leads to unexpected results when shown in a viewer that supports knockout effects.

While this is not problematic most of the time, the issue causes troubles if the PDF created by matplotlib is edited within Illustrator (possibly other PDF editors as well).

Code for reproduction

import matplotlib.pyplot as plt
x = [42,43,44]
y=[42,43,44]
plt.scatter(x,y,alpha=0.7,sizes=[500], linewidths=[5])
plt.savefig('sample.pdf')

Actual outcome

Because I initially thought this is an Illustrator related problem, I posted a (very detailed) description in one of the Adobe Forums.

In (MacOS) Preview.app

In Adobe Illustrator:

In the Adobe Illustrator forum I got the feedback that the grouping of the items is unusual and causes the confusion. Indeed, ungrouping the elements resolved all of my problems.

Expected outcome

Same as in default preview app.

Matplotlib version

MacOS 10.14.5

Matplotlib v3.1.1

Matplotlib backend: MacOSX

Python 3.6.7

Issue 2:
Bug report

Bug summary

The baseline images for the rgba_markers test (rgba_markers.{png,pdf,svg}) clearly show differences in rendering between agg, pdf and svg:

top left is the svg baseline rendered by inkview (inkscape) 0.92.2, top right is the png baseline, bottom left is the pdf baseline rendered by okular 17.08.3, bottom right is the pdf baseline rendered by gs 9.22 (gs is used by the testing framework to rasterize the pdf for image comparisons).

Code for reproduction

N/A

Actual outcome

On the right subplot, whether the central blue disk overlaps with the edge red circle depends on the backend... and, for the case of pdf, also on the renderer (so that part may possibly be a bug in eother okular or gs, but at least svg and png should not be different).

Expected outcome

All three backends should render hatching in a similar manner.

Matplotlib version

Operating system:

Matplotlib version: master

Matplotlib backend (print(matplotlib.get_backend())):

Python version:

Jupyter version (if applicable):

Other libraries:
Issue 1:
Elasticsearch version: 5.0.0-alpha5

Plugins installed: []

JVM version: Oracle Java 1.8.0_102

OS version: Windows 10 x86_64

Description of the problem including expected versus actual behavior:

When switching from 5.0.0-alpha4 to 5.0.0-alpha5, existing elasticsearch.yml stopped working, with what appears as an impossible error to bypass. I expect the node to startup, but the PR #19803 seems to completely change the logic for starting a new Node object.

With my working in 5.0.0-alpha4 configuration, with 5.0.0-alpha5, I get this exception:

Exception in thread "main" java.lang.IllegalArgumentException: Unknown [transport] type [] possible values: [local]
at org.elasticsearch.common.util.ExtensionPoint$SelectedType.bindType(ExtensionPoint.java:151)
at org.elasticsearch.common.network.NetworkModule.configure(NetworkModule.java:154)

I have to add transport.type: local because the default isn't detecting local. Then, once i've added transport.type, I get this exception:

Exception in thread "main" java.lang.IllegalArgumentException: Unknown [http_transport] type [] possible values: []
at org.elasticsearch.common.util.ExtensionPoint$SelectedType.bindType(ExtensionPoint.java:151)
at org.elasticsearch.common.network.NetworkModule.configure(NetworkModule.java:159)

To get past this error, i can change http.enabled to false, which I don't want to do, but it seems that previous "working" is no longer the case.

As for expected result, I'd ideally expect previous defaults to work. If that isn't possible, it would be beneficial to provide better error messages as I have no clue why http_transport is being output if http.enabled: true. Also breaking changes for 5.0 should be updated for embedded users.

Steps to reproduce:

I setup a sample maven project to recreate this issue and included the relevant sections below.

https://github.com/ruckc/elasticsearch-embedded-issue

elasticsearch.yml:

network.host: 127.0.0.1
http.port: 9200
http.enabled: true
gateway.expected_nodes: 1
cluster.routing.allocation.disk.watermark.low: 512mb
cluster.routing.allocation.disk.watermark.high: 256mb
path.data: target/test/testdata2
path.home: target/test

sample main method:

public static void main(String... args) throws IOException {
try (InputStream is = Main.class.getResourceAsStream("/elasticsearch.yml")) {
Settings settings = Settings.builder().loadFromStream("elasticsearch.yml", is).build();

Node node = new Node(settings);
node.start();
}
}

Issue 2:
Sort by a column of type 'short' throws an exception
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift has an issue.

The error is in the assert function. It says toLowerCase() is not a function

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.

I entered myArray.unshift(["Paul"]);

the error message d[0].toLowerCase is not a function

Thanks
Issue 1:
#12278 was originally about this, but was changed to be about go/build.

go/build and x/tools/go/loader now know about vendor directories, but there is more work to do to make goimports add the correct paths.

When working on $GOPATH/src/a that vendors b, instead of adding the (disallowed) import "a/vendor/b", goimports should add "b".

Issue 2:
If someone is working in a tree where they have gone to the trouble to vendor a package, as long as the vendored copy is visible (not blocked by internal) we should make sure the vendored copy is always preferred. Otherwise goimports may hurt more than it helps in these situations.

Once there is a standard config file explaining what has been vendored, goimports could just read it and when it wants to use X but there's a vendored copy visible, use the vendored copy instead.

This came up in a private discussion with an external project about vendoring.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.x-dev

A few weeks ago on master I was able to use factory in my _instanceof Yaml service declarations. This was useful because all instances of DoctrineRepository need the same factory call. Without it, all DoctrineRepositories have to duplicate the same factory line. The purpose of _instanceof to reduce duplication would be better served if we could use factory.

@nicolas-grekas I edited DependencyInjection/Loader/YamlFileLoader and added 'factory' => 'factory' to the $instanceofKeywords array and it seemed to work. Any drawbacks? Better solutions?

Issue 2:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
master

Following up on #22143, the lack of proper error is solved now in #22185, but the use case for factory still seems valid:

services:
_defaults:
factory: [ "@doctrine", getRepository ]

AppBundle\RoleRepository:
arguments: [ "AppBundle:Role" ]
AppBundle\UserRepository:
arguments: [ "AppBundle:User" ]

It was decided in #21071 (comment) to consider the factory attribute a detector flag for real services, but this has become obsolete, and the use case for default factory settings is there.

Therefore I propose to reallow factory in _defaults sections.
Issue 1:
Glide Version:4.6.1

Integration libraries: okhttp3

Device/Android Version:all

Issue details / Repro steps / Use case background:

GlideApp.with(imageView.context)
.load(url)
.thumbnail(GlideApp.with(imageView.context)
.load(thumbnail))
.transition(withCrossFade())
.error(R.drawable.ic_error_outline_24dp)
.into(imageView)

So maybe my usage is not correct but I want to load the thumbnail with has a square size (let's say 150 * 150) and then show the full resolution image (let's say 640 * 800).

The final image has a square size once load instead to the right one. If I remove the transition .transition(withCrossFade()) then the final image is ok.

Any idea ?

Issue 2:
After the Make Project, it still prompts "can not resolve symbol 'GlideApp',Ask for help~

`compile 'com.github.bumptech.glide:glide:4.0.0-RC1'

annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'`

@GlideModule public final class MyAppGlideModule extends AppGlideModule {}

Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
Issue 1:
Namespace packages are the source of all kinds of user errors.

This would involve moving basemap (and any other 3rd-party packages that install into mpl_toolkits, if they exist) to the top-level and installing a shim so it could still be imported from the old location.

Cc: @jswhit @WeatherGod to coordinate.

Cc: @jenshnielsen

Issue 2:
Bug summary

As of setuptools v67.3.0 the use of pkg_resources.declare_namespace in lib/mpl_toolkits/__init__.py raises a DeprecationWarning.

Code for reproduction

$ mamba create -n test python=3.10 matplotlib-base -y
$ mamba activate test
$ export PYTHONDEVMODE=1
$ python -c "import pkg_resources"

Actual outcome

/path/to/test/lib/python3.10/site-packages/pkg_resources/__init__.py:2804: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)

Expected outcome

No output

Additional information

See also:

https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages

https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

https://peps.python.org/pep-0420/

Operating system

No response

Matplotlib Version

3.7.0

Matplotlib Backend

TkAgg

Python version

Python 3.10.9

Jupyter version

No response

Installation

conda
Issue 1:
sns.distplot(np.concatenate([np.zeros(100), np.ones(10)]))

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-24-9543570a22a7> in <module>()
----> 1 sns.distplot(np.concatenate([np.zeros(100), np.ones(10)]))

/home/wiecki/miniconda3/lib/python3.4/site-packages/seaborn/distributions.py in distplot(a, bins, hist, kde, rug, fit, hist_kws, kde_kws, rug_kws, fit_kws, color, vertical, norm_hist, axlabel, label, ax)
210 hist_color = hist_kws.pop("color", color)
211 ax.hist(a, bins, orientation=orientation,
--> 212 color=hist_color, **hist_kws)
213 if hist_color != color:
214 hist_kws["color"] = hist_color

/home/wiecki/miniconda3/lib/python3.4/site-packages/matplotlib/axes/_axes.py in hist(self, x, bins, range, normed, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, **kwargs)
5676 # this will automatically overwrite bins,
5677 # so that each histogram uses the same bins
-> 5678 m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
5679 m = m.astype(float) # causes problems later if it's an int
5680 if mlast is None:

/home/wiecki/miniconda3/lib/python3.4/site-packages/numpy/lib/function_base.py in histogram(a, bins, range, normed, weights, density)
247 n.imag += np.bincount(indices, weights=tmp_w.imag, minlength=bins)
248 else:
--> 249 n += np.bincount(indices, weights=tmp_w, minlength=bins).astype(ntype)
250
251 # We now compute the bin edges since these are returned

ValueError: operands could not be broadcast together with shapes (10,) (11,) (10,)

> /home/wiecki/miniconda3/lib/python3.4/site-packages/numpy/lib/function_base.py(249)histogram()
248 else:
--> 249 n += np.bincount(indices, weights=tmp_w, minlength=bins).astype(ntype)
250

Issue 2:
lmplot Method does not give a good sense of regressed line when axes boundaries are far from zero and not in scale. It might be a good idea to write a method or argument to somehow (either on the plot or as print) output the intercept and slope of the regressed line.
Issue 1:
Code Sample, a copy-pastable example if possible

I Haven't written any custom code.

Problem description

I'm trying to install Pandas with pip install pandas, and I'am encountering the following error:

nvidia@tegra-ubuntu:~/opt$ sudo -H pip install pandas
Collecting pandas
Using cached https://files.pythonhosted.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz
Could not find a version that satisfies the requirement Cython (from versions: )
No matching distribution found for Cython

At first I tried to install Cython, then installing pandas, but the same behavior is encountered, my platfrom is arm-64 and is currently my bottleneck to develop.

$pip --version

Issue 2:
Now that pip 19 is out, we can attempt to re-add pyproject.toml

The release of pip version 10 and the presence of a pyproject.toml in our latest released versions gives problems for installing pandas in the following cases:

Problem with installing pandas for Python 3.4

You get the error "Double requirement given: numpy ..."

The reason for this error is that pandas 0.21-0.22 no longer supports Python 3.4, and thus no longer distributes binary wheels for Python 3.4. Therefore, pip tries to install pandas from source, and this is what now started to fail with Pip version 10.

Solution:

Install an older version of pandas

pip install pandas<0.21

Workaround for package maintainers to specify the pandas version in install_requires: #20697 (comment)

The fact that those version are downloaded for Python 3.4 (instead of an older compatible version) was a bug in our setup.py, and this will be fixed in future versions of pandas: #20698

Problem with installing pandas on "special" platforms (32bit, PyPy, ARM, ...) (building from source):

You get the error "No matching distribution found for Cython"

The reason for this error is that we do not provide wheels for such python versions or platforms. In such a case, pip will try to build pandas from source, but this started to fail with pip version 10. This is because their limited support for PEP518, and they require that all build dependencies of pandas are installed from wheels (pypa/pip#5229), which are often also not available on those python versions / platforms.

Solution

Use an older version of pip

Use pip install pandas --no-build-isolation

See eg #20666, #20771
Issue 1:
Website or app

https://www.youtube.com/

Repro steps

I was watching a video on youtube when I noticed the new video hover features which were not there on the 15th of January 2022.

This then led me to the react dev tools which I noticed had turned blue, never had before. wanted to know of this is a bug or not.

I have restarted my computer and browser severally.

[](url

)

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

Issue 2:
Website or app

youtube.com, github.com, gmail.com, lucidchart.app

Repro steps

Open any web app not made with React (e.g.: youtube.com, amazon.com, github.com, gmail.com, lucidchart.app)

The react icon is ON and the popover message says:

'This page is using the production build of React. ✅'

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response
Issue 1:
Environment

Windows build number: [[版本 10.0.18362.10019]]
Windows Terminal version (if applicable):Windows Terminal (Preview) Version: 0.5.2681.0

Any other software?

Steps to reproduce

when drag and select some character, now right click the mouse. the terminal will exit without any clue.

Expected behavior

terminal do not exit, and paste the txt I selected.

Actual behavior

windows closed.

Issue 2:
Windows Terminal Preview crashes when using right click to copy multiple lines of text in PowerShell 7.0.0-preview.4.

Feedback Hub link with crash

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2661.0

Any other software?

PowerShell 7.0.0-preview4

Steps to reproduce

Open PowerShell Core 7 Preview-4 in Windows Terminal

Left click select multiple lines, and then right click.

Expected behavior

Right click should copy text.

Actual behavior

Crash. Occurs 100% of the time following these steps. I've tried it 6 times and got the crash all 6 times.

I believe this is a regression as this did not occur in the previous version of Windows Terminal Preview.
Issue 1:
We have a little markdown renderer that support bold, italic, and link but I think it wrong wrt to bold and italic. It uses * and _ instead of ** or __ (bold) and * or _ (italic). I might be wrong but at least it isn't consistent with markdown here on github.

Issue 2:
In case of an exception while debugging code you have the chance to jump to the line of the source code by clicking on the underlined text in red.

That feature is not available in a hove message but it might be a good idea to allow the user to click on a link in a hover message and "do something" like opening the link on a side editor instead of in the current editor.

In order to easily implement the following proposal might work:

extend the MarkedString to allow links (using the markdown syntax would be fine)

add an event to MarkedString to be notified when the user clicks on a link inside the rendered text. the link uri shall be received as the event parameter
Issue 1:
I'm submitting a ...

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Using NgClass on an svg element throws an error in Internet Explorer 11.

Unable to get property 'add' of undefined.

Expected/desired behavior

Using NgClass on svg should not throw an error in Internet Explorer 11.

Reproduction of the problem

Example:

import {Component, NgModule, NgClass} from '@angular/core'
import {BrowserModule} from '@angular/platform-browser'

@Component({
selector: 'my-app',
template: `
<svg height="100" width="100" [ngClass]="svgClass">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>
`
})
export class App {
constructor() {
this.name = 'Angular2 (Release Candidate!)'
}

get svgClass()
{
return 'test';
}
}

@NgModule({
imports: [ BrowserModule ],
declarations: [ App ],
bootstrap: [ App ]
})
export class AppModule {}

DEMO:

https://plnkr.co/edit/7sE32rIrE4aiWdWe2D8d?p=preview

What is the expected behavior?

The expected behavior is to have a css class applied to the svg element.

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

N/A

Please tell us about your environment:

Angular version: 2.0.0-rc.4 or 2.0.0-rc.5

Browser: IE 11

Language: TypeScript 1.8.10 or 2.0.0 | ES6/7 | ES5

Issue 2:
That means NgClass is broken.

The reason is annoyingly that IE 11 doesn't support classList on SVG elements, so adding to undefined in the BrowserDomAdapter throws.
Issue 1:
Hi,

Prior to the changes I was able to press the Run Code 1x and received my positive feedback and move to the next challenge. Now I have to press it after I receive my postive feedback to go to the next challenge. Was this intentionally done?

Challenge http://www.freecodecamp.com/challenges/waypoint-add-different-margins-to-each-side-of-an-element has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Victoria

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

Even though the assertions are right, you need to hit the run code button twice to advance in the waypoints in the "Object Oriented and Functional Programming" section. It isn't really a major issue, just a mild annoyance.