WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When using deno run webserver.ts directly, the error stack looks like this:

{
"errStack": [
"Error: test error",
" at router (router.ts:11:11)",
" at webserver.ts:44:17"
]
}

When used deno bundle or deno compile, the error stack looks like this:

{
"errStack": [
"Error: test error",
" at router (file://$deno$/bundle.js:8446:15)",
" at file://$deno$/bundle.js:8490:21"
]
}

It would be very helpful if the stack information of the ts file can also be available after compilation.

Maybe it is related to #4499.

Issue 2:
Current Deno will remap stack traces on files that have been compiled by Deno, as Deno caches both the original file and the emitted map, and loads those from the cache. When consuming JavaScript with source maps from other sources (like already compiled code) Deno does not handle the source map and ignore source map pragma included in files.

Deno should support both external source maps and inline source maps when fetching modules and store any source maps in the cache to be used when remapping stack traces.

This will have the side-effect of supporting the generation of source maps for bundles generated by deno bundle.

One consideration is that source maps optionally can include the original sources. If they do, then when emitting an error, the original source line is available, but if they don't, we would not be able to log-out/resolve that original source line.
Issue 1:
There are a couple of bugs here:

deno install -A ... should not expand in the wrapper. If Deno introduces more permissions, wrappers may end up diverging.

deno install -A ... creates duplicate --allow-env flags. Fixing (1) will make this not an issue.

Also, looking at the shell wrapper it would be preferrable to call exec rather than saving the return code and exiting manually.

Issue 2:
Hi,

Following code of mine caused panic, was instructed to report here. More accuratelly when fetching return value from haeMPYhteenveto function.

const haeMPYhteenveto = () => {
const mpSumma = itemServices.haeSumma();
console.log(mpSumma);
return mpSumma;
};

const haeOstokset = async ({ response }) => {
const mpSumma = haeMPYhteenveto();
response.body = await renderFile('../views/kulut.eta', {
kustannukset: await itemServices.haeHankinnat(),
mpsumma: mpSumma,
});
};

Error note:

Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: windows x86_64
Version: 1.18.1
Args: ["C:\\Users\\Admin\\.deno\\bin\\deno.exe", "run", "--allow-net", "--unstable", "--allow-read", "--allow-write", "app.js"]

thread 'main' panicked at 'Only a single use of this resource should happen: FullDuplexResource { rd: AsyncRefCell<tokio::net::tcp::split_owned::OwnedReadHalf>, wr: AsyncRefCell<tokio::net::tcp::split_owned::OwnedWriteHalf>, cancel_handle: CancelHandle { node: Node { inner: UnsafeCell { .. }, _pin: PhantomPinned } } }', D:\a\deno\deno\ext\net\ops_tls.rs:812:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Issue 1:
My spider is scraping on a big website, so I start it with the pausing and resuming crawls setup.

scrapy crawl somespider -s JOBDIR=crawls/somespider-1

But every time I pause and resume later, I find that after the resume the spider will revisit all the website in the start_urls again. Is it a bug ?

Issue 2:
Description

I tried following the docs here https://docs.scrapy.org/en/latest/topics/feed-exports.html#scrapy.extensions.feedexport.uri_params to have a dynamic Feed name.

Here is the relevant code:

uri_params function:

from urllib.parse import urlsplit
from pathlib import PurePath

def source_params(params, spider):
return {**params, "source_to_file": PurePath(urlsplit(spider.source).path).name}

Spider

import scrapy
from pathlib import Path

"""Gets all videos from a playlist, should also work for actors"""

class PlaylistsSpider(scrapy.Spider):
name = "playlists"
custom_settings = {
"FEEDS": {
Path("%(source_to_file)s").with_suffix(".csv").name: {"format": "csv"}
},
"FEED_URI_PARAMS": "myproject.utils.source_params",
}

def __init__(self, *args, **kwargs):
self.source = kwargs.pop("source")
self.start_urls = [self.source]

def parse(self, response):
pass

Steps to Reproduce

During debugging and breaking at this line

scrapy/scrapy/extensions/feedexport.py

Line 542
in
cbf9349

return params

this happens:

-> params['source_to_files']
Traceback (most recent call last):
File "<string>", line 1, in <module>
KeyError: 'source_to_files'

and indeed there's no file output if I let it run

Expected behavior:

Export according to file name as specified by FEEDS and URI_PARAMS

Actual behavior:

No feed export

Reproduces how often:

Until I replaced this line:

scrapy/scrapy/extensions/feedexport.py

Line 541
in
cbf9349

uripar_function(params, spider)

with the following:

params = uripar_function(params, spider)

Versions

Scrapy : 2.5.0
lxml : 4.6.3.0
libxml2 : 2.9.10
cssselect : 1.1.0
parsel : 1.6.0
w3lib : 1.22.0
Twisted : 21.7.0
Python : 3.9.6 (default, Jun 29 2021, 05:25:02) - [Clang 12.0.5 (clang-1205.0.22.9)]
pyOpenSSL : 21.0.0 (OpenSSL 1.1.1l 24 Aug 2021)
cryptography : 35.0.0
Platform : macOS-11.4-x86_64-i386-64bit
Issue 1:
Describe the bug

I see in (#16639) that duplicate node names are now appended with _i when using GLTFLoader. I have noticed in my application though that when i use an underscore _ in the node name string, the de-duplicated node process is removing them, which is breaking my application.

Live example

The duplicated node name in the below jsfiddle is cool_box

Note that the 2nd and 3rd node names are then renamed cool box_1 & cool box_2 (first underscores removed)

https://jsfiddle.net/vthyra4c/

Expected behavior

De-duplicated node names are appended with _i but the rest of the name string should remain intact.

Screenshots

Platform:

Device: Deskto

OS: Linux

Browser: Chrome

Three.js version: r123

PS. this is one of my first bug reports, let me know if i should have done something differently or included some other helpful info!

Issue 2:
With logarithmicDepthBuffer enabled sprites are drawn behind things.

testcase: http://jsfiddle.net/Herst/384Q6/

(corrected title and text and added testcase)
Issue 1:
Bug report

After 4.29.0 was released (i had "webpack": "^4.25.1" in package.json) my build was failing because dynamic imports were not recognized. Got the following error:

Module parse failed: 'import' and 'export' may only appear at the top level.

I removed the caret from package json and with 4.25.1 it works as expected

What is the current behavior?

My build failed

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

Not completely sure but this piece of code was not working:

if (urls.is('')) {

import(/*webpackChunkName: "dashboard" */'../dashboard');

}

What is the expected behavior?

Dynamic imports work as expected

Other relevant information:

webpack version:

Node.js version:

Operating System:

Additional tools:

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

A bug

What is the current behavior?

We build our main app as a Dll, and after recent upgrade we experience huge build times compared to what we had before upgrade.

It takes ~30 seconds to complete our initial build, comparing to ~18 on webpack 3.6.0.

Rebuilds in watch mode now take ~12 seconds, and they were less than a second before upgrade.

We had no bundle duplication before upgrade, and now we have tons of them.

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

I'm not sure if I could provide any right now, as we have really huge project. I'll try to setup a demo env soon.

What is the expected behavior?

Release notes state about performance fixes, but I'd expect it to be at least the same as before upgrade.

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.

Node 8.6.0

Windows 7,

Webpack 3.7.1
Issue 1:
Electron version: 1.2.5

Operating system: OSX

It will be useful, if I have getSavePath() for download item after download completes, when the path is not set by setSavePath().

Issue 2:
Electron version: 1.2.1

Operating system: OSX

When a user downloads an item I've been trying to get the location that they've saved it to. It's not documented, but I noticed on the downloadItem there is a getSavePath function. This always returns an empty string when I call it.

Was wondering if it's not documented for a reason / not working. Or is there a better way to get the location that a user selects?
Issue 1:
CodeSandbox reproducing the problem with the latest experimental build

This is an edge case with a DEV warning, so not really a priority, but it seems like the wrong behavior. If the length of the dependency array changes, React warns about it and the effect never fires. That seems reasonable.

If there's a subsequent update where the dependency array no longer changes length, React still warns and the effect still doesn't fire.

Steps to Reproduce

Open the sandbox, check the console

Start incrementing the counter. You'll see the dependency array increases in length as the counter increases, triggering the warning. Note that the warning always references the initial empty array as the "Previous" value, even though that isn't accurate.

Once it hits 5 the array stops growing. In subsequent updates only the last item in the array changes.

Expected Behavior

It's confusing that React still warns about the length change after it stops changing. It's also confusing that React doesn't fire the effect at all after it stops changing. It feels like React gets into a broken state and it should either recover or throw. Otherwise I can see an edge case where this warning gets ignored (or doesn't fire) in development and then effects stop firing in production.

Issue 2:
When we mouseenter into the dom in the demo, we can not see 'mouse enter' in console.

React version:

17.0.1

Steps To Reproduce

click the link and open the demo

mouse enter into blue space, and see logs in console.

Link to code example:

https://codepen.io/qiuzhifeng97/pen/LYLKROg?editors=1111

The current behavior

Only 'mouse enter2', 'mouse over' nad 'mouse over2' in console.

The expected behavior

'mouse enter2', 'mouse over' , 'mouse enter' and 'mouse over2' in console.
Issue 1:
While using special permissions it is necessary to use "allow flags" to properly access network, files, etc. However while using this flags on the CLI it is necessary to use this flags before the file we're going to run, otherwise it won't apply them.

Ex:

I can understand this behavior might be intended but it can be really annoying, since it differs from the common use of flags on CLI commands accross different OS environments. Also it differs from the examples provided about Deno Install (which I have not personally used).

I've run into this issue(?) while using v0.25 on Windows, Linux(Manjaro) and Linux(ElementaryOS).

Issue 2:
The order of the CLI flags should not be of importance. Check this example

Shouldn't

deno test.ts --config tsconfig.json

be the same as

deno --config tsconfig.json test.ts

or maybe I'm wrong?
Issue 1:
Chris Beams opened SPR-8635 and commented

Per copy on http://ehcache.org, the proper capitalization of the name is 'Ehcache', not 'EhCache'. We have the following types and files that use the latter (incorrect) spelling:

cbeams:~/Work/spring-framework/spring-framework[master]>$ git grep -l EhCache
build-spring-framework/resources/changelog.txt
org.springframework.context/src/main/java/org/springframework/cache/ehcache/EhCacheCache.java
org.springframework.context/src/main/java/org/springframework/cache/ehcache/EhCacheCacheManager.java
org.springframework.context/src/main/java/org/springframework/cache/ehcache/EhCacheFactoryBean.java
org.springframework.context/src/main/java/org/springframework/cache/ehcache/EhCacheManagerFactoryBean.java
org.springframework.context/src/test/java/org/springframework/cache/ehcache/EhCacheCacheTests.java
org.springframework.context/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java
spring-framework-reference/src/cache.xml

Affects: 3.1 M2

Issue Links:

#13447 Minor typo in code sample of Cache Abstraction documentation ("is duplicated by")

#13274 Cache Abstraction Documentation: minor typo

Referenced from: commits bd7fd57

Issue 2:
Chris Beams opened SPR-5682 and commented

The JavaConfig project provided [JavaConfigApplicationContext](http://static.springframework.org/spring-javaconfig/docs/1.0.0.M4/javadoc-api/org/springframework/config/java/context/JavaConfigApplicationContext.html) and [JavaConfigWebApplicationContext](http://static.springframework.org/spring-javaconfig/docs/1.0.0.M4/javadoc-api/org/springframework/config/java/context/JavaConfigWebApplicationContext.html) to allow for eliminating XML entirely. (See also: usage).

Similar implementations could be provided in Spring Core, though naming would probably change to ConfigurationClassApplicationContext and ConfigurationClassWebApplicationContext, respectively.

There are a number of issues to consider and work out before providing this support, but this issue can serve as a way to track community interest.

Sub-tasks:

#10854 Eliminate duplicate code between ConfigurationClassApplicationContext and ConfigurationClassWebApplicationContext

#10855 Document @Configuration classes and AnnotationConfig[Web]ApplicationContext

Issue Links:

#10826 Support @ImportResource within @Configuration classes

#10852 Provide TestContext support for @Configuration classes

#10200 Support BeanFactory#getBean(Class requiredType)

Referenced from: commits cbadf35, fd8935b, a48234c, 772a74a

12 votes, 13 watchers
Issue 1:
Environment

Windows build number: 10.0.18363.476
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

Run midnight commander mc with fontSize equal to 12 and with cascadia code or consolas font.

It is worth noting that with fontSize 14 or 10 the background renders correctly without black lines.

Expected behavior

Background should be blue with no black lines

Actual behavior

Background has black lines

Issue 2:
Just a reminder for the new Windows Terminal, remember to make sure block and line drawing characters fill their cells properly at all zoom levels.

This is really important for ANSI-art and TUI apps.

See color bleeding and horizontal lines in the larger Windows Terminal tab.

Also, some characters are randomly replaced by � (<?>) characters when changing zoom level or when printing out lot of VT markup.
Issue 1:
Atom: 0.206.0

OS: Ubuntu 14.04 x64

Comes up everytime when opening the settings.

Stack Trace:

TypeError: Cannot read property 'find' of undefined
at InstalledPackagesPanel.module.exports.InstalledPackagesPanel.filterPackageListByText (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:377:15)
at InstalledPackagesPanel.module.exports.InstalledPackagesPanel.matchPackages (/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:410:19)
at /usr/share/atom/resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:176:24
at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at /usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1207:25

Issue 2:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.206.0

System: Mac OS X 10.10.3

Thrown From: settings-view package, v0.207.0

Stack Trace

Uncaught TypeError: Cannot read property 'find' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:377

TypeError: Cannot read property 'find' of undefined
at InstalledPackagesPanel.module.exports.InstalledPackagesPanel.filterPackageListByText (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:377:15)
at InstalledPackagesPanel.module.exports.InstalledPackagesPanel.matchPackages (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:410:19)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/installed-packages-panel.js:176:24
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1207:25

Commands

-1:04.4.0 settings-view:view-installed-packages (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-atom-dark-syntax.theme-atom-dark-ui)

Config

{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
],
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"disabledPackages": []
}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages
Issue 1:
If a module or a class contains many (member)functions, it is very hard to find a certain function on the documentation page. If I am going to find a function name, I use ctrl+f on Chrome, and threre are too many mathes.

For example, the pyplot module: http://matplotlib.org/api/pyplot_api.html#pyplot

I would suggest that there should be a function and class index on the right of the page, so one can scan through them very quickly.

Issue 2:
Bug summary

visiting https://matplotlib.org/stable/tutorials/colors/colormapnorms.html#symmetric-logarithmic shows this colorbar with some garbled text

Let me know if you need more info

Code for reproduction

n/a

Actual outcome

n/a

Expected outcome

n/a

Additional information

No response

Operating system

popos 22.04, chrome incognito Version 103.0.5060.134 (Official Build) (64-bit)

Matplotlib Version

n/a

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

No response
Issue 1:
Bug report

Bug summary

When I save a figure my canvas is smaller as before. As I need to extract images from an interactive pyplot I cannot align them anymore afterwards.

Code for reproduction

import matplotlib.pyplot as plt
f = plt.Figure()
plt.plot([1,2,3])
f.savefig('test.png')

Actual outcome

Figure gets saved, figure shrinks. Subsequent figure is then a tiny bit smaller

Expected outcome

The figure gets saved, the canvas or figure size stays untouched.

Matplotlib version

Operating System: Win10 64

Matplotlib Version: 2.0.2

Python Version: 3.5.2

Spyder 3 using Qt5

Issue 2:
Bug report

Bug summary

The print_figure function in the FigureCanvasBase class records the current figure's dpi, sets it to the requested dpi for the saved figure, and then resets it to the original. Setting the dpi invokes a property function, _set_dpi that calls the figure's set_size_inches method, which then triggers a resize of the figure manager.

This resize is not evident when I use the standard Pyplot commands within a Qt console, presumably because the plot size doesn't change. However, I have embedded the Matplotlib figure in a PyQt GUI where I don't have the toolbar in the same widget, and it causes a noticeable size change for a fraction of a second before the second dpi reset restores the old size.

Possible solution

I would like to suggest that the FigureCanvasBase print_figure function should not invoke the dpi property, but set and then reset the figure's hidden variable, _dpi, which will not trigger the redundant canvas resize. I can submit a pull request, but I wanted to check if there would be side effects.

Matplotlib version

Matplotlib Version: 2.0.2

Operating System: Mac OS 10.12.5

Python Version: 2.7.11

PyQt 4.8.7
Issue 1:
Starting from v1.10 docker daemon will run with a restrictive seccomp profile turned on by default.

Users will have to include a custom seccomp profile in addition to capabilities.

Until we figure out a sane way to add support for seccomp, I propose disabling (unconfined) seccomp profiles by default.

This will allow users to upgrade to docker v1.10 seamlessly.

cc @kubernetes/goog-node @bgrant0607

Issue 2:
Failed 1 times in the last 30 runs.

http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce/8836/testReport/junit/%28root%29/Kubernetes%20e2e%20suite/Job_should_run_a_job_to_completion_when_tasks_sometimes_fail_and_are_locally_restarted/
Issue 1:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
System information (version)

OpenCV: 3.3

Operating System / Platform: ubuntu16

Compiler: cmake & gcc5.4

Detailed description

opencv knn: dead loop

Steps to reproduce

#include <opencv2/imgproc.hpp>
#include <opencv2/ml.hpp>
#include <vector>
#include "opencv2/core/core_c.h"

using namespace std;
using namespace cv;
using namespace cv::ml;

using cv::Ptr;

int main(){

Mat xTrainData = (Mat_<float>(5,2) << 1, 1, 1, 1, 2, 2, 2, 2, 2, 2);
Mat yTrainLabels = (Mat_<float>(5,1) << 1, 1, 2, 2, 2);

cout << "===============xTrainData===================="<< endl;
cout << "xTrainData: " << xTrainData<< endl;

cout << "===============yTrainLabels===================="<< endl;
cout << "yTrainLabels: " << yTrainLabels << endl;

// KNearest KDTree implementation
Ptr<KNearest> knnKdt = KNearest::create();
knnKdt->setAlgorithmType(KNearest::KDTREE);
knnKdt->setIsClassifier(true);

// When runs to this step, it does not run any more.
knnKdt->train(xTrainData, ml::ROW_SAMPLE, yTrainLabels);

float d_test[2][2] = {{1.3, 1.3}, {2.2, 2.4}};

Mat xTestData = (Mat_<float>(2,1) << 1.1, 1.1, 2, 2.2);
Mat zBestLabels;
cout << "===============xTestData===================="<< endl;
cout << "xTestData: " << xTestData << endl;

knnKdt->findNearest(xTestData, 1, zBestLabels);
cout << "===============zBestLabels===================="<< endl;
cout << "zBestLabels: " << zBestLabels << endl;
}

When I runs it in clion:

What's wrong?
Issue 1:
it always opens as utf8 , can i set auto-detect as default ？

Issue 2:
Atom should try to guess the encoding when opening a file as best as it can and only if it fails, fallback to the default encoding option (which was implemented a few days ago).

Missing libraries (that would presumably help with this issue) shouldn't be a factor here. If there isn't any library that could be used, one should be created from 0 or maybe patch the one that could get the job done with as little amount of work as possible.

The main issue here is that Atom will try to open files in UTF8 (or the default encoding, if set), which will potentially break any non-UTF8 files. And that, imho, is not an acceptable/valid behavior for any editor.

This should be tagged as 1.0 blocker.

Also, maybe this could help:

https://github.com/mooz/node-icu-charset-detector

https://www.npmjs.org/package/detect-encoding