[Bug] Added Items have wrong or missing metadata

Thanks for sharing this wonderful plugin with us.
Adding items from this plugin does not fetch the correct metadata for articles or perhaps uses some stock defaults. for example, The paper with the DOI '10.1073/pnas.211053698' was added to my library from your plugin. The plugin generated the following data:
Item Type 	Preprint
Author 	A. Krtolica
Author 	S. Parrinello
Author 	S. Lockett
Author 	P. Desprez
Author 	J. Campisi
Abstract 	Mammalian cells can respond to damage or stress by entering a state of arrested growth and altered function termed cellular senescence. Several lines of evidence suggest that the senescence response suppresses tumorigenesis. Cellular senescence is also thought to contribute to aging, but the mechanism is not well understood. We show that senescent human fibroblasts stimulate premalignant and malignant, but not normal, epithelial cells to proliferate in culture and form tumors in mice. In culture, the growth stimulation was evident when senescent cells comprised only 10% of the fibroblast population and was equally robust whether senescence was induced by replicative exhaustion, oncogenic RAS, p14ARF, or hydrogen peroxide. Moreover, it was due at least in part to soluble and insoluble factors secreted by senescent cells. In mice, senescent, much more than presenescent, fibroblasts caused premalignant and malignant epithelial cells to form tumors. Our findings suggest that, although cellular senescence suppresses tumorigenesis early in life, it may promote cancer in aged organisms, suggesting it is an example of evolutionary antagonistic pleiotropy.
Date 	2001-10-02
URL 	https://www.semanticscholar.org/paper/cfe42fa7d6cd1b5cfd7c71aa2b2a07339be24158
Date Added 	3/12/2024, 4:52:15 AM
Modified 	3/12/2024, 5:08:31 AM

When I manually add the work with the DOI This is what I get:
Item Type 	Journal Article
Author 	Ana Krtolica
Author 	Simona Parrinello
Author 	Stephen Lockett
Author 	Pierre-Yves Desprez
Author 	Judith Campisi
Abstract 	Mammalian cells can respond to damage or stress by entering a state of arrested growth and altered function termed cellular senescence. Several lines of evidence suggest that the senescence response suppresses tumorigenesis. Cellular senescence is also thought to contribute to aging, but the mechanism is not well understood. We show that senescent human fibroblasts stimulate premalignant and malignant, but not normal, epithelial cells to proliferate in culture and form tumors in mice. In culture, the growth stimulation was evident when senescent cells comprised only 10% of the fibroblast population and was equally robust whether senescence was induced by replicative exhaustion, oncogenic RAS, p14 ARF , or hydrogen peroxide. Moreover, it was due at least in part to soluble and insoluble factors secreted by senescent cells. In mice, senescent, much more than presenescent, fibroblasts caused premalignant and malignant epithelial cells to form tumors. Our findings suggest that, although cellular senescence suppresses tumorigenesis early in life, it may promote cancer in aged organisms, suggesting it is an example of evolutionary antagonistic pleiotropy.
Date 	2001-10-09
Language 	en
Short Title 	Senescent fibroblasts promote epithelial cell growth and tumorigenesis
Library Catalog 	DOI.org (Crossref)
URL 	https://pnas.org/doi/full/10.1073/pnas.211053698
Accessed 	3/12/2024, 5:02:05 AM
Extra 	1229 citations (Crossref) [2024-03-12]
Volume 	98
Pages 	12072-12077
Publication 	Proceedings of the National Academy of Sciences
DOI 	[10.1073/pnas.211053698](http://doi.org/10.1073/pnas.211053698)
Issue 	21
Journal Abbr 	Proc. Natl. Acad. Sci. U.S.A.
ISSN 	0027-8424, 1091-6490
Date Added 	3/12/2024, 5:02:05 AM
Modified 	3/12/2024, 5:02:13 AM

In the previous report, at least one key (namely, Extra) was generated by other plugin(s). It would be wonderful to - at least - get the same amount of info from the plugin.

Hi, thanks for letting me know about the issue and I'm glad you like the plugin :)
Currently the fetched metadata is just the bare minimum from Semantic Scholar. I'll take a look whether I can use the Zotero DOI adding functionality to retrieve the true metadata


Redshift: add migration script for client_session

It's a migration script to perform a one-time "manual shred" from the domain_ fields into the client_session context table.

Closing as Avro support will need its own RFC.


urlopen error [Errno 111] Connection refused

Both of my sites are experiencing this issue:
Internal Server Error: /contact/
Exception Type: URLError at /contact/
Exception Value: <urlopen error [Errno 111] Connection refused>
timeout=getattr(settings, "RECAPTCHA_VERIFY_REQUEST_TIMEOUT", 10)
They were working in the past.

Do you use RECAPTCHA_PROXY in settings.py?
Removing maybe helps.


Chapter Navigation

When we click on a link either in header or index page it leads the reader to the specified folder. Would it not be more reasonable to navigate the reader directly to index.html in that respective folder.

Because browsers do not allow some features over file:/// URLs, many of the diagrams do not work with file:/// URLs anyway. So it may not help much to change this. You will need to run a local webserver (see the wiki for a python command to start the local webserver). The file:/// URLs are for debugging only, and when debugging it is sometimes useful to be able to see the folder contents. But I do not have a strong opinion on this; it is probably best for the next GSoC student/mentor to decide which way works best for them.


Getting started guide (docs and README) should promote piping to llm

cat myfile.py | llm --system 'Explain this code'

That animated GIF I made of the NY Times summary is a crowd-pleaser, maybe a GIF like that would be a good idea: https://twitter.com/simonw/status/1659304831104983044

-s now works as an alternative to --system, as of 714b867e928cce6213e065709a2bcb02337f5dab in:

#69

This made me think: there's no reason the default treatment of --system - for models that don't support it as a feature - couldn't be just to put it at the start of the overall prompt.
Then this would work for every model:
cat file.py | llm -s 'explain this code' -m some-model

It would get turned into this prompt:
explain this code

# contents of file.py go here


feature(integration-tests): Run same gemini command as in SCT

To be sure everything will work properly inside SCT, we are adding integration-tests CI pipeline, to run the same command with the same arguments on every pull request and push to the master branch

@CodeLieutenant , please take a look at the failures

@CodeLieutenant , please take a look at the failures

Everything is in order right now


feat!: integrate Modelina CLI

Description
This PR enables https://github.com/asyncapi/cli/issues/883 to generate models through Modelina CLI and replaces https://github.com/asyncapi/cli/pull/1155.
Related issue(s)
Blocked by https://github.com/asyncapi/cli/pull/1228
Blocked by https://github.com/asyncapi/modelina/pull/1952
Blocked by https://github.com/asyncapi/modelina/pull/2008
Blocked by https://github.com/asyncapi/modelina/pull/2010
Blocked by https://github.com/asyncapi/modelina/pull/2009

@devilkiller-ag https://github.com/asyncapi/cli/pull/1228 is ready for review and should unblock your PR

Thanks @Amzani. @jonaslagoni, what's your thought on this? Both the PRs that were blocking this have been merged.

Gonna fix this on Tuesday :v:

@jonaslagoni some tests are failing
Also what happens to current changes in generate models: (e.g https://github.com/asyncapi/cli/pull/1437)
Do you ensure that they got integrated in modelina-cli ?

Do you ensure that they got integrated in modelina-cli ?

Depends on what comes first, if that PR is merged before this I will update this PR, if it's the other way around we just release a new version of Modelina CLI 🙂

This will enable us to generate models for asyncapi v3, right? Any ETA?

This will enable us to generate models for asyncapi v3, right? Any ETA?

ASAP 🙂

@Amzani should have solved all the problems now 😅

ASAP 🙂

My favourite flavour! ASAP with sprinkles of awesome job, man!

Let me quickly fix a bug in Modelina that prohibits model generation 🤨 Should be done today but lets see


[WIP] [#107188910] Add Digital Services and Outcomes' Digital Services and Digital Outcomes schemas, make sure they validate correctly, and write some tests for them.

WIP because I haven't tested this with the frontend supplier app yet.  I'll do some of that and then remove the tag. As far as I'm aware, all the code is good.

This pull request:

Adds the new schemas
Changes how validating works in a few places
Tests things

>> Story in Pivotal

Adds the new schemas
Now that we've got what seem to be the final DOS schemas, the API can start validating against the right things :+1:
Changes how validating works in a few places

Process dependencies errors
If a key that's part of a group is included without the rest of the group, the schema will fail to validate with a default dependencies error message that's not very helpful. The new behaviour is to processing the error the same way we do for required keys because the implications are the same.
Adding developerLocations without any other developer-related keys will return

`{ "error": { "developerPriceMin": "answer_required", "developerPriceMax": "answer_required" } }

Process anyOf errors
Similarly to the last thing, if a schema fails to validate because none of the anyOf groups are present (ie, we have no specialists or outcomes), a form error message is returned that our frontend will understand.
Trying to mark as complete a digital-specialists service without any specialists will return

`{ "error": { "_form": "specialist_required" } }

Note that the specialist substring comes from the any_of key in a multiquestion's manifest file.

Liberalise pricing check in _translate_json_schema_error()
Previously, we would previously only return a not_money_format if the failing key exactly matched priceMin or priceMax.
Of course, now pricing keys in digital-specialists all look like {specialistName}PriceMax and {specialistName}PriceMin.  I've expanded the check to find all of our new pricing fields.

@allait pointed out that our manifest files (for example) contain a message which describes the problem.  This arguably obviates the need for our janky key detection anyway, since we could use a more general key (incorrect_format_error, maybe) for both cases and just return the corresponding message.

Drop anyOf fields when validating against a partial schema.
Our get_validator function allows us to override the required fields with a passed-in subset of schema fields -- makes it easier to validate smaller bits of the schema at a time.  However, if we don't remove the anyOf keys, we're still validating against a bunch of stuff we probably don't care about.

More unit tests
Added more unit tests.
Specifically:

:white_check_mark: Can still successfully edit a service if page_questions are invalid
:x: Cannot edit a digital-specialists draft with a bad price string
:x: Cannot edit a digital-specialists draft with missing dependencies
:white_check_mark: Can edit a digital-specialists draft if page_questions are invalid or required in anyOf
:white_check_mark: Can mark as complete a valid digital-specialists draft
:x: Cannot mark as complete a digital-specialists draft without a specialist

:muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle: :muscle:

Also, min_price_less_than_max_price needs to be updated to support DOS prices.

:+1:


Please add support for color highlighting of notebook braces！

The curly brace highlighting plugin does not take effect in jupyter, and some theme plugins also do not take effect

Hi @CatNofishing, this will be fixed when migrating to the new native notebooks experience.
If you would like to see this working now please consider trying it out!
Instructions on how to along with additional important details located here: https://devblogs.microsoft.com/python/notebooks-are-getting-revamped/


0.9rc0 regression when using scan over axes with shape None

A simple cumulative sum with scan that worked in TF 0.8 fails in 0.9rc0 with an inconsistent shape error. I have attached code to illustrate the error below. Basically, a scan over the 0th axis fails when a different axis has None shape. This occurs, for example, when computing a cumulative sum over an arbitrary axis of a minibatched variable (after first transposing that axis to be in the 0th position).
Environment info
Operating System: Mac OSX 10.11.5
Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*): N/A
If installed from binary pip package, provide:

Which pip package you installed:
https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py3-none-any.whl

The output from python -c "import tensorflow; print(tensorflow.__version__)".
0.9.0rc0

If installed from sources, provide the commit hash:
Steps to reproduce
Run the following code:
import tensorflow as tf
x = tf.placeholder(dtype=tf.float32, shape=[None, 2])
xT = tf.transpose(x)
# scan over dimension 0 (with shape None)
result = tf.scan(lambda a, x: a + x, x)
# scanned over transposed dimension 0 (with shape 2)
resultT = tf.scan(lambda a, x: a + x, xT)

To see the following error:
ValueError: Inconsistent shapes: saw (?,) but expected (?,) (and infer_shape=True)

+1!

@yuanbyu we may have to either plumb infer_shape=True through scan/map_fn/etc or just set infer_shape=False everywhere.  what do you think is best?

We may have pushed a fix for this in an unrelated bugfix to TensorArray.  It hasn't been merged into github yet.  Try this in a couple of days on the version of TF in master and report back.

Just to check in -- this script still raises an error in the 0.9.0 release.

+1 Is there are update on this issue? It's currently blocking me as well.

Is this still an issue in the nightlies?
On Jul 23, 2016 8:11 AM, "Thomas Quintana"<EMAIL_ADDRESS>wrote:

+1 Is there are update on this issue? It's currently blocking me as well.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/2787#issuecomment-234723239,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtim0QrqEaiqUZqhTyFDTCBGRPZV7omks5qYi88gaJpZM4IzJti
.

@ebrevdo  I'm using the 0.9.0 release. I will try with master first thing in the AM and update the thread. -- Thanks!

@ebrevdo I just tried with 0.10.0rc0 and I still have the same issue.
ValueError: Inconsistent shapes: saw (?,) but expected (?,) (and infer_shape=True)

@ebrevdo this is a showstopper for me as well.. dealing with same issue as mentioned by @thomasquintana.. will appreciate if someone from google tensorflow team take a look at it soon.

Fix has been pushed; takes a few days to reach github.  When you call
tf.scan/tf.map_fn, pass the argument infer_shape=False and things should
work.  Added your use case as a unit test.
On Mon, Aug 1, 2016 at 3:23 PM, barimohsin<EMAIL_ADDRESS>wrote:

@ebrevdo https://github.com/ebrevdo this is a showstopper for me as
well.. dealing with same issue as mentioned by @thomasquintana
https://github.com/thomasquintana.. will appreciate if someone from
google tensorflow team take a look at it soon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/2787#issuecomment-236726088,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtim_i9h2Zbl8Z7jo-uFruoY2ODBek-ks5qbnHWgaJpZM4IzJti
.

Thank you so much! I am traveling for a few days but I will try on Friday from the nightly build and update this thread.
Cheers!

This problem is fixed! -- Cheers, Tom

➜  src python -c "import tensorflow; print(tensorflow.version)"
1.2.0
➜  ValueError: Inconsistent shapes: saw (?, ?) but expected (150,) (and infer_shape=True)


Added IPinfo.io (IP information lookup) and Host.io (Domain information)

IPinfo.io provides IP data information such as geolocation information, ASN information, VPN detection etc. The command is available from the information section.
Host.io provides domain-level information such as server IP address, organization, country, DNS records, co-hosted domains, backlinks etc. The command is available from the information section.
Changed the existing variables called IP Info → WHOIS_Domain

Thank you for being patient with me. I have been tied up with other projects but I will review this over the next few days and provide an update/acceptance.

Hi @zdhenard42, Were you able to review the request? I wanted to show this extension to one of our users who was doing threat intelligence work using our data and wanted to use this feature.


RangeSlider ignore min / max boundaries

If you set boundaries on a RangeSlider widget, there are ignored. In the given example the boundaries are set to 2 and 4. The UI is align with the options but in the response we still have the movies with a rating greater than 4.
https://jsfiddle.net/tksyn43f/

Nice catch!

Great catch @samouss you should probably look this method https://github.com/algolia/instantsearch.js/blob/develop/src/connectors/range-slider/connectRangeSlider.js#L124-L166 👍


ULONG_MAX-(1024*64)' is not true

I received this error message during data mass inserting with replication..
used memory 40GB(rdb 23GB)
=== REDIS BUG REPORT START: Cut & paste starting from here ===
[2472] 30 Sep 15:07:38.848 # === ASSERTION FAILED ===
[2472] 30 Sep 15:07:38.848 # ==> ..\src\networking.c:1778 'c->reply_bytes < ULONG_MAX-(1024*64)' is not true

I also have the similar error on the latest version <IP_ADDRESS>.
[4972] 07 Jun 10:59:31.308 # === ASSERTION FAILED ===
[4972] 07 Jun 10:59:31.308 # ==> ..\src\networking.c:1795 'c->reply_bytes < ULONG_MAX-(1024*64)' is not true

@khayong this problem is fixed in the upcoming 2.8 release, which should come out next week at the latest.


App for Tizen OS

Not planning to support Tizen OS.

Samsung is ditching Tizen OS for its wearables.
Are Samsung TVs still using Tizen?


Update the vizier sample to replace the gapic library with new Vertex Vizier SDK.

REQUIRED: Add a summary of your PR here, typically including why the change is needed and what was changed. Include any design alternatives for discussion purposes.

Update the vizier sample to replace the gapic library with new Vertex Vizier SDK.

REQUIRED: Fill out the below checklists or remove if irrelevant

If you are opening a PR for Official Notebooks under the notebooks/official folder, follow this mandatory checklist:

[X] Use the notebook template as a starting point.
[X] Follow the style and grammar rules outlined in the above notebook template.
[X] Verify the notebook runs successfully in Colab since the automated tests cannot guarantee this even when it passes.
[ ] Passes all the required automated checks. You can locally test for formatting and linting with these instructions.
[ ] You have consulted with a tech writer to see if tech writer review is necessary. If so, the notebook has been reviewed by a tech writer, and they have approved it.
[X] This notebook has been added to the CODEOWNERS file under the Official Notebooks section, pointing to the author or the author's team.
[ ] The Jupyter notebook cleans up any artifacts it has created (datasets, ML models, endpoints, etc) so as not to eat up unnecessary resources.

If you are opening a PR for Community Notebooks under the notebooks/community folder:

[ ] This notebook has been added to the CODEOWNERS file under the Community Notebooks section, pointing to the author or the author's team.
[ ] Passes all the required formatting and linting checks. You can locally test with these instructions.

If you are opening a PR for Community Content under the community-content folder:

[ ] Make sure your main Content Directory Name is descriptive, informative, and includes some of the key products and attributes of your content, so that it is differentiable from other content
[ ] The main content directory has been added to the CODEOWNERS file under the Community Content section, pointing to the author or the author's team.
[ ] Passes all the required formatting and linting checks. You can locally test with these instructions.

@halio-g I have approved the notebook changes. But it must pass the linter check. Please run the prepass script run_linter.sh on the notebook and push the corresponding updated notebook. If you are not familiar with the run_linter script, please reach out to me.

Thanks Andrew. I followed the instruction and fixed the lint errors .


Adding other config options like DTD

I would like to request the possibility to manipulate settings set in the DTD for ckeditor: http://docs.ckeditor.com/#!/api/CKEDITOR.dtd. For now only the config is configurable.

I'm :+1: a PR is very welcome!

@stokjes Whould you interested about making a PR for that?

I have started to work on this topic but I would like first to get feedback about your usecase @stokjes What would you configure on the dtd?

Hi @egeloen, i'm sorry for my late response. If you like I can create an PR for that, but i currently don't have much time. I'm using the DTD to configure allowed empty elements for CKEditor, like: .

Can you share some code on how do you do it with CKEditor? Basically, how DTD is supposed to be configured. I have never used the DTD and I would like to be sure I cover as mush use cases as possible... :)

@stokjes Have you try to configure the option extraAllowedContent which seem related to your use case. See http://docs.ckeditor.com/#!/api/CKEDITOR.config for the explanation of this configuration option.

@stokjes After thinking about your issue, I don't think I will add a DtdManager as it seems really rare use case to update it and I have found a dead simple way to add custom javascript to all CKEditor widget. It s already supported but not documented, so, I will add it to the doc :)


Perform updates on disabled users

Zoom doesn't allow updates to happen on disabled users. Given I do delayed delete, it is possible that changes to disabled users could come through. Given how Zoom Phone is granted right now in my system, it is likely that the Zoom account would be disabled days before Zoom Phone is removed. We need to remove Zoom Phone to free up the number, and I am running a delayed delete of 100 days on the main Zoom account. So it likely needs to be enabled, changed, and then disabled again.

And given that I am a part of a University System, I get updates to users that have separated from my institution, but are at others. So I can see a username or name change after the person separates while they are still in delayed delete.

When a user is disabled and a change comes through you would expect the connector to, Enable the user, Make the change,
Disable the User. However, When the user is disabled the zoom Phone settings go away automatically.
If the User settings still contains Zoom Phone Feature, Zoom Phone Number, and Zoom Phone Calling Plans this would also get re-enabled. Perhaps before deactivating the user the Zoom Phone Feature should also be reset to false?


First pass at datasets and data loaders

Implement PyTorch's Dataloader interface.
Highlighted features:

[x] Support for map-style and iterable-style datasets
[ ] Custom data loading order
[ ] Automatic batching

[ ] Sampling

[ ] Multi-process loading
[ ] Memory pinning (for better GPU support)

Copied over from the ML tracker issue. @opus111 feel free to edit.

I'd suggest implementing fastai2's DataLoader since it's built on the same foundation but much more flexible, and is needed for much of the high level functionality.
http://dev.fast.ai/data.load


(IDEA) + QUESTION - linking to the section on the page

I have a question if there is a possibility to add a link to particular section of the page?

I have a question if there is a possibility to add a link to particular section of the page?

in general NO...as it is dynamically generated website
i think the best is to create subpage and have desired element at the top

Ok, thank you


tail recursive function not properly updating value

I took a quick look at the llvm IR and nothing looks wrong, will have to dig into more. @folkertdev, can you double check this.
repro: checkout hash-dict branch and update TestAstar.roc to:
app "test-astar"
    packages { pf: "platform/main.roc" }
    imports [pf.Task]
    provides [main] to pf

main : Task.Task {} []
main =
    Task.putLine (showBool test1)

showBool : Bool -> Str
showBool = \b ->
    if
        b
    then
        "True"
    else
        "False"

test1 : Bool
test1 =
    example1 == []

example1 : List I64
example1 =
    run (Set.fromList [1, 2, 3])

run = \data ->
    # dbg (Set.toList data)
    when List.first (Set.toList data) is
        Ok i ->
            nextData = Set.remove data i
            # dbg (Set.toList nextData)
            run nextData
        _ ->
            Set.toList data

finally, run cargo run dev ./crates/cli_testing_examples/benchmarks/TestAStar.roc
The program will hang forever.
If you enable either of the debug prints, you will see that the value of the set is changing correctly within a run of the function. That said, the value does not seem to persist between function calls.
Note: with dbg, the program eventually segfaults for me.
Output of first dbg:
[./crates/cli_testing_examples/benchmarks/TestAStar.roc 28:9] [1, 2, 3]
[./crates/cli_testing_examples/benchmarks/TestAStar.roc 28:9] [1, 2, 3]

Output of second dbg:
[./crates/cli_testing_examples/benchmarks/TestAStar.roc 32:17] [3, 2]
[./crates/cli_testing_examples/benchmarks/TestAStar.roc 32:17] [3, 2]

Based on individual debug prints, this updates correctly, but it does not update between recursive calls and the value seems to revert.

I bet this is a problem with the tail recursion pass. The mono Ir may be promising

@ayazhafiz I'm seeing this stack overflow in mono
            Set.empty
                |> Set.insert 0
                |> Set.insert 1
                |> Set.insert 2
                |> Set.toList

so maybe we need to have a Lets(Vec<Def>, Expr) sort of thing. When I minimize it to Set.toList Set.empty, I get
thread 'gen_set::insert' panicked at 'assertion failed: is_sorted_dedup(right)', /home/folkertdev/roc/roc/crates/compiler/unify/src/unify.rs:3254:9

a panic in merged_ability_slices. We have a forall-quantified type variable with an ability bound here, so it is a bit like decode (encode x) maybe, but it should work out for sequences I'd think

When I minimize it to Set.toList Set.empty, I get

thread 'gen_set::insert' panicked at 'assertion failed: is_sorted_dedup(right)', /home/folkertdev/roc/roc/crates/compiler/unify/src/unify.rs:3254:9

a panic in merged_ability_slices
This was a bug in storage-subs 😬 I'll push a patch and test to hash-dict

Brendan and I chatted offline, this is a bug with Set/Dict.remove. The minimal case is
expect
    d = Dict.fromList [(T 1u8 1u8), (T 2 2), (T 3 3)]

    list = d |> Dict.remove 1 |> Dict.remove 3 |> Dict.keys
    list == [2]

Brendan is looking into it

The tail recursion bug still seems to be affecting the full astar test case.
Change Astar.roc to use concrete I64 instead of position such that dbg works correctly:
diff --git a/crates/cli_testing_examples/benchmarks/AStar.roc b/crates/cli_testing_examples/benchmarks/AStar.roc
index 311191818..08c074076 100644
--- a/crates/cli_testing_examples/benchmarks/AStar.roc
+++ b/crates/cli_testing_examples/benchmarks/AStar.roc
@@ -5,14 +5,14 @@ interface AStar
 findPath = \costFn, moveFn, start, end ->
     astar costFn moveFn end (initialModel start)

-Model position : {
-    evaluated : Set position,
-    openSet : Set position,
-    costs : Dict position F64,
-    cameFrom : Dict position position,
-} | position has Hash & Eq
-
-initialModel : position -> Model position | position has Hash & Eq
+Model : {
+    evaluated : Set I64,
+    openSet : Set I64,
+    costs : Dict I64 F64,
+    cameFrom : Dict I64 I64,
+}
+
+initialModel : I64 -> Model
 initialModel = \start -> {
     evaluated: Set.empty,
     openSet: Set.single start,
@@ -20,7 +20,7 @@ initialModel = \start -> {
     cameFrom: Dict.empty,
 }

-cheapestOpen : (position -> F64), Model position -> Result position {} | position has Hash & Eq
+cheapestOpen : (I64 -> F64), Model -> Result I64 {}
 cheapestOpen = \costFn, model ->
     model.openSet
     |> Set.toList
@@ -35,13 +35,13 @@ cheapestOpen = \costFn, model ->
     |> Result.map .position
     |> Result.mapErr (\_ -> {})

-reconstructPath : Dict position position, position -> List position | position has Hash & Eq
+reconstructPath : Dict I64 I64, I64 -> List I64
 reconstructPath = \cameFrom, goal ->
     when Dict.get cameFrom goal is
         Err _ -> []
         Ok next -> List.append (reconstructPath cameFrom next) goal

-updateCost : position, position, Model position -> Model position | position has Hash & Eq
+updateCost : I64, I64, Model -> Model
 updateCost = \current, neighbor, model ->
     newCameFrom =
         Dict.insert model.cameFrom neighbor current
@@ -70,8 +70,9 @@ updateCost = \current, neighbor, model ->
             else
                 model

-astar : (position, position -> F64), (position -> Set position), position, Model position -> Result (List position) {} | position has Hash & Eq
+astar : (I64, I64 -> F64), (I64 -> Set I64), I64, Model -> Result (List I64) {}
 astar = \costFn, moveFn, goal, model ->
+    # dbg (Set.toList model.openSet)
     when cheapestOpen (\source -> costFn source goal) model is
         Err {} -> Err {}
         Ok current ->
@@ -90,18 +91,19 @@ astar = \costFn, moveFn, goal, model ->
                 newNeighbors =
                     Set.difference neighbors modelPopped.evaluated

-                modelWithNeighbors : Model position
+                modelWithNeighbors : Model
                 modelWithNeighbors =
                     { modelPopped &
                         openSet: Set.union modelPopped.openSet newNeighbors,
                     }

-                walker : Model position, position -> Model position
+                walker : Model, I64 -> Model
                 walker = \amodel, n -> updateCost current n amodel

                 modelWithCosts =
                     Set.walk newNeighbors modelWithNeighbors walker

+                # dbg (Set.toList modelWithCosts.openSet)
                 astar costFn moveFn goal modelWithCosts

 # takeStep = \moveFn, _goal, model, current ->

With a debug print at the beginning and end of the astar function, the tail recursion problem can still be seen.
dbg (Set.toList model.openSet) at the beginning:
[./crates/cli_testing_examples/benchmarks/AStar.roc 75:9] [1]
[./crates/cli_testing_examples/benchmarks/AStar.roc 75:9] [1]
[./crates/cli_testing_examples/benchmarks/AStar.roc 75:9] [1]

dbg (Set.toList modelWithCosts.openSet) at the end:
[./crates/cli_testing_examples/benchmarks/AStar.roc 106:21] [2, 3]
[./crates/cli_testing_examples/benchmarks/AStar.roc 106:21] [2, 3]
[./crates/cli_testing_examples/benchmarks/AStar.roc 106:21] [2, 3]

I will try to figure out a smaller repro.

Ok. Found a smaller repro. Just take the original code above and change run to:
run = \data ->
    # dbg (Set.toList data)
    when List.first (Set.toList data) is
        Ok i ->
            removedData = Set.remove data i
            if i > 0 then
                insertedData = (Set.insert removedData (i - 1))
                # dbg (Set.toList insertedData)
                run insertedData
            else
                # dbg (Set.toList removedData)
                run removedData
        _ ->
            Set.toList data


chore: remove vercel insights, vercel analytics and vercel adapter

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


HBASE-22278 RawAsyncHBaseAdmin should not use cached region location

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
262
Docker mode activated.

_ Prechecks _

+1
hbaseanti
0
Patch does not have any anti-patterns.

+1
@author
0
The patch does not contain any @author tags.

-0
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

+1
mvninstall
266
master passed

+1
compile
25
master passed

+1
checkstyle
30
master passed

+1
shadedjars
276
branch has no errors when building our shaded downstream artifacts.

+1
findbugs
63
master passed

+1
javadoc
22
master passed

_ Patch Compile Tests _

+1
mvninstall
240
the patch passed

+1
compile
24
the patch passed

+1
javac
24
the patch passed

+1
checkstyle
30
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedjars
263
patch has no errors when building our shaded downstream artifacts.

+1
hadoopcheck
510
Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.

+1
findbugs
68
the patch passed

+1
javadoc
23
the patch passed

_ Other Tests _

+1
unit
200
hbase-client in the patch passed.

+1
asflicense
12
The patch does not generate ASF License warnings.

2386

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-174/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/174

Optional Tests
dupname  asflicense  javac  javadoc  unit  findbugs  shadedjars  hadoopcheck  hbaseanti  checkstyle  compile

uname
Linux<PHONE_NUMBER>a8 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 GNU/Linux

Build tool
maven

Personality
/testptch/patchprocess/precommit/personality/provided.sh

git revision
master / 6e959777fc

maven
version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)

Default Java
1.8.0_181

findbugs
v3.1.11

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-174/1/testReport/

Max. process+thread count
290 (vs. ulimit of 10000)

modules
C: hbase-client U: hbase-client

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-174/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.


Add test change - do not merge

Describe this PR
Test change
Changes

What issue does this fix?

Any other relevant information

Closing test PR.


Failing test for bug when you mix hardcoded elements and generated lists

This PR introduces a skipped test for a bug where generated lists together with hardcoded elements are not included in the diff.
var numbers = [
  one,
  two,
  three
];

<MyDiv>

My numbers

  { numbers }
</MyDiv>

Seems to generate:
<MyDiv>

My numbers

</MyDiv>

Will be fixed by https://github.com/bruderstein/unexpected-htmllike-jsx-adapter/pull/1

Just remember to remove skip, when unexpected-htmllike-jsx-adapter has been upgraded.

on it already :)


AppMakeHelper could be smarter about its found service?

Feature Request
I have a service manager like this:
class SomeManager {

	/** @var list<class-string<SomeService>> */
	protected array $services = [
		ServiceAaaa::class,
		ServiceBbbb::class,
		ServiceCccc::class,
	];

	/** @return Collection<int, SomeService> */
	protected function makeAllServices() : Collection {
		return collect($this->services)->map(function(string $class) {
\PHPStan\dumpType($class); // 🟩 class-string<SomeService>
			$service = app()->make($class);
\PHPStan\dumpType($service); // 🟥 mixed
			assert($service instanceof SomeService); // 😢 I need this now, but shouldn't
			return $service;
		})->filter->isEnabled()->values();
	}

}

Larastan knows something about $class, even if it doesn't know the constant-string value. In AppMakeHelper there is $argType that is a GenericClassStringType with ObjectType with SomeService. I think we can be sure enough that the returned service from the container will be a SomeService. Even without resolving from the container I'd trust that.
Does that make sense enough? Then I'll make a PR for AppMakeHelper.

Use the app() or resolve() function instead of app()->make()---they have the proper PHPDocs on Laravel 11 to do this:
			$service = resolve($class);

Yet another Laravel function to do something that was already possible in 6 other ways :( I don't like using even more flavors of the same thing.

You can pr a fix to the framework then for the make method

Isn't that what AppMakeHelper does..? Or is that only for not-class-string names services?

I did an app/resolve test anyway, because I don't like my assert():
\PHPStan\dumpType($class); // 🟩 class-string<App\Service\Analytics\Platform>
\PHPStan\dumpType(app($class)); // 🟥 mixed
\PHPStan\dumpType(resolve($class)); // 🟥 mixed

My Laravel 11.23.5's resolve() phpdoc:
/**
 * @template TClass
 *
 * @param  string|class-string<TClass>  $name
 * @param  array  $parameters
 * @return ($name is class-string<TClass> ? TClass : mixed)
 */

Seems legit... Does $name is class-string<TClass> not trigger/match? PhpStan 1.12.6.

The framework phpdoc is more for applications that don't use Larastan to at least have some sort of type. I'll take a look at the extension to see what's wrong

applications that don't use Larastan

😮 😮 😮 😮 Who are these crazy people???

Sometimes you're just working on a package and don't need Larastan


status_code: MITM option changes

It should probably be renamed, as status_code is too vague. It intercepts and potentally blocks requests, so interceptor may be a better name.
It can't currently send back fake responses, which would be useful for adversarial tests.

Obsoleted by #106 which removes this addon.


Remove invalid font-strecth CSS attribute

The font-strecth CSS attribute is not valid. It should be spelled
font-stretch. It is also not needed since the default is "normal". So
just remove that CSS attribute.

Thanks for finding the typo.

It is also not needed since the default is "normal".

No, in a @font-face declaration the default of font-stretch is that specified by the underlying font data. It's more robust to specify this explicitly in the CSS, especially considering that all the other basic properties are specified in the CSS.

Fixed in 4e89c374d94561077f8d4173dca59f1997e917a6.


cilium-cli: 0.12.11 -> 0.13.2

Description of changes
https://github.com/cilium/cilium-cli/releases/tag/v0.13.2
https://github.com/cilium/cilium-cli/releases/tag/v0.13.1
https://github.com/cilium/cilium-cli/releases/tag/v0.13.0
https://github.com/cilium/cilium-cli/releases/tag/v0.12.13
https://github.com/cilium/cilium-cli/releases/tag/v0.12.12
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Contains the fix for CVE-2023-28114.


Use Hedron's Compile Commands Extractor for Bazel

What problem does this PR solve?
Replace deprecated bazel compile commands extractor. We have been using  Hedron's extractor for years. Works perfectly for large projects. Also it's active maintained

https://github.com/grailbio/bazel-compilation-database#status
This repository is now in maintenance mode.

Issue Number:
Problem Summary:
What is changed and the side effects?
Changed:
Side effects:

Performance effects(性能影响):

Breaking backward compatibility(向后兼容性):

Check List:

Please make sure your changes are compilable(请确保你的更改可以通过编译).
When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).

LGTM

@wwbmmm Can this PR be merged now?


Running mocha through babel

Hi there.
Trying to run tests through babel with following config -
{
  "presets": ["es2015"],
  "sourceMaps": "inline" // or true
}

on following test (path tests/test.js)
import path from 'path'; // just an example

describe('test', () => {
	it('test', () => {
		throw new Error('test');
	});
});

with command mocha --compilers js:babel-register --require source-map-support/register tests it gives this output  -
  1) test test:
     Error: test
      at Context.<anonymous> (tests/test.js:11:9)

Which is clearly wrong.
But if i do babel -d test tests --source-maps and mocha --require source-map-support/register. Output is correct.
This is not a stackoveflow, but i think if we would document the correct answer it would be beneficial for the users.
Thank you

I'm also seeing strange results, where the code line is displayed from the transpiled file, yet the filename and line number point to the correct source file.

@markelog I had similar issue. And I could solve it with

I removed "sourceMaps": "inline" from .babelrc
I removed the --require source-map-support/register

source-map-support is now handled inside babel-register
I hope this help

@mucsi96 where is this documented?

It's added to our readme now 👍


Bar Plot does not Work in Notebook Example

The Bar Plot presented here does not work properly when one uses the bike sharing data set as in the reworked notebook here.

I started working on this by adding a call to a utility function in shapiq bar plot function (to streamline it with the other visualization functions).
I think this problem comes from shap and do not know how to fix it.

plot_force seems to make bar_plot return an error
import numpy as np
from sklearn.model_selection import train_test_split
import lightgbm

import shapiq

{"shapiq": shapiq.__version__, "lightgbm": lightgbm.__version__}

X, y = shapiq.load_bike_sharing()
X_train, X_test, y_train, y_test = train_test_split(
    X.values, y.values, test_size=0.25, random_state=42
)
n_features = X_train.shape[1]

model = lightgbm.LGBMRegressor(n_estimators=100, max_depth=n_features, random_state=42, verbose=-1)
model.fit(X_train, y_train)
print("Train R2: {:.4f}".format(model.score(X_train, y_train)))
print("Test  R2: {:.4f}".format(model.score(X_test, y_test)))

explainer = shapiq.TreeExplainer(model=model, index="k-SII", min_order=1, max_order=3)

x = X_test[1234]
interaction_values = explainer.explain(x)

list_of_interaction_values = explainer.explain_X(X_test[:3,])
len(list_of_interaction_values) == 3

# this works if later `bar_plot` is removed
interaction_values.plot_force(
    feature_names=X.columns, feature_values=x, contribution_threshold=0.03
)

# this works if earlier `plot_force` is removed
shapiq.plot.bar_plot(list_of_interaction_values, feature_names=X.columns, max_display=20)


Develop's abracadabra changes

Shiny and tidy, not resetted :smiley:

Maybe not this time :disappointed:


Show All Cards

Issuer: Jenny
Jeannie
Requirements:

Add a button at the home page that allow user to see the intepretation of all 22 cards.

Deadline: Tuesday, June 6th 2023
Code-dependency:

use modal or a new file (?)
index.html

Issue done criteria:

User able to see the intepretation of all 22 cards

Merge with PR #72


Pre-create config manipulation?

There's been a lot of discussion over in opencontainers/runc#1811 about how to support the NVIDIA folks and others who want to be able to create devices (possibly after having loaded kernel modules) and bind userspace libraries into the container.  Currently that's happening in the middle of run's create-time mount handling before the container pivots to its new root directory with runc's incorrectly-timed prestart hook trigger (opencontainers/runc#1710).  My preferred approach would be to have a directory with runtime-config filters (in the stdin/stdout filter sense) to allow trusted parties to manipulate the config JSON before calling the runtime's create.  I've mocked up a proof-of-concept runtime wrapper here.  I'd like to get something like this landed in libpod (maybe here?).  Is there enough interest among libpod maintainers for it to be worth me spending some time putting that together (you can always reject it once you see it ;), or can you already reject the proposal now based on the proof-of-concept?

Overall, I think this is probably a fine addition, with a few caveats.
I am a bit concerned about potential performance hits here (a lot of
fork-exec during one of the most expensive operations in Podman/CRI-O). I
think we definitely want a way of only calling the filter programs
selectively (similar to the OCI hooks).
I'm also thinking this needs to come with a long disclaimer about how even
simple changes to the OCI spec can cause containers to explode without
warning, to try and reduce the number of bug reports we get about faulty
plugins generating unusable configs.
On Mon, Nov 19, 2018, 01:21 W. Trevor King<EMAIL_ADDRESS>wrote:

There's been a lot of discussion over in opencontainers/runc#1811
https://github.com/opencontainers/runc/pull/1811 about how to support
the NVIDIA folks and others who want to be able to create devices (possibly
after having loaded kernel modules) and bind userspace libraries into the
container. Currently that's happening in the middle of run's create-time
mount handling before the container pivots to its new root directory with
runc's incorrectly-timed prestart hook trigger (opencontainers/runc#1710
https://github.com/opencontainers/runc/issues/1710). My preferred
approach
https://groups.google.com/a/opencontainers.org/forum/#!msg/dev/pWEp_UK6aAk/6_nHAypqAQAJ
would be to have a directory with runtime-config filters (in the
stdin/stdout filter sense) to allow trusted parties to manipulate the
config JSON before calling the runtime's create. I've mocked up a
proof-of-concept runtime wrapper here
https://github.com/wking/libpod/tree/config-filters. I'd like to get
something like this landed in libpod (maybe here
https://github.com/containers/libpod/blob/v<IP_ADDRESS>/libpod/container_internal.go#L609?).
Is there enough interest among libpod maintainers for it to be worth me
spending some time putting that together (you can always reject it once you
see it ;), or can you already reject the proposal now based on the
proof-of-concept https://github.com/wking/libpod/tree/config-filters?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/containers/libpod/issues/1828, or mute the thread
https://github.com/notifications/unsubscribe-auth/AHYHCH_ZF7PyCwk8M25LIpcN8tLHZqsXks5uwk4CgaJpZM4YoeXT
.

I agree, this has to be optional by configuration.  We also need information back in podman info to tell us whether one of these is installed.

I agree, this has to be optional by configuration.

The in-flight #1830 already has that covered.

We also need information back in podman info to tell us whether one of these is installed.

Can someone give me some pointers on this.  I dunno how info is fed, and I dunno what sort of information you're looking for.  Do we already list matching hooks there for other stages?

I think what you're already doing in #1830 (reporting literal changes to the spec) is plenty sufficient - should be enough to clue us in if anything goes wrong.


Heavily optimized - added seconds display - MMDD/DDMM switch

Jens,
After some days working on the code, here is a PR that hopefully does not break the current implemented functions, and adds seconds&DD.MM display switch (more common here in FR).
Basically, I removed rtc/config in function parameter when calling the ds1302 functions, replaced the struct by direct access to the data (replaced rtc/config structs by table[]) since the 8051 generated code for access to structs is not really optimal (although it is more readable and elegant I admit).
I am still not very happy with the behaviour of switch/keypress code, so that's my next target...
Also I think there is now code space to add the chime&alarm (perhaps DCF77 too, but I still have not connected my module...).
Best regards,
JJ

thanks. great work so far... I'll test this out tonight or tommorow on my clock and merge if no issues found..
I also am not too happy with my software debouncing (they should have used simple hw debounce, but sadly they overloaded the uart pins :( - I'm confident you can improve the UX in this area...
Also looking forward to alarm/chime implementation - with the optimizations you have made, there should be plenty of room for this, and may another trick or two the original firmware doesn't have ;)

Oh, also, do you want to make a readme note about any features/changes? Also, add your name to the headers as a contributor if you like...

On my current master, I have taken into account your comment regarding the use of #defines for MASKs.
I have also put the %4, as there is no difference with code generated by sdcc >3.3.0.
Please test first, and if you feel adding the new functions to the readme is appropriate, please do so.
You already mentioned my work in the readme around the stc15, so it is fine with me (by the way, I should put this code on git too.)

Ok, I tested that it works - due to above mentioned "feature" of stcgal, it works ("eeprom" section is flashed), but also as mentioned, it does NOT work (display is blank - no numbers, only dots) when programmed w/ stc-isp, as it will "truncate" it and not try to program "eeprom" range from code. Perhaps we can output the led table to separate eeprom.hex file that can be programmed with the lookup tables, for anyone using windows + stc-isp.

ok, i have a solution to make eeprom (for stc-isp folks) with simple sed command I'll add to makefile and update readme...
Will go ahead and merge this now..
Thanks.


Crush when user change his own default folders to hidden

Crush when user change his own default folders to hidden
When I changed the folder of Downloads, Documents, Music etc. from the User folder in C disk to D disk and set them hidden, the  program would not be able to locate them and will crush.

In this situation, the program will crush when I press the button of the Documents in the files UWP

Currently Files doesn't support hidden files so that's why it doesn't work.


How to make the language file work

I've fork ja.lua to make another language setting file zh.lua (incomplete,see zh.lua.zip), and I put it in sile/languages folder. but after I build sile with make clean;make;sudo make install, I can't load the languages file while executing sile:
This is SILE 0.9.5-unreleased
<test.sil>
No patterns for language zh
[1]
test.sil are like:
\begin[class=jplain]{document}
\script[src=packages/font-fallback]
\font[family=Noto Serif CJK TC,language=zh]
.....

Generally this means your file is not compiling. There's a line incore/languages.lua which is commented out:
  -- SU.warn("Error loading language " .. language .. ": " .. fail)

I don't remember why I commented it out. Uncomment it and you will get errors when your language file doesn't compile.

Ok, I've solved the problem. Thank you.

@simoncozens You didn't comment it out. I did. But I cannot remember why either and my commit message for doing so isn't helping (see 51720c3). I suspect it was a debug commit for local testing that I shouldn't have pushed before rebasing with more description and maybe removing instead of commenting the code. That's what I usually do, hack around locally commenting things, commit to try different things, then when it all works go back and rebase to cleanup the final code and give it more verbose commit messages. It looks like I might have been in a hurry trying to get a book out and that process got short circuited and now I don't know why that output was a problem.
I'm guessing it was showing up warnings by the thousands and spamming book build logs on my CI server.


Viewport goes black when not in focus

If another app has focus, the Shadered viewport goes black.
Also, after saving changes (with auto reload active), often I'll need to save multiple times, in addition to giving the viewport window focus, to see the image.
Using Windows 11

My mistake - was to do with the iMouse values. Workaround -
float2 mo = iMouse.xy;

// Set mouse coords when app not in focus
if(mo.y >= 1. && mo.x <= 0.)
{
   mo = 0.5;
}


[Styles/Typescript] string[][] is not assignable to type string (space separated values)

This might actually be a JSS issue but the interfaces Typescript is complaining about appear to be defined in Material-UI.
In JSS you can create space-separated values with a double array:
{
    scrollbarColor: [['red', 'green']]
}

However, in Typescript, you get an error that string[][] is not assignable to string. As a workaround you can do the following:
{
    scrollbarColor: [['red', 'green']] as unknown as string
}

But that's not ideal.
Full error from makeStyles():
Argument of type '(theme: Theme) => { content: { [x: string]: string | number | { height: string; marginTop: number; width?: undefined; } | { width: string; height?: undefined; marginTop?: undefined; }; padding: number; height: string; marginTop: number; flex: number; }; drawer: { ...; }; drawerPaper: { ...; }; flex: { ...; }; root: ...' is not assignable to parameter of type 'Styles<Theme, {}, "root" | "content" | "flex" | "drawer" | "drawerPaper">'.
  Type '(theme: Theme) => { content: { [x: string]: string | number | { height: string; marginTop: number; width?: undefined; } | { width: string; height?: undefined; marginTop?: undefined; }; padding: number; height: string; marginTop: number; flex: number; }; drawer: { ...; }; drawerPaper: { ...; }; flex: { ...; }; root: ...' is not assignable to type 'StyleRulesCallback<Theme, {}, "root" | "content" | "flex" | "drawer" | "drawerPaper">'.
    Call signature return types '{ content: { [x: string]: string | number | { height: string; marginTop: number; width?: undefined; } | { width: string; height?: undefined; marginTop?: undefined; }; padding: number; height: string; marginTop: number; flex: number; }; drawer: { ...; }; drawerPaper: { ...; }; flex: { ...; }; root: { ...; }; }' and 'Record<"root" | "content" | "flex" | "drawer" | "drawerPaper", CSSProperties | CreateCSSProperties<{}> | PropsFunc<{}, CreateCSSProperties<{}>>>' are incompatible.
      The types of 'drawerPaper' are incompatible between these types.
        Type '{ width: number; scrollbarColor: string[][]; scrollbarWidth: "thin"; '&::-webkit-scrollbar': { width: number; }; '&::-webkit-scrollbar-track': { background: string; }; '&::-webkit-scrollbar-thumb': { ...; }; }' is not assignable to type 'CSSProperties | CreateCSSProperties<{}> | PropsFunc<{}, CreateCSSProperties<{}>>'.
          Type '{ width: number; scrollbarColor: string[][]; scrollbarWidth: "thin"; '&::-webkit-scrollbar': { width: number; }; '&::-webkit-scrollbar-track': { background: string; }; '&::-webkit-scrollbar-thumb': { ...; }; }' is not assignable to type 'CreateCSSProperties<{}>'.
            Types of property 'scrollbarColor' are incompatible.
              Type 'string[][]' is not assignable to type 'string | PropsFunc<{}, string | undefined> | undefined'.
                Type 'string[][]' is not assignable to type 'string'.  TS2345

I tried to track down the exact definition it's complaining about at the end but couldn't find it.

@webarnes Note that we are progressively removing JSS from the library, you would have more luck using react-jss directly.

@webarnes Note that we are progressively removing JSS from the library, you would have more luck using react-jss directly.

An update, we have now made enough progress with the new @material-ui/styled-engine package in v5 to move toward a progressive removal of the @material-ui/styles package (based on JSS). The current plan:

In v5.0.beta.0, this package will come standalone, in complete isolation from the rest.
In v5.0.0, this package will be soft deprecated, not promoted in the docs, nor very actively supported.
During v5, work on making the migration easier to the new style API (sx prop + styled() API). We might for instance, invest in the documentation for using react-jss that has more or less the same API. We could also invest in an adapter to restore the previous API but with emotion, not JSS.
In v6.0.0, this package will be discontinued (withStyles/makeStyles API).

This was made possible by the awesome work of @mnajdova.


Cannot run Hello World against Azure

I have been trying to run a simple Hello World Lithops program against Azure:
import lithops

def hello_world(name):
    return 'Hello {}!'.format(name)

if __name__ == '__main__':

    config = {"lithops": {"backend": "azure_functions", "storage": "azure_storage", "storage_bucket": "apt-falk-meta", "mode": "serverless"}, "azure_storage": {"storage_account_name": "aptregstorageacc", "storage_bucket": "apt-falk-meta", "storage_account_key": "..."}, "azure_functions": {"location": "eastus", "runtime": "regoptsvc", "resource_group": "falk", "functions_version": 3}}

    fexec = lithops.FunctionExecutor(config=config)

    fexec.call_async(hello_world, 'World')
    print(fexec.get_result())

When I run it, I hit the following error(s) both on Lithops 2.5.9 and 2.6.0:
% python validate_lithops.py
2022-06-07 16:58:00,494 [INFO] lithops.config -- Lithops v2.6.0
2022-06-07 16:58:00,762 [INFO] lithops.storage.backends.azure_storage.azure_storage -- Azure Blob client created
2022-06-07 16:58:00,763 [INFO] lithops.serverless.backends.azure_functions.azure_functions -- Azure Functions client created - Location: eastus
2022-06-07 16:58:00,763 [INFO] lithops.invokers -- ExecutorID a20423-0 | JobID A000 - Selected Runtime: regoptsvc - 256MB
2022-06-07 16:58:00,905 [INFO] lithops.invokers -- Runtime regoptsvc with 256MB is not yet deployed
2022-06-07 16:58:00,906 [INFO] lithops.serverless.backends.azure_functions.azure_functions -- Creating new Lithops runtime for Azure Function: regoptsvc
2022-06-07 16:59:28,817 [INFO] lithops.serverless.backends.azure_functions.azure_functions -- Extracting Python modules from: regoptsvc
Traceback (most recent call last):
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 328, in _generate_runtime_meta
    payload=payload, return_result=True)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 280, in invoke
    data = json.loads(resp.read().decode("utf-8"))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "validate_lithops.py", line 26, in <module>
    fexec.call_async(hello_world, 'World')
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/executors.py", line 205, in call_async
    runtime_meta = self.invoker.select_runtime(job_id, runtime_memory)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/invokers.py", line 120, in select_runtime
    runtime_meta = self.compute_handler.deploy_runtime(self.runtime_name, runtime_memory, runtime_timeout)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/serverless.py", line 73, in deploy_runtime
    return self.backend.deploy_runtime(runtime_name, memory, timeout=timeout)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 92, in deploy_runtime
    metadata = self._generate_runtime_meta(runtime_name, memory)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 330, in _generate_runtime_meta
    raise Exception("Unable to invoke 'extract-preinstalls' action")
Exception: Unable to invoke 'extract-preinstalls' action

On the Azure side I see quite a few resources being created:

regoptsvc Application Insights and Function App
EastUSLinuxDynamicPlan App Service plan
aptregstorageacc Storage account
aptregopt-lithops-runtime-v37-259-http Application Insights
All under the same resource group.

Interestingly, under Application Insights I see Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcExceptions:
Exception while executing function: Functions.lithops_handler Result: Failure
Exception: ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.7 from "/usr/local/bin/python"
  * The NumPy version is: "1.21.6"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'
. Troubleshooting Guide: https://aka.ms/functions-modulenotfound
Stack:   File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 309, in _handle__function_load_request
    func_request.metadata.entry_point)
  File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 42, in call
    raise extend_exception_message(e, message)
  File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 40, in call
    return func(*args, **kwargs)
  File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/loader.py", line 85, in load_function
    mod = importlib.import_module(fullmodname)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/site/wwwroot/lithops_handler/__init__.py", line 23, in <module>
    from lithops.worker import function_handler
  File "/home/site/wwwroot/.python_packages/lib/site-packages/lithops/worker/__init__.py", line 1, in <module>
    from .handler import function_handler
  File "/home/site/wwwroot/.python_packages/lib/site-packages/lithops/worker/handler.py", line 38, in <module>
    from lithops.worker.jobrunner import JobRunner
  File "/home/site/wwwroot/.python_packages/lib/site-packages/lithops/worker/jobrunner.py", line 32, in <module>
    import numpy as np
  File "/home/site/wwwroot/.python_packages/lib/site-packages/numpy/__init__.py", line 150, in <module>
    from . import core
  File "/home/site/wwwroot/.python_packages/lib/site-packages/numpy/core/__init__.py", line 48, in <module>
    raise ImportError(msg)

Finally, I have also conducted an experiment to predeploy Lithops which failed the same way:
I extracted the majority of the Dockerfile from here and tried to manually build and deploy it with the same results:
lithops clean -c falk_lithops_azure.config
lithops runtime build -b azure_functions regoptsvc -c falk_lithops_azure.config -f Dockerfile.azure_lithops
lithops runtime deploy -b azure_functions regoptsvc -c falk_lithops_azure.config -d --memory 8192 --timeout 360

Finally, this has been exacerbated by the fact that while the other targets have been well documented in the runtime folder, Azure is still missing from there.
Could you please advice how to proceed and get the hello world to run? Gil Vernik pointed me here.
Thank you very much in advance.
Best wishes,
Falk

Hi @fplk, 2 weeks ago I found that they changed something in the Azure side that prevents to use Lithops on there with the latest releases. I already added the fixes the past week, so it should work with the master branch.
Note that currently Azure Functions Lithops backend does not support Docker runtimes. In Azure backend, runtimes are built from a requirements.txt file. Will add the instructions for building a custom runtime to the runtime folder. Also note that Lithops automatically builds and deploys a default runtime the first time you run a function, so for running the hello world app you don't need to either build or deploy any runtime.

Well, I ultimately went against master as mentioned in the other issue, but am facing the same or a very similar issue:
2022-06-08 12:51:33,767 [INFO] azure_functions.py:313 -- Extracting metadata from: lithops-default-runtime-v37
Traceback (most recent call last):
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 318, in _generate_runtime_meta
    payload=payload, return_result=True)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 271, in invoke
    data = json.loads(resp.read().decode("utf-8"))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 15, in <module>
    fexec.call_async(my_function, 3)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/executors.py", line 205, in call_async
    runtime_meta = self.invoker.select_runtime(job_id, runtime_memory)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/invokers.py", line 117, in select_runtime
    runtime_meta = self.compute_handler.deploy_runtime(self.runtime_name, runtime_memory, runtime_timeout)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/serverless.py", line 73, in deploy_runtime
    return self.backend.deploy_runtime(runtime_name, memory, timeout=timeout)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 90, in deploy_runtime
    metadata = self._generate_runtime_meta(runtime_name, memory)
  File "/Users/fplk/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py", line 320, in _generate_runtime_meta
    raise Exception(f"Unable to extract metadata: {e}")
Exception: Unable to extract metadata: Expecting value: line 1 column 1 (char 0)
(lithops-venv) fplk@Falks-MacBook-Pro lithopsDebugging % lithops --version
lithops, version 2.6.1.dev0

Please also note that this seems at odds with your clarification that Azure does not support Docker - why did it reach azure_functions.py, line 318 then? It seems it should have never gotten there.
        try:
            runtime_meta = self.invoke(docker_image_name, memory=memory,
                                       payload=payload, return_result=True)
        except Exception as e:
            raise Exception(f"Unable to extract metadata: {e}")

Please also note that I changed the runtime name multiple times during debugging, so I tried "default" besides "default2" and others, since I assume the "runtime": "regoptsvc" above could be wrong. Without runtime docs it's difficult to tell - any advice might be helpful. Thanks in advance.

can you run lithops clean -c falk_lithops_azure.config and then try again with DEBUG logs?

Sure:
2022-06-08 13:28:28,903 [DEBUG] azure_functions.py:204 -- Publishing function: aptregstorageacc-lithops-default-runtime-v37-2-6-1-dev0-http
Can't find app with name "aptregstorageacc-lithops-default-runtime-v37-2-6-1-dev0-http"

Getting site publishing info...
Skipping build event for functions project (--no-build).
Uploading package...
Uploading 40 MB [------------------------------------------------------------Upload completed successfully.
Deployment completed successfully.
Syncing triggers...
Functions in aptregstorageacc-lithops-default-runtime-v37-2-6-1-dev0-http:
    lithops_handler - [httpTrigger]
        Invoke url: https://aptregstorageacc-lithops-default-runtime-v37-2-6-1-dev0-http.azurewebsites.net/api/lithops_handler

2022-06-08 13:29:13,349 [INFO] azure_functions.py:313 -- Extracting metadata from: lithops-default-runtime-v37

---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py in _generate_runtime_meta(self, docker_image_name, memory)
    317             runtime_meta = self.invoke(docker_image_name, memory=memory,
--> 318                                        payload=payload, return_result=True)
    319         except Exception as e:

~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py in invoke(self, docker_image_name, memory, payload, return_result)
    270                 resp = conn.getresponse()
--> 271                 data = json.loads(resp.read().decode("utf-8"))
    272                 conn.close()

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    347             parse_constant is None and object_pairs_hook is None and not kw):
--> 348         return _default_decoder.decode(s)
    349     if cls is None:

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py in decode(self, s, _w)
    336         """
--> 337         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    338         end = _w(s, end).end()

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
    354         except StopIteration as err:
--> 355             raise JSONDecodeError("Expecting value", s, err.value) from None
    356         return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Exception                                 Traceback (most recent call last)
/var/folders/qp/wxndn8ds2gz8ysz5mxqx86880000gn/T/ipykernel_4549/2400594072.py in <module>
----> 1 fexec.call_async(my_function, 3)

~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/executors.py in call_async(self, func, data, extra_env, runtime_memory, timeout, include_modules, exclude_modules)
    203         self.last_call = 'call_async'
    204
--> 205         runtime_meta = self.invoker.select_runtime(job_id, runtime_memory)
    206
    207         job = create_map_job(config=self.config,

~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/invokers.py in select_runtime(self, job_id, runtime_memory)
    115             msg = msg+' with {}MB'.format(runtime_memory) if runtime_memory else msg
    116             logger.info(msg+' is not yet deployed')
--> 117             runtime_meta = self.compute_handler.deploy_runtime(self.runtime_name, runtime_memory, runtime_timeout)
    118             runtime_meta['runtime_timeout'] = runtime_timeout
    119             self.internal_storage.put_runtime_meta(runtime_key, runtime_meta)

~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/serverless.py in deploy_runtime(self, runtime_name, memory, timeout)
     71         return: the name of the runtime
     72         """
---> 73         return self.backend.deploy_runtime(runtime_name, memory, timeout=timeout)
     74
     75     def delete_runtime(self, runtime_name, memory):

~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py in deploy_runtime(self, runtime_name, memory, timeout)
     88         logger.info(f"Deploying runtime: {runtime_name} - Memory: {memory} Timeout: {timeout}")
     89         self._create_function(runtime_name, memory, timeout)
---> 90         metadata = self._generate_runtime_meta(runtime_name, memory)
     91
     92         return metadata

~/PycharmProjects/predopt/lithops-venv/lib/python3.7/site-packages/lithops/serverless/backends/azure_functions/azure_functions.py in _generate_runtime_meta(self, docker_image_name, memory)
    318                                        payload=payload, return_result=True)
    319         except Exception as e:
--> 320             raise Exception(f"Unable to extract metadata: {e}")
    321
    322         if not runtime_meta or 'preinstalls' not in runtime_meta:

Exception: Unable to extract metadata: Expecting value: line 1 column 1 (char 0)

Side question: Should I care about this?
WARNING: Your Linux function app 'aptregstorageacc-lithops-default-runtime-v37-2-6-1-dev0-http', that uses a consumption plan has been successfully created but is not active until content is published using Azure Portal or the Functions Core Tools.

I've been trying to replicate the issue but for me it always works ok. I just added a change that will show the actual error that is produced when it tries to extract the metadata from the runtime. Can you update your installation from the master branch and try again?

@JosepSampe, Do you have a working example of a hello world type of application using lithops and azure?
Do you use lithops runtime build and lithops runtime deploy to do it?  If so can you send the dockerfile you use.
Do you just use a lithops config only and bypass the lithops runtime build and lithops runtime deploy?
We really need to see how to run on Azure, otherwise we might have to punt on lithops altogether.

Hi @theathibm, I'm using the basic "hello world" function we have, with the default runtime that is automatically built. You can submit it with lithops test -b azure_functions -s azure_storage -d
You don't need to run "create" and "deploy", everything is automatically done by lithops.
Note that currently Azure backend for Lithops does not support Docker containers. This morning I added the instructions in the runtime folder on how to create a custom runtime based on a requeriments.txt file if you need a custom runtime

@JosepSampe , thanks.    We will need to build customized runtimes for our various custom python modules which all need to be cythonized.
Can you send lithops configuration file that has everything needed for a successful azure deployment?

There is no special configuration. The configuration that @fplk provided on the top of this thread is good. In fact the runtime is correctly built and deployed. You should check the azure portal and see in the function logs why it is failing.

Also, would like more clarity on this error snippet from the above:
Please note and check the following:

The Python version is: Python3.7 from "/usr/local/bin/python"
The NumPy version is: "1.21.6"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'

This could happen if you have diferent versions of numpy in the client and in the runtime

Launching from Linux (or rather a Linux container from macOS) resolved the issue. Thank you.


webpack-blocks for customizing of webpack config

Hi @MoOx. Thanks for your awesome project!
I found that customizing of webpack.config is not flexible (you can customize all or nothing).
Maybe use webpack-blocks for default config and provide to add custom blocks?
For example if webpack.blocks.js present in project, export of this file will be added to createConfig in default config.
Example of webpack.blocks.js:
const {
  match,
  file
} from 'webpack-blocks'

module.exports = [
  match(['*.gif', '*.jpg', '*.jpeg', '*.png', '*.webp'], [
    file()
  ])
]

@langovoi I think the provided webpack.config.js is a start point, you copy it to your project and customize it as needed. As @MoOx said before, learning a new syntax to edit an JS object is a waste of time

Rewrited webpack.config.js with webpack-blocks:
import path from "path";

import {
  createConfig,
  entryPoint,
  setOutput,
  babel,
  match,
  css,
  extractText,
  addPlugins,
  webpack,
  resolve
} from "webpack-blocks";

const nodeModules = path.join(process.cwd(), "node_modules");
module.exports = (config: PhenomicConfig) => createConfig([
  entryPoint({
    [config.bundleName]: [
      process.env.PHENOMIC_ENV !== "static" &&
      require.resolve("webpack-hot-middleware/client"),
      process.env.PHENOMIC_ENV !== "static" &&
      require.resolve("react-hot-loader/patch"),
      "./App.js"
    ].filter(item => item)
  }),
  setOutput({
    publicPath: "/", // @todo make this dynamic
    path: path.join(process.cwd(), "dist"),
    filename: "[name].js"
  }),
  babel({
    babelrc: false,
    presets: [require.resolve("@phenomic/babel-preset")],
    plugins: [require.resolve("react-hot-loader/babel")]
  }),
  match("*.css", [
    css(),
    extractText({
      filename: "styles.css",
      disable: process.env.PHENOMIC_ENV !== "static"
    })
  ]),
  addPlugins([
    process.env.PHENOMIC_ENV !== "static" && new webpack.HotModuleReplacementPlugin(),
    process.env.NODE_ENV === "production" && new webpack.optimize.UglifyJsPlugin()
  ].filter(item => item)),
  resolve({
    // react-native(-web) | react-primitives
    extensions: [".web.js", ".js", ".json"],
    alias: {
      "react-native": "react-native-web",

      // to ensure a single module is used
      react: path.resolve(path.join(nodeModules, "react")),
      "react-dom": path.resolve(path.join(nodeModules, "react-dom")),
      "react-router": path.resolve(path.join(nodeModules, "react-router"))
    }
  }),
  (context, util) => util.merge({
    // eslint-disable-next-line max-len
    // https://github.com/facebookincubator/create-react-app/blob/fbdff9d722d6ce669a090138022c4d3536ae95bb/packages/react-scripts/config/webpack.config.prod.js#L279-L285
    node: {
      fs: "empty",
      net: "empty",
      tls: "empty"
    }
  })
]);

If add exports of webpack.blocks.js from user project to the createConfig webpack.config.js will became very flexible to customizing.
This also provide to change default config without breaking changes for users.

User land problem. I won't put this in the core of the webpack plugin.  Maybe we can add an plugin to provide your way to send the webpack config but not sure this will really help.
The file you converted is not really different at the end.


Remove a missing dependency edge on Windows

Unblock the Windows bots

@swift-ci smoke test

Alright, that got the Windows failures. Let's see is Linux is still acting up.

LLDB test timed out
@swift-ci smoke test macOS platform

Have a hunch Linux is behaving poorly because of memory corruption. Going to put up another PR that defensively copies more strings.

⛵


RFC: kernel: define memory mapping APIs

Facilities for mapping anonymous memory or re-mapping existing
memory mappings.
These are loosely based on mmap() and mremap() on Linux.
This is just the interface defintion for public review.

Wanted to get feedback on these interface defintions. k_mem_map() implementation will be part of my forthcoming demand paging PR. k_mem_remap() would land some time after that, need support for memory un-mapping first (#28900)

Also these will eventually be implemented as syscalls, but we'll need some infrastructure to set limits on how much anonymous memory any given thread or memory domain can allocate, and how it ties into the memory domain partitions (or is otherwise granted access to a domain)


Increase test coverage and add integration tests against mount point not supporting quotas

Signed-off-by: Stephan Peijnik<EMAIL_ADDRESS>

Codecov Report

Merging #4 into master will decrease coverage by 18.72%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           master       #4       +/-   ##
===========================================
- Coverage   49.81%   31.08%   -18.73%
===========================================
  Files           7        7
  Lines         265      267        +2
===========================================
- Hits          132       83       -49
- Misses        119      184       +65
+ Partials       14        0       -14

Impacted Files
Coverage Δ

fsquota_linux.go
0% <0%> (-37.42%)
:arrow_down:

fsquota.go
0% <0%> (-75%)
:arrow_down:

quotactl_linux.go
75% <0%> (-20.46%)
:arrow_down:

util_linux.go
54.28% <0%> (+54.28%)
:arrow_up:

info.go
100% <0%> (+100%)
: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 747d6be...2ef152f. Read the comment docs.


Ability to hide spawn nodes on map

Feature request.
I would like to hide spawn nodes on the map, while still showing quest icons.

Top right of the map, select "Manual Selection" in the drop-down menu.

Ah, I thought that would hide everything unless I select them manually (including quest icons), but looks like it does what I wanted. Thanks!


Namespace the digest tags

If a similar mechanism is required for other types of references in the
future this will allow for disambiguation.
Signed-off-by: James Hewitt<EMAIL_ADDRESS>

No appetite for this.


[SPARK-36393][BUILD][FOLLOW-UP] Try to raise memory for GHA

What changes were proposed in this pull request?

As followup to raise memory for two places forgotten.
Why are the changes needed?

Raise memory for GHA.
Does this PR introduce any user-facing change?

No
How was this patch tested?

GA

cc @dongjoon-hyun @HyukjinKwon

Test build #142113 has started for PR 33658 at commit 6e5a80e.

cc @gengliangwang

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

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

Test build #142113 has finished for PR 33658 at commit 6e5a80e.

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

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

GHA failed by
The downloaded source packages are in
	‘/tmp/RtmpqZ25tN/downloaded_packages’
Using bundled GitHub PAT. Please add your own PAT to the env var `GITHUB_PAT`
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 401.
  Bad credentials

at "Install R linter dependencies and SparkR".
Looks unrelated.

Thanks @HyukjinKwon @dongjoon-hyun ! Merging to master/3.2.


colors.lua: bg and bg2 are swapped?

I've installed the light variant of this theme in both kitty and nvim:

However, I would expect both kitty and nvim to have the same background:

To achieve the desired result I had to swap bg and bg2 in colors.lua. Is this a mistake?

Since github's background is #ffffff, it must be a mistake in kitty's theme.

I see the same thing with the dark theme: the nvim background is lighter than the terminal (GNOME terminal, but I copied the colours from the kitty config).


Added average speed and time in history section.

This PR is intended to resolve #44.
I added avg time and speed to both history sections in the practice and profile pages.
Code Changes

Added new table below existing history table to display averages
In showHistory() added new table row element creation for the avg table.
Added new variables in showHistory() to calculate average times.
Simplified innerHTML string for the existing table with new variables.
Added additional CSS to match new table with the existing table.

Do the required change

Sorry, I fixed it.


Build error when you have a static async method

Hi,
Using version 4.2.2 I get a build error whenever there is a static asynchronous method in a class. The simplest example I can give is just to create the following class in an empty class library
public class TestService
    {
        public DateTime GetDateAddDays(int daysToAdd)
        {
            return DoDateAddition(daysToAdd).Result;
        }

        private static async Task<DateTime> DoDateAddition(int daysToAdd)
        {
            return DateTime.Now.AddDays(daysToAdd);
        }
    }

Reference the puresharp libraries and do a build.
It fails with the following error
Unhandled Exception: System.ArgumentNullException: Value cannot be null.
	Parameter name: field
       at Mono.Cecil.Cil.Instruction.Create(OpCode opcode, FieldReference field)
       at IPuresharp.Machine.Manage(MethodDefinition method)
       at IPuresharp.Authority..ctor(TypeDefinition type)
       at IPuresharp.Program.Manage(TypeDefinition type)
       at IPuresharp.Program.Manage(String assembly)
       at IPuresharp.Program.Main(String[] arguments)
C:\Temp\PureSharp\Repro\PureSharpBug\packages\IPuresharp.4.2.2\build\IPuresharp.targets(10,5): error MSB3073: The command ""C:\Temp\PureSharp\Repro\PureSharpBug\packages\IPuresharp.4.2.2\build\IPuresharp.exe" "C:\Temp\PureSharp\Repro\PureSharpBug\PureSharpBug\PureSharpBug.csproj" "Debug"" exited with code -532462766.

Thank you for report, I will test it as soon as possible.


Redis

I have created a simple express application with mongoose and Redis, this might be so helpful to peoples who are trying to integrate Redis on there express application, Why I choose mongoose for DB? most people prefer MongoDB as there database,

Hey @usama-asfar, thanks for the contribution!  I am not sure the core team has alignment on what we want the examples directory to contain.  Today there are many things in there, and some are even used in tests.  But personally I do not like having all of these examples in the main repo, and especially do not like tests running against them.  Because of this, I hesitate to add more at this time.
This is not a judgement of this example, nor does it mean I would want to close this.  To me it just means we should discuss the goal of the examples directory to have clarity on it's future before making a decision, which might hold this up for a bit.

Hey @usama-asfar, thanks for the contribution! I am not sure the core team has alignment on what we want the examples directory to contain. Today there are many things in there, and some are even used in tests. But personally I do not like having all of these examples in the main repo, and especially do not like tests running against them. Because of this, I hesitate to add more at this time. Others might disagree.
This is not a judgement of this example, nor does it mean I would want to close this. To me, it just means we should discuss the goal of the examples directory to have clarity on its future before making a decision, which might hold this up for a bit.

Yeah, I can understand, And due to the trending of using Redis I thought of creating an example with Redis might help people to give an idea to integrate Redis into there express application and whatever decision you all take will be right
Thank you  :-)


[development/filesystem] added a file system API

Would it be possible to resolve the merge conflicts on this branch


Want to add security

?? What type of security

To protect against the harms
On Sat, 2 Nov 2024, 1:15 am Vinay k, @.***> wrote:

?? What type of security
—
Reply to this email directly, view it on GitHub
https://github.com/Vinay-Khanagavi/Cyberbear.github.io/issues/159#issuecomment-2452487848,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7SRZ6HDUON64UF66JMD5ODZ6PK5LAVCNFSM6AAAAABRAQOIVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJSGQ4DOOBUHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

We're not in need of that at the moment. Feel free to explore other topics or create new ones. For more guidance, consider exploring the main project or joining our Discord server.


Alpha 1.0.4 (Suggestion) - Split update functions apart

It might be more flexible to separate the field update triggers from each other.
Currently, Location, User, and Note are all updated at the same time, whether the field has been modified or was already empty.
If a field is already empty, it should be ignored and not resubmitted.
If a field has not been modified, it should be ignored.
See https://github.com/iamtheyammer/gam-cros-win-wrapper/issues/19 for an example of the issue.

The fix in #19 applies here, as well. Fixed, waiting for commit.


Add sum with condition and sumIf function into ktorm-support-mysql

Whats' this PR do ?

Add sum dsl functions into ktorm-support-mysql

sumIf: generate sum( if(column condition, ifTrue, ifFalse) )
sum: generate sum( column condition )

In MySQL, sum( boolean ) works as conditional sum

ref: Count with IF condition in MySQL query
Boolean type in MySQL is represented as INT 0 and 1, just like in C.

use-case

    @Test
    fun testSumIf() {
        val countRich = database.from(Employees)
                .select(sumIf(Employees.salary greaterEq 100L, 1, 0))
                .map { row -> row.getInt(1) }
        assert(countRich.size == 1)
        assert(countRich.first() == 3)
    }

    @Test
    fun testSum() {
        val countRich = database.from(Employees)
                .select(sum(Employees.salary greaterEq 100L))
                .map { row -> row.getInt(1) }
        assert(countRich.size == 1)
        assert(countRich.first() == 3)
    }

@vincentlauvlwj Hi, I try to add sum and sumIf function in ktorm-support-mysql.
I would appreciate it if you could review this PR.


Add olvasztar's file

Add second slide.

Created a branch, created a file and made a commit, and opened a pull request.


Add my name to contributors.md

Thanks for this project!

Hi  @richardxu100, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


Fix for issues/10 by updating goober

Fixes https://github.com/solidjs/solid-styled-components/issues/10
See https://github.com/cristianbote/goober/issues/407

Thank you


chore: fix function name

What have you changed and why?
Describe your changes here.
Related Issues
Link related issues here.

Thanks!


AwsClientBuilder is not thread safe

AwsClientBuilder is not thread safe, and creating multiple N5Readers / N5Writers in parallel could run into this.
This could be the cause of intermittent test failures that reach out to s3.
@cmhulbert @tischi

Nice find! Since the refactor, it is actually only ever called in one place. Synchronizing on that method should be simple enough.
That said, trying to reproduce the error minimally in n5-aws-s3 so far has not triggered the failure for me. For example, this passes without exception:
	@Test
	public void parallelS3Creation() throws InterruptedException, ExecutionException {

		List<Callable<AmazonS3>> tasks = new ArrayList<>();
		for (int i = 0; i < 1_000; i++) {
			final int idx = i;
			tasks.add(() -> {
				final String uri = "s3://n5-test-erroneous-no-such-bucket/test_container-" + idx + ".n5";
				final AmazonS3 s3 = AmazonS3Utils.createS3(uri);
				return s3;
			});
		}
		final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
		final List<Future<AmazonS3>> futures = executor.invokeAll(tasks);
		for (Future<AmazonS3> future : futures) {
			future.get();
		}

	}

Regarding the issue I mentioned in zullip, the erroneaous No Such Bucket exception, I think that is not cause by this issues though, since I was able to trigger it locally with something along the lines of this test:
        @Test
	public void erroneousErrorTest() {

		final String bucket = "n5-test-erroneous-no-such-bucket";
		final String container = "test_container.n5/";
		final String uri = "s3://" + bucket + "/" + container;
		final AmazonS3 s3 = AmazonS3Utils.createS3(uri); // the only call to AwsS3ClientBuilder
		s3.createBucket(bucket);
		s3.putObject(bucket, container, "");
		s3.putObject(bucket, container + "attributes.json", "{version: \"1.2.3\"}");
		assertTrue(s3.doesBucketExistV2(bucket));
		for (int i = 0; i < 1_000; i++) {
			s3.listObjectsV2(bucket);
		}
	}

That said, when I'm currently trying to trigger the issue with the above test, I'm not able to 🤷♀ . But this is "consistent" with the sporadic nature of the exception. I'm not overly concerned about that issues though, it seems rare enough, even when intentionally trying to trigger it.

Update after investigation:
That AwsClientBuilder is marked as not thread safe was not the cause of the issues.
We may still want to guard against potential concurrency issues, but so far its not clear that a such a problem has ever been observed.

@axtimwalde replying here, now that the zullip issue is resolved
One thing that isn't clear to me is what the @NotThreadSafe annotation means. It's doc states:

Documenting annotation to indicate a class is not thread-safe and should not be used in a multi-threaded context.

I'm not sure if this implies that it's not safe to use:

the same instance of an AmazonS3ClientBuilder across multiple threads (we don't do this); or;
unique instances per thread (this could happen)

Nothing I have found documentation wise seems to clarify this so far, and looking at the code, it doesn't seem to me that what we currently are doing (the second point) should not be thread safe.


test: [M3-7124] - Add Cypress integration tests for VPC assign/unassign flows

Description 📝
Add new cypress tests for VPC assign/unassign flows.
Major Changes 🔄

Add e2e tests to verify assigning/unassigning Linode(s) to/from a VPC.

How to test 🧪
yarn cy:run -s "cypress/e2e/core/vpc/vpc-linodes-update.spec.ts"

Known Issues

When there are multiple Linodes in the select list, users type the label to select one of them, then it will deselect all when users type another label and select it.
When users click the Unassign Linode  button, it doesn’t send any request to tell the VPC to unassign Linodes.

I think both those issues will be resolved in https://github.com/linode/manager/pull/9820

@cliu-akamai #9820 was just merged! Can we get the latest develop merged into this branch?

@cliu-akamai #9820 was just merged! Can we get the latest develop merged into this branch?

Sure thing! I will rebase the code.

Hey Cassie! Could you send a screenshot of what you're seeing for the Unassign Linodes drawer? I'm not seeing the button grey'd out

Looks like this test is failing consistently in the can unassign Linode(s) from a VPC test case once a Linode is selected to be unassigned. The test checks for
        ui.button
          .findByTitle('Unassign Linodes')
          .should('be.visible')
          .should('be.enabled')
          .click();

and fails because it's not enabled.

Thanks, @mjac0bs!
@cliu-akamai  It looks like the root of the issue is that the Linode's mocked config doesn't contain the corresponding VPC interface. Defining the config mock like this:
  // (...Somewhere around line 214...)
  const mockLinodeConfig = configFactory.build({
    interfaces: [LinodeConfigInterfaceFactoryWithVPC.build({
      vpc_id: mockVPC.id,
      subnet_id: mockSubnet.id,
    })],
  });

And then using it on line 259 (instead of mockConfig) allows the unassign button to become enabled!

Don't forget to add a changeset to this PR.

(@cliu-akamai we can also disregard the e2e failure for this, it'll be fixed by PR #9890)


Update choose-domain-to-create-groups.md

As a client has opened an issue that the user can't select the domain while creating the office365 groups. I have tested it and found that the user can select the domain he wants to use to create office 365 groups.

@MikePlumleyMSFT - can you please assist to approve and merge the content for this PR based on issue https://github.com/MicrosoftDocs/OfficeDocs-O365ITPro/issues/127?
Thank you.


Sample Z80 Code?

I can't seem to find any sample Z80 code. Would be very helpful to get new users started.
Don't need anything complex... Just to show how escape codes are sent out to set some colours or the like.

You might have a look at this: https://github.com/RC2014Z80/RC2014/tree/master/ROMs/pigfx

Perfect! Thanks...  I think that is worthy of having it linked to from this Repo!

I'm working on an Aztec C library for the escape codes, I need to comb through the code because some of the commands don't match what happens on screen (I suspect that a couple commands got changed without the documentation)