WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Steps to Reproduce

Install according to directions on https://flutter.io/docs/get-started/install/linux

Note the owner and group are unknown (id is 1024). Changed them to root as they are in the standard android-studio install to attempt to fix.

Problem still is there. Note the bin folder is not available to anyone but owner 1024 (or root if you attempt to fix install).

bessermt@bessermt-Latitude-E6440 /opt/flutter/bin/cache/dart-sdk $ ls -al
total 40
drwxr-xr-x 5 root root 4096 Dec 4 09:32 .
drwxr-xr-x 6 root root 4096 Dec 4 09:33 ..
drwx------ 3 root root 4096 Nov 29 14:16 bin
-rw-r--r-- 1 root root 47 Nov 19 21:36 dartdoc_options.yaml
drwxr-xr-x 2 root root 4096 Nov 19 21:42 include
drwxr-xr-x 26 root root 4096 Nov 19 21:42 lib
-rw-r--r-- 1 root root 2500 Nov 19 21:36 LICENSE
-rw-r--r-- 1 root root 936 Nov 19 21:36 README
-rw-r--r-- 1 root root 41 Nov 19 21:42 revision
-rw-r--r-- 1 root root 14 Nov 19 21:42 version
bessermt@bessermt-Latitude-E6440 /opt/flutter/bin/cache/dart-sdk $

Logs

bessermt@bessermt-Latitude-E6440 /opt/flutter $ flutter doctor -v

/opt/flutter/bin/flutter: line 177: /opt/flutter/bin/cache/dart-sdk/bin/dart: Permission denied

bessermt@bessermt-Latitude-E6440 /opt/flutter $

Issue 2:
Launching lib/main.dart on iPhone 8 Plus in debug mode...

No application found for TargetPlatform.ios.

Is your project missing an ios/Runner/Info.plist?

Consider running "flutter create ." to create one.

Exited (sigterm)

I want debug with VSCode whih existing project ，But It get this error,

but ,I use XCODE is is work
Issue 1:
Compiling a custom Bootstrap via the http://getbootstrap.com/customize/ website feature generates boostrap.css with selectors in an incorrect order.

I found this out when trying to figure out why the DIV modal-backdrop was appearing black instead of transparent.

As we know.. the order matters!

Custom*:

.modal-backdrop.in line:5094

.fade.in line:5894

http://getbootstrap.com/javascript/#modals

.modal-backdrop.in line:5665

.fade.in line:2366

*the only setting I changed for 'custom' was setting @grid-float-breakpoint to 920px

Issue 2:
I noticed that if you use customizer, this block of css is compiled to the end of bootstrap.css instead of normally around line 2800:

.fade {

opacity: 0;

-webkit-transition: opacity 0.15s linear;

transition: opacity 0.15s linear;

}

.fade.in {

opacity: 1;

}

.collapse {

display: none;

}

.collapse.in {

display: block;

}

.collapsing {

position: relative;

height: 0;

overflow: hidden;

-webkit-transition: height 0.35s ease;

transition: height 0.35s ease;

}

This causes issues such as modals with fade to have a completely black background (as ,fade.in is after .modal-backdrop.in)

I am not sure if this is an issue with other css blocks as well but so far I haven't noticed any other effects except for this one.
Issue 1:
HC opened SPR-7728 and commented

CollectionToCollectionConverter returns the original source object if the collection is empty. Relevant source code is attached (see convertEmptyVector_shouldReturnEmptyArrayList unit test)

Best Regards

Horatiu

Affects: 3.0.4

Attachments:

CollectionToCollectionConverterTest.java (1.44 kB)

Issue Links:

#13198 MapToMapConverter invalidly returns source map for empty maps ("is duplicated by")

Referenced from: commits 58d68ce

Backported to: 3.0.7

Issue 2:
Daniel Potter opened SPR-2483 and commented

When DEBUG logging level is turned on the toString() method of RegexpMethodPointcutAdvisor is invoked prior to the setPatterns() method being called to populate the patterns property of the advisor. The toString() method invokes getPointcut() which creates the pointcut and attempts to set the patterns used on the pointcut. The setPatterns() method includes an Assert.notEmpty() on the patterns argument. When this assertion is fired (again, this only happens with a DEBUG log level), the patterns property has not yet been set, which causes the assertion (and therefore the bean creation) to fail. A workaround for this is to use constructor-arg injection to set the patterns and advice.

Affects: 2.0 RC3

Issue Links:

#7130 Simple RegexpMethodPointcutAdvisor configuration failing in 2.0-rc3 ("duplicates")
Issue 1:
This is partly inspired by the discussions in #12292 and #12322.

The @generated macro makes it much easier to generate specialized functions. Hence, I think it might be time for us to upgrade our functor system. So I wrote a small program for concept proof:

# functors specialized based on symbol
immutable SFunc{N,Sym} <: Base.Func{N} end

@generated function call{S}(f::SFunc{1,S}, x)
:($(S)(x))
end

# a map function that takes advantage of specialized fun
function mymap(f::Function, x)
if isgeneric(f) && is(f.env.module, Base)
map(SFunc{1,f.env.name}(), x)
else
map(f, x)
end
end

# Benchmark
function benchmark(X::Array, ntimes::Int)
# warming
map(abs2, X)
mymap(abs2, X)
abs2(X)

# measuring
gc()
gc_enable(false)
@time for i = 1:ntimes map(abs2, X) end
@time for i = 1:ntimes mymap(abs2, X) end
@time for i = 1:ntimes abs2(X) end
gc_enable(true)
end
benchmark(randn(1_000_000), 10)

Result:

444.635 milliseconds (20000 k allocations: 381 MB)
46.907 milliseconds (20 allocations: 78126 KB)
49.847 milliseconds (20 allocations: 78126 KB)

So, it looks like it can dramatically improve the performance of many higher-level functions (e.g. map, reduce, broadcast, etc), making their performance on par with manually specialized ones, without even changing the external interface. Also, a big advantage of this as opposed to the current system is that it allows arbitrary named function to be used (instead of just a prescribed list of functions).

I am proposing:

Introduce the new functor system with a PR (I can do this).

Have the operation-dependent promotion (#12292) depend on the new functor.

I think the utility of this specialized functor system is far beyond better type promotion.

By keeping Func{N} as an abstract type, and define a bunch of type alias like below, most of the client codes that depend on old functors would still be working as expected.

typealias AddFun SFunc{2, :+}
typealias AbsFun SFunc{1, :abs}
# ...

cc: @timholy

Issue 2:
make testall after latest git pull results in a process that stops at testing cmdlineargs as in

...
error (2) | 1.12 | 0.00 | 0.0 | 11.33 | 1103.82
cartesian (2) | 0.11 | 0.02 | 17.8 | 1.14 | 1103.82
asmvariant (2) | 0.14 | 0.00 | 0.0 | 2.30 | 1103.82
osutils (2) | 0.02 | 0.00 | 0.0 | 0.23 | 1103.82
channels (2) | 10.55 | 0.70 | 6.6 | 428.04 | 1114.27
iostream (2) | 0.14 | 0.00 | 0.0 | 2.80 | 1114.27
fft (2) | 19.29 | 0.87 | 4.5 | 723.95 | 1118.11
dsp (2) | 6.26 | 0.24 | 3.8 | 266.36 | 1118.11
examples (2) | 13.79 | 0.47 | 3.4 | 648.76 | 1118.11
distributed (4) | 85.59 | 0.00 | 0.0 | 5.12 | 1003.38
cmdlineargs (5) | 111.27 | 0.07 | 0.1 | 65.80 | 952.91

The system monitor shows there is no activity on any CPU apart from baseline. I force a halt with ctrl+c. Same thing repeated twice in a row reliably. and in each case cmdlineargs was running on a different worker.

In

Julia Version 0.6.0-pre.alpha.250
Commit 43fb9f0* (2017-03-25 05:22 UTC)
Platform Info:
OS: Linux (x86_64-suse-linux)
CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
Issue 1:
Hi,

Love the framework. Using it for my company's developer website.

The Bootstrap documentation has this nice element for creating callouts, e.g. "Alternate elements" in the Italics section of the CSS page.

It doesn't look like this is part of the framework. It's a very useful feature and I would love to see it officially incorporated and expanded upon.

Issue 2:
I really like the new callouts in the docs, but ask myself why they are reserved for the docs?

They look way better than the default alerts, imo they can be replaced by callouts.
Issue 1:
I noticed that we may be using memcpy unsafely in some places. e.g. unsafe_copy! in array.jl uses memcpy, but if you do e.g. copy!(A,A) then the source and destination data overlap. (This is unlikely to fail in practice, but strictly speaking violates the memcpy spec.)

Would be good to do an audit of all memcpy uses in Julia and replace them with memmove if there is any chance of overlapping data. The performance impact should be negligible.

Issue 2:
The following code flip-flop between the two indentations when indenting the whole file. Note that the second screenshot has a leading space while the first one doesn't.

(1)
Issue 1:
It is often the case that multiple CSS classes are used for an element, and sometimes they are dynamically generated. In such situations the client code needs to concatenate them into a string

const classes = getCSSClasses();
return (
<div className={classes.class1 + " " + classes.class2}> foo </div>
);

I always felt the need to be able to pass the classes as an array:

const classes = getCSSClasses();
return (
<div classes={[classes.class1, classes.class2]}> foo </div>
);

In addition to the convenience of such a property, maybe it could help with performance, in the sense that equality could be checked before string concatenation, and only do the concatenation if the element needs to be rendered.

The drawback here is of course the mutable nature of an array. I imagine performance would be better if the array would be immutable. So maybe this new property could work only with some immutable array implementation. Or frozen arrays.

In short, I want such a property for convenience, but maybe it also has potential for some performance improvements.

Issue 2:
Hi!

I usually am in the situation where I have to write code like this:

return (
<div className={classnames(['...', '...'])}>
Children
</div>
);

This seems simple, but when you have more elements that need dynamic classes, it gets tedious and pretty hard to read. I propose the following thing:

When className attribute is evaluated, how about running it through classnames before rendering the HTML?

This means that the className attribute should allow Array<string>, {[string]: boolean} and string types and would become much simpler to write code.

What do you guys think?
Issue 1:
As mentioned in numpy/numpy/issues/1177, Chirp Z-transform and special cases of it have been submitted to SciPy under public domain by Paul Kienzle and Nadav Horesh: [SciPy-user] Chirp Z transform

The special cases of CZT are zoom FFT and "scaled FFT" (not sure what that does). DFT is also a special case of CZT, so if you call czt(data) with the default options, it's an FFT, but faster for prime sizes because of Bluestein's algorithm, useful in resample for instance? (#3956):

x = rand(42073) # prime length

allclose(czt(x), fft(x))
Out[37]: True

timeit czt(x)
10 loops, best of 3: 53.9 ms per loop

timeit fft(x)
1 loops, best of 3: 2.35 s per loop

2.35 / 53.9e-3 # speedup factor
Out[40]: 43.59925788497217

@stefanv said:

Thank you both for the contribution! I've reviewed the code and think

it should be included in SciPy. Would someone else like to have a

look before I commit it?

Where would the best place for this be? scipy.fftpack?

I think it makes sense to put it in scipy.fftpack, too, though that doesn't have any classes, just functions. (Unless it should all be put in numpy, but I'm guessing zoom FFT is too specialized for that?)

Issue 2:
>>> import numpy as np
>>> from scipy import sparse
>>> sparse.hstack( (sparse.csr_matrix([[1,2]]), np.array([[]])) )
Traceback (most recent call last):

File "<ipython-input-27-f65b402ca75d>", line 1, in <module>
hstack( (csr_matrix([[1,2]]), np.array([[]])) )

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 423, in hstack
return bmat([blocks], format=format, dtype=dtype)

File "C:\Python27\lib\site-packages\scipy\sparse\construct.py", line 535, in bmat
raise ValueError('blocks[:,%d] is all None' % bcol_lengths.argmin())

ValueError: blocks[:,1] is all None

The same error occurs with all sparse matrix formats and with vstack.
Issue 1:
[ x] feature request

Current behavior

Angular (and all its dependencies) are compiled down to ES5

Expected behavior

Compile everything down to ES2015. I (and more and more Angular users) am only supporting evergreen browsers. Those all have 95%+ support of es6, heck most have even es2016, and es2017 features are getting close too!

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

Using ES6 over es5 has the following:

smaller runtime

less (to none) polyfills

faster execution. (I know not everything is faster now, actually for a lot of features it's actually opposite, but browsers are improving really fast, an ES6 support is getting faster and faster. This is high on the agenda of browser vendors)

did I mention SMALLER runtime yet?

easier to shake (I'm not too sure on this though.)

the happy feeling of using modern, up to date stuff

much smaller source maps, so faster for development too.

more readable code in the runtime

To be clear, what I want is an Angular runtime that targets ES2015+ instead of ES5. I know I can do this for my portion of a project, but what I want is to ship an entire ES6 app to the browser. When your target is modern browsers, you should ship modern JS.

Issue 2:
With v4, angular starts to ship ES6 code as part of its npm packages. However, Angular's compiler has no option to output ES6 code, only TypeScript code (for AOT) or ES5 code (for JIT).

Also, our metadata collection is broken for JIT and native ES6 mode (see #15325).

Add an option to allow to use ES6 in both cases.
Issue 1:
I use Ctrl+Enter and Ctrl+Shift+Enter to insert lines above and below respectively in Visual Studio all the time. It drives me a bit bonkers that the shortcuts are swapped in VSCode.

Given the name "Visual Studio Code" implies somewhat of a derivative of "Visual Studio", could you please change the keyboard shortcuts for these two commands to be consistent with Visual Studio?

Issue 2:
From @alefragnani on October 24, 2015 0:31

How could I get some language/colorizer settings?

I'm creating an extension to add personalized comments, and would like to get the line comment language/colorizer setting (//, #, etc) from the current language.

I did take a look at vscode-comment demo and export interface ILanguage, but didn't find how to read the setting.

Thanks in advance

Copied from original issue: Microsoft/vscode-extensionbuilders#57
Issue 1:
Summary:

Some code which installs and runs successfully actually fails with an error when used with deno compile.

Details:

Trying out deno compile for task running tool project: https://deno.land/x/dnit

Using current deno version 1.7.5

$ deno compile --allow-read --allow-write --allow-run --unstable https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Check https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Bundle https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Compile https://deno.land/x/dnit@dnit-v1.11.0/main.ts
Emit dnit

$ ./dnit
error: ReferenceError: normalize is not defined
at file://$deno$/bundle.js:3749:20

The same code runs ok when used with deno install:

$ deno install --allow-read --allow-write --allow-run --unstable -f --name dnit https://deno.land/x/dnit@dnit-v1.11.0/main.ts
✅ Successfully installed dnit
/home/pault/.deno/bin/dnit
$ dnit --version
dnit 1.11.0

deno 1.7.5 (release, x86_64-unknown-linux-gnu)
v8 9.0.123
typescript 4.1.4

By the looks of it it's a duplicate of keywords/issues:

String.prototype.normalize()

#1968

Issue 2:
thread 'worker-0' panicked at 'not yet implemented: Worker are currently not supported in standalone binaries', /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/deno-1.15.3/standalone.rs:208:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

deno v1.15.3
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

I tried to reproduce this in the REPL, but 7.17.10 isn't an option there and that's the only version where I've seen this happen.

Configuration file name

babel.config.js

Configuration

No response

Current and expected behavior

I have this simple method that produces a get function that will be used to build an accessor. It' simple enough that up through 7.17.8 it came out of the transpiler with only whitespace changes:

makeGetter() {
const wrapper = this;
return function get() { return wrapper.getInfo( this ); };
}

After updating @babel/core from 7.17.8 to 7.17.10 it's getting transpiled to this:

makeGetter() {
return function get() {
return this.getInfo(this);
};
}

Environment

@babel/core - 7.17.10

node v16.14.0

Possible solution

No response

Additional context

No response

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

Reproduced in Babel REPL.

Configuration file name

No response

Configuration

No response

Current and expected behavior

Enabling babel-plugin-minify-dead-code-elimination plugin destroys this scope for arrow functions inside classes.

The var _this = this workaround should not be eliminated as it is absolutely necessary for the this scope to work in locally defined arrow functions.

Environment

Babel version v7.17.11

Possible solution

No response

Additional context

I narrowed the problem down locally to @babel/traverse v7.17.10. By reverting that package to v7.17.9 this problem does not occur.
Issue 1:
The Glyphicons font files that come in with the Bootstrap 3.0.0 archive don't work at all, no matter the browser. As far as I could tell those files are corrupted. I downloaded the files you are using on http://getbootstrap.com/ for example and they worked ok.

Issue 2:
When using a customized version of Bootstrap 3.0 the Glyph icons don't work. The font file sizes differ from the "normal" version.
Issue 1:
Here is a simple example:

function f(s: "foo" | "bar") {
if (s == "baz") {
...
}
}

As you see, there is a typo in "baz", but tsc doesn't catch that. On the other hand, if you try to s == 123, tsc will say that a string cannot be compared with a number.

Issue 2:
type foo = 'hey' | 'nay';

switch (<foo>undefined) {
case 'boom': console.log('never the case'); break; // expected unreachable code, actual no problem
}
Issue 1:
TypeScript Version:

1.8.2

Code

interface Foo {
property: (boolean | { bar: number })
}

var foo: Foo = {
property: { bar: 123 }
};

var p = foo.property;
if (typeof p === 'object') {
// This works fine!
console.log(p.bar); // Prints "123"
}

if (typeof foo.property === 'object') {
// This line produces the following compilation error:
// "Property 'bar' does not exist on type 'boolean | { bar: number; }'"
console.log(foo.property.bar);
}

Expected behavior:

I expected if (typeof foo.property === 'object') { to be a valid type guard.

Actual behavior:

It's not.

Issue 2:
I just found out that property access expressions doesn't work on type predicate functions and instanceof type guards.

class A {
propA: number;
}

class B {
propB: number;
}
class C {
propC: A;
}

declare function isA(p1: any): p1 is D;

interface D {
a: A | B
b: A | C;
}

let d: D;
if (isA(d.b)) {
d.b.propA; //error
}

function foo(d: D) {
if (d.b instanceof A) {
d.b.propA // error
}
}

I'm not sure if there is an easy fix on this problem. We are provided just a symbol when narrowing. That symbol represent the left most expression and then we walk up the if statement. There is no easy way of controlling symbol by symbol on each namespace in a property access expression in the if-statement-body. Because there is no info about the property access expression provided in getTypeOfSymbolAtLocation(symbol: Symbol, node: Node).

I also found that type assertion expressions are also not working in type predicate functions. But I will land a fix on that.

if (isA(<A>union)) {
a = union;
}
if (isA(union as A)) {
a = union;
}
Issue 1:
Test Case:

interface Overload {

foo(id:"special", value:number):void;
foo(id:string, value:any):void;

}

class Bug {

private overload:Overload;

public call():void {
this.overload.foo("special", "");
}

}

Compile with tsc. Observe that there is no error message. Shouldn't the compiler complain about the fact that this.overload.foo("special", "") is an incompatible call. E.g. "" is not assignment compatible to number.

Issue 2:
Hi, consider this bit of code:

class Bar {
public bar: string;
}
interface IFoo {
doFoo(type: any, bar: any): void;
doFoo(type: "Quux", bar: Bar): string;
}

We use it like this:

var foo: IFoo;
var result:string = foo.doFoo("Quux", new Bar()); // fine

However, while still specifying "Quux", if we pass any type other than new Bar() for the second argument, the compiler falls back to the non-overloaded method:

// Error TS2011: Cannot convert 'void' to 'string'.
var result2: string = foo.doFoo("Quux", "bar");

I think this is a bit unfortunate. We are missing an opportunity to verify that the additional arguments also match the overloaded signature.

Ideally the following

foo.doFoo("Quux", "bar");

should generate error TS2082: Supplied parameters do not match any signature of call target

See further discussion on the old codeplex site.
Issue 1:
My superset is installed on my AWS EC2 instance in:

/home/ec2-user/.pyenv/versions/2.7.12/lib/python2.7/site-packages

And my SSL is serving my /var/www/ securely on this same server. I created a webpage to display the dashboard in an iframe but, cannot get it to appear because of a mixed-content warning - not being able to display insecure content on a secure page.

How would I display my dashboards on a such a secure page when my python is in the server user account but, my website is in a SSL-enabled web area?

Thanks for any help!

Issue 2:
Hello I am trying to add HTTPS to Caravel... I made a hack:

/usr/local/bin/caravel (VPS, Debian 8 64bits)

cmd = (
"gunicorn "
"-w {workers} "
"--timeout {timeout} "
"--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt "
"--keyfile=/etc/ssl/private/server.key "
"-b 0.0.0.0:{port} "

It works. But I want to pass with arguments the values... in future updates I don't want to repeat the task.

I modify the caravel binary, I add to options:

@manager.option(
'-t', '--timeout', default=config.get("CARAVEL_WEBSERVER_TIMEOUT"),
help="Specify the timeout (seconds) for the gunicorn web server")
@manager.option(
'-c', '--certfile', default="",
help="Specify certificate path of https for the gunicorn web server")
@manager.option(
'-k', '--keyfile', default="",
help="Specify key path of https for the gunicorn web server")

And:

else:
cmd = (
"gunicorn "
"-w {workers} "
"--timeout {timeout} "
"--certfile={certfile} "
"--keyfile={keyfile} "
# "--certfile=/etc/ssl/certs/7524b7242d4e83b4.crt "
# "--keyfile=/etc/ssl/private/server.key "
"-b 0.0.0.0:{port} "
#```

But didn't works.

The idea to post this issues is share the hack and if someone wants to able https in a better way help me to make a better hack and pass arguments from command line.