Viewable statement props

This PR closes #55 with the following changes:

Adds description and fullDescription properties to each node and edge, which can be accessed programmatically to display a subset of statement properties (as defined in related issue), or all properties respectively.
Adds an option to show a <details> panel to display fullDescription
Adds an option to use tippy.js tooltips to display description
Changes draw() function to take an object rather than a list of  multiple parameters
Displays description as formatted key-value pairs
Displays fullDescription as JSON

For this example file (https://github.com/openownership/data-standard/blob/main/examples/listed-company-exempt-from-disclosure.json), I get the following error:
Uncaught runtime errors:
ERROR
n is undefined
./node_modules/dagre-d3/lib/render.js/e.exports/m/<@http://localhost:9000/main.js:2:574459
./node_modules/dagre-d3/lib/render.js/e.exports/m/<@http://localhost:9000/main.js:2:574402
m@http://localhost:9000/main.js:2:575087
./src/index.js/c<@http://localhost:9000/main.js:2:57176
p@http://localhost:9000/main.js:2:53749
./demo/index.js/e/<@http://localhost:9000/main.js:2:53572
c@http://localhost:9000/main.js:2:773535
./node_modules/regenerator-runtime/runtime.js/u/i._invoke@http://localhost:9000/main.js:2:773289
./node_modules/regenerator-runtime/runtime.js/_/</<@http://localhost:9000/main.js:2:773894
t@http://localhost:9000/main.js:2:524
a@http://localhost:9000/main.js:2:736

Noting that it is hard to click on relationship arrows to see properties (clickable area small), though how easy that is to improve usability is another question.
But for examples like full-pep-declaration.json, simple-pep-declaration.json, where there are controls and owns arrows next to each other, it appears impossible.

For this example file (https://github.com/openownership/data-standard/blob/main/examples/listed-company-exempt-from-disclosure.json), I get the following error...

That is valid BODS. I wonder if these 'hanging edges' were handled by the visualiser for BODS 0.3... the data is structured differently in 0.4.
@codemacabre - in BODS 0.3, the data would have looked like:
      "interestedParty": {
        "unspecified": {
          "reason": "subjectExemptFromDisclosure",
          "description": "Exempt from disclosure as a company listed on a recognised stock exchange"
        }
      }

Now in BODS 0.4 it's:
      "interestedParty": {
        "reason": "subjectExemptFromDisclosure",
        "description": "Exempt from disclosure as a company listed on a recognised stock exchange"
      }

So I'm not sure whether this is just something that has never been handled, or just hasn't been updated for 0.4 yet?

I wonder if these 'hanging edges' were handled by the visualiser for BODS 0.3... the data is structured differently in 0.4.

@kd-ods Thanks, Kadie. I don't think this has been handled at all so far in the visualiser, as normally dagre-d3 requires a minimum of two nodes to connect an edge to. I have some ideas how to fix this in a future improvement but that's probably beyond the scope of this issue.

Ideally would improvement usability of clicking on relationships to see properties (particularly for the double arrow case where it appears impossible)

@radix0000 Thanks for highlighting this, Ed. The difficulty clicking on an edge is another thing to fix in a future issue, as it will require a considerable update to the way edges are rendered, I think. The double arrow issue was a bug which should now be fixed.

I have some ideas how to fix [the hanging edges issue] in a future improvement but that's probably beyond the scope of this issue.

Yes, I agree re scope. I've spun up a separate issue and we can consider whether to add it to the second sprint.

Thanks @radix0000 and @kd-ods. I'll merge this PR henceforth.


Reduce UglifyJS character set

UglifyJS uses a wide character set for mangled names by default.  Capitals in particular compress poorly due to their low frequency.
Raise a PR with UglifyJS to make this configurable, and use only lower-case letters.  This has been done locally and saved a few hundred bytes.

https://github.com/mishoo/UglifyJS2/issues/3436

There was a bug in my local experiment which created falsely improved sizes.


Uninstall/revert script

Hi, I really appreciate this project and was able to get it up and running with minimal snags. However, would you be interested in providing an uninstall script that could be used to revert your settings to pre-installation values. I think it might have some interest for Users who experience unintended consequences of enabling this level of blocking.
Cheers!

i'm one of those users unfortunately.   My apple mail app stopped bringing down new mail after I installed.  I'd like to start over and try again.  i'm thinking i can delete all the fortress files, then find a command to reset the apple firewall to default values.

That'd be great. Squid proxy is consuming so much CPU power, currently at 98-99%, and I would like to rollback to previous settings but I'm not sure how? Thanks

This is a good idea. I will implement this soon.
I do not have enough cycles this week to give this issue the full attention it deserves, but until I do, here are a few comments that I hope help for your troubleshooting:

Firewalling is done at two layers: packet, controlled by pfctl, and the local web proxy, controlled in System Preferences>Network. To reset and turn off the packet filter, do this:

sudo pfctl -Fall
sudo pfctl -d

To turn off the system proxy, go to System Preferences>Network>Advanced>Proxy (IIRC) and tell the system not to use your proxy.

There's other updating stuff that the plists control, but that won't affect your networking. Those are controlled by launchctl.
Also if squid is at 100% CPU, that's okay for a little while, but sustained obviously not. When I get a runaway squid process, I do a hard reset:
sudo port unload squid
sudo killall -9 squid
sudo killall -9 '(squid-1)'
sudo port load squid

If that doesn't do it, there's a configuration issue that needs fixing to get squid launched properly.

Thanks, @essandess, for the quick response. I have stopped the Squid process for now.
Look forward to further updates from you on this.

Much appreciated, @essandess! I was seeing similar CPU behavior from Squid (~50-60%).

Very good info. I was getting the same issue with squid (multiple instances, each with about 13% CPU and using all available cycles. I reloaded it and will monitor.

This is still on my todo list.
I'm aware of the squid issue myself and believe input is caused by a misconfigured launchd plist. I'm investigation—please watch this space.

I've added the uninstall script uninstall.sh, as well as a modified daemondo Squid.wrapper that will run squid in -N no daemon mode ago avoid the known issues with launchd trying to open multiple daemon processes.
I've also added a launch daemon to rotate and prune squid logs.
See the install file for details on how to install these new items, and please let me know if anyone continues to see the problem with runaway squid processes.
I'll post this issue to Macports and file an Apple bug report when I find a free moment.

Just to be clear, should we run the uninstall script and reinstall with the new files?
Thanks for the quick response.

Yes, please run the uninstall script, then rerun the install script. Note that "uninstall" disables the services, but does not delete files or return the original .orig files. Rather, it prints out a list of all installed files that exist and leaves it to you whether to keep them around or not.
The existence of the files will not affect system or network performance because they must be invoked with launchctl (the launchd plists) or pfctl (/etc/pf.conf).
I would appreciate any feedback you have.

@essandess Please check line 17 of the uninstall.sh. It seems that EOF is making everything below into a comment and the code isn't running. It prints to terminal, but doesn't execute.
`# commands
SUDO=/usr/bin/sudo
PORT=/opt/local/bin/port
LAUNCHCTL=/bin/launchctl
PFCTL=/sbin/pfctl
CAT=/bin/cat
ECHO=/bin/echo
$CAT <<EOF`

To run the commands wholesale, pipe the output to bash:
bash readme-and-install.sh | bash

Or copy and paste into the command line.
I'm being conservative and giving people a chance to see the commands being run, or make any system-specific changes.
I should reflect that in the readme portion—I'll edit that.

Sorry for my poor understanding, but I still can't get the uninstall.sh script to run.
If I try to simply run it like this:
sudo ./uninstall.sh
all of the commands past line 17 are not run. After running the script I verified this by manually unloading some of the launchctl deamons and getting a positive response:
sudo launchctl unload -w net.openbsd.pf.plist
The second time I run that command, I get a "Could not find specified service" error. I take this to mean that uninstall.sh did not unload it.
Indeed, the output of the uninstall.sh doesn't look like most commands were executed:
`user$ sudo  ./uninstall.sh

SUDO=/usr/bin/sudo
PORT=/opt/local/bin/port
LAUNCHCTL=/bin/launchctl
PFCTL=/sbin/pfctl
CAT=/bin/cat
ECHO=/bin/echo
/bin/cat
'HELPSTRING' |
OS X Fortress: Firewall, Blackhole, and Privatizing Proxy
for Trackers, Attackers, Malware, Adware, and Spammers
Kernel-level, OS-level, and client-level security for OS X.

This uninstall script will unload all launch daemons, disable
the pf firewall, and list all insalled files WITHOUT removing them.
Uninstalling…
HELPSTRING
/bin/echo "Uninstalling…"
/bin/echo "Unloading launchctl daemons…"
LAUNCHDAEMONS=/Library/LaunchDaemons
launchctl_unload () { if [ -f / ]; then /usr/bin/sudo /bin/launchctl unload -w /; fi; }
for FNAME in 	net.openbsd.pf.plist 	net.openbsd.pf.brutexpire.plist 	net.emergingthreats.blockips.plist 	net.dshield.block.plist 	net.hphosts.hosts.plist 	net.securemecca.pac.plist 	org.adblockplus.privoxy-adblock.plist 	org.squid-cache.squid-rotate.plist 	; do
launchctl_unload
done
/bin/echo "Disabling pf firewall…"
/usr/bin/sudo /sbin/pfctl -d
/bin/echo "Killing the squid and privoxy proxies…"
/usr/bin/sudo /opt/local/bin/port unload squid
/usr/bin/sudo  -9 '(squid-1)'
/usr/bin/sudo  -9 squid
/usr/bin/sudo /opt/local/bin/port unload privoxy
/bin/echo "These files still exist…"
fname_exists () { if [ -f  ]; then /bin/echo "File  exists."; fi; }
PROXY_PAC_DIRECTORY=/Library/WebServer/Documents
for FNAME in 	/proxy.pac 	/etc/hosts.orig 	/etc/pf.conf.orig 	/net.openbsd.pf.plist 	/net.openbsd.pf.brutexpire.plist 	/net.emergingthreats.blockips.plist 	/net.dshield.block.plist 	/net.hphosts.hosts.plist 	/net.securemecca.pac.plist 	/org.adblockplus.privoxy-adblock.plist 	~/Library/LaunchAgents/org.opensource.flashcookiedelete.plist 	/usr/local/etc/blockips.conf 	/usr/local/etc/whitelist.txt 	/usr/local/etc/blacklist.txt 	/usr/local/bin/osxfortress_boot_check 	/usr/local/bin/pf_restart 	/usr/local/bin/squid_restart 	/usr/local/bin/privoxy_restart 	/usr/local/bin/privoxy-adblock.sh 	/opt/local/etc/LaunchDaemons/org.macports.Squid/Squid.wrapper.orig 	; do
fname_exists
done
exit 0
user$
`
I may be doing this all wrong, so please excuse my ignorance. I also tried to pipe the uninstall.sh to bash, but just got a bunch of errors.

Sorry, that's not your fault—it's mine. I'll fix that up.

Please give this a go with the command
bash disable.sh

I renamed this because of functionality.

Also note I misspoke above: the readme-and-install script will print the help string and install everything:
sudo sh readme-and-install.sh

Re squid issue: https://trac.macports.org/ticket/54193#ticket

I had the same issue I had to do a complete reinstall but I didn't take the time to look it up

I had the same issue

Do you mean that you had an issue with a runaway squid process?

It seems the link to your uninstall shell is going to a 404 page currently. Has this been moved?

Yes, renamed to disable.sh. I've updated the comment.

The issues with launchd, daemondo, and squid are fixed in the squid4 port. See https://github.com/essandess/macOS-Fortress/commit/c4ecb13b7d8c61f5c53b44b6ebedea1ca36db16c.


e2e to simulate node and validators until a justified epoch

Goal

Close #512

I don't think we should merge this with this hack, because solution is to fix error that was caused with extracting state transition, apparently state transition or some other stub isn't working properly, probably different import path or something

I don't think we should merge this with this hack, because solution is to fix error that was caused with extracting state transition, apparently state transition or some other stub isn't working properly, probably different import path or something
I removed the hack, please re-review.

I was hoping you would fix bug that occured after state transition got moved to separate package.
After we moved state transition, state transition stub stopped working and was causing long unit tests.
Better way was to fix this, but I guess we will have to fix it in separate PR :disappointed:

@mpetrunic I noted your comment in #537 , will look into that. This PR is merely about e2e test anyway.


Add Barokas logo

https://pbs.twimg.com/profile_images/556219513213943808/fidT3Pby.jpeg
Detroit
www.barokas.com
Community Supporter

Thanks! Closing this issue now that the logo is added.


Question about qk_matmul's load_act calculation in prefill stage.

Hi!
I think something is wrong when calculating load_act of qk_matmul in prefill stage.
From my understanding, the load_act of qk_matmul should be calculated as: load_act=seqlen * head_size * batchsize * num_attention_heads * a_byte.However, in the code at model_analyzer.py#L359, it is written as: load_act=seqlen * head_size * batchsize * num_key_value_heads * a_byte.
Could it be that I’m misunderstanding some fundamental concepts, or is there a potential issue with the code?
Thanks!

I think load_act=seqlen * head_size * batchsize * num_key_value_heads * a_byte is correct, If num_key_value_heads=num_attention_heads, the model will use Multi Head Attention (MHA), if num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. num_key_value_heads would be general usage.

Hi @yyjpro.
In qk_matmul, we need to load Q matrix and K matrix. Based on my understanding, the shape of Q matrix is [batchsize, num_attention_heads, seqlen, head_size], and the shape of K matrix is [batchsize, num_key_value_heads, seqlen, head_size]. Therefore, load_act=seqlen * head_size * batchsize * num_attention_heads * a_byte and load_kv_cache=seqlen * head_size * batchsize * num_kv_heads * kv_byte. Just as the formula in decode stage model_analyzer.py#L264

Hi @yyjpro.
In qk_matmul, we need to load Q matrix and K matrix. Based on my understanding, the shape of Q matrix is [batchsize, num_attention_heads, seqlen, head_size], and the shape of K matrix is [batchsize, num_key_value_heads, seqlen, head_size]. Therefore, load_act=seqlen * head_size * batchsize * num_attention_heads * a_byte and load_kv_cache=seqlen * head_size * batchsize * num_kv_heads * kv_byte. Just as the formula in decode stage model_analyzer.py#L264


[QUESTION] Drawing SKPicture which contains multiple path segments consumes more GPU memory after canvas translation

I'm working on a UWP app for creating and editing diagrams. I use SKPicture to draw the elements on a SKSwapChainPanel to improve the performance. The app allows the user to pan the view by translating the canvas matrix. It's weird that every time I translate the canvas, the operation of drawing a SKPicture of a path which contains multiple segments(>=3, CubicTo or multiple LineTo) consumes more GPU memory. I have no idea about what's going on. So I really need some help for this.
GPU memory usage at launch:

After several translations:

SKImageInfo info = new SKImageInfo(e.BackendRenderTarget.Width, e.BackendRenderTarget.Height, e.ColorType);
SKSurface surface = e.Surface;
SKCanvas surfaceCanvas = surface.Canvas;

surfaceCanvas.Clear();
surfaceCanvas.SetMatrix(_canvasMatrix);

if (_picture == null)
{
    using (SKPictureRecorder pictureRecorder = new SKPictureRecorder())
    using (SKCanvas canvas = pictureRecorder.BeginRecording(info.Rect))
    using (SKPath path = new SKPath())
    {
        path.CubicTo(150, 50, 200, 125, 300, 25);

        canvas.DrawPath(path, _paint);

        _picture = pictureRecorder.EndRecording();
    }
}

surfaceCanvas.DrawPicture(_picture);

Sample repository:
Link

@danwalmsley would you know how to debug this? Were you able to make use of the new SKGraphics type and other bits to catch things like this?

@mattleibow any update on this?


Simplify operator prerequisites

Currently the operator requires the creation of configmaps containing the BIAN openapi specs and camel-k integrations.
In order to simplify version upgrades and installations, these configmaps should be managed by the operator

@ruromero could you add the ADR?

https://docs.google.com/document/d/1ajQtiGBXPsEWlPl5zXCaT9OVpCoa8o-jdAwiBMxS-vE/edit#


Exclude Stateless Samples

@mathowar Curious why these samples are being removed? Is support for stateless SDK changing?

@mathowar Curious why these samples are being removed? Is support for stateless SDK changing?

@JapNolt, these samples were accidentally pushed before they were completed. Once completed they will be readded

@mathowar Curious why these samples are being removed? Is support for stateless SDK changing?
@JapNolt, these samples were accidentally pushed before they were completed. Once completed they will be readded

Awesome!! Any thoughts on timeline of release of these samples?

@mathowar Curious why these samples are being removed? Is support for stateless SDK changing?
@JapNolt, these samples were accidentally pushed before they were completed. Once completed they will be readded

Awesome!! Any thoughts on timeline of release of these samples?

@JapNolt, I will let you know as soon as I know, however I am not the owner of those samples. I'll contact the owner and see what they say, but as of now there is no timeline.


Different focused elements when using Shift-Tab vs Tab

In the working files:

tab until the last action
tab takes you to the file
tab takes you to the close file action <--- missed by shift-tab
tab takes you to the file/folder explorer

Shift-tab should take you back to the close file action, instead it jumps straight to the file

The same is true for the actions in the file/folder explorer. The actions are only reachable via "Tab". They should be reachable via Shift-Tab as well

I think this is a problem with all "hidden" actions ?

We should not use "display: none" but some other CSS property to hide actions (e.g. width). I implemented this for split view actions, but not yet for trees.


NameError: name 'list_of_sentance' is not defined

The nine block "# Training our corpus with Google Pretrained Model" is showing this error.
Thanks.

You should replace google_model.build_vocab(list_of_sentance) with google_model.build_vocab(corpus)!
it is a mistake


feat(create): add haunted to generators

https://github.com/open-wc/open-wc/issues/851
Based on: https://github.com/matthewp/my-app
TODO:

Make sure testing/demoing/building etc works

This can be reviewed now. Linting/testing/etc is all working now

@bennypowers Its been a while since I worked on this, so I brought it back up to date with the current lit generator. Would you mind doing another sanity check?

Bump

Does anybody want to do a sanity check on this?

Looks good, few outdated bits. It's a shame we have to duplicate a lot of things, the generators need a redesign at some point to accomodate this better.


Rioghasarig/trlu is no longer available

README.md:2210 References github.com/Rioghasarig/trlu which is no longer available.
[LUSOL](https://github.com/Rioghasarig/trlu): maintains LU factors of a square or rectangular sparse matrix. This repository provides LUSOL source code and a Matlab interface.

replaced with Spectrum-Revealing CUR (SR-CUR), which also has LUSOL


Some tests failing on Windows

A couple look like they might be forward-back slash related.
Master branch, Windows 10, Visual Studio 2012
ff..E..F......F.......f......F..f.............s................E.......F.....E....f...
basics\require: ERROR
ERROR: Test group skipped
  ERROR: Error: Cannot find module 'require/require_spec.js'

basics\timeout: FAIL
 FAIL: did not exit as expected
  expected exit code -15 got 1

module\fs\fileattrs: FAIL
 FAIL: size/date queries on existing files
  assert_greater_than_equal: expected a number greater than or equal to<PHONE_NUMBER>000 but got<PHONE_NUMBER>559
  phantomjs://code/fileattrs.js:44:30

module\webpage\cookies: FAIL
 FAIL: page.cookies provides cookies only to appropriate requests
  assert_no_property: property "cookie" found on object, expected to be absent
  phantomjs://code/cookies.js:109:27

module\webpage\render: ERROR
ERROR: Test group skipped
  ERROR: Error: Cannot find module './renders'

module\webpage\url-encoding: FAIL
 FAIL: arguments to onResourceError and onResourceTimeout
  assert_equals: expected "http://localhost:51638/url-encoding?/%89i%8Bv" but got "http://localhost:51638/url-encoding?/re"
  phantomjs://code/url-encoding.js:110:22

module\webserver\requests: ERROR
ERROR: setup failed
  ERROR: assert_is_false: expected false got true

127.174s elapsed
  185 passed
    4 failed
    8 failed as expected
    3 had errors
    4 skipped

Thanks a lot for filing this issue! We'll triage and take a look at it as soon as possible!
And fyi: 2015 is not supported yet.

Oops. I have both 2012 and 2015 installed, but for this I used 2012. I edited the comment.

2012? I think it should be 2013 ;-)

Okay, VS versions confuse me. The command line app I used is: VS2012 x86 Native Tools Command Prompt, but you're right, it came with VS 2013.


Feature/expose post body to tasks

This a PR for #838.
It provides the POST body of a task request to the task's execute method. For a first pass, I went with the simplest possible implementation, just providing the post body of the request as a string. This seemed consistent with how tasks handle query params already, just providing the strings and leaving any transformations to a more useful format to the user.
As it is implemented now, this is a BREAKING change. Anyone who updates Dropwizard to a version with this change will get compilation errors and need to add an additional String parameter to all their Task subclasses.
I went with the breaking API change style because it was the simplest, but I would like feedback on whether that seems like a reasonable path forward. it seems like the alternatives would be:

Make a subclass of task that accepts a post body e.g. TaskWithBody that has a different execute method. Dispatch to either Task or TaskWithBody in the task executor. (might actually make sense to switch it around and have the body version be the superclass)
Instead of passing the body directly to execute, just add a getBody method to the Task class
Something better I'm not thinking of

I think I branched off of a failing build. I can rebase once I see master is green.

Is Dropwizard 1.0 frozen yet? Could we bake this change into it to take advantage of the major version bump?
One (hacky) alternative that preserves API compatibility would be to allow TaskExector instances to be composed with POST bodies via a chainable method. To illustrate, your lines 99 and 100 of TaskServlet.java could become:
taskExecutors.get(task)
    .withPostBody(getBody(req))
    .executeTask(getParams(req), output);

withPostBody would return a copy of the TaskExecutor with a postBody field initialized to the argument String.
I don't like having to treat the parameters and request body differently in such a way, but I think it's best to avoid breaking changes at all costs.

Sorry for the failing build. It should pass now.
We will certainly not introduce breaking changes to 1.0.0. We plan to make a release in a short time, so only bug fixes and regressions are currently accepted.
I will take a look at the PR implementation, but I would generally more fond to see this feature implemented in a backward-compatible way. This way we can include it in 1.1.0.

I rebased off the green master build, so mine should pass now.
I'm happy to change the implementation, just let me know what approach you think makes the most sense and I'll go down that road.

Coverage decreased (-0.07%) to 82.085% when pulling 7fc9d78aabb5cf5a3aadb1d34616c0b0cfd9641c on scottaj:feature/expose-post-body-to-tasks into 08be35cbe365f332a76d0879e5d401e0886f138f on dropwizard:master.

Coverage decreased (-0.07%) to 82.085% when pulling 7fc9d78aabb5cf5a3aadb1d34616c0b0cfd9641c on scottaj:feature/expose-post-body-to-tasks into 08be35cbe365f332a76d0879e5d401e0886f138f on dropwizard:master.

hey @arteam did you have a chance to look at this and have any thoughts on what you'd like a backwards compatible approach to look like?
I think it would either need to be a property that is set and accessed and not passed into execute, or some type of custom subclass.

Hey @scottaj.  Thanks for your persistence to contribute this feature in Dropwizard!
I had a look at the implementation and I think it's better to go with the subclass approach. I would like to keep tasks immutable, because this makes easier for users to reason about them. They don't need to worry about the scope of a task and thread-safety concerns.
I think we could provide to users a public abstract class like that:
public abstract class BodyTask extends Task {

    public BodyTask(String name) {
        super(name);
    }

    public abstract void execute(ImmutableMultimap<String, String> parameters,
                          String body, PrintWriter output) throws Exception;

    @Override
    @Deprecated
    public void execute(ImmutableMultimap<String, String> parameters, PrintWriter output) throws Exception {
        throw new UnsupportedOperationException("Use `execute(parameters, body, output)`");
    }
}

and inside TaskServlet invoke the correct method based on the task's type.

Coverage decreased (-0.009%) to 82.149% when pulling 0064f26473eced75aeb5a6324bae43f88a668e1b on scottaj:feature/expose-post-body-to-tasks into 08be35cbe365f332a76d0879e5d401e0886f138f on dropwizard:master.

This has now been reimplemented as a backwards compatible change.
I'm not sure how coverage dropped because I'm pretty sure I covered every line I added.

LGTM, aside from documentation nit. @arteam, mind chiming in, please? Would be more comfortable merging with your signoff, since you had opinions on this change.

Rebased and applied on master. Thanks, @scottaj for the  contribution and @evnm for the review!

The second http request in testBuild fails because parameters is is an empty map. This only happens when I run SimpleServerFactoryTest with DefaultServerFactoryTest. This is reproducible 100% for me.

Running SimpleServerFactoryTest in isolation (i.e. mvn test -Dtest=SimpleServerFactoryTest passes, but I reliably get the failure when running all of dropwizard-core tests in one go.
Printing the param map within TaskServlet#getParams indicates that Jetty's implementation of HttpServletRequest isn't populating the params map with query parameters in POST requests. I initially thought that perhaps the upgrade from Jetty 9.3.11.v20160517 to Jetty 9.3.11.v20160721 introduced the issue, but the test failure occurs at the upgrade commit and at the commit prior.
Did some digging in Jetty's Request and HttpUri classes, but didn't turn up anything. Consider me stumped for now.

My initial thought is that there is some test in dropwizard-core, specifically in DefaultServerFactoryTest, that isn't cleaning up after itself. It's nothing but a hunch, though

I think the issue may stem from the Jetty upgrade after all. While I was poking around earlier, 9.3.9.v20160721 was being pulled in by 1.0.1-SNAPSHOT builds of dropwizard-servlets, even when I'd checked out commits that predated the actual bump to that version of Jetty.
I pulled down the Jetty source at the jetty-9.3.11.v20160721 tag and used a few scattered printlns to trace request state as the offending POST-with-query-params from SimpleServerFactoryTest passes through the server. The correct request metadata is traceable through a number of jetty-server classes (HttpChannelOverHttp, HttpChannel, and Request).
But then the query parameters aren't extracted from the URI when TaskServlet#doPost is invoked. Printing req.getQueryString() in there shows it to be name=test_user, as it should be. And the weirdest thing is that the extraction codepath in Jetty's Request#extractQueryParameters method doesn't run until after the TaskServlet has finished.
I'm going to file a separate issue, since it doesn't seem to me that this relates to #1606


Bsignal.align issue

Bsignal.align(u2) crash if u2 or self has dimension len(x) == 1.
This is problematic in different cases :

in prop2tran when multiplying channel with an antenna defined with  a single frequency point
Simulation for a single frequency point
-....

Hi Nicolas
I find this bug too. I suppose previously all antennas wer ahving more than one frequency point.
I think the fix should be done in the mul of two Bsignal.

Usignal I mean


Prioritize Directories in Quick Open (⌘P)

Description
It would be beneficial to have a feature in Visual Studio Code that allows users to prioritize certain directories in the Quick Open (⌘P) results. This would help users who frequently access files in specific directories, such as src/, to have those directories appear higher in the search results without fully excluding other directories like tests/.
Proposed Solution
Add a setting in settings.json that allows users to specify directory priorities for Quick Open. For example:
{
    "quickOpen.priorities": {
        "src/**": 1,
        "tests/**": 0.5
    }
}

This setting would make files in the src/ directory appear higher in the Quick Open results compared to files in the tests/ directory.
Benefits

Improves productivity by reducing the time spent searching for frequently accessed files.
Provides more control over search behavior in Quick Open.
Enhances the overall user experience in Visual Studio Code.

Additional Context
Currently, users can exclude directories from search results, but there is no way to prioritize certain directories without fully excluding others. This feature would provide a more flexible and user-friendly solution.

no one to upvote for this ?! I've been looking for this feature for so looong, please we need it 😅


Map won't show up after plugin update

Hello,
I've been running the plugin smoothly and yesterday I decided to run the update. After that I can't see the map anymore and sometimes it even hides all the content from the lovelace tab where the map is. Any suggestion to fix this?
Regards.

I'm not too surprised this happened, I tried to find testers that were still on old Valetudo versions because 0.6 has a completely new map format, but I couldn't find any :)
First things first, what version of Valetudo are you running exactly? And is there anything in your browser console?

I'm running Valetudo 0.4.0 and my browser console shows this:
valetudo-map-card.js:72 Uncaught (in promise) TypeError: attributes.layers is not iterable
at HTMLElement.getLayers (valetudo-map-card.js:72)
at HTMLElement.set hass [as hass] (valetudo-map-card.js:634)
at chunk.8b29f0c82629b54e915d.js:23978
at Array.forEach ()
at HTMLElement.value (chunk.8b29f0c82629b54e915d.js:23978)
at HTMLElement.performUpdate (app.5aafc0f2.js:1)
at HTMLElement._enqueueUpdate (app.5aafc0f2.js:1)

Can you try again? Should be better now. If it still isn't fine please give your browser console again and if possible screenshots of the map :)

Still not showing:
valetudo-map-card.js:227 Uncaught ReferenceError: no_go_areas is not defined
at HTMLElement.getNoGoAreas (valetudo-map-card.js:227)
at HTMLElement.drawMap (valetudo-map-card.js:395)
at HTMLElement.set hass [as hass] (valetudo-map-card.js:695)
at HTMLElement.value (chunk.8b29f0c82629b54e915d.js:23543)
at HTMLElement.value (chunk.8b29f0c82629b54e915d.js:23978)
at HTMLElement.t.addEventListener.once (chunk.8b29f0c82629b54e915d.js:23543)
at n (app.5aafc0f2.js:1)
at chunk.8b29f0c82629b54e915d.js:12852

Okay, fixed that one too. Anything left now? :)

aletudo-map-card.js:184:7 ReferenceError: assignment to undeclared variable virtual_walls

Same:
valetudo-map-card.js:228 Uncaught TypeError: attributes.no_go_areas is not iterable
at HTMLElement.getNoGoAreas (valetudo-map-card.js:228)
at HTMLElement.drawMap (valetudo-map-card.js:395)
at HTMLElement.set hass [as hass] (valetudo-map-card.js:695)
at HTMLElement.value (chunk.8b29f0c82629b54e915d.js:23543)
at HTMLElement.value (chunk.8b29f0c82629b54e915d.js:23978)
at HTMLElement.t.addEventListener.once (chunk.8b29f0c82629b54e915d.js:23543)
at n (app.5aafc0f2.js:1)
at chunk.8b29f0c82629b54e915d.js:12852

Yes, now it's showing the map! =D The obstacle colors are different but in general seems fine :)

Okay good, tell me if you run into any other issues. Thanks for helping me debug and fix it :)

Okay good, tell me if you run into any other issues. Thanks for helping me debug and fix it :)

Well, I faced another issue that forced me to use rest api instead of mqtt but that's for another thread ;) Thank you for the support.


Projects 1

Transform "Projects" into "Grants", splitting them into: international, national, private

This has been now implemented


No search results

I have set up the server API and the CSE. When I run a search nothing comes back. If I do a tcpdump I can see packets going out to Google and then come back. It appears that the API and CSE are working but once the results come back they don't show up in the results page. I followed the install guide for Scumblr and for setting up Google API and CSE (to search the whole internet). Has anyone else had a issue like this?

Hi @riku-akira,
To troubleshoot this, could we start by having you run a search manually through the console:

From the main scumblr directory run "rails c"
Run the following command: SearchProvider::Google.new("scumblr").run

If you could provide the results you receive here or any messages, errors, etc. I'll see if I can help you out.
Thanks!

So this is what I got:
riku@ubuntu:~/Scumblr$ rails c
SearchProvider::Google.new("scumblr").runLoading development environment (Rails 4.0.9)
[1] pry(main)> SearchProvider::Google.new("scumblr").run
Response received #Google::APIClient::Result:0x007f5205520a18
=> []
[2] pry(main)>

That would seem to indicate that the search is running and returning, but the API is not returning any results. Have configured your custom search provider to search the entire web?
https://support.google.com/customsearch/answer/2631040?hl=en

Well I followed the guide, see anything wrong?

What I can see there looks ok, if you do a search over on the right side of the google CSE console are you getting results back?
If so, could you open up the google search provider (/lib/search_providers/google.rb) and update the line that prints out the response (should be line 91) to print out "response.body" instead? So you should be changing line 91 to:
Rails.logger.warn "Response received #{response.body}"
Then rerun the manual search in the console and post the JSON you're getting back?

[3] pry(main)> SearchProvider::Google.new("scumblr").run
Response received {
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.",
"extendedHelp": "https://console.developers.google.com"
}
],
"code": 403,
"message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration."
}
}

Maybe I have the API set up wrong? I followed the guide and thank you again!

Cool, yeah it looks like there is an issue with the api key. If I were to guess, maybe you don't have the Custom Search API turned on for that API key (see screenshot from Google Developer Console)?

Let me know if you are unable to fix it. If you do figure it out, please update the issue with the steps your took and let me know you think there is something missing from the documentation.
Thanks and good luck!

THANK YOU!!!!! Haven't worked with Google API's a lot and of course it would be something simple like this.

No problem, glad I could help. Some of those API key configurations are definitely confusing!


Support ElastiCache Controller

What is the outcome that you are trying to reach?
Add ElastiCache and an enablement variable similar to other controllers e.g.
enable_rds = true
Describe the solution you would like
Same behavior as the other controllers.
Describe alternatives you have considered
I can probably do this on my own using aws-ia/eks-blueprints-addon/aws, but it'd be nice if it supported it already. 👯

We are a little shy of bandwidth right now but if you are up for it we can accept a PR.

PR is here:
https://github.com/aws-ia/terraform-aws-eks-ack-addons/pull/49


Allow skipping assets that are already uploaded

https://concourse.ci.resin.io/builds/398455
/cc @zvin

Fixed by #4


Analyze Song feature

A feature that auto analises a mp3 or wav file you give it, or an easier way to create sound matching keyframes

That would be a great feature to implement.
There are apps that do that like this one: https://www.chigozie.co.uk/audio-keyframe-generator/
Maybe this code could be implement in to it.

Coming soon, see: https://github.com/rewbs/sd-parseq/pull/54

Closing as this has been released and has proved stable (see "audio analyser" section in readme). Please raise any improvement requests as separate issues.


TrxEncoder bug

The property TrxEncoder.category_max_size breaks, since TrxEncoder.embeddings.values() are subclasses of nn.Embedding, and don't support dict-like access, required here

Also #129 with unit test for this bug

@Ilykuleshov , thank you for contribution!


Bug?  Default regrid method in History

In HistoryGridComp, we have:
       if (has_regrid_keyword) then
          call ESMF_ConfigGetAttribute ( cfg, regrid_method, default="REGRID_METHOD_BILINEAR", &
                                         label=trim(string) // 'regrid_method:'  ,rc=status )
          _VERIFY(STATUS)

But if you look at the list of strings that we process in /base/RegridMethods.F90, we only have "BILINEAR":
      select case (temp_str)
      case ("IDENTITY")
         int_regrid_method = REGRID_METHOD_IDENTITY
      case ("BILINEAR")
         int_regrid_method = REGRID_METHOD_BILINEAR
      case ("BILINEAR_ROTATE")
         int_regrid_method = REGRID_METHOD_BILINEAR_ROTATE
      case ("CONSERVE")
         int_regrid_method = REGRID_METHOD_CONSERVE
      case ("VOTE")

Apparently it "works". I set up a run without a regrid_method in History.rc and I got out a bilinear collection. So there must be enough belts-and-suspenders in the system to let it work no matter what...

Ah - that call with the default is only encountered when there actually given, in which case the default is not used of course.  So not "BUG" but just confusing.
Proper solution is just to remove the default="..." from that call.   Then it won't be confusing.

We need to take care of this...

Reopening. I need to look at this.


Test data is shown when loading organizer dashboard

The dashboard shows what looks like test data for both active and terminated games when loading the page. This data vanishes immediately.

This also applies to the player dashboard.

This also applies to the player dashboard.

What testing data is show?
I can't reproduce it on the player dashboard

What testing data is show?
The username initially shows as "Bendix" with score "1234".


[CLI] Deprecate optimist in favor of yargs

optimist is long time deprecated. There are several active alternative libraries. yargs is direct successor to optimist. If it's OK, main dependency should also be changed for consistency.

This seems very reasonable given the deprecation of optimist

We use optimist in a couple of places internally, let me check...

website tests fail, could you please check? Basically you'll need to run this:
cd website
npm install
./setup.sh
node server/generate.js

Looks like this changes the way argv.$0 works, optimist used to return node ./server/generate.js but with this diff it returns server/generate.js. Please update  website/server/server.js:24 and make sure the commands from my prev comment work. Thanks!

@enaqx - are you still interested in getting this through? could you address the above comments if so? :smile: thanks!

@brentvatne - sorry, busy weeks.
I've tried to npm install master version and it's failed.
npm WARN package.json @ No repository field.
npm WARN package.json @ No license field.
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.5
npm ERR! npm  v2.11.2
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: esprima-fb@'*'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["1001.1001.1000-dev-harmony-fb","1001.1001.1001-dev-harmony-fb","1001.1001.2000-dev-harmony-fb","2001.1001.2000-dev-harmony-fb","2001.1001.0-dev-harmony-fb","3001.1.0-dev-harmony-fb","4001.1.0-dev-harmony-fb","4001.1001.0-dev-harmony-fb","4001.3001.0-dev-harmony-fb","5001.1.0-dev-harmony-fb","6001.1.0-dev-harmony-fb","6001.1001.0-dev-harmony-fb","7001.1.0-dev-harmony-fb","8001.1.0-dev-harmony-fb","8001.1001.0-dev-harmony-fb","8001.2001.0-dev-harmony-fb","9001.1.0-dev-harmony-fb","10001.1.0-dev-harmony-fb","11001.1.0-dev-harmony-fb","12001.1.0-dev-harmony-fb","13001.1.0-dev-harmony-fb","13001.1001.0-dev-harmony-fb","14001.1.0-dev-harmony-fb","15001.1.0-dev-harmony-fb"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/enaqx/src/react-native/website/npm-debug.log

It's seems fb-espirma also should be updated in dependency list. Can anybody check? If issue exist I can PR with espirma and yargs updates. Thanks!

@enaqx pinging on this...could you take another look at this PR if you're still interested in merging?

@enaqx Any updates?

Closing this. Let's reopen if you are interested to work on this again.


Desktop - Infinite loading when open App

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Pre: App was upgraded and worked normally for around 2 hours

Re Open App
Try to login with different account

Expected Result:
User is able to login and works
Actual Result:
App opens and infinite loading appears, 1 time crashed via reload and return to the spinner.
Workaround:
Unknown
Platform:

Where is this issue occurring?

Desktop App - macOS Monterey v. 12.4

Version Number: <IP_ADDRESS>
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5702404_desktop.txt

Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Can you please re-test in ~5 minutes? We just pushed a fix via the API side that should fix this once deployed.

Actually, looking at the logs, this is a confirmed dupe of https://github.com/Expensify/App/issues/10531


Update images

Upgrade subscription page image is not up to date. For me it also showed the prices. And (i'm not 100% sure) i think it didn't show me the no support option.

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

ID: 31d284ec-efec-44b4-8582-47b5b44a1f73
Version Independent ID: 5be7927d-cf08-7438-ecfd-554a6928d122
Content: Upgrade your free Azure subscription to Pay-As-You-Go
Content Source: articles/billing/billing-upgrade-azure-subscription.md
Service: billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

@wrooot Thanks for bringing this to our attention. We've shared your feedback with the content owner for further review and update as appropriate.

Investigating.
#in-process

@wrooot Per Julia Reid, the article is accurate and up-to-date. We aren't supposed to show prices in our screenshots and you should definitely see the No support option.
#please-close


byteArray of pdf content generated from jsPDF

Hello
I want to know if I can get byteArray out of the pdf document created from pdf js. We are using iText on the backend. I am trying to make a report from html using pdf js and send the pdf byteArray to backend, which directly saves the doc in our repository.

I want to know the answer like @ppasi07. I need to byte array for generating sha256 hash.

Should be working by
var doc = new jsPDF();
doc.output('arraybuffer');


Update "Event Driven Consumer" Doc

Purpose
$subject

The image here needs to be updated. Created an issue for this #784.


pricing tier

Suggest linking to the Pricing Tier page for the Database Migration Service noting that Standard Tier is free, and Business Critical tier is also free while in preview.

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

ID: 2469f918-a128-5375-89be-632e86af4eab
Version Independent ID: 137d87f2-a1bf-e6fb-d9c4-be438b7a234f
Content: Azure Database Migration Service Overview
Content Source: articles/dms/dms-overview.md
Service: database-migration
GitHub Login: @pochiraju
Microsoft Alias: rajpo

@newportl Thank you very much for the detailed feedback. I have assigned this to a content author to evaluate and update as appropriate.

@douglaslMS I am unable to assign this to @pochiraju.  Does he have an updated/active GitHub alias for this repository>

@Mike-Ubezzi-MSFT Looks like Raj is still a valid contributor: https://github.com/pochiraju

No dice!

@Mike-Ubezzi-MSFT OK, I guess what I saw only proves that he has a GitHub account, not that he has permissions in MicrosoftDocs. That's interesting, someone else must have submitted the articles that list him as author. Oh, well. Leave this issue assigned to me for now and I'll ask Raj to make sure he signs up for the MicrosoftDocs org.


Unauthorized Access To Dashboard

Issues Report for GSSOC'24 Contribution
Issue: Unauthorized Access to Dashboard
Description:
Currently, any user can access the dashboard page without being authenticated or logged in. This poses a security risk and violates the intended access control policy of the application. I would like to fix this issue.
Potential Fix:
To address this issue and enforce authentication before accessing the dashboard, we can implement middleware in Next.js. Middleware functions can intercept incoming requests and perform checks, such as verifying if the user is authenticated, before allowing access to certain routes.
Steps to Implement Middleware for Authentication:

Create Middleware Function: Create a middleware function to check if the user is authenticated before allowing access to the dashboard route. This middleware can be a separate file or a function within the Next.js API routes.
// middleware/auth.js

export function withAuth(handler) {
    return (req, res) => {
        // Perform authentication check
        if (/* User is authenticated */) {
            return handler(req, res);
        } else {
            return res.status(401).json({ error: 'Unauthorized' });
        }
    };
}

Apply Middleware to Dashboard Route: Apply the withAuth middleware to the dashboard route in the Next.js application. This ensures that the middleware runs before accessing the dashboard page.
// pages/dashboard.js

import { withAuth } from '../middleware/auth';

function DashboardPage() {
    return (
        <div>
            {/* Dashboard content */}
        </div>
    );
}

export default withAuth(DashboardPage);

Testing: Test the application to ensure that unauthorized users are redirected or denied access to the dashboard page. Verify that authenticated users can still access the dashboard without any issues.

Screenshot of the Issue:

By implementing middleware for authentication in Next.js, we can ensure that only authorized users are able to access sensitive pages like the dashboard, thereby enhancing the security of the application.

Kindly assign this issue to me

Go ahead @sarthakmishra459 . Will look forward to your PR


Deprecate complex kernel for expi?

Typically the exponential integral Ei (special.expi; see https://dlmf.nist.gov/6.2#E5) is only defined for real values. This is because it doesn't have a proper analytic continuation around the negative real axis. If you want a complex version of Ei, then you should just use E1 (special.expi1; see https://dlmf.nist.gov/6.2#E2), which has a branch cut on the negative real axis.
specfun however, defines a complex version of Ei, which we wrap. It just naively extends the relation Ei(-x) = -E1(x) to the complex plane. This leads to a discontinuity between the real/complex implementations around the negative real axis:
>>> import scipy.special as sc
>>> sc.expi(-1 + 1e-12j)
(-0.21938393439552062+3.1415926535894254j)
>>> sc.expi(-1 - 1e-12j)
(-0.21938393439552062-3.1415926535894254j)
>>> sc.expi(-1)
-0.21938393439552062

This is not how we typically handle things in special (e.g. loggamma and gammaln are distinct functions for exactly this reason). Can we get away with deprecating the complex variant of expi (exp1 is a drop-in replacement), or at this point are we stuck with just documenting the strangeness?

Not sure about this yet. Mathematica iirc does the same strange thing, so some people may expect it. OTOH, I don't think changes here would cause the same level of fallout as with gammaln, as it's a rarer function.

Mathematica iirc does the same strange thing

Oof, so it does.

And so does Mpmath... I guess we're stuck with it.


Uncaught TypeError: Cannot read property 'which' of undefined

[Enter steps to reproduce below:]

Using vim mode, set up a function to allow you to use j j to exit insert mode to normal mode
Here is that function:

init.coffee
atom.commands.add 'atom-text-editor', 'custom:wait-key-press', (e)->
  oe = e.originalEvent
  char = String.fromCharCode(oe.which)
  char = char.toLowerCase() unless oe.shift
  atom.workspace.getActivePaneItem().insertText(char)

keymap.cson
'.editor.vim-mode.insert-mode':
  'j': 'custom:wait-key-press'

'.vim-mode.insert-mode:not(.mini)':
  'j j': 'vim-mode:activate-normal-mode'

Press the j key once.

Notes

I didn't write this function. I stole it from here
It worked up til 1.0.11, but not for 1.0.12 or 1.0.13
I may be missing that this was added natively to atom (key melodies, if you will) but I've looked at the release notes and don't see anything.

Atom Version: 1.0.13
System: Mac OS X 10.10.5
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Cannot read property 'which' of undefined
At /Users/cm022291/.dotfiles/atom/init.coffee:15

TypeError: Cannot read property 'which' of undefined
    at atom-text-editor.<anonymous> (/Users/cm022291/.dotfiles/atom/init.coffee:15:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/homebrew-cask/Caskroom/atom/1.0.10/Atom.app/Contents/Resources/app.asar/src/command-registry.js:240:29)
    at /opt/homebrew-cask/Caskroom/atom/1.0.10/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/homebrew-cask/Caskroom/atom/1.0.10/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/homebrew-cask/Caskroom/atom/1.0.10/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
    at KeymapManager.module.exports.KeymapManager.terminatePendingState (/opt/homebrew-cask/Caskroom/atom/1.0.10/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:498:14)

Commands
     -0:02.6.0 vim-mode:insert-after (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:01.1.0 custom:wait-key-press (atom-text-editor.editor.vim-mode.is-focused.insert-mode)

Config
{
  "core": {
    "disabledPackages": [
      "language-mustache",
      "linter-haml",
      "deprecation-cop",
      "overrides",
      "autocomplete-paths",
      "linter-foodcritic",
      "linter-less",
      "line-ending-selector"
    ],
    "themes": [
      "accents-ui",
      "photon-syntax"
    ]
  },
  "editor": {
    "invisibles": {},
    "scrollPastEnd": true,
    "preferredLineLength": 120,
    "showIndentGuide": true,
    "fontFamily": "Consolas",
    "fontSize": 16
  }
}

Installed Packages
# User
accents-ui, v1.0.0
atom-jasmine, v0.6.0
auto-update-packages, v1.0.0
file-icons, v1.6.9
highlight-line, v0.11.0
language-diff, v0.3.1
language-gitignore, v0.2.0
language-haml, v0.21.0
language-lisp, v0.1.2
language-log, v0.6.0
language-restructuredtext, v0.9.0
language-rspec, v0.3.0
language-rust, v0.4.5
linter, v1.5.2
minimap, v4.13.3
minimap-autohide, v0.10.1
minimap-git-diff, v4.1.8
omni-ruler, v0.4.2
open-recent, v2.3.0
pain-split, v1.4.0
photon-syntax, v0.4.7
set-syntax, v0.3.0
trailing-spaces, v0.3.2
vim-mode, v0.60.0

# Dev
No dev packages

After some looking into this, I found that I actually don't need the function in the init script at all anymore. Does anyone know when this was introduced?

Well, I haven't found the specific commit, but it's listed on the quality initiative: #7995
Closing this issue.


hello ,how to make  an animation by Infinigen？thanks.I first to use

Describe the feature you would like to see implemented

Hello, we provide an example command in the "generating high quality videos" section of the README, and more docs that will help on this are on their way very soon. Let us know if you have any issues running the Hello World and subsequent video generating command, be warned that videos are very compute-intensive


Investigate extracting firmware from Leviton updaters

The updates are available from Leviton here
Originally posted by @ChrisLizon in https://github.com/zwave-js/node-zwave-js/discussions/4087

Leviton will provide links to the OTA FW files themselves. Contact<EMAIL_ADDRESS>Here are the links they sent me in late November for the then current DZ15S (v1.22) and DZ6HD (v1.23) FW files.  Note, these were more recent versions than those provided in the then current Aeotec executable...  I have installed them both with no issues using zwjs2mqtt.
DZ6HD: https://decorasmartsupport.zendesk.com/attachments/token/MFT4C61yHdtG43RDv3QkVHANg/?name=DZ6HD_v1_22.ota
DZ15S: https://decorasmartsupport.zendesk.com/attachments/token/laPYbWOXZISNjsA7Vw8sEESCw/?name=DZ15S_v1_23.ota

See https://github.com/zwave-js/node-zwave-js/discussions/4087#discussioncomment-3972827 for details - not sure if still necessary.


Add switch syntax to EnvironmentVariableLookup

While EnvironmentVariableLookup provides a mechanism to inject environment variables into a config, I often want to switch on the env var rather than injecting the env var's value itself.
It's my understanding that Linux and Windows both forbid the = character in environment variable names, which allows us to introduce a new switch syntax to EnvironmentVariableLookup without breaking backwards compatibility.
Consider this YAML snippet:
  switchSetting: ${DW_SWITCH_SETTING foo=value-if-foo bar=value-if-bar:-default-value}

Because this template contains a = character, it would be treated as a switch statement. Cases are separated from one another by whitespace. If $DW_SWITCH_SETTING is set to foo, then the above would resolve to:
  switchSetting: value-if-foo

Would the community be open to a PR to add this functionality to EnvironmentVariableLookup?
I have a working implementation that I could polish for submission here.
cc @wrobstory

@jklukas I think this adds too much complexity to the configuration file syntax. It should be as simple as possible and this is clearly on the way to transform the simple (?) YAML syntax into a pseudo programming language.
If you need such complex logic in your configuration files, I suggest you'll use a configuration management solution like Ansible, Puppet, or Chef and create your configuration files from a template.
@dropwizard/committers Any other opinions?

Agreed. -1 one from me. Thank you for using dropwizard though.

Can this be made into a dropwizard module?

I'm not surprised this is considered too much complexity for base Dropwizard. Thanks for taking the time to consider.
I'll look into the possibility of making a dropwizard module or otherwise releasing this publicly. We've previously been templating configs with mustache and compiling them in a separate step before starting up a service, but the SubstitutingSourceProvider is a nice framework to allow filling out of the template within the same process. We're planning to continue down that path and would like to provide an option for others who want to do the same.

If there are method visibility scope changes or new interfaces to be created which would make it easier to do something like this in a module, please let us know.


Remove some config variables which aren't used anymore.

And update the theme setup page to reflect this change.

Hi @jrfnl,
Could you rebase this pr please ?

@aron-bordin Rebased ;-)

@jrfnl thx again for all these PRs :+1:


 Text just spills over at the moment.

Fixed in https://github.com/dawsonalex/portfolio-theme/commit/ac153981b67b9d4d26bbdd0a59f6115b2c565e93


fix: Updating to fabric 3.2.2 (WIP)

Hi, I don't know that this is quite the right set of changes to use fabric 3, but the tests pass at least.

Theoretically this fixes #48

Probably this is not as good as #46


import table file failed CyREST

I cannot import the table file correctly. I can import the network file but cannot import the table file.
The table headers are read but not the content. Please see the figures.

The code I am using is as follows,
# add a new network
RCurl::getURL(URLencode("http://localhost:1234/v1/commands/network/import file"),customrequest='POST',httpheader=c('Content-Type'='application/json'),postfields=  jsonlite::toJSON(
  list(
    columnTypeList="source,interaction,target",
    dataTypeList="i,s,i",
    file=paste0(getwd(),"/GCTOF/GCTOF_Abraham_M_v_CM_Dobutamine/MetaMapp/chemsim_krp_07.sif"),
    firstRowAsColumnNames="false"
  ), auto_unbox = T, force = T))

# set attributes.
RCurl::getURL(URLencode("http://localhost:1234/v1/commands/table/import file"),customrequest='POST',httpheader=c('Content-Type'='application/json'),postfields=  jsonlite::toJSON(
  list(
    # caseSensitiveNetworkKeys="true",
    # dataTypeList="i,s,s,s,d,d,s",
    # dataTypeTargetForNetworkCollection="Node Table Columns",
    # dataTypeTargetForNetworkList="Node Table Columns",
    # delimiters="\t",
    # delimitersForDataList="\t",
    file=paste0(getwd(),"/GCTOF/GCTOF_Abraham_M_v_CM_Dobutamine/MetaMapp/node_attributes_chemsim_krp_07.tsv"),
    firstRowAsColumnNames="true",
    # keyColumnForMapping="shared name",
    keyColumnIndex="1",
    # newTableName="table",
    # whereImportTable="To a Network Collection",
    startLoadRow="2"

  ), auto_unbox = T, force = T))

The files I am using can be downloaded network here and table here.

You were very close! I got it work with the following parameters:
dataTypeTargetForNetworkCollection="Node Table Columns",
dataTypeList="s,s,s,s,d,d,s",
delimiters="\t",
file=paste0(getwd(),"/GCTOF/GCTOF_Abraham_M_v_CM_Dobutamine/MetaMapp/node_attributes_chemsim_krp_07.tsv"),
firstRowAsColumnNames="true",
keyColumnIndex="1",
whereImportTable="To a Network Collection",
startLoadRow=“2"

I think the main issue was with dataTypeList. Note that key columns should always be STRING type (s), even if they are technically integers. You’ll notice that after the SIF import, the name and shared names are STRING type. So, when Cytoscape then tries to read in your table data, it sees INT types and Java can’t safely match INTs and STRINGs, so no matches are found and no data are loaded.  By forcing the key column to be STRING (the first ’s’ in dataTypeList) this issue is resolved.
If it is helpful, I troubleshooted this case using the Swagger interface (Help > Automation > CyREST Commands API). This makes it easy to try a bunch of things without worrying about confounding errors coming from local setup, etc. You can also work on the syntax directly in Cytoscape via the Automation Panel (View > Show Automation Panel). I almost always work out syntax here first before scripting.
Also, there is an RCy3 package that provides helpful wrapper functions around all this syntax so you don’t have to worry about it! See recent paper:
https://f1000research.com/articles/8-1774/v1


Accuracy no longer works with logits

🐛 Bug
Thresholds are now limited to the range (0,1), so I cannot set a threshold that makes sense for logits (e.g. 0)
To Reproduce
Steps to reproduce the behavior:
Accuracy(threshold=0.)

Code sample
import torchmetrics
torchmetrics.Accuracy(threshold=0.0)

Expected behavior
A threshold of 0 should be valid for binary and multilabel classification.
Additional context
It makes sense to accept logits into accuracy, as often the training step has the logit->probability and probability->loss calculation in one layer for numerical reasons (e.g. nn.BCEWithLogitsLoss), and forcing recalculation of the sigmoid is unnecessary, as it's monotonic.
The documentation for Accuracy states:
threshold (float) – Threshold for transforming probability or logit predictions to binary (0,1) predictions, in the case of binary or multi-label inputs. Default value of 0.5 corresponds to input being probabilities.

@shenberg what version are you using? this shall be fixed on master now #351
feel free to reopen if you still have this issue... :rabbit:

Umm, unfortunately, Accuracy has its own check, see accuracy.py, lines 208-209 on current master

Agreed, can confirm that in the latest version 0.4.1 the threshold can't be set to 0, which makes it unable to handle output logit of binary classification model (where there is no sigmoid)


Strange behaviour of loss graph

Hey, I tried to run the notebook in Google Colab and when training the loss behave this way:

is it normal/expected?
I did not tweak the code nor any parameters. Please advise.

This is normal, yes. And it is a sign of the model being able to learn.


Create Ninja_and_the_fence.cpp

Ninja and fence problem solution covered all approach recursion + memoization , botton-up and space optimization methods to solve the problem .

Give this repo a star and follow me for follow back 😊


option.imageAccept doesn't seems to work

Hello,
when imageFileInput turn on, it will create the following dom

<input class="se-input-form _se_image_file" type="file" accept="image/" *="">

maybe something wrong in this line, could you help to take a look?
thanks : )
https://github.com/JiHong88/SunEditor/blob/6056388edd8fbcbc446a5ee9cc546854a4482e5b/src/plugins/dialog/image.js#L144

@vn516726 Thank you for your contribution.
I'll notify you after the version update.

Hi @JiHong88
Is this fix released ?
Kindly confirm. Because i have same issue in Suneditor react
Thank you.

@vn516726 @vijayaragavan95
The 2.33.2 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.


More tests

Coverage increased (+2.04%) to 30.375% when pulling fea6e02b4f33bf8993f2d07c3ad44c30ad99ce54 on more_tests into 04ba93a023964aff1c977387fd7e5e318660f353 on master.


iOS Memory leak

-(NSString*)getPage:(NSString *)url ofPage:(size_t)pageNumber, this func lead to a Memory leak  on iOS, and 'CGFloat dpi = 300.0 / 72.0;' this code set dpi to 300 is too large, on iPhone6 crashed when i preview a large pdf file.

Facing same issue in iPhone 8 - iOS software 14.8
Storage 62.1 GB out of 64 GB


pythonPackages.pytest-mysql: init at 2.0.1 (and its dependencies)

Motivation for this change
Packaging Python module 'pytest-mysql' 2.0.1 in Nix, and also its missing dependencies, namely 'mirakuru'  2.1.2 and 'port-for' 0.4.
Please note that the test case ipc_closed_handle is unstable in libuv, it is also submitted as a separate PR (https://github.com/NixOS/nixpkgs/pull/80341)
Things done

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

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

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

please get rid of these mass-rebuilding commits in PR's that don't need it.


Analyzer false negative with async* functions + generic classes

I found a scenario where the analyzer/IDE doesn't report any error on a code that doesn't compile, when using a generic class + async* functions.
Here's a snippet showing the bug:
class Generic<T> {
  Generic(this.cb);
  final Stream<T> Function() cb;
}

final shouldReportAnError = Generic<String>(() async* {
  yield 42;
});

In this snippet, we assigned Stream<int> Function() to Stream<String> Function() – which isn't valid. But the analyzer doesn't complain.
The code properly does not compile, but dart analyze and the IDE report no errors.
Dart SDK version: 2.9.0-20.0.dev.flutter-8afe9875a6 (be) (Thu Jul 2 04:17:09 2020 +0000) on "macos_x64"

Still an issue at head.

Still an issue at head.

Analyzer now reports:

A yielded value of type 'int' must be assignable to 'String'.


Carthage update Issue

Trying to update to Instructions version to 1.2.2 using Carthage.  The checkout fails returning this error. It may be worth noting this started occurring after updating Xcode to version 10.2 with the Swift 5.0 release
A shell task (/usr/bin/env git clone --quiet https://github.com/ephread/InstructionsSnapshots.git /Users/user_name/Documents/.../Carthage/Checkouts/Instructions/Examples/Example/Snapshot\ Tests/Supporting\ Files/Snapshots) failed with exit code 128: git-lfs filter-process: git-lfs: command not found fatal: the remote end hung up unexpectedly warning: Clone succeeded, but checkout failed.
Environment:
Xcode 10.2
Swift 5.0
Carthage 0.32.0

Hi @thejbix, you don't have Git LFS installed. It's required because of the submodule storing the snapshot tests and sadly, there's no way to tell Carthage to ignore submodules.

Great, that resolved my issue.
Thanks


[FEATURE] Create Action to do Branch Cleanup

Currently branches are left over from PRs. This often means even after you delete the update branch the reject##### branch exists.
Solution
Create a GitHub Action that when a branch that matches thecruft/reject/* or cruft/update, it deletes all the other branches.

For Reference


Scheduler should change semester without having to press "change semester"

Cause why should a user have to select what semester they want to view, and then click yet another button?

Here is a prototype of the change, but it performs a page reload on change, which leads to some weirdness. https://github.com/hacsoc/the_jolly_advisor/compare/master...JKobyP:issue181


Update README.md

Thank you for contributing! Please check the following things before submiting your PR:
Required:

[x] I have read and followed the contributing guidelines

If necessary:

[ ] I have updated the README and documentation.
[ ] I have updated the ChangeLog with the changes I have made.

Updated README.md

Closes #

Note: we will close your PR without comment if you do not check the required boxes above and provide ALL requested information.

I just thought, I will squash and merge when you approve this pr, but anyway why do you not use squash and merge

I thought you were only waiting for my review as I was late at giving review. So I made sure it gets merged immediately
I don't understand why would I squash and merge?

I thought you were only waiting for my review as I was late at giving review. So I made sure it gets merged immediately
I don't understand why would I squash and merge?

Squash and merge will make one commit, and that's the best I consider when there are more than 10 commits in pr.

I'll keep that in mind.

Ok, good night


comment system

how to integrate Disqus or other comment systems?

??
On Thu, Feb 28, 2019, 2:26 PM Sam Azgor<EMAIL_ADDRESS>wrote:

how to integrate Disqus or other comment systems?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ageitgey/amplify/issues/33, or mute the thread
https://github.com/notifications/unsubscribe-auth/ARITS4f9EX_qErh9wUJA3SMEGox38e8Cks5vSEmHgaJpZM4bXxS8
.

You would just paste in the Disqus code on the page template under the content here: https://github.com/ageitgey/amplify/blob/master/_layouts/post.html#L12

my blog added Disqus
https://gfw-blog.netlify.com/2018/05/11/cse-amp.html

Hi, this is the maintainer of @staticmanlab, a public GitLab instance of Staicman.  Here's some shortcomings of the commenting systems mentioned above.

Gitment, Gitalk and Utterance support only GitHub, and they require user login before commenting. This can scare away many non programmers from leaving a comment to your posts. Besides, comments are part of the site's static content, not a software package problem. As a result, using GtiHub issues for comment storage is wrong in principle and bad in terms of SEO.
Commento is not free as in free beer.  For a personal blog with small traffic, you might find a monthly fee of $5 too expensive.
Disqus and Isso contain a 3rd-party script to be loaded during page rendering. The code block for loading each of them shows that the static comments are not rendered as static HTML code. This hinders search engines from grabbing the comments, which are part of the site's content.  As a result, that leads to suboptimal SEO.
Disqus is difficult to access for non programmers in the PRC, as reported in https://github.com/Huxpro/huxpro.github.io/issues/258#issuecomment-430842480.

You may avoid these problems by switching to Staticman, which makes use of GitHub/GitLab Pull/Merge Requests instead of issues. Under Staticman's model, static comments are YML/JSON files stored in the remote GitHub/GitLab repo (usually under data/comments, configurable through the path parameter in root-level staticman.yml), and through a static blog generator (Jekyll/Hugo/etc), the stored data are rendered as part of the content. This gives a total ownership of a static site's comments.

To have a taste of Staticman in minutes, you might try Beautiful Hugo.  Otherwise, you may consider cloning any one of my demo sites on Framagit.


⚠ ClamAV has degraded performance

In 4a846ed, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in b9fabfc after 5 minutes.


get life cycle events from parent

Hello, I have an app to display temperature in 2 formats Celsius/Farenheit
I have a structure with ion-tab (2 tabs).
First are "Settings" to change Celsius/Farenheit display with ion-toggle.
Seconds are "Sensors", in it, I have a component and in this component I have super-tabs.
When I load "Sensors", I see the first tab of super-tabs with display of temperature and I have ionViewWillEnter fired in first tab of super-tabs.
So I go to "Settings", change Celsius/Farenheit and return to "Sensors" and I want to update display in frist tab of super-tabs.
So ionViewWillEnter not fired because it is already loaded, but ionViewWillEnter fired on its parent.
I have display rootNavCtrl in console and I see a lot of EventEmitter :
rootNavCtrl.viewDidEnter
rootNavCtrl.parent.parent.viewDidEnter
rootNavCtrl.parent.parent.viewWillEnter
rootNavCtrl.parent.viewCtrl.willEnter
I have subscribe on theses but nothing works
How can I get Life Cycle Event from parent ?

I found solution with Events ionic Framework
In Settings page, I have a fucntion fired when I change Celsius/Farenheit
So I publish an event:
this.events.publish('sensorTab', tempMode);
In first tab of super-tabs, I subscribe to this event
this.events.subscribe('sensorTab', (tempMode: string) => {
this.tempMode = tempMode;
});


gateway-api: appProtocol support (GEP-1911)

/test

/test

/ci-gateway-api

@sayboras 🥹

Thanks for the ping, I have added myself as reviewer.

/ci-gateway-api

From a quick look, the changes are looking good to me. Will take a closer look later.

/test

@sayboras ci-ipsec-upgrade failure doesn't look like my doing, do I need to check it?

/test

/test

Seems like we just need to wait for ack from other codeowner, so you don't need to rebase with main branch (just to avoid re-run the tests).

@sayboras I occasionally rebase to make sure there are no conflicts, will wait for the ack from the codeowner.

I occasionally rebase to make sure there are no conflicts, will wait for the ack from the codeowner.

Understood and thanks, I normally just rely on github UI to flag if there is any conflict with main branch.

/test


pipeline for precip

code is needed to fetch precip data, calculate cumulative precip, and do any other munging needed along the way

precip data has come from at least 2 different sources for us in the past. data might come from www.srh.noaa.gov/data/ridge2/Precip/qpehourlyshape (maria) or GDP (most others, e.g., https://github.com/USGS-VIZLAB/hurricane-harvey/blob/master/scripts/fetch/fetchPrecip.R, https://github.com/USGS-VIZLAB/hurricane-irma/blob/master/scripts/fetch/fetchPrecip_cells.R). offer both (all?) in this template, to be flexible about the location of future storms.

in past vizzies we've simplified the precip to county-level or large-grid-cell-level polygons. because this vizzy will use a raster/GIF format, such simplification is not needed here.

it may be possible to simplify the precip-fetching code using sf and other insights; see https://github.com/USGS-VIZLAB/how-gdp/blob/master/scripts/fetch/fetch_utils.R#L14-L49 for our most recent iteration on this

There are a number of ways we could go with this. I just started working on the most direct use of the StageIV data possible. We have precip cells that lay out in a curvilinear grid like this:

In the past, we've generated a cell layout that we want for visualization and used geoknife to do the resampling. I think the premise here is that we will use this full precip cell resolution?
Because it is on a curvilinear grid, we do have to work with it as point data -- which is fine as long as we can adjust the pch/cex of the points such that they completely overlap.
Question: Should I continue to pursue this approach? I will end up with a big-ol tidy data.frame (id, point location) of spatial information and an accompanying even bigger tidy data.frame with precip value data (id, time, value).

Blodgett - interesting challenge. seems we'd end up tweaking cex and pch a lot if we went that route. Can you turn it into a grid of polygons?

st_voronoi? https://stackoverflow.com/questions/45719790/create-voronoi-polygon-with-simple-feature-in-r

Yes. I can pass along polygons instead of points.

Yes?

This was helpful. https://github.com/r-spatial/sf/issues/474

OK, so my plan is to implement a process step that takes what's been fetched and returns a list of raster images that emulate the pixels of our gif. I can use the view_polygon as the domain of the raster, but what should I do about the resolution? e.g. where do I get the information to generate a cell count in x and y?

I'm wrapping this up. We may need to iterate on things a bit. I ended up using the fasterize package to convert sf polygons to raster rather than going full on GDP style spatial intersection. What this means is that we only have access to "max", "min", "any" type statistics when transferring values from the curvilinear grid to the raster grid. For now, I just chose max, but we can experiment with changing it if we want. For now, it's hard coded, but easy to change.

"max" sounds like it could lead to some noticeably flawed cumulative precip estimates. (are you already computing cumulative, or are these precip totals within each timestep?) what is "any"?

Shoot. I hadn't thought about the cumulative being applied after the resampling. I'll accumulate before converting to raster.
I'm not sure what the "any" is. Sounds sloppy.

OK, I just added a:
    group_by(id) %>%
    arrange(time_id, .by_group = TRUE) %>%
    mutate(precip = cumsum(precip)) %>%
    ungroup()

Update to my PR is coming once this rebuilds.


should we setup fullpath log format.

Description:

As we know, Gateway use zap package as log print. but It's short path on output each line text.  so It's hard to look over which file when there is have same filepath. we need a fullpath log format or some format that base on one directory behind or not?

Here is a example:
2023-03-25T23:01:03.519+0800    INFO    /Users/xx/go/src/github.com/envoy/gateway/internal/log/log_test.go:17     this is test

but I think it's too long. May be we just need this.
2023-03-25T23:01:03.519+0800    INFO   internal/log/log_test.go:17     this is test

[optional Relevant Links:]

Any extra documentation required to understand the issue.

+1

Hey, I will take a look

great thanks @cnvergence !

Talking about this in the Envoy Gateway meeting... lots of questions around whether the fullpath use case is really desired, or not so much. Any further thoughts from anyone? If not... I might recommend we just close this one until we have a concrete use case that needs the longer paths.

As there are no concrete use cases for this, I think it should be closed.
If there will be a need to make a configurable logging, relative path log format can also be added based on custom CallerEncoder

As there are no concrete use cases for this, I think it should be closed.
If there will be a need to make a configurable logging, the desired relative path log format can be added by creating a custom CallerEncoder

Closing this one and #1237 – thanks @cnvergence! The work is much appreciated. 🙂


Import documentation

Now that the import documentation has landed, we need to ensure that we add a documentation section to the pkg resource docs to specify an example of the command that can be used to run an import
Please note, this also needs added to the Kubernetes documentation!

closing in favour of the much more detailed #3773


Check for unnecessary esc

Is your feature request related to a problem?
When code is refactored, where things which were directly output before are now assigned to variables, the esc_html/attr often stay as they were even though they are not necessary anymore.
Describe the solution you'd like
Inform the user if he used an esc_ function where it's not necessary because the variable isn't output.
Additional context (optional)
The benefit is purely cosmetical. The advantage in performance is negligent.

Some thoughts on this:

Often using esc_attr()/esc_html() early - like when preparing an HTML snippet which will be used in output a little later - simplifies code and prevents needing to use the more expensive wp_kses() functions.
As WPCS will not necessarily know if that is what's being done, sniffing for this will be extremely prone to false positives/negatives.

@jrfnl you are right.
How about a more restricted approach:
when using it in an array for e.g. 'desc' => ,... (inclding name, type, id,...) it should report unnecessary escaping?

Same thing. That array may be used in a sprintf() with another HTML wrapper and when the array contains a mix of hard-coded values and values which need escaping, using the escaping in the array may be more efficient.