Update using bool indicator with global scope

I'm suggesting these changes as I noticed a minor issue with this bit of code. When I input "the birds fly why fish swim" it showed the result "Not okay" \n "Ok", instead of just "Not Okay"
It seemed like this was due to the bool indicator for an error being located within the while loop. I have changed sentence() and conjunction() from bool to void, as they no longer need to return a value to main(). The program now remembers if there has been a mistake, even when going back through sentence(), and delivers one answer after the prompt "." rather than multiple answers for one sentence.

Thanks for pointing this out, that's in fact not very clean.
I've decided not to merge your PR as I'm not a big fan of introducing another global variable; I've modified the code to just verify a single input sentence. Alternatively, I could have read a whole line at a time with getline, but I believe this hasn't been introduced yet in Chapter 6, so instead I've gone with this solution. Any input now only ever produces a single "OK" or "Not OK".


IndexError when training model

This is the command used to train the model :
python -m train --experiment_name "Spoter" --training_set_path "data/WLASL100_train_25fps.csv" --validation_set_path "data/WLASL100_val_25fps.csv" --testing_set_path "data/WLASL100_test_25fps.csv"
I get the following error after the program runs for awhile:

Starting Spoter...
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/content/drive/MyDrive/Spoter/train.py", line 272, in
train(args)
File "/content/drive/MyDrive/Spoter/train.py", line 174, in train
train_loss, _, _, train_acc = train_epoch(slrt_model, train_loader, cel_criterion, sgd_optimizer, device)
File "/content/drive/MyDrive/Spoter/spoter/utils.py", line 19, in train_epoch
loss = criterion(outputs[0], labels[0])
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/loss.py", line 1152, in forward
label_smoothing=self.label_smoothing)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py", line 2846, in cross_entropy
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 78 is out of bounds.

Changing parameters like the epochs and learning rate does not fix the issue.

Hi @adhithiyaa-git,
It seems that wou are training the WLASL100 dataset (with 100 classes) but only using the default --num_classes argument, which is 64. This would cause the IndexError.
Try adding --num_classes 100 to your training command and please let me know if this helps.

Hi,
I was getting the same problem, and I saw this question. I tried adding the --num_classes 100 but I got another error.
The command I used to train the model:
python -m train --experiment_name trial --epochs 1 --training_set_path "C:\Users\Asus\Documents\Lecture Notes\Intro to Artificial Intelligence\spoter-main\datasets\WLASL100_train_25fps.csv" --validation_set_path "C:\Users\Asus\Documents\Lecture Notes\Intro to Artificial Intelligence\spoter-main\datasets\WLASL100_val_25fps.csv" --testing_set_path "C:\Users\Asus\Documents\Lecture Notes\Intro to Artificial Intelligence\spoter-main\datasets\WLASL100_test_25fps.csv" --num_classes 100
The error:
Starting trial...
Traceback (most recent call last):
File "C:\Users\Asus\anaconda3\envs\CS5804_AI\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Asus\anaconda3\envs\CS5804_AI\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Asus\Documents\Lecture Notes\Intro to Artificial Intelligence\spoter-main\train.py", line 271, in
train(args)
File "C:\Users\Asus\Documents\Lecture Notes\Intro to Artificial Intelligence\spoter-main\train.py", line 174, in train
train_loss, _, _, train_acc = train_epoch(slrt_model, train_loader, cel_criterion, sgd_optimizer, device)
File "C:\Users\Asus\Documents\Lecture Notes\Intro to Artificial Intelligence\spoter-main\spoter\utils.py", line 19, in train_epoch
loss = criterion(outputs[0], labels[0])
File "C:\Users\Asus\anaconda3\envs\CS5804_AI\lib\site-packages\torch\nn\modules\module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "C:\Users\Asus\anaconda3\envs\CS5804_AI\lib\site-packages\torch\nn\modules\loss.py", line 1047, in forward
return F.cross_entropy(input, target, weight=self.weight,
File "C:\Users\Asus\anaconda3\envs\CS5804_AI\lib\site-packages\torch\nn\functional.py", line 2693, in cross_entropy
return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)
File "C:\Users\Asus\anaconda3\envs\CS5804_AI\lib\site-packages\torch\nn\functional.py", line 2388, in nll_loss
ret = torch._C._nn.nll_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
IndexError: Target -1 is out of bounds.

@rhngpta96 I'm facing the same issue as you did. Were you able to fix it?

Issue is solved with the change proposed in this comment from another issue thread
https://github.com/matyasbohacek/spoter/issues/2#issuecomment-1172304554


Membrane protein

Hi,
I have to search pockets in membrane proteins.
I don't want mdpocket to find pockets in the membrane.
I can't remove the membrane since I don't want mdpocket to find pockets where the membrane is either.
Which is the best approach to solve this situation?
I have played with the -c, -k and -a options but I am not sure if they work as I need or if they just remove the membrane. It is hard to see by eye since when I run mdpockets with the membrane I also see small pockets between the protein and the membrane.
Thank you for your time :)

Not sure this is somehow possible now. What would be needed is a flag to specify for instance what alpha spheres to drop if they overlap with particular residus / atoms.
Is it a simple POPC membrane or a jolly mix of different lipids?

Thank you for your fast reply :)

Is it a simple POPC membrane or a jolly mix of different lipids?
I have to work with both situations

By now, I will run mdpocket without the membrane and then I will find out which grid points are overlapping with the membrane somehow. I look forward to use this new flag.
Cheers


Installation command issues

The command "pip install -e '.[docs,test]'" from the installation section in README.md maybe should be written as "pip install -e '.[docs,tests]'",because the corresponding file name in the project is "tests",or rename the "tests" to "test".

Closed due to duplicate issue


Add New Merchants & Exchanges

Description
Add two new additions to the merchants and exchanges pages.
Exchanges
Steathex.io
https://www.reddit.com/r/NavCoin/comments/cqq8nb/exchange_nav_at_stealthexio_an_anonymous_and/
Merchants
Blockashion.com
https://www.reddit.com/r/NavCoin/comments/cr3rcl/we_added_navcoin_httpblockchashioncom/
Acceptance Criteria
Add any additional acceptance criteria you think should be included to the list below.

[x] Check the merchants and exchanges actually have integrated NAV
[x] Description is satisfied.
[x] Changes display correctly on desktop / mobile.
[x] Translations have been added or ammended as necessary.

Claimed :)

Merged


Suggestion: rocks and sticks require block underneith to "stay"

Because both of these blocks are partial blocks, and because they spawn on the ground, I think it would make sense for them to have the same logic that crops and flowers have in vanilla, where if the block underneath them is broke, they drop as an item. It struck me when I was running the ClearBlocks command from Genloader that this would make sense but it's really just a suggestion :)
I look forward to watching this progression, keep up the great work McJty!

Will be fixed next version. This does indeed make sense. Thanks for suggesting


[1.2.13] Hemp appears as gear in Hwyla

In reference to #277, hemp is again appearing as Wooden Gear in the tooltip.
Using Hwyla-1.8.13-B26_1.11

Personally I'm going to switch tool-tip providers. I don't see anyone reporting on TUMAT or The One Probe.

I'm fairly certain I know the cause of this but I believe it would require a rewrite of the hemp block that I don't think is worth the trouble.


jailbreak-resources: Terminated due to code signing error

Terminated due to code signing error
(lldb) process connect connect://localhost:1234
Process 1180 stopped

thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x000000021321ded0 libsystem_kernel.dylibmach_msg_trap + 8 libsystem_kernel.dylibmach_msg_trap:
->  0x21321ded0 <+8>: ret

libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x21321ded4 <+0>: mov    x16, #-0x20
0x21321ded8 <+4>: svc    #0x80
0x21321dedc <+8>: ret
Target 0: (QQ) stopped.
(lldb) c
Process 1180 resuming
Process 1180 stopped

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=50, address=0x100aa9dd4)
frame #0: 0x0000000100aa9dd4 cy-slq9Yl.dylib_dyld_is_memory_immutable cy-slq9Yl.dylib_dyld_is_memory_immutable:
->  0x100aa9dd4 <+0>:  sub    sp, sp, #0x60             ; =0x60
0x100aa9dd8 <+4>:  stp    x24, x23, [sp, #0x20]
0x100aa9ddc <+8>:  stp    x22, x21, [sp, #0x30]
0x100aa9de0 <+12>: stp    x20, x19, [sp, #0x40]
thread #19, queue = 'com.apple.network.connections', stop reason = EXC_BAD_ACCESS (code=50, address=0x100aa9cc8)
frame #0: 0x0000000100aa9cc8 cy-slq9Yl.dylibdyld_image_path_containing_address cy-slq9Yl.dylibdyld_image_path_containing_address:
->  0x100aa9cc8 <+0>:  sub    sp, sp, #0x40             ; =0x40
0x100aa9ccc <+4>:  stp    x20, x19, [sp, #0x20]
0x100aa9cd0 <+8>:  stp    x29, x30, [sp, #0x30]
0x100aa9cd4 <+12>: add    x29, sp, #0x30            ; =0x30
thread #35, queue = 'LS bundle proxy for current process', stop reason = EXC_BAD_ACCESS (code=50, address=0x100aa9cc8)
frame #0: 0x0000000100aa9cc8 cy-slq9Yl.dylibdyld_image_path_containing_address cy-slq9Yl.dylibdyld_image_path_containing_address:
->  0x100aa9cc8 <+0>:  sub    sp, sp, #0x40             ; =0x40
0x100aa9ccc <+4>:  stp    x20, x19, [sp, #0x20]
0x100aa9cd0 <+8>:  stp    x29, x30, [sp, #0x30]
0x100aa9cd4 <+12>: add    x29, sp, #0x30            ; =0x30
Target 0: (QQ) stopped.
(lldb) c
Process 1180 resuming
Process 1180 stopped
thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGKILL
frame #0: 0x0000000100aa9dd4 cy-slq9Yl.dylib_dyld_is_memory_immutable cy-slq9Yl.dylib_dyld_is_memory_immutable:
->  0x100aa9dd4 <+0>:  sub    sp, sp, #0x60             ; =0x60
0x100aa9dd8 <+4>:  stp    x24, x23, [sp, #0x20]
0x100aa9ddc <+8>:  stp    x22, x21, [sp, #0x30]
0x100aa9de0 <+12>: stp    x20, x19, [sp, #0x40]
Target 0: (QQ) stopped.
(lldb) c
Process 1180 resuming
Process 1180 exited with status = 0 (0x00000000) Terminated due to code signing error
(lldb)

The target process being debugged needs the get-task-allow entitlement . you can resign the app with get-task-allow entitlement as a temporary workaround. then debugserver will works!
I believe they have fixed it already.
Next "Unc0ver Jailbreak Resources" update in Cydia App should solve it.

The target process being debugged needs the get-task-allow entitlement . you can resign the app with get-task-allow entitlement as a temporary workaround. then debugserver will work!
I believe they have fixed it already.
Next "Unc0ver Jailbreak Resources" update in Cydia App should solve it.

Thanks, I believe they have fixed it already.

I'm having the same issue, latest version of u0. My device is iPX 12.1.1 @Amoystyle

On Electra I hit the same.  Without changing the get-task-allow entitlement, and going through the whole re-signing process, I was able to get it working by loading tweaks when I ran my jailbreak.

On Electra I hit the same. Without changing the get-task-allow entitlement, and going through the whole re-signing process, I was able to get it working by loading tweaks when I ran my jailbreak.

How do you make it work? You made some miraculous tweaks to avoid it ?


Store json body

provide a way to save raw body string when calling parseBody

Hi, @u007! Thanks again for this PR.
All Angel subprojects have been consolidated into a single monorepo: https://github.com/angel-dart/angel.
Please fork the monorepo, and open a new PR there instead.


Create htl-steyr.txt

University official website: https://www.htl-steyr.ac.at
official website of a long-term IT related course: https://www.htl-steyr.ac.at/index.php/abteilung-e
Proof for official email domain: https://www.htl-steyr.ac.at/index.php/schule/kontakt/lehrer

@prathgeb Pull request merged. Thank you!


Why multi queries is slow than other language driver?

in test:https://www.techempower.com/benchmarks/#section=data-r20&hw=ph&test=query
I'm sorry to ask this question, but I do want to understand why rust db driver is slow than c++ and js driver in multi queries

Moving this to a discussion as being faster than other implementations is not explicitly a goal of ours, and we didn't author the TechEmpower benchmark.
If you can nail down a specific part of SQLx that is slow but shouldn't be (for example: query logging), by all means open an issue.


Ability to query NWP data thru an API

Hello, I have looked through the documentation quite a bit and have had trouble finding a command which queries NWP results through an API, if one exists. I'm looking for some sort of function like:
ghi_prediction_results = function( date_range, longitude, latitude, altitude, **aargs, **kwargs)

I found solarforecastarbiter.reference_forecasts.models.gefs_half_deg_to_hourly_mean but was met with a FileNotFoundError, namely:
FileNotFoundError: gefs\2020\01\01\12\gefs_c00.nc does not exist

I expect I'm not understanding something crucial.
Thanks in advance for the guidance :)

NWP data is not available through the SFA API. You can run the CLI tool solararbiter fetchnwp to download relevant data from NOAA servers to your machine. https://solarforecastarbiter-core.readthedocs.io/en/latest/cli.html

Gotcha, thanks!


Prepare the ownership change of this action

In order to improve the governance and the future of this action, I created a GitHub organization called Actions-Able which is composed of other action maintainers and co-maintainers I work with.
This issue concerns preparing the migration to this new ownership without breaking the current use of<EMAIL_ADDRESS>in our user workflows.

Due to complexity and maintainer time availability, this action will not be moved under this organization, to avoid disruption in our users' workflows.


args not passed to pix2pix and type=bool is not supported

many args are not passed: flips, load_size, AtoB_direction, etc
also: type=bool in argparser is not supported and can give wrong value:
http://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse

+1
I didn't realize until after I trained the model... To avoid the confusion, could you add a mention on the readme about this? I can also submit a pull request to fix some of it if you like, but I'm a machine learning noob, so I'll probably not be able to re-wire all the missing parameters.


Revert "Add Lithuanian News Source"

Reverts flairNLP/fundus#393 due to compatibility issues with #357
Maybe we should finish #357 and #403 first and then I can update this to fit the new requirements

What's the matter with this source and #357

What's the matter with this source and #357 normally this shouldn't interfere at all.

When you did #357, you had to redo the init.py files, since the path for RSSFeed and SiteMap are changed with the PR. I can't change lt/init.py in this PR, since it's incompatible with the current version, and I can't change it in #403 because it doesn't exist yet.

When you did https://github.com/flairNLP/fundus/pull/357, you had to redo the init.py files since the path for RSSFeed and SiteMap are changed with the PR.

That's fine and something that should be addressed in #357


fix(tests): Update the test timeout on long running tests

Fixes: #55

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Code for univariate_data() preprocessing function in LSTM Timeseries documentation example incorrect

Thank you for submitting a TensorFlow documentation issue. Per our GitHub
policy, we only address code/doc bugs, performance issues, feature requests, and
build/installation issues on GitHub.
The TensorFlow docs are open source! To get involved, read the documentation
contributor guide: https://www.tensorflow.org/community/contribute/docs
URL(s) with the issue:
https://www.tensorflow.org/tutorials/structured_data/time_series
Description of issue (what needs changing):
The code for the univariate_data function in the example located at the above site creates a series of indexing and method not found errors. It can be resolved by the following code.
def univariate_data(dataset, start_index, end_index, history_size, target_size):
data = []
labels = []
start_index = start_index + history_size
if end_index is None:
end_index = len(dataset) - target_size
for i in range(start_index, end_index):
#indices = range(i-history_size, i)
# Reshape data from (history_size,) to (history_size, 1)
data.append(dataset[i-history_size:i].values.reshape(history_size, 1))
labels.append(dataset[i+target_size])

return np.array(data), np.array(labels)

Tensorflow/Tensorflow is dynamic being. You can not steal her soul and keep
it static.
Cure your programming addiction by taking vacation.
On Mon, Jun 8, 2020, 4:36 AM Brian Waite<EMAIL_ADDRESS>wrote:

Thank you for submitting a TensorFlow documentation issue. Per our GitHub
policy, we only address code/doc bugs, performance issues, feature
requests, and
build/installation issues on GitHub.
The TensorFlow docs are open source! To get involved, read the
documentation
contributor guide: https://www.tensorflow.org/community/contribute/docs
URL(s) with the issue:
https://www.tensorflow.org/tutorials/structured_data/time_series
Description of issue (what needs changing):
The code for the univariate_data function in the example located at the
above site creates a series of indexing and method not found errors. It can
be resolved by the following code.
def univariate_data(dataset, start_index, end_index, history_size,
target_size):
data = []
labels = []
start_index = start_index + history_size
if end_index is None:
end_index = len(dataset) - target_size
for i in range(start_index, end_index):
#indices = range(i-history_size, i)
Reshape data from (history_size,) to (history_size, 1)
data.append(dataset[i-history_size:i].values.reshape(history_size, 1))
labels.append(dataset[i+target_size])
return np.array(data), np.array(labels)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/40257, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIT525SOLLV5KZXCBJ3IXZ3RVRFD3ANCNFSM4NX3ZK7A
.

@Ujustwaite
Can you provide the colab link to show where exactly you are facing the problem.Thanks!


Bump version to match crate branch

To avoid problems with multiple glib versions (0.4.0 and 0.4.1) being resolved by Cargo, when working with git versions of gtk-rs crates.

@talklittle Thanks
👍

Sorry but versions are updated when we make a new release. Changing the version number now would make the new release problematic.

@GuillaumeGomez I think it is an oversight that the master branch and crate branch have different versions though. crate is currently 0.4.1 while master is 0.4.0, and that seems wrong to me. Shouldn't they be in sync?

Actually master should be versioned 0.5.0 probably, it's API incompatible with the version on crates.io and it's what is going to become 0.5.0.

@sdroege Why is the glib crate different than all the other gtk-rs crates in this regard?
If I drop a [patch.crates-io] into my application's Cargo.toml, I can override other gtk-rs crates (gtk, gdk, gtk-sys, etc.) since the git versions share the same version numbers as the respective crates, and can be pinned to a revision that is equivalent to the crate on crates.io.
However, currently glib is 0.4.0 on master branch even though a comparison with the crate branch on version 0.4.1 reveals they are essentially equivalent. Since they have different versions, however, Cargo 1.24 does not properly override the glib dependency; it tries to import 2 different glibs due to the 2 different version numbers provided.
Again, glib is the only gtk-rs crate that currently behaves this way, and I think it's because the version number was accidentally bumped only in the crate branch and not in the master branch at the same time, in the merge commit 31bdffb91f61b954b4b043f8016dba5817635ee5

@sdroege Why is the glib crate different than all the other gtk-rs crates in this regard?

It's not, they're all the same, I believe. But for why the branch setup is like it is you'll have to ask @GuillaumeGomez . I don't think it's correct or easy how it is, I'm doing it different for my crates (master is always using GIT versions of all the gtk-rs crates and is the latest development version, 0.X branch is a bugfix branch of the 0.X releases and that's where the releases from crates.io are made from every now and then).

But master for the gtk-rs repositories is always the latest development version. If it is mostly equivalent to the last release in case of glib that's just coincidence.

@sdroege Thanks very much for the replies. I'll concede the point after having come to a better understanding of the situation now. Your point that the crate branch is not really a "snapshot" of master, but rather treated like a separate branch, e.g. 0.4 branch including bugfixes, helped me to understand the problem better. So this PR is a band-aid solution that would fall apart again in the future.

I think without changing anything else, master should be updated to 0.5.0 (and correspondingly for the other repositories).

Oh indeed, my bad! Sorry for the misunderstanding. Weird that master wasn't updated...

@GuillaumeGomez 0.5.0 would be more correct though, this is only ~ the same as the 0.4.1 release by coincidence. Similarly all the other master branches should be updated to a higher minor version.

@sdroege: The crate version update only occurs when I make a new release. But yes, next release will be 0.5.0 for glib. In this case, it was a mistake that the master branch didn't have the same version number that the ©rates.io one.

The master branch should not have the same version as what is on crates.io. For all the other crates at least the API is different, so the minor version should be higher than what is on crates.io.

We can't guess at the time we make a release if the next one will be a minor or not and if there will have minor fixes so it seems logical to me that this version update is taking place during the release.

If there are API changes in master (like for all the other crates), we know that there will be a major release for the next time. Also that's the reason why a bugfix branch for doing bugfix releases is useful to have

I think you missed my point. At the moment of the release, we don't know if there will be API changes for the next one.

Sure, of course not. But the Cargo.toml of e.g. gtk should now say 0.4.0 (instead of 0.3.0), as current master is API-different from 0.3.0 (which is on crates.io).

I think it's debatable. I never paid attention to crate's version when I pull them from a git repository and I'm surprised some do since it doesn't have much meaning. I don't like the idea to have a bugfix branch in order to match the crates.io version either. :-/


Notification center and refactor

This PR refactors the notification system to support multiple delivery methods.
It also adds a notification indicator in the navbar as well as a notification flyout and a notification page.
Closes #2279
Closes #2282

@SchrodingersGat this would be ready for review and merge

@matmair nice work, I'll wait until we've split off a release branch for 0.6.x before looking at this one.

@SchrodingersGat please do not merge till #2621 #2620 #2564 are merged

@SchrodingersGat this would be ready for a review now.
This PR adds a notification view (like GitHub but fewer functions) and remasters the way notifications are sent -> getting it ready for multiple delivery methods and plugins that send messages.

@matmair wonderful, I'll try to find some time soon, but it may be a couple of weeks! Very busy rn

@SchrodingersGat dont stress about it!

@schrodingersGat any timeline to reviewing this?
Currently considering to either work on this + plugin issues or ordering / pricing stuff.

@matmair hopefully in the next couple of weeks :)

@matmair looks like there is an issue with an untranslated string:

Icons:

"Notifications" - should be the bell icon
"Inbox" - envelope icon
"history" - clock / history icon

It would be useful to have a "mark all as read" button

@SchrodingersGat I added all requested fixes / changes

Thanks for the changes. I'll take another look. btw this is looking really great, I love the way you have implemented this.

Thanks @matmair a really great addition. If you have some time for documentation before the next release, that would be great.

Thanks for the changes. I'll take another look. btw this is looking really great, I love the way you have implemented this.

Thanks. It should be rather easy to write a lot of different notification methods (classes) with the least possible code and duplication.
I would have liked a computational less expensive method to check for new notifications like Websockets with django channels. But that would add a lot of possible setup/install problems.


Added the change **

[x] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

i am a noob to this


Merge Staging to Production

This PR includes the most recent fixes from the staging branch.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Skipgram Implementation

Could we add this skipgram implementation to nltk.util?

Ah there's a bug there where it's generating extra ngrams.

An implementation of skipgrams would be a welcome addition.

Sorry for the open and closing, I wasn't sure whether i've got it right but here's a working implementation:
from itertools import chain, combinations
import copy
from nltk.util import ngrams

def pad_sequence(sequence, n, pad_left=False, pad_right=False, pad_symbol=None):
	"""
	Pads a sequence on the left or/and right with a specified pad_symbol before
	generating ngrams for a given sequence.
	>>> n = 3
	>>> list(pad_sequence(iter(text), n)) # no pad
	['Insurgents', 'killed', 'in', 'ongoing', 'fighting']
	>>> list(pad_sequence(iter(text), n, pad_left=True, pad_symbol='<s>')) # pad left
	['<s>', '<s>', 'Insurgents', 'killed', 'in', 'ongoing', 'fighting']
	>>> list(pad_sequence(iter(text), n, pad_right=True, pad_symbol='</s>')) # pad right
	['Insurgents', 'killed', 'in', 'ongoing', 'fighting', '</s>', '</s>']
	>>> list(pad_sequence(padded_left, n, pad_right=True, pad_symbol='</s>')) # pad left right
	['<s>', '<s>', 'Insurgents', 'killed', 'in', 'ongoing', 'fighting', '</s>', '</s>']
	:param sequence: the source data to be converted into ngrams
	:type sequence: iter
	:param n: the degree of the ngrams
	:type n: int
	:param pad_left: whether the ngrams should be left-padded
	:type pad_left: bool
	:param pad_right: whether the ngrams should be right-padded
	:type pad_right: bool
	:param pad_symbol: the symbol to use for padding (default is None)
	:type pad_symbol: any
	:rtype: iter(tuple)
	"""
	if pad_left:
		sequence = chain((pad_symbol,) * (n-1), sequence)
	if pad_right:
		sequence = chain(sequence, (pad_symbol,) * (n-1))
	return sequence

def skipgrams(sequence, n, k, pad_left=False, pad_right=False, pad_symbol=None):
	"""
	Return the skipgrams generated from a sequence of items, as an iterator.
	For example:
	>>> text = "Insurgents killed in ongoing fighting".split()
	>>> list(skipgrams(text, n=2, k=2)) # two_skip_bigrams
	[('Insurgents', 'killed'), ('Insurgents', 'in'), ('Insurgents', 'ongoing'), ('killed', 'in'), ('killed', 'ongoing'), ('killed', 'fighting'), ('in', 'ongoing'), ('in', 'fighting'), ('ongoing', 'fighting')]
	>>> list(skipgrams(text, n=3, k=2)) # two_skip_trigrams
	[('Insurgents', 'killed', 'in'), ('Insurgents', 'killed', 'ongoing'), ('Insurgents', 'killed', 'fighting'), ('Insurgents', 'in', 'ongoing'), ('Insurgents', 'in', 'fighting'), ('Insurgents', 'ongoing', 'fighting'), ('killed', 'in', 'ongoing'), ('killed', 'in', 'fighting'), ('killed', 'ongoing', 'fighting'), ('in', 'ongoing', 'fighting')]
	:param sequence: the source data to be converted into ngrams
	:type sequence: sequence
	:param n: the degree of the ngrams
	:type n: int
	:param pad_left: whether the ngrams should be left-padded
	:type pad_left: bool
	:param pad_right: whether the ngrams should be right-padded
	:type pad_right: bool
	:param pad_symbol: the symbol to use for padding (default is None)
	:type pad_symbol: any
	:rtype: iter(tuple)
	"""
	sequence_length = len(sequence)
	sequence = iter(sequence)
	sequence = pad_sequence(sequence, n, pad_left, pad_right, pad_symbol)

	if sequence_length + pad_left + pad_right < k:
		raise Exception("The length of sentence + padding(s) < skip")

	if n < k:
		raise Exception("Degree of Ngrams (n) needs to be bigger than skip (k)")

	history = []
	nk = n+k

	# Return point for recursion.
	if nk < 1:
		return
	# If n+k longer than sequence, reduce k by 1 and recur
	elif nk > sequence_length:
		for ng in skipgrams(list(sequence), n, k-1):
			yield ng

	while nk > 1: # Collects the first instance of n+k length history
		history.append(next(sequence))
		nk -= 1

	# Iterative drop first item in history and picks up the next
	# while yielding skipgrams for each iteration.
	for item in sequence:
		history.append(item)
		current_token = history.pop(0)
		# Iterates through the rest of the history and
		# pick out all combinations the n-1grams
		for idx in list(combinations(range(len(history)), n-1)):
			ng = [current_token]
			for _id in idx:
				ng.append(history[_id])
			yield tuple(ng)

	# Recursively yield the skigrams for the rest of seqeunce where
	# len(sequence) < n+k
	for ng in list(skipgrams(history, n, k-1)):
		yield ng

I might be missing edge cases, but I'm able to produce your two example cases with:
import nltk, itertools
def skipgrams(sequence, n, k):
    for ngram in nltk.ingrams(sequence, n + k, pad_right=True):
        head = ngram[:1]
        tail = ngram[1:]
        for skip_tail in itertools.combinations(tail, n - 1):
            if skip_tail[-1] is None:
                continue
            yield head + skip_tail

@jnothman nice, i think your implementation is much cleaner and nicer =)

You're welcome to make a pull request of it!

Thanks @jnothman.
Note that ingrams became just ngrams in NLTK 3 (no explicit iterator methods; using iterators by default).

I'd thought that might be the case...

@jnothman, some tweaks are needed to the cleaner implementation so that it takes on padding for actual use.

Sure. Submit a PR, and it will be easy to review the  approach.

@jnothman the basic implementation is merged but there's still some work to sort out the padding, i'll do this once i'm free over the weekend.

@jnothman , Sorry that it took that long to add the padding. It's done on #1179

@jnothman Going back to the Nully check on https://github.com/nltk/nltk/blob/develop/nltk/util.py#L560 of the skipgram implementation, spillover from #1179, do you have any suggestion of how we can resolve it?
Should I instead use ngrams(sequence, n + k, pad_right=True, right_pad_symbol='<EOSG>') on line 556 and then do a check for <EOSG> on line 560?

Best way to construct an arbitrary (but not pickleable) sentinel in Python
is SENTINEL = object(). And with apologies: I won't be regularly watching
github threads for the next little while.
On 21 November 2015 at 02:15, alvations<EMAIL_ADDRESS>wrote:

@jnothman https://github.com/jnothman Going back to the Nully check on
https://github.com/nltk/nltk/blob/develop/nltk/util.py#L560 of the
skipgram implementation, spillover from #1179
https://github.com/nltk/nltk/pull/1179, do you have any suggestion of
how we can resolve it?
Should I instead use ngrams(sequence, n + k, pad_right=True,
right_pad_symbol='') on line 556
https://github.com/nltk/nltk/blob/develop/nltk/util.py#L556 and then do
a check for  on line 560
https://github.com/nltk/nltk/blob/develop/nltk/util.py#L556?
—
Reply to this email directly or view it on GitHub
https://github.com/nltk/nltk/issues/1070#issuecomment-158427739.

#1212 should be the stable version of the skipgram. Thanks @jnothman for advices/suggestions and code and thanks @stevenbird for the code reviews.

Should we add Vectorizers using skipgrams? I have to implement them now for my projects. It would be great if it is in ntlk.util?


Aragorn no results on Workflow D.2 query

https://arax.ncats.io/?source=ARS&id=9938906a-6f8e-4886-b454-66f5372c81ae

{
  "callback": "http://localhost:8000/ars/api/messages/ba9224d8-405e-4f5e-9313-ff5f93064089",
  "logs": [
    {
      "level": "INFO",
      "message": "ARS info: {"message":{"query_graph":null,"knowledge_graph":null,"results":null},"logs":[{"timestamp":"2021-07-08T15:51:26.187577","level":"ERROR","code":null,"message":"Exception in Strider: ReadTimeout('')","stack":"Traceback (most recent call last):\\n  File \\"/app/./strider/server.py\\", line 94, in catch_exceptions_middleware\\n    return await call_next(request)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py\\", line 45, in call_next\\n    task.result()\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py\\", line 38, in coro\\n    await self.app(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py\\", line 78, in __call__\\n    await self.app(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/exceptions.py\\", line 82, in __call__\\n    raise exc from None\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/exceptions.py\\", line 71, in __call__\\n    await self.app(scope, receive, sender)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/routing.py\\", line 580, in __call__\\n    await route.handle(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/routing.py\\", line 241, in handle\\n    await self.app(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/routing.py\\", line 52, in app\\n    response = await func(request)\\n  File \\"/usr/local/lib/python3.9/site-packages/fastapi/routing.py\\", line 214, in app\\n    raw_response = await run_endpoint_function(\\n  File \\"/usr/local/lib/python3.9/site-packages/fastapi/routing.py\\", line 149, in run_endpoint_function\\n    return await dependant.call(**values)\\n  File \\"/app/./strider/server.py\\", line 274, in sync_query\\n    query_results = await process_query(qid, log_level, redis_client)\\n  File \\"/app/./strider/server.py\\", line 188, in process_query\\n    await strider.generate_plan()\\n  File \\"/app/./strider/fetcher.py\\", line 163, in generate_plan\\n    response = await client.get(url)\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1722, in get\\n    return await self.request(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1481, in request\\n    response = await self.send(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1568, in send\\n    response = await self._send_handling_auth(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1604, in _send_handling_auth\\n    response = await self._send_handling_redirects(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1640, in _send_handling_redirects\\n    response = await self._send_single_request(request, timeout)\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1681, in _send_single_request\\n    ) = await transport.handle_async_request(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py\\", line 278, in handle_async_request\\n    (\\n  File \\"/usr/local/lib/python3.9/contextlib.py\\", line 135, in __exit__\\n    self.gen.throw(type, value, traceback)\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py\\", line 78, in map_httpcore_exceptions\\n    raise mapped_exc(message) from exc\\nhttpx.ReadTimeout\\n"},{"timestamp":"2021-07-08T15:51:26.196484","level":"ERROR","code":null,"message":"Strider error: HTML error status code 500 returned."}],"status":null}"
    },
    {
      "level": "INFO",
      "message": "ARS info: tr_ars.Date: Thu, 08 Jul 2021 15:51:26 GMT"
    },
    {
      "level": "INFO",
      "message": "ARS info: tr_ars.Content-Type: application/json"
    },
    {
      "level": "INFO",
      "message": "ARS info: tr_ars.Content-Length: 3480"
    },
    {
      "level": "INFO",
      "message": "ARS info: tr_ars.Connection: keep-alive"
    },
    {
      "level": "INFO",
      "message": "ARS info: tr_ars.reason: Internal Server Error"
    },
    {
      "level": "INFO",
      "message": "ARS info: tr_ars.url: https://aragorn.renci.org/1.1/query"
    }
  ],
  "message": {
    "query_graph": {
      "edges": {
        "e00": {
          "object": "n01",
          "subject": "n00"
        },
        "e01": {
          "object": "n02",
          "subject": "n01"
        }
      },
      "nodes": {
        "n00": {
          "categories": [
            "biolink:ChemicalSubstance"
          ],
          "ids": [
            "DRUGBANK:DB00215",
            "DRUGBANK:DB01175",
            "DRUGBANK:DB00472",
            "DRUGBANK:DB00176",
            "DRUGBANK:DB00715",
            "DRUGBANK:DB01104"
          ]
        },
        "n01": {
          "categories": [
            "biolink:Gene"
          ]
        },
        "n02": {
          "categories": [
            "biolink:Disease"
          ],
          "ids": [
            "DOID:114"
          ]
        }
      }
    }
  },
  "validation_result": {
    "message": "Returned response is not TRAPI: {"message":{"query_graph":null,"knowledge_graph":null,"results":null},"logs":[{"timestamp":"2021-07-08T15:51:26.187577","level":"ERROR","code":null,"message":"Exception in Strider: ReadTimeout('')","stack":"Traceback (most recent call last):\\n  File \\"/app/./strider/server.py\\", line 94, in catch_exceptions_middleware\\n    return await call_next(request)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py\\", line 45, in call_next\\n    task.result()\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py\\", line 38, in coro\\n    await self.app(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py\\", line 78, in __call__\\n    await self.app(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/exceptions.py\\", line 82, in __call__\\n    raise exc from None\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/exceptions.py\\", line 71, in __call__\\n    await self.app(scope, receive, sender)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/routing.py\\", line 580, in __call__\\n    await route.handle(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/routing.py\\", line 241, in handle\\n    await self.app(scope, receive, send)\\n  File \\"/usr/local/lib/python3.9/site-packages/starlette/routing.py\\", line 52, in app\\n    response = await func(request)\\n  File \\"/usr/local/lib/python3.9/site-packages/fastapi/routing.py\\", line 214, in app\\n    raw_response = await run_endpoint_function(\\n  File \\"/usr/local/lib/python3.9/site-packages/fastapi/routing.py\\", line 149, in run_endpoint_function\\n    return await dependant.call(**values)\\n  File \\"/app/./strider/server.py\\", line 274, in sync_query\\n    query_results = await process_query(qid, log_level, redis_client)\\n  File \\"/app/./strider/server.py\\", line 188, in process_query\\n    await strider.generate_plan()\\n  File \\"/app/./strider/fetcher.py\\", line 163, in generate_plan\\n    response = await client.get(url)\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1722, in get\\n    return await self.request(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1481, in request\\n    response = await self.send(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1568, in send\\n    response = await self._send_handling_auth(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1604, in _send_handling_auth\\n    response = await self._send_handling_redirects(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1640, in _send_handling_redirects\\n    response = await self._send_single_request(request, timeout)\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_client.py\\", line 1681, in _send_single_request\\n    ) = await transport.handle_async_request(\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py\\", line 278, in handle_async_request\\n    (\\n  File \\"/usr/local/lib/python3.9/contextlib.py\\", line 135, in __exit__\\n    self.gen.throw(type, value, traceback)\\n  File \\"/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py\\", line 78, in map_httpcore_exceptions\\n    raise mapped_exc(message) from exc\\nhttpx.ReadTimeout\\n"},{"timestamp":"2021-07-08T15:51:26.196484","level":"ERROR","code":null,"message":"Strider error: HTML error status code 500 returned."}],"status":null}",
    "size": "6 kB",
    "status": "NA",
    "version": "1.1.1"
  }
}```

Targeting end of July for improved explain query support. https://github.com/ranking-agent/strider/issues/222

https://arax.ncats.io/?source=ARS&id=e5d4e9f3-b83b-48c9-9420-7c65da65c05f

`{
"logs": [
{
"code": null,
"level": "ERROR",
"message": "No KPs for qedge 'e01'",
"timestamp": "2021-08-04T12:30:41.760638"
},
{
"code": null,
"level": "WARNING",
"message": "Strider warning: No results returned",
"timestamp": "2021-08-04T12:30:41.771082"
}
],
"message": {
"knowledge_graph": {
"edges": {},
"nodes": {}
},
"query_graph": {
"edges": {
"e00": {
"constraints": null,
"object": "n01",
"predicates": null,
"relation": null,
"subject": "n00"
},
"e01": {
"constraints": null,
"object": "n02",
"predicates": null,
"relation": null,
"subject": "n01"
}
},
"nodes": {
"n00": {
"categories": [
"biolink:ChemicalSubstance"
],
"constraints": null,
"ids": [
"DRUGBANK:DB00215",
"DRUGBANK:DB01175",
"DRUGBANK:DB00472",
"DRUGBANK:DB00176",
"DRUGBANK:DB00715",
"DRUGBANK:DB01104"
],
"is_set": false
},
"n01": {
"categories": [
"biolink:Gene"
],
"constraints": null,
"ids": null,
"is_set": false
},
"n02": {
"categories": [
"biolink:Disease"
],
"constraints": null,
"ids": [
"DOID:114"
],
"is_set": false
}
}
},
"results": []
},
"status": null,
"validation_result": {
"message": "",
"n_edges": 0,
"n_nodes": 0,
"provenance_summary": {
"n_sources": 0,
"predicate_counts": {},
"provenance_counts": {}
},
"size": "2 kB",
"status": "PASS",
"version": "1.1.1"
},
"araxui_provider": "ARS",
"araxui_response": "2d59aa09-006b-4add-aa70-7684c2ea8787"
}

Note that this query will need to be changed to biolink 2.1, biolink:ChemicalSubstance -> biolink:ChemicalEntity ?

If one is an owner of a JSON query chemical molecules, it needs to be updated due to BL 2.1

https://arax.ncats.io/index.html?source=ARS&id=c4cf5613-ee81-4702-a012-8c31f1c2b104
Showing results


Kill java after build

To prevent leaving java processes (such as Selenium) around lets add java to the list of processes that we kill when leaving an agent. Only on windows because we don't run Selenium on other OSs.

Closing in favor of https://github.com/aspnet/AspNetCore/pull/8568


Workflow list - can you increase the classification function?（工作流列表-能否增加分类功能）

All workflow definitions, different levels and different levels of different levels are mixed together, and the management is particularly messy, and it is also prone to misuse and affect online scheduling.
It is recommended to add a custom classification, and the workflow can change the classification.
E.g:
We can divide these categories into categories (online, development, testing) or (schedule main tasks, subtasks, temporary tasks, test tasks) or according to business (dimension related, business topic 1, business topic 2)
Of course, if you are based on development difficulty, you can also fix several categories.

所有的工作流定义，不同类别不同层级不同状态的，都混杂在一起，感觉管理起来特别乱，同时也容易出现误操作而影响线上的调度。
建议增加自定义分类，且工作流可以变更所属分类。
例如：
我们可以根据需要分成这几个分类（线上，开发，测试）或（调度主任务，子任务，临时任务，测试任务）或者根据业务划分（维度相关，业务主题1，业务主题2）
当然，如果基于开发难度考虑，也可以固定好几个分类。

very good idea！thx！
and do you have interesting to implement this feature ？

can you Add sorting or sticking function？


Integrate sdc submit button in the demo app.

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #1792
Description
Demo app shows two submit button, 1. demo app menu app bar submit button 2. sdc module submit button.
It was not performing any operation on click of sdc submit button.
Solution =>
Integrate sdc submit button in the demo app.
Remove submit menu from app bar.
Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?
Type
Choose one: Bug fix
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct.
[x] I have read the Contributing page.
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
[x] I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).


Returning a Query type in a mutation's payload

I have a Query type in my schema that defines some custom resolvers and uses strawberry_django.field/strawberry_django.node without providing resolver functions.
@strawberry_django.type(SomeModel)
class SomeType:
    id: auto
    name: auto

@strawberry.type(name='Query')
class Query:
    some_type_query: SomeType = strawberry_django.field()

    @strawberry_django.field()
    def custom_resolver(self) -> bool:
        return True

I want to return a Query along with the mutation result, enabling the user to fetch whatever data they need in a single request. However, when I initialize a Query object, I must provide arguments.
@strawberry.type
class MutationPayload:
    some_type: SomeType

    @strawberry_django.field(
    def query(self) -> Query:
        return Query()

@strawberry.type
class Mutation:
    @strawberry_django.mutation()
    def mutation_resolver(self) -> MutationPayload:
        some_model = SomeModel.objects.create(name="test")
        return MutationPayload(some_type=some_model)

{
  "data": null,
  "errors": [
    {
      "message": "Query.__init__() missing 1 required keyword-only argument: 'some_type_query'",
      "locations": [
        {
          "line": 7,
          "column": 5
        }
      ],
      "path": [
        "mutationResolver",
        "query"
      ]
    }
  ]
}

Is it possible to initialize the Query type without providing all the arguments? Or is there an easy way to provide the arguments to the query?

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.

Hey @rcybulski1122012 ,
This is something that is being discussed on https://github.com/strawberry-graphql/strawberry-django/issues/627
I am going to close this as duplicated, but be sure to check it as other users have shared some workarounds which you can use in the meantime.


Generic constraint instead of any on the fire function

On the fire function the last parameter is any, if that was changed to a generic you could optionally use an interface to help with type checking and the behavior should remain the same as any. Maybe there's side effects I'm not realizing, but if there aren't any is there any objection to changing the definition to something like this?
export function fire<T>(target: Document | Element, name: string, detail?: T): boolean;

Example usage:
interface ISomeEvent {
  val1: int;
  val2: string;
}

// adds type checking to the event details
fire<ISomeEvent>(target, "do:something", {
  val1: 0,
  val2: "",
});

// remains the same as `any`
fire(target, "do:something", {
  val1: 0,
  val2: "",
});

What would you gain from having the function be a generic? If I'm reading this correctly then you could achieve the same by doing the type assertion before passing the variable to fire(..)?
function fire(target: Element, eventName: string, detail: any) { }
const target = new HTMLElement()

interface ISomeEvent {
  val1: number;
  val2: string;
}

// No error
const correctEvent: ISomeEvent = {
  val1: 0,
  val2: "",
}

// Error!
const wrongEvent: ISomeEvent = {
  foo: "bar"
}

fire(target, "do:something", correctEvent);
fire(target, "do:something", wrongEvent);

I guess the way I look at it, delegated-events doesn't care what you pass it as a third argument and the type function signature reflects that. The app using delegated-events cares about the type so it should handle the type checking.

The generic parameter simplifies the code a bit I think, and since the object passed to fire is the same that's used in on (which can have a generic parameter with CustomEvent<T>) there's consistency between them along with the extra type checking.
For now I added a delegated-events.d.ts to my project with with an override.
declare module "delegated-events" {
  export function fire<T = any>(target: Element, name: string, detail?: T): boolean;
}

@xt0rted local to an individual project, I like to maintain a .d.ts file something like this, keeping a list of the projects well-known custom event names in the CustomEventMap:
// events.d.ts

interface CustomEventMap {
  'my-event:foo': {
    something: boolean
  }
}
type CustomDelegatedEventListener<T> = (this: Element, ev: CustomEvent<T> & {currentTarget: Element}) => any

declare module 'delegated-events' {
  export function fire<K extends keyof CustomEventMap>(target: Element, name: K, detail: CustomEventMap[K]): boolean
  export function on<K extends keyof CustomEventMap>(
    name: K,
    selector: string,
    listener: CustomDelegatedEventListener<CustomEventMap[K]>
  ): boolean
}

declare global {
  interface Document {
    addEventListener<K extends keyof CustomEventMap>(
      type: K,
      listener: (this: Document, ev: CustomEvent<CustomEventMap[K]>) => unknown,
      options?: boolean | AddEventListenerOptions
    ): void
  }
  interface HTMLElement {
    addEventListener<K extends keyof CustomEventMap>(
      type: K,
      listener: (this: Document, ev: CustomEvent<CustomEventMap[K]>) => unknown,
      options?: boolean | AddEventListenerOptions
    ): void
  }
}

This allows for the following with full TS support:
fire(document.body, 'my-event:foo', {something: true})
on('my-event:foo', 'body', event => {
  event.detail.something // typescript knows this is a boolean
})
document.addEventListener('my-event:foo', event => {
  event.detail.something
})
document.body.addEventListener('my-event:foo', event => {
  event.detail.something
})

This also gives my editor full autocomplete & type tooltip capabilities:

You can do this with the currently released version of delegated-events, it works real nice - but there's not much we could add to delegated-events to make this process easier.

Thanks for that @keithamus. I had come up with something similar for the on function but your example is a lot nicer.


[2.0] Transport mechanisms and spooling support

Q
A

Branch?
2.0

Bug fix?
no

New feature?
yes

BC breaks?
yes

Deprecations?
no

Tests pass?
yes

License
MIT

Supersedes #413. The original PR was adding new options to configure where to store saved events for later sending. Unfortunately the code is tightly coupled with the client itself, making it difficult to extend and customize how or where the events are stored and a lot of other things. This PR tries to solve all these problems by abstracting away from the client the part that sends the events into a set of transport mechanisms. One of them uses HttPlug, and the other one uses a spool to store events. An adapter that stores events in memory is provided out of the box, but one that stores them on the filesystem could be provided easily.

I need to read this today.

@nokitakaze the spool transport is made exactly to support cases like yours. You could create your own implementation of the SpoolInterface that saves the events on the filesystem and then use a command or whatever else to retrieve them and send them when you want. I have a really simple implementation of this FileSpool spool, but I did not submit it along with this PR to not add too many things to the library. Maybe @Jean85 or @stayallive could give their opinion on the matter?

The FileSpool could be a nice addition, but I would leave it for a latter PR! In this way we could do it alongside some docs refinements about this change, which is not so subtle on the end user side.

I agree with @Jean85, this is definitely something to explore to allow for "offline" and "queued" sending or aggregating of sending Sentry events, but better served in a seperate PR so we can discuss the internals of that since PHP does not have very good standards for these kind of things 👍

Before merging, I would like to get an opinion on a last thing: I've removed the destructor of the HttpTransport class so that the requests still pending when the application is shutting down are only sent when the shutdown function handler is called. As the callback passed to register_shutdown_function maintains a reference to the instance of the class the destructor will never be called when unsetting the last variable referencing the transport but only after the handler has been executed, so I thought it would not make sense to keep it. What do you think about this?


Provide a comprehensive assets API

We should add the ability to retrieve information on specific assets like VMs, security groups, etc..

Fetching the various assets is not a problem.
We need to address the multiple options of properties of each asset group and we need to have the option to include the relevant information (eg. SecurityGroupRule needs to "include" the SecurityGroup and maybe even the account)
All these are available. but need planing


Push a release with python 3.9 wheels

Python 3.9 has been out for ~1 month now. It would be good if there was a tweedledum release that had a precompiled binary wheel with python 3.9. Looking at the CI setup for building and publishing wheels this will be done automatically on the next release since the latest cibuildwheel 1.6.x has support for 3.9 so it's just a matter of pushing a new release (or retriggering a build for the existing release).

Thanks for the heads up. This is done.


Implement the Student Group Workflow

To continue with the frontend workflow (below), we'll need to add some further APIs for student-users to interact with,

GIVEN I have logged in as a student-user
THEN I must have a StudentContact
AND this contact will contain data as expected from my login form

GIVEN I am an existing student-user that is logged in
AND I browser to Groups
THEN I can create a Group
WHICH automatically assigns me to the newly created group

GIVEN I am an existing student-user that is logged in
AND I browser to Groups after creating a new group
WHEN I select my existing group
THEN I can invite more group members
WHICH creates invitations per invited member

GIVEN I am an existing student-user that is logged in
AND I browser to Groups
WHEN I select an existing group
AND I click "apply to group"
THEN I submit a request to join this group using my StudentContact data

These criteria mean we'll need some new APIs and updates to existing ones,
API updates,

POST AddGroup to handle automatic member assignment
GET GetGroup to map the member data (currently this is not mapped)

New APIs,

POST UpdateGroupMembers to update an existing group with new members
POST ApplyToGroup to handle a student applying to an existing group
POST CreateGroupMemberInvites to handle inviting members to an existing group

We'll also have to update the application to create student contact data when they login for the first time.
this workflow would also apply to product owners

Subtasks,

https://github.com/albert118/Studio-Management-System/issues/66
https://github.com/albert118/Studio-Management-System/issues/73
https://github.com/albert118/Studio-Management-System/issues/74
https://github.com/albert118/Studio-Management-System/issues/76

Completed


Overwrite policy option?

[x] Using latest version as provided on the master branch
[x] Searched for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug
[x] Feature Request
[ ] Question
[ ] Other

Description

A feature I see myself using is having an overwrite policy/method. For example, if I have two lists with overlapping songs, but I want to download both of them into the same folder, I will end up having to answer the prompt with 'N' to skip overwriting or 'y' to force overwriting. I think it would be useful to have an overwrite flag with three options, prompt, force, skip. prompt would be the current behavior, force would assume 'y' for overwriting and skip would assume N for overwriting.
I searched through the issues and could not find anything related to this idea. Is there interest?

Is there interest?

I think so, interesting idea :smile:
Would you be able to provide a PR or is this a raw feature request?

@vicyap Actually, the prompt thing happens only in single song downloads. It will automatically skip any overlapping songs when downloading from a file. Although, I've been wondering about having an option for this.

@linusg I am willing to work on a PR, I just wanted ask about it first
@ritiek Looks like you're correct. I probably got mixed up when downloading from a list and from a single. Anyways I think it would still be useful. I'll work on a PR.

@vicyap Great! Let us know here if you have any questions.


Not possible to send nfts - "Unable to Retrieve keypair"

What happened?
Wanted to send nfts, got this pop-up
The issue is, i used to solve this problem by going to polkadot js apps and update metadata, but its updated already.
Please reproduce in steps
/
Expected Behavior
/
What browsers are you seeing the problem on?
Firefox
Are you logged in?

That worked, but this is not long term solution? Cannot we automatize this in the background so end user doesn’t have to care? Or we cannot change user’s endpoints?

Seems related, but fixed automatically, when I updated Chrome lol

#3127
#2607

Fixed in

#3170
#3173


Docs for strict text-wrapping minor improvements (strictPropertyInitialization, noImplicitThis, useUnknownInCatchVariables)

Bug Report
The text for strictPropertyInitialization, noImplicitThis, and useUnknownInCatchVariables is cutted on medium/large devices, as the screenshots shows.

URL: https://www.typescriptlang.org/tsconfig#strict

https://github.com/microsoft/TypeScript-Website/


Remove ConvertSegmentTask, HadoopConverterTask, and ConvertSegmentBackwardsCompatibleTask

We have been using the segment format v9 for a long time. AFAIK, there's no use case where still needs these tasks.

Does this need to be a blocker for 0.13?

I want to add this to 0.13. if possible because this is an incompatible change which is allowed only in major releases. But, I think it's not necessarily a blocker. We can move this to another major release if it takes too long time to fix.


Invalid list of alexa devices

Describe Your Problem:
After setup, in the logs I get an error.

I want the devices to be imported into the plugin on start.
Logs:
[23/11/2023, 19:43:12] [Homebridge UI] Homebridge restart request received
[23/11/2023, 19:43:12] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[23/11/2023, 19:43:12] [Homebridge UI] Sending SIGTERM to Homebridge
[23/11/2023, 19:43:12] Got SIGTERM, shutting down Homebridge...
[23/11/2023, 19:43:17] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[23/11/2023, 19:43:22] [HB Supervisor] Restarting Homebridge...
[23/11/2023, 19:43:22] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[23/11/2023, 19:43:22] [HB Supervisor] Started Homebridge v1.7.0 with PID: 47437
[23/11/2023, 19:43:22] Loaded config.json with 0 accessories and 2 platforms.
[23/11/2023, 19:43:22] Loaded 0 cached accessories from cachedAccessories.
[23/11/2023, 19:43:22] ---
[23/11/2023, 19:43:23] Loaded plugin<EMAIL_ADDRESS>[23/11/2023, 19:43:23] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[23/11/2023, 19:43:23] ---
[23/11/2023, 19:43:23] Loading 2 platforms...
[23/11/2023, 19:43:23] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://0024NYXOUZSKR
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 722-**-*** │
    └────────────┘

[23/11/2023, 19:43:23] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 3EA9) is running on port 51967.
[23/11/2023, 19:43:33] [HomebridgeAlexaSmartHome] After initialization - InvalidResponse(Invalid list of Alexa devices found for the current Alexa account: {
  "success": true
})

Plugin Config:
"devices": [
        "Bed Light"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "192.168.*.***",
            "port": 9000
        }
    },
    "amazonDomain": "amazon.co.uk",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": false,
    "platform": "HomebridgeAlexaSmartHome"
}

Homebridge Config:
{
    "bridge": {
        "name": "Homebridge 3EA9",
        "username": "",
        "port": 51967,
        "pin": "722-",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "devices": [
                "Bed Light"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.co.uk",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

Environment:

Plugin Version: v2.0.1
Homebridge Version: 1.7.0
Node.js Version: v18.18.2
NPM Version: 9.8.1
Operating System: Ubuntu

Closing due to no response.


Email id field doubt

Question : In Filter Area of multiple student Report a user can search by name or Email id. But there are no Email id field mentioned for sorting.
Assumption : We have to create a Email id field for Sorting like name
Let me know my assumption is Correct or not.

In Filter Area of multiple student Report a user can search by name or Email id

This requirement states that there will a Search-Box, where the user can search for any student by entering his/her Name or Email Id. It has nothing to do with the sorting of the list of the students.
As mentioned in Multiple Students Report [2.1.2] - The list of students is to be sortable by Name, Test Date and Score with the Score in descending order being the default.


[CT-2656] Flaky Tests

## Flaky Tests
- [ ] BigQuery test access grants (to be updated)
- [ ] https://github.com/dbt-labs/dbt-core/issues/8630
- [ ] https://github.com/dbt-labs/dbt-core/issues/8632
- [ ] https://github.com/dbt-labs/dbt-core/issues/8707
- [ ] https://github.com/dbt-labs/dbt-core/issues/8853
- [ ] https://github.com/dbt-labs/dbt-core/issues/8854
- [ ] https://github.com/dbt-labs/dbt-core/issues/8897
- [ ] https://github.com/dbt-labs/dbt-core/issues/9416
- [ ] #9418
- [ ] https://github.com/dbt-labs/dbt-core/issues/7781
- [ ] https://github.com/dbt-labs/dbt-core/issues/9815
- [ ] https://github.com/dbt-labs/dbt-core/issues/9900
- [ ] https://github.com/dbt-labs/dbt-core/issues/9902
- [ ] https://github.com/dbt-labs/dbt-core/issues/9903
- [ ] https://github.com/dbt-labs/dbt-core/issues/9905
- [ ] https://github.com/dbt-labs/dbt-core/issues/9906
- [ ] https://github.com/dbt-labs/dbt-core/issues/9953

### Fixed Flaky Tests
- [ ] https://github.com/dbt-labs/dbt-core/issues/7795
- [ ] https://github.com/dbt-labs/dbt-core/issues/7744
- [ ] https://github.com/dbt-labs/dbt-core/issues/7831
- [ ] https://github.com/dbt-labs/dbt-core/issues/8470
- [ ] https://github.com/dbt-labs/dbt-core/issues/7179
- [ ] https://github.com/dbt-labs/dbt-core/issues/7977
- [ ] https://github.com/dbt-labs/dbt-core/issues/8103
- [ ] https://github.com/dbt-labs/dbt-core/issues/7664
- [ ] https://github.com/dbt-labs/dbt-core/issues/8464
- [ ] https://github.com/dbt-labs/dbt-core/issues/9898
- [ ] https://github.com/dbt-labs/dbt-core/issues/9899
- [ ] https://github.com/dbt-labs/dbt-core/issues/9907

### Flaky Tests we Can't Reproduce
- [ ] https://github.com/dbt-labs/dbt-core/issues/7830
- [ ] https://github.com/dbt-labs/dbt-core/issues/8300
- [ ] https://github.com/dbt-labs/dbt-core/issues/7815
- [ ] https://github.com/dbt-labs/dbt-core/issues/8311
- [ ] https://github.com/dbt-labs/dbt-core/issues/9817
- [ ] https://github.com/dbt-labs/dbt-core/issues/8441
- [ ] https://github.com/dbt-labs/dbt-core/issues/9623

We are tracking flaky tests in DataDog and this Epic no longer serves a purpose.


skip uid check for aix in user add functional tests

Bug in AIX auto increments UIDs. So after 200 builds, this test fails.

cc @scotthain @jaym

:+1:

one trivial thing but :+1: either way


EndDate Expiring Schedule Introduction

Today, when we specify a flow schedule in Azkaban, the flow will run infinitely without termination as per the schedule. As #721 proposes, should schedule have an end date, the flow will have more flexibilities to be managed. In this PR, I implement the end date feature to allow users to specify the expiration date given a schedule. UI has not been changed yet in this patch (will not be implemented in near future), but people will be able to call API to leverage the new feature.
The API command sample:
curl -k -d ajax=scheduleCronFlow -d projectName=wtwt -d flow=azkaban -d endSchedTime=14XXXXXXXXXX --data-urlencode cronExpression="0 * * ? * 6" -b "azkaban.browser.session.id=XXXXXXXXXXXXXX" http://localhost:8081/schedule
Similar to what @inoviavenkat implemented, I add an EndTimeChecker, as part of Expire Condition checker. Also, Added one parameter endSchedTime to schedule API. If the users don't specify this parameter, Azkaban would use the default value -1, and the schedule will be still running infinitely. Besides, I add Unit tests as much as possible to guarantee that this change will not break out.
Furthermore, I made comprehensive manual tests and am glad to share:

We have flow1, flow2, flow3, flow4, corresponding schedule1, schedule2, schedule3, schedule4. Every schedule runs flow every minute. The 4 flows keep undispatched at this stage.

Ignoring this PR, I started a web server running on 3.24.0. Triggering schedule1. it is working fine.

Apply the patch, started web server having end date feature.

Triggered regular schedule2 without specifying endDate. Both sche1 and sche2 were running fine.
Triggered schedule3 by specifying endtime (5 minutes later). schedule3 was initially running. was able to observe schedule3 expire then.
Triggered schedule4 by specifying endtime (15 minutes later). Shutdown Webserver before schedule4 expires.

restarted web server with end date implementation. Schedule3 never run. Both schedule1 and schedule2 and schdule4 were running well. Schedule4 expires at correct time.

I also try rolling back web server to 3.24.0 (without this PR). Schedule 2 , 3 and 4 were not loaded due to lacking EndTimeChecker, but schedule1 was running good. Even though rolled back web server can not identify those latest schedules, the exceptions don't break and web server keeps working.

Though this PR looks big, but more than 80% code is related to testing and refactoring

"Schedule 2 , 3 and 4 were not loaded due to lacking EndTimeChecker"
This makes rolling back the change impossible without user impact. Can you think of ways to mitigate? e.g. allow these flows to run as if the end date is not specified at least until we feel confident enough about the change.

End Date should be optional. We should have config/ policy from where we can enforce this. But as a default endDate should be optional.
+1 to Ray.

Closing this due to roll back issue. Reopen this PR at #1110


Avoid awaited operator by constraints not to break compatibility

Here T is compatible with awaited T.

TypeScript Version:  3.7.x-dev.20200322

Search Terms:
Code
function f<T extends awaited any>(a: T) {
    return a;
}

Expected behavior:
Return type is T.
Actual behavior:
Return type is not awaited T.
Playground Link: https://www.typescriptlang.org/play/index.html?ts=3.9.0-dev.20200322&ssl=1&ssc=43&pln=1&pc=40#code/GYVwdgxgLglg9mABMAPAFUQUwB5U2AEwGdEBDAd1JjwLLAE8A+AClIC5E0BKRAbwChEQxACdMUECKSkA3PwC+QA
Related Issues:

This issue depends on the unimplemented feature.


Black screen after reboot, no clover menu

To Reproduce
For "reasons" I created the iso images on one system and copied them to another for installation.  All goes well until step #6 -- the installer image boots, I erase the target disk and install Mojave.  After 3-4 minutes the VM reboots and I shutdown and unmount macOS-Mojave.iso.cdr.    It does not respond to keyboard input, and didn't change even after sitting for a couple hours.  During this time VirtualBox is busy.
Expected behavior
I expected to see the Clover boot menu.
Additional context

I'm using VirtualBox 5.2.18 on a Mac Pro host running macOS 10.13.6.

Aha!  Changing the VM version from "Mac OS X (64-bit)" to "macOS 10.13 High Sierra (64-bit)" fixed it!


Merge remote-tracking branch 'upstream/master'

@DavidRouyer this is awesome! Thank you very much. But before I merge it in, can you give me a short summary if you disabled tests or if you did comment something out we have to take care about in the future? (because we should keep this stuff as TODO comments that we don't forget it)

@devCrossNet So, I downgraded the Angular version from 2.3.1 to 2.2.3 which means i didn't took the changes made in ngtools and I've commented or removed the assertions "Version.assertAngularVersionIs2_3_1OrHigher".
Further merges are blocked for now due to the Angular version but we'll get everything back later.
I've just disabled one test, the aot-i18n.ts test, because AoT is not enabled (yet 😄)

Can you write TODOS or issues for this? Just to make sure we don't forget it. Would you like to be a collaborator? We can coordinate in the universal Slack channel if you're interrested.

@devCrossNet I have opened #43 and AoT is tracked by #13. It would be great, I would like to work on AoT compilation and the mobile flag

After using this branch to create a new project, when I attempt to ng serve I get the following error:
Error: Cannot find module '/private/tmp/dr/dist/server.bundle.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

@ashernevins The command ng didn't exist anymore in the universal-cli, use ung instead. Please be sure to follow the steps described here. If it is the case, please give me your repro steps.

@DavidRouyer I added you today as a collaborator. I think you're now able to merge pull requests (if not I have to figure out how to give you the permission). Feel free to merge this PR if you think it is stable enough for the master branch. I will not be able to check this PR before next week (I have a deadline on Friday and it's Christmas)
It would be really cool if you squash your last commits into one and name it like the cli convention:
feat(cli): update to angular-cli beta >=21

closes #21

If you need help with interactive rebasing, drop me a mail to<EMAIL_ADDRESS>Again, thank you very much! :-)

@devCrossNet I have squashed the commits, is it good now?
I think we can merge the PR into the master branch, more people will test it and I could start to work on AoT :)

This still doesn't work. Is there no automated test to see if a project can be generated and served?
These steps
git clone https://github.com/DavidRouyer/angular-cli.git
cd angular-cli
npm install
npm link
cd /tmp
ung new --universal my-project
cd my-project
ung serve
give the error
Error: Cannot find module '/private/tmp/my-project/dist/server.bundle.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Output of ung --version:
universal-cli: 1.0.0-alpha.universal.2-2
angular-cli: 1.0.0-beta.20-1
node: 6.9.0
os: darwin x64

@DavidRouyer same error with the above by @ashernevins when generated new project then ung serve.
Could you please test this before merging into master!?

You have to link the new projekt with the --link-cli flag. Can you try it again? There is a e2e test for ung serve.

@devCrossNet Thanks, that worked. It would be great to get this documented somewhere, or to make it easier. We've been struggling for a while trying to get this working.

It is in the readme and in davids guide he posted yesterday. Don't know how to document it better :-/

@DavidRouyer perfect!

Hello m i got this error , if anyone would give me a hint what it can be would be grate.
TypeError: this.rootRenderer.document.querySelector is not a function
at DomRenderer.selectRootElement (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js:1292:50)
at DebugDomRenderer.selectRootElement (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:8725:43)
at selectOrCreateRenderHostElement (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:4980:36)
at DebugAppView.View_AppComponent_Host0.createInternal (/AppModule/AppComponent/host.ngfactory.js:13:16)
at DebugAppView.AppView.createHostView (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:9147:25)
at DebugAppView.createHostView (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:9407:56)
at ComponentFactory.create (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:5481:29)
at ApplicationRef.bootstrap (/Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:6550:44)
at /Users/goriunov/Desktop/Test/foo/node_modules/@angular/core/bundles/core.umd.js:6459:93
at Array.forEach (native)

Hello @goriunov, I can't help you if you don't give me your repro steps and which browser you're using.
@devCrossNet I think it's better to merge this and let people open proper issues?

@DavidRouyer sure. I also want to give you access on npm that you can publish new versions. Are you familiar with this topic?

I've done it once, a long time ago ^^'

Create a tag when the code is stable, push it
npm version my-new-version
npm publish
?

we have a doc for this: https://github.com/devCrossNet/angular-cli/blob/master/docs/publish.md
but I think I have to give you access to the package, do you know how to do it?

@devCrossNet Look at this

nice, do you have an npm user?

Yes https://www.npmjs.com/~davidrouyer

ok, you are now able to publish. maybe we go through the process before. on slack or skype or something. just let me know :-)

If you have a slack channel for the CLI, add me<EMAIL_ADDRESS>

I've sent you an invitation. channel: universal-tooling

Hi @devCrossNet please send me a slack invitation<EMAIL_ADDRESS>Many thanks.

@phatpham9 you got an invitation

Thank you @devCrossNet

@phatpham9 channel: universal-tooling :-)


Adds color argument to hist()

Thanks for that nice plotting package. I added a color argument to hist, as I dont fancy the blue very much.

Looks ok to me


[5.10] Allow external links in "Relationships" section

Explanation: Adds support for rendering links to external locations in the "Relationships" section
Scope: Impacts link component used across the app
Issue: rdar://112048068
Risk: Low, minor change to reference component, small change to Relationships component
Testing: Added/updated unit tests, tested Relationships section in scenarios with/without external links, checked for general regressions with links
Reviewer: @dobromir-hristov
Original PR: #737

@swift-ci test


Mismatching of table headers

hi, thanks for making such a good repo for such a challenging problem.
I am encountering a constant issue of mismatching of table columns header. while exploring this issue in depth, I can across a fucntion called "build_table_from_html_and_cell".
I don`t know whether it is due to this function or something else.
Please can u tell me how is it you are merging the html output and cell output. What logic you are using?
For your reference
Input Image

Output

There are some cases where the result is much worse than this.

If i understood correctly there are as many cell output (text) as bounding boxes. So given a list of cell outputs and bounding boxes, the function just goes through the list and pop one element each from both list. Maybe reading their paper helps to understand better.

Thanxs for the reply. but what i mean to say is if you look at the input image header and output image header, you will notice a mismatch of headers. Is there a way to fix it?

I m testing out this repo for next days as well, if i find anything that could help resolving this issue, i ll let you know :)

Although the number of cell output text and bbox are the same, the number of cells in the html structure output does not necessarily match the other two, which may result in the bad result.


Fix link for SSL swinunetr_finetune.ipynb

Fixes #1386 .
Description
Update link
Checks

[x] Avoid including large-size files in the PR.
[x] Clean up long text outputs from code cells in the notebook.
[x] For security purposes, please check the contents and remove any sensitive info such as user names and private key.
[x] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the ./figure folder

cc @finalelement

Better to make it automatically download the weights?
Thanks.

@finalelement I will finish this PR, but I think @Nic-Ma 's point makes sense. We can add a wget command to download the checkpoint.


Supporting splits

So, I've noticed that although the plugin goes to some lengths to hide split operations, the truth is that you can split using the command palette/hotkeys, and then adjust your split sizes and whatnot.  But closing the other leaves closes the entire popover.
I've made a small patch that allows closing individual leaves within a popover without closing the whole thing, and it works pretty well, with a couple minor limitations: namely, double-clicking collapses all the splits in a way that's a bit ugly if you have a horizontal split in there, and the pin icons don't really do anything on anything but the original leaf.  (Pane relief's commands to move the panes left/right or up/down in their splits also work!)
Would you like a PR?  I think I can flesh things out to properly close everything and get rid of the Array.prototype hack, too.  Pinning is a bit tricky -- ideally the pin would only ever appear on the top/leftmost leaf, but I think that's pretty doable.  And of course the menu filtering (at least for splits) could be removed.

Yeah, splitting is hidden right now because of exactly what you just mentioned. I haven't got around to making it work well enough to make it visible. Definitely open to a PR that gets the splitting capability stable and adds the split options back to the context menu.
The Array prototype hack is to get to Licat's active popover array since he's managing that already. Were you thinking of just doing our own tracking array? Since you can't iterate popovers with iterateLeaves, it's useful to have them all in an array if you want to do anything programmatic with them.

Yeah, not technically an array but a weakmap from dom elements to popover instances, populated when a popover is created.  Then there's a function, HoverEdtior.activePopovers() that scans hover popovers present in the dom and looks them up in the weakmap, returning a list of what it finds.  (See the first commit of #27 for just that part of the changes.)

There are some folks who are already leveraging the activePopovers property on the root of the plugin instance so I'm going to add back:
  get activePopovers(): HoverEditor[] {
    return HoverEditor.activePopovers();
  }

unless you see any issues with that.

Wow, really?  Yeah, shouldn't be any problems there, as long as they don't save the list anywhere.  What are they using it for?

(Also, the list only contains HoverEditors, not other popups, in case they were wanting that.)

If he can have the main process filter for window.open() allow creating about:blank windows, we might be able to try popping out to other windows entirely.  :)

Closing this since #52 will support everything that was intended for this issue (and a fair bit extra).


⚠ Turnos 24x7 has degraded performance

In 2f93729, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 5597 ms

Resolved: Turnos 24x7 performance has improved in 9587ad1.


Use ReadyToRun on dotnet6 lambda

This is following the typical practice when creating a dotnet lambda from the AWS template:
https://github.com/aws/aws-lambda-dotnet/blob/2eb29ad5de3910677040b14c53f1e3f79f611453/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj#L11

Thanks! 🥳


Syntax highlighting for GitHub in README

Self-explanatory. I know the code format you had looks nicer when viewing the README as plain-text, but IMHO it's more important to have syntax highlighting when viewing it on GitHub. Just close this if you disagree, no hard feelings.

Can you include the very first example as well for consistency?

Whoops sorry :) Fixed.

Thanks!


multiple loops only uses 2 threads

I have three loops and because the outermost loop and innermost loop has a relationship that their summation is roughly a constant, thus I need to divide the thread evenly on these three loops, but somehow @batch only uses two cores
the implementation
using Test
using LoopVectorization
using LinearAlgebra
using BQCESubroutine
using CheapThreads
using YaoLocations: YaoLocations, plain, Locations, CtrlLocations, merge_locations
using BQCESubroutine: ctrl_offset, bcomspace, bsubspace, broutine!, log2dim
using ThreadingUtilities
using BenchmarkTools

function broutine2x2!(S::AbstractMatrix{Complex{T}}, U::AbstractMatrix, locs::Locations) where T
    plain_locs = plain(locs)::Int
    step_1 = 1 << (plain(locs) - 1)
    step_2 = 1 << plain(locs)

    U11 = U[1, 1]; U12 = U[1, 2];
    U21 = U[2, 1]; U22 = U[2, 2];
    @inbounds @batch for j in 0:step_2:size(S, 2)-step_1, b in 1:size(S, 1), i in j:j+step_1-1
        ST1 = U11 * S[b, i+1] + U12 * S[b, i+step_1+1]
        ST2 = U21 * S[b, i+1] + U22 * S[b, i+step_1+1]

        S[b, i+1] = ST1
        S[b, i+step_1+1] = ST2
    end
    return S
end

it works fine when the outer loop is large enough, but if you change locs to make the outer loop small, e.g
N = 20
S = rand(ComplexF64, 1, 1 << N)
U = rand(ComplexF64, 2, 2)
locs = Locations(19)
@benchmark broutine2x2!(S, U, locs) setup=(S=$(copy(S)))

it only uses two cores in this case. since @batch doesn't error like Threads.@threads on multiple loops, I assume it actually handles multiple loops? but not sure how to make this work.

I currently manually workaround this by dividing this triple loop using https://github.com/QuantumBFS/BQCESubroutine.jl/blob/multithreads/src/schedule.jl
function broutine2x2!(S::AbstractMatrix{Complex{T}}, U::AbstractMatrix, locs::Locations) where T
    plain_locs = plain(locs)::Int
    step_1 = 1 << (plain(locs) - 1)
    step_2 = 1 << plain(locs)

    U11 = U[1, 1]; U12 = U[1, 2];
    U21 = U[2, 1]; U22 = U[2, 2];

    Hmax = size(S, 2)
    nthreads = Threads.nthreads()
    space = BQCESubroutine.CartesianSpace(0:step_1-1, 1:size(S, 1), 0:(Hmax>>>plain_locs)-1)

    @inbounds @batch for tid in 1:nthreads
        range = BQCESubroutine.schedule_task(space, tid, nthreads)
        broutine2x2_task!(S, (U11, U12, U21, U22), range, step_1, plain_locs)
    end
    return S
end

However, my implementation of CartesianSpace iterator somehow make single thread performance much worse... as a result the overall performance is still not great

@batch only threads the outer loop.
For example, from @macroexpand:
var"#32###LOOP##" = static(0):step_2:size(S, static(2)) - step_1
#= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:137 =#
var"#33###ITER_LENG##" = CheapThreads.static_length(var"#32###LOOP##")
#= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:138 =#
var"#34###LOOP_STEP##" = (CheapThreads.CheapThreads).static_step(var"#32###LOOP##")
#= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:139 =#
var"#35###LOOPOFFSET##" = (CheapThreads.CheapThreads).static_first(var"#32###LOOP##")
begin
  #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:159 =#
  var"##closure##" = let
    #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:160 =#
    ((var"##LOOPOFFSET##", var"##LOOP_STEP##", S, step_1, U11, U12, U21, U22), var"##SUBSTART##"::Int, var"##SUBSTOP##"::Int)->begin
      $(Expr(:meta, :inline))
      #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:160 =#
      #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:161 =#
      var"##LOOPSTART##" = (var"##SUBSTART##" * var"##LOOP_STEP##" + var"##LOOPOFFSET##") - var"##LOOP_STEP##"
      #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:162 =#
      var"##LOOP_STOP##" = (var"##SUBSTOP##" * var"##LOOP_STEP##" + var"##LOOPOFFSET##") - var"##LOOP_STEP##"
      #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:163 =#
      begin
        $(Expr(:inbounds, true))
        local var"#40#val" = begin
          #= /home/chriselrod/.julia/dev/CheapThreads/src/closure.jl:164 =#
          for j = var"##LOOPSTART##":var"##LOOP_STEP##":var"##LOOP_STOP##", b = 1:size(S, 1), i = j:(j + step_1) - 1

It only partitions the outermost loop.
LoopVectorization will thread up to 2 loops at the moment.
We could make CheapThreads also divide up the outer two most loops among threads.
CheapThreads already walks the entire expression anyway to look for arguments to pass in (so it can avoid capturing them in the closure), so it could also look for a second loop to thread.

However, my implementation of CartesianSpace iterator somehow make single thread performance much worse... as a result the overall performance is still not great

CartesianIndices itself has that problem, where LLVM doesn't really know how to handle it and thus doesn't optimize it well.


Updated Account Profile page for Bootstrap

Added Bootstrap.js support for Account Profile pages

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


Add missing strongly typed overloads to FileTree

This PR adds the following missing strongly typed overloads to FileTree:

FileTree#matching(Action<? super PatternFilterable>)
FileTree#visit(Action<? super FileVisitDetails>)

See https://github.com/gradle/gradle-script-kotlin/issues/126

Merge in 9dc4ebf.


Enforce our preferred types order in type switch

Implement before including linter #654.

I think we don't need a separate issue for that, #654 is good enough.


[SPARK-11643] [SQL] parse year with leading zero

Support the years between 0 <= year < 1000

Test build #45886 has started for PR 9701 at commit fd34d86.

Test build #45886 has finished for PR 9701 at commit fd34d86.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

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

Merged build finished. Test FAILed.

Test build #2062 has started for PR 9701 at commit fd34d86.

Test build #2062 has finished for PR 9701 at commit fd34d86.

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

LGTM except a minor suggestion


fix: improve interoperability of rules with side-effects

Summary
Fixes https://github.com/web-infra-dev/rspack/issues/4112
Fixes https://github.com/web-infra-dev/rspack/issues/4003
This PR fixes the issue on the Rspack side to provide a better interoperability
with JavaScript runtime. However, leveraging the order of each rule being called
is, to me, not a good choice to make, but webpack does not provide a good alternative
for us to match resourcePath and resourceQuery at the same time,
which is a bummer for implementations in a multi-threaded environment.
Nevertheless, it's reasonable for vue-loader or some other loaders to choose as
they do not have another choice to make.
See: https://github.com/web-infra-dev/rspack/issues/4003#issuecomment-1689662380

Test Plan
Tested locally on the reproduction demos.

Could you add a test, just to prevent regression

Could you add a test, just to prevent regression

@ahabhgk I suggest us to figure out an SOP for testing concurrency issues in the first place and then, come back to the test.


Consider expanding Code of Conduct?

You all have a great Code of Conduct policy so far!  But it could be even better if you expand the language of inclusion beyond the "standard legal requirements" - have a look at 18F's for some really great additions:
https://github.com/18F/code-of-conduct/blob/master/code-of-conduct.md
In particular,

Negative or offensive remarks based on the protected classes as listed in the GSA Anti-harassment Policy of race, religion, color, sex (with or without sexual conduct and including pregnancy and sexual orientation involving transgender status/gender identity, and sex-stereotyping), national origin, age, disability (physical or mental), genetic information, sexual orientation, gender identity, parental status, marital status, and political affiliation as well as gender expression, mental illness, socioeconomic status or background, neuro(a)typicality, physical appearance, body size, or clothing. Consider that calling attention to differences can feel alienating.

That looks good to me. I'll make a pull request with the change :)


should i keep ?

i have enabled  the process migitations for  certain builtin APPS
set-ProcessMitigation -System -enable DEP
set-ProcessMitigation -System -enable Bottomup
set-ProcessMitigation -System -enable ForceRelocateImages
set-ProcessMitigation -System -enable CFG
set-ProcessMitigation -System -enable EnableExportAddressFilterPlus
set-ProcessMitigation -System -enable EnableExportAddressFilter
set-ProcessMitigation -System -enable EnableImportAddressFilter
set-ProcessMitigation -System -enable EnableRopSimExec
set-ProcessMitigation -System -enable EnableRopCallerCheck
set-ProcessMitigation -System -enable EnableRopStackPivot
set-ProcessMitigation -System -enable SEHOP
set-ProcessMitigation -System -enable TerminateOnError

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

ID: 981c9ad4-d618-de21-4a79-0262b5d377d8
Version Independent ID: 5657feb8-539d-90eb-0b81-3f461158e0dd
Content: Mitigate threats by using Windows 10 security features (Windows 10)
Content Source: windows/security/threat-protection/overview-of-threat-mitigations-in-windows-10.md
Product: w10
GitHub Login: @Justinha
Microsoft Alias: justinha

exploitsettings.zip

@RAJU2529 Can you clarify your question? Are you asking if you should keep mitigations enabled?

yes sir.  moreover I attached settings.xml  in  zip

please download.xml file and verify the settings I have enabled sir.
If I made any mistake in enabling settings, please correct and inform to me sir.

sir, did you seen my attachment,  exploitsettings.zip

yes

that.xml file is settings I have enabled only after reading your article.
Thanks a lot

OK. As long you the setrtings don't cause any trouble with your apps you shoukd keep them enabled. You might also look at configuring these setting using The Windows Security app, it's a more user-friendly interface.


Fix #2221 LDAP username attribute must be fetched

This is fix-up for 573305f. Forgot to fetch AttributeUsername value from the
LDAP server, so the setting was effectively not working as intended.

Thanks!


Refactor EqPolynomial::evals

https://github.com/a16z/jolt/blob/main/jolt-core/src/poly/eq_poly.rs
Currently the function signature is pub fn evals(&self) -> Vec<F>
If we change this to pub fn evals(r: &[F]) -> Vec<F>, we should be able to avoid some unnecessary cloning throughout the codebase.

hi, @moodlezoup , I've submitted a pr. Please review

#355


Add flag to set whether a window should close with the last tab

This PR adds a flag that allows the user to set whether a window should close when the last tab is closed.
Closing the last tab will instead open a new tab when close-window-with-last-tab is set to never.  The window can still be closed via the menu, the titlebar, keyboard shortcut, etc.
I was previously using an addon to handle this.  Unfortunately it needed to keep a blank tab pinned to function, polluted the tab history, and it also prevented dragging tabs between windows.
It made more sense to add a few lines of code to implement the functionality.

Sure thing!  I've updated the commit.

Is it possible to close the whole chromium application after closing the last tab?


fix: [PL-51814]: Fix stateful set test to include known values.

fix: PL-51814: Fix stateful set test to include known values.

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

I think we should have a common override value in all the charts, containerSecurityContext makes more sense since now the charts have a differentiation between pod and container security contexts to be provided. Either way, having a similar way to define this would be a better way and we can use these tests to find out where it differs and make fixes. I believe this would be there in deployment.yaml files.


Some Unittest Layer input is uninitialized but pass test

Some weight loading logic is inside reinitialize but it is not called for some forwarding tests after https://github.com/nnstreamer/nntrainer/pull/1001/files.
This leaves additional mystery how those tests managed to pass so far.

TEST_F(nntrainer_BatchNormalizationLayer, forward_backward_training_01_p) {
  layer.setTrainable(true);
  sharedConstTensor forward_result;
  //////////////////////////// actually reinitialize() should be called here

  allocateMemory();
  EXPECT_NO_THROW(forward_result =
                    layer.forwarding_with_val({MAKE_SHARED_TENSOR(in)})[0]);
  matchOutput(*forward_result, "tc_bn_fc_1_goldenBNResultForward.out");

  nntrainer::Tensor backward_in(layer.getOutputDimension()[0]);
  loadFile("tc_bn_fc_1_goldenBNLayerBackwardDxIn.out", backward_in);

  nntrainer::Tensor backward_result =
    *layer.backwarding_with_val(1, {MAKE_SHARED_TENSOR(backward_in)}, opt)[0];

  matchOutput(backward_result, "tc_bn_fc_1_goldenBNLayerBackwardDx.out");
}

in is loaded at reinitialize but it is not called

@zhoonit Please check, #1181 might have resolved this.

Yes this is resolved with #1181. Thanks