Stream mono -> process -> Stereo

I don't understand well how to extract the samples of the Net.
My Net has a stream as An(InputNode) as input, I split the mono channel to stereo channel but to get the setreo sample it's not possible.
Indeed, backend.get_stereo() allow only mono channel in input.
Do I have to write my Unit to process my stream input with backend.process(..) ?
To sum up, here is what I want:
  let input = InputNode::new(receiver);

  let (left_amp, right_amp) = (shared(1.0), shared(1.0));

  let mut net = Net::wrap(Box::new(An(input)));

  net.set_sample_rate(sample_rate);

  // Stereo effects
  let output_node = net.chain(Box::new(
      (pass() * var(&left_amp)) ^ (pass() * var(&right_amp)),
  ));
  println!(
      "Output node: {:?}",
      (sine() >> (pass() * var(&left_amp)) ^ (pass() * var(&right_amp))).outputs()
  );
  net.check();

let mut backend = net.backend();
let mut next_value = move || assert_no_alloc(|| backend.get_stereo()); // Here get the 2 differents channels and not duplicate stereo

Hi! get_stereo expects the Net to have no inputs. If you have an input then where is the data coming from? In any case, you can use the tick method for processing single samples. The following works for 1 input and 2 outputs.
let input = [0.0];
let mut output = [0.0, 0.0];
net.tick(&input, &mut output);
// Now output contains the two output samples.

Thank you for the clarification.


feat!: Add ip_address_type to target group resource, bumped AWS provider version

Description

Adds the ip_address_type resource to the aws_lb_target_group resource so you can specify ipv6 targets.
Motivation and Context

I have a need to create an ipv6 only target group, and the module didn't currently have that ability while AWS did.
Breaking Changes

How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ ] I have tested and validated these changes using one or more of the provided examples/* projects

[x] I have executed pre-commit run -a on my pull request

@antonbabenko The minimum version has been updated to 4.27.0 .

This PR is included in version 8.0.0 :tada:


General: Text Alignement w/ Labels and TextButtons

Until now, this is quite an annoying process to correctly align a text with another object.
For example in Game 1, the alignment between an enemy texture and it's name. Only patience and hardcoding values for the text bounds (x, y, width, height) works until now. It makes it hell to correctly place the text or even use a ImageTextButton. Indeed without using borders, the image is scaled to exactly fits the text space. To add padding between the text and the texture, the dev has to play with the values of width and height of the button, thus making it nightmare each time the text length needs to be changed, as there's no convenient way to know the space in pixel needed taken by the text.
Therefore, a few methods should be added to handle this problem better :

Write two methods to get the length and width of a text following a certain font (and there are many, therefore it needs to be generic).
A method to know the position in x and y of the label/button for a certain padding. By padding, i mean the definition used in CSS code
A method to align two elements, supposing the first one is unmovable and the second is our text. Thus the bounds (x, y, width, height) of the first element are known

For convenience, these methods should be added in a new class, for example AlignmentHelper.

A first version of such methods has been implemented, but it appears that the texts are usually not correctly centered. They are a bit too close to the right border of the screen.


XCode 8.3 M_Pi Warnings

There's a lot of warnings with using M_Pi. Can you release a new version with the warnings fixed? Thanks!

@ndduong97: Please check #128.


⚠ Bofrost.nl has degraded performance

In 460896d, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 951 ms

Resolved: Bofrost.nl performance has improved in e623f3b.


Increase the timeout for e2e tests that result in Maven resolution

What is the purpose of this change? What does it change?
Downloading dependencies from Maven can be very slow due to the high
amount of artifacts involved. A small increase in network lag or a
decrease in bandwidth could result in the tests failing
Was the change discussed in an issue?
No. But e2e tests have been failing a lot lately and this might improve the situation
How to test changes?
CI should pass

:white_check_mark: odo build 1475 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/ca39879386 by @geoand)

Unfortunately it seems like Travis hasn't even started the tests...

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Either the error message is wrong (hardcoded duration) or the timeout didn't take effect (or is not enough).

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Either the error message is wrong (hardcoded duration) or the timeout didn't take effect (or is not enough).

This seems to indicate a very slow build on the cluster side. Not sure what we can do about that... @kadel  @jorgemoralespou any ideas?

Actually the error is coming from Travis since it hasn't detected anything in the output.

:white_check_mark: odo build 1483 completed and artifacts can be found here (for commit https://github.com/redhat-developer/odo/commit/d3145d933b by @geoand)

Closing as #1302 should be the proper solution


xgboost hist

Hi @hcho3,
I'm happy to find that you are the author of hist updater, I have a question here.
My classmates said that the hist is suitable for single worker. So my question is does hist suitable for nworker > 1 ? Can you explain whether hist updater has any limit? Thanks!
Bests,
Yuanda

Hi Yuanda:
The hist updater currently does not support distributed training, so it is only suitable for a single node.
Ps. We recently created a policy to forward all general discussions to the user forum https://discuss.xgboost.ai/. Feel free to post any follow up questions there.


unified theming and themes by language code

we can potentially enhance it later to do country specific locale based themes such as en_US instead of just en but for now language code is enough.
Themes:
  - Common
  - PrimaryTheme:
      default: true
  - SecondaryTheme
  - RTLTheme

LocaleThemes:
  en:
    - SecondaryTheme:
        default: true
    - PrimaryTheme
  ur:
    - RTLTheme
    - PrimaryTheme
  ar:
    - RTLTheme

logic:

if locale themes have been specified, find the themes for the current language code.
If the currentTheme (if any) is in the list of themes for the language, don't do anything. This is to make sure if the user changes a language dynamically, we don't change the theme on the user as long as the current theme is in the list of allowed themes for that language
if not, switch the theme to the default for that language

Unifying Flutter and Ensemble Themes

Existing App/Screen/Widgets etc will continue to be supported outside themes but deprecated
App and Screen will be included within the Theme definition and will work as-is
fontFamily can be defined at the App level and will be inherited by all text everywhere including button labels, input field labels etc. But can be overwritten at the widget level
Color will come under App
Widgets tag will be removed (when under Theme) and widgets will be processed directly such as Button, Text etc by the ThemeLoader. ThemeLoader will pick the properties that it understands for each widget.
inheritance, overwrites, ID and class based styles will continue to work as-is. ID and class based styles overwrite what's defined at the App/Screen/WidgetName level

cc @vusters @amin-nas working on the above design. kindly review to see if it meets the needs or needs changes?

@kmahmood74 what is the motivation for tying locale and theme together? Is it not enough for for a user to specify the theme and locale separately, but together? e.g. ensemble.setTheme, ensemble.setLocale? On first review, seems like a very narrow solution.

@kmahmood74 what is the motivation for tying locale and theme together? Is it not enough for for a user to specify the theme and locale separately, but together? e.g. ensemble.setTheme, ensemble.setLocale? On first review, seems like a very narrow solution.

The whole LocaleThemes section is optional. It is there only for use cases where customers want to define different theme per locale.
Different locales especially the LTR vs RTL languages have different fontFamilies, fontStyles and sizes that are captured as themes. That's the customer's requirement. The issue with doing this in ensemble code is that you are doing it at runtime which essentially means that you are assigning a wrong theme through configuration and then flipping it in code.
It is better to do this at the config level so that ensemble can detect the system locale and automatically apply the right theme instead of applying the wrong one first and then flipping it in code. That was the rationale behind it.

sample -
# define your app theme here

Themes:
  # - Common
  - PrimaryTheme:
  - SecondaryTheme
  - RTLTheme:
      default: true

LocaleThemes:
  en:
    - SecondaryTheme:
        default: true
    - PrimaryTheme
  ur:
    - RTLTheme:
        default: true
    - SecondaryTheme
  ar:
    - RTLTheme

Common:
  Tokens:
    Colors:
      primary:
        '900': '#1A2A4C'
        '800': '#243B6A'
        '700': '#2F4D89'
        '600': '#0077B8'
        '500': '#0092E0'
        '400': '#33B8FF'
        '300': '#70CDFF'
        '200': '#ADE4FF'
        '100': '#D6F1FF'
        '50': '#EBF5FF'
        'red': red
        'blue': blue
        'green': green
        'black': black
  Styles:
    App:
      textStyle:
        fontFamily: Montserrat
        fontWeight: 'w500'
        fontSize: 80
      textScale:
        maxFactor: 5
    Colors:
      primary: green

    Transitions:
      page:
        type: bottomToTop
        duration: 4
    Screen:
      loadingBackgroundColor: blue
      backgroundColor: black
      Header:
        backgroundColor: black
    Button:
      backgroundColor: ${Colors.green}
      labelStyle:
        fontSize: 80
    # .submitButton:
    #   backgroundColor: green

PrimaryTheme:
  label: Primary Theme
  description: This is the primary theme
  #inheritsFrom: Common
  Styles:
    App:
      fontFamily: Qwitcher Grypen
      # textScale:
      #   maxFactor: 10
    Text:
      textStyle:
        fontSize: 40

    Colors:
      primary: red

    Transitions:
      page:
        type: bottomToTop
        duration: 4
    Screen:
      loadingBackgroundColor: orange
      backgroundColor: green
      Header:
        backgroundColor: blue
    Button:
      labelStyle:
        fontSize: 40
    Input:
      labelStyle:
        color: orange
        fontSize: 40
        fontFamily: Roboto
      hintStyle:
        color: red
        fontSize: 30
        fontWeight: bold
        fontFamily: "Dancing Script"

SecondaryTheme:
  label: Seconday Theme
  description: This is the secondary theme
  #inheritsFrom: Common
  Styles:
    App:
      fontFamily: "Dancing Script"
      textScale:
        maxFactor: 10
      textStyle:
        fontWeight: 'w500'
        fontSize: 40
        color: black

    Colors:
      primary: black

    Transitions:
      page:
        type: bottomToTop
        duration: 4
    Screen:
      loadingBackgroundColor: yellow
      backgroundColor: grey
      Header:
        backgroundColor: black
    # Text:
    #   textStyle:
    #     fontSize: 40
    Button:
      backgroundColor: red
      labelStyle:
        fontSize: 40

    Checkbox:
      borderColor: green
      fillColor: orange
      borderWidth: 50
      labelStyle:
        fontSize: 100
    Input:
      hintStyle:
        fontSize: 90
        fontWeight: bold
        fontFamily: Crimson Pro
      labelStyle:
        fontFamily: Dancing Script

RTLTheme:
  label: Theme for RTL languages such as Urdu, Arabic etc
  description: This is the secondary theme
  #inheritsFrom: Common
  Styles:
    App:
      fontFamily: "Pacifico"
      textScale:
        maxFactor: 10
      textStyle:
        fontWeight: 'w500'
        fontSize: 80
        color: black

    Colors:
      primary: brown

    Transitions:
      page:
        type: bottomToTop
        duration: 4
    Screen:
      loadingBackgroundColor: yellow
      backgroundColor: orange
      Header:
        backgroundColor: yellow
    # Text:
    #   textStyle:
    #     fontSize: 40

    Button:
      labelStyle:
        fontSize: 80
    #     fontFamily: Crimson Pro
    Checkbox:
      borderColor: red
      fillColor: blue
      borderWidth: 10

@kmahmood74 this might be a separate ticket but to make sure it is on your radar:
As an app developer, I want to be able to set a default theme for the OS Light appearance and another theme for OS Dark appearance.
I think what you have works as is, and we enhance with another prop:
Themes:
  - Common
  - PrimaryTheme:
      default: true
  - DarkTheme:
      defaultForDark: true

iOS setting:

hi @amin-nas please create a separate ticket for this. This unifies themes, we still need many more enhancements for themes that should be in separate tickets

hi @amin-nas please create a separate ticket for this. This unifies themes, we still need many more enhancements for themes that should be in separate tickets

https://github.com/EnsembleUI/ensemble/issues/1391


Update the AMI used when launching EC2 instaces to run Batch jobs

Overview
AWS is deprecating the AMI we for launching Batch job instances on July 30 2022. We need to update to a newer AMI.
Detail from @nanotubing
The AMI we use for the compute environments in AWS batch for OAR is being deprecated on July 30th. It sounds like there probably won’t be any immediate impact (unless we happen to be doing a DescribeImages call somewhere, but it’s good to know that this AMI is on it’s way out.
Terraform variable assigning that AMI:
https://github.com/open-apparel-registry/open-apparel-registry/blob/b98abc5bf2672fb5a73a7c67e935a3dd282f98da/deployment/terraform/variables.tf#L239
Quote:

While you will continue to be able to launch instances using the
AMI IDs, the AMIs will not be visible on the public AMI catalog [3] or
in DescribeImages calls by default once deprecated. To list deprecated
AMIs in the DescribeImages API calls, you must specify the
--include-deprecated parameter [4].

Describe the solution you'd like

Find the ID of the latest version of the Amazon ECS-optimized AMI on eu-west-1,, referecing https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
Update variables.tf and, push a test/ branch to deploy to staging, and submit lists to verify that batch jobs run without error

Additional Context
Full notice from AWS:
Hello,
On March 31, 2022, EC2 announced that all public AMIs will have the
deprecation time set to two years after their creation date [1]. Once
an AMI is deprecated, it will no longer appear in DescribeImages [2]
API calls for users that are not the owner of the AMI. Deprecating an
AMI only reduces the visibility of the AMI in untargeted searches, but
continues to be usable and available to you. Users of a deprecated AMI
can continue to launch instances and describe the deprecated AMI using
its ID. Deprecation time for all public AMIs will now be set
automatically to two years after their creation. Public AMIs already
older than two years will be deprecated on July 30, 2022 instead of
the originally stated date of June 30 to give you time to assess and
mitigate potential impact to your workflows which may perform
DescribeImages requests that do not specify image IDs.
We have identified that you have launched one or more instances in the
last month using a public AMI which will be deprecated on July 30,
2022. While you will continue to be able to launch instances using the
AMI IDs, the AMIs will not be visible on the public AMI catalog [3] or
in DescribeImages calls by default once deprecated. To list deprecated
AMIs in the DescribeImages API calls, you must specify the
--include-deprecated parameter [4]. If you would like to view details
about the deprecated AMI, you can describe it using its ID as well.
This message is to notify you of the upcoming change, and does not
require any action from you.
The following is a list of old public AMIs you have used for instance
launches in the last month in the EU-WEST-1 Region :
ami-00921cd1ce43d567a
To learn more about viewing and managing the deprecation time for your
AMIs, please refer to the "Deprecate an AMI" documentation [5].
If you have any further questions or comments regarding this matter,
please contact AWS Support [6].
[1] https://aws.amazon.com/about-aws/whats-new/2022/03/amazon-machine-images-public-visibility-two-years/
[2] https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html
[3] https://aws.amazon.com/blogs/aws/new-ami-catalog-and-new-ami-launch-button-are-now-available/
[4] https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-images.html
[5] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
[6] https://aws.amazon.com/support
Sincerely,
Amazon Web Services

I ran the command to get details of the latest amazon-linux-2 AMI
bash-5.1# aws ssm get-parameters --names /aws/service/ecs/optimized-ami/amazon-linux-2/recommended
PARAMETERS	arn:aws:ssm:eu-west-1::parameter/aws/service/ecs/optimized-ami/amazon-linux-2/recommended	text<PHONE_NUMBER>.21	/aws/service/ecs/optimized-ami/amazon-linux-2/recommended	String	{"ecs_agent_version":"1.62.2","ecs_runtime_version":"Docker version 20.10.13","image_id":"ami-0e592a261c043bc6a","image_name":"amzn2-ami-ecs-hvm-2.0.20220831-x86_64-ebs","image_version":"2.0.20220831","os":"Amazon Linux 2","schema_version":1,"source_image_name":"amzn2-ami-minimal-hvm-2.0.20220805.0-x86_64-ebs"}	93

I updated the terraform.tfvars file for each of the 4 environments (OS Hub staging/production & OAR staging/production)


[SPARK-29212][ML][PYSPARK] Add common classes without using JVM backend

What changes were proposed in this pull request?

Implement common base ML classes (Predictor, PredictionModel, Classifier, ClasssificationModel ProbabilisticClassifier, ProbabilisticClasssificationModel, Regressor, RegrssionModel) for non-Java backends.
Note

Predictor and JavaClassifier should be abstract as _fit method is not implemented.
PredictionModel should be abstract as _transform is not implemented.

Why are the changes needed?

To provide extensions points for non-JVM algorithms, as well as a public (as opposed to Java* variants, which are commonly described in docstrings as private) hierarchy which can be used to distinguish between different classes of predictors.
For longer discussion see SPARK-29212 and / or https://github.com/apache/spark/pull/25776.
Does this PR introduce any user-facing change?

It adds new base classes as listed above, but effective interfaces (method resolution order notwithstanding) stay the same.
Additionally "private" Java* classes inml.regression and ml.classification have been renamed to follow PEP-8 conventions (added leading underscore).
It is for discussion if the same should be done to equivalent classes from ml.wrapper.
If we take JavaClassifier as an example, type hierarchy will change from

to

Similarly the old model

will become

How was this patch tested?

Existing unit tests.

Test build #117751 has started for PR 27245 at commit 40f9aca.

Merged build finished. Test PASSed.

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

Test build #117751 has finished for PR 27245 at commit 40f9aca.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class _PredictorParams(HasLabelCol, HasFeaturesCol, HasPredictionCol):
class Predictor(Estimator, _PredictorParams):
class PredictionModel(Model, _PredictorParams):
class _ClassifierParams(HasRawPredictionCol, _PredictorParams):
class Classifier(Predictor, _ClassifierParams):
class ClassificationModel(PredictionModel, _ClassifierParams):
class _ProbabilisticClassifierParams(HasProbabilityCol, HasThresholds, _ClassifierParams):
class ProbabilisticClassifier(Classifier, _ProbabilisticClassifierParams):
class ProbabilisticClassificationModel(ClassificationModel,
class _JavaClassifier(Classifier, JavaPredictor):
class _JavaClassificationModel(ClassificationModel, JavaPredictionModel):
class _JavaProbabilisticClassifier(ProbabilisticClassifier, _JavaClassifier):
class _JavaProbabilisticClassificationModel(ProbabilisticClassificationModel,
class _LinearSVCParams(_ClassifierParams, HasRegParam, HasMaxIter, HasFitIntercept, HasTol,
class LinearSVC(_JavaClassifier, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class LinearSVCModel(_JavaClassificationModel, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class _LogisticRegressionParams(_ProbabilisticClassifierParams, HasRegParam,
class LogisticRegression(_JavaProbabilisticClassifier, _LogisticRegressionParams, JavaMLWritable,
class LogisticRegressionModel(_JavaProbabilisticClassificationModel, _LogisticRegressionParams,
class DecisionTreeClassifier(_JavaProbabilisticClassifier, _DecisionTreeClassifierParams,
class DecisionTreeClassificationModel(_DecisionTreeModel, _JavaProbabilisticClassificationModel,
class RandomForestClassifier(_JavaProbabilisticClassifier, _RandomForestClassifierParams,
class RandomForestClassificationModel(_TreeEnsembleModel, _JavaProbabilisticClassificationModel,
class GBTClassifier(_JavaProbabilisticClassifier, _GBTClassifierParams,
class GBTClassificationModel(_TreeEnsembleModel, _JavaProbabilisticClassificationModel,
class _NaiveBayesParams(_PredictorParams, HasWeightCol):
class NaiveBayes(_JavaProbabilisticClassifier, _NaiveBayesParams, HasThresholds, HasWeightCol,
class NaiveBayesModel(_JavaProbabilisticClassificationModel, _NaiveBayesParams, JavaMLWritable,
class _MultilayerPerceptronParams(_ProbabilisticClassifierParams, HasSeed, HasMaxIter,
class MultilayerPerceptronClassifier(_JavaProbabilisticClassifier, _MultilayerPerceptronParams,
class MultilayerPerceptronClassificationModel(_JavaProbabilisticClassificationModel,
class _OneVsRestParams(_ClassifierParams, HasWeightCol):
class FMClassifier(_JavaProbabilisticClassifier, _FactorizationMachinesParams, JavaMLWritable,
class FMClassificationModel(_JavaProbabilisticClassificationModel, _FactorizationMachinesParams,
class Regressor(Predictor, _PredictorParams):
class RegressionModel(PredictionModel, _PredictorParams):
class _JavaRegressor(Regressor, JavaPredictor):
class _JavaRegressionModel(RegressionModel, JavaPredictionModel):
class _LinearRegressionParams(_PredictorParams, HasRegParam, HasElasticNetParam, HasMaxIter,
class LinearRegression(_JavaRegressor, _LinearRegressionParams, JavaMLWritable, JavaMLReadable):
class LinearRegressionModel(_JavaRegressionModel, _LinearRegressionParams, GeneralJavaMLWritable,
class DecisionTreeRegressor(_JavaRegressor, _DecisionTreeRegressorParams, JavaMLWritable,
class RandomForestRegressor(_JavaRegressor, _RandomForestRegressorParams, JavaMLWritable,
class GBTRegressor(_JavaRegressor, _GBTRegressorParams, JavaMLWritable, JavaMLReadable):
class _AFTSurvivalRegressionParams(_PredictorParams, HasMaxIter, HasTol, HasFitIntercept,
class AFTSurvivalRegression(_JavaRegressor, _AFTSurvivalRegressionParams,
class AFTSurvivalRegressionModel(_JavaRegressionModel, _AFTSurvivalRegressionParams,
class _GeneralizedLinearRegressionParams(_PredictorParams, HasFitIntercept, HasMaxIter,
class GeneralizedLinearRegression(_JavaRegressor, _GeneralizedLinearRegressionParams,
class GeneralizedLinearRegressionModel(_JavaRegressionModel, _GeneralizedLinearRegressionParams,
class _FactorizationMachinesParams(_PredictorParams, HasMaxIter, HasStepSize, HasTol,
class FMRegressor(_JavaRegressor, _FactorizationMachinesParams, JavaMLWritable, JavaMLReadable):
class FMRegressionModel(_JavaRegressionModel, _FactorizationMachinesParams, JavaMLWritable,
class JavaPredictor(Predictor, JavaEstimator, _PredictorParams):
class JavaPredictionModel(PredictionModel, JavaModel, _PredictorParams):

Merged build finished. Test PASSed.

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

Test build #117754 has started for PR 27245 at commit 08c36a1.

Merged build finished. Test PASSed.

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

Test build #117754 has finished for PR 27245 at commit 08c36a1.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class _PredictorParams(HasLabelCol, HasFeaturesCol, HasPredictionCol):
class Predictor(Estimator, _PredictorParams):
class PredictionModel(Model, _PredictorParams):
class _ClassifierParams(HasRawPredictionCol, _PredictorParams):
class Classifier(Predictor, _ClassifierParams):
class ClassificationModel(PredictionModel, _ClassifierParams):
class _ProbabilisticClassifierParams(HasProbabilityCol, HasThresholds, _ClassifierParams):
class ProbabilisticClassifier(Classifier, _ProbabilisticClassifierParams):
class ProbabilisticClassificationModel(ClassificationModel,
class _JavaClassifier(Classifier, JavaPredictor):
class _JavaClassificationModel(ClassificationModel, JavaPredictionModel):
class _JavaProbabilisticClassifier(ProbabilisticClassifier, _JavaClassifier):
class _JavaProbabilisticClassificationModel(ProbabilisticClassificationModel,
class _LinearSVCParams(_ClassifierParams, HasRegParam, HasMaxIter, HasFitIntercept, HasTol,
class LinearSVC(_JavaClassifier, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class LinearSVCModel(_JavaClassificationModel, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class _LogisticRegressionParams(_ProbabilisticClassifierParams, HasRegParam,
class LogisticRegression(_JavaProbabilisticClassifier, _LogisticRegressionParams, JavaMLWritable,
class LogisticRegressionModel(_JavaProbabilisticClassificationModel, _LogisticRegressionParams,
class DecisionTreeClassifier(_JavaProbabilisticClassifier, _DecisionTreeClassifierParams,
class DecisionTreeClassificationModel(_DecisionTreeModel, _JavaProbabilisticClassificationModel,
class RandomForestClassifier(_JavaProbabilisticClassifier, _RandomForestClassifierParams,
class RandomForestClassificationModel(_TreeEnsembleModel, _JavaProbabilisticClassificationModel,
class GBTClassifier(_JavaProbabilisticClassifier, _GBTClassifierParams,
class GBTClassificationModel(_TreeEnsembleModel, _JavaProbabilisticClassificationModel,
class _NaiveBayesParams(_PredictorParams, HasWeightCol):
class NaiveBayes(_JavaProbabilisticClassifier, _NaiveBayesParams, HasThresholds, HasWeightCol,
class NaiveBayesModel(_JavaProbabilisticClassificationModel, _NaiveBayesParams, JavaMLWritable,
class _MultilayerPerceptronParams(_ProbabilisticClassifierParams, HasSeed, HasMaxIter,
class MultilayerPerceptronClassifier(_JavaProbabilisticClassifier, _MultilayerPerceptronParams,
class MultilayerPerceptronClassificationModel(_JavaProbabilisticClassificationModel,
class _OneVsRestParams(_ClassifierParams, HasWeightCol):
class FMClassifier(_JavaProbabilisticClassifier, _FactorizationMachinesParams, JavaMLWritable,
class FMClassificationModel(_JavaProbabilisticClassificationModel, _FactorizationMachinesParams,
class Regressor(Predictor, _PredictorParams):
class RegressionModel(PredictionModel, _PredictorParams):
class _JavaRegressor(Regressor, JavaPredictor):
class _JavaRegressionModel(RegressionModel, JavaPredictionModel):
class _LinearRegressionParams(_PredictorParams, HasRegParam, HasElasticNetParam, HasMaxIter,
class LinearRegression(_JavaRegressor, _LinearRegressionParams, JavaMLWritable, JavaMLReadable):
class LinearRegressionModel(_JavaRegressionModel, _LinearRegressionParams, GeneralJavaMLWritable,
class DecisionTreeRegressor(_JavaRegressor, _DecisionTreeRegressorParams, JavaMLWritable,
class RandomForestRegressor(_JavaRegressor, _RandomForestRegressorParams, JavaMLWritable,
class GBTRegressor(_JavaRegressor, _GBTRegressorParams, JavaMLWritable, JavaMLReadable):
class _AFTSurvivalRegressionParams(_PredictorParams, HasMaxIter, HasTol, HasFitIntercept,
class AFTSurvivalRegression(_JavaRegressor, _AFTSurvivalRegressionParams,
class AFTSurvivalRegressionModel(_JavaRegressionModel, _AFTSurvivalRegressionParams,
class _GeneralizedLinearRegressionParams(_PredictorParams, HasFitIntercept, HasMaxIter,
class GeneralizedLinearRegression(_JavaRegressor, _GeneralizedLinearRegressionParams,
class GeneralizedLinearRegressionModel(_JavaRegressionModel, _GeneralizedLinearRegressionParams,
class _FactorizationMachinesParams(_PredictorParams, HasMaxIter, HasStepSize, HasTol,
class FMRegressor(_JavaRegressor, _FactorizationMachinesParams, JavaMLWritable, JavaMLReadable):
class FMRegressionModel(_JavaRegressionModel, _FactorizationMachinesParams, JavaMLWritable,
class JavaPredictor(Predictor, JavaEstimator, _PredictorParams):
class JavaPredictionModel(PredictionModel, JavaModel, _PredictorParams):

Merged build finished. Test PASSed.

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

Test build #118184 has started for PR 27245 at commit 63e2fcc.

Merged build finished. Test PASSed.

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

Test build #118184 has finished for PR 27245 at commit 63e2fcc.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class _PredictorParams(HasLabelCol, HasFeaturesCol, HasPredictionCol):
class Predictor(Estimator, _PredictorParams):
class PredictionModel(Model, _PredictorParams):
class _ClassifierParams(HasRawPredictionCol, _PredictorParams):
class Classifier(Predictor, _ClassifierParams):
class ClassificationModel(PredictionModel, _ClassifierParams):
class _ProbabilisticClassifierParams(HasProbabilityCol, HasThresholds, _ClassifierParams):
class ProbabilisticClassifier(Classifier, _ProbabilisticClassifierParams):
class ProbabilisticClassificationModel(ClassificationModel,
class _JavaClassifier(Classifier, JavaPredictor):
class _JavaClassificationModel(ClassificationModel, JavaPredictionModel):
class _JavaProbabilisticClassifier(ProbabilisticClassifier, _JavaClassifier):
class _JavaProbabilisticClassificationModel(ProbabilisticClassificationModel,
class _LinearSVCParams(_ClassifierParams, HasRegParam, HasMaxIter, HasFitIntercept, HasTol,
class LinearSVC(_JavaClassifier, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class LinearSVCModel(_JavaClassificationModel, _LinearSVCParams, JavaMLWritable, JavaMLReadable):
class _LogisticRegressionParams(_ProbabilisticClassifierParams, HasRegParam,
class LogisticRegression(_JavaProbabilisticClassifier, _LogisticRegressionParams, JavaMLWritable,
class LogisticRegressionModel(_JavaProbabilisticClassificationModel, _LogisticRegressionParams,
class DecisionTreeClassifier(_JavaProbabilisticClassifier, _DecisionTreeClassifierParams,
class DecisionTreeClassificationModel(_DecisionTreeModel, _JavaProbabilisticClassificationModel,
class RandomForestClassifier(_JavaProbabilisticClassifier, _RandomForestClassifierParams,
class RandomForestClassificationModel(_TreeEnsembleModel, _JavaProbabilisticClassificationModel,
class GBTClassifier(_JavaProbabilisticClassifier, _GBTClassifierParams,
class GBTClassificationModel(_TreeEnsembleModel, _JavaProbabilisticClassificationModel,
class _NaiveBayesParams(_PredictorParams, HasWeightCol):
class NaiveBayes(_JavaProbabilisticClassifier, _NaiveBayesParams, HasThresholds, HasWeightCol,
class NaiveBayesModel(_JavaProbabilisticClassificationModel, _NaiveBayesParams, JavaMLWritable,
class _MultilayerPerceptronParams(_ProbabilisticClassifierParams, HasSeed, HasMaxIter,
class MultilayerPerceptronClassifier(_JavaProbabilisticClassifier, _MultilayerPerceptronParams,
class MultilayerPerceptronClassificationModel(_JavaProbabilisticClassificationModel,
class _OneVsRestParams(_ClassifierParams, HasWeightCol):
class FMClassifier(_JavaProbabilisticClassifier, _FactorizationMachinesParams, JavaMLWritable,
class FMClassificationModel(_JavaProbabilisticClassificationModel, _FactorizationMachinesParams,
class Regressor(Predictor, _PredictorParams):
class RegressionModel(PredictionModel, _PredictorParams):
class _JavaRegressor(Regressor, JavaPredictor):
class _JavaRegressionModel(RegressionModel, JavaPredictionModel):
class _LinearRegressionParams(_PredictorParams, HasRegParam, HasElasticNetParam, HasMaxIter,
class LinearRegression(_JavaRegressor, _LinearRegressionParams, JavaMLWritable, JavaMLReadable):
class LinearRegressionModel(_JavaRegressionModel, _LinearRegressionParams, GeneralJavaMLWritable,
class DecisionTreeRegressor(_JavaRegressor, _DecisionTreeRegressorParams, JavaMLWritable,
class RandomForestRegressor(_JavaRegressor, _RandomForestRegressorParams, JavaMLWritable,
class GBTRegressor(_JavaRegressor, _GBTRegressorParams, JavaMLWritable, JavaMLReadable):
class _AFTSurvivalRegressionParams(_PredictorParams, HasMaxIter, HasTol, HasFitIntercept,
class AFTSurvivalRegression(_JavaRegressor, _AFTSurvivalRegressionParams,
class AFTSurvivalRegressionModel(_JavaRegressionModel, _AFTSurvivalRegressionParams,
class _GeneralizedLinearRegressionParams(_PredictorParams, HasFitIntercept, HasMaxIter,
class GeneralizedLinearRegression(_JavaRegressor, _GeneralizedLinearRegressionParams,
class GeneralizedLinearRegressionModel(_JavaRegressionModel, _GeneralizedLinearRegressionParams,
class _FactorizationMachinesParams(_PredictorParams, HasMaxIter, HasStepSize, HasTol,
class FMRegressor(_JavaRegressor, _FactorizationMachinesParams, JavaMLWritable, JavaMLReadable):
class FMRegressionModel(_JavaRegressionModel, _FactorizationMachinesParams, JavaMLWritable,
class JavaPredictor(Predictor, JavaEstimator, _PredictorParams):
class JavaPredictionModel(PredictionModel, JavaModel, _PredictorParams):

Merged build finished. Test PASSed.

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

In general LGTM, pending update version info 3.0.0 to 3.1.0
Also ping @srowen @huaxingao  Could you help double check ?

The changes look good to me.

In general LGTM, pending update version info 3.0.0 to 3.1.0

Yeah, I was thinking about the right way to tackle this. While we introduce new objects in type hierarchy, the API of the existing classes doesn't change, compared to what we get in 3.0. So I felt that keeping since intact makes sense. But I am happy to change it, if you think it is the way to go.

Test build #118680 has started for PR 27245 at commit 0b0f723.

Merged build finished. Test PASSed.

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

Test build #118680 has finished for PR 27245 at commit 0b0f723.

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

Merged build finished. Test PASSed.

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

retest this please

Test build #119274 has started for PR 27245 at commit 0b0f723.

Merged build finished. Test PASSed.

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

Test build #119274 has finished for PR 27245 at commit 0b0f723.

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

Merged build finished. Test PASSed.

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

Merged to master, thanks all!

Thanks!


WV-362 Add New Voter Guide (Admin Tools) has web form glitches [TEAM REVIEW]

New flow for add new endorser:

Find Endorser only offers first two form fields
If no results found, offer ability to proceed to Create Endorser form
Create Endorser
Proceed to Edit Endorser page for further edits

Updates to html file logic:
new logic for form view from search to create via voter_guide/views_admin.py
Updates to create new endorser error handling:
moved organization_name check up to org results check, previous check would skip over name check and result in errors
removed 'False' from request.POST.get as later input handlers check for not False only

Thank you @Succorro, if you have any additional changes, we can discuss in a new pull request.


WI changes for ACT

Addition of AssessmentAdministrationParticipation and removal of contacts from AssessmentAdministration from work with ACT.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


opt expose multi distinct functions

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Create update-run.wdl

added update-run.wdl with most miniwdl check validation errors fixed. NOTE: remaining errors are noted in the comments at the EOF
was able to run successful test of this updated run WDL files using sample data in this repo on GCP Notebook instance.

added links to 'learn miniwdl course and to example screencast on README.md page for consensus-genome

added links to 'learn miniwdl course and to example screencast on README.md page for consensus-genome

Hi Lynn, can you update the original run.wdl file instead? We don't want to have two copies of the workflow going forward.

Hi Lynn, can you update the original run.wdl file instead? We don't want to have two copies of the workflow going forward.

renamed update-run.wdl to run.wdl per your request

renamed update-run.wdl to run.wdl per your request

Summarizing @lynnlangit's changes to the WDL here,

The s3_wd_uri input was unused, however, I see this comment next to it: # Dummy values - required by SFN interface; if that's true, then probably we want to suppress the lint warning (with #!UnusedDeclaration on the same or following line) instead of deleting the input
The Quast prefix and threads, and ComputeStats ref_host inputs were unused. Perhaps if @tfrcarvalho @jshoe or @katrinakalantar could comment whether this is surprising.
Several of the workflow outputs were marked optional File? but there's no control path that would lead to them being absent, so they can just be declared non-optional File. (No reason to leave the optional versions commented out)
The remaining lint warnings are similar minor nits e.g. declaring a non-empty Array[X]+ that isn't statically guaranteed to be non-empty (but might always be in practice)

Summarizing @lynnlangit's changes to the WDL here,

The s3_wd_uri input was unused, however, I see this comment next to it: # Dummy values - required by SFN interface; if that's true, then probably we want to suppress the lint warning (with #!UnusedDeclaration on the same or following line) instead of deleting the input
The Quast prefix and threads, and ComputeStats ref_host inputs were unused. Perhaps if @tfrcarvalho @jshoe or @katrinakalantar could comment whether this is surprising.
Several of the workflow outputs were marked optional File? but there's no control path that would lead to them being absent, so they can just be declared non-optional File. (No reason to leave the optional versions commented out)
The remaining lint warnings are similar minor nits e.g. declaring a non-empty Array[X]+ that isn't statically guaranteed to be non-empty (but might always be in practice)

Regarding @mlin comment #2, it looks ok to me that the Quast prefix and threads, and ComputeStats ref_host inputs were unused. It is safe to remove the unused arguments from those functions.

Regarding @mlin comment #2, it looks ok to me that the Quast prefix and threads, and ComputeStats ref_host inputs were unused. It is safe to remove the unused arguments from those functions.

Great, thanks @katrinakalantar
@lynnlangit do you want to finish mopping up to make a clean diff here?

s3_wd_uri is needed for external reasons (@kislyuk true?) and we should leave it present, but suppress the warning with a #!UnusedDeclaration comment
Delete stuff instead of commenting out; we'll always have the git history in the unlikely event we need to refer back
The NonemptyCoercion warnings are kind of pedantic; it's just saying the declaration will cause a runtime error if given an empty array, which might well be the desired behavior. In the latest miniwdl v0.11.2, you can now miniwdl check --suppress NonemptyCoercion to turn them all off (a feature that had long been missing, so thanks for highlighting this! :)
The StringCoercion of no_reads_quast: looking through the code, I think both declarations of no_reads_quast (one in the workflow, and one in the Quast task) can/should be Boolean instead of String; WDYT?
SelectArray: is saying the outer array literal on that line doesn't have any optional items, so the outer select_all() will always return the same array it's given, and there's no point calling it. (Note that there's a nested inner invocation of select_all() in that declaration, which is needed.)

Great, thanks @katrinakalantar
@lynnlangit do you want to finish mopping up to make a clean diff here?

s3_wd_uri is needed for external reasons (@kislyuk true?) and we should leave it present, but suppress the warning with a #!UnusedDeclaration comment
Delete stuff instead of commenting out; we'll always have the git history in the unlikely event we need to refer back
The NonemptyCoercion warnings are kind of pedantic; it's just saying the declaration will cause a runtime error if given an empty array, which might well be the desired behavior. In the latest miniwdl v0.11.2, you can now miniwdl check --suppress NonemptyCoercion to turn them all off (a feature that had long been missing, so thanks for highlighting this! :)
The StringCoercion of no_reads_quast: looking through the code, I think both declarations of no_reads_quast (one in the workflow, and one in the Quast task) can/should be Boolean instead of String; WDYT?
SelectArray: is saying the outer array literal on that line doesn't have any optional items, so the outer select_all() will always return the same array it's given, and there's no point calling it. (Note that there's a nested inner invocation of select_all() in that declaration, which is needed.)

@mlin

done
done
done, added comment at top to explain flag
added comment, change to Boolean
no change needed, right?

fyi on line #191 there is an undone //TODO

@mlin

done
done
done, added comment at top to explain flag
added comment, change to Boolean
no change needed, right?

fyi on line #191 there is an undone //TODO

Migrated additions to #95


OOP-school-librabry: create class Nameable

In this PR, the following requirement is implemented
Interface

Create a class Nameable.

Implement a method called correct_name that will raise a NotImplementedError.

Turn your Person class to Nameable

Make sure that your Person class inherits from Nameable
Make sure that this class has a method correct_name implemented. It should simply return the name attribute.

Prepare base Decorator

Make sure that it inherits from Nameable.
In the constructor assign a nameable object from params to an instance variable.
Implement the correct_name method that returns the result of the correct_name method of the @nameable.

In this PR, the following requirement is implemented
Prepare CapitalizeDecorator and TrimmerDecorator

For the CapitalizeDecorator:

Create a class that inherits from the base Decorator class.
Implement a method correct_name that capitalizes the output of @nameable.correct_name.

For the TrimmerDecorator:

Create a class that inherits from the base Decorator class.
Implement a method correct_name that makes sure that the output of @nameable.correct_name has a maximum of 10 characters. If it's longer it should trim the word.

@rloterh Thank you for the review


[TAGUI][ERROR] - text missing for type()

Hi Ken,
Would you please kindly advise on error below? Thanks!
t.type('.gLFyf.gsfi as test google[enter]')
[TAGUI][ERROR] - text missing for type()
`
Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 14:00:49) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import tagui as t
t.init()
True
t.url('https://www.google.com')
True
t.click('.gLFyf.gsfi')
True
t.type()
[TAGUI][ERROR] - target missing for type()
False
t.type('testing')
[TAGUI][ERROR] - text missing for type()
False
t.type('.gLFyf.gsfi as test google[enter]')
[TAGUI][ERROR] - text missing for type()
`
tagui chrome automation export result
click .gLFyf.gsfi
type .gLFyf.gsfi as test google[enter]

Hi Vincent, above code looks like you are trying to run TagUI for Python tool.
For that project, raise issues at the repo here - https://github.com/tebelorg/TagUI-Python
I've raised an issue there for your question and answered there - https://github.com/tebelorg/TagUI-Python/issues/92


Error when using group() with nested relations

When trying to use group() with nested relations through chain(), the following error occurs:
error: could not identify an equality operator for type json
code: "42883"

Reproduction Steps

Set up related tables (user, region, location, userCheckIn)
Create records with relationships between them
Attempt to query with grouped nested relations

Example
const result = await db.userCheckIn
  .select("locationId", {
    locationRegion: (q) => q.location.chain("region"),
    checkInCount: (q) => q.count(),
  })
  .group("locationId", "locationRegion.r")
  .where({ userId });

Here's the minimum reproducible example to save time: https://github.com/matthewmorek/orchidorm-group-issue
I've tried to work around it using different ways to query for relations (joins, chaining, etc), but nothing works. Any ideas on how to work around it would be appreciated!

Apologies for not responding earlier, I wish I could respond with smaller delays, but it's not always possible.
So here the problem is that GROUP BY doesn't want to group by json values. I don't think it's a bug or a missing feature that is worth implementing.
locationRegion.r - the r part is an implementation detail and it's intentionally not exposed.
select a plain value instead of full object
This is only if you want to select a single value from the regiion:
const result = await db.userCheckIn
  .select("locationId", {
    locationRegionName: (q) => q.location.chain("region").get("name"), // <-- get('name') selects just the name
    checkInCount: (q) => q.count(),
  })
  .group("locationId", "locationRegionName") // <-- it's a text type and it suites the `group`
  .where({ userId });

group has no problems at grouping by plain values, and on TS level it's allowed, while grouping by json values is intentionally disallowed on TS level because postgres won't let you do that.
reverse the query
In general, when I deal with group I'm thinking if and how can I reverse the query to avoid grouping. Because the query becomes simpler for the reader, and I suspect it's also more efficient for the database. Maybe in this case it's not more efficient, cannot promise that.
  const result = await db.location
    .select("id", "name", {
      // region: (q) => q.region,
      checkInCount: (q) => q.checkIns.where({ userId }).count(),
    })
    .where({ checkInCount: { not: 0 } });

Here we can select any data from the location, and select count of checkins for a specific user, and in the end filter out 0 values.
For this I added checkIns relations to the location:
checkIns: this.hasMany(() => UserCheckInTable, {
  columns: ["id"],
  references: ["locationId"],
}),

The region in the query above is commented out, because I found a TS bug, once it is uncommented TS starts complaining, though the query still works as expected. I'll fix.
a more complicated one, using $from
const result = await db
  .$from(
    db.userCheckIn
      .select("locationId", {
        checkInCount: (q) => q.count(),
      })
      .group("locationId")
      .where({ userId }),
  )
  .select("locationId", "checkInCount", {
    locationRegion: () =>
      db.region.whereExists(
        "location",
        (q) => q.whereSql`${q.ref("id")} = "locationId"`,
      ),
  });

Here is an inner query selecting only locationId and checkInCount, not selecting region so no need to group by it.
And then the outer query additionally loads the region info. A bit of raw sql was needed to connect ids.
Maybe this is more efficient, maybe not. Apparently, looks more complicated.

Published a fix for 2 cases described above:

This query had a type error, now this should be fine:

  const result = await db.location
    .select("id", "name", {
      region: (q) => q.region,
      checkInCount: (q) => q.checkIns.where({ userId }).count(),
    })
    .where({ checkInCount: { not: 0 } });

When using $from, fixed ref helper to be able to reference a column of the outer query:

const result = await db
  .$from(
    db.userCheckIn
      .select("locationId", {
        checkInCount: (q) => q.count(),
      })
      .group("locationId")
      .where({ userId }),
  )
  .select("locationId", "checkInCount", {
    locationRegion: (outer) =>
      db.region.whereExists(
        "location",
        (inner) => inner.where({ id: outer.ref('locationId') }),
      ),
  });

Thanks for a detailed response, and apologies for not being able to respond to this earlier. After what you've showcased above, it makes sense to me to rewrite my query to use a direct relation of userCheckIn with location, I definitely overlooked that part!
I'll attempt implementation in the coming days and report back, but I'm sure this will solve many other problems that might be coming up with these types of queries in Orchid.


REST-API in own repo

I've created a REST-API to get the data collected by openZH. Data can be filtered by country (CH, FL), cantons and date. Figures for whole Switzerland are also available (totals over all cantons). Output is available in json and csv.
https://covid19-rest.herokuapp.com/
https://github.com/apfeuti/covid19-rest

Thanks. Maybe have also a look here for future ideas: https://covidtracking.com/software/ and https://github.com/COVID19Tracking/covid-tracking-api . This seems to be a similar project.

Yes, they are similar, but seems to be dedicated to data of the US. There are many COVID19-Rest-APIs out there, most of them are based on data of https://github.com/CSSEGISandData/COVID-19 (Johns Hopkins University).
Maybe openZH can somehow provide their data per canton (area) to JHU? Currently they are reporting for Switzerland only one grand-total.


Javascript not working

I tried to add a bootstrap dropdown on the navbar with clean repository but it doesnt works, any idea?

i have exactly the same issue

Gatsrap did not load bootstrap.js, so navbar components did not work.
I fixed it with commit 46ca8d398f6d24ce9615ba95673a143f61a8fcca.


[FEATURE] Recursive find on directory and replace link

Is your feature request related to a problem? Please describe.
The Easy-Link-File-Viewer is amazing, but recently I moved many files from my old PC to my new PC and now I have many link brokes.
Describe the solution you'd like
Im really appreciate if in the new version included a new feature, like  where can find all of link files from folder or directory and replace a pice of string.
Example: Replace "C:\Users" -> "C:\Users\00-user2"
Describe alternatives you've considered
And also thinking in is possible change recursive the icon for all lin files or group selected.
Additional context
Add any other context or screenshots about the feature request here.

Hi. I’m sorry but Easy Link File Viewer is not designed for batch processing operations. Implementing such features and making the necessary UI changes would require more time than what I can currently invest.
However, I can bring you a different solution to your issue. You can use the following Visual Basic Script file that will locate all shortcut (*.lnk) files inside the specified directory path and perform a string replacement in the TargetPath and WorkingDirectory attributes for each one.:
Script.vbs
Option Explicit

Dim rootFolderPath, searchString, replaceString
Dim fso, shell, recursiveSearch

' Set your folder path, search string, replace string,
' and whether to search recursively for *.lnk files.
rootFolderPath = "C:\Folder"
searchString = "C:\Users"
replaceString = "C:\Users\00-user2"
recursiveSearch = False

Set fso = CreateObject("Scripting.FileSystemObject")
Set shell = CreateObject("WScript.Shell")

If Not fso.FolderExists(rootFolderPath) Then
    WScript.Echo "The folder does not exist: " & rootFolderPath
    WScript.Quit
End If

ProcessFolder fso.GetFolder(rootFolderPath)

WScript.Echo "Operation completed."

Set shell = Nothing
Set fso = Nothing

Sub ProcessFolder(folder)
    Dim file, subFolder
    For Each file In folder.Files
        If LCase(fso.GetExtensionName(file.Name)) = "lnk" Then
            ProcessShortcut file
        End If
    Next

    If recursiveSearch Then
        For Each subFolder In folder.SubFolders
            ProcessFolder subFolder
        Next
    End If
End Sub

Sub ProcessShortcut(file)
    Dim shortcut, originalPath, workingDir, targetPathLower, searchLower, replaceLower

    On Error Resume Next
    Set shortcut = shell.CreateShortcut(file.Path)

    originalPath = shortcut.TargetPath
    workingDir = shortcut.WorkingDirectory
    targetPathLower = LCase(originalPath)
    searchLower = LCase(searchString)
    replaceLower = replaceString

    If InStr(targetPathLower, searchLower) > 0 Then
        shortcut.TargetPath = Replace(originalPath, searchString, replaceLower, 1, -1, vbTextCompare)
        shortcut.WorkingDirectory = Replace(workingDir, searchString, replaceLower, 1, -1, vbTextCompare)
        shortcut.Save
        WScript.Echo "Updated shortcut: " & file.Path
    End If

    On Error GoTo 0
    Set shortcut = Nothing
End Sub

You only need to save that code in Notepad as a plain text file named Script.vbs, and then double-click the Script.vbs file to run it.
But make sure to configure the script before using it, by writing the correct values in these fields:

' Set your folder path, search string, replace string,
' and whether to search recursively for *.lnk files.
rootFolderPath = "C:\Folder"
searchString = "C:\Users"
replaceString = "C:\Users\00-user2"
recursiveSearch = False

Also, you can delete this line from the code if you feel that it is annoying to pop-up this message on screen for each link file processed:

WScript.Echo "Updated shortcut: " & file.Path

Feel free to reopen this issue if you have any further questions.
Thanks for your feedback!.


[FEATURE] README.md

Provision of a readme file to help new contributions share there ideas and also give the project a preview of what is all about.

Thank you for creating an Issue here!


add QAOA run

Summary
add QAOA run and display results
Details and comments
removed 'matrix' parameter in QAOA setup
added QAOA run
updated description
added QAOA output visualization

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: 708-145:x: Tobias BergmannTobias Bergmann seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

CLA bot is still confused.
Redo the complete update as the other "me".
I have one git credential for job and another for private use.


add Bluecraft

it tells me "Merging is blocked" but I don't know why

if you have the ready-for-review tag you're fine unless more changes are requested during manual review the bot doesn't remove its change request.


[Feature][Api] LDAP SSL supports&& Add LDAP K8s configuration

close #14348
part of #10425

Codecov Report

Merging #14349 (c387eb3) into dev (c1a6790) will increase coverage by 0.00%.
The diff coverage is 0.00%.

:exclamation: Current head c387eb3 differs from pull request most recent head 5d6da98. Consider uploading reports for the commit 5d6da98 to get more accurate results

@@            Coverage Diff            @@
##                dev   #14349   +/-   ##
=========================================
  Coverage     38.47%   38.48%
+ Complexity     4559     4557    -2
=========================================
  Files          1237     1237
  Lines         43538    43496   -42
  Branches       4814     4784   -30
=========================================
- Hits          16753    16739   -14
+ Misses        24932    24908   -24
+ Partials       1853     1849    -4

Impacted Files
Coverage Δ

...nscheduler/api/security/impl/ldap/LdapService.java
5.66% <0.00%> (-0.73%)
:arrow_down:

... and 35 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

PTAL @kezhenxu94

@SbloodyS Help rerun failed ut

@SbloodyS Help rerun failed ut

There are many CI failed. You should check it.

@SbloodyS Help rerun failed ut

There are many CI failed. You should check it.

cluster-test-postgresql Error. But I change nothing about pgsql
Docs error Fixed by other pr
E2E looks like timeout

You can try rebase the latest dev code. @qingwli

You can try rebase the latest dev code. @qingwli

help run ut

@SbloodyS help rerun e2e

approval rerun ci

CI passed, help approved again @kezhenxu94


Comment popup is not displayed correctly on some mobile devices

Popup on my iPad (2019), Safari mobile, recent version of ep_comments_page, etherpad 1.8.12:

@seballot any idea how this can happen?

Yep : https://github.com/ether/ep_comments_page/blob/master/static/js/newComment.js#L85
The popup is aligned with comment icon, which does not work when comment icon is closed to the right border of the screen. Should be easy fix

I think my iPad is not recognized as media only screen (800px). In web inspector the popup is displayed correctly. Should this be fixed in ether/etherpad-lite? It also infects other plugins with toolbar popups like ep_embedded_hyperlinks2.

If I use max-width 992px instead of 800px in popup.css (etherpad-lite) the new comment popup is diplayed correctly (iPad 2020).


Labels for stats in the notification area are not localized yet

When opening the notification area (swiping down from the top of the screen), I noticed that the labels for the different statistics (Dist, Cons, Speed in the screenshot below) are not yet translated. Can these be added to the Lokalise project?

For now this is intentional. Notifications on AAOS are a bit more limited compared to standard Android. To prevent too long stings being shortened and not showing all data I kept these labels english.


About ddpm--------------No module named 'ddpm.discriminator'、generative et.al.

Dear author, when I run the code according to your prompts, I encounter the following problem:
Traceback (most recent call last):
File "train_ddpm.py", line 2, in
from ddpm.diffusion import Unet3D,GaussianDiffusion, Trainer
File "/home//Desktop/projects/3d_medical/X-ray2CTPA-main/ddpm/init.py", line 1, in
from ddpm.diffusion import Unet3D, GaussianDiffusion, Trainer
File "/home//Desktop/projects/3d_medical/X-ray2CTPA-main/ddpm/diffusion.py", line 38, in
from ddpm.discriminator import Discriminator, ones_target, zeros_target
ModuleNotFoundError: No module named 'ddpm.discriminator'
Then locate the place in the picture. However, I found that ddpm does not seem to have a discriminator and generative. I would like to ask how to solve this problem? Thank you

I have solved it. The generative could be found in : https://github.com/Project-MONAI/GenerativeModels/tree/main
And you should pip install monai package.

Exactly. Thanks I'll update the requirements.txt file


feat!: invite cancelations

I recommend reviewing this PR one commit at a time.
This PR adds invite cancelations. Notable changes:

InviteCancel RPC messages are now sent and received.
project.$member.invite() takes an AbortSignal, used for cancelations. It replaces the timeout option.
The invite-removed event now has a "reason" parameter which the frontend can use.

Closes #447.

Reworked this to avoid using AbortSignal, instead using a cancelInvite() API.
Doesn't change the fact that invites create a long-running Promise, but I think that's a separate change in any case.


Add support for docker swarm

I too would be interested in Swarm support, but afraid I can't offer a ton of help with Go. It'd be nice if the Docker Socket could return events/info from across the Swarm instead of just the current node, but it doesn't seem to do that.


Fix schema backfill count metric

Whenever schema is polled from the database, SegmentSchemaCache#temporaryPublishedMetadataQueryResults is reset.
However, it was being reset before SegmentSchemaCache#finalizedSegmentSchemaInfo is updated.
This led to a small window where schema could go missing for a backfilled segment, which in turn led to another segment metadata query being executed and subsequently the schema was backfilled again.
This change ensures that there is no such window where the cached segment metadata query result is lost. Only polled segments are cleared from SegmentSchemaCache#temporaryPublishedMetadataQueryResults.

Error: Process completed with exit code 1.

Seems like Ci failure is legit.


Remove :not selector since not XPath compatible

I needed to build my own Inliner uses PHP. When using XPath standard to query selectors in the DOM, the :not() css pseudo element is not XPath compatible. Since this is only used once through out the entire framework (and the fix was easy) I thought that it would be nice to have the entire framework compatible. With this change, you can now inline via PHP.

Seems reasonable to me!


Update readme and badges

Landed in https://github.com/metarhia/impress/commit/a14aa715e4d6ca1ad18ea1d888a00feb13503e31


Add tests to SyncLeap struct

This PR adds unit tests to the SyncLeap struct and the FetchItem::<SyncLeap>::validate() function.
It also updates the latter to actually defer the cryptographic verification to the end, so we don't waste cycles.
Closes #3579

bors try

I generally agree w/ Fraser's comments. Would like to see them addressed, and then getting these tests merged in soonish.

I generally agree w/ Fraser's comments. Would like to see them addressed, and then getting these tests merged in soonish.

Comments are addressed, but this was just an initial review from @Fraser999, so I'll refrain from merging until there are more approvals.


feat(): add checkCoverage cron

Pull Request Test Coverage Report for Build 1036

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 76.698%

Totals

Change from base Build 1033:
0.0%

Covered Lines:
1899

Relevant Lines:
2359

💛  - Coveralls


[BEAM-10859] Allow different project for BQ source temp dataset

Allow BigQuerySource to use a different project to the execution project
for the temporary dataset.
There are some uses cases that require temporary datasets created when using beam.io.BigQuerySource to be in a different GCP project (e.g service account permissions, billing).
We could make the project where temporary datasets configurable, so that the temp dataset is created in a user specified project. Example:
pipeline = p | "Read from BQ source" >> beam.io.Read(beam.io.BigQuerySource(
    query=q,
    use_standard_sql=True,
    project='dataflow-project',
    temp_dataset_project='bigquery-project'))

This PR adds the temp_dataset_project option when creating the beam.io.BigQuerySource, which defaults to the execution project.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Is this still a work in progress?

I'm going to close this in favor of #12960 since if we use a DatasetReference, we can also allow for a different project.


change note

Docs Build status updates of commit 2dd23fb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/cognitiveservices/face-readme.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

#sign-off

@jsquire


[Improve] Spark connector supports multiple spark versions:2.1.x/2.3.x/3.x

Proposed changes
Part of Spark Connector code is implemented using the "Spark DatasourcesV2" API . However , "Spark DatasourcesV2" API only exists in spark 2.3.x/2.4.x , not exists in spark 2.1.x/2.2.x/3.x.
That API seems to have been removed after spark 3.x .
For supporting multiple spark versions, part of the code is re-implemented using the "Spark DatasourcesV1" API.
Types of changes
What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)
[ ] Code refactor (Modify the code structure, format the code, etc...)
[ ] Optimization. Including functional usability improvements and performance improvements.
[ ] Dependency. Such as changes related to third-party components.
[x] Other.

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have created an issue on (Fix #ISSUE) and described the bug/feature there in detail
[x] Compiling and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If these changes need document changes, I have updated the document
[ ] Any dependent changes have been merged

https://github.com/apache/incubator-doris/issues/7363


[7.x] Add Laravel Scout and Algolia explanation to search.md

I got bitten a bit by trying to use Laravel Scout in parallel with the Statamic and Runway search indexes. This addition to the docs explains what I had to do make it work.

This is not ready yet, I just found out. Problems with using the search outside of Statamic now...


feat: TF2 class icons

Installs ng-inline-svg. Also, disables ivy renderer.

Codecov Report

Merging #9 into master will increase coverage by 0.22%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
+ Coverage   73.46%   73.69%   +0.22%
==========================================
  Files          48       48
  Lines         441      441
  Branches       35       35
==========================================
+ Hits          324      325       +1
+ Misses        104      103       -1
  Partials       13       13

Impacted Files
Coverage Δ

...c/app/games/game-details/game-details.component.ts
60% <0%> (-3.34%)
:arrow_down:

...-server-dialog/add-game-server-dialog.component.ts
100% <0%> (+11.11%)
:arrow_up:

src/app/game-servers/game-servers.selectors.ts
100% <0%> (+14.28%)
: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 f426cc5...a63ef39. Read the comment docs.


chore: hide median price screen under different ff

Description

This PR hides median price screen under different ff.
cc @dariakoko
#nochangelog

👍


Static-ise utility traits

Convert the SerialiserUtilitiesTrait and SerialiseLowLevelWritersTraits into the nearest thing I could think of to a static class in PHP.
Each component method is now public and thus directly testable, and the resulting classes do not maintain any internal state.

Coverage decreased (-0.003%) to 97.538% when pulling 87c8b843d9d3b3d93f5471394210cbd193f5ffdf on CyberiaResurrection:StaticiseUtilityTraits into 2a90b2045293e500ab6b79262534db41cf2d0f42 on Algo-Web:master.


Detect and warn on abbreviated SHA1s in manifest

It's likely that folks will end up putting in an abbreviated commit SHA1 in Gopkg.toml. We need an exact match, not the abbreviation. If we can reasonably detect and warn against this, it would be a benefit.

Is this a good first-pr candidate?

ah yeah totally

I would like to take this, but would appreciate pointers!
I assume it's somewhere around here https://github.com/golang/dep/blob/master/manifest.go#L171?

@zknill awesome! and yes, that's where the actual assignment happens, but we do the warns in validateManifest(). you'll want to look at...func getProjectConstraints(), I think? for patterns to follow on how to sniff revision types from string structure. but my plane is literally wheels off the ground rn, so I can't double check that 😀

Sweet thanks. I'll check it out and come back if I get stuck!


Getting Error while downloading Douyin (Chinese tiktok) videos

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
America
Provide a description that is worded well enough to be understood
It asks for cookies (fresh without login should be fine it says), but still doesn't works and gives Warning and Error.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://v.douyin.com/iUr4dn2E/', '--cookies', './cookie.txt']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds [2037a6414] (zip)
[debug] Python 3.9.2 (CPython x86_64 64bit) - Linux-6.1.0-26-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1w  11 Sep 2023, glibc 2.31)
[debug] exe versions: ffmpeg 4.3.7-0, ffprobe 4.3.7-0
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, mutagen-1.47.0, requests-2.32.3, sqlite3-3.34.1, urllib3-2.2.3, websockets-13.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1837 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp-nightly-builds)
[generic] Extracting URL: https://v.douyin.com/iUr4dn2E/
[generic] iUr4dn2E: Downloading webpage
[redirect] Following redirect to https://www.douyin.com/video/7446663995907378466?previous_page=app_code_link
[Douyin] Extracting URL: https://www.douyin.com/video/7446663995907378466?previous_page=app_code_link
[Douyin]<PHONE_NUMBER>907378466: Downloading web detail JSON
WARNING: [Douyin]<PHONE_NUMBER>907378466: Failed to parse JSON: Expecting value in '': line 1 column 1 (char 0)
ERROR: [Douyin]<PHONE_NUMBER>907378466: Fresh cookies (not necessarily logged in) are needed; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/container/apps/ytdl/./yt-dlp/yt_dlp/extractor/common.py", line 742, in extract
    ie_result = self._real_extract(url)
  File "/home/container/apps/ytdl/./yt-dlp/yt_dlp/extractor/tiktok.py", line 1342, in _real_extract
    raise ExtractorError(

Duplicate of #9667
Please check the PINNED KNOWN ISSUES thread before opening a new issue


[5.1] Add method setItems

:-1:

I think this was omitted by design.

Probably should just make a new paginator instance.


[svengbr] Server configuration recommendations

I analyzed the Website with Ryte and Lighthouse from Google and here some recommended changes on the Hosting Setup:
404 Sites:
Currently non-existing sites return a 403 error code instead of the correct one (404)
Compression:
The Server is currently not compressing Text-based resources (gzip, deflate or brotli). This reduces the loading-time espacially for mobile user.

Internal Tracking ID: EXPOSUREAPP-8525

404 Sites: Currently non-existing sites return a 403 error code instead of the correct one (404)

I can confirm this. A nice 404 page is shown but the server returns an 403 status code.

Hi @mojoaxel @dannylinden, thanks for posting here. Seems fixed:

Best wishes,
DS

Corona-Warn-App Open Source Team

@dsarkar

Seems fixed

I don't think so.

Attempt to open a non-existent page in Google Chrome e.g. https://www.coronawarn.app/en/bad-page
Right-click and select Inspect > Network tab
re-load non-existent page
The returned status is 403 (forbidden) not 404

@dsarkar
I don't think this is what @dannylinden means.
First of all it is about coronawarnapp.de and not about GitHub (the screenshot you posted is from the GitHub 404 Error Page).
Second, as @mojoaxel already said here that there is a nice 404 Page, but the Server returns a 403 status code.
Thanks for all your work!
Have a nice evening!

@Ein-Tim
You recognized it was a Git-Hub 404 error page! Very good!
Neither the original poster @dannylinden , nor @dsarkar said what URL they were using to test. It's always good to have repro steps to ensure everybody is talking about the same thing.
I tried out the same page using the test webserver on my local machine (the one which is started using npm start) and it returned the expected 404 error code. So it's a problem with the production web server of https://www.coronawarn.app/.

Hi @mojoaxel, @dannylinden, @MikeMcC399.
Yes, you are right.  We will have a look at this. Thanks. Best, DS

Corona-Warn-App Open Source Team

@dsarkar
It doesn't seem like anybody looked at this in the last months and there is still something wrong with the way that the production nginx server on https://www.coronawarn.app/ handles a 404 error. It displays a 404 custom error message and returns HTTP/1.1 403 forbidden.
This GitHub repository doesn't contain the setup information for the server, so it's not possible for an outsider to see what is causing the issue.

@MikeMcC399 Yep, I will forward this issue to @svengabr and @mtb77.

Internal Tracking ID: EXPOSUREAPP-8525

This issue was not addressed for nearly 2 months. Although @svengabr was assigned to this issue & his name was added to the title, he never commented on this issue to let the community know whether the suggestions/recommendations mentioned in the OP will be implemented.

I once again asked the server administrators for an update in EXPOSUREAPP-8525

@svengabr
There still seems to be no text compression enabled.
If text compression could be enabled it should improve the performance. See https://docs.nginx.com/nginx/admin-guide/web-server/compression/ for documentation.
A Lighthouse report (available through Google Chrome F12) on https://www.coronawarn.app/en/faq/results/ shows significant potential savings:

I guess there must be an organizational problem preventing the text compression setting, since there has been no feedback.
I tried it out on a test nginx server running under Ubuntu and after adding two lines to /etc/nginx/conf.d/default.conf it worked as expected:
   gzip on;
   gzip_types text/plain text/css application/javascript;

Probably on the production server that would need to be text/javascript instead.

@MikeMcC399 Yes unfortunately it's an organizational problem preventing the text compression setting. On my side, there is nothing I can do to speed this up as I have no control over the CDN or the webserver.
However, I have once again pinged the responsible department and I am hoping for an update on this topic.

@svengabr
Do you have any Service Level Agreement for the CDN and webserver for support and configuration requests? Or is everything done on the basis of "best effort" with uncertain durations for requests?

@svengabr
Have you got any response from the responsible department about the text compression setting? If not, do you understand why you are not being supported?

@MikeMcC399 the hosting and maintenance are done by T-Systems and not by ourselves. I have once again escalated the issue and hoping for a response. Unfortunately, there is nothing further I can do on my side to speed this up rather than going 1 level higher in the hierarchy in every escalation.

@svengabr
Thank you for following through!

@svengabr
Should this issue be closed as https://github.com/corona-warn-app/cwa-website/labels/wontfix if TSI is unable to make the text compression configuration changes to the nginx webserver for https://www.coronawarn.app/?

This issue has now been solved. Accessing a non-existing page now returns a 404 error.
Closing this issue as completed.

404 error
The repro steps in https://github.com/corona-warn-app/cwa-website/issues/60#issuecomment-743284779 now correctly return a 404 error.

Text Compression
According to @larswmh in https://github.com/corona-warn-app/cwa-website/issues/25#issuecomment-1184358137

We got feedback and received the information that compressing will not be implemented.

added "won't fix" for the compression issue.


wanted to know how we can build MVC application using ejs template in nodejs since i already having my own rest api's?

Hi @kheteshR
I found this article related to your question: https://code.tutsplus.com/tutorials/build-a-complete-mvc-website-with-expressjs--net-34168
For further discussion, I'd recommend that you join Nodejs Discord or nodeslackers for easy conversation. 🙂

Thanks for the speedy response @WaleedAshraf! Going to close this now 👍


Only current input text editor should remain active when clicked, in case of multiple editors

Steps:

Create text editor on multiple different form fields.
Click on all that fields.

Expected result:
Only the current editor should remain active. Other opened editors should remain inactive.
Actual result:
All opened editors remains active
Version: 0.1.1-alpha.20

Hi @mandeeps1, thanks for your reporting :+1:  I think you can use [saveOnBlur] attribute to save when loose the focus of input
<inline-editor [saveOnBlur]="true" type="text" [(ngModel)]="test"></inline-editor>

Does it resolve your problem?

Hi @xxxtonixxx ,
Thanks for the info!!
It is working fine  until the underlying object/field is not NULL.
It still remains active when the object/field is NULL. It displays NULL fields as "empty" instead of a blank string.

Hmm, you can set the empty message using empty property. Maybe I'm misunderstanding your problem :confused:
Could you provide us a demo, please?
And sorry for my delay, I forgot it :sweat_smile:


different behaviour on pseudo :before :after

for tailwindcss:

for windicss:

According  to tailwindcss

We set content: "" automatically any time you use a before or after variant to make sure the elements are rendered

reproduce repository

/cc @antfu opinions if we want to mimic tailwind here?

I think tailwind's behaviour make sense here. And I am fine with aligning with tailwind if ppl want it.

Just switched from Tailwind to Windi for the improved HMR performance in Sveltekit amongst other reasons. The fact that my before: after: styles weren't working when the website promised compatibility with Tailwind was confusing. So this presents an onboarding issue at the very least.
Just my two cents—I prefer the Tailwind syntax because it's consistent and therefore easier to read.

Same problem. If Windi CSS does not provide a default content: "", then the pseudo like after or before will not show up as we expect.
However, if we manually set content like after:(content-TEXT), it works, but I just don't know how to set an empty content. Have tried content- , content-' ', content-[' '], none of them works.

On the other hand, give a pseudo usage demo on the website please.


Feature/fix add system tag

Purpose
add_system_tag would allow adding non-system tags if passing a Tag instance.
Changes

Raise an error if passing a non-system Tag instance to add_system_tag.
Silence a few loud logs during tests.

Side effects

Ticket

Tests have passed on my fork's TCI.


error: duplicated identifier

Hello.
I have a lot of databases from various vendors. And when I use all in one moment I have this error.
How can I ignore this error? I update this databases sometimes and I can't remove all duplicates every time.

That's probably because you have rules with the same name. In the best case scenario the duplicated identifiers belong to rules that are exactly the same (two or more vendors can be using rules from a common source).
You can not ignore the error, but you can use a different namespace for each vendor. This can't be done with the command-line tool, but you could use yara-python to compile the rules and scan your files. Here you can find how to use namespaces with yara-python.


Add pathsegments functionality to this_dir

The idea is to get a path relative to the current directly without wrapping further Path or os.path functionality over the returned path.
>>> this_dir("path", "segment")
WindowsPath("c:/dir_of_this_scripts/path/segment")

https://github.com/AutoActuary/locate/tree/feature-to-add-pathsegments-directly-to-this_dir

@rudolfbyker is this a good idea? Seems fine to me, it basically mimicks Paths idea of file construction etc. But maybe it should be a different and new?

This is just syntactic sugar for this_dir().joinpath("path", "segment"). I see no use for it.


Implement import by using importlib

The standard library for Python contains importlib, which contains a pure* Python implementation of the import machinery. This is lucky as we then don't have to implement it all in Rust. But we have to bootstrap it and implement all of the functionality it uses from builtin modules.
This is blocked by the following:

[ ] compile should accept bytes as well as strings
[x] _os.fspath - https://docs.python.org/3/library/os.html#os.fspath
[x] sys.implementation.cache_tag  - This just needs to exist we don't support caching bytecode at the moment
[ ] sys.pycache_prefix  - same as above
[x] sys.flags
[x] str.endswith needs to support tuple argument
[ ] _io.FileIO __enter__ and __exit__ methods
[x] sys.platform
[x] os.getcwd
[x] os.stat st_mtime attribute
[ ] _warnings module
possibly more

* Uses built-in module _imp to actually create module objects.

An initial implementation can be found in #1018.

Another thing that would help this is supporting {!r} in string format.

This can be closed not that #1018 was merged

level and globals argument is not provided and relative import is not working.
As example import unittest is broken at:
from .result import TestResult

Additional investigation - CPython does level magic in compile:
python -c "import dis; dis.dis(compile('from .second import value', '', 'exec'))"

  1           0 LOAD_CONST               0 (1)
              2 LOAD_CONST               1 (('value',))
              4 IMPORT_NAME              0 (second)
              6 IMPORT_FROM              1 (value)
              8 STORE_NAME               1 (value)
[...skipped...]

(note second dot)
python -c "import dis; dis.dis(compile('from ..second import value', '', 'exec'))"

  1           0 LOAD_CONST               0 (2)
              2 LOAD_CONST               1 (('value',))
              4 IMPORT_NAME              0 (second)
              6 IMPORT_FROM              1 (value)
              8 STORE_NAME               1 (value)
[...skipped...]

@apatrushev please look at the implementation of the relative import at #1050.

@apatrushev please look at the implementation of the relative import at #1050.

I took a short look on the code in PR. Unfortunately I have no strong opinion on where to place this code in compile or in vm execution because I am not confident neither in CPython code nor in RustPython. And I have no idea why CPython doing this in compile time - I just put my investigations here for the history to save the time later.
Besides this disclaimer your code LGTM (and import unittest moved forward!).

@skinny121, @apatrushev can we close this issue?


Update README.md

The oAuth.properties.example should be renamed to oauth.properties

Thanks for catching that, @sebichondo!


MWPW-143567 | Adding back the visitor detection country logic for pricing section

Adding back the visitor detection country logic for pricing section
Resolves: MWPW-143567
Test URLs:

Before: https://main--express--adobecom.hlx.page/express/?martech=off
After: https://MWPW-143567--express--adobecom.hlx.page/express/?martech=off

Codecov Report
Attention: Patch coverage is 50.00000% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 34.17%. Comparing base (b93f1e3) to head (17add50).
 Consider uploading reports for the commit 67f0b41 to get more accurate results

Files
Patch %
Lines

express/scripts/utils/pricing.js
50.00%
19 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #693      +/-   ##
==========================================
- Coverage   34.68%   34.17%   -0.51%
==========================================
  Files         129      129
  Lines       25266    25279      +13
==========================================
- Hits         8764     8640     -124
- Misses      16502    16639     +137

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


ninja: error: unknown target 'gn'

$ ./tools/gn/bootstrap/bootstrap.py --skip-generate-buildfiles -j4 -o out/Default/
ninja: Entering directory `C:\ungoogled-chromium-97.0.4692.71-1\build\src\out\Release\gn_build'
ninja: error: unknown target 'gn'
Traceback (most recent call last):
File "C:\ungoogled-chromium-97.0.4692.71-1\build\src\tools\gn\bootstrap\bootstrap.py", line 144, in
sys.exit(main(sys.argv[1:]))
File "C:\ungoogled-chromium-97.0.4692.71-1\build\src\tools\gn\bootstrap\bootstrap.py", line 126, in main
subprocess.check_call(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'C:\ungoogled-chromium-97.0.4692.71-1\build\src\out\Release\gn_build', '-w', 'dupbuild=err', '-j4', 'gn']' returned non-zero exit status 1.

Please follow the build instructions in https://github.com/ungoogled-software/ungoogled-chromium-windows and open an issue there if you encounter an issue

Facing the same issue when trying to rebuild after making changes in logos and name.


TTS on Linux appears to be broken

Description
TTS (while opened on Linux in a Chrome tab) will not announce, but will properly display the text
Additional Details / Steps to Reproduce
I use IINACT as my ACT replacement since ACT on Linux/Wine leads to huge performances losses. LMeter properly shows my damage going out and IINACT is properly writing out logs.
Due to the state of overlays on Linux, I open Raidboss in a Chrome tab that I just force to be open above other windows in a smaller area on my screen (jank, but it works).
I can see the text alerts popping up properly, but when it comes to Speech Synthesis nothing is appearing. I did confirm that the WebSpeech  API is properly working by going to another page and running it (using https://eeejay.github.io/webspeechdemos/ as a demo).
Looking through #532 , I can also confirm the "Click to Enable Audio" dialog will pop up for me but nothing else happens. Changing https://overlayplugin.github.io/cactbot/ui/raidboss/raidboss.html?OVERLAY_WS=ws://<IP_ADDRESS>:10501/ws leads to an error (expected):

but localhost or <IP_ADDRESS> don't have this error but still allow the "Click to Enable Audio" setting.
Cactbot Module
Raidboss (alerts & timelines)
Configuration Info
N/A due to using IINACT to replace ACT on WINE
Log & Screenshots

Confirmation

[X] I reviewed  Common Issues and Workarounds and verified that my settings are correct.
[X] I used the search function to confirm this issue doesn't already exist.

I do want to add: I know 532 was closed, hence why I opened this one. If I should have just reopened 532, let me know!


BYTE field behavior

OrientDB Version: 3.0 RC1
Java Version:
OS: debian 9
Expected behavior

I have a field of type BYTE used as status field like 1,2,3 and etc.
In orientdb web studio I created a record with status = 1
http://joxi.ru/LmG9BWBuR0Gk7A
I expected to have this records returned with filter "where status = 1"
Actual behavior
I made a query like "select * from Class where status = 1" and got 0 records.
Simple select without filter returns me this
http://joxi.ru/823dBYBi60Y7WA
It works only if status value is like " status='1' " but 1 is not a string
Steps to reproduce

Hi @futureglorydev
Thank you for reporting, I'll check it asap
Thanks
Luigi

Hi @futureglorydev
I just pushed a fix for this bug, the snapshot will be available in a few minutes
Thanks
Luigi

Thanks!


Revert "final UI for attribute values"

Reverts precision-sustainable-ag/dst-selector#560

Your review app has been deployed and is available at 'http://<IP_ADDRESS>:80'.Learn More about how to test and provide feedback for the app.

Your review app has been deployed and is available at 'http://,<IP_ADDRESS>:80'.Learn More about how to test and provide feedback for the app.


instalation on subdirectory support added 1st stage

Pull Request Summary
This is the first stage into implementing the feature #90.
This step replaces most static usage of root directory to an environment variable APP_LOCATION
However, with this PR, the feature is not done, and there are two issue I encountered and could not solve so far:

[ ] When a url has a redirect, like login: /sub/admin/login?redirect=%2Fadmin will direct into /admin

[ ] resources from the upload directory "uploads" are links in the page to /uploads/... instead of /sub/uploads/....

All code contributions are subject to the terms of the Contributor License Agreement described in CONTRIBUTING.md.

Thanks for submitting.

When a url has a redirect, like login: /sub/admin/login?redirect=%2Fadmin will direct into /admin

This may point you in the right direction.

resources from the upload directory "uploads" are links in the page to /uploads/... instead of /sub/uploads/....

I think the problem here is that the editor generates root-relative URLs. I'm not sure what side effects we'll incur by changing it to relative. It's worth experimenting with at least.

I don't know if this is annoying. But I just want to say thank you, guys.


App keeps on crashing

Using the package, my app keeps on crashing every time I did some undo's.
In my sandbox I have the following...
/**
   * Delete a post
   */
  public deletePost(post: Post): void {
    const action = new actionsPosts.Delete(post.id);

    this.appState.dispatch(action); // optimistic update
    this.postService.delete(post.id).subscribe(
      result => {},
      (error: Error) => {
        this.appState.dispatch(undo(action)); // rollback update
      }
    );
  }

(Working with chrome 61)
Thanks in advance!

I would like to delete this issue as the crash was not due to the package :p

Np ;-)


rename new-columns to add-column

new-columns is a strange name. Why not use the verb form, add-column? otherwise it's unclear if this is designed to add columns, return any columns that are new, etc...

I am sick currently, I will think about it once I feel better.

Yeah, this sounds like a good idea. Done.


Validation Error Value "ebs-sc (ebs-sc (default))" is not valid for "Storage class for Monitoring component"

variable "MONITORING_STORAGE_CLASS" (Storage class for Monitoring component) Type "string": Validation Error
Value "ebs-sc (ebs-sc (default))" is not valid for "Storage class for Monitoring component"
Configured storage class of ebs with same yaml file with the step 5, got following error:

The yaml file that I used to define the storage class:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-sc
annotations:
storageclass.kubernetes.io/is-default-class: "true"
#parameters:
encrypted: "true"
fsType: xfs
type: gp3
provisioner: ebs.csi.aws.com
#reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
#volumeBindingMode: Immediate
allowVolumeExpansion: true

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-sc
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
=================================
Removed comment out lines for better format

The issue was fixed with changing EKS version


feat(vocabulary): vocab support for map in vocab auto generation

Closes #69

Changes

added visitor methods for map-declaration. map-key, map-value

Related Issues

Issue #69

Author Checklist

[ ] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[ ] Vital features and changes captured in unit and/or integration tests
[ ] Commits messages follow AP format
[ ] Extend the documentation, if necessary
[ ] Merging to main from fork:branchname

coverage: 98.924% (+0.007%) from 98.917%
when pulling 6ac890dc67b1f919c497fda276db3dd4d749570f on sanketshevkar:sanketshevkar/i69/vocab-map-codegen
into e22a321f1c432a1defc8dda2a50d70112974c51f on accordproject:main.

@sanketshevkar as an aside, you don't necessarily need to use recursion to visit the Map Key & Value, you could do it all within the VisitMapDeclaration. LGTM, nice work!

@sanketshevkar as an aside, you don't necessarily need to use recursion to visit the Map Key & Value, you could do it all within the VisitMapDeclaration and keep things a bit more compact. LGTM, nice work!

Thanks @Jonathan-Casey! Agreed with your suggestion. But I think we will on have two recursive calls inside a map declaration level. Shouldn't cause a big issue I believe.
Shall I go forward with merging the code?


fedora 26 + xguest

Hello,
i am using Fedora 26 cinnamon spin -
on new Accounts torbrowser-launcher works fine, it downloads the brand new version and starts.
But when i try to use it on xguest, it download it and crashes at startup. I would like to post an log, but when i click copy tor protocol, it is empty.
it also says tor was crashed unexpectedly.
Any ideas how i can fix that? xguest is the account most people use around here for saftey reason (dont save anything, just writing in ram)

xguest works with SELinux rules to prevent things like executing things in a users home directory or within a /tmp directory. Tor Browser reads and writes from several different areas and this is probably where things go bad.
Red Hat documentation says "by default, Linux users in the guest_t and xguest_t domains cannot execute applications in their home directories or /tmp/; however, by default, Linux users in the user_t and staff_t domains can."
To allow Linux users in the guest_t & xguest_t domains to execute applications in their home directories and /tmp/:
~]# setsebool -P allow_xguest_exec_content on
~]# setsebool -P allow_guest_exec_content on

Then try running torbrowser-launcher just to see what happens. If you get crashes, check for SELinux failures with setroubleshoot. I have a feeling this will come down to having the right SELinux contexts on various things to make it work.
There may need to be under-the-hood changes that need made to support running in Kiosk mode or as other xguest users. I don't have a lot of experience with xguest so feel free to correct me anywhere here if I've gotten something wrong.


⚠ Cioos Pacific CKAN has degraded performance

In 8afd699, Cioos Pacific CKAN (https://catalogue.cioospacific.ca) experienced degraded performance:

HTTP code: 200
Response time: 5742 ms

Resolved: Cioos Pacific CKAN performance has improved in dc187f3 after 5 minutes.