WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Note: this is kind of a duplicate of #23376, which was closed but no one had suggested this particular solution. Would the better etiquette have been to comment there instead of opening a new issue?

The docstring for isapprox() gives a clear explanation of why it doesn't really work for one of the arguments be zero. However, I think there would be a lot of utility in including an isapproxzero() function that uses the same comparison method but the scale for rtol is set using an explicit argument. An example implementation would be as follows:

function isapproxzero(x, scale; atol::Real=0, rtol::Real=atol>0 ? 0 : sqrt(eps()))
norm(x) <= atol + rtol * norm(scale)
end

I ran into this when trying to check whether x is approximately fixed point of a function by checking the function's derivative is close to zero at that point, relative to the value of f(x). I think it's pretty broadly applicable, though.

Issue 2:
It would be convenient to have an isapproxzero method which is to ≈ what iszero is to ==.

In addition to being slighly more efficient than isapprox, isapproxzero would work out of the box with the default parameters.

Indeed, since atol is zero by default we have for example:

julia> 1e-100 ≈ 0
false

An implementation if isapproxzero could be

function isapproxzero(x::Number; rtol::Real=0, atol::Real=rtoldefault(typeof(x)), nans::Bool=false)
iszero(x) || (isfinite(x) && abs(x) <= atol) || (nans && isnan(x))
end

It might be helpful to accept an rtol parameter even if it is not used since it allows to write functions like

function f(a, b, c; kws...)
... # do stuff
isapprox(a, b; kws...)
... # do stuff
isapproxzero(c; kws...)
... # do stuff
end

Indeed if isapproxzero was not accepting rtol, this function would fail when rtol is given as a keyword to f.
Issue 1:
Summary of the new feature/enhancement

Currently PowerToys run will open a new window for applications that support multiple windows of it-self. For example Firefox will open a new window rather than bring the existing one to the foreground.

Proposed technical implementation details (optional)

It would be nice that when an application is opened that allows multiple windows PowerToys Run would at least optionally prefer the existing window. This, FWIW, would replicate the behavior of MacOS spotlight.

Issue 2:
PowerToys Run should give an option for the Run box to follow the mouse focus or always use a specific monitor

Proposed technical implementation details (optional)
Issue 1:
Feature request

Hi! I'm new to webpack community, but I want to improve my knowledge of how it works "under the hood". I faced with problem when I don't understand where which type is using for and it's look like for new contributors it is very difficult as well + strictly typed code has less likelihood to fall into deoptimization. So my question is - Do you have any ideas/roadmap to migrating source code on TypeScript/Flow? May be create some JSDocs? Looks like migrating tapable, enhanced-resolve don't look as something difficult.

What is the expected behavior?

More types!

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

Type systems improve your code by making it easier to read.

Strictly typed code has less likelihood to fall into deoptimization

How should this be implemented in your opinion?

Looks like migrating tapable, enhanced-resolve don't look as something difficult. In webpack core repo there are types already in some files. For instance, part of compiler definition has JSDoc, but still it is a large task for webpack core.

Are you willing to work on this yourself?

Yes. Bigger community => Faster releases 😁

Issue 2:
Webpack has been incredibly popular around the JS world. Its design philosophy wins trustment of the community.

To further envolvement, it's very important that webpack has solid codebase to embrace the rapidly changing world.

However, as code grows, without great test suite and other devtool, code can be gross. For now, webpack's source is written in ES5. And as you know, there isn't much documentation in the source. It's hard for incoming contributors to understand the codebase. Thus, it's harder to make webpack real-better.

Typescript is a great tool to help webpack to achieve greater goal.

SO, you can see https://github.com/ts-webpack/webpack/tree/feature/tsify is out!

Current status of ts-webpack

done

the core dependency tree of webpack have been converted into typescript mostly(except watchpack).

types of those sorrounding modules have been submitted to DefinintelyTyped. This is for more accurate type checking for webpack eventually.

the source code of webpack has been converted into typescript catching up with the recent commits(needs further synchronization)

its fully compatibility with current test suite. (There is one bug of the latest typescript which will causes test error)

missing

enable strictNullChecks and make the source fully type-checked.

a new set of build-tool to support and guard the new source code.

refactoring to make some code more clear to be understood.

adopt ES6 module system to fix the reference error as some module's structure is incompatitble with the type system(at least for now there is no easy way to solve that).

responses from the webpack core-team and the community 😄
Issue 1:
VSCode Version: 0.10.11 (f291f4a)

OS Version: OSX 10.11.3

Steps to Reproduce:

In System Preferences -> Keyboard, switch to something other than US english

Try to change zoom level with ⌘-+ or open settings file with ⌘-,

In earlier release of VSCode, this worked. Did you switch from reading OS-mapped keypress to raw scancodes for input? Maybe a Chromium or Electron bug?

Issue 2:
Now it "outdents." There are a few other potentially related oddities, such as Command-[ causing the text to get smaller, and Command-] causing the text to get larger.

If I had to guess, someone change the key-mapping code to work off of key codes and not characters, so it think it's using a QWERTY keyboard, even though it's not.

This worked prior to the latest update (broken version is 0.10.5 dfc08dc).
Issue 1:
Version

2.6.11

Reproduction link

https://codepen.io/tornadoalert/pen/rNjVzbd

Steps to reproduce

Setting the value as prop on a custom element fails. It gets passed as a string [Object Object] instead.

<custom-element :value.prop="message"></custom-element>

new Vue({
el: '#app',
data: {
message: {'hello': 'world'}
}
})

What is expected?

The :value.prop should be passed as an object

What is actually happening?

The :value.prop is being passed as a string "[Object Object]"

Issue 2:
Version

2.5.13

Reproduction link

https://jsfiddle.net/56zfwbe5/1/

Steps to reproduce

Open the jsfiddle demo

Open your console

Run the demo

now you should see an error like this: [Vue warn]: Duplicate keys detected:

What is expected?

Children inside a repeated <template> should share the same keys as they should both re-render if the target element changes.

What is actually happening?

Errors are raised with the message : [Vue warn]: Duplicate keys detected is raised.

Cause

This behavior is linked to this PR and was also references in this issue

Workaround

You could avoid this error by adding some prefix / suffix

<template v-for="it in items">
<li :key="it.id + '-label'">{{it.label}}</li>
<li :key="it.id + '-separator'" class="separator">&gt;</li>
</template>
Issue 1:
Challenge Name

Data Visualization with D3: Work with Dynamic Data in D3

Issue Description

Use of same const name (in this case 'dataset') from previous challenge attempt causes tests to fail, with the error "Identifier 'dataset' has already been declared".

Changing the name of the const from dataset to another name solves the issue.

Browser Information

Browser Name, Version: Chrome 55.0.2883.87 (64-bit)

Operating System: Linux Mint 18

Mobile, Desktop, or Tablet: Desktop

Your Code

const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

d3.select("body").selectAll("h2")
.data(dataset)
.enter()
.append("h2")
// Add your code below this line
.text((d) => d + " USD");

// Add your code above this line

Screenshot

Issue 2:
D3 Challenges Dataset identifier dataset has already been declared error.

Essentially the D3 challenges won't run after 1 failed attempt.

Challenge work-with-dynamic-data-in-d3 has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.

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

<body>
<script>
let dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];

d3.select("body").selectAll("h2")
.data(dataset)
.enter()
.append("h2")
// Add your code below this line

.text((d) => d + ' USD');

// Add your code above this line
</script>
</body>
Issue 1:
Environment

Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version 0.5.2762.0

Any other software?
WSL with Ubuntu 18.04.2 LTS

Steps to reproduce

open terminal on WSL with ubuntu

start typing a command

use tab for auto-completion

cursor goes back 1 place in the cmdline (visually - not really, meaning if i continue typing cmd can be executed successfully)

Expected behavior

auto completion should not redraw the cursor

Actual behavior

cursor seems to go back 1 place and when trying to continue typing the command it ends up in disorder.

Issue 2:
Environment

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

Steps to reproduce

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

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

Select multiple lines and right click.

Paste in any text editor. I used VSCode.

Expected behavior

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

Actual behavior

One line with lots of space.

Notes

This is different from #65 since it was about conhost and I'm talking about the new terminal, and I didn't have Shift pressed.
Issue 1:
Migrated issue, originally created by Anonymous

In SQLAlchemy 4.0b4, create a model with a Sequence in its column against the Oracle backend. Create the table, then create an object of the model and save it. The SQL emitted will not be recognized by Oracle:

sqlalchemy.exceptions.DatabaseError: (DatabaseError) ORA-02289: sequence does not exist

'SELECT "myschema.seq_foobar".nextval FROM DUAL'

This error is actually due to the fact that SQLAlchemy added the double-quotes. Removing them makes Oracle run the same SQL without error:

SELECT myschema.seq_foobar.nextval FROM DUAL;

This worked fine in SQLAlchemy 3, which we'll have to keep using for now.

Attachments: 761.diff

Issue 2:
Migrated issue, originally created by rgg (@rgg)

The recipe "Storing/Using Enumerations", described in http://techspot.zzzeek.org/2011/01/14/the-enum-recipe/ does not function in SQLite using the latest SQLAlchemy version (from the repository).

It fails when it tries to create the CHECK constraint associated to the Enum field. The constraint receives the values associated to the enum symbols, but requires the symbols, and it fails when trying to get the values of the symbols.

In PostgreSQL (which uses a native ENUM type) the recipe works ok.

I suppose it will fail in all databases which don't have a native Enum type, but I have verified the failure only on SQLite.

Regards,
Issue 1:
From Stefán:

So this is one of those "borderline" issues.

It turns out that we have some sort of a wildcard catchall DNS here which means that no matter what URL you'd put into that test, it would always resolve to something "legal" since the result would end up being illegal.url.mycompany.com which would then resolve.

So this is not so much an "issue" but a notice that this test can "fail" because of a weird network setup on the computer running the test.

Issue 2:
Hi

I Used kafka indexing service from few month without trouble.

today all task failing,with this log :

2018-03-15T13:23:46,676 WARN [task-runner-0-priority-0] io.druid.indexing.common.actions.RemoteTaskActionClient - Exception submitting action for task[index_kafka_deliveryV8_80723dbb64bdf54_icecioga]
io.druid.java.util.common.IOE: Scary HTTP status returned: 500 Server Error. Check your overlord logs for exceptions.
at io.druid.indexing.common.actions.RemoteTaskActionClient.submit(RemoteTaskActionClient.java:95) [druid-indexing-service-0.12.0.jar:0.12.0]
at io.druid.indexing.appenderator.ActionBasedSegmentAllocator.allocate(ActionBasedSegmentAllocator.java:53) [druid-indexing-service-0.12.0.jar:0.12.0]
at io.druid.segment.realtime.appenderator.BaseAppenderatorDriver.getSegment(BaseAppenderatorDriver.java:221) [druid-server-0.12.0.jar:0.12.0]
at io.druid.segment.realtime.appenderator.BaseAppenderatorDriver.append(BaseAppenderatorDriver.java:289) [druid-server-0.12.0.jar:0.12.0]
at io.druid.segment.realtime.appenderator.StreamAppenderatorDriver.add(StreamAppenderatorDriver.java:167) [druid-server-0.12.0.jar:0.12.0]
at io.druid.indexing.kafka.KafkaIndexTask.run(KafkaIndexTask.java:701) [druid-kafka-indexing-service-0.12.0.jar:0.12.0]
at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:444) [druid-indexing-service-0.12.0.jar:0.12.0]
at io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:416) [druid-indexing-service-0.12.0.jar:0.12.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]```

when we take a look at coordinator log there is :

`Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "druid_pendingsegments_sequence_name_prev_id_sha1_key"`

is it a known/common mistake? how can I fix it?
Issue 1:
Hello!

Actually, I'm using 'video_player' in a Flutter App. But I'm having a problem. When I try to use the RTMP protocol, I got this error: https://pastebin.com/grw8ZrDZ

In that error you can see:

Caused by: java.net.MalformedURLException: unknown protocol: rtmp

I know this plugin uses the raw ExoPlayer plugin under the hood. Searching on the web, I found an ExoPlayer extension that is a DataSource implementation for playing RTMP streams. Could you add this ExoPlayer Extension to allow us to use a RTMP protocol? Thanks!

Link to RTMP Extension: https://github.com/google/ExoPlayer/tree/dev-v2-r2.8.4/extensions/rtmp

Issue 2:
Hi.

I found flutter video_player based on AVPlayer in IOS, which does not support rtsp url.

Can anyone help me know how to play a video with format like 'rstp/rtmp' in flutter? 🤔
Issue 1:
I'm a huge fan of both literate programming and ES6/Babel, but currently it seems like I can't use them together and would have to use literate CoffeeScript if I want to do literate programming. I'd love to help and potentially issue a PR if I had any idea how to create a Babel plugin... :/

Issue 2:
Are there any plans to support literate programming? I am coming from CoffeeScript and am used to write my code in Literate CoffeeScript .

I would be glad to see this awesome feature in babel.
Issue 1:
Please try to consider adding support for devices based on ARM architecture such as chromebooks and single board computers.

Issue 2:
Will create a PR when I have this working and cleaned up, at the moment the repo-history is a mess. Utilising some of the work from rusty_v8's arm 64 ci.yml done by afinch7. I'm trying out a community gh-action that allows running on non-intel cpus by utilising docker. I'm also looking into cargo runners, which I think provide the list of executables which can be stored and run on this docker instance. 🤞
Issue 1:

Issue 2:
When running load-examples, the example datasets defined in superset/examples/configs/ are loaded without a schema.

Expected results

Datasets should have the correct schema.

Actual results

Datasets end without a schema, even if one is being used.

Screenshots

N/A

How to reproduce the bug

Run superset load-examples

Check the schema of all datasets, the ones loaded from configs have it set to null.

Environment

superset version: superset version

python version: python --version

node.js version: node -v

any feature flags active:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

N/A
Issue 1:
Apache Airflow version:

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

Cloud provider or hardware configuration: M1 Chipset / linux/arm architecture

OS (e.g. from /etc/os-release): Big Sur 11.3.1

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

What you expected to happen: I thought the image for MySQL would be pulled

docker image needs to be updated incase of arm architecture

How to reproduce it: Running development script in MacBook m1 chipset

Anything else we need to know:

Issue 2:
Description

ARM64 support in docker images

Use case / motivation

In the recent years ARM based cpu popularity hugely increased. The arm based cpus are offering better price to performance ratio and laptops outstanding performance. It's getting popular to run ARM nodes in your Kubernetes clusterss.

If you want to run airflow on arm node in kubernetes the docker image wont start it wailt fails with standard_init_linux.go:219: exec user process caused: exec format error.

ARM based cpu in the database world like AWS Graviton or in the consumer world like Apple M1.

Related Issues

In #14796 @potiuk confirmed there is no office support for ARM64 support in docker images

Update: ARM is supported for development now. The support for released imges is coming.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-use-clockwise-notation-to-specify-the-padding-of-an-element has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

Issue 2:
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 screen shots if possible.
Issue 1:
I often need to see what's really going on in a specific function, so I drop a quick
`fmt.Println` in the code to output the data I want to investigate.

This has 2 disadvantages:

1) I always need to jump to the header and import "fmt" and remove it when the
log is removed
2) If I need more context information, I also have to import "runtime" to get
a call stack trace

I propose a built in function

trace(args...interface{})

and/or

tracef(format string, args...interface{})

that does this without requiring fmt or runtime. The output would look like the `panic`
stack trace with the custom information attached.

Issue 2:
Setting up a workspace/GOPATH is one of the big hurdles for new Go users. And maintaining (switching between) several workspaces is a common work flow for some Go developers.

This proposal is to make the GOPATH environment variable optional, and to have the go tool detect the GOPATH root on invocation. It would to this by walking up the tree from the cwd to find a directory named src, and setting GOPATH to the parent of that directory.

For new users, the getting started experience is something like:

mkdir -p src/github.com/user/hello
cd src/github.com/user/hello
vim hello.go
go install
hello

or to install something else:

mkdir src
cd src
go get github.com/docker/docker

Thoughts?
Issue 1:
@tomasmuller: 'Adjust neo4j bin script to take a value for NEO4J_INSTANCE variable.'

Issue 2:
@tomasmuller: 'Added -i PATH option for ./bin/neo4j and ./bin/neo4j-coordinator scripts.

This option override the default value of NEO4J_INSTANCE, which is NEO4J_HOME.

So, to use this flag, the PATH must point to a directory with /conf and /data folders and files, and all existing path entries in configuration files must be updated to this new location.

'
Issue 1:
Environment

Windows build number: [10.0.18362.207]
Windows Terminal version (0.2.1831.0):

Steps to reproduce

Open windows terminal

Open 3 or more terminal tabs

Expected behavior

The 3rd tab and other tabs thereafter should be clickable making navigation between 3 or more terminals possible.

Actual behavior

The 3rd and subsequent tabs are hidden behind the close/maximize/minimize bar and therefore it is impossible to navigate between these terminals.

Issue 2:
Description of the new feature/enhancement

Proposed technical implementation details (optional)
Issue 1:
type Keyed<a> = { [key: 'this' | 'that']: a; } // expected to work, actual doesn't work

Issue 2:
As a heavy user of Typescript now there's one very annoying thing that I face all the time. It's the bad (or lack of) support for Function.prototype.apply/call/bind.

I don't know if this has been requested previously, but this is a big thing to me and I'd like to ask for a solution. Like it or not, bind is used a lot in javascript. Returning any is not a good solution IMHO. Functions are first-class citizens in Javascript, which is one of the reasons that it's the best language to me, but they're not so much in Typescript.

I don't have a syntax in mind unfortunately, so this is an open discussion. If anyone has any ideas please step in.

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

Expected Behavior

An input text field can have a pattern attribute containing a regex string, which the browser natively uses for validation (HTML5 spec).

Current Behavior

Currently, passing pattern to TextField does not transmit it to the underlying input, making native regex validation impossible.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/wy56937zy5

Your Environment

Tech
Version

Material-UI
1.0.0-beta.20

React
16.0.0

browser
Chrome

Issue 2:
Setting the state in the callback of onCheck event cancels the [V] mark on the selected box.

Without setting the state, the checkbox works as expected.

Working fine

<Checkbox
label="price"
onCheck={this._handleCBPrice.bind(this)} />
_handleCBPrice(event, checked){}

Doesn't mark the box with a [V]

<Checkbox
label="price"
onCheck={this._handleCBPrice.bind(this)} />

_handleCBPrice(event, checked){
this.setState({someKey:someValue})
}
Issue 1:
If I use this function with FormData as the data automatically changes Content-type headers to

Content-Type: multipart/form-data; boundary=----WebKitFormBoundarygUCRrzJieLA2q33y

ignoring my custom header.

If i use the function with data empty it sends properly my custom header. I have a createProduct function using POST with the same FormData and header and it works great. I don't know what I'm doing wrong :(

This is my code:

static updateProduct(data, id_product) { const url = ${API_BASE_URL}+'/producto/'+${id_product}; return axios.put(url, data, { headers: {'Content-Type': 'application/json'}; }); }

Issue 2:
axios({
method: "PUT",
url: url,
transformRequest: [function (data, headers) {
// Do whatever you want to transform the data
return formData;
}],
headers: {
'Content-Type': file.type
},
"withCredentials": false
});

Launched request with Content-Type：

Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryPz13ZA77aLqgPlwB