Private flag & Torrent.Builder

Hi, I've made 2 changes to the project:

added the option of a private flag to the Torrent
introduced a Builder for Torrent objects to avoid the need for a static create method for each combination of options

This looks like a good change to me. Would this change be merged if I resolve the current conflicts?


the kgdboc cmdline setting seems to have sometimes causing the rpi64 …

…kernel to crash
Signed-off-by: Sven Dowideit<EMAIL_ADDRESS>

backported to 1.0.5_ #2110


[Replatform] /robots.txt, /sitemap.xml, and /releases.json is missing

What happened?
We’re missing the following documents:

[x] https://kuma.io/robots.txt (compare: https://deploy-preview-1056--kuma.netlify.app/robots.txt) https://github.com/kumahq/kuma-website/pull/1067
[x] https://kuma.io/sitemap.xml (compare: https://deploy-preview-1056--kuma.netlify.app/sitemap.xml) https://github.com/kumahq/kuma-website/pull/1067
[x] https://kuma.io/releases.json (compare: https://deploy-preview-1056--kuma.netlify.app/releases.json) https://github.com/kumahq/kuma-website/pull/1066
[ ] https://kuma.io/images/docs/manifest.json (compare: https://deploy-preview-1056--kuma.netlify.app/images/docs/manifest.json)
[x] https://kuma.io/preview.sh (compare: https://deploy-preview-1056--kuma.netlify.app/preview.sh) https://github.com/kumahq/kuma-website/pull/1065

They all used to be generated from
https://github.com/kumahq/kuma-website/blob/584d4f5e0334a951000c3d8215bc3be6fcf7869f/docs/.vuepress/config.js#L312-L342

robots.txt should have:
User-agent: *
Disallow: /latest_version
Disallow: /latest_version.html

Sitemap: https://kuma.io/sitemap.xml

releases.json should contain this kind of data:
[
  "1.1.0",
  "1.1.1",
  "1.1.2",
  "1.1.3",
  "1.1.4",
  "1.1.5",
  "1.1.6",
  "1.2.0",
  "1.2.1",
  "1.2.2",
  "1.2.3",
  "1.3.0",
  "1.3.1",
  "1.4.0",
  "1.4.1",
  "1.5.2",
  "1.6.2",
  "1.7.2",
  "1.8.1",
  "1.5.0"
]

PRs open for all of the above. We don't need manifest.json as we don't expect the Kuma site to be installed as a PWA


I would like to add web pages to my frank!Config

Reporter
Jeroen Jansen van Rosendaal
Is your feature request related to a problem? Please describe.
As the Frank!Framework's implementations use more and more webpages for application of functional management purposes.
At this moment you need to add your pages to the a specific folder in the Frank!Config which means you will have to deploy the application to publish new webpages.
Describe the solution you'd like
It would be nice to be able to deploy your webpages with your Frank Config, so your webpages can be maintained with the same flexibility.
Describe alternatives you've considered
deploying the aplication for every web change
Additional context
talked to Niels about possibilities

Possible workaround is to create an adapter, similair to the UploadFiles one, to replace the current deployed web app with a new one.
This what we do for the Navigator project to patch small fixes on TST and test possible frontend fixes without going through the whole CI/CD proces.

Each configuration could get a WebContent folder, and a dynamic servlet which listens to all traffic going to /webcontent/<configName>/*... Difficulty is deciding when to enable/disable such a dynamic endpoint or have it always enabled and returning a 404 if no WebContent is found.

Just wondering, what is the big advantage of doing it like that compared to my work-around?
For the end-user its still the same amount (maybe even more, also reloading the configuration) of 'work'/'steps' to update the web application.

Just wondering, what is the big advantage of doing it like that compared to my work-around?
For the end-user its still the same amount (maybe even more, also reloading the configuration) of 'work'/'steps' to update the web application.

I think it should be part of the application, the user should not have to maintain / use adapters to achieve this.


Change from blur listener to click broke form

Hi,
This change broke a form in one of my websites. Checkboxes/radios and submit button stopped working.
You should not e.preventDefault document clicks. Or if you do, make sure you let it through after your custom handler, for untreated cases.
https://github.com/mikecoj/MCDatepicker/commit/7199591a36be5f660b65755e77ddc7bcd3efdfbd

Hi,
Sorry, just noticed my comment was kind of passive/agressive. Didn't mean to.
Many thanks for the fix and for the excellent plugin. 😉

Hey,
No worries!
Thanks for reporting the issue!!


[Question] Any benchmark report or performance optimization mechanism

Question
Hi Community,
We are happy to know Shenyu graduated from Apache. For most API Gateway, there are some materials to elaborate its performance optimization mechanism and relative benchmark report, which is important to mitigate performance concerns.
We can do the benchmark in earlier POC phase, but any current performance / benchmark data can help before we go ahead.

Hi， You can do your own testing and communicate with any questions .


Python solution  for Mirror of Binary Tree in DSA 450

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.
Link to the problem : https://practice.geeksforgeeks.org/problems/mirror-tree/1/

Sure @dsrao711, you can go ahead !


Is hosting like this [https://use.rss4.fun/] allowed ?

Is hosting like this [https://use.rss4.fun/] allowed ?
Dear All,
Just like to know if the solution for public hosting I used is allowed ...
Thank you in advance,
Tp,

It is allowed. But i personally would not recommend it. As public access will allow it to be used for all kind of purposes u are not that happy with (or others). So i would set a htaccess for similar on the page to be sure.
You could share the credentials with anyone u trust. But i would not leave it fully public.
(just as a note: If it answers your question please close the issue)

Fixed it ... Hopefully you do not mind I - probably - posted it in the 'issues' section.


Confirmation patch

The Problem

Nonce has expired, but sometimes takes longer than 45 sec to confirm. Results in a UI/UX issue - the tx eventually goes through, but our store/application state does not reflect it.

The Solution

Sledgehammer fix for issue where nonce expired, and we re-check for confirmation. Wait for an extended period when nonce has expired.
Also added some good juicy logs in there (and removed a redundant "Tx submitted." log)

Can't repro the issues/failures in the CI for this. The only additional functionality I added was the additional argument for the waitForConfirmation. Any insight welcome

Can't repro the issues/failures in the CI for this. The only additional functionality I added was the additional argument for the waitForConfirmation. Any insight welcome

Just wanted to let you know, waitForConfirmation didn't work at the frontEnd. I had to add tx.wait() to make things work.


Rename SwiftSyntaxBuilderGeneration to kebab-case

As suggested in https://github.com/apple/swift-syntax/pull/580#issuecomment-1213174062. This follows the convention that executable targets are named in kebab-case (e.g. like this repo's lit-test-helper, SourceKit-LSP's sourcekit-lsp, SwiftFormat's swift-format, ...).

@swift-ci please test

Actually, now that I read the name, what do you think about making it more descriptive and name it generate-swift-syntax-builder?

Done!
@swift-ci please test

@swift-ci please test


DeepHYperXvis.py missing

Hi Daniel,
Thanks for sharing your toolbox. The following error is produced when doing a simple run.
/hsi-toolbox-master/DeepHyperXvis.py': [Errno 2] No such file or directory
I've also edited out all the references to DeepHyperX as there is no associated py file such as: DeepHyperX.batch, DeepHyperX.datasets, DeepHyperX.image_compression.
Are there some files missing?
Cheers,
Bbop

Hello Bbop,
Thanks for your kind feedback. I have tried to reproduce the error by downloading the project and running DeepHyperX/main.py and was not able to do it, because even if I delete vis.py, the main program does not complain about the file being missing. The three files batch.py, datasets.py and image_compression.py are present in the DeepHyperX directory of the repository (https://github.com/daniel-rychlewski/hsi-toolbox/tree/master/DeepHyperX), so may I suggest that you check if they are present on your machine and share any relevant details on how to reproduce the issue (file name of the program you ran, arguments used, OS, Python environment - version and packages installed)?
Kind regards,
Daniel Rychlewski

Thanks Daniel,
I moved the vis.py to the parent directory and renamed it DeepHyperXvis.py and that worked.
I am working on band selection and NN for a custom data set and not using distiller at all.
I'm not really good at python and will list out issues I've run into and maybe I can help others.
I will get more detail as I work through it. Thanks for responding =)
There were some requirement issues such as protobuf and winml and I installed the some packages manually. I will repeat the environment setup to get details. One I remember clearly is manually installing pytorch.
I also edited the batch.py to contain my system details.
 As below.
from DeepHyperX.batch import STORE_EXPERIMENT_LOCATION,
PYTHON_INTERPRETER_LOCATION, VIS_PY_LOCATION
from DeepHyperX.datasets import get_dataset, HyperX, open_file, DATASETS_CONFIG
from DeepHyperX.image_compression import apply_band_selection_choice
from DeepHyperX.models import get_model, train, test, save_model
from DeepHyperX.utils import metrics, convert_to_color_, convert_from_color_,
display_dataset, display_predictions, explore_spectrums, plot_spectrums,
sample_gt, build_dataset, show_results, compute_imf_weights, get_device, start_mem_measurement, stop_mem_measurement
from DeepHyperX.utils import print_memory_metrics
from batch import STORE_EXPERIMENT_LOCATION,
PYTHON_INTERPRETER_LOCATION, VIS_PY_LOCATION
from datasets import get_dataset, HyperX, open_file, DATASETS_CONFIG
from image_compression import apply_band_selection_choice
from models import get_model, train, test, save_model
from utils import metrics, convert_to_color_, convert_from_color_,
display_dataset, display_predictions, explore_spectrums, plot_spectrums,
sample_gt, build_dataset, show_results, compute_imf_weights, get_device, start_mem_measurement, stop_mem_measurement
from utils import print_memory_metrics
Issue 2 - main.py
from pandas.tests.sparse.frame.test_to_from_scipy import scipy
pandas.tests.sparse.frame.test_to_from_scipy didn't work.
I removed it and just imported scipy and it worked.
Issue 3 - main.py line 633 conf_temp.get_values()
pandas.get_values() is deprecated.
https://pandas.pydata.org/pandas-docs/version/0.25.3/reference/api/pandas.DataFrame.get_values.html
replaced  with conf_temp.values
My test arguments have been:
python main.py --download PaviaC
python main.py --model nn --dataset PaviaC --training_sample 0.1 --cuda 0
Cheers,
Chris

Hello Bbop,
Thank you very much for sharing your experiences, I do hope your comment will help someone else out. For me, the command "python main.py --model nn --dataset PaviaC --training_sample 0.1 --cuda 0 --epoch 1" did work without issues, though. The fact that there is no path delimiter in the file 'DeepHyperXvis.py' makes me wonder if perhaps the path in batch.py is set correctly in the sense that either '/' or '\' needs to be the line delimiter, not just '' because that's the escape character and 'DeepHyperX\vis.py' probably wouldn't work (might ask for DeepHyperXvis.py), while both 'DeepHyperX/vis.py' and 'DeepHyperX\vis.py' probably should work fine on Windows. Could you try that out please?
Issue 2: Is it possible that test_to_from_scipy did not work because pandas does not appear in your list of installed packages? For example, for me, 'conda list' does show the line
"pandas                    0.24.2                   pypi_0    pypi"
among others, while I do not see that in your output.
Issue 3: For me, the line 633 in main.py is
"for key, value in zip(list(df_column_entry_dict.keys()), conf_temp.get_values()):"
so the "conf_temp.get_values()" part is already there.
Kind regards,
Daniel Rychlewski

Hi Daniel,
Thanks for explaining. I've input a new custom dataset, however it throws the following error:
(anotherOne) C:\Users\bbop1\hsi-toolbox-master\DeepHyperX>python main.py --model nn --dataset selene --training_sample 0.1 --cuda 0
C:\Users\bbop1\anaconda3\envs\anotherOne\lib\site-packages\sklearn\externals\joblib_init_.py:15: FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
warnings.warn(msg, category=FutureWarning)
Computation on CUDA GPU device 0
Setting up a new session...
Traceback (most recent call last):
File "main.py", line 224, in
FOLDER)
File "C:\Users\bbop1\hsi-toolbox-master\DeepHyperX\datasets.py", line 192, in get_dataset
img, gt, rgb_bands, ignored_labels, label_values, palette = CUSTOM_DATASETS_CONFIG[dataset_name]'loader'
File "C:\Users\bbop1\hsi-toolbox-master\DeepHyperX\custom_datasets.py", line 90, in
'loader': lambda folder: selene_loader(folder)
File "C:\Users\bbop1\hsi-toolbox-master\DeepHyperX\custom_datasets.py", line 460, in selene_loader
img = open_file(folder + CUSTOM_DATASETS_CONFIG['selene']['img'])['selene']
KeyError: 'selene'
Knowing that PaviaC works well, I tried renaming it the same as PaviaC however it stll won't work. Do you know why this may be occuring?
Thanks,
Chris

'selene': {
    'img': 'selene.mat',
    'gt': 'selene_gt.mat',
    'download': False,
    'loader': lambda folder: selene_loader(folder)
},

def selene_loader(folder):
img = open_file(folder + CUSTOM_DATASETS_CONFIG['selene']['img'])['selene']
gt = open_file(folder + CUSTOM_DATASETS_CONFIG['selene']['gt'])['selene_gt']
gt = gt.astype('uint8')
rgb_bands = (47, 27, 13)

label_values = ["Unclassified",
                "Green Ceramic",
                "Grey Ceramic",
                "Orange Perspex",
                "Green Perspex",]
ignored_labels = []
palette = None

return img, gt, rgb_bands, ignored_labels, label_values, palette

Hello Chris,
I'm glad I could help. As for the integration of a new dataset, I do think you have followed the steps correctly, i.e. to add the dataset file and expand the custom loader, so my guess is that the dataset file does actually not have the key 'selene' and that's ok because that varies by dataset, even for the existing datasets in custom_datasets.py if you look at the loaders. It means that
open_file(folder + CUSTOM_DATASETS_CONFIG['selene']['img'])
has already given you the dataset to read in. Perhaps there is no key or the key is named differently - I suggest that you set a breakpoint / add a watch for the above line to evaluate what you actually get. Then you'll see how the key is called or if there is a key at all.
Kind regards,
Daniel Rychlewski

Since the original problem is resolved, I am closing the issue.

Thanks Daniel,
How are they keys created? I've tried googling but don't know what it means.
I remove the keys and get the following error:
(anotherOne) C:\Users\bbop1\hsi-toolbox-master\DeepHyperX>python main.py --model nn --dataset selene --training_sample 0.1 --cuda 0
C:\Users\bbop1\anaconda3\envs\anotherOne\lib\site-packages\sklearn\externals\joblib_init_.py:15: FutureWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
warnings.warn(msg, category=FutureWarning)
Computation on CUDA GPU device 0
Setting up a new session...
Traceback (most recent call last):
File "main.py", line 224, in
FOLDER)
File "C:\Users\bbop1\hsi-toolbox-master\DeepHyperX\datasets.py", line 213, in get_dataset
nan_mask = np.isnan(img.sum(axis=-1))
AttributeError: 'dict' object has no attribute 'sum'
Ground Truth was created in Matlab by manually labeling pixels with 1-4.

Hello Chris,
Python can store Key-Value-Pairs in dictionaries. You use the key to access the value stored for that key or store a value. Please google "Python dictionary" to find out about this concept and examples, which might help to clarify. If you know a different programming language like Java, the equivalent to dictionaries would be a Map.
The error message you're posting says that 'img' is a dictionary, but you would need a numpy array so that it could be summed up using the sum function. This makes me guess that there is a key you need to use to correctly access the actual contents of the dataset first, i.e. all pixels of the dataset in a multidimensional array. However, it is up to you to find out how you get this array which constitutes the dataset.
Kind regards,
Daniel Rychlewski

Thanks heaps Daniel, you're a legend.
The mat files held onto their original label when I renamed them for python.


[sw/ottf] Add timing API to the test framework

The test sw/device/tests/aon_timer_wakeup_irq_test.c is using rv_timer to compute timing, however it may conflict with the FreeRTOS whenconfigUSE_PREEMPTION==1 since it also uses the rv_timer.
To prevent conflict in case the aon timer test need to be executed with preemption:

An timing API shall be created by the Test framework (reference API in sw/device/lib/runtime/ibex.h);
Refactor aon_timer_wakeup_irq_test.c to use this API.

Tagging @silvestrst , @mundaym,@sriyerg and @timothytrippel for visibility.

@arunthomas this may have to be re-labeled.

@arunthomas this may have to be re-labeled.

Done. I marked as low-priority for now, as this will only be an issue if this test is re-purposed for the power virus test (where concurrency, and therefore FreeRTOS use, is turned on).

This is not an issue as we do not run said tests in concurrency mode.


Pass Vec of FFI-defined shared struct from C++ to Rust?

I have a cxxbridge section that defines a shared type Foo, and I'd like to pass multiple such Foo objects from C++ to Rust in either a std::vector or a Rust Vec. The values need to be owned values, not references, because Foo in turn contains a Box<RustOpaqueType> that I need to move out of.
Is this possible today? std::vector can only be passed by reference, so my initial attempt using CxxVector failed. There also doesn't seem to be any way to build a Rust Vec from the C++ side.

I'm happy to take a swing at fixing the bug, I'll see if I can find some time over the next couple days.


upd: Added Silver Ore

Added resources, textures, blocks, items, texts, and recipes for silver ore.

Oops. I accidentally made changes on the main branch. I'll make sure to make future ones on the dev branch next time.

I'll go ahead and close this one, just make a new PR on the dev branch. As for the files everything looks good for the BP and RP, though I do have a few critiques of the block textures. I love the color for the silver, just the pattern seems a bit too uniform and a little overwhelming in size. Maybe cut back on the amount of "silver" and give it a little more shape

Feedback noted. Will make changes in o textures when I have some productive time for the addon.


Model for commercial use?

Am I permitted to utilize the model framework to develop something that caters to my commercial needs? If this is permissible, are there specific licenses I would be required to obtain to proceed?

https://github.com/microsoft/unilm/blob/master/LICENSE


Storage gap for FeeCurrencyAdapter

Description
Adds storage gap for possible future extension
Addresses: https://github.com/celo-org/audit-a-findings/issues/13

Just FYI: we've never used this pattern before, so

This introduces a bit of an inconsistency with the other contracts.
If we do ever use this, I believe our storage checker would need to be updated to understand storage gaps, if we want to keep relying on it for safety.

haven't we.. my understanding is that we used storage gaps to allow modifying contracts within the inheritance chain... if not, you'll mess up the memory addresses


Export Location and BrowserHistory etc from index

import foo from 'react-router/lib/foo is causing pain with browserify.
If you are using an external vendor bundle making react-router external, its still getting included in the main bundle I guess due to the lib/foo import. Making explicitly all of the react-router/lib/* imports external also does not work. You could say this is an issue with browserify but it feels a bit non standard to have to do this. And a problem I've not run into before.
The issue is all of your instanceof checks then fail and its really hard to track down what's going wrong.
#1313

The history implementations are the one part of our public API that not everyone will use. For example, if you're using BrowserHistory but we also export HashHistory from index.js then your bundle will always contain HashHistory, despite the fact that you'll never use it.
I'm just trying to keep the bundle size as small as possible.

OK seems like sound enough logic. I've managed to solve the browserify issue. Not sure what I was doing before but requiring react-router/lib/Location etc into my vendor bundle does work. I also had to disable fullpaths in browserify for some reason.
I wouldn't be surprised if others run into this issue in the future. Maybe worth adding a note into the docs about this instanceof gotcha.

Should the various history implementations be bundled and exported for the UMD/global build? It won't be usable otherwise.

Faced the same problem. If mark react-router as external in browserify, react-router/lib/BrowserHistory will be bundled with application code and this error occurs
Warning: Failed propType: Invalid prop `history` supplied to `Router`, expected instance of `History`.  Check the render method of `Root`.


Agent lock file

### Tasks
- [x] Add node lock
- [x] Fail agent start gracefully if lock already in use
- [x] Reset lock on `dx reset` command

https://github.com/dxos/dxos/pull/3513


Can't Update Installer when No Apps Installed

I need help. it says that CCMSI installer has a new update which is v1.19 but it gives me an error saying "Failed to load local installation information. cannot update." is there a fix to this?
im on minecraft 1.20.1 with the mekanism mod version of <IP_ADDRESS>, cc tweaked version 1.113.1, and Advanced Peripherals version 0.7.41r

Just type "y" or hit enter when it prompts you that there is an update while installing something else, you shouldn't really need to directly update that way. Currently running update requires something to have been installed, I'll need to adjust that.

Fixed, will be in the next release.


Is WordCount.java needed?

Maybe there is a reason, but I'm not sure for what part of the project the WordCount.java file might be needed:
https://github.com/broadinstitute/hellbender/blob/master/src/main/java/org/broadinstitute/hellbender/tools/dataflow/WordCount.java
Thanks,
Paul

It's not needed.  It was a demonstration program for DataflowCommandLineProgram  It could either be deleted or renamed as ExampleDataflowCommandLineProgram  I think I would go with delete.

I would rename it. Having a helloworld program such as this is not a terrible idea.

You're right, having a demonstration helloworld problem is not a bad idea to get people comfortable with Dataflow.  Thanks for helping me,  I can close the issue for now.
Thanks,
Paul

Opened #537 so that we do the rename.


windows version - ffmpeg record not writing correctly

Which version are you using?
v0.13.1
Which operating system are you using?
OS

[X ] Windows

Describe the issue
When getting inbound rtsp stream we are calling onpublish to record the stream to segments using this command:
runOnPublish: ffmpeg.exe -rtsp_transport tcp -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -vcodec copy -acodec copy -f segment -strftime 1 -segment_time 60 -segment_format mp4 ch3out%Y-%m-%d_%H-%M-%S.mp4
ffmpeg.exe is sitting in the same directory as the rtsp-simple-server.exe for testing.
The files are created properly and ffmpeg runs. But the videos will not play.
If i run the exact same command OUTSIDE of rtsp-simple-server, it works fine and file plays perfectly.
Describe how to replicate the issue
Replicate:
Push to the server, run onpublish command from above.
It saves the files and does everything, but the files won't play.
Do the same thing , but run the ffmpeg command (from the same folder as ffmpeg.exe and simpleserver) outside of rtsp simple server, it all works.  (Of course change rtsp_port/path to the correct info).
for example:
ffmpeg.exe -rtsp_transport tcp -i rtsp://localhost:8554/ch3 -vcodec copy -acodec copy -f segment -strftime 1 -segment_time 60 -segment_format mp4 ch3out%Y-%m-%d_%H-%M-%S.mp4

Hello, i have various hypothesis about this.
First of all, try adding the -nostdin and -y flags to the ffmpeg command. In my personal scripts, i always use -nostdin and it allows to solve a lot of freezes and similar issues.
Second, i need to understand what you mean with "the videos won't play"

they don't play in VLC? if that's the case, start vlc with the -vvv flag (verbose output) and report the output - maybe the SPS/PPS/iframes are missing and must be generated
ffmpeg is stuck and doesn't go on? if that's the case, launch ffmpeg with the -loglevel verbose and report the output - maybe it could be a network problem

Hello, i have various hypothesis about this.
First of all, try adding the -nostdin and -y flags to the ffmpeg command. In my personal scripts, i always use -nostdin and it allows to solve a lot of freezes and similar issues.
Second, i need to understand what you mean with "the videos won't play"

they don't play in VLC? if that's the case, start vlc with the -vvv flag (verbose output) and report the output - maybe the SPS/PPS/iframes are missing and must be generated
ffmpeg is stuck and doesn't go on? if that's the case, launch ffmpeg with the -loglevel verbose and report the output - maybe it could be a network problem


On fresh install command doesn't run because of missing dependency

This happens on Node 8.9.4, using both npm and yarn.
After a fresh install and trying to run:
glyphhanger ./static/index.html  --subset=*.woff --formats=woff2,woff

I get this error:
(node:27594) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open '/Users/me/Desktop/my-project/node_modules/glyphhanger/node_modules/characterset/lib/characterset.js'

(node:27594) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any idea what could be happening? Was something changed on some late release around the application bundling? I rolled back to previous patch version and got the same.
I also tried installing characterset as a dependency and got the same error.

Oh, interesting. It looks like I made a bad assumption about dependency file structure when installing it locally into a project 😱
Does global installation work ok?
What version of npm are you using?

I’ve duplicated this locally

npm version I was using when this happened was 5.6.0, not lastest but not super old. I think that this is related with the package not being published with the node_modules folder included nor bundle to work standalone.
Instally globally leads to the same error.
I think that for some time npm and yarn stopped installing dependencies of the package you install automatically, sadly installing the package on my repository didn't work neither.

hey @zachleat, any update on this? Let me know if you'd like to talk about potential ways to fix this and need my collaboration. I don't want to just open a PR cause I don't know what plans the group has for the tool, but more than open to help :)

This will be included with 3.1.0—thanks for your patience!


feat(List+Dropdown): container for custom scrollbar in list

Optional prop/slot for container in list which allows the Dropdown to integrate with custom scrollbars.
Dropdown focuses its list after open. As some custom scrollbar libraries render itself twice, the focusing was broken (first rendered element was focused, then removed)
Instead, a wrapper between the list and list item is added, which can be used to inject the custom scrollbars.

Fails

:no_entry_sign:
Invalid entry format in CHANGELOG.md: >+- Add optional wrapper container to `List` which can be used to inject custom scrollbars to `Dropdown` @jurokapsiar ([#2092](https://github.com/stardust-ui/react/pull/2092))<
The correct format is: - description @githubname ([#DDDD](https://github.com/microsoft/fluent-ui-react/pull/DDDD)

Perf comparison

Status
Scenario
Fluent TPI
Fabric TPI
Ratio
Iterations
Ticks

🔧
Avatar.Fluent
0.58
0.41
1.41:1
2000
1163

🔧
Button.Fluent
1.21
0.17
7.12:1
1000
1211

🔧
Checkbox.Fluent
1.41
0.28
5.04:1
1000
1405

🔧
Dialog.Fluent
0.33
0.16
2.06:1
5000
1669

🔧
Dropdown.Fluent
3.48
0.35
9.94:1
1000
3475

🔧
Icon.Fluent
0.26
0.03
8.67:1
5000
1287

🔧
Image.Fluent
0.11
0.08
1.38:1
5000
531

🔧
Slider.Fluent
1.81
0.31
5.84:1
1000
1805

🦄
Text.Fluent
0.06
0.18
0.33:1
5000
276

🦄
Tooltip.Fluent
0.38
18.89
0.02:1
5000
1915

🔧 Needs work     🎯 On target     🦄 Amazing

  Generated by :no_entry_sign: dangerJS


Installation in MacOS

I used the new repo you updated, but it still raises errors. My macOS is Monterey 12.6.2
In file Gurobi.go/gurobi/gurobi_passthrough.h, this line is wrong: #include </Library/gurobi1002/mac64/include/gurobi_c.h>
The comments are :
In file included from ../gurobi/env.go:3:
./gurobi_passthrough.h:4:10: fatal error: '/Library/gurobi1002/mac64/include/gurobi_c.h' file not found
#include </Library/gurobi1002/mac64/include/gurobi_c.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Then I changed the path of the gurobi_c.h: revise #include </Library/gurobi1002/mac64/include/gurobi_c.h> to  #include </Library/gurobi1002/macos_universal2/include/gurobi_c.h>
It is still wrong, and the comments are:
github.com/MatProGo-dev/Gurobi.go/examples
/Users/mingzhu/go/go1.21rc3/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: directory not found for option '-L/Library/gurobi1002/mac64/lib'
ld: library not found for -lgurobi_c++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
'-L/Library/gurobi1002/mac64/lib' does not exit in my Mac, which is /Library/gurobi1002/macos_universal2/lib
I reivsed #include </Library/gurobi1002/mac64/include/gurobi_c.h> to
#include </Library/gurobi1002/macos_universal2/include/gurobi_c.h>
and  // #cgo LDFLAGS: -L/Library/gurobi1002/mac64/lib -lgurobi_c++ -lgurobi100 to
// #cgo LDFLAGS: -L/Library/gurobi1002/macos_universal2/lib -lgurobi_c++ -lgurobi100
it works.
thanks again for your works.

(I'm tagging your first issue, #1, for the sake of keeping things together. )

can I submit a PR?

could you please update it again? If it is related to different OS versions, I hope you can provide the interface and let users select it.

It looks like this is not an issue with different OS's, but rather a change that Gurobi made in how they install the program on all Mac OS X computers. It looks like it used to be installed into a directory /Library/gurobiXXX/mac64, but they recently renamed that directory on the Mac installation. Thanks for pointing this out!
I will try to fix this later on tomorrow, when I get a free moment.

Of course! I think I see what needs to be changed as well, but feel free to send one if you see what needs to change.

but when I submit PR, it raise error:
remote: Permission to MatProGo-dev/Gurobi.go.git denied to zhumingpassional.
can you open it for me?

It sounds like you are pushing directly to the main repository. Can you create a fork and then try to make the pull request using your fork, instead?
We aim to use that standard on this Go project.

I created a new branch:

I do not know the reason

A new change has been pushed to the main branch which might help with your problem.

I do not know the reason.

You do not know the reason why you created the branch? Oh! This is part of one of the "habits" that GitHub users use for organizing how they make changes to public projects/repositories. You can read more about this here.
If you've never done this before, then that can be a good thing to keep in mind for future projects! :)

I know the reason.
I did it as the instructions of git.
but it still failed.
I created a new branch revise_gurobi_path, and pushed it.
git push --set-upstream origin revise_gurobi_path
remote: Permission to MatProGo-dev/Gurobi.go.git denied to zhumingpassional.
fatal: unable to access 'https://github.com/MatProGo-dev/Gurobi.go.git/': The requested URL returned error: 403

I really cannot push the PR on my branch.
I WILL send the revised files to you . can you tell me your email?

Sure, you can send me the files, but you don't need my email to do it; you can attach the files in this thread and GitHub will make sure it goes to my email.

And have you tried the most recent version of the tool (commit 2845f33)?

I revised the two files as：
https://github.com/zhumingpassional/my_gurobi.go/blob/master/gurobi/gurobi_passthrough.h
https://github.com/zhumingpassional/my_gurobi.go/blob/master/gurobi/cgoHelper.go

cgoHelper.go

Thank you for your help with this! I will include this in upcoming updates which will make this Go module more useful for future programmers. I'll link this issue to a future pull request and will close it now that you have found a solution!


Hei, I got A problem here, which said "unsupported operand type(s) for //: 'str' and 'int' " when I called the function onnx_tool.model_profile to load my onnx model

Traceback (most recent call last):
File "inference.py", line 11, in
onnx_tool.model_profile(model_path) # pass file name
File "/home/pi/.local/lib/python3.7/site-packages/onnx_tool/init.py", line 90, in model_profile
g.shape_infer(dynamic_shapes)
File "/home/pi/.local/lib/python3.7/site-packages/onnx_tool/graph.py", line 645, in shape_infer
oshapes = node.shape_infer(itensors)
File "/home/pi/.local/lib/python3.7/site-packages/onnx_tool/node.py", line 1665, in shape_infer
remain = raw // -sum
TypeError: unsupported operand type(s) for //: 'str' and 'int'

Hi, your information is so little. But I guess that your model has dynamic input shapes(e.g. input:1x3xhxw). The dynamic input model needs to feed a specific shape to model_profile.

Hi, your information is so little. But I guess that your model has dynamic input shapes(e.g. input:1x3xhxw). The dynamic input model needs to feed a specific shape to model_profile.

My model is converted from keras to onnx , in keras the input shape is (None，90，3，1), I printed the value of  newshape in node.py which is [-1,1,90,3]，sum is -270, src shape is[unk__17,90,3,1], raw is unk__17unk__17..(repeat) However if delete these lines from 1664 to 1670 I also get the output of the model profile.Is it the correct output?I only care about the parameters^_^

You may refer https://github.com/ThanatosShinji/onnx-tool/blob/main/benchmark/samples.py#L42 this sample to set the input shape with model_profile call.

You may refer https://github.com/ThanatosShinji/onnx-tool/blob/main/benchmark/samples.py#L42 this sample to set the input shape with model_profile call.

Thanks, I'll try it later.

If there is no more feedback information, the issue will be closed as a question.


[WIP] Message serialization and response emitters

This pull request is a response to #64. It implements the following:

[x] Response emitter interface
[x] SAPI implementation of the response emitter interface
[x] Modification of Server to consume an emitter interface to emit a response.
[x] Response serialization interface
[x] Implementation of response serialization
[x] Request serialization interface
[x] Implementation of request serialization
[ ] Response deserialization (fromString)
[ ] Request deserialization (fromString)

These features should enable the following use cases:

Ability to emit responses in SAPI environments without the use of Server.
Ability to emit responses in non-SAPI environments via alternate emitter implementations.
Ability to represent messages as strings (e.g., for logging or debugging purposes).
Ability to accept messages as strings and cast them to appropriate instances.

For the response and request deserialization, were you thinking of having a class (or classes) similar to this: https://github.com/icicleio/Http/blob/master/src/Parser/Parser.php?

For the response and request deserialization, were you thinking of having a class (or classes) similar to

Yes, something like. My plan is to be quite strict with regards to RFC 7230, however, and notify consumers of problems in messages returned.

Yes, that class is lenient when it comes to line-endings, but that could be easily changed by replacing code like preg_split("\r?\n\r?\n", $message, 2) with explode("\r\n\r\n", $message, 2). I've considered making that change anyway as all HTTP implementations at this point should behave correctly.
Most of RFC 7230 is enforced by the Message class when the Request or Response object is constructed, similar to what you implemented in this package by throwing exceptions if there are problems in the message.
I would probably have time this week to put together a parser class designed for this implementation and submit a PR, or would you rather write it yourself?

@trowski Implemented, if you want to pull the patch and test.


Update package.json engines field

async/await is only supported in node >= 7.5 but I decided to just go with the latest LTS since node 7 is EOL very soon

Hi, @bimbiltu. With babel-register, release-it also works with Node v6:
https://github.com/webpro/release-it/blob/0a18cdc96b785e93bf17dcdcb32cc7ef1f67ce00/bin/release-it.js#L7-L11).
If you encounter any issues in Node v6, please let me know.

Hmm interesting, after running yarn add release-it, running yarn release-it works on node 6 however using the programmatic API like this node -e 'const releaseit = require("release-it")' will fail

Ah, yes. From the command line, the bin from package.json is used, and programmatically, the value of the main field is the point of entry:
https://github.com/webpro/release-it/blob/0a18cdc96b785e93bf17dcdcb32cc7ef1f67ce00/package.json#L29-L30
That's why release-it can't be require-d in Node v6. As this is essentially a stand-alone command-line tool, assuming not many people are using this programmatically in Node v6, and the fact there's no way to make this distinction in package.json (or some other way..?), I'm OK with the status quo. The way it see it, it's more like a bonus that release-it can still be used from CLI in Node v6.

@webpro Thanks for the info 👍 , I'm fine with the status quo as well as I usually use node 8/10 these days. This was just something that I had noticed


Some bitcoin tx fixes

Codecov Report

Merging #1178 (a828a44) into master (3a73e95) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1178      +/-   ##
==========================================
- Coverage   40.92%   40.90%   -0.02%
==========================================
  Files         414      414
  Lines        8988     8979       -9
  Branches     1532     1531       -1
==========================================
- Hits         3678     3673       -5
+ Misses       5076     5044      -32
- Partials      234      262      +28

Impacted Files
Coverage Δ

src/decoder.ts
83.56% <0.00%> (ø)

src/Contract.ts
10.00% <0.00%> (ø)

src/logging/Logger.ts
22.22% <0.00%> (ø)

src/logging/CategoryLogger.ts
43.75% <0.00%> (ø)

src/blockchains/blockchains.ts
51.04% <0.00%> (ø)

src/local-storage/historyStorage.ts
83.33% <0.00%> (ø)

src/workflow/create-tx/CreateErc20Tx.ts
79.38% <0.00%> (ø)

...ateBitcoinTransaction/CreateBitcoinTransaction.tsx
0.00% <0.00%> (ø)

src/workflow/create-tx/CreateBitcoinTx.ts
88.67% <0.00%> (+0.28%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a73e95...a828a44. Read the comment docs.


Fix Confluence typo + OAuth http status code

Description

This PR fixes a typo on confluence token + map TokenRevokedError from the OAuth service to a 401.
Risk

Deploy Plan

Merging to deploy connectors before I lock it

(given impact on eng runner)


Enumerate who uses this library

because it's nice to collect that info :)

@david-driscoll would you take a PR with an "ADOPTERS.md" document listing these out? I would need help describing how C# / Razor uses this library, I looked through the code and am still not entirely sure where the interface is.

Using it in https://github.com/pappleby/YarnSpinnerLanguageServer! Made it super easier to get things up and running.

Did a requirements engineering platform with it.

Using this for tools for an authorization policy language called ALFA.


A websocket example connecting to socket IO python server?

Sorry to ask a question here cause this is not an issue with the dash-extensions, it is simply me not knowing websockets etc well enough to use it.
I'm simply just trying to write a socketIO server running on gunicorn (uvicorn for async) and have the websocket from dash-extensions connect to it?
WebSocket connection to 'ws://localhost:8000/' failed: Error during WebSocket handshake: Unexpected response code: 404
value @ WebSocket.react.js:14

server code
import socketio

sio = socketio.Server()
app = socketio.WSGIApp(sio)

@sio.event()
def connect(sid, environ, auth):
    print('connect ', sid)
    # Refuse client connections
    if False:
        raise ConnectionRefusedError('authentication failed')

@sio.event
def disconnect(sid):
    print('disconnect ', sid)

if __name__ == '__main__':
    app.run_server()

client side is just the example code
import dash_core_components as dcc
import dash_html_components as html
import dash_extensions as de
from dash import Dash
from dash.dependencies import Input, Output

# Create example app.
app = Dash(prevent_initial_callbacks=True)
app.layout = html.Div([
    dcc.Input(
        id="input", autoComplete="off"
        ),
    html.Div(id="msg"),
    de.WebSocket(url="ws://localhost:8000/", id="ws")
])
# Send input value using websocket.
send = "function(value){return value;}"
app.clientside_callback(
            send,
            Output("ws", "send"),
            [Input("input", "value")],
        )
# Update div using websocket.
receive = "function(msg){console.log(msg.data); return \"Response from websocket: \" + msg.data;}"
app.clientside_callback(
            receive,
            Output("msg", "children"),
            [Input("ws", "message")]
        )

if __name__ == '__main__':
    app.run_server()

Thank you for taking time to help me here.
Yes, I have been through it all over and over again and at this point I am just getting more and more confused :-)
I just wanted to use the standard python socketIO because I was thinking that a websocket is a websocket is a websocket :-) But at this point I'm okay with just going with the flask socketIO implementation for now, if that can get me moving forward again, so I'll go ahead and switch to that tomorrow and I will let you know how that goes.

Tried to run the code from the first link and add the code from the second link in the assets folder. No errors but also no output other than an empty Div with the id="msg"
I now have the flask socketIO server running and when the client connects I do not get any errors on either side and it does get the 101 websocket connection on the client, but there is still no communication between them. The server even seems to accept the connection without calling the 'client_connected' function and it doesn't print anything to the terminal.
Server running on localhost/5000
from flask import Flask, render_template
from flask_socketio import SocketIO, send, emit

app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)

@socketio.on('connect')
def client_connected():
    print('Client connected')
    send('You have connected')

@socketio.on('message')
def client_msg(msg):
    print(f'Client msg: {msg}')

if __name__ == '__main__':
    socketio.run(app, debug=True)

Client running on localhost:8050
import dash_core_components as dcc
import dash_html_components as html
import dash_extensions as de
from dash import Dash
from dash.dependencies import Input, Output

# Create example app.
app = Dash(prevent_initial_callbacks=True)
app.layout = html.Div([
    dcc.Input(
        id="input", autoComplete="off"
        ),
    html.Div(id="msg"),
    de.WebSocket(url="ws://localhost:5000/", id="ws")
])
# Send input value using websocket.
send = "function(value){return value;}"
app.clientside_callback(
            send,
            Output("ws", "send"),
            [Input("input", "value")],
        )
# Update div using websocket.
receive = "function(msg){console.log(msg.data); return \"Response from websocket: \" + msg.data;}"
app.clientside_callback(
            receive,
            Output("msg", "children"),
            [Input("ws", "message")]
        )

if __name__ == '__main__':
    app.run_server()

Again, I am really sorry for bothering you with something this trivial, but for me just doesn't compute.

I'm getting the impression that you are trying to help me out both here and on the Dash forum?

Haha, yes, it is me in both places. I was also wondering if you were the same ;)

I think the issue is beyond the scope of this project (it's not really related to the WebSocket component, but rather to the server side setup). Try on the Dash forum or on SO.


Add methods to view seeds list from crawl detail page.

Having a head listed on crawl detail page is useful. Also, having having a button to download entire seed list is preferred.

Closed by #423


SDK in golang

If you are reporting a feature request, please make sure to provide the following information:
Summary
The current SDK is in Java.
we may also need a sdk in golang.
Expectation
a go module
Design (Optional)
go client via REST API
https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-rest-api.html
Additional context (Optional)

great idea
是基于REST发请求的吧？可以看下我们的postman_collections

We have successfully connect the GO light-weight client with pre-set private keys. Soon it will be released to public.

go 版本的轻客服端第一个版本，目前只有少量的接口： WeIdentity-Go-Lite-Client 。调用方法可以参考：WeIdentity-Go-Lite-Client-Sample


tip for deleting a local or remote branch

Thank you.

It's a json you missed the commas @anchal20, please fix them, thanks.


Feature: add new contributors to list

Type of feature
🍕 Feature
Current behavior
N/A
Suggested solution
Context (Figma File)
This issue is meant to elaborate on the "Add contributors" interaction from the new Edit List Page in issue #1977
For reference, this is the start of this user flow:

Default view
The idea is to reuse most of the "Explore Contributors" page, but with some changes to the header and starting with an empty state on the table.

User Search
Keeping the same interaction we have right now on the  "Explore Contributors" page table, users will be able to search for contributors, and add them to their list.

Success

Error

Search Empty State Asset
Open in new tab to download

Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

@isabensusan when they go to add contribtors to the list from the grid is the flow after they've clicked add to list to redirect them back to the main edit list page?
This doesn't block me atm, so I can still work on the add users to list flow, but just want to understand the whole flow.

@isabensusan, if they want to keep adding other contributors, currently they can only go back to the list page from the success modal designs. Should another button be added, e.g. Add More Contributors?
Also, They come to this page from the edit list page, so shouldn't we redirect back to the edit list page instead of the list overview?

@nickytonline just saw the PR and it's looking great! To keep the conversation and answer your questions here:
To answer both:

when they go to add contribtors to the list from the grid is the flow after they've clicked add to list to redirect them back to the main edit list page?

and

Also, They come to this page from the edit list page, so shouldn't we redirect back to the edit list page instead of the list overview?

That is a good point, I was working with the assumption that the most common use case would be that the user was adding contributors as a last step of their "editing" user journey, but it's true that going back to the originating context would be a better flow.

Should another button be added, e.g. Add More Contributors?

I think this wouldn't hurt and would catch the edge case of someone adding contributors and realizing they missed someone. Can you add a secondary CTA with "Add more" ? Like this:

And finally, for the svg version of the empty state, here it is!

Thanks @isabensusan!


compose-file: remove reference to custom init path

This option was never functional, and was not intended to be added to the "container create" API, so let's remove it, because it has been removed in Docker 17.05, and was broken in versions before that; see

docker/docker-py#2309 Remove init_path from create
moby/moby#32355 --init-path does not seem to work
moby/moby#32470 remove --init-path from client

ping @ulyssessouza @chris-crone PTAL

Deploy preview for docsdocker ready!
Built with commit a6fe6f7f68a297d4d9c875875161bdfea95f5376
https://deploy-preview-8628--docsdocker.netlify.com

Deploy preview for docsdocker ready!
Built with commit 93ce3bbcf565e98699be6b4115e7684118dbe3cb
https://deploy-preview-8628--docsdocker.netlify.com


Assert more of FontFallbackMap

https://linear.app/replay/issue/RUN-3109/order-fontfallbackmaplock-#comment-59c9c3d5

I don't want us sticking in new ordered locks as diagnostics without understanding whether / why they are needed. Using an ordered lock that's not protecting data isn't useful except in certain specific circumstances as a fence.

Hum... If we can't lock - Do we have other tools to check whether a divergence happens due to unordered thread interleavings?

I have Asserts on all modifications of the data structure.
I have Asserts on this and its owners up-stack.
→ I think it must be an "unordered access problem", but, short of ordering it, I'm not sure how to test that hypothesis?


Question not Issue

The task is to generate new sequences by introducing a random number of mutations at random positions within a specific range of positions, such as [29, 110).
I have the wild-type (WT) sequences, and I need to:
Apply a random number of mutations.
Mutate random positions within the defined range.
I am unsure if any of the available models can achieve this directly. If no suitable model exists, I can implement a method to generate mutations at random positions and then pass each mutated sequence to a model.
The goal is to generate at least 1,000 new sequences.

We don't have this functionality implemented but it seems pretty
straightforward.
On Fri, Sep 6, 2024, 7:47 PM Marjan Mohammadi @.***>
wrote:

The task is to generate new sequences by introducing a random number of
mutations at random positions within a specific range of positions, such as
[29, 110).
I have the wild-type (WT) sequences, and I need to:
Apply a random number of mutations.
Mutate random positions within the defined range.
I am unsure if any of the available models can achieve this directly. If
no suitable model exists, I can implement a method to generate mutations at
random positions and then pass each mutated sequence to a model.
The goal is to generate at least 1,000 new sequences.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/evodiff/issues/46 or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADEMNWA4YYTFG73WGMOEDWLZVI5JNBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTLDTOVRGUZLDORPXI6LQMWSUS43TOVS2M5DPOBUWG44SQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJVGAYDSNRZGY3TTAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDENJRGEZTEMZTHE42O5DSNFTWOZLSUZRXEZLBORSQ
.
You are receiving this email because you are subscribed to this thread.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
.

Thank you, @yangkky, for your quick response. Below is the code for generating mutation lists using the Poisson distribution and applying the "OA_DM_38M" model. This should help anyone looking to achieve similar results:
def generate_mutation_lists(num_lists=1000, mean_mutations=15, min_pos=21, max_pos=110):
    all_lists = []

    for _ in range(num_lists):
        num_mutations = np.random.poisson(mean_mutations)

        ends_list = np.random.randint(min_pos, max_pos + 1, num_mutations)
        ends_list.sort()  # Sort the end positions

        start_list = ends_list - 1

        start_list = np.clip(start_list, min_pos, max_pos)

        all_lists.append((start_list.tolist(), ends_list.tolist()))

    return all_lists

    ```python
mutation_lists = generate_mutation_lists()  # This should be the result of the function you previously ran

total_num_gen_seqs = 1000
generated_sequences = {}

for idx, (start_ids, end_ids) in enumerate(mutation_lists):
    if idx >= total_num_gen_seqs:
        break
    start_ids = [start_ids]
    end_ids = [end_ids]

    masked_sequences = mask_sequences(sequences, start_ids, end_ids)

    tokenizer = tokenizer
    tokenized_sequences = tokenize_sequences(masked_sequences, tokenizer, device)

    new_sequences = generate_unique_sequences(model, tokenized_sequences, start_ids, end_ids, sequences, tokenizer, num_gen_seqs = 1)

    generated_sequences[idx] = new_sequences


Fix fs.constants

Make stub for fs.constants for web
Fix: #60

Commits must follow the conventional commit format: https://github.com/json-schema-tools/dereferencer/blob/master/CONVENTIONAL_COMMITS.md

please use 1 commit, with the following:
fix: fs.constants updated for web

resolves #61

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

GitHub release
1.2.2
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Update Startup.cs

Simplify string comparison with Microsoft.AspNet.Hosting extension method IsDevelopment

Hi @stuartdotnet, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;


[PE-D][Tester D] Incorrect Error Message for Extra Prefix

As shown in the screenshot below, extra prefix d/extra was inserted into the command line, but shows irrelevant error message. The program is probably interpreting it as part of the field before it.
Error message such as

Invalid prefix inserted in command line.

should be shown instead.
Screenshot below shows extra prefix added after m/MAJOR:

Screenshot below shows extra prefix added after t/TAG:

Labels: type.FeatureFlaw severity.Medium
original: choowengyan/ped#17

This is expected behaviour, since parser captures everything thats not part of a delimiter that is specified in the UG.
Anyways none of the affected fields allow for the / character.


added page for Natural Language Processing (NLP)...

Fixes Issue
This PR fixes the following issues:
#195
Changes proposed
Here comes all the changes proposed through this PR

Created aimlAll folder for all the AI/ML related resources
Created resource page for Natural Language Processing (NLP)
Added necessary routes where ever required

Check List (Check all the boxes which are applicable)

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots and video

please resolve merge conflicts

@mnnkhndlwl please review, I have resolved the merge conflict.


Logger {file} {line} fix

Fixes issue #2743
Revise CodeIgniter\Log\Logger::determineFile() to produce the expected output.
This change required a unit test change.

@dafriend Just out of curiosity, what scenario would elicit an 'unknown' response? Can we recreate a test case for that?

Really good question. I dimly remember a situation where the result was 'unknown', but I don't remember why. I'm sure I saw the need while working on the solution, but that was last October and the exact reason escapes me now.
A little research indicates the reasons that the 'file' or 'line' items would not be set are edge-case items, for instance, debug_backtrace() called during a registred shutdown function or xdebug's settings aren't robust enough that the stackframe we're looking is generated.
We could run determineFile() without calling any of the "log" functions, but why? All we would be doing is testing that in_array() and isset() work which is already proven.

I thought so, just checking!


Loading .fif and .edf file formats

Is your feature request related to a problem? Please describe.
I am not sure if this has been discussed or not, but I wanted to know if there is a way to load datasets with .fif, and .edf format? I have been drafting my gsoc proposal for the project and there is a high chance that I will come across these formats as I plan to use MNE library along with sktime for the EEG data analysis
Describe the solution you'd like
What I'm trying to do here is write a function that converts .fif or .edf data into csv. I am looking for ways to interpret this solution. With the MNE library in python, csv is not a supported file format but in order to convert the  csv to the required format, we can read the csv with numpy and create a raw MNE object. I was wondering if something similar could be implemented here?
converting the .csv data into the required MNE data format looks something like this:
import` numpy as np
import mne

# Read the CSV file as a NumPy array
data = np.loadtxt('path/to/csv/file', delimiter=',')

# Some information about the channels
ch_names = ['CH 1', 'CH 2', 'CH 3']  # TODO: finish this list

# Sampling rate of the Nautilus machine
sfreq = 500  # Hz

# Create the info structure needed by MNE
info = mne.create_info(ch_names, sfreq)

# Finally, create the Raw object
raw = mne.io.RawArray(data, info)

# Plot it!
raw.plot()

hm, a quick google search indicates there are already libraries dealing with import or conversion. Would you kindly mind doing a little bit of background research to make sure we avoid duplicating functionality?
Also, not sure whether sktime is the best place for specific format data I/O - perhaps you can outline what functionality would live where.

Hello,
I had a look around and it seems that there is an option to convert a .fif file into a dataframe that can be later saved as csv in  a library called MNE. My main concern while I was thinking about the project proposal was how to effectively deal with the EEG data because MNE doesn't accept csv as a valid file format for analysis and sktime as you said, is not the best place for specific format data I/O.  Do you have any ideas how do I deal with this? I could send you my project proposal for a better context

Hm, could you be please a bit more specific here? What format do you expect the files in, and what format do you want to convert it to? What are the options at present? How is this related to sktime?

I expect the  files to be in .fif , .edf or DIACOM format. I think there is already a PR that deals with the  DIACOM data (issue #356 ). I am looking to implement something similar for .fif and .edf formats. Ideally, I would want them to be convert in csv while using sktime. Having the choice to convert these file formats into csv is crucial as I plan to use sktime for feature extraction and time series classification for my project

Hm, pinging @mloning and @TonyBagnall - I'm not sure that sktime is the best place for file format converters, since it is not a time series modelling concern. Conversion between fif, edf, etc is better located in a separate package or a package specific to medical data, in my opinion.
Loading functionality (from specific file format to memory) is another story, I think that's more a grey area since the in-memory format is framework-specific - it might be a good idea to have that in sktime.
In either case, I'd strongly recommend to scope what the existing solutions are, to avoid reinventing and recreating the wheel...

I think converters to our bespoke .ts file format for classification/regression would be useful and would help expand the UCR/UEA archive.

@TonyBagnall, do you have a python package of choice for this type of I/O or conversions?

@fkiraly I would use Java :) Unless it was json, in which case I would write python.

I'd love to work on this. The only way i know how to convert a .edf file into a .csv file is via the MNE python library but i'm willing to learn more!


bug: Adding description for << or >> replaces all other keys after first < or >

Did you check docs and existing issues?

[X] I have read all the which-key.nvim docs
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of which-key.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
v0.10.2
Operating system/version
Gentoo Linux
Describe the bug
In default setup Which-Key shows about 30 keys following < or > in +Indent right|left menus. But these 30 keys does not include second < or > keys (see :help << or :help >>). If I add description for << or >> then it will be only listed description in these menus (other 30 will gone).
Steps To Reproduce

nvim -u repro.lua.
Press > or <.
You'll see menu with only one key (> or <) instead of default 30 keys plus this one.

Expected Behavior
Have default 30 keys plus one more for < or > in a menu.
Health
==============================================================================
which-key: require("which-key.health").check()

- OK Most of these checks are for informational purposes only.
  WARNINGS should be treated as a warning, and don't necessarily indicate a problem with your config.
  Please |DON'T| report these warnings as an issue.

Checking your config ~
- WARNING |mini.icons| is not installed
- WARNING |nvim-web-devicons| is not installed
- WARNING Keymap icon support will be limited.

Checking for issues with your mappings ~
- OK No issues reported

checking for overlapping keymaps ~
- WARNING In mode `n`, <gc> overlaps with <gcc>:
  - <gc>: Toggle comment
  - <gcc>: Toggle comment line
- OK Overlapping keymaps are only reported for informational purposes.
  This doesn't necessarily mean there is a problem with your config.

Checking for duplicate mappings ~
- OK No duplicate mappings found

Log
Debug Started for v3.13.3
{
  branch = "main",
  commit = "68e37e12913a66b60073906f5d3f14dee0de19f2"
}
new Mode(n:1)
Trigger(add) Mode(n:1) ` ' " z= g' g` < z g <Plug> ] [ > <C-W>
on_key: <lt>
State(start): Mode(n:0) Node(<) { keys = "<" }
  update Mode(n:1)
  continue: < Mode(n:1)
  getchar
  on_key: <Esc>
  got: <Esc>
on_key: >
State(start): Mode(n:0) Node(>) { keys = ">" }
  update Mode(n:1)
  continue: > Mode(n:1)
  getchar
  on_key: <Esc>
  got: <Esc>
on_key: :
ModeChanged(n:c)
  new Mode(c:1)
  Safe(true)
Trigger(add) Mode(c:1) <C-R>
on_key: q
on_key: <CR>
ModeChanged(c:n)
  Unsafe(command-mode)
  suspend: Mode(n:1)
  Trigger(del) Mode(n:1) > ' " <C-W> z= ] g' g` < z g <Plug> ` [
Trigger(add) Mode(n:1) ` ' " z= g' g` < z g <Plug> ] [ > <C-W>

Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
            "folke/which-key.nvim",
            opts = {
                spec = {
                    { "<lt><lt>", desc = "Lines" },
                    { ">>", desc = "Lines" },
                },
            },
  },
})

bump


Multiple projects to different apps

We use vs.net 2019, there is nothing here explaining how to deploy to multiple function apps within a service plan.

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

ID: a1ba8817-3e01-7e84-6c71-b98b131f2927
Version Independent ID: a7703386-9e83-1075-72ef-f9e63f3dc4de
Content: Automate resource deployment for a function app in Azure Functions
Content Source: articles/azure-functions/functions-infrastructure-as-code.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@jwisener A function app on an App Service plan must have the serverFarmId property set to the resource ID of the plan created earlier.
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]"

Okay thanks


fix #2858

This is how the FAQ looks like:

Codecov Report

Merging #2909 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #2909   +/-   ##
=======================================
  Coverage   95.46%   95.46%
=======================================
  Files          73       73
  Lines       13965    13965
=======================================
  Hits        13332    13332
  Misses        633      633

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ec5418...94428cb. Read the comment docs.


Add support for [url=] tag to makerst.py

Fixes #28904
In case [url=http://testurl.com][/url] (empty name) generates

:ref:http://testurl.com<http://testurl.com>

as it used to.

Thanks!

Cherry-picked for 3.1.2.


Starter pack

Skeleton. Open to any and all refactors. Just a suggestion of where to start from :)
Docs are included too

https://entalpic-material-hasher--1.com.readthedocs.build/en/1/


[BUG] AIO Build doesn't support c++17

Use conda environment provided by https://github.com/microsoft/DeepSpeed/pull/3943, and try to build deepspeed with pytorch-nightly by
DS_BUILD_OPS=1 DS_BUILD_SPARSE_ATTN=0 \
    pip install . --global-option="build_ext" \
    2>&1 | tee out # GOOD for release

give me
      /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++17 or later compatible compiler is required to use ATen.
          4 | #error C++17 or later compatible compiler is required to use ATen.
            |  ^~~~~
      In file included from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/c10/util/typeid.h:17,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:5,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/TensorBody.h:18,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/Tensor.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/Tensor.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/extension.h:4,
                       from csrc/aio/py_lib/deepspeed_py_aio.h:15,
                       from csrc/aio/py_lib/deepspeed_aio_thread.h:13,
                       from csrc/aio/py_lib/deepspeed_aio_thread.cpp:10:
      /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/c10/util/irange.h: In member function 'bool c10::detail::integer_iterator<I, one_sided, <anonymous> >::operator==(const c10::detail::integer_iterator<I, one_sided, <anonymous> >&) const':
      /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/c10/util/irange.h:50:8: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17'
         50 |     if constexpr (one_sided) {
            |        ^~~~~~~~~
      In file included from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/ivalue.h:1497,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/List_inl.h:4,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/List.h:490,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/IListRef_inl.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/IListRef.h:632,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/WrapDimUtils.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/TensorNames.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/NamedTensorUtils.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/variable.h:11,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                       from /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/torch/extension.h:4,
                       from csrc/aio/py_lib/deepspeed_py_aio.h:15,
                       from csrc/aio/py_lib/deepspeed_aio_thread.h:13,
                       from csrc/aio/py_lib/deepspeed_aio_thread.cpp:10:
      /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/ivalue_inl.h: In lambda function:
      /home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/torch/include/ATen/core/ivalue_inl.h:1061:12: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17'
       1061 |         if constexpr (::std::is_convertible_v<typename c10::invoke_result_t<T &&, Future&>, IValueWithStorages>) {
            |            ^~~~~~~~~

gcc (conda-forge gcc 11.4.0-0) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

torch(or cuda? I forget) require gcc<12

Ok it works:
[2023-07-23 13:57:05,009] [INFO] [real_accelerator.py:133:get_accelerator] Setting ds_accelerator to cuda (auto detect)
--------------------------------------------------
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
      runtime if needed. Op compatibility means that your system
      meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
async_io ............... [YES] ...... [OKAY]
cpu_adagrad ............ [YES] ...... [OKAY]
cpu_adam ............... [YES] ...... [OKAY]
fused_adam ............. [YES] ...... [OKAY]
fused_lamb ............. [YES] ...... [OKAY]
quantizer .............. [YES] ...... [OKAY]
random_ltd ............. [YES] ...... [OKAY]
 [WARNING]  sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.1
 [WARNING]  using untested triton version (2.1.0+9e3e10c5ed), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
spatial_inference ...... [YES] ...... [OKAY]
transformer ............ [YES] ...... [OKAY]
stochastic_transformer . [YES] ...... [OKAY]
transformer_inference .. [YES] ...... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/home/rok/.con
da/envs/dl-dev2/lib/python3.10/site-packages/torch']
torch version .................... 2.1.0.dev20230722
deepspeed install path ........... ['/home/rok/.conda/envs/dl-dev2/lib/python3.10/site-packages/deepspeed']
deepspeed info ................... 0.10.1+0f039e10, 0f039e10, loadams/libaio
torch cuda version ............... 11.8
torch hip version ................ None
nvcc version ..................... 11.8
deepspeed wheel compiled w. ...... torch 2.1, cuda 11.8

Could also review my PR https://github.com/microsoft/DeepSpeed/pull/3943, This should help resolve many issues regarding compilation failures.

No magic here, I just try the linked PR https://github.com/microsoft/DeepSpeed/pull/3976


Fix error being thrown for setCart and addCart

Removed logger.error because we do not want to throw an error when truncating the cart (if there are more than 10 products). The expected behavior is for the tracker calls to still go through after limiting the cart payload

Why would logger.error throw an error?


port naming issue on gateways with https on istio 1.0.0

Describe the bug
I'm using istio 1.0.0 and I'm experiencing v3 api on it with some services
I have one services that serve a webapp, and another one that when contacted do a 302 redirect to the external url of the first one.
My istio networking resources are the following:
2 gateways (one per domain / service, sharing the same wildcard certificate)
2 virtualservices (one per service exposed)
My gateways are configured as follows:
redirect
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: gate-redirect
spec:
  selector:
    istio: ingressgateway # use Istio default gateway implementation
  servers:
   - port:
       number: 443
       name: https
       protocol: HTTPS
     hosts:
     - "some.domain.io" # i have letsencrypt for this
     tls:
       mode: SIMPLE
       serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
       privateKey: /etc/istio/ingressgateway-certs/tls.key

redirected
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: gate-redirect
spec:
  selector:
    istio: ingressgateway # use Istio default gateway implementation
  servers:
   - port:
       number: 443
       name: https
       protocol: HTTPS
     hosts:
     - "other.domain.io" # i have letsencrypt for this
     tls:
       mode: SIMPLE
       serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
       privateKey: /etc/istio/ingressgateway-certs/tls.key

When applied I'm getting the following log
port https.443.HTTPS: non unique port name for HTTPS port

And when I try to reach the service deployed behind the gateway applied in second I have a => SSL_SYSCALL_ERROR
When naming the port as https-redirector / https-redirected it is working
Also when I only set http port, I don't have any issues naming both of them http this works.
Also I've attempted top debug using 2 differents certificates for my different domains. For my test one was a wildcard letsencrypt and the other one was a one-line self-sign generation.
Expected behavior
This configuration should works
Steps to reproduce the bug
apply thos files (+ corresponding virtualservices / services) on istio 1.0.0 setup
Version
istio 1.0.0
Is Istio Auth enabled or not?
no
Environment
k8s on top of AWS installed w/ kops

Just found this in some code
// We have two servers on the same port. Should we merge?
				// 1. Yes if both servers are plain text and HTTP
				// 2. Yes if both servers are using TLS
				//    if using HTTPS ensure that port name is distinct so that we can setup separate RDS
				//    for each server (as each server ends up as a separate http connection manager due to filter chain match
				// 3. No for everything else.

Did not see such statement in the doc. Maybe it should be clarified.
But I'm going to close this issue since this is the expected behaviour

Maybe we can remove this restriction from the code.

As far as I see you need to have different name to have unitary management of http(s) pools. IMO, merge those name would implies issues with end to end TLS . This would be due to the fact that you can be routed arbitrarily to any router that old the name of your port and thus break the TLS communication.
Am I guessing wrong ?

A possible fix could be to generate unique names for each port, for example, by appending the server's host name.

Turns out that it is too difficult to fix this in the code.
Maybe in the future, we can detect this condition earlier and return an error to the user when the second Gateway is applied, but for now the issue has been clearly documented.


Multiple datasets refactor

This PR refactors various parts of the code in order to handle the training of reporters on multiple datasets simultaneously. We kinda-sorta "supported" this before but not correctly.
Before, we tried to merge together the hidden states from all the datasets into a single HF dataset. This creates a lot of problems; for one thing, it means that the hiddens aren't cached properly. For example, if you extract hiddens for imdb and then you want to fit a reporter on both imdb and amazon_polarity, it wouldn't use the cached imdb hiddens. Now we do use the cache in cases like this. To accomplish this, I needed to change how reporters are trained and evaluated. The training code now passes around dictionaries where the keys are dataset names and the values are tuples of hiddens and labels. This part could probably be further cleaned up a bit but it's a decent MVP I think.
Now, the eval.csv will separately report the metrics of the reporter on each dataset instead of reporting pooled metrics. I take it that this is much more useful than the pooled metrics. But maybe we should include the pooled metrics as well, idk.
There's also a few little fixes/enhancements in here, most notably that I switched to using torch.linalg.eigh by default instead of truncated_eigh for the time being. This makes me sad, since I put a lot of work into truncated_eigh, but it fails to converge way too often and ends up printing annoying warnings when this happens. Hopefully we'll be able to revive it eventually.
This PR also fixes #96, in a different way from PR #170. Basically I needed normalization to be a property of Reporters in order to get multiple datasets to work in a reasonable way. Essentially I don't do any explicit normalization for VINC, since it doesn't actually need it (we already de-mean representations from different classes separately), whereas for CCS I use a novel Normalizer class which is probably slightly over-engineered but whatever.

Getting the following error when running eval right now:
(.venv) laurito@ipe-bison:~/elk$ elk eval /home/laurito/elk-reporters/gpt2/imdb\,\ super_glue\ boolq/gracious-mendel/ gpt2 imdb ag_news --num_gpus 1 --max_examples 100
Using 1 of 2 GPUs: [1]
imdb: using 'train' for training and 'test' for validation
Found cached dataset generator (/home/laurito/.cache/huggingface/datasets/generator/default-4e6ce9115ec3adc4/0.0.0)
Found cached dataset generator (/home/laurito/.cache/huggingface/datasets/generator/default-58da717a77241cc1/0.0.0)
Using 1 of 2 GPUs: [1]
ag_news: using 'train' for training and 'test' for validation
Found cached dataset generator (/home/laurito/.cache/huggingface/datasets/generator/default-0d15ca1ac6cd44d9/0.0.0)
Found cached dataset generator (/home/laurito/.cache/huggingface/datasets/generator/default-31f2909bb9ce8ebf/0.0.0)
Output directory at /home/laurito/elk-reporters/gpt2/imdb, super_glue boolq/gracious-mendel/transfer_eval/imdb
Using 1 of 2 GPUs: [1]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████| 12/12 [00:01<00:00,  8.46it/s]
Traceback (most recent call last):
  File "/home/laurito/elk/.venv/bin/elk", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/laurito/elk/elk/__main__.py", line 26, in run
    run.execute()
  File "/home/laurito/elk/elk/__main__.py", line 18, in execute
    return self.command.execute()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/laurito/elk/elk/evaluation/evaluate.py", line 53, in execute
    run.evaluate()
  File "/home/laurito/elk/elk/evaluation/evaluate.py", line 111, in evaluate
    self.apply_to_layers(func=func, num_devices=num_devices)
  File "/home/laurito/elk/elk/run.py", line 151, in apply_to_layers
    df = pd.concat(df_buf).sort_values(by="layer")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/laurito/elk/.venv/lib/python3.11/site-packages/pandas/core/frame.py", line 6766, in sort_values
    k = self._get_label_or_level_values(by, axis=axis)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/laurito/elk/.venv/lib/python3.11/site-packages/pandas/core/generic.py", line 1778, in _get_label_or_level_values
    raise KeyError(key)
KeyError: 'layer'

Didn't look into it in more detail, yet.

Fixed


remove USE_LOCKS from malloc

As part of https://github.com/Solo5/solo5/pull/150, I've been working on building Solo5 (and ultimately uhvf) locally on MacOSX.  Along the way, I was using clang 3.9, which threw some warnings concerning the USE_LOCKS macros in dlmalloc.  We don't use malloc locks anyway, so it seemed best to remove that code.

Mirage3 beta tester here.  I recommend to merge this PR and make another release of Solo5.  On FreeBSD, I otherwise (with solo5-kernel-virtio-0.2.0) and clang 3.9.0 (tags/RELEASE_390/final 280324):
cc -nostdlibinc -ffreestanding -mno-red-zone -isystem /usr/home/hannes/devel/mirage/solo5/include-host -std=gnu99 -Wall -Wextra -Werror -O2 -g -c malloc.c -o malloc.o
malloc.c:642:5: error: macro expansion producing 'defined' has undefined behavior
      [-Werror,-Wexpansion-to-defined]
#if USE_LOCKS /* Spin locks for gcc >= 4.1, older gcc on x86, MSC >= 1310 */
    ^
malloc.c:638:22: note: expanded from macro 'USE_LOCKS'
#define USE_LOCKS  ((defined(USE_SPIN_LOCKS) && USE_SPIN_LOCKS != 0) || \
                     ^
malloc.c:642:5: error: macro expansion producing 'defined' has undefined behavior
      [-Werror,-Wexpansion-to-defined]
malloc.c:639:22: note: expanded from macro 'USE_LOCKS'
                    (defined(USE_RECURSIVE_LOCKS) && USE_RECURSIVE_LOCKS != 0))
                     ^
malloc.c:1543:5: error: macro expansion producing 'defined' has undefined behavior
      [-Werror,-Wexpansion-to-defined]
#if USE_LOCKS
    ^

Can we achieve the same effect with a one line change adding
#define USE_LOCKS 0

...at the top of malloc.c where we define the other "configuration" directives?
If not, why not?
@hannesm Why haven't we run into this before? Is it something to do with a newer clang?

@mato #define USE_LOCKS 0 at the top of malloc.c works as well (compiles fine with clang-3.9).
and we didn't run into this before since earlier compilation was done with clang-3.8 (3.9 was merged to FreeBSD-CURRENT at the end of November, it looks like I didn't recompile solo5 since then on my laptop). FreeBSD-11 (the latest release, I deploy my solo5 unikernels on such a machine) still uses clang 3.8.0.

Ok, that makes sense. @djwillia Can you confirm #define USE_LOCKS 0 works for you as well? If yes then I'll make that one line change and cut a new release of Solo5 at the same time.

@mato yes, #define USE_LOCKS 0 works for me as well.  Is the reason you want to keep that code around because you think the code should remain as similar to stock dlmalloc as possible, or because you think we may want locks in the future, or some other reason?  I had opted for removal as I feel the code is easier to read without as many nontrivial #ifdefs, and I don't think we will need locks for the foreseeable future.

@djwillia Both reasons that you mention and further: The first question that came into my mind when I read the change in isolation was "Why is this change removing the lock code rather than just turning it off, given that there's a perfectly good mechanism for the latter?"
Anyhow, thanks for acking that the one-liner works, I'll now make a new PR with that change.

Superseded by #156.


I wanted my sliver app bar to push my search bar upwards as I scroll down.

I want to add a search bar such that it remains on the sliver bar when it is expanded and moves up when we scroll down and it gets minimised. I don't know how. Please help. My requirements match that of the Amazon App Search.
`import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class MyApp extends StatelessWidget {
MyApp({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
final title = 'Floating App Bar';
return MaterialApp(
  title: title,
  home: Scaffold(
    drawer: Drawer(
    ),
    // No appbar provided to the Scaffold, only a body with a
    // CustomScrollView.
    body: CustomScrollView(
      slivers: <Widget>[
        // Add the app bar to the CustomScrollView.
        SliverAppBar(
          title: Container(
            height: 36.0,
            width: double.infinity,
            child: Center(
              child: Container(
                height: 80,
                width: MediaQuery.of(context).size.width,
                margin: EdgeInsets.only(left: 20, right: 20),
                child: CupertinoTextField(
                  keyboardType: TextInputType.text,
                  placeholder: 'Search',
                  prefix: Padding(
                    padding: const EdgeInsets.fromLTRB(9.0, 6.0, 9.0, 6.0),
                    child: Icon(Icons.search, color: Colors.black,),
                  ),
                ),
              ),
            ),
          ),
          actions: <Widget>[
            Padding(
              padding: EdgeInsets.only(right: 10),
              child: Icon(Icons.shopping_cart),
            )
          ],
          // Provide a standard title.
          centerTitle: true,
          elevation: 16.0,
          // Allows the user to reveal the app bar if they begin scrolling
          // back up the list of items.
          //floating: true,
          // Display a placeholder widget to visualize the shrinking size.
          flexibleSpace: FlexibleSpaceBar(
            background: Column(
              children: <Widget>[
                SizedBox(height: 80),
                Container(
                  height: 36.0,
                  width: double.infinity,
                  child: Center(
                    child: Container(
                      height: 80,
                      width: MediaQuery.of(context).size.width,
                      margin: EdgeInsets.only(left: 40, right: 40),
                      child: CupertinoTextField(
                        keyboardType: TextInputType.text,
                        placeholder: 'Search',
                        prefix: Padding(
                          padding: const EdgeInsets.fromLTRB(9.0, 6.0, 9.0, 6.0),
                          child: Icon(Icons.search),
                        ),
                      ),
                    ),
                  ),
                ),
              ],
            ),

          ),
          // Make the initial height of the SliverAppBar larger than normal.
          expandedHeight: 120,
          //leading: Icon(Icons.search),
        ),
        // Next, create a SliverList
        SliverList(
          // Use a delegate to build items as they're scrolled on screen.
          delegate: SliverChildBuilderDelegate(
            // The builder function returns a ListTile with a title that
            // displays the index of the current item.
                (context, index) => Card(
                  child: Container(
                    width: MediaQuery.of(context).size.width * 0.50,
                    child: ListTile(
                      title: Text("$index"),
                    ),
                  ),
                ),
            // Builds 1000 ListTiles
            childCount: 10,
          ),
        ),
      ],
    ),
  ),
);

}
}
`

Hi @Kailash-777
This platform is not meant for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Saw many people post their issues on github in issues section in flutter so I thought I should do the same. Sorry I did not know.


[patch] increase step length

I locally tested this with your updated "ARGS_TRIM_AT=200" and it works as expected :) waiting for this to get approved!

@thomasKuntermannDiva-e Hello!
I'm currently away from computer and I will be able to fix the tests only in a week or more. If you want this asap you can try fixing failing tests and we can merge that after green checks