WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
(or vice versa). Right now, this seems to just crash(?) (JuliaPy/PyCall.jl#148). Can dlopen (i.e. libuv) detect the architecture of a library file and throw an exception?

(Would be good to try this outside of PyCall to verify that it really crashes and is not PyCall's fault. But I think PyCall should throw an error if dlopen does.)

Issue 2:
Description

When performing an outer product (M .* v) of a sparse matrix by a vector (either dense or sparse), I run out of memory.

The matrix in question is 3,955,848×3,955,848 SparseMatrixCSC{Float64,Int64} with 31,646,765 stored entries. The vector is of length 3,955,848.

The result should be another 3,955,848x3,955,848 matrix of 3,955,848 entries, which should fit comfortably in memory. Unfortunately, it seems as though there must be a fair amount of unnecessary allocation happening somewhere.

Version

Julia Version 1.0.0

Commit 5d4eaca (2018-08-08 20:58 UTC)

Platform Info:

OS: Linux (x86_64-pc-linux-gnu)

CPU: Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz

WORD_SIZE: 64

LIBM: libopenlibm

LLVM: libLLVM-6.0.0 (ORCJIT, westmere)

Error Message

ERROR: OutOfMemoryError()
Stacktrace:
[1] _allocres at ./boot.jl:394 [inlined]
[2] _diffshape_broadcast(::typeof(*), ::SparseMatrixCSC{Float64,Int64}, ::SparseVector{Float64,Int64}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/SparseArrays/src/higherorderfns.jl:189
[3] _copy at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/SparseArrays/src/higherorderfns.jl:970 [inlined]
[4] copy at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/SparseArrays/src/higherorderfns.jl:965 [inlined]
[5] materialize at ./broadcast.jl:724 [inlined]
[6] broadcast at ./broadcast.jl:702 [inlined]
[7] copy at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/SparseArrays/src/higherorderfns.jl:1082 [inlined]
[8] materialize(::Base.Broadcast.Broadcasted{SparseArrays.HigherOrderFns.PromoteToSparse,Nothing,typeof(*),Tuple{SparseMatrixCSC{Float64,Int64},Array{Float64,1}}}) at ./broadcast.jl:724
[9] top-level scope at none:0

Example Code

using SparseArrays

width = 1636
height = 2418
I = vec(rand(1:width*height,8*width*height))
J = vec(rand(1:width*height,8*width*height))
V = vec(rand(1,8*width*height))
M = sparse(I,J,V)
v = vec(rand(1,width*height))
M.*v #Everything blows up

Note that this works fine for (width=height=100) and returns the expected sparse matrix with the expected number of entries.
Issue 1:
Apache Airflow version

Other Airflow 2 version

What happened

Calling the TrinoOperator/Hook in the latest 4.0.0 version results in the above error for any query.

File "/opt/airflow/dags/utils/trino.py", line 21, in get_data df = engine.get_pandas_df(query) File "/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/trino/hooks/trino.py", line 180, in get_pandas_df cursor.execute(self.strip_sql_string(sql), parameters) AttributeError: 'TrinoHook' object has no attribute 'strip_sql_string'

What you think should happen instead

The SQL is executed correctly, no errors in the TrinoHook.

How to reproduce

Run a query with an instance of the TrinoHook class against a data store

Operating System

macOS

Versions of Apache Airflow Providers

4.0.0

Deployment

MWAA

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

Other Airflow 2 version

What happened

Calling the ExasolOperator/Hook in the latest 4.0.0 version results in the above error for any query.

Example task trace:

[2022-08-16, 10:26:35 UTC] {{exasol.py:64}} INFO - Executing: SELECT * FROM FOO
[2022-08-16, 10:26:35 UTC] {{taskinstance.py:1703}} ERROR - Task failed with exception
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1332, in _run_raw_task
self._execute_task_with_callbacks(context)
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1458, in _execute_task_with_callbacks
result = self._execute_task(context, self.task)
File "/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 1514, in _execute_task
result = execute_callable(context=context)
File "/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/providers/exasol/operators/exasol.py", line 66, in execute
hook.run(self.sql, autocommit=self.autocommit, parameters=self.parameters)
File "/usr/local/airflow/.local/lib/python3.7/site-packages/airflow/providers/exasol/hooks/exasol.py", line 165, in run
sql = [self.strip_sql_string(sql)]
AttributeError: 'ExasolHook' object has no attribute 'strip_sql_string'

What you think should happen instead

The SQL is executed correctly, no errors in the DB API Hook.

How to reproduce

Run a query with an instance of the DBAPIHook class against a data store

Operating System

Linux

Versions of Apache Airflow Providers

4.0.0

Deployment

MWAA

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

Issue 2:
Current Behavior:

I have been using npx <some-workflow-helper> over the past year to run the current version of a command without having to manage updating it. npm7 does not pull the latest version if I have run it once before... i suspect because its no longer a temp install...

Expected Behavior:

npx some-package always runs the latest published version.

Steps To Reproduce:

npx <test-package>

publish a new version of

npx <test-package>

Environment:

OS: Fedora 33

Node: 14.15.0

npm: 7.1.0
Issue 1:
What problem does this feature solve?

Recently I am trying to write a webpack loader for vue component, during which I came across the package vue-template-compiler.

It works perfectly except that it doesn't have any location info in the ast.

I read something here:

http://echizen.github.io/tech/2017/10-29-vue2wx

It's in Chinese, but you can see the ast result from the compiler method has "originLine" to indicate position.

But When I tried it I didn't get the "originLine", link:

https://runkit.com/fleksin/5b754fd8f424830012365766

So I am not sure if it's already a feature or is it removed from 2.5.17, or am I missing something in the options ?

btw, the version of vue-template-compiler I'm using is 2.5.17.

Some general direction would be much apprieciated.

Thanks in advance :)

What does the proposed API look like?

return ast like this:

{
ast: {
...
originLine: xx,
}
}

Issue 2:
What problem does this feature solve?

Errors raised by the html parser (options.warn in the code) don't register the location of the error.

With the location it will be much easier to debug.

For example if I forget to close an HTML tag, the compiler will complain and tell me the name of the tag. However I will have no idea where the opening tag is located. For moderately big files it's quite impractical.

What does the proposed API look like?

In parseHTML we could add a property in options that will include the line at which the HTML is included in the .vue file. We can use this to offset the location before printing it.

As for getting the locations themselves I have no idea how to proceed. If someone can give me some pointers I may submit a pull request.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.2.9

Hello,

I'm not sure this is really a bug but the console running is surprising.

The context is, i propose to my users to select one value from array to backup database. So, I've one array like this : [ '2017-08-08-17-15-06-name', '2017-08-07-17-15-01-name', '2017-08-08-17-15-10-name', '2017-08-08-17-15-14-name']

When I use "choice" function from SymfonyStyle class (http://symfony.com/blog/new-in-symfony-2-8-console-style-guide) (http://api.symfony.com/3.3/Symfony/Component/Console/Style/SymfonyStyle.html#method_choice), I get this output :

[0] 2017-08-08-17-15-06-name [1] 2017-08-07-17-15-01-name [2] 2017-08-06-17-15-10-name [3] 2017-08-05-17-15-14-name

That OK.

If my user press '1', the selected value is 2017-08-07-17-15-01-name => Good.

But, if my user press '2', the selected value is 2017-08-08-17-15-06-name

I've seen the array_flip (line 238 from SymfonyStyle class) but i'm not sure this is the problem.

Of course in my case, this is a big problem.

I've tried to reproduce this in virgin context. With :

$values = array ('1112', '15412', '6541244', '15888', '225451', '355425');

$choiceqQuestion = new ChoiceQuestion("Quel script voulez-vous exécuter ou dans quel répertoire souhaitez-vous vous rendre ?", $values);

$chx = $io->askQuestion($choiceqQuestion);

var_dump($chx)

The result is :

Quel script voulez-vous exécuter ou dans quel répertoire souhaitez-vous vous rendre ?:

[0] 1112

[1] 15412

[2] 6541244

[3] 15888

[4] 225451

[5] 355425

2

225451

string(6) "225451"

This running makes me think of this function autocomplete the input to select output.

Thanks

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
yes

Symfony version
3.2.4

My situation is as follows:

I have a console application that uses a ChoiceQuestion with version numbers as values. Rendered the question looks like this:

[0]: 3.0.0
[1]: 2.2.0
[2]: 2.1.3

If I select option "2" I'll get "2.2.0", because the value gets autocompleted.

It even fails with associative arrays:

[a]: berlin
[b]: copenhagen
[c]: amsterdam

If I select "b", I get "a", the key of the first option, as its value is found by the autocompleter.

Here is a testcase to demonstrate the behaviour:

public function testAmbiguousKeyFromChoicelist()
{
$possibleChoices = array(
'a' => 'berlin',
'b' => 'copenhagen',
'c' => 'amsterdam',
);

$dialog = new QuestionHelper();
$helperSet = new HelperSet(array(new FormatterHelper()));
$dialog->setHelperSet($helperSet);

$question = new ChoiceQuestion('Please select the environment to load', $possibleChoices);
$question->setMaxAttempts(1);

$answer = $dialog->ask($this->createStreamableInputInterfaceMock($this->getInputStream("b\n")), $this->createOutputInterface(), $question);

$this->assertSame("b", $answer);
}

A possible solutions could be:

Do not consider keys as autocomplete values (so keys must match exactly)

Do consider keys as autocomplete values, but the take precedence over values

My preference would be the first option.
Issue 1:
People have asked for expm on a number of occasions. The following implementation contributed for scilab can serve as a guide for the julia implementation.

http://www.scilab.org/contrib/index_contrib.php?page=displayContribution&fileID=1231

http://www.scilab.org/contrib/download.php?fileID=1231&attachFileName=expm.sci

It is likely that we will run into some un-implemented linear algebra functions, but that should just help completeness.

Issue 2:
The following behaviors have been causing bugs in some code of mine:

searchsortedlast([0.0, 1.0], +0.0) # returns 1
searchsortedlast([0.0, 1.0], -0.0) # returns 0

searchsorted([0.0], +0.0) # returns 1:1
searchsorted([0.0], -0.0) # returns 1:0

searchsorted([0.0], 0.0; lt=<=) # returns 2:1

In all cases I encountered, I could get away with it by using searchsortedXXXX(args... ; lt=<).

However, assuming the above behavior is what's intended, I believe there's an inconsistency in the docs.

For instance, for searchsorted:

searchsorted(a, x; by=<transform>, lt=<comparison>, rev=false)

Return the range of indices of a which compare as equal to x (using binary search) according to

the order specified by the by, lt and rev keywords, assuming that a is already sorted in that order.

Return an empty range located at the insertion point if a does not contain values equal to x.

It's hard to believe that [0.0] does not contain any value equal to 0.0 😅

If it's a bug, I probably can't fix it, but if it's intended and clarifying the docs would be satisfactory, then I'm happy to do so.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.4 (maybe earlier)

With default routing and services configuration create a simple controller with a non-service class like this:

<?php

namespace App\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;

class IndexController extends AbstractController
{
/**
* @Route(name="index")
*/
public function indexAction(A $a)
{
dump($a);

return new Response();
}
}

class A
{
}

Expected result: an exception about wrong argument. Actual result:

Which means that a new instance of a non-DI class is injected.

I investigated a little and found that Symfony\Component\HttpKernel\Controller\ArgumentResolver\ServiceValueResolver does this.

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.4

We're updating the Symfony Demo application to Symfony 3.4 (see symfony/demo#673). Most of the triggered deprecations make sense, but we're struggling with this one:

Why does that deprecation occur? We even exclude the entire Entity/ directory from autowiring:

App\:
resource: '../src/*'
exclude: '../src/{DataFixtures,Entity,Repository,Tests}'
Issue 1:
When trying out Atom 1.0, I was totally digging it until I went to the command line and tried:

ls | atom

And I got a blank document. After some searching I found this discussion thread. Seems that a lot of folks would like this and for me, it is part of my daily workflow.

I searched the issues and pull requests here and couldn't find an issue for this, but please close if this topic has already come and gone.

Cheers and thanks!

Issue 2:
support/4aa96dda9fd511e3961e21f79eba7c86

It'd be nice if piping input into atom were possible.

git diff | atom

Right now this seems to open a second instance of Atom that immediately closes. The data goes nowhere.

This probably belongs in the feature-request arena, but also seems like something to keep track of here. Personally, I think this would be great to have. 🍩

Other reports:

support/e9fab3a2a94a11e39ef7d68ca2b55878

support/ddc261f2a5df11e39bf33f35dc393db2
Issue 1:
Recently stumbled upon https://lgtm.com/projects/g/airbnb/caravel/alerts/?mode=list , and we have a bit of work to do in order to improve code quality.

Historically we've been ignoring the migrations/ folder when linting, and I think we should lint it all and augment the scope of the linter to include that folder.

Issue 2:
superset_hmm.mov

See video where both vertical and horizontal scroll for the table is flashing initially, but is sometimes fixed when we click "Aggregate" and then switch back to "Raw Records". Doesn't always fix it however

How to reproduce the bug

Go to any Superset Table UI and select a column, then scrollbar starts flashing

Expected results

No flashing

Actual results

See video

Environment

(please complete the following information):

browser type and version: Chrome Version 107.0.5304.110 (Official Build) (arm64)

python version: python --version: Python 3.10.8

any feature flags active: none

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.
Issue 1:
The go version is 1.5.1.

Here is the program:

package main

import (
"fmt"
"runtime"
"time"
)

func test2() {
for i := 1; ; i++ {
fmt.Println(i, time.Now())
}
}

func test() {
a := 100
for i := 1; i < 1000; i++ {
a = i*100/i + a
}
}

func main() {
runtime.GOMAXPROCS(2)
go test2()
for {
test()
}
}

Note that I configure two threads to run goroutines.

The main goroutine would block one thread, while the test2() goroutine would run in another thread.

However, the result is that, the test2() runs a bit, but after some random interval, it hangs (do not output anything); the main goroutine continue to run test() without problem.

If I add some function call into the test(), e.g.

func test() {
...
syscall.Getgid()
}

Then the test() and test2() would run in parallel as expected.

I try to do panic after some counts (estimated to be after the test2() hangs) within the loop to call test():

for i := 1; i < 10000000000; i++ {
if i == 1000000 {
panic("hello")
}
test()
}

Then it shows the backtrace:

goroutine 1 [running]:
main.main()
/tmp/tmp.go:30 +0xb1

goroutine 5 [runnable]:
runtime.Gosched()
/usr/local/go/src/runtime/proc.go:166 +0x14
time.Time.Format(0xecd820010, 0x37614ae4, 0x593740, 0x523840, 0x27, 0x0, 0x0)
/usr/local/go/src/time/format.go:431 +0x135
time.Time.String(0xecd820010, 0x37614ae4, 0x593740, 0x0, 0x0)
/usr/local/go/src/time/format.go:401 +0x54
time.(*Time).String(0xc8204977a0, 0x0, 0x0)
<autogenerated>:1 +0xad
fmt.(*pp).handleMethods(0xc820068000, 0xc800000076, 0x0, 0xc820071c01)
/usr/local/go/src/fmt/print.go:730 +0x633
fmt.(*pp).printArg(0xc820068000, 0x5024a0, 0xc8204977a0, 0x76, 0x0, 0xc81ffdb400)
/usr/local/go/src/fmt/print.go:806 +0x4a5
fmt.(*pp).doPrint(0xc820068000, 0xc820071f78, 0x2, 0x2, 0x101)
/usr/local/go/src/fmt/print.go:1254 +0x258
fmt.Fprintln(0x7f18e5d2f000, 0xc820026010, 0xc820071f78, 0x2, 0x2, 0x40b7f0, 0x0, 0x0)
/usr/local/go/src/fmt/print.go:254 +0x67
fmt.Println(0xc820071f78, 0x2, 0x2, 0x5024a0, 0x0, 0x0)
/usr/local/go/src/fmt/print.go:264 +0x73
main.test2()
/tmp/tmp.go:12 +0x17f
created by main.main
/tmp/tmp.go:27 +0x3c
exit status 2

So why test2() goroutine hangs?

Issue 2:
by mklencke:

What steps will reproduce the problem?
1. Try to 'go build' or 'go run' code that imports a package that does not exist, for
example the old "rand" package

What is the expected output?

Successful output of 'go run'.

What do you see instead?

A panic trace

Which compiler are you using (5g, 6g, 8g, gccgo)?

8g

Which operating system are you using?

Linux

Which revision are you using? (hg identify)

54016655b9d7+ tip

Please provide any additional information below.

Simple fix is attached

Attachments:

buildpanic.diff (351 bytes)
Issue 1:
what's the best way to test drag and drop with playwright?

I don't think that they have implemented drag functionality yet, so is there any workaround?

any helps would be appreciated!

Issue 2:
Drag and drop should work with playwright. Using the existing mouse apis should generate working dragstart, drag, and drop events. There should also be new APIs to simulate dropping in external content, and to inspect content dragged from the web page.
Issue 1:
Hi,

From home page, the link to the pdf version of the documentation should be http://flask.pocoo.org/docs/flask-docs.pdf but it's currently unavailable.

If the link is wrong, could you please provide a correct one?

Issue 2:
I found the tutorial rather confusing in how it gives the same name to three different things: the top-level directory of the project, the subdirectory containing all project-specific code (the package directory?), and the main .py script. In many spots in the tutorial, we set variables to the value "flaskr" (in setup.py and in environment variables) and we import from .flaskr as well. Maybe this is common practice in making flask applications or python apps in general, but I think for beginners it might help to rename some of these to make it clearer which "flaskr" is being referenced in setup.py, init.py, environment variables, etc. Thank you.
Issue 1:
Steps to Reproduce

Android studio Build: 3.2.1, AI-181.5540.7.32.5056338, 201810090144,

flutter version: 1.0.0

my code like this:

Widget _titleSection(BuildContext context) {
return Container(
padding: const EdgeInsets.all(32.0),
child: Row(
children: <Widget>[
Expanded(child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
padding: const EdgeInsets.only(bottom: 8.0),
child: Text('Long for us',
style: TextStyle(
fontWeight: FontWeight.b // code completion here

),),
)
],
))
],
),
);
}

After completing the FontWeight.bold code auto change to :

Widget _titleSection(BuildContext context) {
return Container(
padding: const EdgeInsets.all(32.0),
child: Row(
children: <Widget>[
Expanded(child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
padding: const EdgeInsets.only(bottom: 8.0),
child: Text('Long for us',
style: TextStyle(
fontWeight: FontWeight.bold,
))
],
),
);
}

auto deleted

),),
)
],

This caused an error in my code,this is a bug.

today ,I found that it only appeared when I didn't write the new keyword, It still needs fixing

Issue 2:
Flutter (Channel master, v0.11.8-pre.16, on Mac OS X 10.14.1 18B75, locale en-US)

When using SafeArea with true for top and bottom you can get visual artifacts (garbage, flickering, etc) when "nothing" has been drawn in that area. It's particularly more prevalent if you previously allowed Flutter to draw to that space and then use a top/bottom: true statement later.

Screenshot:
Issue 1:
In alpha-36, the templateUrl is relative to the application root url.

@View({
templateUrl: 'app/hero-detail-component.html' // relative to the application root
})

That is fine if everyone is keeping their templates in a template directory. But if you like your template next to the component, you want to specify a url relative to the component.

That would become possible if allowed a url syntax with leading '.'.

In this next example, the template is a sibling of the component class file:

@View({
templateUrl: './hero-detail-component.html' // sibling of the component file
})

This might be appropriate for styleUrls too

@johnpapa agrees.

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

in Edge/IE11 the date is incorrectly formatted with datePipe

Expected behavior

should be formatted by input format

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/mmd5X3YFOyjN3JS1zzOE

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

should work as expected

Please tell us about your environment:

Windows 10

Angular version: 2.0.X

2.0.0

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

IE 11, Edge

Language: [all | TypeScript X.X | ES6/7 | ES5]

all