WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Issue originally made by John (jan.dolezal71)

Bug information

Babel version: 6.4.0

Node version: 4.2.0

npm version: 2.14.15

Options

{
"presets": [ "es2015", "stage-0" ]
}

Input code

class Tester {
foo () {
const foo = 'hi';

return foo;
}
}

Description

Hi,

i upgraded babel to version 6 (from 5) and after editing .babelrc, im getting error these codes:

With let:

Duplicate declaration "foo" while parsing file

or with const:

"foo" is read-only (This is an error on an internal node. Probably an internal error. Location has been estimated.) while parsing file:

babel-core, babel-preset-es2015, babel-preset-stage-0 installed

Im attaching test code, same error.

thanks in advance,

John.

Issue 2:
Feature request

Current Behavior

Currently the following block:

render`
<div>
<h1>Hello, world!</h1>
<h2>It is ${new Date().toLocaleTimeString()}.</h2>
</div>
`;

will result into:

"use strict";

var _templateObject = _taggedTemplateLiteral(
["\n <div>\n <h1>Hello, world!</h1>\n <h2>It is ", ".</h2>\n </div>\n "],
["\n <div>\n <h1>Hello, world!</h1>\n <h2>It is ", ".</h2>\n </div>\n "]
);

function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }

render(_templateObject, new Date().toLocaleTimeString());

Clearly this is not ideal, as it is not only longer, but also contains unwanted characters, which make the bundle little tiny bit heavier.

Possible Solution

Allow dev to optionally pass in html together with loose / spec. From the following line:

strings.push(value);

Can it be changed to:

strings.push(value.replace(/\r\n\t/g, ''));

when html === true ?

software
version(s)

Babel
latest
Issue 1:
hi there, i have a question about face and vertex uvs ....

i sort of understend the face uv .... wich works in the faces list with a index ....

[ [ UV1, UV2, UV3, … ], [ UV1, UV2, UV3, … ], … ];

the extra [ ] is one face and thats where the index points at ..... (please, correct me if im wrong)

and every value in there is one corner of the face the position of the vertex in the texture editor ...

if im right ... does it matter in what order the come in or do they have to be sorted so i get a

increasing value ( 1,2,3,5, 7,8,9,)

the vertex list is a different story ..... whats the difference and do you need them both?

[ [ [UV1, UV2, UV3], [UV4, UV5, UV6],… ], [ [UV1, UV2, UV3], [UV4, UV5, UV6],… ], … ];

another extra [ ] the first set of [ ] is a face and the second set is the values og the uvs surounding the vertex? but were looking at vertecies and not faces this doesnt make realy alot of sence to me ...... and what information of the position of the vertx doe you have if the surrounding faces are not conected ...... i realy stuck on this one

can anybody clear this up for me please?

maarten

Issue 2:
In the normalmap shader here:

https://github.com/mrdoob/three.js/blob/master/src/renderers/shaders/ShaderLib.js#L572

It defines uniforms for the various standard material colors (diffuse, ambient, specular) but it does so in a way that is different from every other material because it calls them "uDiffuseColor", "uAmbientColor" and "uSpecularColor". Every other material uses the standard set out here:

https://github.com/mrdoob/three.js/blob/master/src/renderers/shaders/ShaderChunk.js#L444

with the names being "diffuse", "ambient" and "specular."

I think there is/was some attempt to prefix uniforms with "u" but it is inconsistently done. Probably should settle on a single standard here.

I'd suggest as going as far as creating a 'surface_colors' section in the ShaderLib.js for "diffuseColor", "ambientColor", "emissiveColor" and "specularColor" (I'd recommend including "Color" in the name to be clear what it is) as it is pretty common and making it standardized just simplifies things.
Issue 1:
Originally reported by Anik Halder on the mailing list http://matplotlib.1069221.n5.nabble.com/IPython-FITS-file-plotting-problem-tp47271.html

Consider this simple example:

import matplotlib.pyplot as plt
import numpy as np

x = np.arange(10)
X, Y = np.meshgrid(x,x)
Z = ((X-5)**2 + (Y-5)**2)**0.5

plt.imshow(Z, origin = "lower")
plt.colorbar()
plt.show()

plt.figure()
plt.imshow(Z.astype('>f8'), origin = "lower")
plt.colorbar()
plt.show()

Which produces:

And:

This works correctly in 1.5.1 so it looks like it's a regression in 2.x

Issue 2:
The following minimal example:

import matplotlib
matplotlib.use('Agg')
from astropy.wcs import WCS
from wcsaxes import datasets
import matplotlib.pyplot as plt
hdu = datasets.fetch_msx_hdu()
plt.imshow(hdu.data, vmin=-2e-4, vmax=2e-4)
plt.savefig('image.png')

produces the following output:

This appears to be related to the fact the values in the image data are < 1. If I multiply all the values by 1e6, I get something sensible:

plt.imshow(hdu.data * 1e6, vmin=-2e-4, vmax=2e-4)
plt.savefig('image.png')
Issue 1:
Hi,

We are suffering a big performance hit with druid due to a dimension in our data source which has a very high cardinality. We need that dimension but only if there are significant rows with that dimension, i.e. we should ignore/discard cases where this dimension with a unique value only appears once.

We thought about doing a two-step process: as we are inserting in realtime from Storm, when we receive the data we don't know if it's first appear or not, so we are inserting all, and once segment is closed after an hour, we execute a second query in a HIVE view to group manually the ones that only appear one time under something like "Unknown", and insert them again. The problem with this is that during the current hour there is still a degradation performance issue, but at least it works fine for data outside the realtime segment.

This is an in-house provisional solution, but we would like to know if someone can help with a more elegant one.

We are using version 0.9.2.

Thanks for your time.

Issue 2:
I see a problem with the current way of managing metadata about publishing segments in AppenderatorDriver. Lets say a task calls AppenderatorDriver to publish segments for a sequence, then the driver will remove the sequence information from activeSegments and publishPendingSegments map. Now, if the task is restarted at a point after in memory data is persisted and metadata is committed but before any mergeAndPush or publish happens, then on restart if the task again tells driver to publish the same sequence, there is no way for the driver to know what segments to publish.

If you look at the code for publish or publishAll method of AppenderatorDriver the first thing that is done is to remove the sequence information from activeSegments and publishPendingSegments map. After that push is called on Appenderator with wrapped committer which will contain driver metadata (with the sequence information removed). In the push implementation in memory data is persisted using persist method which also commits the metadata to disk. So, what I was saying is that if task is restarted at this point, the restored metadata might be incomplete as this sequence information will not be restored. Any further calls to publish this sequence wouldn't do anything.

One way to resolve this would be to maintain an additional in-memory structure that contains sequences which are being published. On call to publish, sequence information is removed from activeSegments map but not from publishPendingSegments and added to the new in-memory structure. On successful publish sequence information is removed from the publishPendingSegments and in-memory structure. Any call to publish should try to publish sequence if it is not in the in-memory structure (it may not be in the activeSegment map when task is restarted at the point of time above described).
Issue 1:
Summary of the new feature/enhancement

I used to use Hain to do /shutdown or /restart, this is a feature I surprisingly used allot!

My PC screen would be off and I would be able to do ALT+SPACE /restart or /shutdown without having to turn on my screen.

I would also use /taskkill /f /t /pid [Process name] allot. Later on I started using a plugin allowing me to /kill [Process name] instead.

This would make opening CMD for a single thing redundant. It would make some peoples workflow allot quicker

Proposed technical implementation details (optional)

Either a direct push to CMD/Powershell using /[command], /p[command] or additionally allow custom commands to be set as shortcuts for these.

Issue 2:
📝 Provide a description of the new feature

Web developers, designers or anybody that working with colors need more color formats (better color models) in the ColorPicker as only the RGB values

Wikipedia - Color models

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
Bug summary

I use the rect parameter of the figure's layout engine to set figure margins. For figures with layout='constrained' this parameter appears to be ignored if rcParams['figure.constrained_layout.use'] is True when saving the figure.

Code for reproduction

import matplotlib.pyplot as plt
plt.rcParams['figure.constrained_layout.use']=True
fig, ax = plt.subplots()
engine = fig.get_layout_engine()
engine.set(rect=[0.1,0.1,0.8,0.8]) # (left, bottom, width, height)
engine.execute(fig)
fig.savefig('test-constrained-True.png')

Actual outcome

The saved figure does not have the expected layout. It does not match the figure displayed interactively. The axes extend to the edges of the figure area.

Expected outcome

The saved figure has matches what is shown interactively. The axes do not extend to the edges of the figure area, respecting the rect parameter. This saved figure is generated with the code, which does not demonstrate the bug:

plt.rcParams['figure.constrained_layout.use'] = False
fig, ax = plt.subplots(layout='constrained')
engine = fig.get_layout_engine()
engine.set(rect=[0.1,0.1,0.8,0.8]) # (left, bottom, width, height)
engine.execute(fig)
fig.savefig('test-constrained-False.png')

Additional information

No response

Operating system

Windows

Matplotlib Version

3.6.1

Matplotlib Backend

Qt5Agg

Python version

3.10.6

Jupyter version

n/a

Installation

conda

Issue 2:
Bug summary

When setting rcParams['figure.constrained_layout.use'] = True and ax.set_aspect('equal'), and saving with bbox_inches = 'tight', the resulting figure is cropped incorrectly.

Code for reproduction

import matplotlib as mpl
import matplotlib.pyplot as plt

mpl.rcParams['figure.constrained_layout.use'] = True

fig, ax = plt.subplots()

ax.plot([0, 1])
ax.set_xlim(0, 1)
ax.set_aspect('equal')

fig.savefig('test.png', bbox_inches = 'tight')

Actual outcome

MatplotlibDeprecationWarning: The resize_event function was deprecated in Matplotlib 3.6 and will be removed two minor releases later. Use callbacks.process('resize_event', ResizeEvent(...)) instead.
fig, ax = plt.subplots()

Expected outcome

If I leave out mpl.rcParams['figure.constrained_layout.use'] = True, but call subplots with layout = 'constrained', the saved figure is as expected:

(The deprecation warning is probably the same is in #23921, and appears in both cases.)

Additional information

No response

Operating system

macOS Monterey

Matplotlib Version

3.6.0

Matplotlib Backend

macOSX

Python version

3.10.6

Jupyter version

No response

Installation

pip
Issue 1:
Electron version: 1.4

Operating system: windows

Expected behavior

After taking from cookies.get I should be able to use the same output to cookies.set

Actual behavior

Error: Setting cookie failed

at Error (native)

How to reproduce

When a browser window closes I want to nab it's cookies and store them. I don't want to use your system because the user might want to export the cookies and use them on another machine. I'm developing something to allow people to browse on multiple machines using the same cookies.

function ChildBrowserClose(e) {
console.log(e.sender);
e
.sender
.webContents
.session
.cookies
.get({}, (error, cookies) => {
e.sender.CustomSession.Cookies = JSON.stringify(cookies);
var Sessions = app
.Session
.get('Sessions')
Sessions
.find({id: e.sender.CustomSession.id})
.assign(e.sender.CustomSession)
.value()
console.log(error, cookies)
});

}

later I try to set with

for(var i=0;i<Cookies.length;i++){
NewBrowser
.webContents
.session
.cookies
.set(Cookies[i], (error) => {
console.log(error);
});
}

Error: Setting cookie failed

at Error (native)

Issue 2:
None of the cookies I am saving from my session have a url property. However, when I call win.webContents.session.cookie.set(cookie, cb) I get an error cause the cookie I am trying to set doesn't have a url property. If they cookie didn't have a url on it when I called win.webContents.session.cookies.get(), then electron shouldn't require me to have a url property on the cookie to set it.
Issue 1:
When loading a model (tensorflow, darknet) to a myriad VPU, following happens as I understood:

OpenCV reads the model and converts it to the IE representation.

The model will be transferred to the VPU.

Ready to accept forward requests.

Is it possible to release the converted model from the RAM, because it is already loaded into the VPUs RAM? Or did I misunderstand the whole concept? Due to limited RAM on our execution nodes, we would like to reduce the memory overhead required for bigger yolo networks.

Kind Regards

Roland

Issue 2:
System information (version)

OpenCV => 4.5.1

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2019

Detailed description

There are vertical artifacts in image after a gaussian filter of size greater than 14x14 on the borders of an image. The picture is also a little bit more gray. This happens only for 16-bit images. It affects canny edge filter as well (weird edges), since it uses gaussian filter. It started first in version 4.5.1. In the previous version 4.5.0 the artifacts are not there, it may be caused by this commit: #18983. In this picture the is a visible artifact only on the left side, but it can create artifacts on the other side as well. Here is image before and after the filter:

Zipped files with examples:

test.zip

Steps to reproduce

//open image
auto inputFile = "test.tif"
cv::Mat image = cv::imread(inputFile, cv::IMREAD_ANYDEPTH);
EXPECT_EQ(image.depth(), 2);

//perform gauss filter
cv::Mat gaused;
GaussianBlur(image, gaused, Size(15, 15), 1.0);

//save image after gauss
auto outputFile = "testAfterGauss.tif");
cv::imwrite(outputFile, gaused);
Issue 1:
Summary of the new feature/enhancement

Similar to the pipline of a screen GIF recorder I would like to request a screen video recorder. It should let us either record the whole screen or a customizable area. It also should have an option to record the sound or not. Everything else such as customizable FPS / codec, locking to an application window etc. is optional.

Issue 2:
Windows build number: Version 10.0.18363.836

PowerToys version: 0.18

PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

After closing Run using escape button and also after selecting a result, when I reopen Run, the search text and search results are not cleared from last search.

Isn't it better if the last search results cleared after Run closes?
Issue 1:
vue/src/compiler/codeframe.js

Line 16
in
7a8de91

for (let j = i - range; j <= i + range || end > count; j++) {

当count < end时，此for循环无法停止。

Issue 2:
Version

2.6.10

Reproduction link

https://jsfiddle.net/qagby1e4/

Steps to reproduce

Somehow if I use the attribute "open" on a html tag, vue fills the attribute with the value "open". See the attached jfiddle, and inspect the span containing the attribute. If I put the tag outside the vue app, everything is fine. Also, it doesn't matter what the content of the attribute is.

What is expected?

Vue doesn't mutate the attribute "open" on html tags inside the vue app.

What is actually happening?

Vue mutates the "open" attribute with the value "open".

It doesn't seem to be a reserved keyword, although this file https://github.com/vuejs/vue/blob/dev/src/platforms/web/util/attrs.js does specify it as a boolean attribute. In our case, a mathjax html structure, the open attribute can contain string values.
Issue 1:
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

azure load balancer

Is this a BUG REPORT or FEATURE REQUEST? (choose one): Kind of both

Kubernetes version (use kubectl version): current master

Environment:

Cloud provider or hardware configuration: azure

OS (e.g. from /etc/os-release): CentOS 7.2

Kernel (e.g. uname -a): Linux ma-k8s-0 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Install tools: custom Ansible+kubeadm

Others:

What happened:

The Azure cloud provider complains with "loadbalancer is misconfigured with a different backend pool" when I add custom load balancer rules with separate backend pools through the Azure Portal or through Azure Resource Templates. I need to add these custom rules to expose the Kubernetes API endpoints. Adding a dedicated Azure Load Balancer just for the API is not possible, as otherwise I get error messages about Azure Load Balancer limitations (only one LB allowed per Availability Set)

What you expected to happen:

I would have expected that the Azure Cloud Provider just ignores existing backend pools.

How to reproduce it (as minimally and precisely as possible):

As described in "What happened"

Anything else do we need to know:

I created a fix for this and am currently testing this. I will create a PR in a few minutes when everything goes well.

I created this issue before finishing the PR because I wanted to discuss the reason behind this limitation?

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

No

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

---scheduler extender; node array; NodeList

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

BUG REPORT

Kubernetes version (use kubectl version): 1.3.7

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release): ubuntu 14.04

Kernel (e.g. uname -a):

Install tools:

Others:

What happened: Scheduler Extender changes to node array nodes []*api.Node, but ExtenderArgs still use NodeList, which will you use in the future.

What you expected to happen: Use the same parameter

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:
Issue 1:
Getting an error when trying to use DatagramConn to send to the network's broadcast address.

const msg = new TextEncoder().encode("Hello world\n");

const conn = Deno.listenDatagram({
hostname: "0.0.0.0",
port: 8002,
transport: "udp",
});

await conn.send(msg, {
hostname: "192.168.1.255",
port: 8001,
transport: "udp",
});

Running the above with:

deno run --allow-net --unstable test.ts

Output:

error: Uncaught (in promise) PermissionDenied: Permission denied (os error 13)
await conn.send(msg, {
^
at unwrapOpResult (deno:core/core.js:102:13)
at async file:///home/pi/test.ts:9:1

Issue 2:
When using Deno.memoryUsage() without the --unstable flag, Deno causes the following error:

error: TS2339 [ERROR]: Property 'memoryUsage' does not exist on type 'typeof Deno'.
console.log(Deno.memoryUsage());
~~~~~~~~~~~

On the other hand, other unstable APIs (e.g. Deno.resolveDns()) cause the following error:

error: TS2339 [ERROR]: Property 'resolveDns' does not exist on type 'typeof Deno'. 'Deno.resolveDns' is an unstable API. Did you forget to run with the '--unstable' flag?
console.log(Deno.resolveDns());

It seems that "memoryUsage" is not listed in UNSTABLE_DENO_PROPS 🙂
Issue 1:

Issue 2:
ComboPooledDataSource not compatible with apache shardingsphere.

I am currently trying to implement shardingshpere in my current company's codebase. Previously created an example project using HikariDataSource and it worked fine.

Now in companies code base uses c3p0.ComboPooledDataSource as datasource. So when am trying to create shardingshphere datasource using this datasource its failing.

In HikariDatasource, the standardProps are coming correct.

But in c3p0.ComboPooledDataSource, the standardProps are giving just password only.

The main cause of the issue is that in c3p0.ComboPooledDataSource, the properties are stored in different format. Like username as user and url as jdbcUrl.

Thats why am getting a nullpointer exception here since both the keys are username and url

I was under the assumption that apache shardingsphere is compatible with all kinds of datasource. I am stuck here.

Please help me out if possible.

Datasource Config

dataSources:
ds:
dataSourceClassName: com.mchange.v2.c3p0.ComboPooledDataSource
driverClassName: com.mysql.jdbc.Driver
jdbcUrl: jdbc:mysql://localhost:3306/demo_ds?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
user: root
username: root
password: password
max-active: 16

pom.xml

<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core</artifactId>
<version>5.1.2</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.5.1</version>
</dependency>
Issue 1:
Challenge Name

https://www.freecodecamp.com/challenges/use-a-css-class-to-style-an-element#?solution=%3Cstyle%3E%0A%20%C2%A0.red-text%20%7B%0A%20%C2%A0%20%20color%3A%20red%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3E%0A%20%20CatPhotoApp%0A%3C%2Fh2%3E%0A%0A%3Cp%3EKitty%20ipsum%20dolor%20sit%20amet%2C%20shed%20everywhere%20shed%20everywhere%20stretching%20attack%20your%20ankles%20chase%20the%20red%20dot%2C%20hairball%20run%20catnip%20eat%20the%20grass%20sniff.%3C%2Fp%3E%0A

Issue Description

The result from the editor is incorrect.

I have a style declaration for the red-text class: .red-text { color: red; }, and an element which uses this class: <h2 class="red-text">...</h2>.

The grader recognizes both of these, yet the h2 remains unstyled.

Browser Information

Chrome for Android, V 49:

Operating System: Android 6.0.1

Mobile, Desktop, or Tablet: Mobile (Nexus 5)

Your Code

<style>
.red-text {
color: red;
}
</style>

<h2 class="red-text">
CatPhotoApp
</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Issue 2:
Challenge Use a CSS Class to Style an Element has an issue.

User Agent is: Mozilla/5.0 (Linux; Android 4.4.2; SM-T231 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Safari/537.36.

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

My code:

<style>
.red-text {
color: red;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
yes

Symfony version
4.1

Finder::ignoreVCS() is great at ignoring file patterns for the files created by popular VCS systems.

However, it would be great to be able to instruct Finder to actually exclude the paths excluded by .gitignore.

So if we have .gitignore:

vendor/
cache/

Finder::create()
->files()
->ignoreVCS(true) // <--- Ignores `.git`
->ignoreVCSIgnored(true); // <--- Ignores vendor/ and cache/

I think this would simplify a lot of Finder configurations which currently manually exclude the git-ignored paths or manually include everything else.

Issue 2:
should be mapped to number input type with step="any"...yes, number supports float.