WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
There're some duplicate declarations, for instance:

isValidDirective (both in directive_resolver.ts and runtime-metadata.ts, in case #4548 gets merged)

flattenList (both in runtime-metadata.ts and proto_view_factory.ts)

It'll be nice if we extract them to separate file and include them wherever they are required.

If it makes sense I can take this one.

Issue 2:
I'm submitting a ... (check one with "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

Doesn't seem possible to do it in an easy way without not use framework core stuff

Expected behavior

To be able to determine by an asynchronous condition (a condition that will be resolved later) which component to load in a route.

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

I'd say the following is a very common behavior expected on any medium size app:

Let's say you have a dashboard (just after you login). You wanna keep 2 different components UserDashboard and AdminDashboard (for not filling your template code with *ngIf), but that condition cannot be resolved immediately because the role comes from an API, so then you cannot "right away" conditionally pass one component or another to a specific route.

This doesn't seem to have an answer that implies not to compile and load a component by yourself.

Please, check out http://stackoverflow.com/questions/39688929/angular-2-how-to-conditionally-load-a-component-in-a-route-asynchronously

Angular version: 2.0.1
Issue 1:
The following code produces an "Illegal instruction (core dumped)" when run (on linux/x86_64, both in debug and release mode):

fn main() {
let x = T {f: Box::new([None])};
}

struct T {
f: Box<[Option<T>; 1]>
}

Issue 2:
Example program:

use std::mem;

struct AlignmentStruct {
ptr: *mut [AlignmentStruct, ..1]
}

fn main() {
println!("{}", ::std::mem::align_of::<AlignmentStruct>());
}

Error message:

rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.
Issue 1:
Hi community,

I am glad to announce that ShardingSphere will provide an independent SQL parser engine for parsing SQLs!

I believe you will have some of the scenarios or use the SQL parser engine to get a parsed AST. From now on, you will have another option for your cases. Here are some of the advantages for ShardingSphere parser engine.

Advantages

Mostly perfect SQL statements supported for MySQL database

Mostly perfect SQL statements supported for PostgreSQL database

Basically SQL statements supported for SQLServer database

Basically SQL statements supported for Oracle database

Basically SQL statements supported for SQL92

SQL parsed result cache for the parsing performance

AST parsed result and SQLStatement parsed result are provided meanwhile

Simple extension approach for SQLStatement visitors

Simple supplement approach and for SQL definition

Continuous improvement for the much better feature in the future.

5.x release will include this one, please wait for our good news! 😉

Issue 2:
Bug Report

Scene: 2 libraries, two tables

Yesterday I did a test, I opened 4 threads, each thread inserts 1 million pieces of data, about 1 hour and a half of insertion, check the data, the data in the library has no problem, the id is not repeated, but in There is a problem when querying, please see the code.

Query password 0 has a record, a total of 12, this is because I started three times when testing, so there will be 12 records, id is not repeated, please see the database record:

Database 0: user_info_0

user_info_1:

Database 1: user_info_0：

user_info_1:

Just 12 records, so once again stressed that there is no problem with the warehousing data, now look at the query results:

The sharding key is user_id, but with time query, sql statement prints out, check four tables, sql statement is no problem.

And the following four data appear user_id: 279023793651843070, this id is not a record in the database

The result is that the user_id is duplicated, using the mybatis framework, please take the time to reply as soon as possible, thank you.
Issue 1:
Just a couple of (seeming) bugs I ran into doing some Arbitrary-precision range stuff on rosettacode:

System: Windows 8

Julia: Latest Windows Binary v1.2 from March 8

Int128 issues: related to #959 ?

julia> typemax(Int128)
00000000004294967295

julia> [int128(2)^i-1 for i = Base.PRIMES[2:20]]
19-element Int128 Array:
7
31
127
2047
8191
131071
524287
8388607
536870911
2147483647
004294967295
0004294967295
0004294967295
000004294967295
0000004294967295
000000004294967295
0000000004294967295
00000000004294967295
00000000004294967295

Is 4294967295 the actual typemax? The leading zeros are at least weird.

Issue 2:
I get the following:

julia> int128(1)
UNREACHABLE executed!
Stack dump:
0. Running pass 'X86 DAG->DAG Instruction Selection' on function '@dec'
Aborted

Might be an issue in LLVM, or we might be doing something wrong. Complex128 works, so wide integer arithmetic is the problem.
Issue 1:
Environment

Windows build number:
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable):
Version: 0.5.2681.0

Any other software?

Steps to reproduce

first, open the windows terminal and then open the azure cloud shell tab, you will see someting like this:

exactly, some words are missing after the word "enter"

then, when I maximize the window and reopen that tab, the correct sentence will show:

Expected behavior

see the full sentence

Actual behavior

some words disappeared

Issue 2:
Description of the new feature/enhancement

My windows version is 1803, but I want to try this cool terminal. So how soon can it come into reality?

Proposed technical implementation details (optional)
Issue 1:
I am not asking for a new feature in the APIs but for a new release type: CUDA+Linux ARM64.

At the moment there are only x86_64 wheels at https://storage.googleapis.com/jax-releases/jax_cuda_releases.html.

I'd like to request for aarch64 ones too!

Thank you!

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:
Version: 2.0.0-beta.7

I'm trying to create a project that uses ES6 style components with Webpack and Babel.

.babelrc

{ "presets": ["es2015"], "plugins": [ "angular2-annotations", "transform-flow-strip-types" ] }

This works fine if I only reference components that are defined somewhere within my project's main directory or a sub-directory. For instance, I've successfully created an App and MyButton component, and App can import and use MyButton just fine. However, if I create a duplicate project, transpile it's src with the same Babel configuration, and attempt to import the duplicate Mybutton into the original project's App component, I get obscure errors. I've also tried to import the duplicate MyButton component without transpiling via Babel. This should work, as it is identical, but I still get errors...

I'm using webpack-dev-server to serve a basic bundle, and I've brought in what I believe to be the minimum necessary Angular2 dependencies in my index file.

index.js

import 'angular2/bundles/angular2-polyfills';
import 'rxjs';

import { bootstrap } from 'angular2/platform/browser';
import App from './components/App/App';

bootstrap(App);

MyButton.js

import { Component } from 'angular2/core';

class MyButton {
}

export default Component({
selector: 'my-button',
template: `
<div
class="my-button"
(click)="onClick()">
{{label}}
</div>
`,
inputs: ['label', 'onClick'],

})(MyButton);

App.js

// This import works
import MyButton from '../MyButton/MyButton';

// This import doesn't work
// import { MyButton } from '../../../../uxt/lib/components/MyButton/MyButton';

import MyList from '../MyList/MyList';
import { Component } from 'angular2/core';
import { HTTP_PROVIDERS, Http } from 'angular2/http';

export class App {
constructor(http: Http) {
this.loadData = this.loadData.bind(this);
this.clearData = this.clearData.bind(this);
this.http = http;
this.items = [];
}
setItems() {
this.http.get('http://jsonplaceholder.typicode.com/posts').subscribe(res => {
this.items = res.json();
});
}
loadData() {
this.setItems();
}
clearData() {
this.items = [];
}
}

export default Component({
directives: [MyButton, MyList],
providers: [HTTP_PROVIDERS],
selector: 'my-app',
template: `
<my-button
label="Load Data"
[onClick]="loadData">
</my-button>
<my-button
label="Clear Data"
[onClick]="clearData">
</my-button>
<my-list
[items]="items">
</my-list>
`,
})(App);

Issue 2:
As of 1.14-dev.7.0 Dart SDK ships a way to suppress dartdocs for chosen parts of the code via a special <nodoc> comment. We should use it to suppress docs for duplicates caused by reexporting.
Issue 1:
Environment info

Operating System:

Linux Mint 17.3 3.19.0-32-generic

Tensorflow Version 0.12.0-rc0 (https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.12.0rc0-cp34-cp34m-linux_x86_64.whl)

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)

tf.split_v(tf.placeholder(tf.float32, shape=[10, 32, 32, 3]), [3,7], 0)

The result is of shape (?, ?, ?, ?).

However, when using split for equal length splits it shows the resulting shape:

tf.split(0, 2, tf.placeholder(tf.float32, shape=[10, 32, 32, 3]))

Issue 2:
The new split_v function introduced in 0.12rc0 does not correctly predict the shapes of the resulting tensors when the original tensor has an unknown dimension, resulting on the split dimension being of unknown size. For instance:

tensor = tf.placeholder(tf.float32, [None, 12])
parts = tf.split_v(tensor, [6, 4, 2], split_dim=1)

This results in three tensors, all with shapes [?, ?], instead of the expected [?, 6], [?, 4] and [?, 2]. While at runtime the resulting tensors are of the right size, this makes it more difficult to debug the code during graph definition.

EDIT: This also creates problems when combined with scan. Because scan expects fn to return tensors of the same shape as the initializers, it forces the use of a reshape just to clear the 'unknown' dimension.
Issue 1:
The Typography demo page is not in the menu under the component demos tab, even though the page exists. I've found it from the typography api page.

Adding it to the menu will make this content available for people!

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

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

Hi @oliviertassinari,

Thank you for writing this library! It's definitely one of my favorite sources for learning how to write React components.

Minor question - I'm reading the CSS-in-JS section of the v1 docs, and correct me if I'm wrong, I think I see 2 definitions of "higher-order component"...

Definition 1

We use the withStyles higher-order component to inject an array of styles...

Definition 2

API

withStyles(styles, [options]) => Higher-order Component

If I understood this correctly, the docs are saying that withStyles is a HOC that returns a HOC?

I think the React docs on HOCs seem to prefer the 1st definition; preferring instead to call the returned object an EnhancedComponent.

I'm not too worried about this personally, but I think this part of the docs may be confusing for those unfamiliar with the HOC term.

<aside>I don't personally resonate with the React official definition... I think it's confusing that React Components can be rendered but Higher-order Components can't; but this definition seems to be standard now so I've gotten used to it.</aside>

Thoughts?
Issue 1:
I'm having issues building the qrcode-react library with next build. I get the following error:

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

Expected Behavior

The project should build.

Current Behavior

The project does not build. Run npm run dev and it will run in development. Run npm run build and it fails to build for production with the following error:

{ Error: commons.js from UglifyJs
Unexpected token: name (QRCode) [commons.js:9424,6]
at /Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/next/dist/server/build/index.js:183:21
at emitRecords.err (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/Compiler.js:269:13)
at Compiler.emitRecords (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/Compiler.js:375:38)
at emitAssets.err (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/Compiler.js:262:10)
at applyPluginsAsyncSeries1.err (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/Compiler.js:368:12)
at next (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at Compiler.applyPluginsAsyncSeries1 (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/tapable/lib/Tapable.js:222:13)
at Compiler.afterEmit (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/Compiler.js:365:9)
at require.forEach.err (/Users/joncursi/Sites/joncursi/next-uglify-error/node_modules/webpack/lib/Compiler.js:354:15)
errors:
[ 'commons.js from UglifyJs\nUnexpected token: name (QRCode) [commons.js:9424,6]' ],
warnings: [] }

Steps to Reproduce (for bugs)

Clone the reproduction repo: https://github.com/joncursi/next-uglify-error

npm install

npm run build

You'll see the error.

next@4.2.2

Issue 2:
Issue 1:
by arnold.angerer:

Running all.bash on fails on Mac.

%%%% making prof %%%%

make -C prof install
quietgcc -I"/Users/zeroc8/go/include" -ggdb -O2 -c
"/Users/zeroc8/go/src/cmd/prof/main.c"
quietgcc -o gopack -L"/Users/zeroc8/go"/lib ar.o -lmach -lbio -l9 -lm
cp gopack "/Users/zeroc8/go/bin"/gopack
cp gopprof "/Users/zeroc8/go/bin"/gopprof
quietgcc -o 6l -L"/Users/zeroc8/go"/lib asm.o data.o dwarf.o elf.o enam.o go.o
ldelf.o ldmacho.o ldpe.o lib.o list.o macho.o obj.o optab.o pass.o pe.o prof.o span.o
symtab.o -lmach -lbio -l9 -lm
ld: duplicate symbol _elfstrsize in symtab.o and obj.o for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [6l] Error 1
make: *** [6l.install] Error 2

Which operating system are you using?
Mac OS X 10.6.8 (10K540) (64bit)
Kernel-Version: Darwin 10.8.0

Which revision are you using? (hg identify)
443be59de1ba tip

Please provide any additional information below.
XCode 4 installed
GoIDE installed (works)

Issue 2:
by paulo.jpinto:

What steps will reproduce the problem?
1. import path
2. make use of path.DirSeps

What is the expected output?

I am expecting the following condition to hold, path.DirSeps = '\\'

What do you see instead?

I get path.DirSeps = '\/'

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

8g

Which operating system are you using?

Windows XP SP3

Which revision are you using? (hg identify)
The gowin32_2011-01-12 release.

Please provide any additional information below.

Although the internal Win32 API supports forward (/) and backward slashes (\) as
pathname separators, by convention backward slashes are used and are expected by the
majority of Windows developers.
Issue 1:
This issue has been bouncing around a bit; basically, on my modal dialogs, I see a bit of "flicker" (the content rapidly appearing/disappearing) when hiding or unhiding the dialog.

I was able to capture some of it in a screen capture:

https://vimeo.com/73808307

It is most visible when closing the dialog.

This is on Mac 10.7.5 and Chrome 29.0.1547.65.

Issue 2:
Maybe it would be better if the reference was to the entire width and would not be underlined when the mouse?

a.accordion-toggle {
display: block;
}
a.accordion-toggle:hover {
text-decoration: none;
}
Issue 1:
Version

2.6.10

Reproduction link

https://github.com/wxkcoder/bugs_demo

Steps to reproduce

在ios10.3.3 浏览器safiri环境下运行 vue版本2.6.10 vue-router版本3.0.6

1.页面a通过this.$router.push 的方式跳转到页面b

2.页面b引用的一个自定义组件c

页面b代码

<style scoped>
.content{
height: 2rem;
background: #cccccc;
font-size: 0.4rem;
}
</style>
<template>
<bug1com>
<div class="content">我是slot部分 无法触发父级的touchstart事件</div>
</bug1com>
</template>
<script>
import bug1com from '../../components/bug1com'
export default {
data () {
return {
}
},
components: {
bug1com
}
}
</script>

自定义组件c代码

<style>
.box{
padding: 0.2rem 0.2rem 2rem;
background: #42b983;
font-size: 0.4rem;
}
</style>
<template>
<div class="box" @touchstart="onTouchStart">
我是组件盒子部分 绑定了touchstart事件 触发时间：{{txt}}

<slot></slot>
</div>
</template>
<script>
export default {
data () {
return {
txt: ''
}
},
methods: {
onTouchStart (e) {
this.txt = new Date().getTime()
}
}
}
</script>

点击 slot的内容 无法触发 外层盒子的touchstart事件

但是 直接访问该页面的话 可以触发

然后将vue版本 切到2.5.22后 无此问题

注：只在ios10.3.3版本 发现有这个问题 其他手机型号暂未发现

What is expected?

点击 slot的内容可以触发 外层容器的touchstart事件

What is actually happening?

不触发

ios 10.3.3版本

Issue 2:
Version

2.6.0-beta.1

Reproduction link

https://codepen.io/frlinw/pen/OreZMz

Steps to reproduce

Click on "Click me"

What is expected?

demo with v2.5.22 show the expected behavior: https://codepen.io/frlinw/pen/XoLYMR

the "Dropdown" component should not be able to handle a click event which is supposed to create it

What is actually happening?

the Dropdown is automatically closed because it handles the click event
Issue 1:
This is a fork from #17874 because the use cases for transparent view is a bit different:

When using a FlutterView which intrinsic sizing, the resize operation causes the contents to be re-rendered. This "flash" is quite visible if the background of the view is black. The flash itself is being tracked here: #19189

Customer dream wants to show background set in a native container through the flutter view. For instance, you can imagine a text box being laid on top of a "wallpaper". Setting this wallpaper in native container + in Flutter view would lead to hard to control artifacts such as mismatched seams.

Certain widgets such as card have implicit margins. This causes a black border to be visible around the card.

Issue 2:
In engine, the screen is filled with SK_ColorBLACK. This makes it impossible to use FlutterView as a transparent overlay, since canvas clearing is in the hands of the engine instead of the flutter application.

I've solved this temporarily by punching a hole in the Skia canvas by drawing a rectangle with the paint new Paint()..blendMode = BlendMode.clear; using a BoxDecoration and a BoxPainter, but this isn't very intuitive.

I've also hit some Android specific snags. It would be great if FlutterView had a method named useAsOverlay that calls setZOrderOnTop(true) and getHolder().setFormat(PixelFormat.TRANSLUCENT). Right now my Android code depends on FlutterView being a SurfaceView, but I'm not entirely confident that it'll remain that way.
Issue 1:
There is now a bug in the Javascript highlighter when extending a string over multiple lines using backslash at the end.

var moo =

'finefine

notfinenotfine';

Issue 2:
From @KevinSCreative on December 30, 2015 18:13

After the first line, multi-line strings in JavaScript don't get string color. In the following example, only "Hello World" has the string color, and the obj variable declaration is all one color. In the default theme, 'var' is supposed to be blue. I would also expect the rest of the string to be orange in the default theme, not just the first line.

I am running VSC 0.10.6 and I have no extensions installed.

var test = 'Hello World!\
<div>\
<p>Testing</p>\
</div>\
';
var obj = $(test);

Copied from original issue: microsoft/vscode#1716
Issue 1:
A common pattern is converting keyword arguments into a Dict for easier manipulation. On master this currently throws an error:

julia> f(;kw...) = Dict(kw...)
f (generic function with 1 method)

julia> f(a=1)
ERROR: ArgumentError: Dict(kv): kv needs to be an iterator of tuples or pairs
Stacktrace:
[1] Dict(::Int64) at ./dict.jl:147
[2] #f#1 at ./REPL[1]:1 [inlined]
[3] (::getfield(, Symbol("#kw##f")))(::NamedTuple{(:a,),Tuple{Int64}}, ::typeof(f)) at ./<missing>:0
[4] top-level scope

I think a depwarn would be better. Especially for code that needs to work on v0.6 and master.

Issue 2:
This seems to be a consequence of #24795

In previous Julia versions, we could iterate through vararg keywords as key-value tuples:

julia> function foo(;kw...)
for (k, v) in kw
@show (k, v)
end
end
foo (generic function with 1 method)

julia> foo(x=1, y=2)
(k, v) = (:x, 1)
(k, v) = (:y, 2)

but after #24795, iterating through vararg keywords only gives the values:

julia> function foo(;kw...)
for (k, v) in kw
@show (k, v)
end
end
foo (generic function with 1 method)

julia> foo(x=1, y=2)
ERROR: BoundsError: attempt to access 1
at index [2]
Stacktrace:
[1] indexed_next at ./tuple.jl:60 [inlined]
[2] #foo#2(::NamedTuple{(:x, :y),Tuple{Int64,Int64}}, ::Function) at ./REPL[3]:2
[3] (::getfield(, Symbol("#kw##foo")))(::NamedTuple{(:x, :y),Tuple{Int64,Int64}}, ::typeof(foo)) at ./<missing>:0
[4] top-level scope

If this is an intended change, then it should probably at least be mentioned in NEWS.md. I realize that the changelog mentions that "name-value pairs can be iterated using pairs(kw)" but I think it's important to clarify that this is a breaking change.
Issue 1:
Description

There are a lot of warnings launched during the test process.

@TomDLT have cleaned those messages a long time ago but there are a some new warnings.

It's not an easy task but it could be cool to clean all those warnings.

Issue 2:
With recent improvements and additions, I have come to realize that the codebase starts accumulating several implementations or occurrences of kernels, most of which are not directly interoperable or do not share a common and simple interface.

So far, we have kernels (or usages of) in

gaussian_process.kernels

metrics.pairwise

svm

neighbors.KernelDensity

kernel_approximation

decomposition.KernelPCA

somewhere else?

I dont know all these parts of the codebase well enough, but I think quite a lot could be factored out if we had some kind unified kernel interface. Benefits would include shorter and common code, consistency of usage for users and potential global optimizations (improving kernel implementations would benefit to all parts of the code using kernels). Also, note that there already exist some bridges, e.g. the GP module defines a special pairwise kernel to use kernels from metrics.pairwise.

So far I have nothing to propose to improve things, but still, I wanted to make this remark and gather your opinions. Am I just wrong because I dont know these parts well enough, or do you also sense room for improvements?

CC: @amueller @mblondel @jmetzen @agramfort @GaelVaroquaux @ogrisel @jakevdp