Investigate reducing the size of authentication extensions

I removed all dependencies that didn't make sense... here's the results:

github-authentication: 93kb -> 82.6kb
microsoft-authentication: 96kb -> 75kb

Most of this size comes from the @vscode/extension-telemetry node module... which we pull in to not only these extensions but several built-in ones... and it gets bundled so there's duplication there.
If we can deal with the size of that module, these extensions will drop dramatically. That discussion will be here: https://github.com/microsoft/vscode-internalbacklog/issues/3275


How to preserve links in diffs?

Hello, I am trying to find a diffing library that would preserve links in the diff.
For example, I would a change from:
This is a link: https://example.com/123456/list
To:
This is a link: https://example.com/987654/list
To result in the following diff:
Unchanged: This is a link:
Removed: https://example.com/123456/list
Added: https://example.com/987654/list
When trying out jsdiff, this is what I get using the "diffWords":

Is there a way to maybe customize intlSegmenter to achieve this?

Hmm. There's no proper support for doing this in an elegant way. One crude/hacky but very easy approach would be to copy and paste src/diff/word.js into your project (updating the imports to import from within jsdiff) and tweak extendedWordChars in your copy to include / as a word character.


Removed citing from readme

Thanks for rebranding.
But even if current code base has significantly changed,
it keep inheriting from original work of John Vilk and Emery D. Berger.
So you should keep these two small citations.
(This apply to all ZenFS packages)
You only need the first paragraph with links:
### Citing
ZenFS is a fork of [BrowserFS](https://github.com/jvilk)
which was a component of the [Doppio](http://doppiojvm.org/)
and [Browsix](https://browsix.org/) research projects
from the PLASMA lab at the University of Massachusetts Amherst.

If you decide to use ZenFS/BrowserFS in a project that leads to a publication,
please cite the academic papers
on [Doppio](https://dl.acm.org/citation.cfm?doid=2594291.2594293)
and [Browsix](https://dl.acm.org/citation.cfm?id=3037727)

Maybe keeping also the summary:
### License
ZenFS and BrowserFS are licensed under the MIT License. See `LICENSE` for details.

About cleaning npm registry, one package left public: @browserfs/fs-dom

@saoirse-iontach,
Concerning the Github issue:

About cleaning npm registry, one package left public: @browserfs/fs-dom

I've made sure all of the @browserfs packages have the correct deprecation message.

Maybe keeping also the summary:
### License
ZenFS and BrowserFS are licensed under the MIT License. See `LICENSE` for details.

ZenFS is not required to mention BrowserFS in its license, since the MIT license is used.
Mentioning the license in the readme isn't necessary, since there is a license tab next to "readme" on Github:

But even if current code base has significantly changed,
it keep inheriting from original work of John Vilk and Emery D. Berger.
So you should keep these two small citations.

ZenFS is not a research project nor a publication, so it does not need to include the citations. However, if any research projects use ZenFS then they may choose to include the citations from BrowserFS.
Notice that I have not removed citations from jvilk/BrowserFS's readme.
Concerning some remarks you make in the readme of saoirse-iontach/browser-fs-core:

As of April 2024, it is still in development, that's to say instable and not properly working (expectially encodings, with bad tests).

The current ZenFS API is stable, and everything (including the encoding/decoding) follows the NodeJS API exactly.

More over contributors are actually dismissed.

This is not the case. You were blocked from browser-fs for using derogatory and profane language. Github is a professional platform, and should used as such. This corresponds with professional behavior, which you have not exhibited.
I would welcome future contributions you make provided they follow all of Github's policies as well as being professional in manner.

@BrowserFS is transient project from BrowserFS towards @ZenFS, (illegitimatly?) claiming to be the next BrowserFS (in fact it is @ZenFS before rebranding)

I am a legitimate and offical maintainer of jvilk/BrowserFS. You can verify this by looking at the commit history, and noticing that I have write access to the repository. If that is not enough, feel free to reach out to Emery Berger, who can verify that.

dr-Vortex is an alias of [[redacted]]

While I may decide to release personal information, that right does not extend to you. Please remove my personal information (i.e. name) from all of your projects. This is not a request, it is a requirement under Github's Acceptable Use  Policy, paragraph 3 section 4.
Concerning changes you have made to package.json:
You have changed the author field for forks of ZenFS packages to John Vilk. Dr. Vilk is the author of BrowserFS, not ZenFS. With all due respect, he is not a member of the ZenFS organization, and is not a contributor to ZenFS as a fork. This means that while he created BrowserFS, he has not made any contributions to ZenFS since the fork from BrowserFS was made.
Please correct this inaccuracy in your project. You can do this either by
A. Making a commit to the repositories which change the files saoirse-iontach/browser-fs-core:package.json and saoirse-iontach/browser-fs-dom:package.json.
B. Recreating your forks from jvilk/BrowserFS instead of ZenFS repositories.
Again, this is not a request, it is a requirement under Github's Misinformation and Disinformation policy.


fix(kube-ps1): replace tput

during old fix, tput has been removed
now I use native commands instead of tput

/lgtm


Fixes the lost alias problem with PullUpProjectExpressions

This PR is a small fix to PullUpProjectExpressions to retain column alias during the "pull up selection" optimization.
For example, before this fix, the query
SELECT *
FROM (
  SELECT i, SUM(i) AS sum
  FROM generate_series(1, 2) AS gs(i)
  GROUP BY i
) t1 JOIN (
  SELECT j, AVG(j) avg
  FROM generate_series(1, 2) AS gs(j)
  GROUP BY j
) t2 ON i = j;

generates the following output:
+-----------+--------------------+-----------+------------------------+
|i          |$aggregate0         |j          |$aggregate0             |
+-----------+--------------------+-----------+------------------------+
|          1|                   1|          1|                       1|
|          2|                   2|          2|                       2|
+-----------+--------------------+-----------+------------------------+

where the specified alias names sum and avg are lost.
After the fix, the output becomes:
+-----------+--------------------+-----------+------------------------+
|i          |sum                 |j          |avg                     |
+-----------+--------------------+-----------+------------------------+
|          1|                   1|          1|                       1|
|          2|                   2|          2|                       2|
+-----------+--------------------+-----------+------------------------+

LGTM. Merging.


Consider changing the order of picking

Change the backend version to be the last thing picked.  This may simplify some of start up logic.
Will also close https://github.com/jw3/example-daffodil-vscode/issues/72

👍
The backend launches but I can't pick a schema file fast enough, so it kills itself.


Predicting the label without inserting the datapoint into model

I was trying to predict the output label without inserting into model(I have already trained the model on my data). It always gives Nan. Is there any specific reason for this kind of behaviour?
I thought it should give the closest existing cluster if not fitted with the data point.

It's a matter of definition I think. I see what you expect but I can also argue that clustering is about arranging already existing data points into groups. Note that in scikit-learn's DBSCAN there's no predict method, only fit and fit_predict.
As a workaround you can maybe insert the new point, get its cluster label, then delete it.


refactor: remove use of Deno.close

It is better practice to use the .close() method than the Deno.close API. This makes the code also work in Deno Deploy conincidentally.

@lucacasonato now after this change, does deno_mongo work on Deno Deploy? did you check it? I want to mention this in docs


Fix compile failure with R17 and maps

Coverage decreased (-0.3%) to 43.155% when pulling 81b02c36a760ef1cecee91914e5d9792bbdd69cf on minimal-R17-support into 2c454fd91de56799a3bb3f2438d07d90ceee4cce on master.

Coverage decreased (-0.3%) to 43.155% when pulling 81b02c36a760ef1cecee91914e5d9792bbdd69cf on minimal-R17-support into 2c454fd91de56799a3bb3f2438d07d90ceee4cce on master.


webiste tutorial link issues

it seems like many of the tutorials at https://turing.ml/v0.22/tutorials/ just point you back to https://turing.ml/. The linear regression one is fine but many of others such as the HMM one go back to https://turing.ml/. I've checked on a different computer with and on the same computer with a different browser to see if it was just a caching issue but it seems to be constant.

Ok I see why, it's because the site URL has changed but the first hit on google is still the old site. Closing this but I think many people will just assume that first link is the go to, especially since it looks fully functional and there aren't obvious signs of it moving, until that site is removed.


Command to expand selection to quotes

By default the expand_region command uses all the heuristics to expand.
Is there a command (that can be bound to a key) that forces the expand region to select quotes' content?
{ "keys": [" ctrl+' "], "command": "expand_region", "args": {"force_to": "quotes (content only)"}}

Such an option will be added soon.

Adding this will make expand region to be used as an alternative to plugins like https://github.com/kek/sublime-expand-selection-to-quotes

You can also use BracketHighlighter to expand to the quotes.


parse SVG files

Identical in functionality to the PhotoShop grd parser, a new class Gradient::SVG has a .parse class method which returns a hash with keys which are the SVG linearGradient ids, and values the corresponding Gradient::Map.  Includes several new fixtures from my personal collection of nasty SVG files.

Thanks for being brave and writing a parser for those nasty SVG files. I really appreciate your contribution, it's great. :+1:


Smart cherub baby Machine turns off instantly

Version of the custom_component
2.3.3
Configuration
Configuration all via UI. Device was found automatically

Describe the bug
Turn on via HA: turns instantly off (brightness is remembered if i turn it on via app afterwards
Debug log

2021-10-08 09:22:36 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(<IP_ADDRESS>): HTTP POST method:(SET) namespace:(Appliance.Control.Light)
2021-10-08 09:22:36 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [2782113672] Sending {"id": 52, "type": "result", "success": true, "result": {"context": {"id": "b648b8ebac9747b213f217dbb95047c1", "parent_id": null, "user_id": "84b7674c7b4944b7be01194b0011833e"}}}
2021-10-08 09:22:36 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(<IP_ADDRESS>): HTTP Response ({"header":{"messageId":"005aabbb339548b9bc0d0ee664032c99","namespace":"Appliance.Control.ToggleX","method":"SETACK","payloadVersion":1,"from":"/appliance/2103033228816690844148e1e94fa7a6/publish","timestamp":1633677756,"timestampMs":972,"sign":"2c448f3c5eb761acc14cc62803eedf4a"},"payload":{}}
)

2021-10-08 09:22:36 DEBUG (MainThread) [custom_components.meross_lan] MerossHttpClient(<IP_ADDRESS>): HTTP Response ({"header":{"messageId":"005aabbb339548b9bc0d0ee664032c99","namespace":"Appliance.Control.Light","method":"SETACK","payloadVersion":1,"from":"/appliance/2103033228816690844148e1e94fa7a6/publish","timestamp":1633677756,"timestampMs":286,"sign":"2c448f3c5eb761acc14cc62803eedf4a"},"payload":{}}
)

Hello @boehser-enkel,
the 'smart cherub' is a device I'm really getting to know right now (I've just discovered after your post)
meross_lan is probably trying to use it as a 'light' device (since it exposes that feature through the standard meross protocol) but there are probably some tweaks/additions that must be set in place in order to use it correctly.
If you're up for some contributions in order to help me try implement the correct behaviours I would need a good 'trace' to start with:
could you enable the tracing feature of the component (via the integration configuration UI) while experiencing that behaviour?
After enabling, try to use it and replicate the issue and then post/upload the content of the relevant file saved by tracing under 'meross_lan/traces'
More info here on the tracing feature

No its the same faulty behaviour when i change brightness/color only

Is there a way to control the sounds from this device with this addon?

Hello @rjmcfadd ,
Not at the moment. The smart cherub was really a surprise to me so I've never had a chance to figure out the device. I was about to buy one in order to test and implement a complete support but it disappeared from Amazon and I haven't check it again.
I'll soon check again if I can find a 'reasonable' seller around.
I'm also thinking about 'mocking' some code to be able to select and start playing a song but without a proper device to test that will probably fail. I could use some hints from the logs posted here in order to try 'guess' the protocol.
We'll see. At the moment I'm trying to fix and refine some pending issues in the code in order to improve meross_lan overall reliability but there is no big feature update incoming

Hi @krahabb, thanks for the reply. I enabled debug tracing and found this when I play sounds, I'm not sure if this will help.
2021/11/05 - 10:53:59	http	GET	Appliance.Control.Mp3	{"mp3": {}} 2021/11/05 - 10:53:59	http	GETACK	Appliance.Control.Mp3	{"mp3": {"channel": 0, "lmTime":<PHONE_NUMBER>, "song": 9, "mute": 1, "volume": 16}}
If you have time to work on this and need someone to help test/debug, I could help with that. Thanks!

I can confirm that the light turns on/off as expected now.
@krahabb did you get anywhere with the sounds? If not i may take a look at it. I started to look into implementing this a while back on the Cloud Integration, but i'd much rather do it local.

I can confirm that the light turns on/off as expected now.

I can't confirm that

Quick update, I'm actually working more closely on this device. Even if I don't have one I should be able to develop a reasonable interface for the sounds. Btw, what is the actual behaviour on the light feature? Does it work on the latest release (2.5.4) ?

That would be awesome! The light part of it works perfectly for me right now. Thanks!

Quick update,
I'm actually working more closely on this device. Even if I don't have one I should be able to develop a reasonable interface for the sounds.
Btw, what is the actual behaviour on the light feature? Does it work on the latest release (2.5.4) ?

No change for me

After the latest update everything works finde. Media Playback can Start. But how do I choose a specific sound effect?

I'm releasing today the 'final' version which should allow you to use it as a media player and choose songs..as usual I've just tested it on an emulated software device so I'm not sure it'll work but I'm pretty confident it will

Thank you that’s great

It's working! Thank you for getting this to work!
How do you change to different sounds? I can only get it to play 1 of the sounds and don't see any way to pick which sound plays.

In my testing, when the media_player is 'playing', you should see the canonical 'track next/prev' buttons on the player in order to switch song.
It's a bit annoying you have to play before being able to change the track but the media_player entity is under 'heavy lifting' in HA so I guess things are going to change soon

Ok, thank you. I don't know how I missed that!


Manage activity

Allow user to manage their content activity manually.
Editing isn't required, but deleting and adding should be added (timestamp for activity should be modifiable)

I was going to dip my toes in here.
Hovering on the date adds an underline and changes cursor type, click brings up a calendar widget to edit the timestamp
+
Hovering anywhere in a row adds a red X button at the end of the row to remove it entirely

Hi @stephaje, sounds good!
I do think, it might be easier if we opened a modal when the user clicks on an activity, then the modal can have all the things required for editing and a button to delete.
I think that would work better on mobile too.
What do you think?

That's a good point about mobile. It's not a platform I've had to consider with my past work. I'll give that a go over the weekend.


Add JWT authenticator

Purpose
This module will add JWT authenticator  and http jwt authentication handler.

@isharak  : There are test failures in this PR. Can you please check?

Remove the logs and took that to the handler level which will be replaced with interceptor so we can propagate that to client


VOTE: add sasha-tkachev to owners

Signed-off-by: Alexander Tkachev<EMAIL_ADDRESS>

LGTM
will open it up for all SDK maintainers to vote on this week's call.
Thanks @sasha-tkachev and @lionelvillard

LGTM

LGTM

Vote passed. Merging.
thanks @sasha-tkachev @lionelvillard


Rotate screen with alt gr+arrow keys on non-intel devices

Description of the new feature / enhancement
On intel based devices you can change screen orientation by using ctrl+alt+arrow keys or alt gr+arrow keys. This feature is not available to amd based systems.
It would be nice to have it be available to all systems by including it in powertoys. (It doesn't need to have the same shortcut)
You can change the orientation in settings and there are programs that do it, but they don't have the shortcut.
Scenario when this would be used?
When you want to quickly turn your screen orientation without going into settings.
Supporting information
No response

Currently i use this autohotkey script to do it, https://github.com/DraakjeYoblama/rotatescreen, but it would be great if it was included


[WIP] Update build system to latest cookiecutter standard

Our build system has started falling behind best practices, and I suspect that some of our current build woes can be resolved by updating to the newest cookiecutter.
Closes #237

Codecov Report

Merging #422 into master will increase coverage by 0.98%.
The diff coverage is 92.3%.

@@            Coverage Diff             @@
##           master     #422      +/-   ##
==========================================
+ Coverage   78.23%   79.21%   +0.98%
==========================================
  Files          19       18       -1
  Lines        5503     5505       +2
==========================================
+ Hits         4305     4361      +56
+ Misses       1198     1144      -54

Impacted Files
Coverage Δ

openforcefield/typing/chemistry/environment.py
66.18% <92.3%> (+2.6%)
:arrow_up:

openforcefield/_version.py

openforcefield/utils/toolkits.py
87.52% <0%> (+0.31%)
:arrow_up:

...enforcefield/typing/engines/smirnoff/forcefield.py
80.28% <0%> (+3.76%)
:arrow_up:

openforcefield/utils/structure.py
51.22% <0%> (+8.42%)
: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 0e8bfd5...96ff6cf. Read the comment docs.


Create stackUsingLinkedList.c

Solved implementation of stack using Linked List. #2

Thank you.

Thank you.

Welcome!


Spatial navigation in Vivaldi, suggestion for alternative in VivaldiHooks?

Hey!
The spatial navigation in Vivaldi is pretty good, and one of the main reasons I use it. There was however a time when it was broken and I had to look for alternatives. I looked at Vimium but found it too complex. There's Crossfire but it's kind of lacking. Then I found this:
https://chrome.google.com/webstore/detail/spatial-navigation/gogippjaikoijhcdcioeajgpmlmchkba
It was such a major improvement over the standard navigation I've just kept using it. It has a great feature of Vimium-like link shortcuts for single-key navigation. I've made some minor changes to change keys to use WASD and F for "Following" links:
https://pastebin.com/igYwrvWC
However, it was last updated in 2015, and looks abandoned by the dev. I'm afraid it will some day just stop working, and I've been looking at the code to try to make some sense of it. But to be honest, my JS skills are not up to par, and the code is really a mess. Comments are in Japanese, it uses some library called "Lazychain" which seems overly complex, and lots of quirks like "LIBRALY" which I assume is just a misspelling of Library 😄
So I was thinking, maybe this would be a good addition to the hooks? It would need to be cleaned up of course, maybe even 90% of the code is redundant for all I know. I thought if you like fiddling with Javascript, maybe you can make sense of it? Maybe even create your own extension from it, since I don't think the original dev would care at all.
There's a repo, but there's no JS or anything I recognise from the actual extension. Is it C#?
https://github.com/falsandtru/spatial-navigation
The extension is just a single (but very large) JS file, best is probably to just install it from the store and look at the code in Extensions\gogippjaikoijhcdcioeajgpmlmchkba\0.4.7_1\dist\raw. Or look at the pastebin above, which is the same code a bit cleaned up by me.
This is only if it sounds like something you'd find interesting or would like to improve upon or make your own. It would be a great relief for me also to know the code is in the hands of someone who knows their stuff :)

here's a repo, but there's no JS

There are .ts files in "src" folder, so this is TypeScript.
js file and extension distribution may be built by using gruntjs.
I don't think I'll implement something similar in the nearest future.

Thanks for the reply. And no worries - I absolutely understand :)
Did you have a look at the source in the pastebin, did you make any sense of it at all? I'll try to get it cleaned up but a few pointers would help, like if the whole Lazychain bit is even used?

Isn't it better to modify original source code? I've managed to build it
npm install -g grunt-cli && npm install && npm install grunt --save-dev && npm audit fix --force && grunt dist --force

I don't think unused libraries would be there.

Yes, I managed to do that to, after a bit of fiddling with Node. I'm not a JS developer and most of that build stuff is alien to me. I didn't even know you needed to "build" Javascript... new times I guess, new times :)
It does pull in the Lazychain stuff as a module and I have no idea how to dig in these "grunt" files for how to remove it, it would probably break without it anyway. It would be a lot of work I guess, so I'll leave it at that. It works for now at least :)
Thanks for your input though!


chore: update GEDI L4B V2.1

Updates GEDI L4B to version 2.1
Swap titilers

Ah, I should've updated the text to match 🤦🏼♂


Inconsistency with plurals in generated graphQL queries

Describe the bug
minor issue where if for whatever reason you want to add an 's' to the end of a type name the generated graphql queries are not following the same behaviour for plurals.
e.g.
type Books @model {
   id: ID!
   desc: String
}

generates
type Query {
syncBooks()
getBooks()
listBookss()
}
Expected Behaviour
I think the Android Datastore SDK expects syncBookss same as listBookss
Amplify CLI Version
amplify 4.18.1
Desktop (please complete the following information):

OS: Mac
Node Version. v12.14.1

Thanks for reporting this. This issue was introduced in our older code where pluralization was done by appending s end the end of the model. The new sync resolvers does the pluralization correctly, but changing it for list query would break existing APIs. I am adding this to our backlog so we can do this without breaking the existing APIs.
For DataStore we do expose an additional parameter called pluralName which should be used for sync queries
https://github.com/aws-amplify/amplify-cli/blob/4e92402e0b0fae30501972f3ad16203fc19ba287/packages/amplify-codegen-appsync-model-plugin/src/__tests__/visitors/__snapshots__/appsync-java-visitor.test.ts.snap#L23

Closing as resolved. v2 of the GraphQL transformer uses improved pluralization by default, and v1 has an improvepluralization feature flag.


Transform methods look_to and look_at are confusing

How can Bevy's documentation be improved?
What's the difference between "looking at smth" and "looking to smth"?
Difficult to tell… Yet Transform has two distinct methods on Transform called look_to and look_at. One considers the argument a relative position to look toward (a direction), the other considers the argument as an absolute position to look toward (a position).
Code review during #6692 said that look_to could lead to confusion.
Solution
I thought about this a bit, and there isn't a perfect solution.
However, I suggest replacing look_to by look_in. Why? Because it's grammatically incorrect to say "look in enemy", but it's grammatically correct to say "look in direction".

look_towards may be clearer and more grammatical.


Serialization rework

This attempts to simultanously merge ISerializableModel with IModel and make it possible to provide own implementations of serialization. Old byte[] based serialization has been renamed to BytePatch serialization.
Few remarks and remaining issues:

The BytePatchSerializer and company are currently WIP - it makes sense to point out obvious design flaws, but I'm going to optimise/refactor it soon enough anyway.
There's the problem of private fields access when adding serialization strategy. Ideally, we'd be able to write specific model serialization strategy independently from the file itself (so we can have a few and install them at will). Unfortunately, that will restrict the access to the private fields. I was thinking of some way to abuse partial nested classes with static constructor, but then we have no access to the actual serializer that we want to initialize. We may need to add a separate generator for that. Alternatively, maybe we can redesign the Model<TModel> class, so that it's possible to break into it's properties to Set them, instead of just Getting them. Either way, I decided to not solve it right now.

What is missing here compared to the original MVRP is the ability to serialize/deserialize models by pieces, like in the networked environment.

I mean, with moving the Patch related methods to extensions, it kinda gets there - but I wasn't planning on adding specific features for network, it's rather project specific, don't you think so? I'd rather add more default serializers and automated ISerializedProperty generation.


The dataset for comparing with Y-net

Could you please provide the dataset for comparing with Y-net? Thank you.

Sorry this took so long. I haven't been actively maintaining this repo. I have uploaded the data.


init an Unboxable struct with additional parameters

I have a JSON response with nested arrays like this:
{
  "status": "ok",
  "projects": [
    {
      "id": "179",
      "name": "Business Development at Firm XY",
      "startDate": "2016-01-01",
      "endDate": "2016-12-31",
      "phases": [
        {
          "id": "1231",
          "name": "Client Facing",
          "startDate": "2016-01-01",
          "endDate": "2016-12-31",
          "chargeable": "0",
          "internal": "0",
          "activities": [
            {
              "id": "209",
              "name": "Meetings",
              "remarkRequired": "0"
            },
            {
              "id": "252",
              "name": "Calls",
              "remarkRequired": "0"
            }
          ]
        },
        {
          "id": "1311",
          "name": "Admin / Orga / Internal",
          "startDate": "2016-01-01",
          "endDate": "2016-12-31",
          "chargeable": "0",
          "internal": "1",
          "activities": [
            {
              "id": "55",
              "name": "sonstige Aktivitäten",
              "remarkRequired": "0"
            },
            {
              "id": "209",
              "name": "Meetings",
              "remarkRequired": "0"
            },
            {
              "id": "247",
              "name": "Client Group Meeting",
              "remarkRequired": "0"
            }
          ]
        }
      ]
    },
    {
      "id": "188",
      "name": "Business Development at Firm YZ",
      "startDate": "2016-01-01",
      "endDate": "2016-12-31",
      "phases": [
        {
          "id": "1248",
          "name": "Client Facing",
          "startDate": "2016-01-01",
          "endDate": "2016-12-31",
          "chargeable": "0",
          "internal": "0",
          "activities": [
            {
              "id": "209",
              "name": "Meetings",
              "remarkRequired": "0"
            },
            {
              "id": "252",
              "name": "Calls",
              "remarkRequired": "0"
            }
          ]
        },
        {
          "id": "1314",
          "name": "Admin / Orga / Internal",
          "startDate": "2016-01-01",
          "endDate": "2016-12-31",
          "chargeable": "0",
          "internal": "1",
          "activities": [
            {
              "id": "55",
              "name": "sonstige Aktivitäten",
              "remarkRequired": "0"
            },
            {
              "id": "209",
              "name": "Meetings",
              "remarkRequired": "0"
            },
            {
              "id": "247",
              "name": "Client Group Meeting",
              "remarkRequired": "0"
            }
          ]
        }
      ]
    }
  ]
}

Now I already unboxed them successfully by creating 3 structs named Project, Phase and Activity, where every Project includes an array of [Phase] and Phase includes an array of [Activity]. What I want is only activities that include the information about their parent Phase and its parent Project, so I can store only an array of [Activity]. I can already achieve that by unboxing them separately and looping over the [Project]-Array afterwards creating a new [Activity]-Array, but that seems very inefficient to me. So the idea is to unbox a Project and pass projectID, projectName etc. to the unboxer of the underlying Phases, which in turn passes the Project-Information plus the Phase-Information to the unboxer of the underlying Activities to create struct like this:
struct Activity {

    // MARK: Project
    let projectID: Int
    let projectName: String
    let projectStartDate: Date
    let projectEndDate: Date

    // MARK: Phase
    let phaseID: Int
    let phaseName: String
    let phaseStartDate: Date?
    let phaseEndDate: Date?
    let phaseChargeable: Bool
    let phaseInternally: Bool

    // MARK: Activity
    let activityID: Int
    let activityName: String
    let activityRemarkRequired: Bool

    init(unboxer: Unboxer) {

        // initialize Project and Phase related properties

        self.id = unboxer.unbox(key: "id")
        self.name = unboxer.unbox(key: "name")
        let remarkRequiredInt: Int? = unboxer.unbox(key: "remarkRequired")

        if remarkRequiredInt == nil {
            self.remarkRequired = false
        } else {
            self.remarkRequired = remarkRequiredInt!.toBool()
        }

    }

}

XCode sadly throws an error "Type Activity does not conform to protocol Unboxable" when I add parameters to the init of Phase and Activity. Do you have any ideas how to achieve my goal?

You could use the UnboxableWithContext protocol and pass the project and phase information as context to the Unbox(_:context:) function:
struct ActivityContext {
    // MARK: Project
    let projectID: Int
    let projectName: String
    let projectStartDate: Date
    let projectEndDate: Date

    // MARK: Phase
    let phaseID: Int
    let phaseName: String
    let phaseStartDate: Date?
    let phaseEndDate: Date?
    let phaseChargeable: Bool
    let phaseInternally: Bool
}

extension Activity: UnboxableWithContext {
    init(unboxer: Unboxer, context: ActivityContext) {
        // initialize Project and Phase related properties
        projectID = context.projectID
        // …
    }
}

Instead of the ActivityContext struct you could also use the Project and Phase structs you've already defined.

nice, thanks for the fast answer. didn't know about that ... I can even pass along the Project struct itself to the Phase after initializing/unboxing every property and then give each Phase the Project-informations and pass the Phase itself along to the Activity.


Created find_motifs_iter to iterate over results

Maintained find_motifs for backward compatibility.

Codecov Report

Merging #17 (7b8f15b) into master (c7677cb) will decrease coverage by 0.41%.
The diff coverage is 69.56%.

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
- Coverage   86.63%   86.21%   -0.42%
==========================================
  Files           4        4
  Lines         419      428       +9
==========================================
+ Hits          363      369       +6
- Misses         56       59       +3

Impacted Files
Coverage Δ

grandiso/__init__.py
84.92% <69.56%> (-1.41%)
:arrow_down:

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 c7677cb...7b8f15b. Read the comment docs.

This is awesome, and it's going to get us a huge performance bump in a few current bottlenecks!
I pushed two commits to the tail end which:

[x] Add type annotations for the generator
[x] Add some basic tests for the find_motifs_iter call
[x] Add this update (with credit! woo) to the changelog

Take a look and make sure I made everything in the spirit of your PR, and then let's merge!


Readonly view is too narrow and not well laid out

The readonly view is shown in various circumstances: When a page is archived, when you don't have edit access, when a workflow request is in progress, and when you're viewing an older version. At the moment, I'd say its borderline unuseable:

Way too much padding
Can't distinguish which fields belong to which blocks (needs a title and stronger visual separator)
Seems to inline complex fields like a GridField readonly view

This is probably made worse by doing this on a page with two empty blocks: A bannerblock and an accordion block (https://github.com/dynamic/silverstripe-elemental-accordion). I'm not sure what to make of the GridField readonly view in there. It's accurate, but pretty noisy.

Do we have designs for this already @silverstripeux? It might be worth just doing some quick fixes before getting into full-scale design implementations.

Can you provide versions of the modules you have installed? This was updated very recently and certainly didn't look like this:
#618

asyncphp/doorman                                  3.0.0                                      Child process management
aws/aws-sdk-php                                   3.90.4                                     AWS SDK for PHP - Use...
composer/ca-bundle                                1.1.4                                      Lets you find a path ...
composer/installers                               v1.6.0                                     A multi-framework Com...
cwp/starter-theme                                 2.0.4                                      CWP Theme
cwp/watea-theme                                   2.1.0                                      CWP Watea theme
dnadesign/silverstripe-elemental                  dev-pulls/4/630-readonly a255676           Elemental pagetype an...
dnadesign/silverstripe-elemental-userforms        3.0.0                                      Adds a new element fo...
doctrine/cache                                    v1.8.0                                     Caching library offer...
doctrine/instantiator                             1.1.0                                      A small, lightweight ...
dynamic/flexslider                                4.0.0-beta3                                Display a FlexSlider ...
dynamic/silverstripe-elemental-accordion          2.0.1                                      Display content in co...
dynamic/silverstripe-elemental-baseobject         2.0.1                                      A simple base DataObj...
dynamic/silverstripe-elemental-blog               dev-pulls/remove-recipe-constraint c744a12 Show recent blog post...
dynamic/silverstripe-elemental-countdown          2.0.2                                      Display a countdown t...
dynamic/silverstripe-elemental-customer-service   2.0.2                                      Additional customer s...
dynamic/silverstripe-elemental-embedded-code      2.0.1                                      Embed code like iFram...
dynamic/silverstripe-elemental-features           2.0.2                                      A block that displays...
dynamic/silverstripe-elemental-filelist           2.0.0                                      A multi file block fo...
dynamic/silverstripe-elemental-flexslider         2.0.1                                      Flexslider slideshow ...
dynamic/silverstripe-elemental-gallery            2.0.1                                      A block to display a ...
dynamic/silverstripe-elemental-image              2.0.0                                      A block to add a sing...
dynamic/silverstripe-elemental-oembed             dev-pulls/block-type-name 66d2492          A block to embed medi...
dynamic/silverstripe-elemental-promos             2.0.1                                      A block to display a ...
dynamic/silverstripe-elemental-section-navigation 2.0.1                                      A block to display a ...
dynamic/silverstripe-geocoder                     dev-master 234ec4c                         SilverStripe wrapper ...
egeloen/http-adapter                              0.8.0                                      Issue HTTP request fo...
embed/embed                                       v3.3.9                                     PHP library to retrie...
giggsey/libphonenumber-for-php                    8.10.7                                     PHP Port of Google's ...
giggsey/locale                                    1.6                                        Locale functions requ...
gorriecoe/silverstripe-link                       dev-pulls/sortable-has-many 250c4de        Adds a Link Object th...
gorriecoe/silverstripe-linkfield                  dev-master 2e9b793                         Adds a Linkfield for ...
graze/monolog-extensions                          2.0.4                                      Monolog extensions fo...
guzzlehttp/guzzle                                 6.3.3                                      Guzzle is a PHP HTTP ...
guzzlehttp/promises                               v1.3.1                                     Guzzle promises library
guzzlehttp/psr7                                   1.5.2                                      PSR-7 message impleme...
hubertusanton/silverstripe-seo                    dev-master b5632df                         SEO module for Silver...
igorw/get-in                                      v1.0.3                                     Functions for for has...
intervention/image                                2.4.2                                      Image handling and ma...
jdorn/sql-formatter                               dev-master 7ef9b85                         a PHP SQL highlightin...
jeremeamia/SuperClosure                           2.4.0                                      Serialize Closure obj...
jonom/silverstripe-betternavigator                4.1.1                                      Front-end utility men...
kinglozzer/metatitle                              2.0.4                                      Re-adds the 'MetaTitl...
league/csv                                        8.2.3                                      Csv data manipulation...
league/flysystem                                  1.0.50                                     Filesystem abstractio...
lekoala/silverstripe-debugbar                     dev-master e71c5fd                         DebugBar for SilverSt...
littlegiant/silverstripe-seo-editor               2.1.0                                      SEO Editor Administra...
m1/env                                            2.1.2                                      Env is a lightweight ...
marcj/topsort                                     1.1.0                                      High-Performance TopS...
maximebf/debugbar                                 v1.15.0                                    Debug bar in the brow...
mindscape/raygun4php                              v1.8.3                                     Raygun.io client for ...
monolog/monolog                                   1.24.0                                     Sends your logs to fi...
mtdowling/cron-expression                         v1.2.1                                     CRON for PHP: Calcula...
mtdowling/jmespath.php                            2.4.0                                      Declaratively specify...
myclabs/deep-copy                                 1.8.1                                      Create deep copies (c...
nikic/php-parser                                  v4.2.1                                     A PHP parser written ...
paragonie/random_compat                           v2.0.18                                    PHP 5.x polyfill for ...
phpdocumentor/reflection-common                   1.0.1                                      Common reflection cla...
phpdocumentor/reflection-docblock                 4.3.0                                      With this component, ...
phpdocumentor/type-resolver                       0.4.0
phpspec/prophecy                                  1.8.0                                      Highly opinionated mo...
phpunit/php-code-coverage                         4.0.8                                      Library that provides...
phpunit/php-file-iterator                         1.4.5                                      FilterIterator implem...
phpunit/php-text-template                         1.2.1                                      Simple template engine.
phpunit/php-timer                                 1.0.9                                      Utility class for timing
phpunit/php-token-stream                          2.0.2                                      Wrapper around PHP's ...
phpunit/phpunit                                   5.7.27                                     The PHP Unit Testing ...
phpunit/phpunit-mock-objects                      3.4.4                                      Mock Object library f...
psr/cache                                         1.0.1                                      Common interface for ...
psr/container                                     1.0.0                                      Common Container Inte...
psr/http-message                                  1.0.1                                      Common interface for ...
psr/log                                           1.1.0                                      Common interface for ...
psr/simple-cache                                  1.0.1                                      Common interfaces for...
ralouphie/getallheaders                           2.0.5                                      A polyfill for getall...
sebastian/code-unit-reverse-lookup                1.0.1                                      Looks up which functi...
sebastian/comparator                              1.2.4                                      Provides the function...
sebastian/diff                                    1.4.3                                      Diff implementation
sebastian/environment                             2.0.0                                      Provides functionalit...
sebastian/exporter                                2.0.0                                      Provides the function...
sebastian/global-state                            1.1.1                                      Snapshotting of globa...
sebastian/object-enumerator                       2.0.1                                      Traverses array struc...
sebastian/recursion-context                       2.0.0                                      Provides functionalit...
sebastian/resource-operations                     1.0.0                                      Provides a list of PH...
sebastian/version                                 2.0.1                                      Library that helps wi...
sheadawson/silverstripe-dependentdropdownfield    2.0.0                                      A silverstripe dropdo...
sheadawson/silverstripe-linkable                  2.0.0                                      A couple of handy for...
silvershop/silverstripe-hasonefield               2.1.1                                      Edit a has_one relati...
silverstripe/admin                                1.3.x-dev d1d0a73                          SilverStripe admin in...
silverstripe/asset-admin                          1.3.x-dev 4e05efe                          Asset management for ...
silverstripe/assets                               1.3.x-dev 8590e1a                          SilverStripe Assets c...
silverstripe/blog                                 3.2.4                                      A fresh take on blogg...
silverstripe/campaign-admin                       1.3.x-dev adba1fa                          SilverStripe campaign...
silverstripe/cms                                  4.3.x-dev 543307a                          The SilverStripe Cont...
silverstripe/config                               1.0.x-dev ab03d6d                          SilverStripe configur...
silverstripe/crontask                             2.1.2                                      Module for running ta...
silverstripe/dynamodb                             4.0.1                                      SilverStripe DynamoDB...
silverstripe/elemental-bannerblock                dev-pulls/21-fix-readonly f5a4a71          A banner block for th...
silverstripe/elemental-fileblock                  2.0.0                                      A file block for the ...
silverstripe/environmentcheck                     2.0.0                                      Provides an API for b...
silverstripe/errorpage                            1.3.x-dev a4653b0                          ErrorPage component f...
silverstripe/framework                            4.3.x-dev a8605b0                          The SilverStripe fram...
silverstripe/graphql                              3.0.x-dev 4eb9267                          GraphQL server for Si...
silverstripe/graphql-devtools                     dev-pulls/available-in-non-dev 31fb6ef     Tools to help develop...
silverstripe/lumberjack                           2.0.1                                      A module to make mana...
silverstripe/raygun                               2.2.0                                      RayGun.io integration...
silverstripe/recipe-cms                           4.3.x-dev 66b715c                          SilverStripe recipe f...
silverstripe/recipe-core                          4.3.x-dev 825cc1a                          SilverStripe framewor...
silverstripe/recipe-plugin                        1.3.0                                      Helper plugin to inst...
silverstripe/reports                              4.3.x-dev c797d12                          Reports module for Si...
silverstripe/segment-field                        2.2.2                                      A reusable approach t...
silverstripe/siteconfig                           4.3.x-dev fa24765                          Site wide settings ad...
silverstripe/tagfield                             2.2.3                                      Tag field for SilverS...
silverstripe/userforms                            5.3.1                                      UserForms enables CMS...
silverstripe/vendor-plugin                        1.4.0                                      Allows vendor modules...
silverstripe/versioned                            1.3.x-dev 4ff6126                          SilverStripe Versione...
silverstripe/versioned-admin                      1.1.x-dev 747c508                          SilverStripe versione...
sminnee/silverstripe-apikey                       dev-pulls/bump-graphql-dep b3bdffa         API Key management fo...
sminnee/tagmanager                                dev-bugfix/inserter-regex dbaf3c6          SilverStripe's server...
swiftmailer/swiftmailer                           v5.4.12                                    Swiftmailer, free fea...
symbiote/silverstripe-advancedworkflow            5.1.0                                      Adds configurable wor...
symbiote/silverstripe-gridfieldextensions         3.2.1                                      A collection of usefu...
symbiote/silverstripe-queuedjobs                  4.3.2                                      A framework for defin...
symfony/cache                                     v3.4.23                                    Symfony Cache compone...
symfony/config                                    v3.4.23                                    Symfony Config Component
symfony/filesystem                                v4.2.4                                     Symfony Filesystem Co...
symfony/finder                                    v3.4.23                                    Symfony Finder Component
symfony/polyfill-apcu                             v1.10.0                                    Symfony polyfill back...
symfony/polyfill-ctype                            v1.10.0                                    Symfony polyfill for ...
symfony/polyfill-mbstring                         v1.10.0                                    Symfony polyfill for ...
symfony/polyfill-php56                            v1.10.0                                    Symfony polyfill back...
symfony/polyfill-php72                            v1.10.0                                    Symfony polyfill back...
symfony/polyfill-util                             v1.10.0                                    Symfony utilities for...
symfony/translation                               v2.8.49                                    Symfony Translation C...
symfony/var-dumper                                v4.2.4                                     Symfony mechanism for...
symfony/yaml                                      v3.4.23                                    Symfony Yaml Component
thewebmen/silverstripe-menustructure              1.0.9                                      Silverstripe module t...
tractorcow/classproxy                             0.1.2
tractorcow/silverstripe-proxy-db                  0.1.0
unclecheese/display-logic                         2.0.2                                      Allows assignment of ...
webmozart/assert                                  1.4.0                                      Assertions to validat...
webonyx/graphql-php                               v0.8.0                                     A PHP port of GraphQL...
willdurand/geocoder                               v3.3.0                                     The almost missing Ge...
zendframework/zend-diactoros                      1.8.6                                      PSR HTTP Message impl...

We provided design as part of history view for blocks (virtually the same). https://invis.io/N5MVKR392DS#/258945845_Blocks1_-_Page_History
The blocks in read-only mode would look the same as they do normally but the fields would be read-only. The only part which would be dependant on the situation would be whether the actions available in the options dropdown (in most cases this would not be required). In history we also don't have the block expandable so they just remain open.

Those designs look more like what I was expecting :D Note that dnadesign/silverstripe-elemental: dev-pulls/4/630-readonly a255676 is forked straight off the 4.0 tag (see https://github.com/open-sausages/silverstripe-elemental/tree/pulls/4/630-readonly)

Alright, narrowed this down a bit: This is related to a blocks page with is currently awaiting approval in silverstripe/advancedworkflow, when you're viewing as a role without approver rights (which makes the record readonly when you keep the default of "editing not allowed in this stage")


Add a CONTRIBUTING.md

Description
Create Contributors Guideline to help new Contributors get started with this Project.
Additional Details

Add a CONTRIBUTING.md to allow new users to get started with knowing how to contribute.
Add Screenshots wherever possible.
Add the basic information about creating Issues, Pull Requests and Branching.
Mention tutorials related to Git and Github to help them better understand.

You can use the content on the Notion Workspace as a reference for the Tutorial Links.

@HarshCasper I would like to work on it. Could you please assign it to me?

Hi! I am new to Open Source would love to work in it .Can you please assign this to me?

Hi @MahijithMenon
There is an open PR here: https://github.com/HarshCasper/good-first-issues/pull/12
You can partially base your PR on this work. Let me know if there is anything I can help with.

Hello Harsh,Would you please tell me what I have to do?
Can we connect somewhere to talk about it in detail?
On Thu, 30 Sep 2021, 23:00 Harsh Mishra, @.***> wrote:

Hi @MahijithMenon https://github.com/MahijithMenon
There is an open PR here: #12
https://github.com/HarshCasper/good-first-issues/pull/12
You can partially base your PR on this work. Let me know if there is
anything I can help with.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HarshCasper/good-first-issues/issues/3#issuecomment-931522384,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUJXK2APKXYEJZTAZDUSPM3UESNDXANCNFSM472NPXPA
.

I can add this file, can you please assign this to me?
One I just want to know is I just need to add info about how to get started with knowing how to contribute?! and basic info about pull and branches including links of tutorial?

Hi @HarshCasper I would like to work on this issue. Could you please assign me? Thank You!


Add German machine translation

Signed-off-by: Roman Tsisyk<EMAIL_ADDRESS>

@Markus40 I applied all you changes almost blindly. Please feel free to open files in your favorite file and edit directly. It will be more productive.

A general question would be if the polite form should be used or a more direct one.
https://liveworkgermany.com/the-du-and-sie-conundrum/
Difference would e.g. be:
Formal: "Laden Sie Karten herunter"
Familiar: "Lade Karten herunter"
Right now most parts are in the formal form.
However I would prefer the familiar one, as the users of OM are not customers.
They are way more on one level with the creators of the app.
But that's just my opinion :)

Right now most parts are in the formal form.
However I would prefer the familiar one, as the users of OM are not customers.
They are way more on one level with the creators of the app.

I agree. Let's make it very friendly, but not too familiär, vertraulich.

A general question would be if the polite form should be used or a more direct one. https://liveworkgermany.com/the-du-and-sie-conundrum/
Difference would e.g. be: Formal: "Laden Sie Karten herunter" Familiar: "Lade Karten herunter"
Right now most parts are in the formal form. However I would prefer the familiar one, as the users of OM are not customers. They are way more on one level with the creators of the app.
But that's just my opinion :)

Agree.

I can do the change to the informal language later today.
If someone else has done it until then, I can read over it :+1:

Right now most parts are in the formal form.
However I would prefer the familiar one, as the users of OM are not customers.
They are way more on one level with the creators of the app.

I also agree.


pull request for e2e test at 01/13/2017 08:45:12

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


gribscan with spherical harmonics data

Hi,
I am trying to read large remote GRIB file containing spherical harmonics data using gribscan:
import argparse

import gribscan
import uuid
from pathlib import Path

upload_path = Path("hplp/test_hplp_ml_sh.grib")

index_path = Path(".") / f"{upload_path.stem}.{uuid.uuid4()}.index"
gribscan.write_index(str(upload_path), index_path)
class MyIFSMagician(gribscan.magician.IFSMagician):
    def variable_hook(self, key, info):
        var = super().variable_hook(key, info)
        var["attrs"] = dict(**var["attrs"], **info.get("extra", dict()))

        return var

magician = MyIFSMagician()
ref = gribscan.grib_magic([index_path], magician)

import json

ref = json.loads(json.dumps(ref).replace(
    json.dumps(str(upload_path)),
    json.dumps("https://object-store.os-api.cci1.ecmwf.int/esiwacebucket/hplp/test_hplp_ml_sh.grib"),
))

ref = next(iter(ref.values()))
json_object = json.dumps(ref, indent=4)

with open(f"{upload_path}.ref", "w") as outfile:
    outfile.write(json_object)

This results in the following error, as gribscan appears to have no support for "sh" grids:
Traceback (most recent call last):
  File "/Users/ecm5945/Documents/ECMWF/Code/data_compression/compression-lab-notebooks/tmp.py", line 22, in <module>
    ref = gribscan.grib_magic([index_path], magician)
  File "/Users/ecm5945/Documents/ECMWF/Code/data_compression/venv/lib/python3.10/site-packages/gribscan/gribscan.py", line 630, in grib_magic
    global_attrs, coords, varinfo = inspect_grib_indices(messages, magician)
  File "/Users/ecm5945/Documents/ECMWF/Code/data_compression/venv/lib/python3.10/site-packages/gribscan/gribscan.py", line 464, in inspect_grib_indices
    **magician.extra_coords(varinfo),
  File "/Users/ecm5945/Documents/ECMWF/Code/data_compression/venv/lib/python3.10/site-packages/gribscan/magician.py", line 133, in extra_coords
    return varinfo2coords(v0)
  File "/Users/ecm5945/Documents/ECMWF/Code/data_compression/venv/lib/python3.10/site-packages/gribscan/gridutils.py", line 102, in varinfo2coords
    grid = grids[varinfo["attrs"]["gridType"]]
KeyError: 'sh'

With reduced_gg data, the above code works perfectly fine.
The sh data is available at: https://object-store.os-api.cci1.ecmwf.int/esiwacebucket/hplp/test_hplp_ml_sh.grib.
Do you have any suggestions on how to create a JSON file for this dataset in order to read it remotely?

In order for gribscan to be able to build datasets with a grid, gribscan needs to know which grid-defining parameters must be kept in the index. As we didn't yet have sh grids, no one looked that up so far. To add data on sh grid, you'd have to add an appropriate class to the gridutils file. Basically you need to list all eccodes keys which you plan to use for computing the grid coordinates (this could also be empty, if you don't want to add coordinates).

Great, thanks a lot for the quick replies! I tried the same, but with params = [] and def compute_coords(cls).
Both options seem to work fine. What is the benefit of having the params?

I'm absolutely no expert on spherical harmonics and just wanted to show how you can use them in theory 😉 If you're not going to do anything with them, you can leave them out.

Thanks! Would you like me to open a PR with the new subclass?

Yes, we'd really appreciate it :)

Please see PR #56


Confire and test against postgres in CI

Main commits:

Remove duplicate DATABASES dict 1bfb4e3
Address posgres-specific contentType bug a61beb5
Use matrix strategy to test against both mysql and postgres cb0c2b0
Use real date in lieu of 0 in queryset default Value 9f39fac

Codecov Report

Merging #242 (f43a656) into develop (ffbf3bf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #242   +/-   ##
========================================
  Coverage    98.07%   98.07%
========================================
  Files           92       92
  Lines         2961     2961
========================================
  Hits          2904     2904
  Misses          57       57

fyi for @rlskoeser: we traced the strange error in the tests to the get_past_profiles() method of the StudentListView, where we're doing a Max() on membership dates that needs a default value in case of null:
https://github.com/Princeton-CDH/cdh-web/blob/f43a656d77bff9559b1de02fe0a9e71f5977fa61/cdhweb/people/views.py#L152-L174
The default was '0', but postgres seemed to require a "real" date (we tried with literal 0 instead of string and it got turned into a string by the ORM and still failed). the current solution is to just pass a really early date, which seems to work for mysql as well. If we don't care about mysql compatibility, we could presumably just remove the default entirely, since the comment indicates that needing a default is specific to mysql.


Crash

Every time I want to run the Latex text code, "This editor has crashed" does appear!

Can you give me more details like a console log or trying to disable other packages to determine the cause?


RTS ticker thread can cause trouble

Recently I found that a testsuite using this package started failing with unshare: invalid argument but I wasn't sure what was going on as command line unshare worked just fine. Comparing both calls I didn't see much difference but then stumbled on clone3 call done by GHC forking a process called ghc_ticker. The use of ticker seems to depend on compile time options and availability of packages during GHC build.
Some more info https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/rts/signals#the-rts-timer-signal
This started manifesting in CI which used latest Ubuntu and on NixOS as well.
The fix is to disable the timer with
ghc-options:       -rtsopts "-with-rtsopts -V0"

From help:
hnix-store-remote-tests:   -V<secs>  Master tick interval in seconds (0 == disable timer).
hnix-store-remote-tests:             This sets the resolution for -C and the heap profile timer -i,
hnix-store-remote-tests:             and is the frequency of time profile samples.
hnix-store-remote-tests:             Default: 0.01 sec.

Should we add this to the comments (or README) that already mention issues with -threaded?
During the debugging I've also extracted the example to separate cabal executable - want a PR? I can also PR a simple testsuite + CI if you want.

Thanks for this report and apologies for the late reply.
I have never run into this problem. Maybe it is caused in the scenario when the ticker thread uses signals? I thought that this only happens on old kernels. I would be happy to add a note to the documentation and the place where -threaded is mentioned is probably the best place. But I would be reluctant to suggest disabling the ticker as the default recommended practice, as this can have undesired consequences.
So a PR would be welcome.

I have never run into this problem. Maybe it is caused in the scenario when the ticker thread uses signals? I thought that this only happens on old kernels.

I think it is the opposite - the signals are fine but less efficient so newer configurations of GHC spawn a separate thread for the ticker. I wish I've had an exact commit where this changed but the test+CI where this started failing wasn't rolling with nixpkgs versions so I would have to bisect a lot and I guess I would arrive at some GHC bump.
It also depends on the build environment/configuration so the some GHCs might exhibit this depending on the distro while the exact same version might not elsewhere.
I'm mostly using this package for testsuites (in hnix-store-remote to trick nix-daemon to think it's running as root and before I've used it in rtnetlink-hs so its testsuite doesn't need to run as root).
Btw if you have a more elaborate example of unshare and then a subprocess using unshare with multiple mappings that would help me a lot improving the test environment for nix-daemon as it spawns more processes that are not happy with just a single mapping.


Notification Manager process running in the background

Even after fixing the issue where the Notification Manager would run on a stand alone window, the process seems to not be killed once the notification has done its cycle, and as a result, even if you close the application by pressing 'X', there will be a task running in the background.
The solution has already been mentioned in another issue, I believe it was issue 12 or 13, but it has not been included in neither this or the updated version running on a fork that gets frequent updates.

The solution has already been mentioned in another issue, I believe it was issue 12 or 13, but it has not been included in neither this or the updated version running on a fork that gets frequent updates.

take my fork bro https://github.com/platonenkov/notification.wpf


WIP: Port translation alignment endpoints from Flask app

This is being ported from the examples provided at:
https://github.com/scaife-viewer/readhomer/issues/25
and implemented within:
https://github.com/scaife-viewer/readhomer/blob/d9f8b5cc36af2c7fa99f2d703aa3d9a46b99317a/src/homer/api.js#L21

I've pushed, deployed and loaded all alignment data.  Still working out the best way to support a "reference" based query for alignment chunks like was done in https://github.com/scaife-viewer/readhomer/issues/25

Still working out the best way to support a "reference" based query for alignment chunks

I think this is an example of a more general pattern where you want to retrieve As but you want to specify the range of As in terms of some other referencing scheme based on Bs.
Other examples might include, "give me the sentences in John 3.1–3.11" or give me the Beowulf fitts for lines 1000–1500.
I think the basic algorithm is: (1) work out the (first) fitt containing line 1000; (2) work out the (last) fitt containing line 1500; (3) use those two fitts as the "new" range returned. We might want to annotate the results with the fact it was actually lines 1000 to 1500 that were requests (and the two chunking systems aren't perfectly aligned.
Obviously that means we need to index to support (1) and (2).
Anyway, IMO all this applies to translation units containing other referencing schemes too.

@jtauber I agree; my original comment could have been clearer in that I was trying to figure out how to support a reference-based query in GraphQL / graphene-django.
I'd already set up a contains relation and have begun implementing a custom filter in
42cecdc:
Sample query
{
  alignmentChunks(version_Urn: "urn:cts:greekLit:tlg0012.tlg001.perseus-grc2", reference: "1.1-1.6",) {
    edges {
      cursor
      node {
        id
        citation
        items
      }
    }
  }
}

Will still want to work out the "annotation" approach for GraphQL as well.  The Flask-based API had a metadata entry for reference_resolved:
http://readhomer-dev-api.herokuapp.com/urn:cts:greekLit:tlg0012.tlg001.perseus-grc2/alignment/eng/1.1-1.6/

I've updated this branch based on some things we've worked on with KITAB's ATLAS server.
LineReferenceFilterMixin is used to implement a "range" query (rather than relying on a contains relation).

@jtauber I've got this ready for review again.  I know it isn't in the current sprints, so we can revisit, but just wanted to give you an update after we'd discussed in Slack earlier this week.


fix #701 add a HBase sink

This PR includes the minimal functionality, need more specific requirements to optimize this HBaseSink

+1


New Source: Torrentio

This extension seamlessly integrates AniList for comprehensive metadata and utilizes the Torrentio API to gather all torrent links for Anime content.
Supported Debrid Services:

RealDebrid
Premiumize
AllDebrid
DebridLink
Offcloud

Users can effortlessly select their preferred Debrid service in the extension settings and input the corresponding token provided by the chosen Debrid site. Additionally, users have the flexibility to fine-tune Debrid settings based on their preferences, thanks to the customizable options available in the extension settings.
For non-Debrid users, video will not load for user but user can use other Aniyomi fork which support torrent or just use it with debird.

Will this PR get pulled? @jmir1

I will review it next week


Learning Rate and Batch Size

Hi,
thanks for the fantastic work. I am currently trying to train the tiny model from the Imagenet-pretrained weights on the ADE dataset to begin integrating your work into mmsegmentation, as discussed here and here.
However, I am confused about the batch size and learning rate. In the paper, you mention a batch size of 16 and that you use 8 GPUS. However, the config sets samples_per_gpu to 8. Can you kindly tell me what the total batch size used for training should be and the corresponding learning rate?
Best wishes & many thanks,
Fabian

Hi,
the total batch size is 16 for ADE20K dataset.

As @MenghaoGuo said, we train SegNeXt-tiny by 2 GPUs and SegNeXt -large by 4 GPUs. But their learning rate and batch size are the same. Because we don't have so many GPUs.

Thanks for the comments - They were very helpful to me. I will try another training run and report the results.


Powerline prompt section to display last command duration

I've added a powerline prompt section to display the last command duration (if it exceeds a predefined threshold).
I find this to be a useful feature, as I regularly forget to prefix a long running command with time and then wonder how long it took. :smile:
In order for this to work, the newly added cmd-duration plugin needs to be enabled.
bash-it enable plugin cmd-duration

I chose to make this a plugin, because taking the current timestamp could result in an external perl call every time a command is started (unless on BASH 5+, where it's possible to use $EPOCHSECONDS instead).
Then, in order to have the section duration section appear, add it in the powerline prompt (I chose to add it to the right section):
export POWERLINE_RIGHT_PROMPT="duration ${POWERLINE_RIGHT_PROMPT}"

There are two new variables that control the behaviour of this new component:

POWERLINE_DURATION_THEME_PROMPT_COLOR: color to show duration in (default = 124)
POWERLINE_DURATION_THRESHOLD: duration will only be shown if greater than or equal to this threshold (default = 5s)

Here's a screenshot:

Hi, sorry for the long delay (pun intended!) - I was on vacation and I'm slowly catching up with the PRs now...
I've had a look at this, sounds like a nice feature! When I tried it, I ran into an issue, though. It looks like the start time of the command is calculated from the end time of the last command.
Here's what I did - please see the screenshot:

Enabled the new plugin.
Added the duration component to the left prompt segment.
Ran a sleep 4 a couple of times, with different amounts of (my) wait time before running it again.

As you can see (check the time stamp in the right prompt segment), depending on the time between the commands, the output varies greatly. Before the last sleep 4, I waited more than a minute, which resulted in a display of 01m:55s for the sleep 4 execution. That doesn't seem right...

The other thing to note is that if we add this feature, it needs to be documented in the Powerline themes' README files, similar to the other prompt features.

Hi @nwinkler ,
No worry about the delay. I saw there are ~80 PRs on the project, so I was not expecting a reply this year. :smile:
I'll address the issues you mentioned and reopen the PR when everything is ready.


Add intention in middle of pom (and during a break?)

I'd suggest being able to add an intention pretty much at any time:

at beginning of pom - current behavior
during a pom/during a break, following use cases:

missed start of pom, but sill have a fair bit of time to get started on task
no activity/unsuccessful activity in current pom, but want to preset intention for next pom
want to preset intention for coming pom.

I realize that maybe not all of these fit exactly with the current requirements, but at the least I'd think being able to set an intention for the majority of the pom would be useful.

Thanks for opening this @nceder !  The current behavior is definitely not perfectly aligned with the intention.
First, some background. ADHDers lack the ability to process long-term consequences properly. Like, we can do it rationally but it's very difficult to tie them back to immediate motivations, and have those immediate motivations result in exceeding the task-initiation activation threshold in our brains. (I'll have to leave the citations here as an exercise to the reader, they are numerous and very nuanced so this is obviously somewhat of a high-level gloss, and if I said something like "norepinephrine" here it would be more of a metaphor than a scientific description).  So the usual intervention is to break up a big, personally damaging, temporally deferred consequence ("I need to finish implementing this feature to keep the project on schedule so I don't disappoint my colleagues when it fails in a month") to small, harmless, immediate consequences ("I won't get the points for this pomodoro in the next 25 minutes").  So there does have to be some artificial "cost" to "failure" for this app to serve that function. Negative self-talk is bad, but if you don't get at least a little sting out of failing, then there's no satisfaction to success, and no immediate loss-aversion driver to increase those neurotransmitters to get the task started.
So okay: failing to set an intention should be "bad", that's on purpose.  There's some motivation to keep the rest of the pom as "failed", to (A) give some time to regroup and plan for success in the next one, and (B) allow some sitting with the consequences.
This is more art than science but I also think that having the consequence be discrete is helpful. Time blindness means it's hard to reason about continuous values; "well, I've lost 10% of the credit for this pom, that's fine, I'll pick it up in a minute, I'll probably get 89% credit" is a great way to defer picking it up until 0% credit remains.
Separately, having breaks actually be breaks is kind of important; I don't want encouragement to be constantly coming up with the next intention during the break.
All that said, spending an entire 21 minutes wallowing in failure because you missed the intention deadline does feel like a huge waste.
One idea that immediately springs to mind is partial credit. Failing to set an intention is often a symptom of resistance, the antidote to resistance is shorter pomodoros and shorter breaks until some flow sets in.  Maybe if you fail to set an intent in the window, you have the opportunity to set an intention for a 10-minute pom / 2-minute break within the remaining window, then get a fractional win, or at least avoid a loss for that interval? something like that?

(This is kind of what I was saying in #7)

Yeah, I get that, I think. I have had a number of students/friends/mentees over the years with ADHD... and the way you describe it matches my experiences with them.
I have had some students who I think if they missed that initial window would then kill time until the next pom, but get diverted and be likely to miss that one, and so do nothing until the next... etc.  But that's just anecdotal, and not intended to be an argument for anything.
And your arguments against being able to add intentions in breaks or at the end of a previous (failed... or not) pom are pretty much the ones I kind of expected you'd make, but I thought I'd raise the whole spectrum.
But I do think that the option of a shorter pom for partial credit makes a lot of sense.

@nceder I'm running into this issue more and more with tasks that take more than one pom and involve me being away from the computer. I'm starting to think that one compromise—at least for that use-case—would be to track keyboard/mouse idle time and display a secondary progress bar for evaluation & intention setting rather than arbitrary hard-coded thresholds.
The other thing that I've been considering is having some kind of accountability-buddy / web service built in where you can set intentions yourself automatically if you meet the threshold, but you can do them retroactively with buddy sign-off.  Not really sure how that would play out though (particularly as I don't have an accountability buddy myself yet!)

The ability to preregister intentions in the "List Pomodoros" window really helps a lot, though, since at least I can register all my intentions ahead of time.

@nceder it's not hooked up to the UI yet but the new model in #33 I think should address this concern. Intentions will be objects in their own right, and you can get started at any time, there's no threshold where you can't start; you just get notified of lost opportunities for points, so there's still a countdown, but you can jump in and start a streak whenever you like.

I'm closing this because the Nexus model accommodates this use-case although it does it by changing just about everything, so there's no independent task here.  Thanks a bunch for the suggestion @nceder, it really helped inform the second version here!


Proposal/1024/rule engine refactor

Add a PR title
Describe what changed in this PR at a high level.
Issue
Add a link to the issue here.  Consider using
closing keywords
if the this PR isn't for a story (stories will be closed through different means).
Checklist

[ ] I have added tests to cover my changes
[ ] I have added logging where useful (with appropriate log level)
[ ] I have added JavaDocs where required
[ ] I have updated the documentation accordingly

Note: You may remove items that are not applicable

This code is so out of date it's not really worth keeping


Added Nextcloud Upload plugin

Hi! This pull request adds my plugin Nextcloud Upload to the official plugin list.
I'm aware that there's already an official plugin that allows uploading files using WebDAV, but my plugin has two Nextcloud-specific additions that aren't part of the regular WebDAV spec:

The ability to chunk uploads, which is necessary for larger files if Nextcloud is hosted behind Cloudflare (which restricts uploads to a maximum of 100MB)
The ability to apply Nextcloud tags, which allows automatically categorizing items and using Nextcloud's Retention plugin to easily auto-remove older artifacts.

Please let me know if you have any additional questions or if there's anything I forgot or need to change. I searched for documentation on adding plugins to the list, but couldn't seem to find any - so if there's something I overlooked, please let me know! ❤

well one thing would be nice ... if there also could exist arm builds for that plugin ;)


Unusually hard level?

Playing by hand I hit level 15 and encountered a platform that started at natural floor level and then periodically descended. They key for the level was on a raised section of the room to the left of the screenshot.

It felt like there might have been a reversed sign somewhere and the platform was supposed to go up from ground level. Either that or there was a more complicated solution that I didn't immediately see. :)

We've addressed this issue in our internal development version of Obstacle Tower, and the version of the binary released for the contest will contain this fix. As such I am closing this issue for now.


chore: track python dependencies with pip

We're currently hardcoding various pip dependencies in
appveyor-install.bat and travis-install.sh.
This commit moves all the dependencies to a requirements.txt file in
the root of the project, and makes every install script run pip install -r requirements.txt.
See: https://github.com/resin-io/etcher/pull/1401#discussion_r116547053
Signed-off-by: Juan Cruz Viotti<EMAIL_ADDRESS>

Looks like you need to add *.txt to .gitattributes. Haven't managed to work out yet why the Docker builds are failing though - something to do with requirements.txt not being picked up from the right directory? Perhaps it'd work if you changed the Dockerfiles to use RUN pip install -r /etcher/requirements.txt ?

Fixed!

Could we do something similar for the NPM modules e.g. https://github.com/resin-io/etcher/search?q=uglify-es&type=Code&utf8=✓
With an eye towards the upcoming RPM support, maybe there could be one 'npm-requirements.txt' that installs uglify-es into both Docker and the CI services, and then a second 'npm-requirements.txt' that installs etcher-installer-debian and etcher-installer-redhat just into Docker?
Or am I just trying to overcomplicate things? :-S

The requirements.txt node equivalent is the package.json. I suggest to find a way to get them listed there without confusing the shrinkwrap file. Maybe we should try NPM v5?

I dunno - you're obviously much more familiar with NodeJS packaging than I am. It was only a suggestion, so if this isn't possible without making the package.json / npm-shrinkwrap.json more "bodged" than they already are, feel free to ignore this suggestion.


Support for admin_level in GeoJSON property

Hi,
This is my pull request to get admin_level added into the GeoJSON.  I'm planning on adding an option to skip admin_level in the GeoJSON property, but I think we might need a file writer config structure.
I'm planning on submitting additional features at some point that could leverage a config for the files.

I left a debug line in this.  Making a new PR


No slot value in encounter_slots

In encounter_slots.csv there are no values in the slot column for several lines.
Is this an error, or is it intentional for a particular reason?

I happened to ask this question the other day and get an answer from magical, so:
These slots are R/B's Super Rod slots, which don't actually correspond to in-game slots, because they actually have a varying number of slots per location, with an equal chance of each. Thus, in one location there could be two 50% slots for the Super Rod, and in another there could be three 33.33% slots. Because the data structure here doesn't account for slots being able to have varying rarities or for slots to sometimes exist in a location and sometimes not, the slots in the database are "fake", designed simply to be able to accommodate R/B's data with the correct probabilities without having to design the whole data structure around this one edge case.

Thanks for the answer @antialiasis - it makes more sense now :)


feat: add gitness provider

feat: add gitness provider

[ ] This change requires a documentation update
[ ] I have made corresponding changes to the documentation

Related Issue(s)
This PR addresses issue #561
/claim #561

@Rutik7066 the git file tree seems to be messed up again. Please rebase the changes into one commit that is signed so we can properly review.

@Tpuljak I am trying do rebase and signoff but failing to do so.

@Tpuljak  Done

@Tpuljak  I Have made the changes and ameded them to the commit. You can review the changes.

@idagelic Sure I will update the code in 2-3 hours

@idagelic  All changes are applied as requested please review and let me know if anything needs to be changed. I'm just waiting for you to confirm.

@idagelic I updated all the changes. You can review them now.


MAINT: stats: Fix unused imports and a few other issues related to imports.

morestats.py

Remove unused imports of floor and ceil.
Don't shadow the builtin function any; use np.any instead.
Remove duplicated import of _normtest_finish.

mstats_basic.py

Remove unused import of float_factorial.

tests/common_tests.py

Remove unused import of suppress_warnings.

tests/test_continuous_basic.py

Removed unused import of invdistcont.

tests/test_distributions.py

Import distcont and invdistcont directly from
scipy.stats._distr_params instead of from test_continuous_basic.

Thanks @WarrenWeckesser


tests/run.bats(volumes): use :z when SELinux is enabled

When testing volumes as part of checking that "run" is working correctly, use the ":z" flag if we detect SELinux support to avoid false negatives.

Changes LGTM, but papr is having an odd lint issue...
WARNING: deadline exceeded by linter unconvert on cmd/buildah (try increasing --deadline)
make: *** [Makefile:54: validate] Error 2
make: Leaving directory '/root/gopath/src/github.com/projectatomic/buildah'
### EXITED WITH CODE 2 AFTER 1096s

@rh-atomic-bot r+


Use-after-free in TransformInterpreter.cpp

Encountered while trying to integrate into Google's monorepo at ad23611856453012ac644aecc91a42c4df54192e. I think you can't delete ops from a region while walking it
https://github.com/iree-org/iree/blob/ad23611856453012ac644aecc91a42c4df54192e/llvm-external-projects/iree-dialects/lib/Dialect/LinalgTransform/Passes/TransformInterpreter.cpp#L242-L252
Stack trace (slightly trimmed): https://gist.github.com/GMNGeoffrey/01998dc960e38268ebcc3907361b1908

Fixed in #11788, thanks @GMNGeoffrey


Port HEIM landing page to React

@teetone @JosselinSomervilleRoberts Please take a look.

@yifanmai is this deployed somewhere?

I temporarily uploaded the site to https://nlp.stanford.edu/helm/heim-v1.0.0-react/ for your reference. I will remove it later.


[MPLUGIN-443] Detect javadoc link labels with spaces

I am about to puke. Does javadoc really produces these?
This violates https://stackoverflow.com/a/2849800/696632 and https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id

I think there is a misunderstanding, the label will never affect the id/name of an HTML element but only the label, i.e. element value of label (therefore its name :-))


occurrences of existing solmate entries in crontab/root file are not deleted

https://github.com/mmattel/EET-Solmate/blob/9b06b314cc40cdc5add6d6fc7d2f90b383f29789/crond-prepare#L23C1-L23C49
# delete any occurrences of existing solmate entries in teh crontab/root file
sed -i "/\/config\/solmate/d" /etc/crontabs/root

this removes entries with /config/solmate but not /config/shell/solmate
maybe it would be a good idea to look for SCRIPT_DIR instead of this hardcoded path?

Fied mit: https://github.com/mmattel/EET-Solmate/releases/tag/v4.1.0

Info: https://github.com/mmattel/EET-Solmate/discussions


[BUG] pug with BaseTool init

when i try example with this https://docs.swarms.world/en/latest/swarms/tools/build_tool/#integrate-tools-into-agent
i get this error:
Traceback (most recent call last):
  File "/Users/fenyi/codesy/swarm-test/test.py", line 109, in <module>
    agent1 = Agent(
             ^^^^^^
  File "/Users/fenyi/codesy/swarm-test/.venv/lib/python3.12/site-packages/swarms/structs/agent.py", line 407, in __init__
    self.tool_struct = BaseTool(
                       ^^^^^^^^^
  File "/Users/fenyi/codesy/swarm-test/.venv/lib/python3.12/site-packages/pydantic/main.py", line 194, in __init__
    self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for BaseTool
base_models
  Input should be a valid list [type=list_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.8/v/list_type
Sentry is attempting to send 2 pending events

bug from here

actually list_base_models does not have default value,

you can ealisy find this question with this code
`from swarms import Agent
from swarms.prompts.tools import tool_sop_prompt
from swarm_models import OpenAIChat
from swarms_memory import ChromaDB
import subprocess
import os
from swarms.tools.base_tool import BaseTool
def terminal(
code: str,
):
"""
Run code in the terminal.
Args:
    code (str): The code to run in the terminal.

Returns:
    str: The output of the code.
"""
out = subprocess.run(
    code, shell=True, capture_output=True, text=True
).stdout
return str(out)

BaseTool(
tools=[terminal],
base_models=None,
tool_system_prompt=tool_sop_prompt(),
)`

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

submitted pull request to fix this issue


Fix incorrect default value for GCHeapHardLimit

Summary
GCHeapHardLimit default to the greater of 20MB or 75% of the memory limit. See https://devblogs.microsoft.com/dotnet/running-with-server-gc-in-a-small-container-scenario-part-1-hard-limit-for-the-gc-heap/

I was wondering about this when I wrote it. To me it doesn't make sense that the limit is the greater, because what if 20 MB is more than 75% of the memory limit on the container - then GC could use all the memory on the container. @Maoni0 which is correct?

what I said is in the blog is correct. this value is to enforce it so the minimum is not too small. 75% is just a number that we artificially chose when we are not provided with a value so it's not a contract but will be met unless the container's limit is too small in which case we may use up all the memory. for most cases we will be aiming at 75%. note that just because we specified 20mb doesn't mean GC will try to use 20mb. when the memory load is high in the container, GC will do the normal thing which is to be more aggressive at doing full compacting GCs (if GC deems it productive) to keep the heap size down.

Thanks for clarifying @Maoni0 .


the bug of MXEnginePushAsyncND and MXEnginePushSyncND

Hi there,
I found the bug of MXEnginePushAsyncND and MXEnginePushSyncND, whose argument should be an array pointer of NDArrayHandle. The bug was introduced in v1.5.0 release.
I have fixed it in the PR https://github.com/apache/incubator-mxnet/pull/15751
Issue: #15774
master branch: #15751
v1.5.x branch: #15775

Close it since the PRs have been merged : )


Basic auth authenticator

Added a Basic Auth Authenticator plugin for the server.
Added a --basic-auth CLI client option.

@pdelagrave I will take a look this and https://github.com/treasure-data/digdag/pull/1098

Right, that's a basic Basic Auth implemention with only one user supported.

Meant as a quick way to secure the endpoints rather than a production grade solution
Improvement upon having only the JwtAuthenticator option for the user to choose from
Serves as a second example for using the new Authenticator SPI

@pdelagrave  Thanks for your explanation. No problem.
We think #1098 and #1099 are slightly large modification and separate from other PRs.
So We will merge #1098 and #1099 to master after 0.9.38 will be released in next week.
And will release as 0.9.39.
Sorry for our late progress but please wait for a while.


[AVOCADO-269] Add thresholds to DiscoverVariant CLI.

Resolves #269. Adds phred and coverage thresholds to CLI, so that the DiscoverVariants CLI matches the BiallelicGenotyper CLI.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/avocado-prb/216/Build result: FAILUREGitHub pull request #270 of commit c68efc94c15757fcc2ef122fd2551256aa7b6331 automatically merged.[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-staging-worker-02 (ubuntu staging-02 staging) in workspace /home/jenkins/workspace/avocado-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/avocado.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/avocado.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/avocado.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/270/merge^{commit} # timeout=10 > git branch -a -v --no-abbrev --contains 5f44ee72816097482ea3e934cbde45446d194e53 # timeout=10Checking out Revision 5f44ee72816097482ea3e934cbde45446d194e53 (origin/pr/270/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 5f44ee72816097482ea3e934cbde45446d194e53First time build. Skipping changelog.Triggering avocado-prb » 2.3.0,2.11,2.0.0,centosTriggering avocado-prb » 2.3.0,2.10,2.0.0,centosTriggering avocado-prb » 2.6.0,2.11,2.0.0,centosTriggering avocado-prb » 2.6.0,2.10,2.0.0,centosavocado-prb » 2.3.0,2.11,2.0.0,centos completed with result FAILUREavocado-prb » 2.3.0,2.10,2.0.0,centos completed with result FAILUREavocado-prb » 2.6.0,2.11,2.0.0,centos completed with result FAILUREavocado-prb » 2.6.0,2.10,2.0.0,centos completed with result FAILURE
Test FAILed.

Jenkins, retest this please.

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


Cannot switch between pages

I tried running a server locally using the tip of master and I am not able to move between different pages on a board. In this video clicking the page tab and the let right arrows doesn't appear to change anything. I also tried grab the link for navigating to the second page, which has a reference to an element ID and open it in a new tab, but on page load the ID is stripped off the URL and it just shows the first page.
https://user-images.githubusercontent.com/365366/177906542-8992e12a-93f2-4e75-b97f-7118ddfcf7c8.mp4

Did you check the JavaScript console, and the console where the server is running? I imagine there's an error in one of those places that would help debug. (I've never seen this behavior.)


Safely format data when printing

Fixes #531
I'm taking this over from @kpcyrd who started in https://github.com/sirupsen/logrus/pull/573 and will take care of the changes discussed in the initial PR:

Either we should remove the QuoteCharacter option completely or make sure that it is used in a safe way.

I decided that removing the option is not a good solution because probably people depend on it. Therefore, we need to implement proper escaping.

PTAL @sirupsen @kpcyrd
FYI @bonko @denderello

Thoughts @dmathieu?

Please add an entry to the changelog for the next patch version, and then this is good to merge. Thanks for your patch!

Would you mind tagging the v1.0.1 now already? Or are you planning to release sometimes in the near future?
Thanks!

Will tag it now :)

Done! v1.0.1 is out.


test: ignore TYPE_CHECKING blocks when computing coverage

Summary of Changes
TYPE_CHECKING blocks are supposed to be never executed, so they can also never be covered by tests. Now they are also no longer included in the test coverage.

:tada: This PR is included in version 0.11.0 :tada:
The release is available on:

v0.11.0
GitHub release

Your semantic-release bot :package::rocket:


Loses display name with ts-jest

I'm trying to convert my tests to use ts-jest, since babel-jest doesn't do any typechecking. ts-jest has a mode that will use babel configuration, which will typecheck the code, compile the typescript into javascript, then pass the javascript to babel to finish transpiling.
It works for the most part, except my snapshots lose the nice display name
      <div
-       class="SongForm__FormField-sc-1n6uj49-1 jkpiQR"
+       class="sc-htpNat fUJRVs"
      >
        <label
          for="bpm"
        >
          BPM

The issue is that ts-jest will first compile
const FormField = styled.div`
  ...
`

into
const FormField = styled_components_1.default.div `
  ...
`

And it seems like this output fails the isStyled checks in the displayNameAndId function. I'm not sure if this is the reason, but there's a space added between div and the backtick.
It's not a big deal, but it would be great to get the display name working with ts-jest to get nicer snapshots.

Minimal repro: https://gist.github.com/brandonchinn178/60a0fb62ebb1988ddbb523c3dcf0c134

@brandonchinn178 have the same issue. Did you figure it out?

Nope

@brandonchinn178 It's been a while I have the same issue and I was not able to migrate from Jest 26 to 29 because I face this issue. Have you sorted it out?

I have this issue too(


Import and run ansible-hardening

This commit imports the OpenStack ansible-hardening project, and runs it on k8s-cluster hosts when deploying.
See https://github.com/scality/metal-k8s/commit/130e337f922c429b20ef0aa56f6bf1ad7ace5daa for more information (other commits simply subtree the upstream repository).

@Zempashi What do you think?

@ballot-scality @Zempashi One thing I noticed is this role enables SELinux, and Kubespray disables it again. I may look to not let this role enable SELinux in the first place.


Discussion: How do we handle informing user of problems in csv file before uploading?

During the validation check, how do we go about telling the user of problems of importing the data? Do we cancel the upload? Do we only inform? Depends on severity?

In Redcap you get an intermediate page where it groups your warnings into two, there are those that are not optimal but won't stop you from uploading (eg. they violate best practice, but aren't actually detrimental to the system), and those that are direct violations.  If you only have warnings you get a button at the bottom to say Upload despite warnings, as well as a Discard the upload button.  If there are actual violations you only get the discard button.
What would be nice is a button to say, download all my warnings and errors so that I can work on them offline before the Discard upload is pressed.

I think we decided on downloading all the problems as a csv file, rather than show as a page (makes it easier for us to implement too).


BBC

This is massive and impossible to review completely. The bits I did review were not acceptable. Replacing the primary repo link with https://github.com/erasmospunk/bip39 is never going to happen.
Please submit each different coin as individual pull requests. I appreciate the effort of this PR but it's not possible to review it in the current state.
Also tests should be added to the pull requests. Without tests I have to assume this is untested code and is therefore probably broken.