python3Packages.parse: 1.16.0 -> 1.18.0, python-docx: run behave tests

Motivation for this change
Fix behave which was broken from previous parse update (see nixpkgs-review from #95690; https://github.com/behave/behave/issues/862).
ZHF: #97479
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

nixpkgs-review:
3 packages failed to build:
python37Packages.pytest-bdd python38Packages.pytest-bdd terraform-compliance

17 packages built:
nrfutil python27Packages.parse python27Packages.parse-type python27Packages.pyparser python27Packages.pytest-bdd python37Packages.behave python37Packages.parse python37Packages.parse-type python37Packages.pyparser python37Packages.python-docx python37Packages.radish-bdd python38Packages.behave python38Packages.parse python38Packages.parse-type python38Packages.pyparser python38Packages.python-docx python38Packages.radish-bdd

Failed packages also fail on master.

behave fails to build for me on macos 10.14:
=================================== FAILURES ===================================
___ TestAsyncStepDecoratorPy34.test_step_decorator_async_run_until_complete2 ___

self = <tests.api._test_async_step34.TestAsyncStepDecoratorPy34 object at 0x1053c5150>

    def test_step_decorator_async_run_until_complete2(self):
        step_container = SimpleStepContainer()
        with use_step_import_modules(step_container):
            # -- STEP-DEFINITIONS EXAMPLE (as MODULE SNIPPET):
            # VARIANT 2: Use @asyncio.coroutine def step_impl()
            from behave import step
            from behave.api.async_step import async_run_until_complete
            import asyncio

            @step('a tagged-coroutine async step waits "{duration:f}" seconds')
            @async_run_until_complete
            @asyncio.coroutine
            def step_async_step_waits_seconds2(context, duration):
                yield from asyncio.sleep(duration)

        # -- USES: async def step_impl(...) as async-step (coroutine)
        AsyncStepTheory.validate(step_async_step_waits_seconds2)

        # -- RUN ASYNC-STEP: Verify that it is behaving correctly.
        # ENSURE: Execution of async-step matches expected duration.
        context = Context(runner=Runner(config={}))
        with StopWatch() as stop_watch:
            step_async_step_waits_seconds2(context, duration=0.2)
>       assert abs(stop_watch.duration - 0.2) <= 0.05
E       AssertionError

tests/api/_test_async_step34.py:75: AssertionError
___ TestAsyncStepDecoratorPy35.test_step_decorator_async_run_until_complete1 ___

self = <tests.api._test_async_step35.TestAsyncStepDecoratorPy35 object at 0x1051bd890>

    def test_step_decorator_async_run_until_complete1(self):
        step_container = SimpleStepContainer()
        with use_step_import_modules(step_container):
            # -- STEP-DEFINITIONS EXAMPLE (as MODULE SNIPPET):
            # VARIANT 1: Use async def step_impl()
            from behave import step
            from behave.api.async_step import async_run_until_complete
            import asyncio

            @step('an async coroutine step waits "{duration:f}" seconds')
            @async_run_until_complete
            async def step_async_step_waits_seconds(context, duration):
                await asyncio.sleep(duration)

        # -- USES: async def step_impl(...) as async-step (coroutine)
        AsyncStepTheory.validate(step_async_step_waits_seconds)

        # -- RUN ASYNC-STEP: Verify that it is behaving correctly.
        # ENSURE: Execution of async-step matches expected duration.
        context = Context(runner=Runner(config={}))
        with StopWatch() as stop_watch:
            step_async_step_waits_seconds(context, 0.2)
>       assert abs(stop_watch.duration - 0.2) <= 0.05
E       AssertionError

tests/api/_test_async_step35.py:75: AssertionError
=============================== warnings summary ===============================
tests/unit/test_behave4cmd_command_shell_proc.py:26
  /private/tmp/nix-build-behave-1.2.7.dev1.drv-1/source/tests/unit/test_behave4cmd_command_shell_proc.py:26: DeprecationWarning: invalid escape sequence \w
    winpath_pattern = u"^([A-Za-z]:(\\[\w\.\-]+)+)|((\\[\w\.\-]+)*)|(\s[\w\.\-]+([\w\.\-]+)*)$"

-- Docs: https://docs.pytest.org/en/latest/warnings.html
- generated xml file: /private/tmp/nix-build-behave-1.2.7.dev1.drv-1/source/build/testing/report.xml -
- generated html file: file:///private/tmp/nix-build-behave-1.2.7.dev1.drv-1/source/build/testing/report.html -
=========================== short test summary info ============================
FAILED tests/api/test_async_step.py::TestAsyncStepDecoratorPy34::test_step_decorator_async_run_until_complete2
FAILED tests/api/test_async_step.py::TestAsyncStepDecoratorPy35::test_step_decorator_async_run_until_complete1
======= 2 failed, 1248 passed, 7 skipped, 2 xfailed, 1 warning in 12.80s =======

This looks like its a timing-based test, which are always trouble - perhaps it should be disabled?

behave fails to build for me on macos 10.14:

@risicle I tried several times building both python38Packages.behave and, as in your example, python37Packages.behave but unfortunately I couldn't reproduce the issue using fresh Nix install on macOS 10.14.6 18G6020 :(
Probably we could ping someone maintaining nixpkgs on darwin to continue investigating?
In the meantime, could you please check that changing pytest command to the following fixes the build for you:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/behave/default.nix#L33
pytest tests -k "not test_step_decorator_async_run_until_complete"

I simply think I've got slower computers than you (maybe try building on a heavily loaded machine), and as I say, timing-based tests are just trouble sooner or later. It's not too much of a loss disabling just test_step_decorator_async_run_until_complete* is it?

You can disable only that test if using pytestCheckHook and disableTests
checkInputs = [ pytestCheckHook ... ];

disabledTests = lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];

Thanks, I added the change. I'd just prefer to fix the test, at least by increasing the timeout, but skipping it on darwin is fine too.

sorry @maxxk that this turned out to be such a ..... pain of a PR
but thanks for sticking through it :)


Optimize fog of war extension

It is still too slow and we need to make it faster.

Fixed for now. The biggest fear I have is that next optimization will require the use of shaders and I don't start working on that lightly.


Windows 10 ANSI support

Windows 10 supports ANSI by default.
But right now the use of Colorama on Windows is hardcoded.
terminal.terminal_supports_colors looks for the env var ANSICON maybe the same can be used for coloredlogs?

This would allow logging binary streams (including other ansi codes)

ANSI support gets enabled by calling
        ctypes.windll.kernel32.SetConsoleMode(ctypes.windll.kernel32.GetStdHandle(-11), 7)
        ctypes.windll.kernel32.SetConsoleMode(ctypes.windll.kernel32.GetStdHandle(-12), 7)

Hi Hannah, thanks for the suggestion and sorry for the late response. I've just released coloredlogs 14.0 which knows how to enable native Windows ANSI support as suggested here. I don't use Windows so didn't have an environment available to test this in, but I was crazy enough to download a Windows Edge test VM and it seems to be working well :grin:. Thanks for the suggestion!


Add files via upload

Files uploaded for Italian High School Nicola Moreschi. Website: https://www.istitutomoreschi.edu.it/

@brevettir Pull request merged. Thank you!

@philipto Thanks, happy new year!


Feature/GEODE-7414_2_redo

I think this needs polish, because we have to specify the exemption 3 times for what (to me) is the same change. I would rather write better logic into GeodeApiRegressionRule that would make the JSON exemption spec easier on developers.
Comments?

@Bill  I am seeing the following error around the SSL change herein. Can you advise me on whether I should be putting my class into the allowed or ignored file?
org.apache.geode.codeAnalysis.AnalyzeCoreSerializablesJUnitTest > testSerializables FAILED
    java.lang.AssertionError: New or moved classes----------------------------------------
    org/apache/geode/net/SSLParameterExtension$SSLParameterExtensionTypes,false

    If the class is not persisted or sent over the wire add it to the file
    /home/geode/geode/geode-core/build/resources/integrationTest/org/apache/geode/codeAnalysis/excludedClasses.txt
    Otherwise if this doesn't break backward compatibility, copy the file
    /home/geode/geode/geode-core/build/integrationTest793/actualSerializables.dat to
    sanctioned-geode-core-serializables.txt.

Thanks everyone for sticking with this with me!


application raises Too many open files (errno=24)

lsof shows a gazillion open sockets:
python  17055  sds  286u  IPv4 272626       0t0     TCP datasci-1:48948-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  287u  IPv4 272361       0t0     TCP datasci-1:45474-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  288u  IPv4 272373       0t0     TCP datasci-1:48956-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  289u  IPv4 272369       0t0     TCP datasci-1:44114-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  290u  IPv4 272377       0t0     TCP datasci-1:45482-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  291u  IPv4 272381       0t0     TCP datasci-1:52306-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  292u  IPv4 273409       0t0     TCP datasci-1:44122-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  293u  IPv4 273413       0t0     TCP datasci-1:48964-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  294u  IPv4 273417       0t0     TCP datasci-1:45490-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  295u  IPv4 273421       0t0     TCP datasci-1:52314-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  296u  IPv4 272630       0t0     TCP datasci-1:44130-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  297u  IPv4 272634       0t0     TCP datasci-1:48972-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  298u  IPv4 272638       0t0     TCP datasci-1:45498-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  299u  IPv4 272642       0t0     TCP datasci-1:52322-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  300u  IPv4 272646       0t0     TCP datasci-1:44138-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  301u  IPv4 272650       0t0     TCP datasci-1:48980-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  302u  IPv4 272654       0t0     TCP datasci-1:45506-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  303u  IPv4 272658       0t0     TCP datasci-1:52330-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  304u  IPv4 272662       0t0     TCP datasci-1:44146-><IP_ADDRESS>:https (ESTABLISHED)
python  17055  sds  305u  IPv4 272665       0t0     TCP datasci-1:48988-><IP_ADDRESS>:https (ESTABLISHED)

apparently, tweepy does not close its sockets?

I am not using streaming, just user_timeline and retweeters.

errno=EMFILE
https://github.com/tweepy/tweepy/pull/811


Description

Please, add description to each class, field, property and function. Don't forget about function and constructor arguments. It is not easy to understand what function or class is used for without comments. And maybe you change directory structure? Separate headers and .cpp files, separate headers and .cpp files for third party libs, INSTALL text and other. Just google about it.
And another question. Why do you need your own realization of sparse matrix. I think there are thousands of such libs...

Dear d3rky,
Thanks for your advice!
In today commit I massively added comments into FEStorage class. This class is a central place in nla3d and if you'd like to get familiar with nla3d you need to start with FEStorage class. Also, you can read in README.md about brief overview of the project (its capabilities and limitations).
I will think about separation cpp and hpp file. For now, I'm not sure that it helps to the project somehow.
About sparse matrices. I used MKL to solve large linear systems of equations, and MKL (PARDISO part) needs to work with a particular type of storage of sparse matrices. I just write a wrapper of this kind of storage. Another reason is educational one. It was interesting to implement it by myself.

And of course I will continue to work anded README and INSTALLATION files in order to get it easy for someone to get involved into the project.  I will be glad to see you comments in future!

Thanks. I'll pull it and see code and try to understand how it works. And what about the future? Maybe you can write about your plans to<EMAIL_ADDRESS>and close this issue. Можно по русски :-)


Different device ids using Android and iOS

I'm currently working on an app with multiple Bluetooth functions.
One of these functions should be the display of the ID of found devices to identify them. Realizing this, I noticed that the Id property of the device class contains different IDs when using Android or iOS. In the device classes for Android and iOS, I found that the ids are obtained from different sources and are therefore probably also parsed differently.
Shouldn't the Device.Id property contain the same value regardless of the operating system? Or are there any operating system-related reasons against it? It would be great if there is a way to show the same Id for the same devices on Android and iOS.
Thank you for your support and the plugin you created.
Steps to reproduce

Search for devices

Display the property Device.Id for any found BLE device on a Android and a iOS mobile device

Expected behaviour
The same id is displayed.
Actual behaviour
Different ids are displayed.
Configuration
Version of the Plugin: 2.1.2
Platform:  Android 11 /  iOS 15.3.1
Device: Samsung Galaxy S21 5G / iPhone SE

Hi @birkneral,
I'm the friendly issue checker.
It seems like (37.50 %) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.
If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.
Thanks!

I'm currently working on an app with multiple Bluetooth functions.
One of these functions should be the display of the ID of found devices to identify them. Realizing this, I noticed that the Id property of the device class contains different IDs when using Android or iOS. In the device classes for Android and iOS, I found that the ids are obtained from different sources and are therefore probably also parsed differently.
Shouldn't the Device.Id property contain the same value regardless of the operating system? Or are there any operating system-related reasons against it? It would be great if there is a way to show the same Id for the same devices on Android and iOS.

To my knowledge this is simply due to OS limitations: iOS and Android just give you different kinds of IDs. While on Android you basically get the MAC address as ID, iOS does not provide the MAC but some kind of UUID (see e.g. https://developer.apple.com/forums/thread/8442).

Many thanks for the answer.


Models are downloaded, but generation time is infinite

Problem
I played with kalosm and made a simple CLI app with chat and structured generation.
Models are successfully downloaded, however, chat message generation and structured generation takes infinite time.
I already used local llms and other crates/(libraries from other programming languages), ollama, etc. Everything worked fine there, so my computer can handle LLMs.
Specifically, I used Llama 1.1b (if I remember correctly), and TinyLLama chat.
Steps To Reproduce

Just make a simple app that uses chat and add_message or task with structured generation and run()

Expected behavior
LLM output. Slow/fast - doesn't matter, but some output.
Environment:

Crate version: here is an excerpt from my Cargo.toml:

kalosm = "0.3.2"
kalosm-language = "0.3.3"
kalosm-llama = "0.3.4"
kalosm-sample = "0.3.2"

And I'm running LLMs on CPU.

Rust version: 1.82
OS info: Linux Mint 22

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

Well, something's working...

And here is the chat code. I didn't include it in the issue body, because, I think, it's trivial, I doubt there is any mistake:
    let mut chat = Chat::builder(llm)
        .with_system_prompt("You are a helpful asistant.")
        .build();

    loop {
        let input: String = Input::new()
            .with_prompt("User")
            .interact_text()
            .context("unable to get input from console")?;

        if input == "/q" {
            break;
        }

        let response = chat.add_message(input).all_text().await;

        println!("Assistant: {}", response);
    }

First, make sure you run in release mode with cargo run --release. Models will run extremely slow on the CPU without optimizations turned on.
If that doesn't fix the issue, try streaming the text instead of waiting for the whole response. LLMs can get stuck in a loop repeating the same text instead of ending the message which might make it look like text isn't generating:
use kalosm::language::*;

#[tokio::main]
async fn main() -> Result<(), anyhow::Error> {
    let llm = Llama::builder().with_source(LlamaSource::llama_3_2_1b_chat()).build().await?;
    let mut chat = Chat::builder(llm)
    .with_system_prompt("You are a helpful asistant.")
    .build();

    loop {
        let input = prompt_input("User: ")?;

        if input == "/q" {
            break;
        }

        print!("Assistant: ");
        // to_std_out streams the output to the console instead of waiting for the whole thing
        chat.add_message(input).to_std_out().await?;
        println!();
    }

    Ok(())
}


Fix board display in IE 7-8-9

Now the board displays in Chrome, Safari and Firefox. Sadly nothing is displayed yet in IE:

Polymer does only supports Internet Explorer 10 and up.


Update triggers.json

Added 'face talked' as it's a travesty of the English language.

Ha! that is a tragedy!
Merged and published in v1.2.4. Thanks for the PR!


WFLY-19935 Upgrade Weld version in Preview to 6.0.0.CR1

JIRA - https://issues.redhat.com/browse/WFLY-19935

I noticed the repo also has EE11 branch - should I send a similar PR there?

@manovotn Yes, please. Doing that just triggers a different set of CI jobs, all of which test WildFly Preview, which is what uses this.  It's just a way to get more CI, beyond the one WFP job that runs against PRs targeting main.

Thanks @manovotn


Viewing DICOM images stored in a directory

Apologies this may be basic.  Similar questions have been asked before but without definite solutions.
I am wondering the best way to approach a problem.
I want to be able to link to an OHIF Viewer to display only a single study using locally stored data (stored on the same server as OHIF, not the client computer).
I have seen the https://v3-demo.ohif.org/local demo.  I assume this parses the selected client side folder to create a JSON file used to then open the study.  Is there a way to direct the OHIF Viewer towards a folder containing images located on the same server (as opposed to on the client computer)  so that the study is opened in a similar way?  If not, is there code I can use to parse a static folder containing DICOM images to create a json file that I can then use to open the study from that folder?  (i.e. manually create the folder with DICOM images, then create the json file, then hardcode the link to OHIF so it uses the json file to open the images in that folder) If so can someone direct me to information on how to do this (both how to create the json file and also how to use this to open the study from the folder)?
Ive also read the Static Files section (under Configuration/Data Sources) in the v3 documentation.  This looks like it allows you to include a study list within the OHIF build.  However, since I want to only open a single study at a time and not generate a study list this may not be what I am looking for.
To answer why am I wanting to do this, I am trying to create a teaching file that can run without requiring internet access.  All the images plus the viewer would be encompassed using Cordova.  The teaching file would then be completely self  contained. (This still might not work if OHIF links to its dependancies as opposed to implicitly including them in its build).
Many thank for any suggestions,
Dan

Hi Dan, I have these links that might help you:

https://github.com/wayfarer3130/static-wado
https://github.com/chafey/dicomp10-to-dicomweb-js

Dear Igor,
Thank you very much.  I will look into these.
Dan

Hi @dcornfel,
I have a very similar goal. Did you find a viable solution? thx

Same here @acaland . Thanks

@anarnoli I was able to publish a static set of DICOM using static-wado

Definitely yes @EtnaTraining

Hi @EtnaTraining I have problem in generating Metadata json using static-wado. Could you please help me at issue?

@anarnoli I was able to publish a static set of DICOM using static-wado. Do you believe a blog post about how I did it could be of interest?

@EtnaTraining  Do you have a plan for blog post about static-wado?

@anarnoli I was able to publish a static set of DICOM using static-wado. Do you believe a blog post about how I did it could be of interest?

@EtnaTraining Yes please

I have still on plans to write a blog post but I am quite busy. Hopefully I will be able to do it by the end of the month

Thank you @acaland. So, you figured out a way to show a study from a DICOMWeb (created by static-wado) from a folder directly, is it right?

Any update on this? I would highly appreciate. I tried to check static-wado repo but couldn't figure it out completely.

I had plan to write a blog post, but I realised that my installation has been done on a local hosting provider and I had to customise some .htaccess rules to make it work. Not sure if my recipe will apply to others. What kind of hosting are you using for your static wado?


Create a separate monitoring stack, part 1

First part of #980.
This sets up the skeleton of a monitoring stack, and copies across the Gatling and Dashboard source code.

This is ready for review.


AdditiveForceVisualizer: doing more with explanation similarity (sort order, etc.)

I'm really loving the additive force graph. Is there an easy way to get the data from the html object, specifically the similarity ordering mapped to the original index for the entire sample dataset?
The alert is helpful: https://github.com/slundberg/shap/issues/195
But I'm hoping to grab all of the sort order values and then annotate clusters, similar to what you've done in your paper:

Currently I'm  grabbing the shap values and applying the distance calculation and hierarchical clustering separately, but it would be great if it were integrated.
More to that point, is there a plan to add more features related to the hierarchical clustering? It would be amazing if in addition to the sort order of the leaves, the AdditiveForceVisualizer also suggested clusters or even built a dendrogram.

All great ideas. I don't have plans right now to add the ability to export the dendrogram, but if you are interested in contributing some improvements to do that I am happy to review and merge them. My one hesitation is that I don't want to force the plot function to do something unrelated to plotting, and I fear that it is not work wrapping what is just two lines of sklearn code. Perhaps just a notebook example would be best so anyone can see how to use the values to get clusters.

Scott,
Can you direct me to the code used to generate the clustering that you do in your paper in figure 6A? Was a notebook created to show how this was done? I would be happy to generate a notebook for this but I currently don't understand how the heatmap was generated. I have the clustering portion that you put in another issue around this same subject, but want to make sure I am not misusing the info when I display the clusters.
--code from other issue
D = scipy.spatial.distance.pdist(shap_values[:,:-1], 'sqeuclidean')
clustOrder = scipy.cluster.hierarchy.leaves_list(scipy.cluster.hierarchy.complete(D))
Thank you for any guidance you have. Please let me know if I can help with anything. I love this package and it has greatly helped to explain models at work!

@CalebRolandWilkinson that notebook is in a repo specific to the paper: https://github.com/suinleelab/treeexplainer-study/blob/master/notebooks/mortality/NHANES I Analysis.ipynb
Hope that helps! Note that the clusters are annotated manually for that figure, but you could use any automated method you please as well.
For anyone else who lands here just looking for how to get the clustering ordering check out shap.hclust_ordering

Thank you for the direction this helps a lot!


Investigate why there are many requests for docs/previews endpoint

As part of https://github.com/Azure/azure-sdk-tools/issues/7964 we identified that there have been at least 422 calls to this endpoint.
It seems that the OpenAPI portal do multiple calls to this endpoint everytime a user wants to preview the docs. We just have to make sure that no external tool is using this endpoint and that there is nothing unexpected with the weird amount of call.s

I think I found where this is happening.
When a PR is created, the job Swagger ApiDocPreview is executed. As part of it, the CI is using OpenAPI Hub code.
See for exampel the output of PR https://github.com/Azure/azure-rest-api-specs/pull/28742
When clicking in Please click here to preview with your @microsoft account., the user sees https://review.learn.microsoft.com/en-us/rest/api/azure-rest-preview/?branch=result_c5e68036-e9fb-4a80-b631-c7f662763a59&view=azure-rest-preview:

Code for this is https://devdiv.visualstudio.com/DevDiv/_git/openapi-portal?path=/src/backend/js/docsGeneration/DocsGeneration.ts


Feature/mobile view

Reworked the website to work in mobile while keeping all sections available(sidebar, aside, themeSwitcher).
Made sure the website was fully responsive at all resolutions.

A container seems to be missing on the home page, breaking the layout.


Bosco service/app/infra blacklist

app-resource runs a bunch of things I don't care about most of the time when developing on it.  This can bring my machine to its knees, even with 16 gigs of RAM.  I'd like a way to say something like "don't run these services unless -r explicitly matches them".

So basically make the regex value of -r pass down and filter the dependencies?

Fixed!


[Vectorized][UDF] support java-udaf

Proposed changes
Issue Number: close #8389
Problem Summary:
This feature is used to support Java udaf. Users can create aggregate functions by self,
For example, we create Java udaf function by code below.
CREATE AGGREGATE FUNCTION simple_add (int) RETURNS int PROPERTIES (
    "file"="file:///pathTo/java-udaf.jar",
    "symbol"="org.apache.doris.udf.SimpleAdd",
    "type"="JAVA_UDF"
);

file: indicate where user file is.
symbol: for java udaf means udaf class in this jar.
type: indicate this function is a java udf.
Users may have some necessary conditions
when implementing aggregate functions by self,
for example:
class SimpleAdd {
    public static class State {
        some variables:
        public Long serializeLength() { return bufferSizeYouNeed; }

        example count agg: maybe a long type counter;
        and should in serializeLength() function, return how many byte you need
        to create buffer size to serialize
    }

    public State create() {
        ....... if need do some.......
        return new State();
    }

    public void destroy(State s) {
        ....... if need do some destroy work.......
    }

    public void add(State s, Type val, [Type val2, .....]) {
        do update work here;
        like count agg function: you need plus 1
   }

    void serialize(State s, ByteBuffer buffer) {
        put you add result into buffer
   }

    void merge(State s, ByteBuffer buffer) {
       get result from buffer and then merge
    }

    Type getValue(State s) {
          return finally result
   }
}

Checklist(Required)

Does it affect the original behavior: (Yes/No/I Don't know)
Has unit tests been added: (Yes/No/No Need)
Has document been added or modified: (Yes/No/No Need)
Does it need to update dependencies: (Yes/No)
Are there any changes that cannot be rolled back: (Yes/No)

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...

Hi @zhangstar333 , could you explain more about what does this PR do?
Because we already supported part of JAVA udf feature, so you need to explain what's new in your PR.

need also modify the doc，please


Make the build process of docker images faster

Problem description
Building Guardian docker images can take time, even on a powerful machine. Most of the time is spent downloading and compiling npm packages.
Some operations are executed multiple times during the process. Theoretically, those operations could be executed once, and the following tasks can leverage their outcomes (i.e., building interface and common folders).
As a test, I was able to configure docker-compose and Docker files to compile interfaces and common source code just once, and leverage those elements in following tasks as a dependency container.
The solution works, and I post here as an example of the gain in speed you can achieve by removing duplication in the process. Still, I wouldn't say I like this approach because it can mislead developers into thinking the container used at build time is necessary also at runtime (that is not true). This configuration of the docker-compose file can also trick different client into thinking the project is not started correctly, because you have a stopped container in the list of containers.
A better approach can be to create the image as a separate step, i.e., guardian-base, and using that image as the base image for the rest of the building process (i.e., FROM:guardian-base). At the moment, I didn't find a way to do all via docker compose, unless I create a container and a dependency. So the only option I see for the moment for this is to use two commands: build the image, run docker compose.
-----------------------------------------------
# Dockerfile.common
# New file in the root folder of the project
-----------------------------------------------

# syntax=docker/dockerfile:1
# Stage 0: Use node image for base image for all stages
ARG NODE_VERSION=20.11.1-alpine
FROM node:${NODE_VERSION} as base
WORKDIR /usr/local/app
# Define an argument `YARN_CACHE_FOLDER` for the Yarn cache directory
ARG YARN_CACHE_FOLDER=/root/.yarn

# Stage 1: Build interfaces module
FROM base as interfaces
COPY --link interfaces/package.json interfaces/tsconfig*.json yarn.lock ./
COPY --link interfaces/src src/
# Here and after. Leverage a cache mount to /root/.yarn to speed up subsequent builds
RUN --mount=type=cache,target=/root/.yarn \
    yarn install --frozen-lockfile && yarn pack

# Stage 2: Build common module
FROM base as common
COPY --link --from=interfaces /usr/local/app/guardian-interfaces-*.tgz /tmp/interfaces.tgz
COPY --link common/package.json common/tsconfig*.json yarn.lock ./
COPY --link common/src src/
RUN node -e "const fs=require('fs'); const input=JSON.parse(fs.readFileSync('package.json')); input.dependencies['@guardian/interfaces']='file:/tmp/interfaces.tgz'; fs.writeFileSync('package.json', JSON.stringify(input));"
RUN --mount=type=cache,target=/root/.yarn \
    yarn install && yarn pack

# Stage 3: Installing production dependecies
FROM base as deps
COPY --link --from=interfaces /usr/local/app/guardian-interfaces-*.tgz /tmp/interfaces.tgz
COPY --link --from=common /usr/local/app/guardian-common-*.tgz /tmp/common.tgz

-----------------------------------------------
# Dockerfile in the guardian-service folder
# Leveraging the common image in the building of the guardian-service image
-----------------------------------------------

# syntax=docker/dockerfile:1
# Stage 0: Use node image for base image for all stages
ARG NODE_VERSION=20.11.1-alpine
FROM node:${NODE_VERSION} as base
WORKDIR /usr/local/app
# Define an argument `YARN_CACHE_FOLDER` for the Yarn cache directory
ARG YARN_CACHE_FOLDER=/root/.yarn

# Stage 3: Installing production dependecies
FROM guardian-commons as deps
COPY --link guardian-service/package.json guardian-service/tsconfig*.json yarn.lock ./
RUN node -e "const fs=require('fs'); const input=JSON.parse(fs.readFileSync('package.json')); input.dependencies['@guardian/interfaces']='file:/tmp/interfaces.tgz'; input.dependencies['@guardian/common']='file:/tmp/common.tgz'; fs.writeFileSync('package.json', JSON.stringify(input));"
RUN --mount=type=cache,target=/root/.yarn,sharing=private \
    yarn install --prod

# Stage 4: Build service
FROM base as build
COPY --link --from=deps /tmp/interfaces.tgz /tmp/interfaces.tgz
COPY --link --from=deps /tmp/common.tgz /tmp/common.tgz
COPY --link --from=deps /usr/local/app/package.json /usr/local/app/tsconfig*.json /usr/local/app/yarn.lock ./
COPY --link guardian-service/src src/
RUN --mount=type=cache,target=/root/.yarn \
    yarn install --frozen-lockfile && yarn run build:prod

# Stage 5: Create the final image
FROM base as image
ENV NODE_ENV production

COPY --link guardian-service/src/migrations/artifacts src/migrations/artifacts/
COPY --link guardian-service/system-schemas system-schemas/
COPY --link guardian-service/artifacts artifacts/

# Copy the production dependencies from the deps stage and the built application from the build stage into the image
COPY --link --from=deps /usr/local/app/node_modules node_modules/
COPY --link --from=deps /usr/local/app/package.json ./
COPY --link --from=build /usr/local/app/dist dist/

# Change the user to node
USER node

CMD [ "node", "dist/index.js" ]

-----------------------------------------------
# docker-compose.yml
# Updated docker compose file to create the common image and create a dependency for the guardian-service
-----------------------------------------------
services:
  guardian-commons:
    env_file:
      - ./configs/.env.${GUARDIAN_ENV}.guardian.system
    build:
      context: .
      dockerfile: ./guardian-commons/Dockerfile
    image: guardian-commons
    environment:
      - GUARDIAN_ENV=${GUARDIAN_ENV}

  guardian-service:
    env_file:
      - ./configs/.env.${GUARDIAN_ENV}.guardian.system
    build:
      context: .
      dockerfile: ./guardian-service/Dockerfile
    depends_on:
      - guardian-commons
    init: true
    volumes:
      - ./guardian-service/tls:/usr/local/guardian-service/tls:ro
      - ./guardian-service/configs:/usr/local/guardian-service/configs:ro
    environment:
      - GUARDIAN_ENV=${GUARDIAN_ENV}

Requirements

Reduce the time for building all the Guardian docker images
Remove duplicated operations in the build process

Definition of done

We reduce the time of building all the docker images on the same machine

Anything around these kind of benefits/optimisations would be welcomed


How to Setup Congito Amplify to link to a Cognito account in another enviroment

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting questions.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
NEW_APP
AWS Region
us-east-1
Amplify Hosting feature
Access control
Question
Do need to setup a Federated Cognito user pool? So that my AWS Amplify backend project can authenticate against a central Cognito user pool? Or can I just some how connect directly to their user pool?
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html
So, I think the flow is...

Create a Cognito user pool in my environment.
a) Can create from scratch
Link that user pool to the external environment.
Update the Amplify authentication to point to the my environment user pool.

Will this work? Or is there a better/easier solution?

Hi @jasontVitac 👋, thanks for raising this!
Can you clarify where you are in the process of implementing Auth or creating your user pool?  Is there a certain section of the docs you’re following from the Amplify side?  Happy to help and get your Authentication up an running!

Hi @jasontVitac 👋, thanks for raising this!
Can you clarify where you are in the process of implementing Auth or creating your user pool? Is there a certain section of the docs you’re following from the Amplify side? Happy to help and get your Authentication up an running!

Well we have two different ideas...

Is to use the existing Amplify Cognito integration and the extend that logic through a Federated Cognito Pool.
a) Idea is currently on the backburner.
Is to use a S3 bucket and the policy settings to link through an existing ALB that contains the Cognito setup already.
a) Our current approach. But we can't get it to work. We added the VPC End Point to our S3 bucket and it just gives us a 403
error.

I opened up a support ticket through our company account for direction. But still waiting on details. Any help is appreciated!

@jasontVitac thanks for sharing that information. To better assist you, I would like to understand the following:

How did you set up the auth resources?

Amplify CLI
Amplify Studio
Cognito console

What federated providers are you looking to use?
Can you elaborate on the 403 errors that you are observing? Do the errors occur when trying to upload and/or download resources?
Lastly, can you provide us your flow of events?


As Mary (#1) I want to see a list of applicable food recalls so that I can take action and adjust our menu

Recalls in Colorado:
Specific: https://api.fda.gov/food/enforcement.json?search=distribution_pattern=colorado&limit=100
Too many false returns: https://api.fda.gov/food/enforcement.json?search=distribution_pattern=CO&limit=100


WIP: migration

WIP
Is this something that we are aiming for or do you have other suggestions? Will do the same for Signals, Services -> Providers etc.

Just need some pointers about this.

Can also note that we don't need immediate signal flag anymore

Will make a note on that @Guria


Share button under the message

How can I do inline button, that can share message to another chat?

You can use switch_inline_query:
var iKeys = [];
iKeys.push([{
	text: "Share",
	switch_inline_query: "Shared message"
}]);

bot.sendMessage(rows[i].chat_id, "Question", {parse_mode: 'HTML', reply_markup: {inline_keyboard: iKeys}});

a clear example is to share with a button, a button with different links and publish it on a channel. I hope to have explained to me the best possible. Thanks in advance

Hello, I have several questions: I have tried to create a button that is responsible for sending a post to another chat. I have tried to modify the example code that is above this section without getting results. I would like if it were possible that they would explain to me quickly the operation of the online keyboards or guide me in the creation of a similar button.
Many thanks in advance

I think you need that:
var code = "test";
var iKeys = [];

iKeys.push([{
	text: "Share query",
	switch_inline_query: code
}]);
bot.sendMessage(message.chat.id, "Click below to share your code", {
	parse_mode: 'Markdown',
	reply_markup: {
		inline_keyboard: iKeys
	}
});

@sidelux I continue with the same doubt. And that example I still can not make it work. You could explain it a little more if it's not too much trouble. We've been trying to make it work for a week and it's impossible for me.
Check many tutorials by Google, but it was not helpful. So if you can explain it a little more I would appreciate it

Some like this:

For example send a Message with share botton and send inline to other chats

Exactly how Daniel explained it, I have a database with which to work but I do not show results

I don't know which part are not clear to you, anyway i provide you an example related to my workflow.

User use a command like /create to generate an element, bot assign a random code to user for that element
User can print element in inline mode using that code with @botname <code>
Also that user can call that element in inline mode with function provided two messages ago.

So:
bot.onText(/^\/create/, function (message, match) {
    var code = Math.random()*1000;
    // save code to database
    var iKeys = [];
    iKeys.push([{
        text: "Share query",
        switch_inline_query: code
    }]);
    bot.sendMessage(message.chat.id, "Click below to share your code", {
        parse_mode: 'Markdown',
        reply_markup: {
            inline_keyboard: iKeys
        }
    });
});

Then:
bot.on("inline_query", function (query) {
    var code = parseInt(query.query);
    // check if the code is in database and user can use it (valid var)
    if (valid == true){
        bot.answerInlineQuery(query.id, [{
                                id: '0',
                                type: 'article',
                                title: 'New item',
                                description: "Publish item",
                                message_text: "Details of your item base on code..."
        }]);
    }else{
        bot.answerInlineQuery(query.id, [{
                                id: '0',
                                type: 'article',
                                title: 'New item',
                                description: "Publish item",
                                message_text: "Code not found"
        }]);
    }
});

Then, after user selected chat

Now, if you not understand yet, please give me a valid example so i can explain you in a more detailed way.

@sidelux  In the third line of code, it says to save the code in the database ... the buttons? send Message?
The var variable that would be referenced in the database?
Thanks in advance

Thanks for your time mate.
I was using the inline keyboards, but I was wrong. I was missing the bot.on. That's why he did not finish answering
and I have another question that database you use because I see that you put "save code to database".
If I understand well what you keep is the message and the id of it, right?

@DestroyerIV For me is the random generated code:
...
var code = Math.random()*1000;
connection.query("INSERT INTO list VALUES (" + code + ")", function (err, rows, fields) {
    if (err) throw err;
});
var iKeys = [];
....

var code = parseInt(query.query);
var valid = 0;
connection.query("SELECT 1 FROM list WHERE code = " + code, function (err, rows, fields) {
    if (err) throw err;
    var cnt = Object.keys(rows).length;
    if (cnt > 0)
        valid = 1;

    if (valid == true){
    ...

});

@danielperez9430 Nope, is the data i want to use in inline mode (number, string, etc).

Okey Thanks for the information mate,  😍😍 and thanks for your time


Combine acc2gb.py and fetchseq.py, putting db and rettype as arguments

The scripts acc2gb.py and fetchseq.py do essentially the same thing: they use the Entrez system to download data from NCBI.
We can combine them into a single, multi-purpose script by removing some of the hard-coded parameters and making them command line arguments. We'll keep the acc2gb.py script and delete fetchseq.py since it has fewer calls and @aays knows what they are.
These are the changes that need to be made:

[ ] Remove hardcoded db parameter on line 22 and make it a command line argument
[ ] Remove hardcoded rettype parameter on line 33 and make it a command line argument
[ ] Add parameter retmode="text" on line 33, same as in fetchseq.py.
[ ] Include in the documentation what 'db' and 'rettype' mean and which arguments would be used in which situations. For now, these are the two we've been using:
Case 1: rettype = gbwithparts, db = nuccore - downloads genbank file with metadata and fasta DNA sequence (i.e. for downloading bacterial genomes with metadata)
Case 2: rettype = fasta, db = protein - downloads fasta file with protein sequence (i.e. for downloading antiCRISPR protein sequences for BLAST)
[ ] Delete fetchseq.py.

Submit a PR to the master branch when complete! If you have any questions at all, ping me or @aays and we'll get back to you ASAP.

Hi @morrme, definitely not just for first-timers! Go ahead!

Although I should check with @aays - have you done anything yet on this issue?

@mbonsma ok. if @aays gives the go-ahead, i've tried to do the steps on my end and the only one i'd need your help with is the docstring--properly defining the terms for your environment.

@morrme I'd say go ahead with the PR then, upon further thought I don't think @aays has started this yet. What do you have so far for the docstring?

@morrme @mbonsma Easter weekend proved to be a bit busier than expected, and I indeed haven't gotten around to this yet - so I would say go for it!

@mbonsma thanks! i waited a while to see if any other first timer would want to take on the challenge, because i definitely appreciate your group for providing issues like these. 👍
so as i'm not very familiar with the terminology, here's what I've been able to find via research:
db  is NCBI database ID
another reference defines it as

Target database about which to gather statistics. Value must be a valid Entrez database name.

rettype is retrieval type. (or..."output file format"? )
The two examples you listed could be under an Examples heading.

@morrme, that looks good. How about this:
db: NCBI database ID, must be a valid Entrez database name
rettype: type of file to retrieve
retmode: output file format ('text' or 'xml')

And then, as you suggest, those two examples under Examples.

@mbonsma but retmode is not a parameter, as it is hard-coded to 'text', correct?

@morrme true, good point. We can leave that one out then.

@mbonsma @aays ready for review :smiley:


Test gitlab integration

This PR is to check if the gitlab status check name is static for newly created PRs

bors try

bors try

Okay, it looks like the status name is ci/gitlab/git.rwth-aachen.de for newly created PRs.
I guess that means we have to create new PRs for bors to work.

Okay, it looks like the status name is ci/gitlab/git.rwth-aachen.de for newly created PRs.
I guess that means we have to create new PRs for bors to work.


Display more info

add IC50  definition
add number of compounds
cc @pwalczysko

Built locally, shiny app works fine and the new text makes sense


Refactor biospecdb.apps.uploader.loaddata.save_data_to_db()

Rip out the guts for saving to the db to another func that has the needed fields as params or dynamically as kwargs 🤷
This would allow for easy db updates, e.g., from a form as in https://www.notion.so/Data-input-form-s-49204f4997ea44b1b7418288b6a503da?pvs=4.
At present, this functionality is still possible by passing in a single-row dataframe, i.e., save_data_to_db(None, None, data)
Relates to #29

Some aspects are already done, others no-longer in project scope.


Add Apple to 'Projects using Algebird'

 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.

Codecov Report

Merging #663 into develop will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop    #663      +/-   ##
==========================================
- Coverage    89.53%   89.4%   -0.14%
==========================================
  Files          113     113
  Lines         8944    8944
  Branches       490     490
==========================================
- Hits          8008    7996      -12
- Misses         936     948      +12

Impacted Files
Coverage Δ

...src/main/scala/com/twitter/algebird/Interval.scala
75.65% <0%> (-10.44%)
:arrow_down:

.../main/scala/com/twitter/algebird/Successible.scala
87.5% <0%> (-4.17%)
:arrow_down:

...c/main/scala/com/twitter/algebird/MapAlgebra.scala
74.77% <0%> (-0.91%)
:arrow_down:

.../main/scala/com/twitter/algebird/BloomFilter.scala
94.24% <0%> (+0.44%)
:arrow_up:

.../main/scala/com/twitter/algebird/Approximate.scala
90.32% <0%> (+1.61%)
: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 a87732f...9751a38. Read the comment docs.


Update to net7.0

Also tried to fix failing unit test (https://github.com/AngleSharp/AngleSharp/issues/1052). Became a bit of a hack / exclusion specially for <strong> tag(s). (Hence the Work in Progress.)
All UnitTests pass now. But benchmark tests are having some difficulties with HttpClient.
Types of Changes
Prerequisites
Please make sure you can check the following two boxes:

[x] I have read the CONTRIBUTING document
[x] My code follows the code style of this project

Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[x] Bug fix for https://github.com/AngleSharp/AngleSharp/issues/1052 (non-breaking change which fixes an issue, please reference the issue id)
[ ] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[x] All new and existing tests passed

Description
Update to net7.0 with a possible fix for https://github.com/AngleSharp/AngleSharp/issues/1052.

 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.Henry Roeland 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.

This is great - thanks for the contribution.
The issue is a long outstanding issue that I worked on a bit (maybe 1-2 hours), but finding a solution was not possible in that time frame. The issue itself is clear, the question is how to solve it (the issue is in the formatting algorithm and especially in the part where it takes elements off from the formatting stack; it must close them, but it should remain consistent)

(For the PR don't feel blocked by the broken unit test - it is broken (because it is a real issue), but we should not make a fix that makes this one case "unbroken", but (1) introduces new issues and (2) does not solve the issue in general; only in the one provided case).

(For the PR don't feel blocked by the broken unit test - it is broken (because it is a real issue), but we should not make a fix that makes this one case "unbroken", but (1) introduces new issues and (2) does not solve the issue in general; only in the one provided case).

You are totally right. Thats why this is a WIP / Draft PR. I identified the 2 spots where the issue originates from. Any tips for real / proper fix are welcome. :-)

The Windows build is now oke but fails on the 1 or 2 Unittests that fail:
Failed!  - Failed:     1, Passed:  3508, Skipped:     2, Total:  3511, Duration: 46 s - AngleSharp.Core.Tests.dll (net7.0)
An error occurred when executing task 'Run-Unit-Tests'.
Error: One or more errors occurred.
.NET Core CLI: Process returned an error (exit code 1).
The Linux build fails in finding nuget.exe (as it seems like).
On my Windows 11 machine the Unittests results are:

The "new" failing Unittests are having problems with the CookieContainer in combination with an empty "" Url/Uri.
This error only occurs for net461 and net472. net6.0 and net7.0 work fine.

Any tips for real / proper fix are welcome. :-)

Yeah I wish I could give some here. I'll reserve some time this week to work on that issue.

The "new" failing Unittests are having problems with the CookieContainer in combination with an empty "" Url/Uri. This error only occurs for net461 and net472. net6.0 and net7.0 work fine.

This is a bit strange (as those targets did not really change) - but I'll look into it.

Any tips for real / proper fix are welcome. :-)

Yeah I wish I could give some here. I'll reserve some time this week to work on that issue.
Thanks!

The "new" failing Unittests are having problems with the CookieContainer in combination with an empty "" Url/Uri. This error only occurs for net461 and net472. net6.0 and net7.0 work fine.

This is a bit strange (as those targets did not really change) - but I'll look into it.
net6.0 for the UnitTests project explains why these errors didn't come up before.
Now multitargeting the UnitTests to:
net6.0
net461;net472;net6.0;net7.0

Kind regards, Henry

Yeah the cookie container changed a bit - but I think this is not AngleSharp's problem (if one wants to have a proper cookie container implementation one should use the custom container from AngleSharp.Io).
So maybe we should exclude some tests for certain frameworks or adjust their expectations to be consistent. I'll think about it. Thanks for following up on that @driekus77 !

I'm busy trying to fix the build on Linux by updating to newest Cake.Tool version (3.0.0).
On Windows this succeeds, again with failing unit tests.
Just realized that Mono support is gone in this Cake version.
How desperate does AngelSharp needs to build with Mono?
Is the Cake.Tool update a possibility for you guys?

Had both Windows and Linux build green thanks to ContinueOnError in "Run-Unit-Tests"  Cake Task.
Now removed this ContinueOnError and leave the build waiting on fixes for the Unit Tests.
For my part this PR is ready for review.

How desperate does AngelSharp needs to build with Mono?

I'd say that is no longer required - it was back in the old days when no other option existed on nix systems.

Is the Cake.Tool update a possibility for you guys?

Definitely - in the mid/long run I'd envision we migrate away from Cake though to nuke.

For my part this PR is ready for review.

I'd say that is no longer required - it was back in the old days when no other option existed on nix systems.

Is the Cake.Tool update a possibility for you guys?

Definitely - in the mid/long run I'd envision we migrate away from Cake though to nuke.

Don't know nuke but I can give it a try if you want? Looks promising from there website!

Don't know nuke but I can give it a try if you want? Looks promising from there website!

That would be superb - also regarding this PR. I will be able to make a final review / merge later today or tomorrow. Just at the moment caught up in project work.


[IOTDB-5421] Add sampling attributes for M4

Previously, the M4 function supports two types of attribute inputs (actually two types of sliding windows):
(1) Control the sliding size window using attributes windowSize and slidingStep. For example: select M4(s1,'windowSize'='10','slidingStep'='10') as samples from root.vehicle.d1.
(2) Control the sliding time window using attributes windowInterval, slidingStep, displayWindowBegin and displayWindowEnd. For example: select M4(s1,'windowInterval'='25','slidingStep'='25','displayWindowBegin'='0','displayWindowEnd'='100') as samples from root.vehicle.d1.
Motivated by real use cases, this pr enables controlling M4 behaviors using sampling attributes: samplingInterval, samplingThreshold, displayWindowBegin, displayWindowEnd. For example: select M4(s1,'samplingInterval'='5','samplingThreshold'='100','displayWindowBegin'='0','displayWindowEnd'='150') as samples from root.vehicle.d1.

samplingInterval: The sampling time interval length. Long data type. Required.
samplingThreshold: The upper limit of the number of sampling points. Long data type. Optional. If not set, default to 10000.
displayWindowBegin: The starting position of the window (included). Long data type. Required.
displayWindowEnd: End time limit (excluded, essentially playing the same role as WHERE time < displayWindowEnd). Long data type. Required.

The user-defined sampling time window is a special kind of sliding time window, which is special in that:

There is a conversion relationship between the length of the sliding time window windowInterval and the sampling time interval samplingInterval, see below for details. Note that here the user indirectly controls the window time length windowInterval.
The sliding step of the sliding time window slidingStep is fixed to be equal to the window length windowInterval here, so there is no need for the user to input the slidingStep parameter.
displayWindowBegin and displayWindowEnd are required parameters here.

For simplicity, let $L=displayWindowEnd-displayWindowBegin$, $T=samplingInterval$, $t=windowInterval$, $M=samplingThreshold$. The conversion relationship between the length $t$ of the sliding time window and the sampling time interval $T$ is as follows:
Consider two aspects: (1) M4 samples 4 points in a sliding time window, and (2) the upper limit of the number of sampling points $M$ must be satisfied. It is easy to know that given the sampling time interval $T$ specified by the user, the maximum number of sampling points is $\lceil L/T \rceil$; given the sliding time window length $t$, the maximum number of M4 sampling points is $\lceil L/t\rceil *4$. Therefore, the conversion idea is: if the length of the sliding time window set to be four times the sampling time interval (i.e., $t=4T $) can meet the upper limit of the number of sampling points, then set accordingly, otherwise adjust the length $t$ of the sliding time window to meet the upper limit of the number of sampling points. Formally:

If $\lceil L/T\rceil \le M-4$, then set $t=4*T$. At this time $L/T\le \lceil L/T\rceil\le M-4$, so $\lceil L/t\rceil *4=\lceil L/4T\rceil *4<(L/4T+1 )*4\le M$, that is, the maximum number of M4 sampling points does not exceed the upper limit of sampling points $M$.
Otherwise $\lceil L/T\rceil > M-4$, then set $t=\lceil 4L/(M-4) \rceil$. At this time $t=\lceil 4L/(M-4) \rceil\ge 4L/(M-4)$, so $\lceil L/t\rceil *4<(L/t+1)*4\le M$, that is, the maximum number of M4 sampling points does not exceed the upper limit of sampling points $M$.

More information see related English or Chinese docs (docs/UserGuide/Operators-Functions/Sample.md).

Note: Equal Size Bucket Sample Function uses the sampling ratio as the input parameter.


filter convenience method on PackageSet

from conversation with @sunshowers
fn filter<F: FnMut(&PackageMetadata) -> bool>(&self, f: F) -> Self

This can be accomplished using intersection, but it would be great to have a convenience function for it
you could also add a parfilter function that uses rayon

It would be great to have this, and it is hopefully not very complex.


fix (showcase) @ #14: updating margin styles to optimize mobile ui

This Solves #14

@fernando-RA good job! Can you please share your discord id?

0xfernando#4362


chore: Update dependecies

Wait for cw_multi_test 2.1.0 to be released before merging.

I've merged the current origin/main version and changed the cw-multi-test version to 2.1.0-rc.1. Still waiting for cw-multi-test 2.1.0.


Documentation issue: Broken links on the documentation website

Hi! Some links on the documentation website (https://tootsdk.github.io/TootDocs/?v=1) seem to have relative paths. While this works while navigating the docs within the GitHub repo itself, trying to access the links from the website will lead you to the good-old 404 page. Here's an example of such a link: https://tootsdk.github.io/TootDocs/Examples/swiftui-toot/. So far, I've only noticed this with the README; however, I wonder if there are other relative URL paths in the project.

Thanks @f-person 🙏
I suspect this will the only part suffering from this in the docs, as the README in the docs is generated from the README.md in the repo, which is where the relative paths come from in the first place.
I have a plan to look into DocC, as a replacement for Jazzy as I think we could get the docs looking a lot slicker!


Updated Stateful Apps to new format

Definition of stateful apps contained more information about stateless apps and was not updated according to the new style guide. Tried to keep it more general to cloud-native technology and added links to other terms in the new definition. Please let me know if any further changes are required.

Closing as this term has been OBE


Apply sccache?

https://github.com/mozilla/sccache seems good to apply. I didn't understand sccache fully but looks good

It does reduce time, but yes it is not a lot.
I am surprised by rust-cache, it has no effect at all...
Look at this picture.


chore: remove not used file

Thanks @helio-frota for the help at https://github.com/nodeshift/opossum/issues/481#issuecomment-717134236
This just remove the file that is not used in this demo.

@Hongbo-Miao thank you

@Hongbo-Miao this repository is sort of not intended for the end users (no docs etc), but contributions (or add new short demos) are welcome :+1:

Got it, thanks!


Revert "[ImgBot] Optimize images"

Reverts qwel-exe/LinkFree#1

omg thanks

omg thanks

welcome, no worries! please merge #7 and #4 too, idk if this will work

@qwel-exe If you got the email, do NOT MERGE #4 please close this PR asap


Where to install new versions of .Net Core SDK on Linux server?

As I understand it, new versions of the .Net Core SDK can be installed over older versions of the .Net Core SDK. I think I read somewhere that newer versions can build projects that target previous versions. I've googled for this but can't seem to find an answer.
Is this correct? I ask because our Linux SA installs every update to the SDK in new locations making it complicated to manage builds within Jenkins.

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

ID: a1200f60-5ad1-2b1e-067d-07f2dd442915
Version Independent ID: 0e53d9c7-32ca-1341-f89a-a901a5636a9d
Content: .NET Core SDK and runtime dependencies - .NET Core
Content Source: docs/core/install/dependencies.md
Product: dotnet-core
GitHub Login: @leecow
Microsoft Alias: leecow

TLDR:
Each SDK is standalone and you don't need older versions as long as you don't target a specific major.minor.patch version for your app. As such, you can safely delete an old SDK version and replace it with the latest patched version.

When you target a specific version, you need that major.minor SDK version installed. The SDK a lot of pieces, including these two main pieces:

The dotnet CLI command for actions (like build, publish, add a package to a project, etc)
The framework libraries.

When you install a newer SDK, you want that as the dotnet CLI command, say the latest v3.1. You can still create apps for 2.1 with the 3.1 CLI as long as 2.1 SDK is installed. This is because the 2.1 app you're creating needs the framework libraries of 2.1 SDK to compile against.
You don't need every update to every minor SDK release though. You would just want the latest for the major.minor family. I would think that a build system would need the 3 supported SDKs, at whatever the latest patch is:

3.1
3.0
2.1

You only need one version of the SDK for each of those releases.


Update gitignore with integration tests directory

Signed-off-by: Ranjith Kumar<EMAIL_ADDRESS>

[ ] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes
Add regex for e2e integration temp files to .gitignore

Verification
Verified using git status

We also should fix the disk leak, it's leaking all the time (: Can you maybe add github issue?

Is this related to #1767 ?
Why is the disk leaking?

No this is just e2e test run. If you do make test-e2e it somehow leaves behind this directory after tests... somehow. We should fix it. Added ticket: https://github.com/thanos-io/thanos/issues/2587 @ranjithkumar007

Thanks. Will look into it.


IE 11 problem in Theme switch

HI GUYS. ^^
When I visit github.site using IE11 :   url :  https://cipchk.github.io/ng-alain/dashboard/v1
then Theme switch is not working propery . Even I use all of pollyfills.
how can i fix this ? any one help me plz~!

duplicated of #33.
i will next version fix this.


nodejs: init at 9.0.0

Motivation for this change
This adds the new node.js 9.x release line starting at 9.0.0.
Release Notes
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Tested with nox-review on Linux.


Shitton of warnings when debugging iobroker.javascript

This goes on for a while.

Also maybe node_modules should be exempt from FS watching:

WTF? Why is there a node_modules directory in src? Oh yes right, it's the weird way of doing React... I'm not sure if we should even support such adapters because we will also not be able to properly rebuild the UI let alone do hot reload.
The watch excludes these files already as you can see in the (before/after): 1/0

Oh yes right, it's the weird way of doing React...

Good point. But ignoring node_modules altogether shouldn't be too bad?
dev-server run works fine, just watching fails.


ERROR: File does not exist at path /var/app/staging/app/Modules/**/module.json

Like this issue, we're also seeing performance issues.
We've turned on cache but, the way our deployment works, is it goes into /var/app/staging/* before moving to /var/app/current/*.
This perfect storm results in this error:
[2020-09-11 15:32:12] testing.ERROR: File does not exist at path /var/app/staging/app/Modules/**/module.json. {"exception":"[object] (Illuminate\\Contracts\\Filesystem\\FileNotFoundException(code: 0): File does not exist at path /var/app/staging/app/Modules/**/module.json. at /var/app/current/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:54)
...

My view is that we need a post deployment command to reset the cache, but, there isn't one.
Suggestions welcome.

One way would be to add a enable/disable in migration.

Hi,
Not sure about your setup. You might have to clear the cache indeed on every deploy (good practice anyway), maybe symlink something too?

@nWidart I'm still seeing this issue.
The way elasticbeanstalk works is a pretty common "zero downtime" approach, however it does differ to the way envoyer works.
Envoyer has a directory called current, then symlinks to the current release directory.
ElasticBeanstalk on the other hand will create a "staging" directory, then rename it to "current" when it's ready. This behaviour cannot be changed.
For whatever reason this package appears to be caching the full path to the modules.json, rather than a relative one so when the switch happens, it's reading from the wrong directory.
As part of the deployment process, you have to run artisan commands before the switch is done (eg: php artisan migrate), which is when it's still in "staging" so I think this is when it's caching the path.
Post deploy it will then run artisan commands again.
We've had to write a command that will force the clearing of the cache so that the path isn't cached. However there appears to be a bit of a delay so sometimes processes may hit the application before the system has cleared the modules cache.
Caching seems pretty essential to the performance of the library, yet seems to be supported in a very limited way (ie: no native way to clear it automatically) and fixed path rather than relative, none of which is useful when you are deploying quite often.
Is this something you intend to improve upon or has this package reached maturity?

One idea I'm going to try is to see if the config can be updated to be relative...
See: https://github.com/nWidart/laravel-modules/blob/master/config/config.php#L74
eg: modules' => 'Modules',
Is there any reason it needs to be absolute or is that just a pre-optimisation?
Cheers.


Dependent Reactors

this text assumes I'm gonna rename Reaction to Reactor. See #15
Sometimes a Reactor's mode (active/dormant, running/stopped, whatever) is dependent on some piece of state S. Reactors can't start themselves, so it is natural to have a separate Reactor P which listens to S and starts/stops the dependent Reactor D accordingly.
This is fine, except when the piece of state T which D is listening to also depends on S. DerivableJS makes no guarantees about which order Reactors are traversed during a reaction phase. This means that D could dereference a derivable which should not be calculated given S. So P's reaction must be invoked before D's.
There are a couple other issues around this that I need to think about.

... And those issues involve whether or not dependent Reactors should be stopped when their parent Reactor is stopped and, if so, should it be possible to 'orphan' a dependent Reactor such that it becomes independent?
The only API change needed for any of this would be the orphaning operation. The dependencies can be inferred just like for Derivations.
Also, to illustrate the problem discussed in the top comment:
const arr = atom([0, 1, 2]);

// set up reactor to print 3rd elem of arr, but don't start it
const A = arr.reactor(arr => console.log(arr[2].toString()));

// instead control it by reacting to the length of the array
const B = arr.derive(a => a.length).react(len => {
  if (len >= 3) {
    if (!A.isRunning()) A.start().force();
  } else {
    A.stop();
  }
});
// $> 2

arr.set([0,1]);
// A and B get invoked
// but if A is invoked before B, the .toString() will
// throw an error because arr[2] is undefined

// but if B is invoked before A, A gets stopped before
// it has the chance to make that mistake


🔨 Refactor Engine.predict method

📝 Description

Addresses https://github.com/openvinotoolkit/anomalib/issues/1768

✨ Changes
Select what type of change your PR is:

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] 🔨 Refactor (non-breaking change which refactors the code base)
[ ] 🚀 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
[ ] 🔒 Security update

✅ Checklist
Before you submit your pull request, please make sure you have completed the following steps:

[ ] 📋 I have summarized my changes in the CHANGELOG and followed the guidelines for my type of change (skip for minor changes, documentation updates, and test enhancements).
[ ] 📚 I have made the necessary updates to the documentation (if applicable).
[ ] 🧪 I have written tests that support my changes and prove that my fix is effective or my feature works (if applicable).

For more information about code review checklists, see the Code Review Checklist.

Are you going to make the same changes for the other entrypoints? In the following for example,
    def fit(
        self,
        model: AnomalyModule,
        train_dataloaders: TRAIN_DATALOADERS | AnomalibDataModule | None = None,
        val_dataloaders: EVAL_DATALOADERS | None = None,
        datamodule: AnomalibDataModule | None = None,
        ckpt_path: str | None = None,
    ) -> None:

it would be more consistent if train_dataloaders is only allowed to be a (list of) dataloader(s)

Ah good point! I'll update those as well


Roll Flutter Engine from 54b573e9c4e5 to f09108537777 (2 revisions)

https://github.com/flutter/engine/compare/54b573e9c4e5...f09108537777
2023-06-30<EMAIL_ADDRESS>Fix inverted boolean in Windows document selection changed a11y event (flutter/engine#43281)
2023-06-30<EMAIL_ADDRESS>Revert "Reland "add non-rendering operation culling to DisplayListBuilder" (#41463)" (flutter/engine#43358)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jimgraham@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Ability to configure client to send default headers & etc.

Hello,
I faced the need to send some headers that were identical for the service the were sent on. I thought that it'd be nice to have the ability to set default headers for the client in configuration.
Something like:
feign:
  client
    config:
      some-api:
        defaultHeaders:
          headerName: [HeaderValue1, HeaderValue2]

I'd like to add the possibility to do this without writing code yourself.
Of course you can write a RequetInterceptor yourself,  and make something similar, but I think that it's much more convenient to have it directly in here.
I think It may be done with adding some additional field in FeignClientConfiguration & FeignClientFactoryBean (at the first glance)
Thank you for the feedback.

It will be nice. Most of my API needs to add apikey header so +1 for this

I've tried to implement this, you can check this here!
I wrote some tests, my solution seems to work fine.
I hope this helps!

Any updates on this?
Should I prepare a PR?

Changes merged.


Add initial support for (ESP32) RISC-V devices

Notably lacking the ability to run from RAM, but that is Coming Soon™. This works well enough to prove out the concept and run some basic tests for the time being.
I've additionally added an ftdi feature, as the ESP32-C2 does not have the USB Serial JTAG peripheral and as such we must use an external programmer; the ESP-Prog is FTDI-based which drove this decision.
Please let me know if you'd like to see anything changed in this PR :)

FYI ftdi is no longer necessary, it's been enabled unconditionally in probe-rs.

Don't have time for this right now, somebody else can pick up where I left off if they want.


Add Ruby 3.4 to spec matrix

Now that Ruby 3.4 is out, head will relate to the 3.5 development branch, so 3.4 needs to be explicitly given.
PR for setup-ruby is here: https://github.com/ruby/setup-ruby/pull/677. Even though it's not yet merged (although I assume it will be shortly), an explicit "3.4" will still work (but refer to the release candidate for now).
head already is 3.5, as seen here: https://github.com/rubocop/rubocop/actions/runs/12496246734/job/34867800491?pr=13624#step:3:18 (can be seen in the GH actions of this PR as well)

Merry Christmas! 🎄

You too @bbatsov!


Define and apply consistent hook naming scheme

I've noticed some inconsistencies in how the hooks are named.
For instance, "RuboCop" is the name of the tool but our hook is written like "Rubocop"--I assume because rubocop is the command that is executed. However, "JSHint" is the name of the tool and jshint is the executable, but our hook is written like "JsHint".
This was brought up in: https://github.com/bbatsov/rubocop/pull/1811#discussion_r29310761
It isn't entirely clear to me what the naming scheme is or should be for overcommit hooks. This information would be good to include in the README.md or in a CONTRIBUTING.md file.

I've taken a stab at describing the naming convention in c7be5f1ad0ecf8353f6e3346642fc7554d0d5243 by updating the CONTRIBUTING.md file.
It may be worth changing the convention to just be whatever the proper name of the upstream project is, but that might get awkward with projects that intentionally start with lowercase letters, since Ruby requires classes to start with an uppercase letter.


Incorporate reservoir compile process into existing setup.py

The new reservoir capability #224 introduces additional compile and install needs. (See https://github.com/NOAA-OWP/t-route/blob/master/src/fortran_routing/Reservoir_Binding/kernels/readme.md)
These need to be incorporated into the compiler script:
https://github.com/NOAA-OWP/t-route/blob/master/src/python_routing_v02/compiler.sh
(the compiler script probably belongs somewhere else and could use other updates as well, but we'll take this first step...)

ping @hellkite500
cd to src/fortran_routing/Reservoir_Binding/kernels/fortran/...
run make (will need to set the fortran include and lib directories.)
drop back down to Reservoir_Binding
run python setup.py install
Those instructions are in the readme.py and should work out of the box. If you are on your own os, install libnetcdff (two 'f's) to get the fortran netcdf bindings and things should work.

I think the reference PR above (number 24) isn't quite right.  Regardless, I think this addressed in #263

I think the reference PR above (number 24) isn't quite right. Regardless, I think this addressed in #263

#224. And yes.


Limited Duration

Something like , i can choose only duration between 0-25 min
like this
DurationPicker(
                duration: Duration(hours: 0, minutes: 2),
                onChange: (val) { },
                maxDuration:Duration(hours: 0, minutes: 20)
              )

I also need a limited duration, such as 60min.
3Q

also looking for this
is anychange of using prehaps onchanged to check the value and accept or reject it if within set limites?

I also need a duration range, like 1minute to 120minutes

I also need a duration range, like 1minute to 120minutes

you can fork it and change it by yourself


Clear note getting called in too many places, hiding info.

This change makes me a bit nervous.  The users are going to have to now close a lot more toast messages than before.  Some toasts should never be closed (The Visualizer Scope chooser or the results of a commit/update/rollback), some toasts should only show for a few seconds, and some toasts we should probably have die after 30-60 seconds (I think we may need to do this to some of 'one liner' messages we have).  I will merge this in, and then we can 'trim' back the annoying ones I suppose.

I’ll pull the code down on my local and will test out how it works with the visualizer. The visualizer does do some of its own “controlling” of toasts. For example, shows and then kills those “loading” and “stabilizing” messages, but keeps around scope prompt messages until closed by user or a reload occurs, etc.
From: John DeRegnaucourt<EMAIL_ADDRESS>Sent: Thursday, February 02, 2017 11:15 AM
To: jdereg/n-cube-editor<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: Re: [jdereg/n-cube-editor] Clear note getting called in too many places, hiding info. (#401)
This change makes me a bit nervous. The users are going to have to now close a lot more toast messages than before. Some toasts should never be closed (The Visualizer Scope chooser or the results of a commit/update/rollback), some toasts should only show for a few seconds, and some toasts we should probably have die after 30-60 seconds (I think we may need to do this to some of 'one liner' messages we have). I will merge this in, and then we can 'trim' back the annoying ones I suppose.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_jdereg_n-2Dcube-2Deditor_pull_401-23issuecomment-2D277002663&d=DwMFaQ&c=tbYyL_Dr1tbrHXGUavt_iyX6BKXh9yO5QMbpNi15jsc&r=2MszHryp4Qg1pINahIxXhg&m=1HSMSWq7RgoJY4ER15rWUDUfhWJW5RuilwujLXUev90&s=cfTm1yYIPDAVOisx9rozwe4UKuBE2LDYPiVcbFZJ89c&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AO5D5No03gI8d6V4HvfQllFdiwMql5q9ks5rYgD7gaJpZM4L1GSo&d=DwMFaQ&c=tbYyL_Dr1tbrHXGUavt_iyX6BKXh9yO5QMbpNi15jsc&r=2MszHryp4Qg1pINahIxXhg&m=1HSMSWq7RgoJY4ER15rWUDUfhWJW5RuilwujLXUev90&s=zbp7Vd6RFNKKje5nG-xjC8lUsBwopXw2Z2t6n2EUf1Q&e=.
The content of this e-mail message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments.

Firstly, I didn't touch the visualizer toasts, mostly index and ncube view.
Secondly, users should not have to close more toasts, except for the few that don't have an expiration.
Finally, I only removed the clearNote for functions that didn't really make sense to clear it. I think there are still 7 places that use it such as commit, rollback, server stats, http headers, and a couple others. But leaving it in so many places meant that many toasts (which are mostly error notifications) were being wiped out before they could even be seen.


Running from Node

Hello sorry I tweeted you then found this post. I have installed manual but when I run node watch.js I get stuck at progress 94

Hi @tayler-ramsay , didn't see this issue before. Can you send your full logs? Thanks.


grid Creator - Web design

https://images01.nicepagecdn.com/page/57/82/html-template-5782777.jpg Design a grid like the above image
Create a file "grid_NUM_by_(YourName).html" in the modules/grid folder.
Use simple HTML and CSS and JAVASCRIPT to create the grid animation. You can use the interface development https://kwickerhub.com/ (This project) or you can write the lines of code yourself.
Step by Step Guide.
Fork this project(Use the 'fork' button in the top right corner) and Clone your Fork.
git clone https://github.com/YOUR_USERNAME/frontend
Open your code Editor and Create a file "grid_NUM_YOUR_NAME_.html" in the "modules/grid" folder of this project you just cloned. No need to create head, title and body tags, Just Add a div tag with some embedded style(i.e use the style tag) and the script tag where necessary.
If you want to add an image resource, please add it in the folder ••
"modules/grid/images_and_icons"
We recommend you use an svg for your image/icon.
Push your Code: You need to push your recent changes back to the cloud. Use the command below in the main directory of this Repository
git push origin dev
or use a GUI tool to avoid mistakes or complexity. LOL.
Then make you Pull Request...
Below is a example of the code structure we need:
'''

'''
For more examples:
modules->buttons
modules->cards
for examples of contributions or Pull request accepted in to the project.
And please do not wait for this issue to be assigned to you as we have limited hands but have a lot to do/cover. Please send in your PR.
Good-luck.

I am working on it you should see the PR very soon

#806
@NtemKenyor  could you please review my PR.


Response from /data.json endpoint is not in standard format.

Base on the code changes made here https://github.com/azavea/Open-Data-Catalog/commit/1ab582544b8e987d192ad1a2068622894d9f152b
I see the endpoint just returns an array of datasets as oppose following the structure specified here  https://project-open-data.cio.gov/v1.1/schema/ . That breaks implementation on our side cos we're getting a json array instead of the expected json object.  Can we make changes to follow the standard structure :
{
  "@context": "https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld",
  "@id": "https://data.chattlibrary.org/data.json",
  "@type": "dcat:Catalog",
  "conformsTo": "https://project-open-data.cio.gov/v1.1/schema",
  "describedBy": "https://project-open-data.cio.gov/v1.1/schema/catalog.json",
  "dataset": []
}

Or if changing will break impl for existing clients, We can add a new endpoint that follows the above format.

We are archiving this repo as no active work is being done or expected.


[App Unreachable - Android] Help needed

Description
After upgrading to RN 0.68 and expo sdk 45 bare workflow
Detox can't connect to the app.
I've tried all existing solutions here with similar issues, nothing helped.
Any advice kindly appreciated
Your environment
Detox version: 19.10.0
React Native version: 0.68.2
Node version: 16.16.0
Device model: Pixel_3a_API_33_arm64-b8a
OS: macOs Monterey 12.5 / Apple M1 Pro
Test-runner: jest-circus
Detox logs
Detox logs
[detox_pid_94622.log](https://github.com/wix/Detox/files/9393679/detox_pid_94622.log)

Detox config
{
  "testRunner": "jest",
  "runnerConfig": "e2e/config.json",
  "configurations": {
    "android.emu.debug": {
      "device": "emulator",
      "app": "android.debug"
    },
    "android.emu.release": {
      "device": "emulator",
      "app": "android.release"
    }
  },
  "apps": {
    "android.debug": {
      "type": "android.apk",
      "binaryPath": "android/app/build/outputs/apk/staging/debug/app-staging-debug.apk",
      "testBinaryPath": "android/app/build/outputs/apk/androidTest/staging/debug/app-staging-debug-androidTest.apk",
      "build": "cd android && MY_APP_MODE=mocked ./gradlew app:assembleStagingDebug app:assembleAndroidTest -DtestBuildType=debug && cd .."
    },
    "android.release": {
      "type": "android.apk",
      "binaryPath": "android/app/build/outputs/apk/staging/release/app-staging-release.apk",
      "testBinaryPath": "android/app/build/outputs/apk/androidTest/release/app-staging-release-androidTest.apk",
      "build": "cd android && MY_APP_MODE=mocked ./gradlew app:assembleStagingRelease app:assembleAndroidTest -DtestBuildType=release && cd .."
    }
  },
  "devices": {
    "emulator": {
      "type": "android.attached",
      "device": {
        "adbName": ".*"
      }
    }
  }
}

Closing this, since most likely this is the root cause
https://github.com/wix/Detox/issues/3487


Fix textAlign start/end conversion

Fixes #14930

The image in main is correct, but a failing test in #14923 revealed the problem, which was unnoticed because the change was below the image tolerance threshold.

@jahow Now that #14923 is merged, I rebased this pull request and you can see the change in the diff of the reference image.

@jahow Now that #14923 is merged, I rebased this pull request and you can see the change in the diff of the reference image.

Ok yes, I understand, the image on main wasn't what the actual result looked like! But now doesn't that mean that this PR will significantly change the behavior for the textAlign property on lines? I mean, if that regression was there for a while, maybe people inverted end and start values in their application?

start and end is useful for applications that mix left-to-right and right-to-left text. I don't think there are many, otherwise someone would have created a bug issue.
To avoid such regressions in the future, I lowered the test tolerance.

I was wrong in assuming that this was a regression. The failed attempt to get left-to-right/right-to-left detection right was #11722, and that simply failed to fix the problem for text alignment along lines. So it was still broken after #11722, and is now fixed.

@jahow Were you suggesting to add a note about this in the release notes, or do you not agree with the fix in its entirety?


SINGNATURE VERIFICATION FAILED! TOR BROWSER

I get this everytime i try to install tor browser
SIGNATURE VERIFICATION FAILED!
Error Code: GENERIC_VERIFY-FAIL
You might be under attack, there might be a network
problem, or you may be missing a recently added
Tor Browser verification key.
click Start to refresh the keyring and try again. if the
message persists report the above error code here:
Https://github.com/micahflee/torbrowser-launcher/issues
i clicked start 2 times and this always comes up?
can anyone help?

Sorry about that! This has been fixed in the latest version of torbrowser-launcher. You can get it by either building from source or using the Ubuntu PPA that's described in the readme.


Mirror doesn't fail fast

Server doesn't crash when creating cluster store fails on mirror(ex: due to resource constraint). There is no indication of this failure to client until fail over happens to mirror and it tries to perform some operation on new active.

Looks like we swallow all exceptions in the EhcachePassiveEntity.invoke. This is wrong. For lifecycle issue, we need to let them escape so that the crash model of the server is exercised. Otherwise we are delaying the problem to the failover ... and risk loosing a cluster then.


Credit/Origin?

Nice resource! I may add some to it in future (although the ones I use for benchmarking are considerably "rarer" than the ones here - time-series + raw text + locations, entities, etc') .
The varied datasets dont seem to have credit as to their origin. (e.g. "winered" - I assume is the wine datasets from UCI, but there's nothing about that in the data folder or the csv.gz file).
Adding the origin (even at the "site" level, e.g. "UCI", "open-ML", "kaggle datasets", "KDD") would make it much easier to analyze the original datasets, context ,domain and interpretation (e.g. "Looking for datasets on time-series + predictive maintenance").

This could be a seperate readme file, no need to go overboard. e.g. "analcatdata" = "http://people.stern.nyu.edu/jsimonof/AnalCatData/" ?

Good idea. Not sure if we have the bandwidth to get around to doing that anytime soon, but we'll keep it filed here in case anyone wants to take this issue on.

Thanks for this wonderful resource and I am also interested in tracing the origin and background of each  dataset as the read me file just contains " breast tumors". A line about the original source or the accompanying publication would be helpful. Thanks

Also interested in this!

Compliments from my side for gathering these datasets too! I agree it would be helpful to have information about the dataset source. Ideally a link to where the original is published, so you can find the description of the dataset at its origin. Maybe add it as a column to summary_stats?

Thanks @codrin-kruijne for this input! We actually tried to streamline this effort of adding sources last year. We now have a metadata.yaml file for each dataset but not all have non-empty source field yet, but we're looking for contributors to add this information. See for example here.
Alternatively, you can get to the metadata by clicking on the octocat in the last column of the summary table on our main website: https://epistasislab.github.io/pmlb/ Hope that helps!

Thanks @trang1618 I added all the links to metadata.yaml files to our summary_stats table in a metadata column for easy access and I will encourage my colleagues to contribute when they find an incomplete one. I will explore a bit and then see how I might contribute.

Amazing @codrin-kruijne ! Thank you!!! 🙏🏽

+1 here -- this is a great resource, thank you for your work on it.
But also, the missing metadata is a major pain point. There really isn't any way for another contributor to even find where many of these datasets are from, let alone understand more about the dataset itself (what do the labels mean? what are the features? etc.).
We (as users of the package) have no idea where the individual datasets were drawn from, and there isn't any information even in the .yaml files or the published paper.  This is really something the developers will need to lead the charge on, or at least provide more information so that others can help :) . Can you at minumum provide a link to each dataset's original source in the metadata table (https://github.com/EpistasisLab/pmlb/blob/master/pmlb/all_summary_stats.tsv), or any information at all about where it is from to narrow the search (Kaggle, UCI, etc.)?

hi @jpgard,  unfortunately the dev team for this project has turned over a few times since 2017 and we don't have perfect verifiable source info for many datasets, so it takes time. Still, we've annotated many datasets with source info; out of 420 current datasets, we still need metadata on about 246 of them.  We have a contribution guide for verifying source: https://epistasislab.github.io/pmlb/contributing.html and some example PRs using colab (e.g. https://github.com/EpistasisLab/pmlb/pull/86). Every little bit helps!


添加暗色模式的 token

Codecov Report

Merging #45 (5f51559) into master (1cf4100) will increase coverage by 0.37%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   65.74%   66.12%   +0.37%
==========================================
  Files          88       89       +1
  Lines         724      735      +11
  Branches      142      142
==========================================
+ Hits          476      486      +10
- Misses        247      248       +1
  Partials        1        1

Impacted Files
Coverage Δ

src/component-demos/button/button.tsx
100.00% <ø> (ø)

src/component-demos/index.tsx
100.00% <ø> (ø)

src/component-demos/select/select.tsx
66.66% <ø> (ø)

src/component-panel/index.tsx
54.71% <ø> (ø)

src/component-demos/select/selectTag.tsx
75.00% <75.00%> (ø)

src/component-demos/descriptions.tsx
100.00% <100.00%> (ø)

src/component-demos/input.tsx
100.00% <100.00%> (ø)

src/theme/dark.ts
100.00% <100.00%> (ø)

src/component-panel/ComponentDemoGroup.tsx
96.42% <0.00%> (+3.57%)
: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 1cf4100...5f51559. Read the comment docs.


v4l2: support on fly resolution change

This feature important for online playback and video chat use case
we do following things when we detect format change:

drain decode output when we get format change.
send format change notification to the caller.
if the user does not reallocate the surface, we will discard the last format change. and keep use previous format.

@LindaYu17 , please help review this.

LibVA 2.0 has been merged to master.  This PR needs to be rebased on top of libyami's libva 2.0 compatibility commits... please rebase to fix intel/ci builds.

@uartie ,rebased


docs: add long timeout sample

This code snippet is very similar to the SyncAPI sample here: https://github.com/googleapis/java-optimization/blob/main/samples/snippets/src/main/java/com/example/optimizationai/SyncApi.java
The purpose of this sample is to explain how to use the keep-alive setting to send a sync request with long timeout.

Here is the summary of possible violations 😱
There is a possible violation for not having product prefix.
The end of the violation section. All the stuff below is FYI purposes only.
Here is the summary of changes.
You are about to add 1 region tag.
This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

[ ]  Refresh this comment

@kolea2 Optimization AI is in restricted GA (GA with allowlist). The region tag prefix can be found here: https://devrel.corp.google.com/admin/products/463?t=snippets


HIV needs to suppress one of the overlapping age groups

Various age groups for HIV use either 13-24 or 16-24; we need to manually add the unwanted one per topic to the getExclusionList() function so only the correct one shows on the data tables

Closing issue as this was resolved in  PR #2114.