Migration to Angular 6

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

Migration of current angular-seed from Angular 5 to Angular 6.
Expected behavior

The angular-seed will be using Angular 6.
What is the motivation / use case for changing the behavior?

The Angular Team updated Angular Core, so we need to do same!
Technology progress move and we need to move as well!
Please tell us about your environment:
All OS/IDE/Browsers.

PR: https://github.com/mgechev/angular-seed/pull/2268


is this usb supported???

HI,
any clue if it works and where to find the burner image?


Questions about architecture details.

First, thank you for your awesome work! It is very helpful to me.
I have two questions regarding the architectures.

What is the effect of moving the range as below in generator?

https://github.com/shrubb/latent-pose-reenactment/blob/59629a64105c7c33fa01c461a3c65d3690f8533c/generators/vector_pose_unsupervised_segmentation_noBottleneck.py#L172-L174

There is no norm_layer in resblocks of discriminator, could you give me a reason for that? I think it's unusual.

Again, thanks!

고맙습니다, 강열씨!

This is to stay a little bit safer from vanishing gradients. Consider a pixel where the ground truth value is 1.0. Then, without such range shift, the network will be trained to emit a large positive output value so that tanh(output) ≈ 1.0. The possible danger is that output can happen to be so large that the gradient of tanh at output will be too close to zero, hampering the training. After moving the range, gradients at extreme ground truth values become adequate while the output values are still limited.
I've been using this trick since my very first experiments. If you remove it, I'm sure everything will still work. After all, many people successfully train generative nets with plain tanh. But I just haven't checked.
Even more, I think you can even use plain linear activation (no sigmoid, tanh or anything) instead of this trick, and everything will still work.

It worked in Zakharov et al. So we borrowed it as-is from there to save on experiments. Today we realize that your concern is indeed quite reasonable, and that BNs or INs are likely to improve the system.

Thank you for your kind answer!


Fix for getSingleObjectSummary, replacing keyCount with objectSummaries().size

Instead of using keyCount, changing it to check the size of objectSummaries.
For issue:
https://github.com/apache/incubator-druid/issues/6980
https://github.com/apache/incubator-druid/issues/6980#issuecomment-460006580

@jihoonson I don't have write access to this repository so I can't merge this PR, can you please merge it? or let me know if there is any other process for it?

@anantmf we usually keep a PR open for a while even after it gets a +1 to give some time for other people to take a look it too. I'll merge this PR maybe tonight unless anyone has another opinion.


Multiple orders for single trade simulation

I have come across an unusual bug:
When backtesting, if a situation is created for a historical event where:

Trade created, back Order created with trade
back Order reaches EXECUTION_COMPLETE
New Trade created, lay Order created with new trade
lay Order reaches EXECUTION_COMPLETE

However, if this is exact same execution is modified so that in step 3. the lay Order is created with the same Trade used in step 1. for the back Order, then the lay Order never reaches EXECUTION_COMPLETE?

I think I have found the bug: in FlumineBacktest._process_backtest_orders(), it has
            if order.trade.status.value == "Complete":
                blotter.complete_order(order)

However, if a Trade has one complete Order then its status will go to Complete, and only after a new Order has been placed will the Trade status go back to LIVE, at which point the blotter has already deemed the Order as Complete


Updated spring-data-cosmos readme with expression resolver code snippet

Updated spring-data-cosmos readme with expression resolver code snippet

/check-enforcer override


Better lint message

For reference, in scala2
Imports
main/scala/fix on  main [!] via 🆂 v2.13.6 took 13s
❯ scala -Xlint:unused Imports.scala
Imports.scala:11: warning: Unused import
import scala.collection.immutable.HashMap /* assert: Unused
                                  ^
Imports.scala:16: warning: Unused import
import scala.collection.mutable /* assert: Unused
                        ^
Imports.scala:22: warning: Unused import
import util.Try /* assert: Unused
            ^
Imports.scala:26: warning: Unused import
import util.{Success => uSuccess} /* assert: Unused
             ^
Imports.scala:31: warning: Unused import
import scala.math.{max, min} /* assert: Unused
                        ^
Imports.scala:37: warning: Unused import
import scala.concurrent._ /* assert: Unused
                        ^
Imports.scala:42: warning: private object Imports in <$anon: AnyRef> is never used
object Imports {
       ^

Locals
❯ scala -Xlint:unused Locals.scala
Locals.scala:11: warning: private object Locals in <$anon: AnyRef> is never used
object Locals {
       ^
Locals.scala:14: warning: local val x in method complete is never used
      val x = 1 /* assert: Unused
          ^
Locals.scala:21: warning: local var x in method variable is never used
      var x = 1 /* assert: Unused
          ^
Locals.scala:28: warning: local val x in method implicit1 is never used
      implicit val x = 1 /* assert: Unused
                   ^

Params
❯ scala -Wunused:params Params.scala
Params.scala:13: warning: parameter value isSuccess in method complete is never used
    def complete(isSuccess: Boolean): Unit = () /* assert: Unused
                 ^
Params.scala:17: warning: parameter value param in method f2 is never used
    def f2(param: Boolean): Boolean = { /* assert: Unused
           ^

PatVars
❯ scala -Wunused:patvars PatVars.scala
PatVars.scala:22: warning: pattern var x in method pattern1 is never used: use a wildcard `_` or suppress this warning with `x@_`
    case A(x) => () /* assert: Unused
           ^
PatVars.scala:26: warning: pattern var bbb in method pattern1 is never used: use a wildcard `_` or suppress this warning with `bbb@_`
    case B(aaa, bbb) => println(aaa) /* assert: Unused
                ^
PatVars.scala:30: warning: pattern var c in method pattern1 is never used: use a wildcard `_` or suppress this warning with `c@_`
    case c @ C(x, y) => println(x + y) /* assert: Unused
         ^
PatVars.scala:37: warning: pattern var b in method patterns2 is never used: use a wildcard `_` or suppress this warning with `b@_`
    val (a, b, _) = (1, 2, 3) /* assert: Unused
            ^

Privates
❯ scala -Wunused:privates Privates.scala
Privates.scala:13: warning: private object PrivatesPositive in <$anon: AnyRef> is never used
object PrivatesPositive {
       ^
Privates.scala:15: warning: private method foo in object PrivatesObj is never used
    private def foo(x: Int) = ??? /* assert: Unused
                ^
Privates.scala:20: warning: private object Foo in object PrivatesObj is never used
    private object Foo { /* assert: Unused
                   ^
Privates.scala:32: warning: private val field in object PrivatesObj is never used
    private val field = 1 /* assert: Unused
                ^
Privates.scala:39: warning: private method foo in trait PrivatesTrait is never used
    private def foo(x: Int) = ??? // assert: Unused
                ^
Privates.scala:40: warning: private object Foo in trait PrivatesTrait is never used
    private object Foo { // assert: Unused
                   ^
Privates.scala:44: warning: private val field in trait PrivatesTrait is never used
    private val field = 1 // assert: Unused
                ^
Privates.scala:48: warning: private method foo in class PrivateClass is never used
    private def foo(x: Int) = ??? // assert: Unused
                ^
Privates.scala:49: warning: private object Foo in class PrivateClass is never used
    private object Foo { // assert: Unused
                   ^
Privates.scala:53: warning: private val field in class PrivateClass is never used
    private val field = 1 // assert: Unused
                ^
Privates.scala:58: warning: private object PrivateNegative in <$anon: AnyRef> is never used
object PrivateNegative {
       ^
Privates.scala:79: warning: private var field in object PrivatesObj is never updated: consider using immutable val
    private var field = 1
                ^
Privates.scala:27: warning: private type A in object PrivatesObj is never used
    private type A = Int /* assert: Unused
                 ^
Privates.scala:43: warning: private type A in trait PrivatesTrait is never used
    private type A = Int // assert: Unused
                 ^
Privates.scala:52: warning: private type A in class PrivateClass is never used
    private type A = Int // assert: Unused
                 ^

https://github.com/tanishiking/scalafix-unused/commit/e4e2464d26782b22a8c622eca19a52886d350c63


⚠ Contemporanea has degraded performance

In 261e325, Contemporanea ($SITE_CNTM) experienced degraded performance:

HTTP code: 200
Response time: 23254 ms

Resolved: Contemporanea performance has improved in e826810.


blend files

Hello, thanks for your work....
I was trying to test your codes using the blend file, but I saw that the blend file in reality is a text file with this inside
version https://git-lfs.github.com/spec/v1
oid sha256:fb71b6b8603639883e2d5dfcdd91acc9a0d4b78430a0021816c6872a32ccc2b7
size 164852

I think that could be a problem when you were uploading it.

Hi Carlos,
thank you for reporting this problem. It happens when you just download the project as a ZIP file, there are two ways to solve this problem:

download each large file over 100MB manually from the GitHub page, e.g. https://github.com/lanthaon/sl-animation-blender/blob/main/blender_scripts/animate_avatar.blend
clone the project with Git LFS installed https://git-lfs.github.com/

When you choose option 1, move the files to their original folder first, if not some relative file paths will break.

Thanks a lot @lanthaon .
I didnt know that.
And btw, thank also for the inspiration. Using the mp_landmark/main.py as a reference, I could make my own mediapipe for blender.
Thank you a lot....