[SPARK-34755][SQL] Support the utils for transform number format

What changes were proposed in this pull request?
Data Type Formatting Functions: to_number and to_char is very useful. There are some mainstream database support the syntax.
PostgreSQL:
Oracle:
Vertica
Redshift
DB2
Teradata
Snowflake:
Exasol
Phoenix
Singlestore
Intersystems
The implement has many different between Postgresql ,Oracle and Phoenix.
So, this PR follows the implement of to_number in Oracle that give a strict parameter verification.
So, this PR follows the implement of to_number in Phoenix that uses BigDecimal.
This PR support the patterns for numeric formatting as follows:

Pattern
Description

9
Value with the specified number of digits

0
Value with leading zeros

. (period)
Decimal point

, (comma)
Group (thousand) separator

S
Sign anchored to number (uses locale)

$
a value with a leading dollar sign

D
Decimal point (uses locale)

G
Group separator (uses locale)

Why are the changes needed?
to_number and to_char are very useful for formatted currency to number conversion.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Jenkins test

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40672/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136088/

ok to test

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136094/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40677/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136186/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40768/

ping @cloud-fan

retest this please

Test build #136328 has started for PR 31847 at commit 41e974b.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40910/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/40910/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/40910/

Test build #136328 has finished for PR 31847 at commit 41e974b.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class Abs(child: Expression, failOnError: Boolean = SQLConf.get.ansiEnabled)

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/136328/

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42141/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42141/

Retest this please

Test build #137608 has started for PR 31847 at commit 8561b2c.

Test build #137625 has started for PR 31847 at commit 8561b2c.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42156/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42156/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42156/

Test build #137608 has finished for PR 31847 at commit 8561b2c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137608/

Test build #137625 has finished for PR 31847 at commit 8561b2c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137625/

ping @cloud-fan

Test build #137720 has started for PR 31847 at commit 8561b2c.

Test build #137720 has finished for PR 31847 at commit 8561b2c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137720/

Test build #137976 has started for PR 31847 at commit a95dcc7.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42496/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42496/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/42496/

Test build #137976 has finished for PR 31847 at commit a95dcc7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/137976/

ping @cloud-fan

Test build #139566 has started for PR 31847 at commit e93e182.

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44093/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/44093/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139566/

Test build #140646 has started for PR 31847 at commit b4f298e.

Test build #140646 has finished for PR 31847 at commit b4f298e.

This patch fails to build.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public class MergedBlockMetaRequest extends AbstractMessage implements RequestMessage
public class MergedBlockMetaSuccess extends AbstractResponseMessage
public abstract class AbstractFetchShuffleBlocks extends BlockTransferMessage
public class FetchShuffleBlockChunks extends AbstractFetchShuffleBlocks
public class FetchShuffleBlocks extends AbstractFetchShuffleBlocks
      throw new IllegalArgumentException(s\"Cannot find error class '$errorClass'\"))
trait SparkError extends Throwable
class SparkException(
class SparkArithmeticException(
final case class FileNameSpec(prefix: String, suffix: String)
case class ShuffleBlockInfo(shuffleId: Int, mapId: Long)
case class ShuffleBlockChunkId(
case class ShuffleMergedDataBlockId(appId: String, shuffleId: Int, reduceId: Int) extends BlockId
case class ShuffleMergedIndexBlockId(
case class ShuffleMergedMetaBlockId(
  case class FetchRequest(
  class AvroSchemaHelper(
class DecimalOps(FractionalOps):
class IntegralExtensionOps(IntegralOps):
class FractionalExtensionOps(FractionalOps):
class StringExtensionOps(StringOps):
           new_class = type(\"NameType\", (NameTypeHolder,),
class GroupBy(Generic[FrameLike], metaclass=ABCMeta):
class DataFrameGroupBy(GroupBy[DataFrame]):
class SeriesGroupBy(GroupBy[Series]):
       new_class = type(\"NameType\", (NameTypeHolder,),
class SparkIndexOpsMethods(Generic[IndexOpsLike], metaclass=ABCMeta):
class SparkSeriesMethods(SparkIndexOpsMethods[\"ps.Series\"]):
class SparkIndexMethods(SparkIndexOpsMethods[\"ps.Index\"]):
class RollingAndExpanding(Generic[FrameLike], metaclass=ABCMeta):
class RollingLike(RollingAndExpanding[FrameLike]):
class Rolling(RollingLike[FrameLike]):
class RollingGroupby(RollingLike[FrameLike]):
class ExpandingLike(RollingAndExpanding[FrameLike]):
class Expanding(ExpandingLike[FrameLike]):
class ExpandingGroupby(ExpandingLike[FrameLike]):
class KubernetesLocalDiskShuffleDataIO(sparkConf: SparkConf) extends ShuffleDataIO
class KubernetesLocalDiskShuffleExecutorComponents(sparkConf: SparkConf)
case class TempResolvedColumn(child: Expression, nameParts: Seq[String]) extends UnaryExpression
sealed trait FieldName extends LeafExpression with Unevaluable
case class UnresolvedFieldName(name: Seq[String]) extends FieldName
sealed trait FieldPosition extends LeafExpression with Unevaluable
case class UnresolvedFieldPosition(
case class ResolvedFieldName(path: Seq[String], field: StructField) extends FieldName
case class ResolvedFieldPosition(position: ColumnPosition) extends FieldPosition
case class Cast(
case class ExpressionEquals(e: Expression)
case class ExpressionStats(expr: Expression)(var useCount: Int = 1)
case class Average(
case class Sum(
case class SubExprEliminationState(eval: ExprCode, children: Seq[SubExprEliminationState])
case class ArraysZip(children: Seq[Expression], names: Seq[Expression])
case class GetTimestampNTZ(
case class ParseToTimestampNTZ(
case class MakeDTInterval(
case class MakeYMInterval(years: Expression, months: Expression)
trait InvokeLike extends Expression with NonSQLExpression with ImplicitCastInputTypes
case class LateralSubquery(
case class RebalancePartitions(
case class LateralJoin(
trait AlterTableCommand extends UnaryCommand
case class AlterTableDropColumns(
case class AlterTableRenameColumn(
case class AlterTableAlterColumn(
    new AnalysisException(s\"UDF class $className doesn't implement any UDF interface\")
    new AnalysisException(s\"UDF class with $n type arguments is not supported.\")
    new AnalysisException(s\"Can not instantiate class $className, please make sure\" +
    new AnalysisException(s\"Can not load class $className, please make sure it is on the classpath\")
    new SparkException(s\"Cannot find catalog plugin class for catalog '$name': $pluginClassName\")
    new SparkException(\"Cannot instantiate abstract catalog plugin class for \" +
    new SparkException(s\"Can not load in UserDefinedType $
case class DayTimeIntervalType(startField: Byte, endField: Byte) extends AtomicType
case class YearMonthIntervalType(startField: Byte, endField: Byte) extends AtomicType
final class ParquetReadState
public class ParquetVectorUpdaterFactory
case class CommandResult(
case class MergingSessionsExec(
class MergingSessionsIterator(
case class ShowCreateTableExec(
class RocksDB(
class ByteArrayPair(var key: Array[Byte] = null, var value: Array[Byte] = null)
case class RocksDBConf(
case class AcquiredThreadInfo()
case class StateStoreCustomSumMetric(name: String, desc: String) extends StateStoreCustomMetric
case class StateStoreCustomSizeMetric(name: String, desc: String) extends StateStoreCustomMetric
case class StateStoreCustomTimingMetric(name: String, desc: String) extends StateStoreCustomMetric
trait StatefulOperatorCustomMetric
case class StatefulOperatorCustomSumMetric(name: String, desc: String)
trait WatermarkSupport extends SparkPlan
trait TestGroupState[S] extends GroupState[S]

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/140646/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45158/

Test build #140649 has started for PR 31847 at commit b4f298e.

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45158/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45164/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45158/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45164/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45164/

Test build #140649 has finished for PR 31847 at commit b4f298e.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public class MergedBlockMetaRequest extends AbstractMessage implements RequestMessage
public class MergedBlockMetaSuccess extends AbstractResponseMessage
public abstract class AbstractFetchShuffleBlocks extends BlockTransferMessage
public class FetchShuffleBlockChunks extends AbstractFetchShuffleBlocks
public class FetchShuffleBlocks extends AbstractFetchShuffleBlocks
      throw new IllegalArgumentException(s\"Cannot find error class '$errorClass'\"))
trait SparkError extends Throwable
class SparkException(
class SparkArithmeticException(
final case class FileNameSpec(prefix: String, suffix: String)
case class ShuffleBlockInfo(shuffleId: Int, mapId: Long)
case class ShuffleBlockChunkId(
case class ShuffleMergedDataBlockId(appId: String, shuffleId: Int, reduceId: Int) extends BlockId
case class ShuffleMergedIndexBlockId(
case class ShuffleMergedMetaBlockId(
  case class FetchRequest(
  class AvroSchemaHelper(
class DecimalOps(FractionalOps):
class IntegralExtensionOps(IntegralOps):
class FractionalExtensionOps(FractionalOps):
class StringExtensionOps(StringOps):
           new_class = type(\"NameType\", (NameTypeHolder,),
class GroupBy(Generic[FrameLike], metaclass=ABCMeta):
class DataFrameGroupBy(GroupBy[DataFrame]):
class SeriesGroupBy(GroupBy[Series]):
       new_class = type(\"NameType\", (NameTypeHolder,),
class SparkIndexOpsMethods(Generic[IndexOpsLike], metaclass=ABCMeta):
class SparkSeriesMethods(SparkIndexOpsMethods[\"ps.Series\"]):
class SparkIndexMethods(SparkIndexOpsMethods[\"ps.Index\"]):
class RollingAndExpanding(Generic[FrameLike], metaclass=ABCMeta):
class RollingLike(RollingAndExpanding[FrameLike]):
class Rolling(RollingLike[FrameLike]):
class RollingGroupby(RollingLike[FrameLike]):
class ExpandingLike(RollingAndExpanding[FrameLike]):
class Expanding(ExpandingLike[FrameLike]):
class ExpandingGroupby(ExpandingLike[FrameLike]):
class KubernetesLocalDiskShuffleDataIO(sparkConf: SparkConf) extends ShuffleDataIO
class KubernetesLocalDiskShuffleExecutorComponents(sparkConf: SparkConf)
case class TempResolvedColumn(child: Expression, nameParts: Seq[String]) extends UnaryExpression
sealed trait FieldName extends LeafExpression with Unevaluable
case class UnresolvedFieldName(name: Seq[String]) extends FieldName
sealed trait FieldPosition extends LeafExpression with Unevaluable
case class UnresolvedFieldPosition(
case class ResolvedFieldName(path: Seq[String], field: StructField) extends FieldName
case class ResolvedFieldPosition(position: ColumnPosition) extends FieldPosition
case class Cast(
case class ExpressionEquals(e: Expression)
case class ExpressionStats(expr: Expression)(var useCount: Int = 1)
case class Average(
case class Sum(
case class SubExprEliminationState(eval: ExprCode, children: Seq[SubExprEliminationState])
case class ArraysZip(children: Seq[Expression], names: Seq[Expression])
case class GetTimestampNTZ(
case class ParseToTimestampNTZ(
case class MakeDTInterval(
case class MakeYMInterval(years: Expression, months: Expression)
trait InvokeLike extends Expression with NonSQLExpression with ImplicitCastInputTypes
case class LateralSubquery(
case class RebalancePartitions(
case class LateralJoin(
trait AlterTableCommand extends UnaryCommand
case class AlterTableDropColumns(
case class AlterTableRenameColumn(
case class AlterTableAlterColumn(
    new AnalysisException(s\"UDF class $className doesn't implement any UDF interface\")
    new AnalysisException(s\"UDF class with $n type arguments is not supported.\")
    new AnalysisException(s\"Can not instantiate class $className, please make sure\" +
    new AnalysisException(s\"Can not load class $className, please make sure it is on the classpath\")
    new SparkException(s\"Cannot find catalog plugin class for catalog '$name': $pluginClassName\")
    new SparkException(\"Cannot instantiate abstract catalog plugin class for \" +
    new SparkException(s\"Can not load in UserDefinedType $
case class DayTimeIntervalType(startField: Byte, endField: Byte) extends AtomicType
case class YearMonthIntervalType(startField: Byte, endField: Byte) extends AtomicType
final class ParquetReadState
public class ParquetVectorUpdaterFactory
case class CommandResult(
case class MergingSessionsExec(
class MergingSessionsIterator(
case class ShowCreateTableExec(
class RocksDB(
class ByteArrayPair(var key: Array[Byte] = null, var value: Array[Byte] = null)
case class RocksDBConf(
case class AcquiredThreadInfo()
case class StateStoreCustomSumMetric(name: String, desc: String) extends StateStoreCustomMetric
case class StateStoreCustomSizeMetric(name: String, desc: String) extends StateStoreCustomMetric
case class StateStoreCustomTimingMetric(name: String, desc: String) extends StateStoreCustomMetric
trait StatefulOperatorCustomMetric
case class StatefulOperatorCustomSumMetric(name: String, desc: String)
trait WatermarkSupport extends SparkPlan
trait TestGroupState[S] extends GroupState[S]

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/140649/

Since the functions are broadly used in other systems, it makes sense to support them in Spark that can make migration to Spark easier, I believe. @beliefer Could you re-open this PR, please. @cloud-fan Do you agree?

Test build #145760 has started for PR 31847 at commit 90f058c.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50232/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50232/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50232/

Test build #145760 has finished for PR 31847 at commit 90f058c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/145760/

ping @MaxGekk cc @cloud-fan

@beliefer Could you expose the util functions to Spark SQL via creating expressions and bind them names in FunctionRegistry

Based on discussion ten months ago, I split the origin PR. Because the utils should be review better.

ping @MaxGekk Could you have a look?

Test build #146090 has started for PR 31847 at commit c7b9d7e.

Test build #146091 has started for PR 31847 at commit dcf43a7.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50565/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50566/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50565/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50566/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50566/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50565/

Test build #146090 has finished for PR 31847 at commit c7b9d7e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/146090/

Test build #146091 has finished for PR 31847 at commit dcf43a7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/146091/

@beliefer Please, update PR's description and add links like in the PR #31448

Updated.

+1, LGTM. Merging to master.
Thank you, @beliefer .

@MaxGekk Thank you for hard work. I will open another PR to implement to_number and to_char.

@cloud-fan Thanks for the review. I will update these change into https://github.com/apache/spark/pull/35060


fix(clickBlock): add clickblock to ngModule declarations

Short description of what this resolves:
With 2.1.2 compiler, ngc will fail if click block is not added to declarations
Changes proposed in this pull request:

add click block to ngModule declarations

Ionic Version: 1.x / 2.x
2.x rc4

Related #8914


C:/Users/lluvi/Desktop/angular2-minimalist-starter/typings/angular2/angular2.d.ts(7652,74): error TS2304: Cannot find name 'ParameterDecorator'.
C:/Users/lluvi/Desktop/angular2-minimalist-starter/typings/angular2/router.d.ts(567,9): error TS2304: Cannot find name 'ClassDecorator'.
C:/Users/lluvi/Desktop/angular2-minimalist-starter/typings/angular2/router.d.ts(721,53): error TS2304: Cannot find name 'ClassDecorator'.
[03:41:21] TypeScript: 4 semantic errors
[03:41:21] TypeScript: emit succeeded (with errors)
[03:41:21] Finished 'ts' after 3.55 s

@Axure  Since angular2 have been upgrade to alpha 40 now, the examples are out of date now..please visit my project.

Please try again, upgraded to alpha 44, added tests, and several improvenments.


AttributeError when using coeffs_to_array

fix issue #357

I'm sorry I messed up with my git I made a new PR which include @grlee77 comments on PR #358

Codecov Report

Merging #361 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #361      +/-   ##
==========================================
+ Coverage   83.55%   83.56%   +<.01%
==========================================
  Files          21       21
  Lines        3332     3334       +2
  Branches      567      568       +1
==========================================
+ Hits         2784     2786       +2
  Misses        484      484
  Partials       64       64

Impacted Files
Coverage Δ

pywt/_multilevel.py
92.73% <100%> (+0.05%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 073b8e1...49c29d5. Read the comment docs.


Mapping simplification based on headers

While browsing the code, I noticed code could be slightly improved - using Spring's mapping annotations, we can define the mapping directly, avoiding a check later on.

OK, I'll create an issue first...

Codecov Report

Merging #965 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #965      +/-   ##
============================================
- Coverage     86.25%   86.23%   -0.03%
+ Complexity      959      958       -1
============================================
  Files           174      174
  Lines          2700     2696       -4
  Branches        425      425
============================================
- Hits           2329     2325       -4
  Misses          162      162
  Partials        209      209

Impacted Files
Coverage Δ
Complexity Δ

.../zalando/zally/integration/ValidationController.kt
71.42% <100%> (-10.39%)
2 <1> (-1)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51d3d76...39d75f9. Read the comment docs.

:+1:

:+1:


ClassCastException on language change

Exceptions occurs when language is changed. Sample project was used as example

Hi @zhombie. Sorry for lately response
Could you give more information about testing device? This kind of issue might causing from Xiaomi's MIUI more than my library. Refer to https://stackoverflow.com/questions/64565156/miui-11-12-theme-switch-results-in-lifecycleexception-classcastexception
Besides the example code in the sample project. Is there any more code?

Hi, not a problem, thanks for response.
Device info: Xiaomi Mi Note 9 Pro, MIUI 12.0.1
I already have forceDarkAllowed = false set for >29 sdk style. But it does not help. Yeap, it has other code near, but i don't think that other code can cause such problems

@zhombie Okay. Let me borrow the Xiaomi device from my colleague 😂
To reproduce this issue, just run the sample project in Xiaomi device. Is it right?

Yeap, i have tried to reproduce the issue with the sample project, it gives me the same exception

@zhombie As I tested on Redmi Note 9 (MIUI 12.0.6). I got same error log as you without app crashing and language has changed.
E/ActivityInjector: get life cycle exception
    java.lang.ClassCastException: android.os.BinderProxy cannot be cast to android.app.servertransaction.ClientTransaction
        at android.app.ActivityInjector.checkAccessControl(ActivityInjector.java:24)
        at android.app.Activity.onResume(Activity.java:1859)
        at androidx.fragment.app.FragmentActivity.onResume(FragmentActivity.java:455)
        at com.akexorcist.localizationactivity.ui.LocalizationActivity.onResume(LocalizationActivity.kt:28)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1453)
        at android.app.Activity.performResume(Activity.java:8050)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4290)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4332)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
        at android.app.ClientTransactionHandler.executeTransaction(ClientTransactionHandler.java:57)
        at android.app.ActivityThread.handleRelaunchActivityLocally(ActivityThread.java:5368)
        at android.app.ActivityThread.access$3600(ActivityThread.java:233)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2081)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:224)
        at android.app.ActivityThread.main(ActivityThread.java:7561)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

This seem caused by calling Activity.recreate() in Xiaomi's firmware. Even I tried calling Activity.recreate() without language changing and this still occurs. So I have to say that a firmware issue and we can't fix this.
This is not only happen to my library. A few developers also found this problem.

AppCompatDelegate.setDefaultNightMode doesn't work on physical device
MIUI 11/12 Theme Switch Results in LifeCycleException, ClassCastException
Getting Lifecycle Exception While Recreating The Activity

Yeap, it is fairly vendor's problem and everything works fine, just some unexpected things could happen. I opened issue, in order to know if you have solution to this issue

@zhombie Don't worry. You've done the great things. I never know about this problem before 😆

Same problem on Redmi Note 10 👍


[ui] Service links disappear when switching environment

Open environment A in new tab(links are shown), switch to B(no links). Reload page. There are links in B, switch to A(no links again)
Rancher	v0.43.1
Cattle	v0.106.0
User Interface	v0.63.0
Rancher Compose	v0.5.0

This is a duplicate of this. https://github.com/rancher/rancher/issues/1389
Sometimes links aren't showing up when there are multiple environments.


Upstream Groq-side changes to official onnx-mlir repo

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@AlexandreEichenberger thanks for noticing - yes you're right. We have staged a bunch of changes but not all are applicable to the general population. I decided to put it back discretionarily. Step 1 would be:
https://github.com/onnx/onnx-mlir/pull/1296#issuecomment-1083653425
Could you advise how I could proceed?


Handle empty dataframe

0 rows 0 columns
a = pd.DataFrame()

Related, column that is completely null could have better warnings or sign. Right now it catches the error and doesnt show anything, we should show a string or something that says "No data in this column"


chore: release please

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


How to compile a jar file

Hey Folks,
I am new to Airlift and I was going through the framework and it seems that it would work for an application that I am working to be hosted as a web app. Unfortunately after going through the code and the sample server files, I am still not sure how to go about building it and compiling it to create a JAR file. Can someone help?

@akki700 airlift-based app is typically built into a .tar.gz file with a launcher script included inside.
to achieve this you need:

.build-airlift empty file in the base of your app
using airbase as the parent project:

   <parent>
        <groupId>io.airlift</groupId>
        <artifactId>airbase</artifactId>
        <version>93</version>
    </parent>

see https://github.com/prestosql/presto/tree/master/presto-proxy for example
the most activey Airlift userbase is Presto community.
Join the Presto slack https://prestosql.io/slack.html > #dev channel if you have further questions


Support for multiple Nuki locks

Hi,
First up: amazing work on this library! It works very well and means that I don't need to buy expensive Nuki bridges.
I'm attempting to add support for multiple Nuki locks on a single ESP32, using this ESPHome implementation which is based on your library.
I'm thinking about creating multiple instances of Nuki::NukiLock, but I believe that won't work because your library is using fixed names for storing the preference (eg: BLE_ADDRESS_STORE_NAME).
I'll try to namespace this key, but I wanted to check if you have additional thoughts on this.
For instance: would it be a problem if this library spawns multiple BLE scanners? And could we skip the pairing process by providing a lock ID directly?
I have zero experience with BLE, so any thoughts or comments would be appreciated!

Hi Savjee, sorry for the delayed response, holidays and a bit busy...
We should not spawn different BLE scanners, the idea is that 1 BLE scanner handles all traffic (also from other BLE sensors).
@technyon Do you maybe have any thoughts on how to fix storing preferences for multiple locks? Might be a good addition.

Hi,
Have a look at the constructor of NukiBle:
NukiBle::NukiBle(const std::string& deviceName,
                 const uint32_t deviceId,
                 const NimBLEUUID pairingServiceUUID,
                 const NimBLEUUID deviceServiceUUID,
                 const NimBLEUUID gdioUUID,
                 const NimBLEUUID userDataUUID,
                 const std::string preferencedId)

This id is later used to initialize preferences:
preferences.begin(preferencesId.c_str(), false);
NukiBle is the base class and is inherited by NukiLock (and NukiOpener). The constructor for NukiLock takes a device id which is then fed to the base class as the preferences Id. As long as you use unique device names, it should be no problem to have multiple locks. Just make sure to register every instance of NukiLock for the BleScanner (call NukiLock::registerBleScanner() ).

Hi,
I have a question about the library , and I flashed the project  on my "ESP32-S3-Devkitc-1" Board.
I think now the "ESP32-S3" Board acts as a NUKI Accessories(for example NUKI FOB).
How can I chang the library to let it(ESP32-S3) be acted as ein NUKI Lock, so that I can use a real NUKI FOB to controll the NUKI Lock(ESP32-S3)?

This isn't what this library does. It is a client to the lock, so you have to pair the fob with the lock.

thank you for the feedback! I have a litte confuse about it.
I have a  "ESP32-S3-Devkitc-1" and a real NUKI FOB. My destination is that: I can controll the ESP32 Boad with a real NUKI FOB, same like a real NUKI FOB can controll a real NUKI Lock.
As I said, I have flashed the project on  "ESP32-S3-Devkitc-1", and I have tried to pair the "ESP32-S3-Devkitc-1" with a real  NUKI FOB. after pressing 5 seconds on button of "NUKI FOB", but I always got as follow logging. no pair with each other,
How should I change the project, to let NUKI FOB be paired with "ESP32-S3-Devkitc-1"?
D NimBLEScan: >> start: duration=3
D NimBLEScan: << start()
[  3324][E][Preferences.cpp:503] getBytesLength(): nvs_get_blob len fail: bleAddress NOT_FOUND
[  3325][D][NukiBle.cpp:102] pairNuki(): No nuki in pairing mode found
[  3332][D][NukiBle.cpp:107] pairNuki(): pairing result 0
I NimBLEScan: New advertiser: 41:96:40:5e:45:cb
I NimBLEScan: Updated advertiser: 41:96:40:5e:45:cb
I NimBLEAdvertisedDevice: No service data found
I NimBLEScan: New advertiser: 1e:2f:85:3e:7b:65
I NimBLEScan: New advertiser: de:d2:a5:c3:ba:0b
I NimBLEScan: New advertiser: 6e:5d:ff:7b:d9:0a
...

The library controls the lock. When you call pairNuki(), it's looking for a lock in pairing mode. Since your Fob isn't a lock, it can't be paired.
Connecting to a fob and receiving button presses from a fob is not the scope of this library.

thanks again for your explain! It's clear for me now!
Is It possible/realistic to change something on the base of this library to realize my destination: pairing and controlling the ESP32 Boad with a NUKI FOB?
I am reading another project https://github.com/as19git67/simnuki about "Smart Lock Simulator", but it is in java...,
(Maybe) Do you know, how should I chang or add some thing to this library to realize my destination?

I think it's a better idea to create a new library, or put everything into a seperate class. You have to implement the opposite side of the equasion, the server and not the client, including all the authentication, encryption and so on. Check the official API documentation, but it's nothing that's can be just changed in this library, you'll have to write most of it from scratch.
What is you reason that you want to pair the fob with the ESP32? You can just pair it with the Lock and it does what it's supposed to do.

thank you for your suggestion/idea!
I have used ESP32-S3 as Bluetooth communication in a project, and  I need a bluetooth keychain FOB to controll it.
I choose NUKI FOB to realize it.

@workhard101 Do you actually need the nuki lock at all? It seems like you are trying to use the fob for some other project. Depending on your requirements it might not be the right tool. Implementing the counter part for the fob might be a lot of effort and not something that somebody else has already done. You might be better off with something more simple (e.g. 433mhz rf remotes) if security is not a requirement but just to get button presses into an esp32.
What is the project you are trying to accomplish?
PS: you're somewhat highjacking this ticket which is not about fob support. So maybe create a new one or we should move the discussion somewhere else.

I agree with peteh, I think a 433 remote is your way forward and ver, very, very less complicated than trying to communicate with a Nuki Fob. Maybe there are even simple ble fobs without encryption which would be handy as the esp already has ble onboard.
As technyon stated a Nuki fob is meant to be paired with a Nuki lock, I doubt it is even doable as there is no api documentation for connecting/communicating directly to a Fob.
Let me know if you have any question otherwise I will close the issue as you are indeed hijacking it a bit :-)

@peteh @I-Connect thank you very much for your suggestion!
I need the encryption/security as requirment and must also use the NUKI FOB as requirment
@I-Connect  as you said "As technyon stated a Nuki fob is meant to be paired with a Nuki lock, I doubt it is even doable as there is no api documentation for connecting/communicating directly to a Fob."
I am reading another project https://github.com/as19git67/simnuki about "Smart Lock Simulator", if I do the NUKI Lock on ESP32-S3 Borad and get button presses from NUKI FOB into an ESP32-S3 Board. In this case, is NUKI FOB API necessary?
@peteh @I-Connect sorry for hijacking this ticket, we can move the discussion somewhere else.

@workhard101 please describe the project and what it should do and why you want to achieve, otherwise we can't help you.

@workhard101 please describe the project and what it should do and why you want to achieve, otherwise we can't help you.

And open a seperate issue in the process please.


Azure Service Bus binding fails to receive message

Expected Behavior
Azure Service Bus binding continues to receive messages regardless of up time.
Actual Behavior
After a "long" time, Azure Service Bus bindings stops receiving messages and sidecar must be restarted.
Steps to Reproduce the Problem
Runs input binding for Azure Service Bus over a "long" period of time.
Release Note

RELEASE NOTE:  FIX issue where Azure Service Bus binding would not receive messages after some time.

Can you please ask the user:

What protocol does Dapr use to communicate with the app? HTTP or gRPC?
Are they setting app-max-concurrency?

@ItalyPaleAle we've been experiencing the same behavior. Using gRPC protocol & no app-max-concurrency settings. Dapr runtime 1.8.2.

@mdaquel Thanks for the report. How long before the issue appears, and is there anything "noteworthy" that happens before the issue appears?

@ItalyPaleAle in our case we've noticed that the issue happened when the input binding queue had not received any messages even for about 10 minutes.  After that period messages will start to bank up in that queue until we rollout restart the pods that receive events from that binding.  btw we're pretty early on our Dapr journey. This could be unrelated to this particular issue which a simple binding spec config tweak would resolve. Either way please feel free to advise. We'd be glad to hear your though & thanks heaps, cheers!

@mdaquel Just to confirm: you do not have any message published for 10 mins, or you just notice that this is frozen because you don't see messages for 10 mins?
Do you see anything relevant in the logs?
Are you able to run Dapr with log level "debug" (https://docs.dapr.io/operations/troubleshooting/logs-troubleshooting/) to see if the logs include anything useful please?
I will investigate further next week, but anything you can share would be very helpful.

@ItalyPaleAle we don't technically publish messages directly into the queue. The messages were produce externally/triggered from our Azure event grid events from our Azure storage account for any blob created & deleted.
Unfortunately we don't see anything specific or relevant in the logs for both the app & Daprd pod.
Yes we can run Dapr with log level debug and let you know as soon as possible.
That would be great if you can investigate further next week. We appreciate it, again thanks heaps!

@mdaquel I was able to confirm the issue and reproduce it.
In short, in case of certain errors (such as if the network is dropped for a prolonged amount of time) a lock was not released and this was causing ASB to hang. This impacts both the Azure Service Bus Queue binding and Azure Service Bus pubsub components, as that code is shared.
I will have a fix ready shortly.

@mdaquel  FYI discussed this with @berndverst  and @yaron2  and we will release Dapr 1.8.4 as a hotfix

@ItalyPaleAle, @berndverst and @yaron2  much appreciated. Amazing turn around time addressing this issue. Thank you so much!


Provide a more descriptive error message when the user formats NetCDF timestamps incorrectly.

Describe the Enhancement
The pcp_combine tool failed when Michelle Harrold passed it a CF-compliant NetCDF file with a timestring that was formatted slightly incorrectly. John Halley Gotway recommended that we add a check for this case and print a more useful error message.
Time Estimate
4 hours.
Sub-Issues
Consider breaking the enhancement down into sub-issues.
No sub issues required.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
None
Define the Metadata
Assignee

[X] Select engineer(s) or no engineer required - John Halley Gotway
[X] Select scientist(s) or no scientist required - None required.

Labels

[X] Select component(s)
[X] Select priority
[X] Select requestor(s)

Projects and Milestone

[X] Review projects and select relevant Repository and Organization ones
[X] Select milestone

Define Related Issue(s)
Consider the impact to the other METplus components.

[X] METplus, MET, METdb, METviewer, METexpress, METcalcpy, METplotpy
No impacts to other repos.

Enhancement Checklist
See the METplus Workflow for details.

[X] Complete the issue definition above.
[ ] Fork this repository or create a branch of develop.
Branch name:  feature_<Issue Number>_<Description>
[ ] Complete the development and test your changes.
[ ] Add/update unit tests.
[ ] Add/update documentation.
[ ] Push local changes to GitHub.
[ ] Submit a pull request to merge into develop.
Pull request: feature <Issue Number> <Description>
[ ] Iterate until the reviewer(s) accept and merge your changes.
[ ] Delete your fork or branch.
[ ] Close this issue.

Running plot_data_plane on the develop branch yields:
plot_data_plane gtg_obs_forecast.20130730.i00.f00.nc test.ps 'name="edr"; level="(20130730_00000,0,*,*)";'
ERROR  :
ERROR  : plot_data_plane -> trouble getting field "name="edr"; level="(20130730_00000,0,*,*)";" from file "gtg_obs_forecast.20130730.i00.f00.nc"
ERROR  :

Note that the timestring is missing a trailing 0. Since it's not one of the supported time string formats, it's passed to the "atoi()" function to be parsed as an integer.
Update the logic in var_info_nccf.cc to...
(1) Call is_datestring() to check for supported time strings. If true, convert the timestring to unixtime.
(2) Otherwise, if the string is entirely numeric, call atoi() to parse it as an integer.
(3) Otherwise, error out with this message:
ERROR  :
ERROR  : VarInfoNcCF::set_magic() -> trouble parsing NetCDF dimension value "20130730_00000"!
ERROR  :


Minor Grammatical error in README. (Changed "is" to "are")

Found a minor grammatical error, just changed 'is' to 'are' on line 13.
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

Hey @devptyagi
Thank you for opening this pull request.
This is a standard message notifying you that we've reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Thank you and happy coding.


Span context is needed aftet CreateExitSpan

In some scenarios (such as in middleware chain)，span context is needed after doing CreateExitSpan, but the CreateExitSpan method won't return the context that include span info right now, even can't get span info from a span object
For the solution, IMHO, we can change the CreateExitSpan to return this context directly like what CreateEntrySpan & CreateLocalSpan do, but this may make a BC:
// New CreateExitSpan
func (t *Tracer) CreateExitSpan(ctx context.Context, operationName string, peer string, injector propagation.Injector) (Span, context.Context, error)

Another choice I considered is to expand the Span interface methods, add new methods like SpanID, TraceID, Context, etc.
// Context will return a context includes current span
func (ds *defaultSpan) Context(ctx context.Context) context.Context {
	return context.WithValue(ctx, ctxKeyInstance, *ds)
}

we can create a new methods collection interface with the current Span interface embedded, just assert to new interface when using new methods
Please give me some advice, thanks in advance :)

I think both works, but we need to keep API forward compatbility.
Does option 1 break nothing?

Does option 1 break nothing?

It returns a new value context.Context, the numbers of return value change from 2 to 3

but we need to keep API forward compatbility.

I'm leaning toward option 2, and we can also add a CreateExitSpanWithContext func.
Like this:
func (t *Tracer) CreateExitSpanWithContext(ctx context.Context, operationName string, peer string, injector propagation.Injector) (Span, context.Context, error)

We should not break API, as we are at 1.x stable iteration stage.
I agree with @arzhan, a new API makes more sense. CreateExitSpanWithContext is preferred by me.

Okay, I'll get to work on it.


The role of the command

start_mysql_command=service mysql start
stop_mysql_command=service mysql stop

Hi,
Could you please clarify, what is your exact issue?

@liuqian1990 ?


Ads not loading over Cellular network.

Ads load fine over wifi connection, but fails to load over cellular data. Tested it in 3 different devices with different carriers. Any idea why this could be?

@josewbr thanks for your report, unfortunately we never face this kind of issue before, can you please share what error are you getting from Native logcat


Introduce TryRunImmediately to the JobRunner

Try running job immediately in the current thread instead of pushing it to the job queue. It can be used for manually scheduling optimization but may also introduce performance regression. USE WITH CAUTION.

ping @xkszltl


iPhone 4 video recording issue.

Hello, thx for great library.
I found one issue when recording video with iphone 4 iOS 7.1.2 . It can be reproduced not always. While recording video output video file only contains Video or Audio Sample Buffer (method captureOutput:didOutputSampleBuffer:fromConnection). So in SCRecorder delegate method recorder:didCompleteSegment:inSession:error i got error = nil and segment = nil. Also i found while not recording with iphone 6 or 5s in method captureOutput:didOutputSampleBuffer:fromConnection i got next captureOutput:

Video SampleBuffer Captured
Audio SampleBuffer Captured
Video SampleBuffer Captured
Audio SampleBuffer Captured
Video SampleBuffer Captured
.........

same while recording.
With iphone 4 i have next sittuation:
Not recording:

Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
.....................
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
.....................

Again Video
and so on.
Recording :

Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
Audio SampleBuffer Captured
.........................

Only Audio
Or

Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
Video SampleBuffer Captured
...........................

Only Video
I found similar issue here http://stackoverflow.com/questions/9257052/avcapturesession-only-got-video-buffer , but i dont know how to fix it. Please check.

I highly recommend to use the "fastRecordMethodEnabled" property set to true on iPhone 4. It will enable you to record at a steady 30fps (at the cost of not being able to set the bitrate, video size and various other settings at the recording time).

@rFlex yeah, really works well. Should i also set this property to true on other devices?

You and I have the same problem, and now you solve?

@chdtyzhy Yes, "fastRecordMethodEnabled"=YES solve my problem.
Also i'm closing this ticket.

@yarikpwnzer   how  to sett  fastRecordMethodEnabled=YES, I just can't found the property

@chdtyzhy Firstly update SCRecorder library and than you could find fastRecordMethodEnabled property in SCRecorder class.

I have a try

I am recording video at 30fps via AVFoundation. and getting this problem.
How can I solve them?


TypeError: get_xlmhg_stat() takes from 3 to 4 positional arguments but 6 were given

Thanks for this great package!
I'm trying it out, and ran into a bug following your second notebook (on pathway inference).
When applied to my dataset, this starts generating output, but fails near the end:
mebo_obj.infer_pathway(
                    pval_method='permutation_test_fdr',
                    pval_cutoff=0.05,
                    commu_score_cutoff=0,
                    commu_score_column='Commu_Score',
                    min_term=15,
                    max_term=500,
                    thread=None,
                    sender_focus=[],
                    metabolite_focus=[],
                    sensor_focus=[],
                    receiver_focus=[],
                    Return_res=False
                    )

Traceback:
[July 07, 2022 13:02:11]: Read gene set from GMT file
[July 07, 2022 13:02:11]: Weight gene expression by gene network score of sensor
[July 07, 2022 13:03:38]: Weighted expression deconvolution to metabolite-sensor events
[July 07, 2022 13:03:38]: 205 sensor-receiver pairs
[July 07, 2022 13:10:02]: Weighted expression deconvolution to sender-receiver events
[July 07, 2022 13:10:02]: 476 sender-receiver pairs
[July 07, 2022 13:10:13]: Enrichment for significant sensor in receiver cell
[July 07, 2022 13:10:13]: Thread: 24
[July 07, 2022 13:10:23]: ABCB1 ~ 21
[July 07, 2022 13:10:27]: ABCC1 ~ 22
....
[July 07, 2022 13:14:14]: VDR ~ 22
---------------------------------------------------------------------------
RemoteTraceback                           Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/pathway_enrichment.py", line 251, in _excu_sensor_enrich_
    resobjs, res = self._link_mHG(w_e, self.gmt, 500)
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/pathway_enrichment.py", line 223, in _link_mHG
    res = pd.DataFrame(map(lambda x: self.getmHG(indices[x], N=int(N), X = 1, L = L), indices),
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/pandas/core/frame.py", line 710, in __init__
    data = list(data)
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/pathway_enrichment.py", line 223, in <lambda>
    res = pd.DataFrame(map(lambda x: self.getmHG(indices[x], N=int(N), X = 1, L = L), indices),
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/pathway_enrichment.py", line 171, in getmHG
    res = xlmhg.get_xlmhg_test_result(N, go_indices, X=X, L=L)
  File "/home/nsemenkovich/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/xlmhg/test.py", line 207, in get_xlmhg_test_result
    stat, cutoff = mhg_cython.get_xlmhg_stat(indices, N, K, X, L, tol)
TypeError: get_xlmhg_stat() takes from 3 to 4 positional arguments but 6 were given
"""

The above exception was the direct cause of the following exception:

TypeError                                 Traceback (most recent call last)
Input In [28], in <cell line: 1>()
----> 1 mebo_obj.infer_pathway(
      2                     pval_method='permutation_test_fdr',
      3                     pval_cutoff=0.05,
      4                     commu_score_cutoff=0,
      5                     commu_score_column='Commu_Score',
      6                     min_term=15,
      7                     max_term=500,
      8                     thread=None,
      9                     sender_focus=[],
     10                     metabolite_focus=[],
     11                     sensor_focus=[],
     12                     receiver_focus=[],
     13                     Return_res=False
     14                     )

File ~/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/mebocost.py:824, in create_obj.infer_pathway(self, pval_method, pval_cutoff, commu_score_cutoff, commu_score_column, min_term, max_term, thread, sender_focus, metabolite_focus, sensor_focus, receiver_focus, Return_res)
    811         ## start a object
    812         eobj = PE.PathwayEnrich(commu_res = good_commu,
    813                                 gene_network=self.gene_network,
    814                                 avg_exp = self.avg_exp,
   (...)
    821                                 thread = self.thread if thread is None else thread
    822                                 )
--> 824         self.enrich_result = eobj._pred_(pval_method = pval_method,
    825                             sensor_in_receiver = True,
    826                             sender_to_receiver = True,
    827                             sender_focus = sender_focus,
    828                             metabolite_focus = metabolite_focus,
    829                             sensor_focus = sensor_focus,
    830                             receiver_focus = receiver_focus,
    831                             Return = True
    832                            )
    834 #         ## add
    835 #         self.enrich_result = vars(eobj)
    837         toc  = time.time()

File ~/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/pathway_enrichment.py:465, in PathwayEnrich._pred_(self, pval_method, sensor_in_receiver, sender_to_receiver, Return, sender_focus, metabolite_focus, sensor_focus, receiver_focus)
    462 sensor_res = collections.defaultdict()
    463 if sensor_in_receiver:
    464     ## iterate for each sensor in receivers
--> 465     sensor_res = self._sensor_enrich_()
    467 ## pathway enrichment for significant sender-receiver pairs
    468 cellpair_res = collections.defaultdict()

File ~/.local/miniconda3/envs/jupyter/lib/python3.10/site-packages/mebocost-1.0.1-py3.10.egg/mebocost/pathway_enrichment.py:283, in PathwayEnrich._sensor_enrich_(self)
    281 info('Thread: %s'%(self.thread))
    282 pool = multiprocessing.Pool(self.thread)
--> 283 res_col = pool.map(self._excu_sensor_enrich_, sr)
    284 pool.close()
    285 ## collect

File ~/.local/miniconda3/envs/jupyter/lib/python3.10/multiprocessing/pool.py:364, in Pool.map(self, func, iterable, chunksize)
    359 def map(self, func, iterable, chunksize=None):
    360     '''
    361     Apply `func` to each element in `iterable`, collecting the results
    362     in a list that is returned.
    363     '''
--> 364     return self._map_async(func, iterable, mapstar, chunksize).get()

File ~/.local/miniconda3/envs/jupyter/lib/python3.10/multiprocessing/pool.py:771, in ApplyResult.get(self, timeout)
    769     return self._value
    770 else:
--> 771     raise self._value

TypeError: get_xlmhg_stat() takes from 3 to 4 positional arguments but 6 were given

Hi - could you please downgrade your Python from 3.10 to 3.8? The required package xlmhg was maintained at python 3.8. a similar question refer to #2


AMBARI-26204: Migrate RecommendationResourceProviderTest from EasyMoc…

…k to Mockito
What changes were proposed in this pull request?
Migrate RecommendationResourceProviderTest from EasyMock to Mockito
Description
This PR migrates the RecommendationResourceProviderTest class from EasyMock to Mockito testing framework. This change is necessary to resolve compatibility issues when running tests under JDK 17.
Changes

Replaced EasyMock imports with Mockito imports
Updated testCreateConfigurationResources and testCreateNotConfigurationResources methods to use Mockito syntax
Refactored the testCreateResources helper method to use Mockito
Removed EasyMock dependency (if previously present)

Key Error Resolved
This PR addresses the following error that occurred after upgrading to JDK 17:
[ERROR] org.apache.ambari.server.controller.internal.RecommendationResourceProviderTest.testCreateConfigurationResources -- Time elapsed: 0.761 s <<< ERROR!
java.lang.ClassCastException: class jdk.proxy2.$Proxy42 cannot be cast to class [Ljava.lang.Object; (jdk.proxy2.$Proxy42 is in module jdk.proxy2 of loader 'app'; [Ljava.lang.Object; is in module java.base of loader 'bootstrap')

Possible Reasons for the Error
The error likely occurs due to changes in how JDK 17 handles dynamic proxies compared to JDK 8:

Module System: JDK 17 uses a stronger module system, which can affect how classes from different modules interact.
Proxy Implementation: The way proxies are implemented has changed in JDK 17, leading to incompatibilities with older mocking frameworks.
Class Loader Differences: The error message indicates a mismatch between class loaders, which is more strictly enforced in JDK 17.
EasyMock Compatibility: EasyMock may not be fully compatible with JDK 17, especially when it comes to creating proxies for array types.

Migrating to Mockito, which is actively maintained and compatible with JDK 17, should resolve these issues.
How was this patch tested?

unit tests have been updated and pass

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.

@virajjasani Could you help review this pr?


Add step for next

Animated for bottom item
Platforms affected
What does this PR do?
What testing has been done on this change?
Tested features checklist

[ ] Default setup (example)
[ ] Carousels with and without momentum enabled (prop enableMomentum)
[ ] Vertical carousels (prop vertical)
[ ] Slide alignment (prop activeSlideAlignment)
[ ] Autoplay (prop autoplay)
[ ] Loop mode (prop loop)
[ ] ScrollView/FlatList carousels (prop useScrollView)
[ ] Callback methods
[ ] ParallaxImage component
[ ] Pagination component
[ ] Layouts and custom interpolations

@navata You need to completely fill in the PR template for your PR to be reviewed, otherwise it will just be closed.


PHP 8.1 Compatibility

Feature Description
PHP 8.1 is coming.

The first generally available (GA) version of PHP 8.1 will be released on 25th of Nov, 2021.

With feature freeze soon.

PHP 8.1 feature-freeze is currently scheduled for 20th of July, 2021.

With any luck, our plugin will just work, but we need to validate, dev envs, CI and plugin functionality.
Alternatives Considered

Additional Context

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Related: #8607

Current status:

#8607 fixes 1 tiny compat issue in our code base
https://github.com/ampproject/amp-toolbox-php/issues/362 needs to be resolved
There are also a bunch of warnings caused by core

So nothing major really. Once the latter two issues are resolved, we should be in very good shape.

I don't think anything is left to be done here.

Unfortunately the Requests upgrade in core was reverted, so there are tons of deprecation warnings again until at least WordPress 6.0
https://github.com/google/web-stories-wp/runs/4449009574?check_suite_focus=true


fix: average coverage

fixes: https://github.com/fastlane-community/xcov/issues/168

when MR this branch??


allow intra-service api communication via JWTSECRET directly

Currently requests to the API are allowed via JWT tokens. For intra-service communication we create an admin token that is used then by every service to talk to the api.
Unfortunately this makes bootstrapping of a new Lagoon very hard, as you need the Lagoon system running in order to create a new JWT token, but in the very first stages we don't have Lagoon running yet :)
So my idea would be to also allow communication to the API via JWTSECRET directly. As we distribute the JWTSECRET to all Services already, they could just use that to talk to the API.

Ideal solution:

HTTPS / TLS signature check -> If okay, accept requests without JWTSecret

Quick way:

Extract /services/auth-server/src/jwt.js in the common packages
Write a small script taking process args for using the createJWT function with shared secret
use the script in the openshift related hooks (deploy, remove, etc.)

implemented and tested, works perfectly :)


Critical CVE in go-restful CVE-2022-1996

Authorization Bypass Through User-Controlled Key in GitHub repository emicklei/go-restful prior to v3.8.0.
Our scanners found CVE-2022-1996, this is an authorization issue with the go-restful module.
What is the impact of this CVE on ArgoCD and can it be fixed?
The images containing the CVE are:
gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/controller
gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/webhook
gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/kubeconfigwriter
gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init
gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/entrypoint
gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter

Retrieval of a user record occurs in the system based on some key value that is under user control. The key would typically identify a user-related record stored in the system and would be used to lookup that record for presentation to the user. It is likely that an attacker would have to be an authenticated user in the system. However, the authorization process would not properly check the data access operation to ensure that the authenticated user performing the operation has sufficient entitlements to perform the requested data access, hence bypassing any other authorization checks present in the system. For example, attackers can look at places where user specific data is retrieved (e.g. search screens) and determine whether the key for the item being looked up is controllable externally. The key may be a hidden field in the HTML form field, might be passed as a URL parameter or as an unencrypted cookie variable, then in each of these cases it will be possible to tamper with the key value. One manifestation of this weakness is when a system uses sequential or otherwise easily-guessable session IDs that would allow one user to easily switch to another user’s session and read/modify their data.
https://avd.aquasec.com/nvd/2022/cve-2022-1996/

I believe this package is only depended on at development-time, and not at runtime. It seems to be used via kubernetes code generation.
$ go mod why ./cmd/controller github.com/emicklei/go-restful
github.com/tektoncd/pipeline/hack/spec-gen
k8s.io/kube-openapi/pkg/common
github.com/emicklei/go-restful

As such, I believe the vulnerability doesn't affect users of Tekton. I also don't believe the vulnerability affects Tekton's CI usage, since code is expected to be generated by developers, and is only checked by CI. The CI environment's configuration isn't under user control until it's been code reviewed by 2+ Tekton maintainers.
That being said, we should track whatever dependencies need to be updated so we don't depend on a vulnerable version of the package at all, so we can be totally sure we're unaffected.


Add Readme

Add Readme file. Here is a preview:
Let me know if you want any changes.

@all-contributors please add @trybick for doc


[AutoRelease] t2-mysqlflexibleservers-2024-11-05-47456(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/5675
Recording test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=7156

issue link:https://github.com/Azure/sdk-release-request/issues/5675


Update calicoctl version command reference doc

Description
Updates for changes in https://github.com/projectcalico/calicoctl/pull/1687
Fixes #940

lgtm


Install Problem

Can't be installed after HA 2022 update

in order to assist I need a lot more details


Added the travis config and some tests.

@sjlangley I just added simple tests for docker build and PHP version change capability.
I'd appreciate it if you could take a look.

lgtm

Thanks!


Wrong instructions

Step 2 is not possible, because the sync option is not available in SharePoint admin center (anymore).
Instead, we have to go to OneDrive Admin Portal.
thx,
Miguel

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a62d5896-3262-b49f-aeb1-2fe8aceed122
Version Independent ID: bc621edd-c309-1ccb-bfb8-104eae7204fb
Content: Allow syncing only on computers joined to specific domains - OneDrive
Content Source: OneDrive/allow-syncing-only-on-specific-domains.md
Service: one-drive
GitHub Login: @kaarins
Microsoft Alias: kaarins

@miguelrodriguezeicke Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

The step is actually available in SharePoint admin center, you just have to click settings on the left menu, then the sync option will appear. I just made a PR for it.

Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Camera image not working on Nexus 4 and Nexus 5

The image uri comes null for nexus 4 and nexus 5 after clicking a picture.
Reason : getPickImageResultUri(Intent data) is returning null.
The intent doesn't have MediaStore.ACTION_IMAGE_CAPTURE, so the isCamera becomes false. also the intent in not null

The solution that worked for me is
/**
     * Get the URI of the selected image from  {@link #getPickImageChooserIntent()}.<br/>
     * Will return the correct URI for camera  and gallery image.
     *
     * @param data the returned data of the  activity result
     */
    public Uri getPickImageResultUri(Intent  data) {
        boolean isCamera = true;
        Uri dataUri = null;
        if (data != null) {
            String action = data.getAction();
            isCamera = action != null && action.equals(MediaStore.ACTION_IMAGE_CAPTURE);
            dataUri = data.getData();
        }

        if (!isCamera) {
            if (dataUri != null) {
                return dataUri;
            }
        }
        return getCaptureImageOutputUri();
    }

I don't understand the scenario.
Did you use camera or gallery?
If camera, is it the standard camera app?
How did you create the pick intent?
What Android version you used?

I have added the check for if data.getData() is null as it make sense, thx.
but I do want to know what the data object looks like.

data just has this {} empty intent, nothing in it

damn Android, I saw so many variations for different devices and versions..
Thank you for your contribution

@ArthurHub I guess we can make it more generalised, if rather than creating a chooser intent, first fire an intent which will get all the gallery intents, then get all camera intents.
We can than manually add request codes to that and process response accordingly. Just a thought not sure how feasible it is. But then we don't have to worry about checking Uri and making assumption that it came from camera/gallery


Support deleting issue instead of closing issue

If a teacher deletes a task from the tests repository, e.g., to reduce the workload, we currently close the issue and mark it as deleted in the database. However, we recently added a new DeleteIssue function that depends on the graphql-based GitHub API. Thus, we can now implement proper deletion of the issue instead of closing the issue, in response to a teacher deleting a task from the tests repository.

Deleting issues seem to require special permissions:

Allowing people to delete issues in your organization
Deleting an issue

It is unclear if enabling these permissions via an API call is possible. But deleting issues can be enabled manually, as explained in the first link above. The URL to navigate to will be:

https://github.com/organizations/qf101/settings/member_privileges

where qf101 is the organization's name.
Deleting issues using an organization owner's personal access token works fine, but not for an app. The returned error would look something like this:
failed to delete issue 941 in meling-labs: Viewer not authorized to delete

One possibility is that the App's "user" (e.g., quickfeed-uis) must be an organization owner. However, this has yet to be tested.
Another possibility is to use the course creator's personal access token to perform delete issue operations.


incorrect displaying of some jpegs

This file (md5: 2314425c399561cb6d75f7aa3c8eeab7) is displaying incorrectly in subsampling-scale-image-view (and can't reproduce this bug in other apps).
It looks like this:

What could be the reason?

I have extracted the bitmap decoding into an interface to allow an alternative decoder to be easily substituted in. A basic implementation built on RapidDecoder is included in the sample library, and it displays this image properly. See the updated README for more details.


Add Scroll Progress Bar to Enhance User Experience

I would like to propose adding a scroll progress bar at the top of the webpage to improve user experience. The progress bar will provide visual feedback to users about how much of the page they have scrolled through and how much content remains, especially useful for long pages.

#397 is same


[bug]: is it a typo in pytorch_parser.py

file mmdnn/conversion/pytorch/pytorch_parser.py, line number 459, it should be
kwargs['pooling_type'] = 'AVG'
instead of
kwargs['pooling_type'] = 'MAX'
right?

Hi @qigtang ,
Cool!  Thank you for supporting MMdnn!


Special postal codes not handled

Hi,
Saw that the version 0.2.0 was out and that it had migrated from JSON to Sqlite. I've never used a Python library that does that (not that I am aware) nor packaged one. So decided to try and see if that worked, if that'd be slow, etc.
Installation was super smooth :+1: no issues found.
Then decided to test with a random address. Picked Tamana/Kumamoto (my distant family hometown), then googled a random address, and found this website: https://www.town.nagasu.lg.jp/default.html
The footer of the page contains: " 〒869-0198  熊本県玉名郡長洲町大字長洲2766番地   Tel:0968-78-3111   Fax:0968-78-1092"
I got the postal code, and tried the following code:
>>> import posuto
>>> posuto.get('〒869-0198')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/venv/lib/python3.8/site-packages/posuto/posuto.py", line 52, in get
    base = dict(_fetch_code(code))
  File "/tmp/venv/lib/python3.8/site-packages/posuto/posuto.py", line 21, in _fetch_code
    raise KeyError("No such postal code: " + code)
KeyError: 'No such postal code: 8690198'
>>>

Searching the same postal code on Google.co.jp returns the right location on the map.

Not sure how to provide a pull request, but thought it could be useful to report this missing postal code?
Anyway, great library, and nice trick of including an sqlite DB, might come in handy some day.
Thanks!
Bruno

Glad you had no trouble with the library except for the missing code!
This had me puzzled for a while, but it turns out this is a special postal code, known as a 大口事業所個別番号. So it seems it's only used for that one building. You can read more about the codes here:
https://www.post.japanpost.jp/zipcode/dl/jigyosyo/readme.html
If you use the general JP Post postal code search you'll see there's no result.
https://www.post.japanpost.jp/cgi-zip/zipcode.php?zip=869-0198
These special postal codes are provided in a separate CSV file that I haven't added to posuto. I guess I should work on doing that...

Ah, makes sense. I searched for the Sky Tree (〒131-8634) and it also didn't return anything (posuto or Japan Post). #TodayILearned.

Yes, it would be great if you could parse jigyosyo.csv [0] and add this information to the library.
[0] https://www.post.japanpost.jp/zipcode/dl/jigyosyo/readme.html

Did not work on this this month, I'll look at it again next month.

Did not work on this this month, I'll look at it again next month.

OK, I think this is working in the latest release, v0.4.0.
It turns out the data for these codes is different enough that converting it into the same format as normal postal codes doesn't make sense, so I just return them with a completely different structure. The JSON data is saved in a separate file.
Some other things about these codes:

it's possible for the same company to have up to three codes at the same address. Meaning of this is unclear.
It's common for multiple companies to share the same postal code (this always has the same physical address).
Because companies can request their code be unlisted, posuto can not tell for sure if a code is valid or not.
The JP Post page isn't explicit but the JIS codes are presumably from jisx0402.

I have used the term "company" above, but technically the organizations that get codes can be government offices or other organizations.
Also noting this here because it was hard to understand, but while the postal data uses five-digit JIS codes, the reference page uses six digit codes everywhere. Turns out the sixth digit is a check digit that's calculated in an odd way.

It turns out the data for these codes is different enough that converting it into the same format as normal postal codes doesn't make sense, so I just return them with a completely different structure. The JSON data is saved in a separate file.

Sounds really tricky to handle these codes.

I have used the term "company" above, but technically the organizations that get codes can be government offices or other organizations.

:+1:

Also noting this here because it was hard to understand, but while the postal data uses five-digit JIS codes, the reference page uses six digit codes everywhere. Turns out the sixth digit is a check digit that's calculated in an odd way.

How did you figure it out? Had a look at that page (with my broken Japanese) and couldn't see an explanation of how to parse that code in the page or PDF files. :nerd_face:
It's working for me now :+1:
(venv) kinow@ranma:/tmp$ pip install -U posuto
Collecting posuto
  Downloading https://files.pythonhosted.org/packages/af/97/8626d71e45e3f38bec91dd7558acd9b40246892aa66ce16531296a58e708/posuto-0.4.0.tar.gz (6.7MB)
     |████████████████████████████████| 6.7MB 1.3MB/s
Installing collected packages: posuto
  Running setup.py install for posuto ... done
Successfully installed posuto-0.4.0
WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) kinow@ranma:/tmp$ python
Python 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import posuto
>>> posuto.get('〒869-0198')
OfficeCode(jis='43368', kana='ナガスマチヤクバ', name='長洲町役場', prefecture='熊本県', city='玉名郡長洲町', neighborhood='大字長洲', banchi='2766', postal_code='8690198', old_code='86901', post_office='長洲', type='office', multiple=False, new=False, alternates=[])
>>>

How did you figure it out? Had a look at that page (with my broken Japanese) and couldn't see an explanation of how to parse that code in the page or PDF files.

Well, first I checked what jisx0402 was. That led me to the reference page, which doesn't use the term jisx0402, and I saw it was all six digit codes. Then I checked the Wikipedia article and that mentioned the check digit, but when I calculated the check digit for the first entry in the offices file it didn't match up. Then I found the README on the reference page, which has some special rules about the check digit buried in it, and then it matched up and I was able to confirm the codes were the same.
It is not well organized data. :/
Closing since this seems to work for now.

Thanks for fixing and for the explanation. Kudos on the detective work!!!


Navbar not working in<EMAIL_ADDRESS>"vnode is undefined"

Hi! I'm using the Navbar component like so:
fiddle: https://jsfiddle.net/oLh7ho2v/1/
var App = {
 components: {navbar: VueStrap.navbar},
 template: '<navbar type="default" placement="top">Brand</navbar>'
}

This works with<EMAIL_ADDRESS>(and wffranco/vue-strap@2.0.0-pre.4), but not with<EMAIL_ADDRESS>and wffranco/vue-strap@2.0.0-pre.6). I got the following error:
TypeError: vnode is undefined[Learn More]  build.js%20line%20809%20%3E%20eval:4064:26
	createElm http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4064:26
	createChildren http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4173:9
	createElm http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4098:9
	createChildren http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4173:9
	createElm http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4098:9
	createChildren http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4173:9
	createElm http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4098:9
	patch http://localhost:8083/dist/build.js%20line%20809%20%3E%20eval:4518:7
	lifecycleMixin/Vue.prototype._update http://localhost:8083/dist/build.js%20

That fiddle give me a different error. I'm using chrome.
Noticed that cause a lot of error between different versions of vue 2... I think I will make some test.

I think this is a Vue bug. I tracked it down to this situation:
The parent vnode is the navbar-header element. It has 5 children, but children[2] is undefined (in red below). This is what causes the problem. Note that the first children seem to have worked OK; children[0] is the button.navbar-toggle.collapsed element.

The second child is (I think) a whitespace between the <button> and the <slot name="collapse">.
The third child should be the <slot name="collapse">, but is undefined.
I don't know how these children were found... maybe it has something to do with the v-if="!slots.collapsed" in that file?

@stnever I mean that when I compile vue-strap for some version (example 2.1.6) this don't work with vue 2.0 and not with 2.1.8 ... and if I compile again with vue 2.1.8 then don't work in 2.1.6 ...
Must be something with the vue-strap compilator, don't know if is webpack or something else.

@wffranco When it will work for 2.1.8? Maybe make different branches for different Vue versions as temporary fix?

This is working for me in vue 2.1.10


During multiple drag and drop processes, part of the text will be lost

Precheck

[ ] Do a quick search and make sure the bug has not been reported yet.
[ ] Please disclose security vulnerabilities privately at<EMAIL_ADDRESS>[ ] Finally, be nice and have fun!.

Description
A clear and concise description of what the bug is.
Environment

Editor.js version:
Plugins you use with their versions:
Device, Browser, OS:

Current behavior
Include code samples, errors and stack traces if appropriate.
If reporting a bug, please include the reproducing steps.
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

@chenguzhen87 Thanks for the report, A new version was released to solve this issue in a proper way (v1.1.2)


feat: Add SBOM to docs

Description

Adds info on SBOM to docs
Related Tickets & Documents

closes #369
Mobile & Desktop Screenshots/Recordings

Steps to QA

Go to /features/repo-pages/

Tier (staff will fill in)

[ ] Tier 1
[ ] Tier 2
[ ] Tier 3
[x] Tier 4

[optional] What gif best describes this PR or how it makes you feel?

Should we mention that it currently only supports repositories with a package.json (JavaScript/TypeScript` repos?


Limit maximum size of Hypnotoad worker pool

Adds support to specify maximum size of Hypnotoad worker pool. It can help to prevent creating too high number of workers by TTIN signals.

Makes no sense to me, the program sending TTIN signals should have this limit.

I'm just assuming you sent this pull request to start a discussion, since it has no unit tests.


Which file to decide that  use  the BaseStreamSource.cpp  or  UrlSource.cpp???

in AVS Device SDK,
in source code, i just see the MediaPlayerInterface  own BaseStreamSource.cpp  and UrlSource.cpp two types source.
But  Can i know that which source code to decide that use BaseStreamSource.cpp  or UrlSource.cpp??

Hi @captainpanther,
There are actually three different source classes:

AttachmentReaderSource : BaseStreamSource
IStreamSource : BaseStreamSource
UrlSource

UrlSource is deprecated and will mostly likely be removed in a future release. It's not currently used anywhere. Its purpose has been replaced by a combination of the AttachmentReaderSource and HTTP content retrieval classes.
However, those should not be confused with the sources that MediaPlayer supports. The MediaPlayerInterface (and our implementation) currently support three different sources:

SourceId setSource(std::shared_ptravsCommon::avs::attachment::AttachmentReader attachmentReader);
SourceId setSource(std::shared_ptrstd::istream stream, bool repeat);
SourceId setSource(const std::string& url, std::chrono::milliseconds offset = std::chrono::milliseconds::zero());

Hope this helps.

Thank ur reply, but i want to know which file  decide to use  BaseStreamSource.cpp or UrlSource.cpp in source code project.
is MediaPlayerInterface ?

BaseStreamSource.cpp


Etcd synchronize

// Describe your PR here; eg. Fixes #1545

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #1568 (b69901d) into master (ecb8b85) will decrease coverage by 1.39%.
The diff coverage is 20.16%.

@@             Coverage Diff              @@
##             master    #1568      +/-   ##
============================================
- Coverage     64.15%   62.75%   -1.40%
+ Complexity     2239     2228      -11
============================================
  Files           450      453       +3
  Lines          9394     9492      +98
  Branches        948      958      +10
============================================
- Hits           6027     5957      -70
- Misses         2894     3060     +166
- Partials        473      475       +2

Impacted Files
Coverage Δ

...che/shenyu/admin/config/DataSyncConfiguration.java
50.00% <0.00%> (-26.93%)
:arrow_down:

.../apache/shenyu/admin/listener/etcd/EtcdClient.java
0.00% <0.00%> (ø)

...min/listener/etcd/EtcdDataDataChangedListener.java
0.00% <0.00%> (ø)

...pache/shenyu/admin/listener/etcd/EtcdDataInit.java
0.00% <0.00%> (ø)

...e/shenyu/common/constant/DefaultPathConstants.java
88.88% <0.00%> (ø)

...stener/zookeeper/ZookeeperDataChangedListener.java
94.28% <100.00%> (ø)

...yu/admin/listener/zookeeper/ZookeeperDataInit.java
90.00% <100.00%> (ø)

.../sync/data/zookeeper/ZookeeperSyncDataService.java
75.25% <100.00%> (ø)

...enyu/client/tars/TarsServiceBeanPostProcessor.java
34.66% <0.00%> (-56.00%)
:arrow_down:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
66.66% <0.00%> (-27.78%)
:arrow_down:

... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ecb8b85...b69901d. Read the comment docs.


Enabling of AppArmor feature by default in Security Profile Operator

Requirement :
Enabling AppArmor feature by default in Security Profile Operator installation.
Current behavior is that we have to first install the Security Profile Operator , after then we have to patch the spod with appararmor flag to turn on the apparmor feature.
In our project, we will be always using the AppArmor feature by default whenever we are installing the Security Profile Operator on K8S.
In short, the requirement is when SPO is installed apparmor is enabled whereas seccomp , selinux will be disabled by default.
Hence this feature request.
cc: @pjbgf

I propose we expand our helm chart to expose values to enable users to manage the SecurityProfilesOperatorDaemon config, so that users can toggle what's deployed more easily via three new values: enableSelinux, enableLogEnricher and enableAppArmor.
In terms of deploying components by default, both SELinux and AppArmor have underlying requirements at the worker nodes, so I think it would make sense to be an explicit decision from users when to enable each one of them. Arguably, even the log enrichment feature would just keep failing if the path to the audit logs is not correctly set.
Overall, I think users would benefit by having as straightforward deployment experience as possible. But at the same time, I would rather default to not running components, than to have the possibility of users getting errors (or crashing components) as their first experience with the SPO.
Any thoughts on this @JAORMX @saschagrunert @jhrozek?

@pjbgf I agree! We also cannot automate it away since worker nodes would come with different configurations. We could still improve by pre-checking which features are supported on which nodes and then report the result somehow to the end users. Maybe this is worth another investigation.

On Sun, Nov 27, 2022 at 12:08:01AM -0800, Paulo Gomes wrote:

Any thoughts on this @JAORMX @saschagrunert @jhrozek?

I agree. In terms of enabling a feature at deployment time (which from
the user's POV would be the same as feature enabled by default), at
least OLM allows you to set an environment variable during installation,
so if the feature can be enabled via an env var, then that's all that's
needed.

@pjbgf We are on a verge of packaging SPO in our project. Wanted to know an approx. schedule for this issue closure.

Hi @pjbgf ,
Can you point out the location (which file) under helm charts to add the enableAppArmor: true parameter ?
Also, let us know how spod and security-profiles-operator pods are getting deployed as i didnt find their instances under template deployment.
I have tried adding default: true in crd.yml under
enableAppArmor:
description: tells the operator whether or not to enable AppArmor
support for this SPOD instance.
type: boolean
default: true
this is not enabling the apparmor during the helm chart install.

@rahulroshan-kachchap nice one, thank you for working on this. I added some comments on the PR itself, but basically once the commits are squashed we should be good to merge it. :+1:

Added my comments on the feature request issue: https://github.com/kubernetes-sigs/security-profiles-operator/issues/1399.


Name resolution failed for target dns:gateway.pad-local.com:31527

14:46:55 VERB StateSwitch  on(pending) <- (false)
Error: 14 UNAVAILABLE: Name resolution failed for target dns:gateway.pad-local.com:31527
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
code: 14,
details: 'Name resolution failed for target dns:gateway.pad-local.com:31527',
metadata: Metadata { internalRepr: Map(0) {}, options: {} }
}
14:47:06 ERR Wechaty start() exception: 14 UNAVAILABLE: Name resolution failed for target dns:gateway.pad-local.com:31527

服务器DNS解析问题。


Edit the fields of Person class

Fixes #18
Edit the fields of Person class to accommodate module field and remove redundant fields

Codecov Report

Merging #62 (689c365) into master (39b3cc0) will decrease coverage by 4.32%.
The diff coverage is 97.14%.

@@             Coverage Diff              @@
##             master      #62      +/-   ##
============================================
- Coverage     72.15%   67.83%   -4.33%
+ Complexity      399      394       -5
============================================
  Files            70       78       +8
  Lines          1232     1315      +83
  Branches        125      131       +6
============================================
+ Hits            889      892       +3
- Misses          311      392      +81
+ Partials         32       31       -1

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/AddCommand.java
100.00% <ø> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
20.00% <ø> (ø)

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...java/seedu/address/logic/commands/EditCommand.java
96.72% <100.00%> (-0.30%)
:arrow_down:

...a/seedu/address/logic/parser/AddCommandParser.java
100.00% <100.00%> (ø)

...ain/java/seedu/address/logic/parser/CliSyntax.java
80.00% <100.00%> (-3.34%)
:arrow_down:

.../seedu/address/logic/parser/EditCommandParser.java
91.66% <100.00%> (-0.65%)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
96.77% <100.00%> (-0.45%)
:arrow_down:

...c/main/java/seedu/address/model/person/Module.java
80.00% <100.00%> (ø)

...c/main/java/seedu/address/model/person/Person.java
95.12% <100.00%> (-2.50%)
:arrow_down:

... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36e03d6...689c365. Read the comment docs.


Unify creating issues in ASReview repositories

Feature Request
Is your feature request related to a problem? Please describe.
Currently, some repositories (e.g https://github.com/asreview/asreview/issues/new/choose) have issue templates while others do not (e.g https://github.com/asreview/asreview-wordcloud/issues/new). So there is not one clear way of reporting/handling issues.
Describe the solution you'd like
Add the same templates to all repositories if possible. Exceptions should be kept to a minimum to lower the overhead for managing those templates.
Describe alternatives you've considered
Somehow direct all issues to one repository while this might be confusing to the community and users.
Teachability, Documentation, Adoption, Migration Strategy
We can then just open an issue in any repository and the process is unified. There is nothing extra that the user should do, really. It would just look the same across the organisation, also helping the community manage those repositories more uniformly.

Yes, sounds like a good plan. I prefer to improve the existing template first.
For example the version information: We can add something like "Run asreview -h and copy-paste the output here". This is more generic because it also works for the extensions.
I'm assigning you to this issue.

Hi all,
I have collected the currently used templates into a Google Docs document for editing: Internal GDoc.
Can you make your additions there, @J535D165? After that, we can move forward with populating all the repositories in the organisation.


DO NOT MERGE - DirectoryWatcher rewrite

This is the LGTM'd version of DirectoryWatcher that is about to land upstream.
https://reviews.llvm.org/D58418
Also contains suggestion of how to adapt IndexStore to changes in DW's interface:

new kinds of events
events no longer contain modification time

This branch is just for review - the DirectoryWatcher will land upstream.

@swift-ci Please test


Limit color scale heat map

Description of feature
Good day,
Thanks for implementing this in python. The speed is mindblowing. I would like to limit the color scale of the heatmap to enhance the areas with iCNV. However when using vmax and vmin I get and error (ValueError: Passing both norm and vmin/vmax/vcenter is not allowed.) do you have a way to do it, please?
Thanks again

So the issue is that I pass a custom norm to the matrixplot function:
https://github.com/icbi-lab/infercnvpy/blob/bab74f1115c8b26c27f14ee6e70cc1900c544644/src/infercnvpy/pl/_chromosome_heatmap.py#L70
It would be easy to add a check to the function that only uses the TwoSlopeNorm if no vmax or vmin is set (happy to accept a PR), or allow to pass a custom norm to the function.

Hi, thanks for you work! Did you add the check? I really need it now.

I currently don't have time to look into this, feel free to submit a PR!