[WB-7468] [WB-7692] Settings refactor

Fixes WB-7468
Fixes WB-7692
...and a ton of other stuff
I apologize for the size of this PR and the length of the description below :)
Description
Context: currently, settings are handled in a very complex manner, making it somewhat challenging to add new features and to maintain the existing ones.
The main purpose of this PR (which is likely only the first one in a series of PRs) is to refactor the wandb.sdk.wandb_settings.Settings class to provide:

Consistency, tight control, and encapsulation: implement general interfaces for settings.

Enable preprocessing, validation, and runtime hooks (e.g. a setting can depend on another setting) for individual settings.
Implement and enforce source priority logic in a consistent matter. Brake settings into policies and non-policy ones.

Compactness

Having addressed the above, I focused on making sure that nothing is broken across the client.
It's been a lot of fun working on this, and I expect even more fun from the review process :)
Implementation details
This PR adds the Property class that is utilized by the Settings.
Property: a class to represent attributes (individual settings) of the Settings object.

Encapsulates the logic of how to preprocess and validate values of settings throughout the lifetime of a class instance.
Allows for runtime modification of settings with hooks, e.g. in the case when a setting depends on another setting.
The update() method is used to update the value of a setting. Enforces source priority logic when updating values.
The is_policy attribute determines the source priority when updating the property value. E.g. if is_policy is True, the smallest Source value takes precedence.
Ability to freeze/unfreeze.

Here's a basic example (for more examples, see tests/wandb_settings_test.py)
from wandb.sdk.wandb_settings import Property, Source

def uses_https(x):
    if not x.startswith("https"):
        raise ValueError("Must use https")
    return True

base_url = Property(
    name="base_url",
    value="https://wandb.com/",
    preprocessor=lambda x: x.rstrip("/"),
    validator=[lambda x: isinstance(x, str), uses_https],
    source=Source.BASE,
)

endpoint = Property(
    name="endpoint",
    value="site",
    validator=lambda x: isinstance(x, str),
    hook=lambda x: "/".join([base_url.value, x]),
    source=Source.BASE,
)

>>> print(base_url)  # note the stripped "/"
'https://wandb.com'
>>> print(endpoint)  # note the runtime hook
'https://wandb.com/site'
>>> print(endpoint._value)  # raw value
'site'
>>> base_url.update(value="https://wandb.ai/", source=Source.INIT)
>>> print(endpoint)  # valid update with a higher priority source
'https://wandb.ai/site'
>>> base_url.update(value="http://wandb.ai/")  # invalid value - second validator will raise exception
ValueError: Must use https
>>> base_url.update(value="https://wandb.dev", source=Source.USER)
>>> print(endpoint)  # valid value from a lower priority source has no effect
'https://wandb.ai/site'

Settings: a class to that uses Property objects to represent configurable settings.

The code is supposed to be self-documented -- see wandb/sdk/wandb_settings.py :)
Clearly and compactly defines all individual settings, their default values, preprocessors, validators, and runtime hooks as well as whether or not they are treated as policies.
Provides a mechanism to update settings specifying source (which abides the corresponding Property source logic) via Settings.update(). Direct attribute assignment is not allowed.
Careful Settings object copying.
Mapping interface.
Exposes attribute.value if attribute is a Property.
Ability to freeze/unfreeze.
Settings.make_static() method that we can use to replace StaticSettings.
Adapted/reworked convenience methods to apply settings originating from different source.

Other stuff in this PR

Fix WB-7468 (code saving and wandb.login()).
Fix WB-7692 (drop some of the deps back-ported to py2).
A note on using a debugger in CONTRIBUTING.md.
Configurable '{"code_saving_enabled": true}' in mock_server ctx.
Improved test suite robustness (see below).
Expose run settings via a public attribute Run.settings. We should also start saving them by default with each run as it would provide a lot of useful information that is not otherwise captured.

Testing
Numerous (>100) tests, both settings-specific and not, were added or fixed.

No more sloppiness in the way the settings are treated in the tests :)
Improved isolation for numerous tests that were leaking state through filesystem and env variables and potentially affecting other tests (in a flaky way) executed by the same pytest worker.

Some notes
When designing this, I considered external libraries attrs and pydantic as potentially useful. Neither seemed like a good option for us:

pydantic generates scary code behind the scenes.
attrs only ensures conversion and validation at init.
Neither have runtime hooks/converters/validation.
No easy way to implement tracking and updating values based on source priorities.

Status as of 1/11/2022

A single functional test is failing: disabled code saving. This happens bc the mock server sets {“code_saving_enabled”: True} in the user settings by default, which, since now code saving setting is a policy, has higher priority than the ENV variable that the test sets. In unit tests, I made that configurable and so I do live_mock_server.set_ctx({"code_saving_enabled": None}) before running the corresponding tests — now I am working on making this possible with yea. Shouldn't take too long, but I think the review can proceed in the meantime.
Several tests on Windows are failing -- need to fix them, but I also think it's not a road block for the review.

Many thanks @vanpelt!

Overall looks great! One addition I would suggest is a quick explainer on how to add new settings. We could put this in a comment of wandb_settings or one of our doc files, but there's a lot to think about between env vars, validation, and serialization that would be good to clearly define.
Good point, will add a section to CONTRIBUTING.md, there's quite a bit going on to have it only in the comments, me thinks.


The TID extension is insufficient for the current compartmentalisation models

The TID extension defines two registers: STID(C) and UTID(C) of which the latter is read-only. In order to support compartmentalisation models on multiple privilege levels running independently, I propose to add a read-write CSR on all support privilege levels resulting in: MTID(C), STID(C), and UTID(C).
Furthermore, I propose enforcing the following permissions on the CSRs:
MTID(C) is writeable with from M mode with ASR permission, but readable from M mode without ASR permission.
STID(C) is writeable with from M mode with ASR permission or S mode with ASR permission, but readable from M mode without ASR permission or S mode without ASR permission.
UTID(C) is writeable with from M mode with ASR permission or S mode with ASR permission or U mode with ASR permission, but readable from M mode without ASR permission or S mode without ASR permission or U mode without ASR permission.
I propose the following indexes for the CSRs:
mtidc: 0x780
stidc: 0x580 (unchanged)
utidc: 0x480

As a note, which one might add (or not add) to the spec: Having xTID capability registers adds the need to seal the content of these registers as it is otherwise unprotected from unprivileged code.

As a note, which one might add (or not add) to the spec: Having xTID capability registers adds the need to seal the content of these registers as it is otherwise unprotected from unprivileged code.

Not necessarily; only if the capability itself needs to be protected. It could just be a pointer to memory (that itself could contain sealed capabilities, but could just be a bunch of integers), though in that case you’d presumably want to make it a read-only capability.


Update paging.js

Closing the li

Hey thank you Jimmy!
I'm pretty sure I did this with many of the li's in the index page too. I'll take a moment and get those fixed up as well.
I blame Paul Irish, I remember seeing this post when I was working on the layout stuff :)
http://www.paulirish.com/2011/primitives-html5-video/


Configure hosts for application

Note: the healthcheck endpoints are requested by IP, not domain, so we need to specifically exclude them from the protection.
Trello card

Probably worth testing this one on integration before merging.

I had this deployed to integration earlier today.  Confirmed both Signon works and the issue appears to be resolved.


Arbitrary partitioning key for MergeTree engine family

ClickHouse's partitioning key is fixed in month.
I want to create a partition key on a day basis.
Is it possible after Q4 2017?

It is possible right now! (starting from the 54310 release)
Documentation is under development now, but here are a few examples in tests:
https://github.com/yandex/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_local.sql
https://github.com/yandex/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql


WIP: Affinity groups

Do not merge
PR created for code review purposes.
https://issues.apache.org/jira/browse/LIBCLOUD-671

Can you link the libcloud issue in the pr description?

We didn't create it yet.

https://issues.apache.org/jira/browse/LIBCLOUD-671

PR LGTM

https://github.com/apache/libcloud/pull/468

can this be closed now? or merged?


Production build issue

This works fine for me in dev mode, but production builds fail if I load
./index.html
./dist/index.html
from the browser. My url looks like: localhost/codepan and it's in /var/www/html/codepan

You should use a subdomain or change poi.config.js as this:
const OfflinePlugin = require('offline-plugin')

module.exports = options => ({
  postcss: [
    require('postcss-nested'),
    require('postcss-property-lookup')
  ],
  extendWebpack(config) {
    // inject offline-plugin in production build
    if (options.mode === 'production') {
     config
        .output.publicPath('./')

      config.plugin('offline')
        .use(OfflinePlugin, [{
          caches: {
            main: [':rest:']
          },
          ServiceWorker: {
            events: true
          },
          AppCache: {
            events: true
          }
        }])
    }
  },
  production: {
    sourceMap: false
  }
})

The simpliest way is set homepage: './' (works for all hash router) or homepage: '/codepan/' in your case, see https://poi.js.org/#/options?id=homepage


Can't find the function "save_dist_stats".

Hi, I can't find "save_dist_stats" function written in simulate_delays_cfr_tidied.R.
Is there any package which I need to install ??
Could you please help me ? Thank you.

Any update?

It worked. Thank you:)

Hi guys,
How did we fix this?


Waypoint: Manipulate Arrays With unshift

Challenge http://freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift has an issue.
The error is in the assert function. It says toLowerCase() is not a function

@denalove thanks for posting this issue!
Closing this issue as a duplicate of https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2644. Also there is a PR https://github.com/FreeCodeCamp/FreeCodeCamp/pull/2294, but unfortunately it has merge conflicts.

Please review the Guidelines for Contributing, thank you!.


Delete empty folders from downloaded duckdb indexes in /search

See comment https://github.com/huggingface/datasets-server/pull/1536#discussion_r1283612238
Currently, the job deletes expired files (more than 3 days in prod) but if the folders remain empty those will continue existing, we should remove them.

Closing this issue since folder deletion it is already covered in https://github.com/huggingface/datasets-server/blob/main/jobs/cache_maintenance/src/cache_maintenance/clean_directory.py#L36


No matching version found for<EMAIL_ADDRESS>

Hello there, thanks for your awesome work!
However when I tried to follow the documentation, this command gave me an error
npm create<EMAIL_ADDRESS>my-m2-app
npm ERR! code ETARGET npm ERR! notarget No matching version found for<EMAIL_ADDRESS>npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.
Seems the create-react-storefront version 8.014.0 is not available yet on npm.
Could you please help me to check?
Thanks

Thanks for the notice @MartinPham. That was a typo. I updated readme.
Please use just:
npm create react-storefront my-m2-app


Issue while  executing CDMUtilConsoleApp

Hi
We have download the CDMUtilConsoleApp and update the below parameters  as below

Whenever we are trying to execute the  ConsoleApp, it starts and Disappears. Let us know, if we are missing any DLL's.
Tried using on Azure Dev VM.

You can try running the console app with command line or powershell and see the steps that is failing.

closing the issue - please re-open if you still have issue


Change Cow<[ComponentId]> to Box<[ComponentId]>

Cow::Borrowed was never used

Should note the benefit here: Cow is 32 bytes. Box is 16.

Should note the benefit here: Cow is 32 bytes. Box is 16.

Additionally, it removes a branch on whether Cow is owned or borrowed, though given it was always taken the same way, I'd expected branch prediction to erase any measurable benefit.

bors r+


Canceling orders on Oasis is not reliable recently

Sometimes I am unable to cancel orders submitted into the Oasis Dex. This started a few weeks ago. I click the cancel button but the browser doesn’t do anything at all and my metamask prompt for signature (using a ledger nano S) never happens.
When this happens, I get the same error on multiple browsers at the same time. When the problem goes away, all browsers work again.
This is the error message I get:
utils.js:65 Uncaught Error: Error: [number-to-bn] while converting number “1250000138.75” to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: “1250000138.75”
at f (utils.js:65)
at Object.b (utils.js:276)
at formatters.js:126
at Array.forEach ()
at c (formatters.js:125)
at u.inputTransactionFormatter (formatters.js:162)
at index.js:146
at Array.map ()
at u.formatInput (index.js:144)
at u.toPayload (index.js:179)
at n (index.js:534)
at Object.d._executeMethod (index.js:909)
at callsHelpers.ts:111
at t.f (transactions.ts:211)
at t.project (callsHelpers.ts:100)
at t._next (switchMap.js:45)
at t.next (Subscriber.js:64)
at t._next (tap.js:62)
at t.next (Subscriber.js:64)
at t._next (take.js:51)
at t.next (Subscriber.js:64)
at t.notifyNext (combineLatest.js:83)
at t._next (InnerSubscriber.js:15)
at t.next (Subscriber.js:54)
at t._next (map.js:52)
at t.next (Subscriber.js:64)
at subscribeToPromise.js:7

Any updates on this?
Thanks!


Target: create build shell script

Support to define and add to targets the shell script for the "Run script" build phase

Thank you @JoelGerboreLaser


Internal hierarchy model

Create internal hierarchy model and fix closure_tree that need database connection on gem initialisation
Closure tree require database connection in initialize gem process. :/
TODO:

[ ] uncomment https://github.com/Exelord/Treelify/blob/master/lib/treelify/hierarchy.rb and make the build works :) (try to run successfully rails s and fix tests)

Open issue?: https://github.com/mceachen/closure_tree/issues/203

@Exelord I will handle that during this weekend.


MediaSession: Resuming playback incorrect in console

When using MediaSession and using MuxStatsSdkMedia3 to monitor the player, the events after a pause event on the video is performed are showing as "Starting Up" on the console even while video is currently playing on the device. This will happen pressing pause directly in the player or via the notification.

This can be reproduced by cloning the androidx/media repo and using the session demo. I added implementation "com.mux.stats.sdk.muxstats:data-media3:1.0.0" to gradle and added the following right after player initialization inside of initializeSessionAndPlayer() in PlaybackService.kt:
muxStats = player.monitorWithMuxData(
            context = baseContext,
            envKey = ENV_KEY,
            customerData = CustomerData()
    )

Hi, thanks for your report, and your reproduction steps!
I was able to reproduce this issue and I should have a fix sometime next week.

@khorn4 This should be fixed in v1.0.1 of the SDK. Please reach out if you see any issues!


[Add feature] Features are not added to correct location

Features are getting added to origin instead (0, 0)

I don't see any issue with the current behaviour. Can you please elaborate?

This may have been an old regression, let's close it as Cannot Repro for now.


🎮 Game Request
Game logic and basic description
Point down the features

Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @Khushi-Pushkar , You can't have another issue before completing the previous one 😀
you already have the following 1 open issues 👀 ! :
#4705

Hey @Khushi-Pushkar ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

Hey @Khushi-Pushkar !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹


Add setting to require filenames to match a regular expression on save

Possible fix for #40
Maybe related to #26
Currently, when the format_on_save setting is enabled, it attempts to format all files, even non javascript files. This can add quite a bit of lag after saving files while executing jscs. The lag is understandable when actually trying to fix javascript, but is unnecessary when saving anything else.
I've introduced a new setting called format_on_save_extensions  which accepts a list of file extensions that saved filenames are tested against. This changes the default behavior and may be a breaking change to some people's workflow.
To opt out of the new feature, set the setting to something falsey.
Old verision
I've introduced a new setting called format_on_save_match_file_name which accepts a regular expression that saved filenames are tested against. For backwards compatibility, I have left the default blank which disables this new feature.
To opt into the new feature, set the setting to something like "format_on_save_match_file_name": ".*\\.jsx?". This will match any .js or .jsx files. Note that this will not interfere with manually executing the format_javascript command as I believe you should still be able to manually format non javascript files.

@jtokoph Thanks for the pull request!
Based on #26, I think I'd prefer to have the key be named format_on_save_extensions and to have it default to some set of extensions that can be overridden. More of an opt-out than an opt-in. It seems like there isn't much value in supporting files we know JSCS can't handle.

@TheSavior I've updated the branch with your suggestions.

Thank you for contributing. Released as 2.0.0 due to the breaking change.


Avoid panicking if the folder is missing

Small request for enhancement: would it be possible to avoid panicking if the embedded folder is missing?
error: proc-macro derive panicked
  --> src/static_files.rs:46:10
   |
46 | #[derive(RustEmbed)]
   |          ^^^^^^^^^
   |
   = help: message: #[derive(RustEmbed)] folder '/path/to/folder' does not exist. cwd: '/path/to/project'

Some people may find the panic useful, so maybe the macro could still panic for release builds, or only avoid panicking if a allow_missing flag is set.
My rationale for this is that I use RustEmbed to embed a javascript web app UI into the server. During CI tests, I build and test the server by itself without building the UI, so the folder is missing.
There are other ways to get around this like creating an empty folder before building the server, or keeping the empty folder in the repository. So this feature request isn't critical in any way, but may be useful.

We can have better behavior here to generate a compile_fail statement, but we should still fail the build.

expo's build tool completely deletes the folder before exporting, which ends up deleting the gitignore file and causes changes.
I ended up working around this by adding a build script that creates the folder if it is missing.
I see the value in failing the build, so I'll leave it up to you if you want to close this issue or not. Thanks for the suggestion!

@SeriousBug it would be weird to have a flag which behaves differently in debug vs release mode. Since you have already found a simple work around for this going to to close this.


Authorization

Auth proccess of turning username and password to session token, that can be used to identify user sessions in server enviroment.
Use it for #1 Websocket auth

Basic auth system is done.


WIP: Use cmake and scikit-build, split into shared library and extension module

Closes https://github.com/cms-nanoAOD/correctionlib/issues/16
As discussed in https://github.com/cms-nanoAOD/correctionlib/pull/56 , this builds a shared library that can be loaded from cling/pyroot, and that the pybind11 module is linked with. I went for the include/ and lib/ structure inside the package, but there is no real constraint on that (having everything inside the python package is useful, though, because pkg_resources can be used then, and the relative paths are fixed).
To make sure the shared library is found at runtime, the RPATH of the extension module is set to a relative path. On linux this seems to work fine, for OS X the CI checks will tell (hence the WIP status). From what I've found this is not possible on Windows.
What is not identical to the Makefile (yet):

-lpthread is not there, because I don't think it's used, but easy to add
-Wall cmake prefers requiring features instead of passing flags explicitly, but could be done
the -undefined dynamic_lookup linker option for OS X, but I think the pybind11 cmake macros add it
extra_compile_args = ["/Zc:__cplusplus", "/O2"] for windows: I'm not sure if these are needed after cmake's default (on linux -O3 is in the default flags for Release builds, which scikit-build selects)

What may raise questions, or be good to know:

I moved find_packages and package_dir from setup.cfg to setup.py because scikit-build needs that to detect which python packages will be installed (otherwise they should be identical)
cmake now adds "correctionlib" to the install path, so everything will end up under `${CMAKE_INSTALL_PREFIX}/correctionlib/cmake" when building directly, without setuptools and scikit-build (this seems more logical with the "in-package" build, but could be changed)
since I could also copy the code for that, I added the cmake exports related to the shared library and header. This should make it easier for C++ code to depend on them, if it also uses cmake (by passing -Dcorrectionlib_DIR=<path_to_installed_correctionlib_package>).

Regarding your questions:

-lpthread was recommended in cpp-peglib (and is also in their CMakeList) but its not entirely clear to me why
-Wall I'm happy to accept CMake's default compiler warning configuration, but it would be nice to make it as strict as reasonable now so we can spot issues early
The windows args were because for some silly reason MSVC doesn't set  __cplusplus == 201703L for C++17 unless you add that obscure flag.. I think its safe to assume CMake handles this properly once you set target_compile_features(correctionlib PUBLIC cxx_std_17) (we'll find out anyway)

Regarding VS Code 2019 support, I think there is a workaround by just sourcing the appropriate environment in the github action? Could try adding
    - name: Prepare compiler environment for Windows
      if: runner.os == 'Windows'
      uses: ilammy/msvc-dev-cmd@v1
      with:
        arch: x64

to the ci action?

That went better, the windows build now fails due to a more familiar problem:
    ..\..\..\cpp-peglib\peglib.h(34): fatal error C1189: #error:  "Requires complete C++17 support"

is a sign that CMake is not adding /Zc:__cplusplus as we'd like

Thanks for the answers, and sorry for the debugging by CI... the windows build fails on a linker problem now, and somehow the version number isn't correctly getting propagated to evaluator_version yet.

No worries, I've been squash committing so all the nasty gets rolled up. The linker error looks pretty awful, I'm not sure what's up but would be suspicious we're missing some secret sauce from the peglib CMakeLists still.

The problems on windows were related to the default symbol visibility and install path for shared libraries. By loading it from __init__.py (instead of the rpath solution for linux and mac) the tests also pass.
evaluator_version = correctionlib_major_version still breaks all tests... I'm quite puzzled, because if anything is wrong with the version header I'd expect a compilation error instead of 0, and when testing locally everything looks fine.

I could almost see an argument that we want evaluator_version disconnected. Let's call it good for now? Already this is a huge improvement.

Fine with me :-)


cef_troubleshooter.py - checks

[Enter feedback here]
script appears to only check /var/log/syslog for incoming CEF. Many implementations of rsyslog use /var/log/messages as the file containing all incoming logs.
Validating the CEF\ASA logs are received and are in the correct format when received by syslog daemon
sudo tac /var/log/syslog
tac: failed to open '/var/log/syslog' for reading: No such file or directory
Located 0
CEF\ASA messages
Validating the CEF\ASA logs are received and are in the correct format when received by syslog daemon
sudo tac /var/log/syslog
tac: failed to open '/var/log/syslog' for reading: No such file or directory
Located 0
CEF\ASA messages
Error: no CEF messages received by the daemon.
Please validate that you do send CEF messages to agent.

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

ID: af0f0757-f2c5-be73-05de-7ac147530388
Version Independent ID: 9cc60dd2-f68d-864d-b740-f04c95f9ad21
Content: Validate connectivity to Azure Sentinel
Content Source: articles/sentinel/connect-cef-verify.md
Service: azure-sentinel
Sub-service: azure-sentinel
GitHub Login: @yelevin
Microsoft Alias: yelevin

@rofisher Thank you for your feedback . We will investigate and update the thread.

@rofisher Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.

Hi @rofisher, thanks for sending your comments in to Microsoft docs!
I can't confirm this for you yet as we're still checking with the team, but will update or clarify the docs as needed in a coming release.
I'm going to close this issue for now as we have it registered, but feel free to continue commenting as needed.
We value your contribution to docs!
#please-close


The file structure of COCO dataset

Hi,
I am wondering how to specify the data dir and the file structure of COCO dataset for quantizing DeiT models? I tried to make it like ImageNet dataset which has been given in README, but there is an error:
RuntimeError: Found 0 files in subfolders of: /xxx/xxx/coco/val
Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

And if I add another folder in the original folder like ./val -> ./val/1/. It was no error but soon ended, and the model wasn't trained at all.
It would be helpful if the authors could show the content of the directory of COCO dataset in a tree-like format. Many thanks!
Sincerely,
Yifu

The complete error log is:
Traceback (most recent call last):
  File "test_quant.py", line 272, in <module>
    main()
  File "test_quant.py", line 106, in main
    val_dataset = datasets.ImageFolder(valdir, val_transform)
  File "/xxx/anaconda3/envs/vit/lib/python3.7/site-packages/torchvision/datasets/folder.py", line 229, in __init__
    is_valid_file=is_valid_file)
  File "/xxx/anaconda3/envs/vit/lib/python3.7/site-packages/torchvision/datasets/folder.py", line 114, in __init__
    raise RuntimeError(msg)
RuntimeError: Found 0 files in subfolders of: /xxx/xxx/coco/val
Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp

Hi @yifu-ding
Sorry, this repo only contains the code related to the classification task on ImageNet dataset.
As far as I know, COCO is usually regarded as a dataset of object detection, while DeiT is a backbone for classification task, so I don't think they can go well together.
Are you going to implement post-training quantization on the detectors with COCO dataset? If so, I can provide further help.

Thanks for your kind reply @linyang-zhh. Yes I was trying to reproduce the experiment on COCO, and I find that the detector is Mask R-CNN in the paper. Will you release the code about PTQ on Mask R-CNN with COCO dataset?

@yifu-ding
Sorry, we have no plan to release the code of detection at present.
However, I can give you some insights about the implement. We use the official code of SwinTransformer.
Firstly, we manually replace full precision layers (such as Conv2d, Linear, Act, LayerNorm, Attention, etc) with quantized version (here). Secondly, we apply the calibration step (just a few forward) for that detector in MMDet framework just like here. After those steps, we will obtain a calibrated detector which is able to be quantized by PTQ.

Thank you very much for the instructions. I will open another issue if getting other problems.


[KOGITO-5932] Improving Metrics/Prometheus API.

@danielezonca @evacchi  @jiripetrlik
See
https://issues.redhat.com/browse/KOGITO-5932
This PR

remove static classes (MonitoringRegistry and PrometheusRegistryProvider)
implement CDI-beans to be injected in specific environments (Quarkus vs Springboot)
replace static usage of the former removed classes with injected ones

Needed by
https://github.com/kiegroup/kogito-examples/pull/997

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

@danielezonca
Could you please take a look again, eventually approving/merge ? Thanks

The (build) optaplanner check has failed. Please check the logs.

The (build) optaweb-employee-rostering check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) optaweb-vehicle-routing check has failed. Please check the logs.

The (build) optaplanner-quickstarts check has failed. Please check the logs.

The (build) optaweb-vehicle-routing check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) optaweb-employee-rostering check has failed. Please check the logs.

The (build) optaplanner check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) optaplanner-quickstarts check has failed. Please check the logs.

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) kogito-runtimes check has failed. Please check the logs.

@kiegroup/gatekeepers
Could you please merge this, squashing commits? Thanks!

The (build) optaweb-vehicle-routing check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) optaweb-employee-rostering check has failed. Please check the logs.

The (build) optaplanner-quickstarts check has failed. Please check the logs.

The (build) optaplanner-quickstarts check has failed. Please check the logs.

The (build) optaplanner check has failed. Please check the logs.

The (build) optaweb-vehicle-routing check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) optaweb-employee-rostering check has failed. Please check the logs.

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) kogito-runtimes check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) kogito-apps check has failed. Please check the logs.

The (build) kogito-examples check has failed. Please check the logs.

The (build) optaweb-employee-rostering check has failed. Please check the logs.

Jenkins run optaweb-employee-rostering tests

The (build) kogito-examples check has failed. Please check the logs.

Jenkins run kogito-examples test

Jenkins run kogito-examples tests

The (build) kogito-examples check has failed. Please check the logs.


Coarray ICAR mini-app generates runtime error in caf_send_by_ref

Avg response time

Defect/Bug Report

OpenCoarrays Version: 2.1.0 e9f7d197b9d303e995d4fa8b73b5af38f42cf39f
Fortran Compiler: gfortran 8.1.0 (patched)
C compiler used for building lib: gcc 8.1.0
Installation method: install.sh
Output of uname -a: Linux sourcery-institute-vm 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:15:38 UTC 2018 i686 i686 i686 GNU/Linux
MPI library being used:  MPICH 3.2
Machine architecture and number of physical cores: x86 (4 cores)
Version of CMake: 3.10.2

Observed Behavior
caf_send_by_ref prints a runtime error message
Expected Behavior
Program runs without error with GCC 6.4.0
Steps to Reproduce
git clone https://github.com/gutmann/coarray_icar
cd src/tests
export COMPILER=gnu
mkdir ../build
make
cafrun -n 4 ./test-ideal
$ cafrun -n 4 ./test-ideal
 Number of images =            4
           1 domain%initialize_from_file('input-parameters.txt')
 ximgs=           2 yimgs=           2
 call master_initialize(this)
 call this%variable%initialize(this%get_grid_dimensions(),variable_test_val)
  Layer height       Pressure        Temperature      Water Vapor
      [m]              [hPa]             [K]            [kg/kg]
   9750.00000       271.047180       206.509430       9.17085163E-06
   7750.00000       364.236938       224.725403       7.91717321E-05
   5750.00000       481.825287       243.449936       5.01311326E-04
   3750.00000       628.424316       262.669800       2.46796524E-03
   1750.00000       809.217651       282.372711       9.08217859E-03
 ThompMP: read qr_acr_qg.dat instead of computing
 qr_acr_qg initialized:   8.90000015E-02
 ThompMP: read qr_acr_qs.dat instead of computing
 qr_acr_qs initialized:   7.19999969E-02
 ThompMP: read freezeH2O.dat instead of computing
 freezeH2O initialized:  0.333000004
 qi_aut_qs initialized:   1.40000004E-02

 Beginning simulation...
Fortran runtime error on image 2: libcaf_mpi::caf_send_by_ref(): unable to allocate memory on remote image.

Fortran runtime error on image 4: libcaf_mpi::caf_send_by_ref(): unable to allocate memory on remote image.

Fortran runtime error on image 1: libcaf_mpi::caf_send_by_ref(): unable to allocate memory on remote image.

Fortran runtime error on image 3: libcaf_mpi::caf_send_by_ref(): unable to allocate memory on remote image.

Error: Command:
   `/home/rouson/Desktop/Builds/opt/mpich/3.2/gnu/8.1.0-patched/bin/mpiexec -n 4 --disable-auto-cleanup ./test-ideal`
failed to run.

Reproducing this result takes only seconds with the if the referenced *.dat files are in the present working directory when the run is launched.  These can be provided upon request.  Alternatively, the program will generate them if they don't exist.  Generating them could take roughly 20-30 minutes the first time.  They will then be detected and used in subsequent runs.  I'm hoping @gutmann or @scrasmussen will report whether GCC 9 fixes this issue. If not, please add a comment in this issue with a short reproducer.

@rouson how big are the files? You can probably upload them here (just drag them into the comment windows)

@rouson https://github.com/rouson how big are the files? You can probably upload them here (just drag them into the comment windows)

They are >300 MB in total

Well maybe not then, unless there are a bunch of them? I'm not sure what the GH upload limit is, but it might not be an issue, especially if there are a few of them.

I think you can access them here: ftp://ftp.rap.ucar.edu/pub/gutmann/coarray_icar_inputs/ though I've had issues with this ftp site and outside access.  They are also accessible here : ftp://ftp.rap.ucar.edu/incoming/irap/gutmann/coarray_icar_inputs, though that ftp site will get scrubbed in about a week.

Thanks for the FTP links. It turns out the files size limit for GH issue comment uploads is 10MB.

@gutmann Thanks to @neok-m4700 this should be fixed on master now. If you and/or @rouson can confirm that would be great!


Deleting page-content does not remove WorkflowInstances

Even if a CMS user completely deletes content via batch-delete, or individually, if any of these had previousely been part of a workflow, any related WorkflowInstance objects and records are still left hanging around, cluttering-up the "Submitted Items" GridField.
Solution 1
Prevent "unattached" WorkflowInstance's from appearing in the GridField
Solution 2
Ensure attached WorkflowInstances are also deleted when related pages are deleted.

If a user tries to 'action' the instance, does it error out? Optional
Solution 3
A reaper goes through and 'completes' the workflows in a way that highlights that the content was deleted.

@nyeholt Genius.


varlink: Fix the logger

As https://github.com/nmstate/kubernetes-nmstate/pull/663#issuecomment-746269694
mentioned, current self-cooked json string might cause problem for
unexpected string.
Introduced NmstateVarlinkLogHandler to stored the LogRecord in a
list, and only use NmstateVarlinkLogHandler.logs for varlink to
generate its JSON reply.

I have apply the patch from the container at https://github.com/nmstate/kubernetes-nmstate/pull/663 and look like it's working fine and also the test are working now.


Roll Flutter Engine from 6d615bbcfccf to 274f884a794c (1 revision)

https://github.com/flutter/engine/compare/6d615bbcfccf...274f884a794c
2023-06-11<EMAIL_ADDRESS>[Impeller] Improved numerical stability in cubic path boundary calculations (flutter/engine#42720)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


update for angular5.0,update for angular5.0, change HttpModule to HttpClientModule - [closed]

In GitLab by @liyanq528 on Jan 11, 2018, 02:25
Merges 20180108 -> dev-new-angular
update for angular5.0,clarity,ng-cookie,typescript...
add cs-guide component
change HttpModule to HttpClientModule

In GitLab by @wknet123 on Nov 13, 2019, 10:24
closed


Liver segmentation is good but this code is not finding tumor. Who find results?

Hi junqiangchen,
Thanks for providing the implementation.
Facing the same issue. Following the steps described, the results for liver segmentation is good but couldn't find good results for tumor segmentation. Can you provide any leads over this issue?

hi,
finding tumor is same with finding liver,you should prepare tumor segmentation data and training another model.

Hi junqiangchen,
Thanks for the response
From raw images, how can we prepare tumor segmentation data?
If known, can you provide insight on accessing the images and if any annotation tools required for annotating the images?

hi,
preparing liver tumor segmentation data is same with liver segmentation data,but liver tumor patch size is different from liver patch size.

Hi,
Can you provide the liver tumor patch size for liver tumor segmentation?

Hi,
I have the same issue. Could you provide us some more information? Thanks!

liver tumor patch size is 128x128x64, liver tumor patch size is 256x256x16

Thanks！

Kind Regards,
YuChen Chai
Phone: +86<PHONE_NUMBER>0
Web: https://www.fycyccreativehouse.com/
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年9月3日(星期二) 上午9:36
收件人<EMAIL_ADDRESS>抄送: "YuChen Chai"593677394<EMAIL_ADDRESS>主题: Re: [junqiangchen/LiTS---Liver-Tumor-Segmentation-Challenge] Liversegmentation is good but this code is not finding tumor. Who find results?(#13)
liver tumor patch size is 128x128x64, liver tumor patch size is 256x256x16
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi junqiangchen,
I have tried with a tumor patch size of 128x128x64, but facing some issues regarding shape.
Can you suggest what all changes need to be done in the code for patch size 128x128x64?

Hi junqiangchen,
I have tried with a tumor patch size of 128x128x24, but facing some issues regarding shape.
"InvalidArgumentError (see above for traceback): Expected begin[1] in [0, 3], but got -1"
Can you suggest what all changes need to be done in the code for patch size 128x128x24?

Hi,
your patch size should reshape to 128x128x24x1

Hi junqiangchen,
Thanks for your awesome work，I have some confused about # step4: if stridez==0,return numberxy * numberxy * 2 samples,one is [0:blockz,:,:],two is [-blockz-1:-1,:,:] in getPatchImageAndMask.py line 82,i can't understand what it mean.Can you explain it.thanks for your help!

Hi junqiangchen,
Thanks for your awesome work，I have some confused about # step4: if stridez==0,return numberxy * numberxy * 2 samples,one is [0:blockz,:,:],two is [-blockz-1:-1,:,:] in getPatchImageAndMask.py line 82,i can't understand what it mean.Can you explain it.thanks for your help!

Hi,
this mean is if input image z size is almost same with subimage z size,so generate the two subimages with fixed z order images.

Hi,
this mean is if input image z size is almost same with subimage z size,so generate the two subimages with fixed z order images.

Thank you for your reply!

Hi, I am testing the images basing your code(https://pan.baidu.com/s/1A_-u7tJcn7rIqnrLaSqi4A). May I ask the parameter for HU function(Preprocessing)
For example:
nii_image[nii_image<-200]=-200
nii_image[nii_image>250]=250
nii_image=(nii_image+200)*255/450
What is the range for your code? Thanks!
Besides, may I add you as a wechat friend?

Kind Regards,
YuChen Chai
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年9月3日(星期二) 上午9:36
收件人<EMAIL_ADDRESS>抄送: "YuChen Chai"593677394<EMAIL_ADDRESS>主题: Re: [junqiangchen/LiTS---Liver-Tumor-Segmentation-Challenge] Liversegmentation is good but this code is not finding tumor. Who find results?(#13)
liver tumor patch size is 128x128x64, liver tumor patch size is 256x256x16
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi, I am testing the images basing your code(https://pan.baidu.com/s/1A_-u7tJcn7rIqnrLaSqi4A). May I ask the parameter for HU function(Preprocessing) For example: nii_image[nii_image<-200]=-200 nii_image[nii_image>250]=250 nii_image=(nii_image+200)*255/450 What is the range for your code? Thanks! Besides, may I add you as a wechat friend?
…
------------------ Kind Regards, YuChen Chai
------------------ 原始邮件 ------------------ 发件人<EMAIL_ADDRESS>发送时间: 2019年9月3日(星期二) 上午9:36 收件人<EMAIL_ADDRESS>抄送: "YuChen Chai"593677394<EMAIL_ADDRESS>主题: Re: [junqiangchen/LiTS---Liver-Tumor-Segmentation-Challenge] Liversegmentation is good but this code is not finding tumor. Who find results?(#13) liver tumor patch size is 128x128x64, liver tumor patch size is 256x256x16 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

sure,my wechat is<PHONE_NUMBER>


Boolean attribute: no validation in published data

The Boolean attribute

accepts and displays the values "true", true, "false", 1
accepts but does not display values 0, false

but also accept "sim", "qq coisa" ...

Expected result:

Test OK.


[Bug]: Using bound data inside a comment line causes embedded text to not be commented

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When bound data is present inside a comment line, text inside double mustache is not recognized as a comment. Since JSON doesn't support comment lines, the error is right but we need to handle UI on our end.

Steps To Reproduce

Use a double mustache inside a double mustache.
Comment this line out and observe the nested mustache not recognized as a comment text

Environment
Production
Version
Cloud

Hey @ramsaptami
Can you please give a concrete example to help reproduce this issue?

@ramsaptami
You mentioned three issues in the Loom video. Please check the remarks column for each of those and let me know your thought on this.

SL
Issue
Remarks

1
When the value of a binding contains a binding-like syntax it gets replaced by null
This PR is supposed to fix this

2
Adding a comment in JSON results in an error like Plugin failed to parse JSON...
This is because JSON doesn't support comment. Quoting from the Wikipedia page of JSON =>Comments were intentionally excluded from JSON. In 2012, Douglas Crockford described his design decision thus: "I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability.<= Reference

3
{{{{someBinding}}}} evaluates to null or undefined
In Appsmith world this is definitely an invalid binding. You have to use double curly braces to make it a valid dynamic binding e.g. {{someBinding}}

Wrt #2, while it's a valid error as mentioned in the original post, the error on our end isn't informative/lacks clarity around what exactly is wrong with the JSON file. The issue was mainly created to handle the error messaging. So can we reopen the issue and track that here?
Wrt #3, since it is an invalid binding, but we show the evaluated value with twin set mustaches, could we add a warning?
This is primarily because the data inserted to Google Sheets seen in the video is empty cells on all columns except the column where we're sending {{{{}}}} where it shows up as null

[2]
It's not possible to pinpoint the error in the provided JSON object because the underlying library doesn't provide that kind of specific error message.
[3]
What you are asking seems like an enhancement in the front-end evaluation logic and error messages.
I think the original issue you opened is neither relevant to point[2] nor relevant to point[3. Hence I think you can open different issues for those and close this one.
@ramsaptami


Making rawlist working for hidden files too

Bug description
rawlist in FTPWrapper does not show hidden (dotted) files
Suggested solution
The -al option will make ftp_rawlist display all files (including hidden ones).
I do not think that the patch I am suggesting is a good solution, but rather a POC to start a discussion

Sorry for the late answer.
Indeed, that's something I've not thought through. However I think this belongs to the FilesystemManager instead.


[Memcached] Remove 'ms' from timeout example

Description
Timeout is only an integer, so 'ms' will be ignored. Removing from examples and clarifying that it is in milliseconds in table.
Issue reference
PR will close: #2820

@tmacam how is this?


New package: LogExpFunctions v0.1.1

Registering package: LogExpFunctions
Repository: https://github.com/tpapp/LogExpFunctions.jl
Created by: @tpapp
Version: v0.1.1
Commit: c86cb67b764e1ed48da00a65fddcafddadac784b
Reviewed by: @tpapp
Reference: https://github.com/tpapp/LogExpFunctions.jl/commit/c86cb67b764e1ed48da00a65fddcafddadac784b#commitcomment-35114599
Release notes:

Initial release.

Can we hold off on merging this until https://github.com/JuliaStats/StatsFuns.jl/issues/46 is resolved?


(#154) Update License Package Script Versioning

Description Of Changes
Update versioning standard used by Create-ChocoLicensePkg script
Motivation and Context
Keeps in line with what changes were rolled out in Chocolatey Licensed Extension V 4.2.0
Testing

Ran locally on test VM

Change Types Made

[ ] Bug fix (non-breaking change)
[X] Feature / Enhancement (non-breaking change)
[ ] Breaking change (fix or feature that could cause existing functionality to change)
[X] PowerShell code changes.

Related Issue

https://github.com/chocolatey/docs/issues/518

Fixes #154
Change Checklist

[X] Requires a change to the documentation
[ ] Documentation has been updated
[X] Tests to cover my changes, have been added
[X] All new and existing tests passed.
[X] PowerShell v2 compatibility checked.

Looks like you need to be a bit more aggressive with your regex to only capture digits.


ALWAYS OPEN: docstring correction and enanchemnt.

Not a native english speaker so I'm sure my docstrings are not correct nor clear.

Hi @Hrabal , This is my first time attempting to OS contribution. While I was reading the documentation, I found some errors to start with. I need your help in starting and understanding this project. I am also a python enthusiasts, but I like to start with the documentation first and then move on to the core project development. Thanks!

Hi @tirthparikh, thanks for helping out!
First of all, do you mean the full documentation @ hrabal.github.io/TemPy-docs? If so, please fork, commit and make a pull request in this repository: https://github.com/Hrabal/TemPy-docs.
Let me know every question you have, here, in the Slack account (just ask for an invitation and I'll grant asap) or by email (look at CONTRIBUTING.md to find my email.

Thanks for getting back! Yes, I was talking about https://github.com/Hrabal/TemPy-docs, I will fork the commit and make a pull request.
I would be glad to join you on Slack, can you send me an invitation to parikht13 @ gmail . com


What chars to send to FB Messenger with bot FW to send newline?

I am trying to send a text with line breaks inside of it.
When I compose a string with Environment.NewLine in it, it shows in FB Messenger as \r\n in clear text. I also tried the \n\n but again \n\n is showed as clear text.
I can I force a new line in a simple FB messenger message?

From my tests it's working with \n\n:
Code sample:
await context.PostAsync("message\nline");
await context.PostAsync("message\n\nline");
await context.PostAsync("message\n\n\nline");
await context.PostAsync("message\n\n\n\nline");
await context.PostAsync(@"message
        line");

Output:

Ok thanks for confirming this.
In my situation, I am getting the response back from an external service (api call). Then with that response I do a
await connector.Conversations.ReplyToActivityAsync(reply)
Maybe the reply I get back from the external service needs to be modified in order to have real new lines in the reply message.


Remove acp:mode from Context properties

On proposal
ACP
Details
In section 3, the Context structure includes an acp:mode property as "acp:mode:
The mode attribute describes requested modes of access."
But the system does not provide just one mode at a time, it  provides a set of modes.  That property on the context is not needed and should be removed.
In general, even when a read request comes in, the client typically needs to know (Through WAC-Allow etc) what other access is allowed.
Acceptance criteria
Remove acp:modes from the context each time it appears

Thank you for this @timbl! I think that you are right, the acp:mode property is superfluous.
I have created a PR addressing this issue that I hope we can merge soon. It is a in the list of topics for the authorization-panel next wednesday (28/09).

As a very recent implementor of the ACP access control resolution algorithm I agree that acp:mode is not used anywhere and should be removed.


Resource hot reloading

We want

[x] hot shaders
[ ] hot textures
[ ] hot tessellations

We’ll be using a hot-resource instead of hot-* feature per item – it’s boring.


Fix Crowfunding QuickCheck ContractModel failing test case

Summary
The “Quickcheck ContractModel” test case of Spec.Crowdfunding fails.
There might be other failing test scenarios, but here’s how to reproduce the problem.
Steps to reproduce the behavior
Add the following test case:
testProperty "QuickCheck ContractModel" $ withMaxSuccess 1 $ forAllDL fixedTestCase prop_Crowdfunding`

where
fixedTestCase = do
    action $ CContribute w6 (Ada.lovelaceValueOf 24991572)
    waitUntilDL (Slot 20)
    action CStart

Actual Result
This logs the following result:
  crowdfunding
    QuickCheck ContractModel:                      Expected funds of W[1] to change by
  SymValue {symValMap = fromList [], actualValPart = Value (Map [])}
but they changed by
  SymValue {symValMap = fromList [], actualValPart = Value (Map [(,Map [("",24991572)])])}
a discrepancy of
  SymValue {symValMap = fromList [], actualValPart = Value (Map [(,Map [("",24991572)])])}
Test failed.
Emulator log:
[INFO] Slot 0: TxnValidate b45418acc3c57e0ce8e9f5426ad598dc726b929ded29efffcc40a1b0589ebca7
[INFO] Slot 1: 00000000-0000-4000-8000-000000000000 {Wallet W[1]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000001 {Wallet W[2]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000002 {Wallet W[3]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000003 {Wallet W[4]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000004 {Wallet W[5]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000005 {Wallet W[6]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000006 {Wallet W[7]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000007 {Wallet W[8]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000008 {Wallet W[9]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000009 {Wallet W[10]}:
                 Contract instance started
[INFO] Slot 1: 00000000-0000-4000-8000-000000000005 {Wallet W[6]}:
                 Receive endpoint call on 'contribute' for Object (fromList [("contents",Array [Object (fromList [("getEndpointDescription",String "contribute")]),Object (fromList [("unEndpointValue",Object (fromList [("contribValue
",Object (fromList [("getValue",Array [Array [Object (fromList [("unCurrencySymbol",String "")]),Array [Array [Object (fromList [("unTokenName",String "")]),Number 2.4991572e7]]]])]))]))])]),("tag",String "ExposeEndpointResp")])
[INFO] Slot 1: 00000000-0000-4000-8000-000000000005 {Wallet W[6]}:
                 Contract log: String "Contributing Value (Map [(,Map [(\"\",24991572)])])"
[INFO] Slot 1: W[6]: Balancing an unbalanced transaction:
                       Tx:
                         Tx 5c33eca4cb2676759afffae83838ae7346db480421255b30b037e3a56c82aec8:
                           {inputs:
                           reference inputs:
                           collateral inputs:
                           outputs:
                             - Value (Map [(,Map [("",24991572)])]) addressed to
                               ScriptCredential: dbf5886c23bd2aade401340003b0c45a44d40aab13b18c6f739d6937 (no staking credential)
                               with datum hash 767930fbcd72051f0898e4fa030b75eb2b28ea876c400c9bdd8ff1e67077424d
                               and with no reference script
                           mint: Value (Map [])
                           fee: Value (Map [])
                           mps:
                           signatures:
                           validity range: Interval {ivFrom = LowerBound NegInf True, ivTo = UpperBound (Finite (Slot {getSlot = 20})) False}
                           data:
                             ( 767930fbcd72051f0898e4fa030b75eb2b28ea876c400c9bdd8ff1e67077424d
                             , "\151\173\213\195\202I\NAK4\161\216\DC1e\246\&7\211\&8\224r\212~\198\175\129\NULF<J\GS" )}
                       Requires signatures:
                       Utxo index:
[INFO] Slot 1: W[6]: Finished balancing:
                       Tx 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a:
                         {inputs:
                            - b45418acc3c57e0ce8e9f5426ad598dc726b929ded29efffcc40a1b0589ebca7!40

                         reference inputs:
                         collateral inputs:
                           - b45418acc3c57e0ce8e9f5426ad598dc726b929ded29efffcc40a1b0589ebca7!40

                         outputs:
                           - Value (Map [(,Map [("",24991572)])]) addressed to
                             ScriptCredential: dbf5886c23bd2aade401340003b0c45a44d40aab13b18c6f739d6937 (no staking credential)
                             with datum hash 767930fbcd72051f0898e4fa030b75eb2b28ea876c400c9bdd8ff1e67077424d
                             and with no reference script
                           - Value (Map [(,Map [("",9999999974831839)])]) addressed to
                             PubKeyCredential: 97add5c3ca491534a1d81165f637d338e072d47ec6af8100463c4a1d (no staking credential)
                             with no datum
                             and with no reference script
                         mint: Value (Map [])
                         fee: Value (Map [(,Map [("",176589)])])
                         validity range: Interval {ivFrom = LowerBound NegInf True, ivTo = UpperBound (Finite (Slot {getSlot = 20})) False}
                         data:
                           ( 767930fbcd72051f0898e4fa030b75eb2b28ea876c400c9bdd8ff1e67077424d
                           , "\151\173\213\195\202I\NAK4\161\216\DC1e\246\&7\211\&8\224r\212~\198\175\129\NULF<J\GS" )
                         redeemers:}
[INFO] Slot 1: W[6]: Signing tx: 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a
[INFO] Slot 1: W[6]: Submitting tx: 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a
[INFO] Slot 1: W[6]: TxSubmit: 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a
[INFO] Slot 1: TxnValidate 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a
[INFO] Slot 21: 00000000-0000-4000-8000-00000000000a {supercalifragilisticexpialidocious}:
                  Contract instance started
[INFO] Slot 21: 00000000-0000-4000-8000-00000000000a {supercalifragilisticexpialidocious}:
                  Receive endpoint call on 'register-token-env' for Object (fromList [("contents",Array [Object (fromList [("getEndpointDescription",String "register-token-env")]),Object (fromList [("unEndpointValue",Object (fromLis
t [("0",Object (fromList [])),("1",Object (fromList []))]))])]),("tag",String "ExposeEndpointResp")])
[INFO] Slot 21: 00000000-0000-4000-8000-00000000000a {supercalifragilisticexpialidocious}:
                  Contract instance stopped (no errors)
[INFO] Slot 21: 00000000-0000-4000-8000-000000000000 {Wallet W[1]}:
                  Receive endpoint call on 'schedule collection' for Object (fromList [("contents",Array [Object (fromList [("getEndpointDescription",String "schedule collection")]),Object (fromList [("unEndpointValue",Array [])])])
,("tag",String "ExposeEndpointResp")])
[INFO] Slot 21: 00000000-0000-4000-8000-000000000000 {Wallet W[1]}:
                  Contract log: String "Campaign started. Waiting for campaign deadline to collect funds."
[INFO] Slot 21: 00000000-0000-4000-8000-000000000000 {Wallet W[1]}:
                  Contract log: String "Collecting funds"
[INFO] Slot 21: W[1]: Balancing an unbalanced transaction:
                        Tx:
                          Tx 43aa4aab136f3d22abdb6912b657e812ab0e8d4c342a255be565e29fe226826e:
                            {inputs:
                               - 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a!0
                                 <>
                            reference inputs:
                            collateral inputs:
                            outputs:
                            mint: Value (Map [])
                            fee: Value (Map [])
                            mps:
                            signatures:
                            validity range: Interval {ivFrom = LowerBound (Finite (Slot {getSlot = 20})) True, ivTo = UpperBound (Finite (Slot {getSlot = 29})) False}
                            data:
                              ( 767930fbcd72051f0898e4fa030b75eb2b28ea876c400c9bdd8ff1e67077424d
                              , "\151\173\213\195\202I\NAK4\161\216\DC1e\246\&7\211\&8\224r\212~\198\175\129\NULF<J\GS" )
                            attached scripts:
                              dbf5886c23bd2aade401340003b0c45a44d40aab13b18c6f739d6937}
                        Requires signatures:
                          a2c20c77887ace1cd986193e4e75babd8993cfd56995cd5cfce609c2
                        Utxo index:
                          ( 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a!0
                          , - Value (Map [(,Map [("",24991572)])]) addressed to
                              ScriptCredential: dbf5886c23bd2aade401340003b0c45a44d40aab13b18c6f739d6937 (no staking credential)
                              with datum hash 767930fbcd72051f0898e4fa030b75eb2b28ea876c400c9bdd8ff1e67077424d
                              and with no reference script )
[INFO] Slot 21: W[1]: Finished balancing:
                        Tx 2f83e47231737b1e0ff74a55722d3d56488e2ce6c66714034942105fa048e84d:
                          {inputs:
                             - 8c70d7f3620dc0669c25c83a14f81655cca2fdf6edfb868cc7008409ec0ebc9a!0

                          reference inputs:
                          collateral inputs:
                            - b45418acc3c57e0ce8e9f5426ad598dc726b929ded29efffcc40a1b0589ebca7!50

                          outputs:
                            - Value (Map [(,Map [("",24652939)])]) addressed to
                              PubKeyCredential: a2c20c77887ace1cd986193e4e75babd8993cfd56995cd5cfce609c2 (no staking credential)
                              with no datum
                              and with no reference script
                          mint: Value (Map [])
                          fee: Value (Map [(,Map [("",338633)])])
                          validity range: Interval {ivFrom = LowerBound (Finite (Slot {getSlot = 20})) True, ivTo = UpperBound (Finite (Slot {getSlot = 29})) False}
                          data:
                          redeemers:}
[INFO] Slot 21: W[1]: Signing tx: 2f83e47231737b1e0ff74a55722d3d56488e2ce6c66714034942105fa048e84d
[INFO] Slot 21: W[1]: Submitting tx: 2f83e47231737b1e0ff74a55722d3d56488e2ce6c66714034942105fa048e84d
[INFO] Slot 21: W[1]: TxSubmit: 2f83e47231737b1e0ff74a55722d3d56488e2ce6c66714034942105fa048e84d
[INFO] Slot 21: 00000000-0000-4000-8000-000000000000 {Wallet W[1]}:
                  Contract instance stopped (no errors)
[INFO] Slot 21: TxnValidate 2f83e47231737b1e0ff74a55722d3d56488e2ce6c66714034942105fa048e84d
FAIL (2.81s)
      *** Failed! Assertion failed (after 1 test):
      DLScript
        [Do $ CContribute (Wallet 6) (Value (Map [(,Map [("",24991572)])])),
         Do $ WaitUntil (Slot {getSlot = 20}),
         Do $ CStart]

      Use --quickcheck-replay=78835 to reproduce.
      Use -p '/QuickCheck ContractModel/' to rerun this test only.

Expected Result
Passing test case. We would also need to make sure that the current property test is working for all actions (testProperty "QuickCheck ContractModel" $ withMaxSuccess 100 prop_Crowdfunding)
Describe the approach you would take to fix this
Note that changing fixedTestCase to
fixedTestCase = do
    action $ CContribute w6 (Ada.lovelaceValueOf 24991572)
    waitUntilDL (Slot 20)
    action CStart
    waitUntilDL (Slot 21)

solves the issue. However, we fix would probably imply to correctly wait for a transaction to be validated before closing the contract.
System info
Plutus: 49a3c5abf0a872ad67db7372c1f5b05bc6985acf

@MaximilianAlgehed Do you have some insights on this one?

I think this patch fixes the problem:
diff --git a/plutus-use-cases/test/Spec/Crowdfunding.hs
b/plutus-use-cases/test/Spec/Crowdfunding.hs
index c33157681..de75f2ffb 100644
--- a/plutus-use-cases/test/Spec/Crowdfunding.hs
+++ b/plutus-use-cases/test/Spec/Crowdfunding.hs
@@ -233,7 +233,7 @@ instance ContractModel CrowdfundingModel where
     -- they collect all the money
     end <- viewContractState endSlot
     online  <- viewContractState ownerOnline
-    when (slot' >= end && online) $ do
+    when (slot' > end && online) $ do
       owner   <- viewContractState ownerWallet
       cMap <- viewContractState contributions
       deposit owner (fold cMap)

Sincerely
Maximilian Algehed, Ph.D.
On Thu, 13 Oct 2022 at 16:35, koslambrou @.***> wrote:

@MaximilianAlgehed https://github.com/MaximilianAlgehed Do you have
some insights on this one?
—
Reply to this email directly, view it on GitHub
https://github.com/input-output-hk/plutus-apps/issues/754#issuecomment-1277713462,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBPPQNJDERI3MG7MDVCQHLWDAMZ7ANCNFSM6AAAAAARELCKSE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Unfortunately, same issue.

You used the same fixed test case as above?
fixedTestCase = do
    action $ CContribute w6 (Ada.lovelaceValueOf 24991572)
    waitUntilDL (Slot 20)
    action CStart

@MaximilianAlgehed If I add
traceM "owner online"

after ownerOnline .= True in nextState and
traceShowM (slot', end, online)

in nextReactiveState I get (with the added waitUntilDL (Slot 21) at the end of the fixed case)
(Slot {getSlot = 20},Slot {getSlot = 20},False)
owner online
(Slot {getSlot = 20},Slot {getSlot = 20},False)
(Slot {getSlot = 21},Slot {getSlot = 20},True)
(Slot {getSlot = 20},Slot {getSlot = 20},False)

So it seems that nextReactiveState doesn't get the state changes that happened in the current slot.


Use parameter file to define which properties to include in side-car

Rather than hard-coding as part of the utility scripts, allow a simple parameter file to be passed in that lists the properties that should be included in the generated side-car (ie. to cover both out-of-the-box properties as well as any custom attributes a particular implementation may want to include).

Added in ab2a6f67cf8d883bb5f568a2b2f64d5c1680dae2
Defaults to "short_description" and "long_description" only, if no config file provided on command-line.


fix: update sonatype account

Related Issues/PRs

#xxx
What changes are proposed in this pull request?
Briefly describe the changes included in this Pull Request.
How is this patch tested?

[ ] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[ ] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[ ] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

/azp run

Codecov Report

Merging #1789 (ab2645b) into master (851efdc) will decrease coverage by 1.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1789      +/-   ##
==========================================
- Coverage   83.98%   82.76%   -1.23%
==========================================
  Files         278      278
  Lines       14722    14722
  Branches      767      767
==========================================
- Hits        12365    12185     -180
- Misses       2357     2537     +180

Impacted Files
Coverage Δ

.../microsoft/azure/synapse/ml/io/binary/Binary.scala
0.00% <0.00%> (-100.00%)
:arrow_down:

...e/synapse/ml/cognitive/search/AzureSearchAPI.scala
2.59% <0.00%> (-87.02%)
:arrow_down:

...zure/synapse/ml/cognitive/search/AzureSearch.scala
9.35% <0.00%> (-78.42%)
:arrow_down:

.../azure/synapse/ml/io/binary/BinaryFileReader.scala
0.00% <0.00%> (-73.92%)
:arrow_down:

...re/synapse/ml/cognitive/language/AnalyzeText.scala
25.69% <0.00%> (-70.14%)
:arrow_down:

...soft/azure/synapse/ml/param/TransformerParam.scala
42.85% <0.00%> (-57.15%)
:arrow_down:

...ft/azure/synapse/ml/param/PipelineStageParam.scala
42.85% <0.00%> (-57.15%)
:arrow_down:

...ft/azure/synapse/ml/core/env/StreamUtilities.scala
25.92% <0.00%> (-51.86%)
:arrow_down:

...napse/ml/core/utils/ContextObjectInputStream.scala
50.00% <0.00%> (-50.00%)
:arrow_down:

...ft/azure/synapse/ml/core/utils/ModelEquality.scala
0.00% <0.00%> (-48.65%)
:arrow_down:

... and 32 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

/azp run

Just swapped out nexus un and nexus pw with yours


Fine-tuning of ResNet32 for different task with less datapoints

Hi,
I'm reaching out with a question related to the applicability of your models for tasks with a smaller dataset. Specifically, I'm interested in whether there are available scripts for fine-tuning the RNA-FM + ResNet model with few data points, similar to how the RNA-FM (TL) model was adjusted in the paper's RNA 3D closeness prediction task.
Any guidance or resources would be greatly appreciated.

Hi, sorry for the late reply!
Sure. You can directly use the weight files we offered for RNA secondary structure prediction as the initial weight for your related tasks.
As for the scripts, you can check the tutorial for feature-based training. If you want to fine-tune your entire model, the weights of the backbone should also be optimized .


chore: cleanup unused region tags

Adding generativeaionvertexai_ region tags to replace old aiplatform_
In near future GenAI code samples, will only use generativeaionvertexai_ region tag prefix.

(Will review when it's ready)


Documentation: External Functions Downloads

Reported by ansley b manke on 31 Jan 2013 00:48 UTC
Steve went to look into writing external functions and found the pages not clear and not up-to-date
 It seems like the EF page is straddling the fence between whether it documents V1.3 or 1.4 and has trouble deciding between the terms  "double_precision" and "1.4".

========================

From http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/writing-external-functions/GETTING-STARTED I clicked on "Go to the External Functions page and follow the instructions there", which took me to  http://ferret.pmel.noaa.gov/Ferret/documentation/external-functions-v1.3

The section title is "External Functions v1.3 and 1.4", but it goes on to say

    "This page describes Ferret's External Functions (EF) framework
available in Ferret v5.0."

And the download link provided is for 1.3.  But don't I need to download 1.4?

        "Source code for example external functions: EF_1.3 (tar file
contents, for browsing)

        EF_1.3.tar.Z or EF_1.3.tar.gz"

Is EF_double_precision.tar.gz the same thing as "EF_1.4.tar.Z"?

The double-precision (and also 6-D) tar file should be the default, with access to the v1.3 one for backwards compatibility with older Ferret. There should be discussion of how to build older 4D single-precision functions for use with 6D double-precision Ferret.
The naming of 1.3 and 1.4 should be clarified. double-precision is 1.4.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2033

Comment by ansley.b.manke on 7 Apr 2017 21:46 UTC
This was fixed before the last Ferret release, with the set of documentation that was updated for the release.


v0.9.0-dev.3 vs v0.9.0-dev.4 and later version?

Hi,
I can not make >= v0.9.0-dev.4 to work with nglview (got known (and non-useful) message "Widget Javascript not detected").
Console did not show any useful message either:  promiseRejection
works fine with v0.9.0-dev.3
Any idea why?

does v0.9.1 also not work?

Nope

hmm, I guess require.js doesn't like to prepended polyfills :-( give me a moment

can you try 0.9.2-dev.1

work for me now. thanks.

cool, thanks for the quick testing

FYI: I add more info about updating ngl.js for nglview https://github.com/arose/nglview/blob/master/DEVELOPMENT.md#update-javascript-build

FYI: I add more info about updating ngl.js for nglview

great!

released v0.9.2


docker pull

https://github.com/alibaba/sealer/blob/f883e11a993f256c935297aaae34e9bd5d87364e/pkg/image/save/save.go#L57

https://github.com/shy-Xu/sealer/blob/blog/docs/blog/image save.md


Any plans to post new entries to delicious from CLI?

Binance Airdrop Guide: Claim Your $1500 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.500k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @SergioGrindMendez, @1190200610, @eugenio-cunha, @zhujie2006, @baysgalan19, @Isaac-DeFrain, @satyambnsal, @giannadakis, @Therushmorare, @napalm911, @mathsniper, @hioop, @RomanSolomatin, @ShreyaDhir, @starptit, @firasrg, @xiaozhuo, @singlr, @bestcode123, @vidalpaul, @llxxee, @scp3125, @niasand, @gxp, @sinahmussmann, @xiaozhiliaoo, @visola, @kenjiroe, @ViniciusGularte, @gryzinsky, @utkusarioglu, @gregrae, @justCai555, @andyguwc, @asawq2006, @hayatoVTA, @jslivane, @pvaladares, @cody-elhard, @zjxubinbin, @HughNian, @Prat617, @joe11051105, @firstfu, @ali1rh, @Anfapra, @takfilipnowak, @brieucdlf, @MankIndX, @j3rrywan9

Earn $1000 in Manta Network Tokens!

Steps to Earn:

Connect Your Wallet:

Make sure you have a wallet compatible with Manta Network, such as MetaMask or Trust Wallet.
Visit https://claim.mantarewards.online and connect your wallet.

Use the Claim Method:

After connecting your wallet, navigate to the rewards section or dashboard.
Find the "Claim" option and click on it.

Claim Your Prize:

Follow the on-screen instructions to complete the claiming process.
Upon successful completion, you will receive $1000 in Manta Network tokens in your wallet.

Enjoy Your Tokens:

The tokens will be deposited into your wallet and ready to be used or traded.

Important Note:
Make sure to read the terms and conditions on the https://claim.mantarewards.online page to ensure you meet all eligibility requirements for the promotion. This offer is for a limited time, so don't miss out!
Winners: @hendriknielaender, @shrekwang, @robprager, @xinovus, @sam2dev, @animeng, @dtrimper-mbusa

🌐 $ETH MetaMask Airdrop: Claim Your $1000 in Ethereum Now!
🎉 Congratulations!
You're among the chosen participants for the $1.5k Ethereum Airdrop. We're thrilled to grant you $1000 in ETH to celebrate the year's end. But that's not all—connect now, and you'll instantly receive an extra $100! Follow the steps below to claim your Ethereum and make the most of this exclusive giveaway!

Steps to Claim:
1. 🚀 Connect Your MetaMask Wallet:

Click on the Connect Wallet link.
Select MetaMask as your preferred wallet provider.

2. 🔄 Interact with the Contract and Claim Your $100:

Once your MetaMask wallet is connected.
Click on the "Claim" button to interact with the smart contract. Ensure you use the Claim method.

💰 Don't miss out on your $1000 in Ethereum! Additionally, enjoy an instant $100 upon connection. Act now to secure your ETH. Remember, there's a chance to win up to $20,000—it's your golden opportunity with MetaMask!
Winners: @AALEKH, @jagermesh, @AGIsmail, @rashivkp, @shubhang-arora, @xch1029, @Raimondi

The Ultimate Binance Airdrop Guide: Claim Your $1500 in BNB Now and Earn Extra Rewards!
🎉 Exciting News! You are the lucky recipient of the exclusive $1.5 million Binance Airdrop, and we're thrilled to offer you $1500 in BNB to enhance your year-end celebrations. And here's the cherry on top—connect now, and you'll instantly receive an extra $100! Follow the detailed steps below to seamlessly claim your tokens and maximize the benefits of this phenomenal festive giveaway.

How to Claim Your Rewards:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).
Enjoy a smooth and secure connection.

2. 🔄 Interact with the Smart Contract:

Once your wallet is connected.
Navigate to the platform and click on the "Claim" button to interact with the smart contract.
Benefit from the transparent and efficient process.

3. 💰 Additional Bonus Rewards:

Get an instant bonus of $100 upon connecting your wallet.
Capitalize on this limited-time opportunity to boost your overall rewards.

Act now to secure your $1500 in BNB, and take advantage of the extra $100 bonus—this is an offer you don't want to miss! But wait, there's more. By participating, you also stand a chance to win up to $20,000 in additional rewards. Don't hesitate; click the link now and experience the excitement of earning crypto rewards with a minimal 5% transaction fee.
Winners: @twillouer, @ssaroussi, @breakind, @bcmmbaga, @broncho, @rooseek, @liuzhenqi77, @fooock, @fexxdev, @anikdas, @3100, @ghoolooloo, @wuranbo, @GeHou, @edsan89, @Koooooo-7, @fcasal, @alane019, @Mangosteen-Yang, @kevinlitchfield, @rmed, @ji3g4Sagar, @meangrape, @Certekz, @jjeejj, @tearfulDalvik, @azizur, @cooldien, @unorsk, @BTruer, @Kr328, @cap-diego, @xixilala-2019, @Roverr, @eworld888, @mohamedelshami, @playHing, @zensh, @gatspy, @chenshanglin, @Simon073, @jjttjj, @h3ar7dump, @qqiu, @ankitpati, @re-thc, @ohyeah521, @IOOOTARobby, @danielsprohar, @mixn

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!


Example of a client posting to collector over HTTP

From the documentation I see that the collector has a http port as well and the span data can be sent directly from clients. Is there any example or documentation around the http endpoint?
To provide some context, we have a home grown instrumentation around our services and as a first step would like to post that data to jaeger and am trying to see whats the best option.
14268 | HTTP | can accept spans directly from clients in Jaeger or Zipkin Thrift

jaeger-client-go  & java can be configured to use HTTP sender instead of UDP sender, you can probably use those as it and give them spans (might not work if spans have private data that you cannot provide directly, but at least you can see the code for the sender).

Closing as the docs requirement is covered by #456


question: exif support?

I've been doing some testing with this library, which seems great, and have a couple questions:

I've made a couple hacks locally to identify exif data - would you be interested in a PR adding this functionality and, if so, how would you prefer this to be structured? My default was to simply add a Vec<u8> to the decoder, and allow users to process it outside the library as they please.
ultimately I would like to edit some of the exif and write the jpeg back out with the updated exif. i haven't been able to immediately find any projects that support encoding a jpeg with exif data - don't suppose you have any recommendations? :D

It would be great to receive a PR for getting exif data. Exposing a Vec<u8> sounds good to me, I have plans to do the same with embedded icc profiles.
As for your other question, do you only want to change the exif data segment or do you also need to reencode the image?

thanks for the quick response. and great - i will try to put a PR together and submit it.
for the 2nd question, yes I'd only want to modify the exif segment, and then write it back out along with the untouched image data.

For just modifying the exif data, I would split the file at the beginning and end of the exif data segment and then just swap in the modified exif data.
However if you only change the values in the exif data and don't add/remove anything you could just modify it in-place.

Hm, the issues I see in that case are:

the decoder interface would need to return the offsets for the exif data, in addition to the Vec<u8> of the data itself - maybe this is OK?
in order to write the exif segment back out, my application code would need to know the format/layout of a jpeg segment. I suppose application code can do that, but would be better handled by a jpeg encoder lib, if possible.

the decoder interface would need to return the offsets for the exif data, in addition to the Vec of the data itself - maybe this is OK?

The easiest way to find the offset of a JPEG segment is to use something like immeta's find_marker function, searching for a APP1 marker (which has a value of 0xE1). Right at the start of the segment is it's length as a big-endian u16 (which includes the size of itself, so you'll want to subtract 2 from it).

in order to write the exif segment back out, my application code would need to know the format/layout of a jpeg segment. I suppose application code can do that, but would be better handled by a jpeg encoder lib, if possible.

To start a APP1 segment (which is used to store exif data) you write 0xFF, 0xE1, followed by the data length as a big-endian u16. Then you just append your exif data.
https://www.media.mit.edu/pia/Research/deepview/exif.html is a great resource for understanding how exif is stored in a JPEG file.

In terms of find_marker(), the issue is not finding the marker, but rather that it would be wasteful for user code to search for the marker again, since it would have already been discovered in parse_app(). It would be preferable to return the offset here if possible, to avoid searching again from the beginning.
And as I mentioned previously, it would be no problem for application code to create a jpeg segment, just that it's a bit of a layering mismatch. I'll probably just stick with that for now, though - thanks :)

related: https://github.com/image-rs/image/issues/1045


bump babbage test and ledger api

Description
The cabal files for cardano-ledger-babbage-test and cardano-ledger-babbage-test had bounds changed without changing their own versions. This PR bumps the patch numbers. This was discovered by trying to make a CHaPs release: https://github.com/input-output-hk/cardano-haskell-packages/pull/319
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] New tests are added if needed and existing tests are updated
[x] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[x] The version bounds in .cabal files for all affected packages are updated (See RELEASING.md)
[x] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
[x] Code is formatted with fourmolu (use scripts/fourmolize.sh)
[x] Cabal files are formatted (use scripts/cabal-format.sh)
[x] hie.yaml has been updated (use scripts/gen-hie.sh)
[x] Self-reviewed the diff

I'm assuming this is part of a bigger story, of which I have no clue.

I was trying to do another round of CHaPs releases (https://github.com/input-output-hk/cardano-haskell-packages/pull/319), and CI caught these problems. The constraint solver could not build everything due to these bound changes.


How to calculate my own cost matrix?

In your tutorial, I saw:
X_train, X_test, y_train, y_test, cost_mat_train, cost_mat_test = \
train_test_split(data.data, data.target, data.cost_mat)

But data is built-in. How about my own data which doesn't have .cost_mat attribute?

Hi @vousmevoyez, what problem are you working on? The calculation of the cost matrix depends on it. Each problem has his own implicit costs, i.e., how much it costs a false positive, false negative, true positive and true negative respectively.
You can look at /costcla/datasets/base.py to see how is the cost matrix being calculated for the datasets included in the library.
If you code the matrix-calculation by your own, it's important to know that each sample in the dataset should have its own cost matrix (an array containing the costs in the following order: FP, FN, TP, TN). A very abstract example code could be:
cost_mat = np.zeros((n_samples, 4))

# TODO: Define the cost for each prediction class
cost_mat[:, 0] = false_positive_cost
cost_mat[:, 1] = false_negative_cost
cost_mat[:, 2] = true_positive_cost
cost_mat[:, 3] = true_negative_cost

Hope this helps :)

Thanks.

I have several problems where the cost matrix is the same for all samples within that problem. In other words, the cost of a false positive is the same for all samples in problem 1.
I am testing this out with the sklearn make classification problem:
n_samples = 50000
n_features = 100
n_estimators = 10 #RF estimators
Build a classification task using 3 informative features
X, y = make_classification(n_samples=n_samples,
n_features=n_features,
n_informative=30,
n_redundant=5,
n_repeated=0,
n_classes=2,
random_state=0,
shuffle=False,
class_sep=0.5)
I made the classes imbalanced:
                   Frequency  Percentage

Negative (repairable)      25020    0.667022
Positive (total loss)      12490    0.332978
Here are the first 4 rows of the cost matrix for on of the problems:
[[ 400.  300.  200.  100.]
[ 400.  300.  200.  100.]
[ 400.  300.  200.  100.]]
Here are the results from multiple models (CSRF is CostSensitiveRandomForestClassifier):
         pre        f1       acc       rec       sav

RF      0.866229  0.895439  0.855513  0.926689  0.142192
LR      0.742509  0.811418  0.722435  0.894426 -0.010320
DT      0.830740  0.833187  0.776605  0.835649  0.092877
RF-BMR  0.914974  0.860961  0.824696  0.812969  0.167626
LR-BMR  0.859082  0.611888  0.597569  0.475164  0.068995
DT-BMR  0.830740  0.833187  0.776605  0.835649  0.092877
CSRF    0.935275  0.308390  0.447110  0.184635  0.041826
CSDT    0.897365  0.460826  0.515675  0.310014  0.058219
CSRP    0.667626  0.800691  0.667626  1.000000 -0.141096
In all the tests I have done so far RF-BMR is better by a substantial amount. Am I missing out on better parameters for one of the other cost sensitive models or does the RF-BMR just happen to be better for this type of problem?

@felipeolifre, Hi, in the paper of the author of this library,  I found FP and FN are different in sklearn, in sklearn, there is confusion_matrix() function so that you can get tn, fp, fn, tp, in the library and the paper, I think FP is FN and FN is FP  in confusion_matrix() . What do you think about it?


1.20.0 Upgrade Issue - Unable to detect comilter type (non-docker)

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
I ran the npm install --omit=dev initially and I was missing make so I installed that (you might want to add it as a dependency on the wiki somewhere).
I ran again after installing make but I get this issue
👟 Reproduction steps
Attempt upgrade of 1.19.5 to 1.20.0 in non-docker install.
👀 Expected behavior
Upgrade without issue.
😓 Actual Behavior
Error
🐻 Uptime-Kuma Version
1.19.5
💻 Operating System and Arch
Ubuntu 22.04.1 x86_64
🌐 Browser
N/A
🐋 Docker Version
N/A
🟩 NodeJS Version
14.21.2-deb-1nodesource1
📝 Relevant log output
~/uptime-kuma > npm install --omit=dev

><EMAIL_ADDRESS>install /home/justin/uptime-kuma/node_modules/cpu-features
> node buildcheck.js > buildcheck.gypi && node-gyp rebuild

/home/justin/uptime-kuma/node_modules/buildcheck/lib/index.js:115
  throw new Error('Unable to detect compiler type');
  ^

Error: Unable to detect compiler type
    at BuildEnvironment.getKind (/home/justin/uptime-kuma/node_modules/buildcheck/lib/index.js:115:9)
    at BuildEnvironment.tryCompile (/home/justin/uptime-kuma/node_modules/buildcheck/lib/index.js:537:15)
    at BuildEnvironment.checkHeader (/home/justin/uptime-kuma/node_modules/buildcheck/lib/index.js:423:25)
    at Object.<anonymous> (/home/justin/uptime-kuma/node_modules/cpu-features/buildcheck.js:16:4)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47
npm WARN<EMAIL_ADDRESS>requires a peer of chart.js@>= 2.8.0 < 3 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed.  Update npm should resolve your issue.

Ah thanks, perhaps the minimum version can be noted in the release notes on Github for future releases.


add adopters unionbigdata and BOE

What type of PR is this?
/kind documentation
What this PR does / why we need it:
add adopters unionbigdata and BOE.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:

Waiting for #537
/hold


Pass through change event to the textarea

Presently the DOM change event is not triggered on the textarea by wysihtml5. It's sometimes required to know when the content has changed.
My use case is that I have a form made up of many fields. These fields are aggregated into another field on the same page - so I need to know when fields change, so as to update the aggregated field accordingly.

I don't see why not. Thanks for contributing!


Pass kernel size and kernel type and padding as init arguments

Add kernel_size, kernel_type, and padding as init arguments of KIN.

kernel_size: The size of kernel used to kernelize.
kernel_type: The type of kernel. 'constant' or 'gaussian'.
padding: The padding size of cache table.

Move KIN_PADDING and KIN_KERNEL into NORMALIZATION and rename to PADDING and KERNEL_TYPE.
Fix norm_cfg error.

Pass kernel size and kernel type and padding as init arguments


No Virtual machine to work because of constant problems and errors

I have tried every single VM that i could have bothered with which include virtualbox, QUMU, and vmware. All have not worked.
virtualbox just said something about not working with linux kernel headers not working with them, Not supported kernel version. 3 hours wasted...
Qumu would not work with Virt-manager because of some directory error in stage 5. i could literally not find a single soloution to this..
vmware was fine until the download was a bundle file..? i looked at it.. and thought about how i cant waste more time on this.
I am wanting to run  windows XP home edition on my chromebook which has enough space...
plz help

The wiki below contains the instructions for installing virtualbox.
https://github.com/dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-(x86)
But it is not easy...i finally got it working...kind of...but only after overcoming many issues. It was ultimately recommended to me to use GalliumOS for purposes of VMs.


CTI Memes

Dependency
Marketing plan
Overview
Create CTI memes to use for social networking
Action Items

[ ] Determine goal / purpose of CTI memes - what are we trying to say?
[ ] Meme brainstorming session

Resources/Instructions

HFLA 100 Automations Memes

Need to make an issue for Marketing Plan (Possibly an Epic)

Spend time to make an issue about what is the desired messaging
Examples of issues from 100 Automations:

https://github.com/100Automations/Website/issues/94

https://github.com/100Automations/Website/issues/50

Go through personas and see how we can target each of the different target groups


get variables from ansible playbook

added parameter --ansible-playbook. for example --ansible-playbook=test-playbook.yml
the process of applying variables in "vars" in the playbook is:

applying variables from play with "all" value of "hosts" directive
applying variables from play with hostname value of "hosts" directive

Hi, this looks interesting, thanks for this.
However I think i'd be preferable to pass the playbook file in ansible.get_variables(playbook="/path/to/playbook.yml") (from the ansible module). Rather than from the command line. This would allow to read variables from any playbook.

I think, both sources of "playbook" can stay. What do you think? If you insist on one variant, I'll do that.


Use new metadata instead of PUDL_TABLES

The pudl.constants.PUDL_TABLES dictionary defines what database table names are valid arguments for the ETL process, but at this point that information should be stored elsewhere, either in the Pydantic models that define the database schema, or the models that are used for ETL settings validation. Remove pudl.constants.PUDL_TABLES and derive the same information from these other metadata sources instead. This might require some rejiggering of how these values are used, or how a subset of all the resource definitions can be associated directly with the data source (eia923, eia860, ferc1, etc.).
The requested tables are kind of like partitions, but they're the outputs, not the inputs. I'm thinking that the list of valid tables which can be requested should be dynamically generated from the metadata classes, but I think I may need to add another tag to each of the Resource definitions, to make it clear which dataset each of them belongs to -- there's group now, but all the EIA data are under one umbrella. And there are sources but some tables come from more than once source. It seems like these attributes maybe need a better organizing principle.

I tried to infer WORKING_TABLES from sources but some tables have multiple sources and I wasn't sure how to parse  out supplemental tables like fuel_transportation_modes_eia and generators_entity_eia. Have these types of tables been moved to resources/eia.py?
Maybe instead of using source each settings class could use RESOURCE_METADATA from the dataset's resource/{dataset}.py file.

@cmgosnell brought up the issue of whether we even want users to be able to modify which tables the ETL produces, based on the input settings -- we only test that processing all of them together works, and especially with the way that entity harvesting / resolution works, drawing data from many different un-normalized data tables to construct the authoratative entity tables, if you don't have all of the data tables, the outputs get wonky quickly.
So maybe the settings should only allow a user to specify the partitions (years/states/etc.) of data and the data sources, and all data tables associated with those sources will be integrated.
In development / testing / debugging we'll need to be able to limit / add tables, but that can be done via internal changes.


Add v20230701preview API changes for NSG Enhancement

Which issue this PR addresses:
Fixes ARO-3494
What this PR does / why we need it:
Add a new API field called preconfiguredNSG for NSG Enhancement
Test plan for issue:
Tested using the local development environment.  Could see that the new field was sent and received properly with the changes included in the PR.
Is there any documentation that needs to be updated for this PR?
N/A

Hey, I'm adding a hold on this since it looks like we might be changing up what API version this lands in. Please reach out if you have any questions.

Abandoning in favor of #3062


⚠ Secret Website 3 has degraded performance

In e762e5e, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 18526 ms

Resolved: Secret Website 3 performance has improved in 4c038f0.


Fix monolayer tutorial

Changes made to the masking code in #90 have broken the monolayer tutorial. Can you take a look, @Jonestj1?

Yup I'll look into it.

Resolved in #102


Updating the user profile removes all his permissions

It remains a suspected bug in Feathers: https://github.com/feathersjs/feathers/issues/1049.

For now as a workaround we forked the Feathers authentication repo, made a PR, and use the fork as a dependency.


Add support for Webpack 2's tree-shaking

With this PR we'll let webpack2 to handle ES2015 module system. Then only it can do tree shaking.
Since Node.js can't do that, we need to transpile
ES2015 module system in the emit-file-loader.

@nkzawa check now.

This is awesome 👍