WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
From #3318:

In the short term a pre creation hook can convert volume object characteristics (I am a persistent volume that is a GCE disk, therefore I require one unit of "storage" attach) and move that into the container resources as a summation, which the scheduler would look at as an arbitrary resource. The binder can do this once we have finalization mechanisms

Above is from @smarterclayton. Discussed something similar with @thockin and @bgrant0607 a while back.

I understand what we want to do, but lack the technical design to make it happen.

How does a pod/volume communicate what kind of "slot" is consumes? Is this all contained in the scheduler (it is counting all resources consumed and placed)? Where do the rules go (e.g, 16 GCE disks per node)?

Feedback is requested, please.

Issue 2:
Currently all flags are defined in the binary which makes a big mess. We need some way to deal with duplicate names.

cc @kubernetes/goog-control-plane
Issue 1:
Hi! I can install jax but not jaxlib on debian stretch with python3.9.

What version do I need to get this to work? Is it even possible?

Thanks for any help!!

Dockerfile:

RUN echo "Installing dependencies..." && \
apt-get update && apt-get install -y \
build-essential \
git
WORKDIR /usr/src/app
COPY requirements.txt .
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade Pillow
RUN pip3 install -r requirements.txt
RUN pip3 install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
COPY . .
CMD sleep infinity

I get this error:

ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none)
ERROR: No matching distribution found for jaxlib

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/app/app.py", line 8, in <module>
import jax
File "/usr/local/lib/python3.9/site-packages/jax/__init__.py", line 37, in <module>
from . import config as _config_module
File "/usr/local/lib/python3.9/site-packages/jax/config.py", line 18, in <module>
from jax._src.config import config
File "/usr/local/lib/python3.9/site-packages/jax/_src/config.py", line 27, in <module>
from jax._src import lib
File "/usr/local/lib/python3.9/site-packages/jax/_src/lib/__init__.py", line 39, in <module>
raise ModuleNotFoundError(
ModuleNotFoundError: jax requires jaxlib to be installed. See https://github.com/google/jax#installation for installation instructions.

Issue 2:
Potentially related to #6932 or #7052.

I am using a heterogeneous cluster with various different compute options. I got Jax and Flax installed fine on the CPU system. Then I tried using a GPU node (specifically dual socket Cavium ThunderX2 99xx 32-core processors with two NVIDIA Tesla V100 GPUs), but am unable to install jaxlib:

$ pip install --upgrade jax jaxlib==0.1.68+cuda111 -f https://storage.googleapis.com/jax-releases/jax_releases.html
Looking in links: https://storage.googleapis.com/jax-releases/jax_releases.html
Requirement already satisfied: jax in /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages (0.2.16)
ERROR: Could not find a version that satisfies the requirement jaxlib==0.1.68+cuda111 (from versions: none)
ERROR: No matching distribution found for jaxlib==0.1.68+cuda111

or even

pip install jaxlib
ERROR: Could not find a version that satisfies the requirement jaxlib (from versions: none)
ERROR: No matching distribution found for jaxlib

Below is my pip version, which is up to date. Pip also installs other libraries fine (numpy, scipy, etc.)

$ pip --version
pip 21.1.2 from /home/southworth/.conda/envs/jax_arch/lib/python3.7/site-packages/pip (python 3.7)
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

the only way to get localstorage is to invoke executeJavascript() in webContent , this is not useful to get localstorage from partitions which are lot.

Proposed Solution

add localStorage property to session like cookie.

Alternatives Considered

add fromPartition() method to webConetent.

Additional Information

is there anyway to export localstorage data from persist partition webview

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

session object has cookie object, but does not have localstorage object .

If i want to access localstorage , i have to use webcontents executeJavascript, this is not useful in a situation that i want to get localstorage from partition

Proposed Solution

add localStorage object like cookie to session

Alternatives Considered

add fromPartition method to webContent

Additional Information

.
Issue 1:
This surprised me; happens at both the REPL and in scripts (and no startup file).

julia> 1*2
2

julia> a*b = b*a # errors as I expect:
ERROR: error in method definition: function Base.* must be explicitly imported to be extended
Stacktrace:
[1] top-level scope
@ none:0
[2] top-level scope
@ REPL[2]:1

julia> 1=>2
1 => 2

julia> a=>b = b=>a
Error showing value of type UnionAll:
ERROR:
SYSTEM (REPL): showing an error caused an error
ERROR:
SYSTEM (REPL): caught exception of type StackOverflowError while trying to handle a nested exception; giving up

julia> ┌ Error: Error in the keymap
│ exception =
│ StackOverflowError:
│ Stacktrace:
│ [1] Pair(a::Int64, b::Int64)
│ @ Main ./REPL[4]:1
└ @ REPL.LineEdit ~/Julia/master/usr/share/julia/stdlib/v1.7/REPL/src/LineEdit.jl:2536
julia>
ERROR: fatal: error thrown and no exception handler available.
StackOverflowError()
Pair at ./REPL[4]:1
Pair at ./REPL[4]:1
# repeated many thousands of times... and crash

$ echo $?
1

Issue 2:
Not sure if this is intended:

julia> UUID
ERROR: UndefVarError: UUID not defined

julia> using Random: UUID

julia> UUID(x::String) = UUID(rand(UInt128)) # OK?
UUID

julia> UUID("foo")
8c68d00a-33d1-777d-c4a1-0a41759d1581

julia> using Base: getindex

julia> struct Foo end

julia> getindex(::Foo) = print("Hello")
ERROR: error in method definition: function Base.getindex must be explicitly imported to be extended
Issue 1:
I keep on trying to do courses but seem to be unable to open any section. (JavaScript, Html j Query and so on) . Keep on getting the same error "Oops! Something went wrong. Please try again later"

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue.

When trying to edit the code to update the slot boxes with appropriate values the browser will crash when trying to run the code half complete.
Issue 1:
denodrivers/mysql#87

I have used setTimeout to implement the idle connection timeout for the connection pool.

But when user write some short-running app like this:

const client = new Client().connect(/* ... */);
console.log(await client.query("SELECT ..."));
// End of file, but Deno won't exit

Deno won't exit after it finishes querying. It still waits for some timer (by setTimeout) that can close pooled connection when it stayed idle for too long.

I think there should be a timer API that won't prevent Deno from exiting automatically.

Issue 2:
Use case: As a a module developer, I want to run periodic tasks during the execution of my module. This can be accomplished via setTimeout or setInterval for example. However, I do not want these timers to block the exiting of my module. setInterval in particular will cause the module to run forever until the id associated with it is cleared.

Specific use case: std/log file handler now uses a buffer to write log messages. Google and Go's glog implementations both use a log daemon to flush the buffer automatically every 30 seconds. It would be good for std/log file handler to use setInterval to flush the buffer every 30 seconds as well to mimic this but not block module exit. (see also ref #6127)

For starters, there is already support for async unref ops within Deno which would likely be used in this solution.
Issue 1:
by eleanor@games-with-brains.com:

Add a function to reflect which allows a channel to be created via reflection given the
type of the element it should contain. Should obviously also include the ability to
specify buffering and direction where desired.

Issue 2:
src/pkg/path/filepath/path_windows.go says that "ListSeparator = ':'". This is
an error because paths are separated by ';' in Windows.
Issue 1:
Description

Symfony currently uses:

if ('\\' !== DIRECTORY_SEPARATOR) { // PHP does not run in Windows }

in many places. This could be changed to something like:

if (OperatingSystem::WINDOWS !== $os->getType()) { // PHP does not run in Windows }

Is it worth my time to try to build something small like https://packagist.org/packages/operating-system/operating-system into Symfony? But since this simple thing was not done yet I suppose there is a good reason for it?

My pros:

Better readability

One single place to change the detection (very unlikely that this will be needed)

My cons:

Performance loss

More complexity

Example

see "Description"

Issue 2:
#30955 is proposing adding a new event to hook into the password verification process and allow listeners to deal with clear text passwords. Thinking a bit about this approach, I have a different one to propose here.

The most important drawback of #30955 is that it's still up to the application to implement some custom code to run a "needs rehash" logic then a "persist new encoded password" one. The 2nd drawback is that this gives a trivial way to hook into the process to leak clear text passwords (inadvertently or not).

The boilerplate of a listener shouldn't be needed: security should be first class by default, and this means progressive migration of passwords should be built in and the default behavior.

Instead of adding this hook, I'd suggest adding two new interfaces (names/etc are draft):

interface UpgradablePasswordInterface
{
public function upgradePassword(string $encoded): void;
}

interface RehashAwarePasswordEncoderInterface extends PasswordEncoderInterface
{
public function needsRehash(string $encoded): bool;
}

Then, a UserPasswordEncoder could call both methods when applicable inside its isPasswordValid method, and done.

WDYT?
Issue 1:
Enable a filtered query to apply filter to both parent and child documents but return parent documents for has_child query.

e.g.

curl -X PUT "http://localhost:9200/foobar" -d "{"mappings":{"Foo":{},"Bar":{"_parent":{"type":"Foo"}}}}"

curl -X PUT "http://localhost:9200/foobar/Foo/1" -d "{"foo":"abc","access":"yes"}"

curl -X PUT "http://localhost:9200/foobar/Bar/2?parent=1" -d "{"bar":"xyz","access":"no"}"

The following filtered query would not return a result, since the filter would be applied to both the parent and child documents; however, as implemented now, the parent document would be returned, since the filter is not applied to the child document.

{
"query": {
"filtered": {
"query": {
"has_child": {
"type": "Bar",
"query": {
"term": {
"bar": "xyz"
}
}
}
},
"filter": {
"term": {
"access": "yes"
}
}
}
}
}

Perhaps an additional filtered_query strategy could be specified which would apply the filter first to both parent and child documents.

Issue 2:
this issue is based on the thread at location

https://groups.google.com/forum/?hl=en&fromgroups#!topic/elasticsearch/VCwQoZ1Aj4I

requesting to allow using update API (using scripts) in bulk via the bulk request API.
Issue 1:
Microsoft Windows [Versión 10.0.18363.836]

PowerToys Release v0.18.1

PowerToys Run Module

PowerToys Run Shortcut doesn't work at all. try to call it with different shortcuts, but it never pops up.

The v0.18 worked well. I have uninstalled and reinstalled and everything still the same.

Issue 2:
Environment

Windows build number: [Version 10.0.18362.836]
PowerToys version: v0.18.1
PowerToys: PowerToys Run

Steps to reproduce

With PowerToys installed and running, press Alt + Space from any screen.

Expected behavior

PowerToys Run popup shows up to start typing a command or a search term

Actual behavior

window menu (Restore / Move / Size / Minimize / Maximize / Close) shows up in the top left corner of the focused window if the focus is on a window or nothing at all if the focus is on the desktop.

Screenshots
Issue 1:
I'm submitting a ...

[x] bug report

Current behavior

Errors that occur within an *ngIf="condition", where condition is made truthy via a promise are swallowed (not logged to console).

Expected behavior

All uncaught errors should be logged to console (when using default ErrorHandler).

Minimal reproduction of the problem with instructions

The following code will not log test error! to the console:

import { Component } from '@angular/core';

@Component({
selector: 'my-app',
template: `<div *ngIf="condition">{{ fail() }}</div>`
})
export class AppComponent {
condition = false;

ngOnInit() {
Promise.resolve().then(() => {
this.condition = true;
});
}

fail() {
console.log('should fail...');
throw new Error('test error!');
}
}

Plunker: http://plnkr.co/edit/4I93tFxiKIBf8qvqcyzZ?p=preview

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

Debugging code in components and templates that involve promises.

Please tell us about your environment:

Angular version: 4.0.2

Browser: all

Language: TypeScript 2.2

EDIT: I narrowed down the issue (it has nothing to do with observables)

Issue 2:
I'm submitting a ... (check one with "x")

[ 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

An error inside a template is swallowed if the template was rendered as a response to a promise resolution.

In other cases the same exception is properly logged. Exception in .then() is OK. Exception in template that was not rendered in response to a promise is OK

Expected behavior

The exception should either be passed to the .catch-function or logged.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/ilqlcUUnrRpvFEFuzQc6?p=preview&open=app%2Fapp.component.ts

Run the plunkr and see that there is no exeption.

Comment out Mark2 and put back in Mark1 or Mark3 and see that the error is handled properly.

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

When the error inside templates silently fails It makes it much harder for me to figure out why the template does not finish rendering.

Angular version: 4.0.0

Browser: Chrome, bot probably all.
Issue 1:
Compiling the following code:

"use strict";
export default class {};

Using the command line tsc --t es6 --m commonjs produces illegal JavaScript:

"use strict";
class {
}
exports.default = default_1
;

I realize this is a weird combination of switches, however it seems necessary to target current versions of Node.js/V8 that don't yet natively support ES6 modules.

Issue 2:
Reported by @kuon in:microsoft/TypeScript-Sublime-Plugin#220

When I use autoformat, the following block get the following indentation:

toolsElement = h.div({ className: "row-tools" },
h.button({
className: "add-node",
onClick: () => DataController.createNode(this.props.parentId)
}, "Create new node")
);

While I expect (Last line should be to the left):

toolsElement = h.div({ className: "row-tools" },
h.button({
className: "add-node",
onClick: () => DataController.createNode(this.props.parentId)
}, "Create new node")
);

Another example:

return (
h.div({
className: "view-node-row",
style: {
width: width,
height: rowHeight
}
},
backgroundElement,
centerElement,
toolsElement,
h.div({ className: "nodes" }, items)
)
);

While I expect:

return (
h.div({
className: "view-node-row",
style: {
width: width,
height: rowHeight
}
},
backgroundElement,
centerElement,
toolsElement,
h.div({ className: "nodes" }, items)
)
);

PS: I'm doing react without JSX because TypeScript > JSX, but proper indentation is really crucial to readability.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

Pls. provide [GitHub address] to reproduce this issue.

DEMO url

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6

Operating System version: win10

Java version: 1.8

nacos cloud 集成dubbo 启动报错

2020-09-29 11:30:54.661 ERROR 2728 --- [ main] .a.d.m.s.InMemoryWritableMetadataService : [DUBBO] publishProvider interfaceName is empty . providerUrl: consumer://192.168.5.10/com.alibaba.cloud.dubbo.service.DubboMetadataService?application=dubbo-consumer&check=false&dubbo=2.0.2&generic=true&group=dubbo-service1&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&pid=2728&qos.enable=false&release=2.7.6&side=consumer&sticky=false&timestamp=1601350253658&version=1.0.0, dubbo version: 2.7.6, current host: 192.168.5.10

错误尽管不影响运行,但这个错误有什么办法可以解决么
Issue 1:
If you know how to fix the issue, make a pull request instead.

[x ] I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

[x ] I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

[x ] Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @huhuanming

may be repeatedly dependent on @react-native

"dependencies": {
"@types/react": "*",
"@types/react-native": "*"
}

and

and i remove @types/react-navigation then errors disappears

Issue 2:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @....

@andy-ms @RyanCavanaugh

A while ago all dependents have been tested also in CI. This was a pain for node as it resulted in timeouts and unrelated fails as it took too long to test all of them with all typescript version.

To my understanding this was improved via microsoft/types-publisher#398 to test dependents just with typescript@next.

Now it looks like that dependents are not tested at all anymore. is this intended?

See e.g. https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/316119572?utm_source=github_status&utm_medium=notification
Issue 1:
I'm getting the following error:

Uncaught SecurityError: Blocked a frame with origin "http://localhost:8080" from accessing a frame with origin "https://w.soundcloud.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.

I have a simple app that can display a list of sound cloud players.

Steps to reproduce:

Clone my repo https://github.com/samu/vue-playground, then npm install && npm run dev

In the browser you'll see a bunch of buttons labeled with x: Click the very last one and the exception will be thrown.

Issue 2:
Version

2.6.14

Reproduction link

codepen.io

Steps to reproduce

Go to: https://codepen.io/toshirin/pen/GROapeK

Type something to text box.

Duplicated text appears.

It may happen when initial text is empty("").If there is some text in the initial text, it doesn't happen.

What is expected?

No duplicated text is displayed.

Display the text same as I was typed.

What is actually happening?

Duplicates text which was not typed by me is appeared.

In my investigation, I found updateChildren()'s addVnodes()(see below) causes this.

https://github.com/vuejs/vue/blob/dev/src/core/vdom/patch.js#L470

During the issue is occuring, the debbuger says:

oldCh=[];
newCh=[<vnode>]; (which includes typed text)
oldStartIdx=0;
oldEndIdx=-1;

So L468's condition oldStartIdx > oldEndIdx seem to be true.

But I don't know how I fix.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1564 on 2011-11-20 by trac user laserson, assigned to unknown.

Hi all,

I have been looking for the source of some segfaults I have been getting when trying to use the linkage function in scipy.cluster.hierarchy, and I finally found the reason (with the help of our cluster's IT person, Chris Walker).

In the 'linkage' function in hierarchy.c, the three variables n, np, and npc2, are declared as int types. However, if n=50000, which is the case with my input files, then the value of NCHOOSE2(n) overflows, leading malloc to return a null pointer because the requested number of bytes is negative.

If you uncomment the debug message at l. 461, you will find this to be true.

These three variables should be changed to be long ints, or something similar, to accomodate larger input matrices.

Thanks!

Uri

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/720 on 2008-08-08 by trac user aisaac, assigned to unknown.

NumPy has trapz in the function_base module.

SciPy has cumtrapz in the quadrature module.

The code is essentially identical.

Presumably this duplication should be eliminated

by having SciPy import the NumPy function?
Issue 1:
First of all, thanks for provide great tools for e2e testing

But do it possible do thing like in cypress components test currently ?

https://docs.cypress.io/guides/component-testing/introduction

Just render the react component and assert the results?

Issue 2:
System info

Playwright Version: v1.32.0

Operating System: macOS 13.2

Browser: Chromium

test('Associated Content Editable', async ({
page,
}, testInfo) => {
testInfo.snapshotSuffix = '';
await page.goto('localhost:3000/archimedes.html');
const elementCoordinates = await page.locator(`#main-editor [data-id="mc_FL74IM4XB00006_vhX7FK"]`).boundingBox();

//Putting cursor at the start of 2nd associated content
const xPos = elementCoordinates.x;
const yPos = elementCoordinates.y;
await page.mouse.click(xPos, yPos);

//Third Backspace should do nothing - prevent pushing associated
//content tag within another associated content tag.
await keyPress(page, `Backspace`);
await waitForTime(page, 200);
await keyPress(page, `Backspace`);
await waitForTime(page, 200);
await keyPress(page, `Backspace`);
await waitForTime(page, 200);

const editor = await page.waitForSelector('#main-editor');
const fieldValue = await editor.evaluate((el) => el.innerHTML, editor);

expect(fieldValue).toMatchSnapshot();

await page.close();
});