fix: use backend admin server url

This PR enables us to use admin server url that is returned by backend.
This change was also introduced into CLI and have been running in production for long time.
We need this to enable testing with kas-installer as well as to future proof admin server api requests for stage and prod.
Verification

Select your kafka on the list. You will be redirected to metrics view
Check if metrics view works fine (it can be empty if your kafka is new)
Navigate to topics.
You should be able to see and view the topics. If no topics create new one.

@akoserwal we need to test this with the kas-installer.
@HemaHG Do you mind reviewing this

LGTM, verified running UI locally pointing to kas-installer environment


Added gulp-clean so old files do not end up in the 'dist' folder.

This resolves #104.

This Pull Request has been merged by GitConsensus.
Vote Totals

Yes
No
Abstain
Voters

3
0
0
3

Vote Breakdown

User
Yes
No
Abstain

tedivm
✔

ViezeVingertjes
✔

ags131
✔

Vote Results

Criteria
Result

Has Quorum
True

Has Votes
True


Fix "Invalid email and password" handling on Login Page

As of now if logging in fails the user is redirected to this page which shouldn't happen

When I tried to sign in with Twitter, I got redirected and was faced with this:

Fixed.


False-positive Wrong_Indentation: the same number of indents to the opening and closing quotes was expected

Describe the bug
I believe, caused by https://github.com/saveourtool/diktat/commit/998d0e97bf838eec12f7852568b5d4932401e707
Observed behavior
https://github.com/saveourtool/save-cli/security/code-scanning/132
https://github.com/saveourtool/save-cli/security/code-scanning/131
Reproducible on diktat-demo with this snippet:
package com.saveourtool.save.reporter.plain

open class PlainTextReporter {
    @Suppress("MAGIC_NUMBER", "MagicNumber")
    override fun afterAll() {
        out.write(
            "$status: $total tests, $passRate%% successful, failed: $failed, skipped: $skipped"
                .encodeToByteArray()
            )
    }
}

Environment information

diktat version: 1.2.3

Originally from saveourtool/save-cli/security/code-scanning/131, caused by 998d0e97 as a part of #1364.
@Arrgentum, could you take a look please?


Gzip support

In my app's case, JS updates are rather big, 1 MB+. They would greatly benefit from being gzipped, but I'm not sure if the plugin supports this or not.
Would also be cool if the cli would have an option to gzip the files before uploading them to s3.

:+1: Same here. Gzipping and fingerprinting the assets on cordova-hcp build, deploying only those files to S3 and then unzipping them in the app would be really awesome!

Nice suggestion, thanks for the idea!

You can do a gzip compression on your server side. That's not enought ?

There are no guarantees that the plugin code knows how to ungzip files, and I haven't checked if it does. Perhaps @nikDemyankov can clarify.

There is no need to handle unzipping in the app if you set the correct headers on the file S3 upload, it will be handled transparently by the networking component since this is supported behaviour in HTTP protocol. I have written similar stuff for S3 uploads before, can submit a PR shortly.

According to http://stackoverflow.com/questions/7139268/automatically-handling-gzip-http-responses-in-android it is not automatic on Android.

I see.
What I have done on the S3 side before in other projects is simply to gzip files before uploading them (without changing the filename, i.e. not appending the .gz extension) and then setting the header "content-encoding:gzip" on each uploaded file. Works like a charm in browsers and webviews.
I only wrote the chcp-client and not the native code, but by looking at @nikDemyankov s code I think you are right @andreialecu, it will not currently be supported on Android. I'm no Android dev so I could be way off, but after a quick glance at the code I think the easiest fix is to check for content-type gzip in the response and if it's there pipe the input stream via GZIPInputStream. See http://www.rgagnon.com/javadetails/java-HttpUrlConnection-with-GZIP-encoding.html
NSURLSession on iOS should support it right out of the box though, so I don't expect any changes to be needed there. We should probably verify that though :)

Haven't checked this yet, so can't do any clarification on the question. But I think @hassellof is right. Will look into that after fixing some bugs.

I'm using gzip compression on my web server.
and my ios and android device can update the app successfully.
so I think gzip is supported by default?

Hmm, maybe :) Good to hear, that it worked for you. But I will still add code to handle gzip compression on Android side. No changes are required for iOS, though.

Hmm, actually, Android also supports it by default - http://developer.android.com/intl/ru/reference/java/net/HttpURLConnection.html . So, probably, no changes are required :)

Closing it, since no code update is required. Gzip should work out of the box for both platforms. If not - please, reopen the issue.

would be nice if cli automatically gzips content before uploading them to s3.
https://github.com/nordnet/cordova-hot-code-push-cli/issues/33

This may be useful ? I've never used gulp so, not sure how to implement with cli.
https://alyssaq.github.io/2015/deploy_gzip_site_s3/

@seme1 it might be, thanks :) Although, this should go to https://github.com/nordnet/cordova-hot-code-push-cli/issues/33 , not current thread.


Review stages

Add the basic functions of the new proposal / review stage mechanism

Codecov Report

Merging #730 into master will decrease coverage by 0.05%.
The diff coverage is 72.41%.

@@            Coverage Diff             @@
##           master     #730      +/-   ##
==========================================
- Coverage   76.09%   76.04%   -0.06%
==========================================
  Files          67       69       +2
  Lines        2594     2663      +69
==========================================
+ Hits         1974     2025      +51
- Misses        620      638      +18

Impacted Files
Coverage Δ

src/core/context_processors.py
88.46% <ø> (-1.54%)
:arrow_down:

src/proposals/views/update.py
83.92% <ø> (ø)

src/reviews/management/commands/snaptalks.py
0.00% <0.00%> (ø)

src/reviews/views.py
33.88% <16.66%> (+0.27%)
:arrow_up:

src/users/views.py
85.58% <57.14%> (-2.04%)
:arrow_down:

src/reviews/models.py
84.00% <60.00%> (+0.43%)
:arrow_up:

src/core/admin.py
65.21% <65.21%> (ø)

src/reviews/context.py
80.95% <80.95%> (ø)

src/core/utils.py
77.46% <100.00%> (+3.27%)
:arrow_up:

src/proposals/views/cancel.py
100.00% <100.00%> (ø)

... and 7 more

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 ab1f29b...47c977e. Read the comment docs.


Added display name to person elasticsearch index

For context, we were getting these errors:
undefined method `bson_type’ for #<Mongoid::Matchable::Regexp:0x007fdf1cdebce8>

and
uninitialized constant Mongoid::Matchable::Regexp::IGNORECASE

Mongoid added the new class Mongoid::Matchable::Regexp in v5.2.1, see here, which was causing the errors because of name-spacing issues. The fix is just to specify which Regex class we are using in our code by doing ::Regex.


Ensured that a connection is closed on connection failure

What does this PR do?

Checklist

[ ] This is an enhancement of existing features, or a new feature in existing plugins

[ ] I have updated CHANGELOG.asciidoc
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] Added an API method or config option? Document in which version this will be introduced
[ ] I have made corresponding changes to the documentation

[ ] This is a bugfix

[ ] I have updated CHANGELOG.asciidoc
[ ] I have added tests that would fail without this fix

[ ] This is a new plugin

[ ] I have updated CHANGELOG.asciidoc
[ ] My code follows the style guidelines of this project
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I have updated supported-technologies.asciidoc
[ ] Added an API method or config option? Document in which version this will be introduced
[ ] Added an instrumentation plugin? Describe how you made sure that old, non-supported versions are not instrumented by accident.

[ ] This is something else

[ ] I have updated CHANGELOG.asciidoc

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2022-11-11T18:37:25.537+0000

Duration: 39 min 24 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
2533

Skipped
30

Total
2563

:green_heart: Flaky test report
Tests succeeded.
:robot: GitHub comments
Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark tests.

run jdk compatibility tests : Run the JDK Compatibility tests.

run integration tests : Run the Agent Integration tests.

run end-to-end tests : Run the APM-ITs.

run windows tests : Build & tests on windows.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@JonasKunz any reason not to go ahead with this?


NSInternalInconsistency crash in DKAssetGroupDetailVC

Bug:
Crash (NSInternalInconsistencyException) occurring in DKImagePickerController library when deleting photos from any album and re-engaging with app. The problem appears to be related to calling “performBatchUpdates” and receiving incorrect information on the updates that were made. This crash can also be reproduced in the sample app.
Steps to recreate:

Start the sample app.
Select any of the “Basic” options (eg. Pick Any, Single Select, Select All etc.)
Select “Start” on the next screen to bring up the Image Picker screen.
Select a photo on the Image Picker screen.
Put the app in the background and navigate to the “Photos” app on the device.
Delete the same photo that was previously selected within the sample app.
Now, switch back to the sample app.
It crashes right away.

Sample Error Message:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 0.  The number of items contained in an existing section after the update (47) must be equal to the number of items contained in that section before the update (48), plus or minus the number of items inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out).
Excerpt from Stack trace:
CoreFoundation                 0x0000000182527ef8 __exceptionPreprocess + 228
libobjc.A.dylib                0x00000001816f5a3c objc_exception_throw + 52
CoreFoundation                 0x000000018243c068 +[NSException raise:format:arguments:] + 100
Foundation                     0x0000000182f283dc -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 108
UIKitCore                      0x00000001aed5db50 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] + 12836
UIKitCore                      0x00000001aed64ddc -[UICollectionView _endUpdatesWithInvalidationContext:tentativelyForReordering:animator:] + 88
UIKitCore                      0x00000001aed65114 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:animator:] + 384
UIKitCore                      0x00000001aed64f70 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:] + 92
UIKitCore                      0x00000001aed64ef4 -[UICollectionView _performBatchUpdates:completion:invalidationContext:] + 80
UIKitCore                      0x00000001aed64e30 -[UICollectionView performBatchUpdates:completion:] + 60
DKImagePickerController        0x0000000105a48424 function signature specialization <Arg[0] = Dead> of DKImagePickerController.DKAssetGroupDetailVC.imagePickerControllerDidDeselect(assets: [DKImagePickerController.DKAsset]) -> () + 280
DKImagePickerController        0x0000000105a43504 @objc DKImagePickerController.DKAssetGroupDetailVC.imagePickerControllerDidDeselect(assets: [DKImagePickerController.DKAsset]) -> () + 68
DKImagePickerController        0x0000000105a5c930 closure #1 () -> () in DKImagePickerController.DKImageBaseManager.notify(with: ObjectiveC.Selector, object: Swift.AnyObject?, objectTwo: Swift.AnyObject?) -> () + 280
DKImagePickerController        0x0000000105a5c6a8 DKImagePickerController.DKImageBaseManager.notify(with: ObjectiveC.Selector, object: Swift.AnyObject?, objectTwo: Swift.AnyObject?) -> () + 220
DKImagePickerController        0x0000000105a7c830 DKImagePickerController.DKImagePickerController.deselect(asset: DKImagePickerController.DKAsset) -> () + 1372
DKImagePickerController        0x0000000105a48774 function signature specialization <Arg[0] = Dead> of DKImagePickerController.DKAssetGroupDetailVC.group(groupId: Swift.String, didRemoveAssets: [DKImagePickerController.DKAsset]) -> () + 480
DKImagePickerController        0x0000000105a43590 @objc DKImagePickerController.DKAssetGroupDetailVC.group(groupId: Swift.String, didRemoveAssets: [DKImagePickerController.DKAsset]) -> () + 88
DKImagePickerController        0x0000000105a5c930 closure #1 () -> () in DKImagePickerController.DKImageBaseManager.notify(with: ObjectiveC.Selector, object: Swift.AnyObject?, objectTwo: Swift.AnyObject?) -> () + 280
Notes:

There was a PR recently that attempted to fix an issue with performBatchUpdates (https://github.com/zhangao0086/DKImagePickerController/pull/566) to explicitly call “numberOfItems(inSection:)” within DKAssetGroupDetailVC, but that doesn’t seem to have covered this issue.
Not using “performBatchUpdates” and instead keeping the enclosed block of code in place as-is seems to work well. However, I’m guessing that we’re losing some performance benefits that performBatchUpdates gives us around animation, but currently, I’m not seeing much visible impact even when having a few hundred files needing updates.
Verified crash occurs in iOS 11 & 12.

@avinpr and I looked at this and he pointed out this was the original commit which introduced this for performBatchUpdates.  @zhangao0086 do you know what the intent or use case was for this particular change was?... In what scenario was the UI performance really poor?

Hi @devandanger @avinpr This issue was fixed in the develop branch. Could you give it a try?
pod 'DKImagePickerController', :git => 'https://github.com/zhangao0086/DKImagePickerController.git', :branch => 'develop'

Then clean the project and rebuild


Add more information to the logging on playwright browser install.

I had a case where things appeared completely stuck when installing browsers (in a slow network), so, adding logging when that happens.

Looks plenty good to me. Just as reference, I did something similar for AS at one point in time that used queues and had two readers for stdout and stderr separately (that was a requirement there, but not so much here). Here's what it essentially was:
import subprocess
from queue import Empty, Queue
from threading import Event, Thread
from typing import IO, Any, NamedTuple, Tuple, TypeVar

T = TypeVar("T")

class Reader(NamedTuple):
    file: IO[str]
    thread: Thread
    queue: Queue[str]
    close: Event

def run(args: list[str], env: dict[str, str]) -> Tuple[list[str], list[str]]:
    with subprocess.Popen(
        args,
        env=env,
        text=True,
        bufsize=1,
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
    ) as proc:
        assert proc.stdout
        assert proc.stderr

        stdout = _create_reader(proc.stdout)
        stderr = _create_reader(proc.stderr)

        stdout_lines = []

        def handle_stdout():
            lines = _exhaust_queue(stdout.queue)
            stdout_lines.extend(lines)
            for line in lines:
                print(line)

        while proc.poll() is None:
            handle_stdout()

        stdout.close.set()
        stderr.close.set()

        stdout.thread.join(timeout=5)
        stderr.thread.join(timeout=5)

        handle_stdout()
        stderr_lines = _exhaust_queue(stderr.queue)

        if proc.returncode != 0:
            raise RuntimeError(f"Process exited with code {proc.returncode}")

        return stdout_lines, stderr_lines

def _create_reader(file: IO[str]):
    queue: Queue[str] = Queue()
    close = Event()
    thread = _daemonize(_readlines, file, queue, close)
    return Reader(file, thread, queue, close)

def _readlines(file: IO[str], queue: Queue[Any], close: Event):
    while True:
        if line := file.readline().strip():
            queue.put(line)
        elif close.is_set():
            break

def _daemonize(target, *args):
    thread = Thread(target=target, args=args)
    thread.daemon = True
    thread.start()
    return thread

def _exhaust_queue(queue: Queue[T]) -> list[T]:
    output = []
    try:
        while True:
            event = queue.get_nowait()
            output.append(event)
    except Empty:
        return output


PeoplePicker Freezes When Typing In Search Values

Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: [<EMAIL_ADDRESS>Expected / Desired Behavior / Question
Clicking in then typing a name (minimum 3 characters) in the PeoplePicker (PP) would return suggestions for selection.
Observed Behavior
When clicking in the PP field, I'm getting this message in the console (Chrome):
(5) PersonaBase property 'primaryText' was used but has been deprecated. Use 'text' instead.
When I type in the field I get the same message in the console and the UI becomes unresponsive:
(6319) PersonaBase property 'primaryText' was used but has been deprecated. Use 'text' instead.
After a minute or two the UI becomes responsive again and suggestions are rendered.
While suggestions are being loaded, these errors are shown in the console for a significant percentage of users:
GetPersonaPhoto:1 GET<EMAIL_ADDRESS>500 (Internal Server Error. See fault object for more information.)
Note: Pasting in names or email address works as expected.
Steps to Reproduce
My versions
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>I was using version 1.6. Then I did an update in response to issue #95. When deploying the updated WebPart the issues became apparent.
The long delay and frozen display makes the field appear to be broken. Pasting in a name as short as "Mark" returns responses very quickly. Typing "Mark" will eventually work but you can't see the text as it is being typed.
This is my call to the PeoplePicker:
                     <PeoplePicker                         context={this.props.WpContext}                         titleText="Add New User"                         personSelectionLimit={1}                         groupName={''}                         showtooltip={false}                         isRequired={false}                         disabled={false}                         selectedItems={this._getPeoplePickerItems}                       />
When I view the WebPart in EDGE the tab becomes unresponsive, does not recover, and EDGE gives me the option stop a long running script.

@Arknev, will test it and let you know. I kind of knew that primarytext is getting deprecated. Will have to update and check if anything else breaks.

Thanks @Arknev for reporting this. Until now, we didn't have a version dependency on Office UI Fabric. As the library properties are changed so often, I had to add a version dependency to the project. As of version 1.8.0 of this library, the project will use ^5.122.0 of office-ui-fabric-react.
Updated the primaryText property to the new text property. Can you test out the latest beta of 1.8.0 to verify if this helps you solve your issue? More information about how you can test out a latest beta can be found here: https://sharepoint.github.io/sp-dev-fx-controls-react/beta/

Closing the issue as version 1.8.0 has just been released.

I combined two issues into one here. Although the primaryText issue was addressed, that issue was actually minor compared to the UI freezing when searching for users. In our tenant we have millions of users. It would be great if the "resolveDelay" property (IBasePickerProps) could be set when calling the PeoplePicker. I don't see a way to delay search until a minimum number of characters are entered, which would be best, but this time delay would likely meet our needs.


Update support.md Discord link typo

Fix typo in discord link

Great catch @AlizerUncaged, thanks! 🚀


Use jsonptr to represent paths

RFC 6902 references RFC 6901 where it chooses to define the paths in the patch operations as JSON Pointers. JSON Pointers can be encoded as strings, but they are conceptually a separate type, with very particular set of invariants that have to be maintained. This motivates defining a separate Rust type to represent them, as was done in the jsonptr crate, so that manipulations over these paths can be performed safely and with reusable code.
While use of Strings is sufficient to implement the required JSON Patch logic in this crate with minimal boilerplate, it makes it inconvenient for crate users to manipulate the patch operations outside of the diff and merge APIs. For example, a manual implementation of merge for a type other than a serde_json::Value would have to either implement its own string manipulation utilities for extracting tokens from the paths for traversal, or convert to a jsonptr::Pointer, which requires a clone. The reverse may also be required if the user crate intends to produce its own JSON Patches.
By embracing the jsonptr::Pointer type as the representation for the operation paths in this crate, not only we make things simpler and more efficient at the consumer side, we also avoid implementing some error-prone logic in this crate, as it can take advantage of the useful APIs provided by the jsonptr crate. The resulting code ends up being simpler, more elegant and easier to reason about on both sides.
In short, why reinvent the wheel? If there's a perfectly good representation for JSON Pointers in the Rust open-source ecosystem, may as well converge on it.
Side changes

Adding a PatchOperation::path method here for user convenience, since every operation has this field and it's useful for directing the operation to its appropriate location without need for matching explicitly on the operation variant.
Changed the error message of PatchError to start with a lowercase character (as is conventional in std, and to match the jsonptr messages),

Wow that was quick! Thanks @idubrov


Augmenting BERT model with NAS for text classification

Feature Description

To create a text classification module that can search for good performing architectures based on BERT model.
Reason

Similar to Image classification model search, we need model search for text classification tasks.
Solution

Implement a generator for searching models based on BERT.
Alternative Solutions

Additional Context

I am also interested in this. I am not sure how complicated it would be to implement something similar to BERT, but what about 1D convolutional nets? Something akin to Yoon Kim's CNN (https://arxiv.org/abs/1408.5882)?

Sorry for the misnomer. We are currently planning to only add a simple architecture at the end of BERT. It's not easy for us to implement NAS on BERT model with GPUs.


Smart Second Brain And Systemsculpt Ai Together?

Describe the question
Why can't the plugins Smart Second Brain and SystemSculpt AI be loaded at the same time?
In the settings if both are enabled then only one plugin has the setting cog visible, whilst the other is unable to modify the settings.

I use smart connection plugin and this smart second brain plugin doesnt function well yet in my laptop

I haven't heard / tried out this second plugin you're talking about; I will give it a go and see what I can do in order to fix and make sure that we're compatible with each other. Thanks for the info, leaving this open until I find a answer/solution :)


Transparent tokenizer uses explicit int32 (#31)

@regisss please review. We want to port several changes from dev branch into v1.2-release and this is the first one in the series of PRs.


When I moved file to another folder, provided a crash

My theory is that when I moved the file into another folder and deleted the folder, aider doesn't updated the repomap and it crashes because the path doesn't exist actually.
> /commit Now, I actually moved the Endpoints into the OpenAI namespace.

Commit 6278bce Now, I actually moved the Endpoints into the OpenAI namespace.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\Scripts\aider.exe\__main__.py", line 7, in <module>
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\site-packages\aider\main.py", line 293, in main
    coder.run()
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\site-packages\aider\coders\base_coder.py", line 328, in run
    new_user_message = self.run_loop()
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\site-packages\aider\coders\base_coder.py", line 369, in run_loop
    inp = self.io.get_input(
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\site-packages\aider\io.py", line 152, in get_input
    completer_instance = AutoCompleter(root, rel_fnames, addable_rel_fnames, commands)
  File "C:\Users\Coder\AppData\Local\Programs\Python\Python310\lib\site-packages\aider\io.py", line 42, in __init__
    with open(fname, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Coder\\Documents\\Visual Studio Projects\\GigaBrain\\GigaBrain.API\\OpenAI\\Endpoints\\Endpoints.cs'

What happened:
I had a file named Endpoint.cs inside Endpoints, i wished to move it into OpenAI root directory of OpenAI API Wrapper, and deleted the Endpoints folder Aider confused because the path doesn't exist at all and it crashes.
Theory how to fix:
Make that every maybe request to aider in TUI will be regenerate the u-ctags and reply after that.

Thanks for reporting this. Just pushed a fixed in commit 5d18ebd. I linked it to the wrong issue in the commit message unfortunately.
If you install the latest from github, you should pick this up.

Okay! Thanks.


feature/true-zero-copy-3

Pull request type
Please check the type of change your PR introduces:

[X] Feature

What is the current behavior?
eCAL's current zero copy mode is realizing zero copy on the receiving side only. The sending (publishing) side still makes a single memory copy to provide a generic concept for all transport layers (zero copy and none zero copy capable ones).
What is the new behavior?
The new approach applies true zero copy for local publish/subscribe connections. It enables the direct modification of the memory file content without any additional copy action (zero copy).
The pictures shows two applications ecal_sample_latency_snd -z and ecal_sample_latency_rec running on Ubuntu 22.04, exchanging 32MB payloads in 3 µs.

Does this introduce a breaking change?

[X] Yes

New CPublisher API functions added using the new eCAL::payload class.
Sample Usage
#include <ecal/ecal.h>
#include <ecal/ecal_publisher.h>

// binary payload class to allow zero memory operation
//
// the `WriteComplete`and `WritePartial` calls perform
// write/copy operations on the target memory directly
class CBinaryPayload : public eCAL::CPayload
{
public:
  CBinaryPayload(size_t size_) : size(size_) {}

  // the provisioned memory is uninitialized ->
  // perform a full write operation
  bool WriteComplete(void* buf_, size_t len_) override
  {
    memset(buf_, 42, size);
    return true;
  };

  // the provisioned memory is initialized and contains the data from the last write operation ->
  // perform a partial write operation or just modify a few bytes here
  bool WritePartial(void* buf_, size_t len_) override
  {
    size_t write_idx((clock % 1024) % len_);
    char   write_chr(clock % 10 + 48);
    static_cast<char*>(buf_)[write_idx] = write_chr;
    clock++;
    return true;
  };

  // provide the size of the required memory (eCAL needs to allocate for you).
  size_t GetSize() override { return size; };

private:
  size_t size = 0;
  int    clock = 0;
};

// main entry
int main(int argc, char** argv)
{
  // initialize eCAL API
  eCAL::Initialize(argc, argv, "zero_copy_snd");

  // create payload
  CBinaryPayload binary_payload(8 * 1024 * 1024);

  // create publisher
  eCAL::CPublisher pub("zero_copy_pub");

  // enable zero copy mode
  pub.ShmEnableZeroCopy(true);

  // enable handshake mode
  pub.ShmSetAcknowledgeTimeout(50 /* ms */);

  // send updates
  while (eCAL::Ok())
  {
    // send content
    pub.Send(binary_payload);
  }

  // destroy publisher
  pub.Destroy();

  // finalize eCAL API
  eCAL::Finalize();

  return(0);
}

progressing now in feature/true-zero-copy-4


How to a Sponsor Banner under Table of Contents in Docusuarus?

I understand that it can be bothersome for you when someone seeks help in the 'Issue' section, and I apologize for any inconvenience caused.
Now, my primary concern is to add a banner that resembles the one shown in the provided image. Could you kindly share the documentation link that explains how to achieve this? Here's the image for reference:

Please, you're already aware that this is not the appropriate channel. Let's continue in https://github.com/facebook/docusaurus/discussions/9123 instead.


Error code: Out of Memory

When using the Edge extension I am receiving an error code that states:  Out of Memory and seems to be the case when I have too many friends, say 10 or 11 selected at once and doing comparisons.
Sometimes when it is sitting idle on the site or just browsing through the games that are in common or who doesn't have certain ones.
See attached for screenshot of the issue encountered in Edge.

Ooof yeah I need to look into that.
I've been looking for way to reduce memory usage for a while but sadly this won't be a quick fix -- the issue most likely comes from the game covers : they are only loaded when shown, but they are never unloaded after that (mostly to avoid popin).
I have a solution in mind but it will require some refactor to be implemented.
Thanks a lot for reporting it!!


Styling changed

@NiranjanHebli We can't merge your request, as the styling seems off. But I have given you the accepted label. It'll be counted in your hacktoberfest event 👍🏻


Performance benchmarks: Built-in and standalone plugin variations

Feature description
The usage of built-in vs standalone plugins affects performance test results (built-in ones affect Conduit's resource usage, standalone plugins incur the cost of gRPC usage). We should have variations of performance tests, where both built-in and standalone plugins are used.

Not an urgent issue for this iteration, will punt!


Enhance/achromatic

The achromatic result should be relative to the space. Spaces like CAM16, due to adapting luminance and background luminance, can affect what zero chroma looks like in the space. Much like how RYB returns its own achromatic results, so should these spaces.
Resolves #402

@gir-bot lgtm


Enable Ruff annotations checks

In #2476 we enabled a bunch of additional checks on Ruff, but I haven't enabled some that are probably more important for us, namely the ones for annotations. We'd like our library to be fully annotated 😊
We can enable all these checks one at the time:

[ ] ANN001
[ ] ANN002
[ ] ANN003
[ ] ANN102
[ ] ANN201
[ ] ANN202
[ ] ANN204
[ ] ANN205
[ ] ANN206
[ ] ANN401

We can skip these checks on tests, it's nice to have tests type too, but it might take a lot of time 😊
Feel free to ask me any question for this, some of the annotations might be easy to add, some might not 😊

Annotations are disabled here: https://github.com/strawberry-graphql/strawberry/blob/main/pyproject.toml#L178-L187
To work on any of them, remove the line of the annotation and then run ruff . and see what you get 😊 Then you can work from there to add annotations :)

Hi @patrick91, I'm interested in contributing to this issue. Can you please assign this to me
Thank You.

Hi @patrick91, I'm interested in contributing to this issue. Can you please assign this to me
Thank You.

hi @MadhuMPandurangi, I think it's fine to start a PR directly ☺
Please do only one check at the time, enabling all of them at once will require a lot of work ☺

Thanks for the reply. If this requires a lot of work then can you suggest any other issue which I can work for starters.

OK, diving into ANN001. @patrick91 no expectations that you'll want to check a WIP but if you want to take a peak and verify I'm on the right path, might save us some time...
https://github.com/strawberry-graphql/strawberry/commit/c81d989a1d9f9a0fba5f93cc9df79263bf39e0cd

@alexauritt yes, that looks good! Feel free to open a draft PR too if you want more feedback on specific lines 😊

@alexauritt it is also fine to have # noqa: ANN001 where it is quite complex to add annotations btw 😊 we can always do this in multiple PRs :)

I wanna work on ANN201, maybe it's better to make it with multiple PRs as there are 1387 errors, what do you think @patrick91

@JadHADDAD92 yes, good idea!

tackled ANN001 and ANN002

Should i choose any annotation and create a new pr?

May want to remove ANN102 from the list, since it is being deprecated.


How to implement for the simple web app - project frontend?

i had setup and run all successfully. However i'm a newbie with React, is there the simple approach or solution? such as implementation for project html + vanillaJS boiperlate. Thank you

duplicate


Feat/move edit state pack

A possible fix for #2081

I guess the ultimate question is does this resolve the context issue?

@Enigmatical
Yes it does! 😄

Closing for now, we may want to revive this if/when we run into the same problem from the studio work


collections cleanup

cleans up some List functions.

Hi @liboz, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Looks good, I will pull it once the CI has completed.

Thank you for this cleanup PR
Kevin


Menu bar drop down not at correct position.

Problem Description
On a monitor in portrait mode which is not the main monitor the drop down menus of the menu bar, appear much lower than needed. They are aligned with the bottom of the top bar in Linux on the main monitor.
I do not use Spyer 3.3. as Anaconda does not provide the newest version and also a conda update spyer did not yield any results.
What steps reproduce the problem?

Get a second monitor and flip it to be in portrait mode.
Move the position of the monitor so that its top is higher than the top of the main monitor.
Open spyder and click one of the menu bar items.

What is the expected output? What do you see instead?
The drop down menus should be aligned with the menu bar. Instead they are aligned with the bottom of the Linux menu bar.

Versions

Spyder version: 3.2.8
Python version: 3.6.5
Qt version: 5.9.4
PyQt version: 5.9.2
Operating System name/version: Linux Ubuntu 18.04.1

Dependencies
IPython >=4.0    :  6.4.0 (OK)
cython >=0.21    :  0.28.2 (OK)
jedi >=0.9.0     :  0.12.0 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
numpy >=1.7      :  1.15.0 (OK)
pandas >=0.13.1  :  0.23.0 (OK)
psutil >=0.3     :  5.4.5 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.8.4 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.10.7 (OK)
sphinx >=0.6.6   :  1.7.4 (OK)
sympy >=0.7.3    :  1.1.1 (OK)

I think you need to close the Help pane to get a fix for this.

Due to other reasons I had to make a new setup of Ubuntu. I now installed the newest version with
python3 pip -m install spyder
Now I have Spyder 3.3.0 but the problem persists, even with a closed Help Pane.

No idea, I don't have a second monitor to try this, sorry.

This is not a Spyder issue. It is (was) a Qt Bug


Somatic tumor only variant calling

Hi!
Does Hello work with tumor only samples or it is only a germline variant caller?

Hi - sorry for the late response. HELLO is a germline variant caller.


script: Stop flynn-host directly when doing clean install

Running the install script with --clean tries to stop flynn-host via Upstart (see here), but this won't work if an update has been run because Upstart will no longer be tracking the process (see #2224).
We should take a more direct approach like killall flynn-host or grepping ps output.

This is not an issue with 16.04/systemd, so closing.


Bump non-digest-assets gem to 2.0.0 version and refactor its initializer

There were warnings of deprecating whitelist, and now, in version 2.0.0, it has been removed
Changed non_digest_assets initializer to use asset_selectors instead of removed whitelist class variable.

@owen2345 , thank you for invitation as a Collaborator and for merging the last PRs!
Could you, please, also push a RubyGems release?


README.md

@metalurgical Should we add a licence a well ? MIT ?

@metalurgical Should we add a licence a well ? MIT ?

will add MIT, as suggested by shabaz


Correct the link of sswg-security at SECURITY.md

Motivation:
Correct the link of sswg-security at SECURITY.md. Currently it is showing "Not Found".
Modifications:

https://github.com/swift-server/sswg/blob/main/security/README.md => https://www.swift.org/sswg/security/

Result:
Correct the link of sswg-security

Good catch thank you


If initialDuration is given, then timer doesn't starts. It hangs.

Can you please share the code that is causing this issue?

Same here.
CircularCountDownTimer(
            width: 80,
            height: 80,
            duration: 20,
            //autoStart: true,
            initialDuration: 5,
            backgroundColor: Colors.white,
            fillColor: Colors.yellow,
            ringColor: Colors.yellow,
            isReverse: false,
            //isReverseAnimation: true,
          )

Fixed.


JSONLD Framing

Based on the conversation in #491, we need to have a larger discussion of how to best implement framing.
At this point, I see it to be similar to #493, where we'd need to generate a frame per bundle, based on the bundle's fields and rdf mapping.   As mentioned in the conversation, we'd still have to figure out how to resolve occurrences of multiple frames matching a single bundle.

There is another point to be considered-- if bundles can overlap (contain the same properties) then frames determined on a per-bundle basis could overlap (discuss the same properties) and possibly disagree and there will have to be either a deterministic way to resolve disputes (if the bundle registry is ordered, maybe first bundle wins?) or an acknowledgement that configs with overlapping frames are broken by user error and will produce weirdness around resources using overlapping bundles/types.

@ajs6f I would say context (not @context is everything) in the case of overlapping (bundles and in consequence frames) the questions important issue to solve is resource creation (even if that never happens on this part of the code) only creates a single resource.
let me explain myself with a simple pseudo-chained actions list

JSON-LD is passed to "Drupal Content type" or "BundleResolver" solver API endpoint.
API does magic, processes de JSON-LD, applies framing, matches, discerns, cleans, decides on output, etc and "decides" that JSON-LD matches 2 different Bundles. Since matching/on framing/ algorithm can be non-binary (means some algorithms could even come with partial % matching) depending on what we code, this matching should be an extra qualifier in the response also
It returns ALL matched bundles and the qualifiers.
The calling class, algorithm or client is who decides what to do. Here is when "Context" of Who is and Why is it calling the endpoint and how it is going to use that data comes in place. I feel the bundleSolver should not make discerning/discarding operations.  The Caller, or in the case of the simplest use case, the operation that is finally going to "create a single, new resource" based on the JSON-LD passed should decide (even if it is as simple as taking the first element) which bundle to use.

Why? because many future needs could be attached to the bundle solving needs, and even those algorithms, framing, etc can be made more efficient or better, but the true is that we can't say for sure we will have always just one need, single context of use, one way of calling an using this service (and framing). While I write this I can already imagine some use cases, like a way of passing a "frame" like JSON-LD to the bundleResolver API to get, build in such a way, that it could respond with all bundles that are able to describe "images or pictures" for example. That could be something you could end needing!

@DiegoPino This is precisely why the bundle resolver is encapsulated as a service, so that different implementations can be provided as needs arise/change.

JSON-LD is passed to "Drupal Content type" or "BundleResolver" solver API endpoint.

Although, from the sounds of it, you're envisioning this as a separate web service instead of just a Drupal service?  Or are you talking about POSTing to a create a resource?
Also, if frames are not 1:1 with bundles, then perhaps they are a poor choice for determining bundle?  If anything, I'd try and associate the appropriate frames per bundle and then do a basic db lookup to find/apply what I need.

We are lost, and this is quite old. Please feel free to resubmit or re-open with additional details (a use case would be great).


improved test coverage in the piral-core package

New Pull Request
For more information, see the CONTRIBUTING guide.
Prerequisites
Please make sure you can check the following boxes:

[-] I have read the CONTRIBUTING document
[-] My code follows the code style of this project
[-] All new and existing tests passed

Type(s) of Changes
Improvements for test files.
Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[ ] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] I have updated the documentation accordingly
[x] I have added tests to cover my changes

Description
[Added more tests to improve tests coverage results in the Piral-core package]
Remarks
What needs to be done next?

create test files for files that don't have test files.
Improve the rest of the files that have not yet reached at least 95% test coverage.

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


Setup Domain, SSL Certificates for simple.org.

[x] Buy Domain
[x] Buy SSL Certs
[x] Add subdomain for staging
[x] Add subdomain for admin?
[x] make ansible use SSL certs in nginx config
[ ] change capistrano to use simple.org

I can't complete this until @govindkrjoshi adds feature flags around OTP/login. Right now we can't deploy master, which means I can't test the Capistrano config changes.


deps: added aerospikereceiver to collector

Proposed Change

added aerospikereceiver to collector

Can you add documentation to docs/receivers.md? Make sure it stays in alphabetical order please.


Device in a group

I can change Gain on a first device on the first channel:

    params = (0, 0, 1.0, 1.0)
    client.send_message("/live/device/set/parameters/value", params)

How to achieve same when device is in a group?

I guess, behind the scene, we have to get Device object from this group (it's maybe a Chain.Devices). And then use this object in /live/device/set/parameters/value . Is it supported now?

It seems behind the scene, it can be changed with:
        song = application.get_document()
        d = song.view.selected_track.devices[0].chains[0].devices[0]
        d.parameters[1].value = 1.0


Eng spa translations3

Adds to issue #236.
Translates the following files:

sponsor-us.html
subscribe.html
contribute.html
copyright.html
sitemap.html
communities.html

Adds various small translations fixes.

✅ By submitting this PR, I have verified the following

[x] Checked to see if a similar PR has already been opened 🤔
[x] Reviewed the contributing guidelines 🔍
[x] Added my name to the bottom of the list under the Contributors section in the README.md with a link to my personal website or GitHub profile 👥

Awesome! 😄


Created new MF terms ADP-D-ribose modification-dependent protein binding Issue 21572

failed test. start from scratch.


[controller][router][server][security] VIP-1 Implementation and support for JWT Authentication

Summary
This PR adds the API introduced by VIP-1 and an implementation of AuthenticationService based on JSON Web Tokens (JWT). The implementation covers authentication end-to-end on all the components and clients (also some CLI tools).
It is actually the porting of the work that has been done in the DataStax fork.
Changes, in order of importance, high level APIs:
AuthenticationService

Add the new AuthenticationService API
Implement the lifecycle of the AuthenticationService on the controller, server and router components
Add the new ClientAuthenticationProvider API, this API allows to configure pluggable Authentication mechanisms on all the clients (ControllerClient and the other clients)
Also ClientAuthenticationProvider is used in Router to Server communications
ClientAuthenticationProvider can be loaded from the Properties of the component with a standard factory (router, pushjob....)
AuthenticationService and ClientAuthenticationProvider don't come into play while talking to Kafka (PubSub)

AuthorizerService

Implement the lifecycle of the AuthorizerService on the controller, server and router components
Ensure that AuthorizerService is always executed (having authentication without authorisation is almost useless)
Keep DynamicAccessController, do not touch it and the way it is called, this is out of the scope of this work
Add a new method "isSuperUser" to the AuthorizerService API, to cover some Controller APIs
Provide a simple implementation that requires that the Principal is not null (so basically the user MUST be authenticated), this is useful for tests, especially while focusing on the AuthenticationService part

JWT AuthenticationService

Implement an AS that validates the HTTP Authorisation header, with a Bearer token
The implementation is inspired by Apache Pulsar
Add a ClientAuthenticationProvider that injects the HTTP Header
On the client the token can be a String or a path to a local file
Add end-to-end tests
Allow CLI tools (Admin and Query) to accept an optional "--token"  parameter (in the future it would be great to allow a configuration file, so that we could you the ClientAuthenticationProvider factory)

Other changes:

PulsarSink, allow to configure the "token"
Samza, OnlineProducer, PushJob: you can configure the ClientAuthenticationProvider with the Factory

Follow up works (not implemented in this patch):

implement a AuthenticationService that extracts the TLS X509 certificate and remove all the hard coded references to it (extractCertificate...), it can build a Principal whose name is extracted fro the certificate
Implement an AuthorizerService that implement the ACLs and works with any Principal and not only X509 certificates
Add a way on the client tools to read a configuration file with the most common parameters (service urls, clusterName, authentication provider configuration....)

How was this PR tested?
This test adds unit tests and end-to-end tests.
Also on k8s you can fully configure JTW authentication while deploying Venice with an helm chart
Does this PR introduce any user-facing changes?
List of new configuration options:

authentication.service.class: class name of the AuthenticationService
authorizer.service.class: class name of the AuthorizerService

JWT AuthenticationService

authentication.jwt.secretKey: secret key to validate tokens
authentication.jwt.publicKey: public key to validate tokens
authentication.jwt.authClaim: claim to search for into the token
authentication.jwt.publicAlg: algorithm
authentication.jwt.audienceClaim: clam that represents the "audience"
authentication.jwt.audience: audience
authentication.jwt.jwksHostsAllowlist: list of valid hosts for external validation of the tokens

JWT client side authentication (usable on the router configuration and on jobs or clients):

authentication.token: token or path to a token

Hey @eolivelli , thanks a lot for those changes! Do you have any bandwidth to iterate the PR? We'd like to keep the open PR list short so folks can focus on high-priority ones and get changes into production ASAP. If there's no traction or interest to get this PR merged, we will close this PR later.

I am really sorry, but I don't have cycles.
Thanks


chance icon of dreadlord elite to regular dreadlord

@richardik Could you clarify why? Is there overlap or something?

should be adressed with HD icons


Replace DefaultAzureCredential auth flow diagram

Related to https://github.com/Azure/azure-sdk-for-net/pull/28266
Deletes the old *.png file and uses the *.svg file generated via mermaid.js.

API change check for Azure.Identity
API changes are not detected in this pull request for Azure.Identity

API change check for Azure.Identity.BrokeredAuthentication
API changes are not detected in this pull request for Azure.Identity.BrokeredAuthentication


Support token level embeddings

Our current approach embeds datasets using Sentence Transformers that give us one embedding per "chunk" of text (so if we pass in 500 tokens of text or 100 tokens of text we always get 1 embedding). Sentence Transformers "pool" token embeddings into a single one, usually by either averaging or just taking the first or last one.
There is another technique gaining popularity called ColBERT that instead gives you the embeddings for each token. A recent model is jina-colbert-v2
One could also imagine just getting back the hidden states from something like LLama-3.1-8B and working with those token-level embeddings.
When you don't pool you don't throw away a bunch of information, but of course this will explode the file size of the stored embeddings. It still may be worth it, and some things we could do to support them.
One thing to try would be using RAGatouille to handle the nearest neighbor search.
Another thing to try is to store the SAE top features of the tokens rather than their full embedding vectors. Theoretically if an SAE is "good" it will reconstruct the embedding pretty well, but we could cut 4096 Llama embeddings down to e.g. 128 dimensions (64 indices and 64 activations for a top-64 SAE).

this is an interesting technique for reducing storage footprint of token level embeddings
https://arxiv.org/html/2409.14683v1


Pass references from projects to ResolveAssemblyReferences.AssemblyFiles

If we pass a full path to ResolveAssemblyReferences.Assemblies, it will
remove the file and not pass it along to the compiler. This is bad
for project-to-project references, since the Visual Studio IDE still
needs to know about them to make sure everything is wired up correctly.
With this, we now pass project-to-project references to AssemblyFiles,
matching the behavior of the ResolveProjectReferences target.
There is a deeper question of whether or not we should pass all our
full paths along to AssemblyFiles, but that's something which requires
fairly extensive testing and might have back-compat problems that need
to be dealt with.
Review: @NuGet/build-tasks-team

:+1:


Upgrade Java 17 to 21

Update all the pipelines, tool references and documentation to use Java 21.

[x] Councouse Pipeline
[x] GCP Cloud Build
[x] CircleCI
[x] Azure Pipeline
[x] Dockerfile
[x] ci.Dockerfile
[x] README
[x] sdkman config
[x] testhadolinttest.Dockerfile

Done


Searched and Get

Description 📜
The idea behind this project
It is the basic idea of forgetting how many characters have in any pdf or word file.
How does it work
while loading the project we will have a text box where we can enter text and below at the right corner there will be a live character count that will preview how many characters are there.
Fixes #1389

Type of change 📝
Please delete options that are not relevant. And in order to tick the check box just put x inside them for example [x] like this

[x] Add a new project

Domain of Contribution 📊
Please delete options that are not relevant. And in order to tick the check box just put x inside them for example [x] like this

[x] Project using HTML, CSS & JS

Checklist ✅
Please delete options that are not relevant. And in order to tick the check box just put x inside them for example [x] like this

[x] I have performed a self-review of my own code or work.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GSSoC'22 contributor

## Screenshots / Gif (Recommended) 📸

https://user-images.githubusercontent.com/73521123/167266539-3774d2bf-9616-4182-a3a7-67c7769581ea.mp4

Is it a character Counter?

Is it a character Counter? Word Counter is already there?

Nither it is character nor is word counter, it is different one plz refers my attached video you will get an idea.

Is it a character Counter?

Is it a character Counter? Word Counter is already there?

Nither it is character nor is word counter, it is different one plz refers my attached video you will get an idea.

oops sorry😥


Include shorthand notation

Type of issue
Missing information
Description
This article should mention the new shorthand notation of _. Length for (fun x -> x.Length)
Page URL
https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword
Content source URL
https://github.com/dotnet/docs/blob/main/docs/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword.md
Document Version Independent Id
5f6b0ad3-3761-efc7-7f78-5f22334a24f1
Article author
@KathleenDollard
Metadata

ID: f10ac896-9ce5-935b-4b0f-123bcc5d5b6f
Service: dotnet-fsharp

I will work on this!
@BillWagner Please assign me if possible 🙏


Fix odbcconf-exe.md

CONFIGDSN adds a user data source, not system.
command line

result

@David-Engel
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Import temp wallet to Console

The Chore
What we need to achieve and who for
Tasks

[x] Ability to use a seed phrase to import a wallet into embedded wallet in Console
[x] Wallet will only be for current session and will be lost once you disconnect
[ ] Add ability to export the phrase again at the end for ease of copying

Additional details / background info

I am not seeing where I'm meant to be able to do this.  This is the options currently.  So I'm actually seeing embedded TWICE.
Surely we need an option for "import wallet"?

Once you import a wallet you dont get the rest of the options you should normally get from an embedded wallet.

Why is this important?  Well because without that I cant open my wallet in order to add more keys, which users doing this will want to do because they - like me - probably are importing a long existing wallet which might have many of them.
Also without this mode we cannot satisfy the 3rd AC above to be able to easily export my keys again.

This is still no good ...
Still no sign of the "Open Wallet" button so I cant do anything useful.

This is on FG commit hash 391cf7348ff253e9b6988de7c7da252787b3d1eb

This now works!


Fix wrapping around first/last item in menu

This Pull Request fixes two specific issues in the Fuzzy Finder and Command Palette:

When on the first item, hitting Ctrl+P to go to the previous item would run selectedIndex -1 % length but for whatever reason, in javascript, -1 % x equals -1 and not x-1.  So rather than wrapping around to the last item in the list it was setting selectedIndex to -1 and the highlight would just disappear.  Every subsequent Ctrl+P would just keep decrementing to -2, -3, etc.
When on the last item, hitting Ctrl+N to go to the next item would run selectedIndex +1 % length.  Unfortunately, the length property was based on the full list of options, not the number of options currently displayed.  So the highlight would disappear until you hit Ctrl+N enough times to wrap around the actual list.

To fix these issues, I did the following:

If selectedIndex = 0, just set the selectedIndex to length - 1.
Set length to Math.min(10, length) so if there are more than 10 entries in the list we'll just loop over the 10 visible entries.

There's one thing I don't like about this fix.  Menu.tsx is hardcoded to just display the first 10 items but in Reducer.ts, where we're handling the next/previous operation, we don't know how many items Menu.tsx truncated the list to.  I was hoping to set a variable that was accessible by both classes so they could stay in sync but Menu.tsx has a IMenuProps and Reducer.ts has a IMenu.  I couldn't find a way to access a maxDisplayItems in both classes.    If you have a way to access a variable in both of those classes please let me know so I can clean it up.

I guess I should mention that this fix is only relevant until #166 is implemented.  If the menu was changed to display all items with a scrollbar then there wouldn't be a difference between the number of "displayed" items and the number of "actual" items.

Thanks for the fix, @keforbes . This looks like a better experience until #166 is implemented... it doesn't make sense for it to just disappear when going upwards. Glad you caught that bug.
Regarding the hardcoded 10, I think the TODO is reasonable for now, since it would go away once #166 is fixed.


mxnet.base.MXNetError: [17:54:46] src/symbol/symbol.cc:155: Symbol.InferShapeKeyword argument name softmax_label not found.

I'm a new comer of mxnet.
I have followed the instruction in the Internet about training data in mxnet.  I have built the net in the symbol_mynet.py,modifing the code in train_mynet.py. And retain the file find_mxnet.py and train_model.py. But the following error occured to me :
File "train_mynet.py", line 91, in <module>
    train_model.fit(args, net, get_iterator)
  File "/home/deeper/77W-project/net/train_model.py", line 100, in fit
    epoch_end_callback = checkpoint)
  File "/home/deeper/anaconda/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/model.py", line 746, in fit
    self._init_params(dict(data.provide_data+data.provide_label))
  File "/home/deeper/anaconda/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/model.py", line 486, in _init_params
    arg_shapes, _, aux_shapes = self.symbol.infer_shape(**input_shapes)
  File "/home/deeper/anaconda/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/symbol.py", line 453, in infer_shape
    return self._infer_shape_impl(False, *args, **kwargs)
  File "/home/deeper/anaconda/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/symbol.py", line 513, in _infer_shape_impl
    ctypes.byref(complete)))
  File "/home/deeper/anaconda/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/base.py", line 77, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [17:54:46] src/symbol/symbol.cc:155: Symbol.InferShapeKeyword argument name softmax_label not found.
Candidate arguments:
    [0]data
    [1]convolution0_weight
    [2]convolution0_bias
    [3]convolution1_weight
    [4]convolution1_bias
    [5]convolution2_weight
    [6]convolution2_bias
    [7]convolution3_weight
    [8]convolution3_bias
    [9]convolution4_weight
    [10]convolution4_bias
    [11]deconvolution0_weight
    [12]convolution5_weight
    [13]convolution5_bias
    [14]convolution6_weight
    [15]convolution6_bias
    [16]convolution7_weight
    [17]convolution7_bias
    [18]convolution8_weight
    [19]convolution8_bias
    [20]convolution9_weight
    [21]convolution9_bias
    [22]fullyconnected0_weight
    [23]fullyconnected0_bias
    [24]fullyconnected1_weight
    [25]fullyconnected1_bias

My task is belong to multi-lable regression and the lable is like:-1.2225.....3.541 and so on.
I have build the lst file like:
image_index /t lable1 /t labe2 /t path_to_image
and transform it to the rec file.
My iterator is generate by mx.io.ImageRecordIter. The detail about the iterator is:
def get_iterator(args, kv):
    data_shape = (3, args.data_shape, args.data_shape)
    train = mx.io.ImageRecordIter(
        path_imgrec = os.path.join(args.data_dir, args.train_dataset),
        mean_img = "/home/deeper/77W-project/ye_train.bin",
        data_shape  = data_shape,
        path_imglist= "/home/deeper/77W-project/ye_train.lst",
        label_width = 2,
        batch_size  = args.batch_size,
        num_parts   = kv.num_workers,
        part_index  = kv.rank)

    val = mx.io.ImageRecordIter(
        path_imgrec = os.path.join(args.data_dir, args.val_dataset),
        mean_img = "/home/deeper/77W-project/ye_train.bin",
        rand_crop   = False,
        rand_mirror = False,
        data_shape  = data_shape,
        path_imglist= "/home/deeper/77W-project/ye_val.lst",
        label_width = 2,
        batch_size  = args.batch_size,
        num_parts   = kv.num_workers,
        part_index  = kv.rank)

    return (train, val)

The beginning of my net is:
def get_symbol(num_classes = 2):
    data = mx.symbol.Variable(name="data")
    s1_conv1 = mx.symbol.Convolution(
        data=data, kernel=(11, 11), stride=(4, 4),pad=(5, 5), num_filter=96)
    s1_relu1 = mx.symbol.Activation(data=s1_conv1, act_type="relu")
    s1_pool1 = mx.symbol.Pooling(
        data=s1_relu1, pool_type="max", kernel=(3, 3), stride=(2,2))
    s1_lrn1 = mx.symbol.LRN(data=s1_pool1, alpha=0.0001, beta=0.75, knorm=1, nsize=5)

And the last layer in my net is:
s2_fc2 = mx.symbol.FullyConnected(data=s2_relu5, num_hidden=2)
linearRegression = mx.symbol.LinearRegressionOutput(data=s2_fc2, label=data)
return linearRegression

I don't know where the wrong happened.Does the mx.io.ImageRecordIter doesn't match the LinearRegressionOutput or the name of layers I set wrong?

@piiswrong

try renaming last layer as softmax(i.e. add name='softmax')?

@Godricly I have change the last layer like:
 s2_fc2 = mx.symbol.FullyConnected(data=s2_relu5, num_hidden=num_classes)     linearRegression = mx.symbol.LinearRegressionOutput(data=s2_fc2, label=input_data,name="softmax")
But the error still exist.

y is you label same as data? Is that what you intend to do?

@Godricly My data is built : lst->rec
my lst file is like:
0     -2.245     3.456    path_to_image
0     -1.248     5.546    path_to_image
0     -0.245     -1.246    path_to_image
……
……

And I have use the /mxnet/bin/im2rec to transform the lst file to the rec file.

I think we are facing the same issue...
The ImageRecordIter is acutally forced to provide softmax label(for classification), therefore even if you change the last layer name to 'softmax', it will still report the error.
You may follow this issue:
https://github.com/dmlc/mxnet/issues/3731

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


[Untested] Simple directory support

Resolves #2765

Because webkitdirectory supports directories more simply than the other proposed method in #2765 I have used it instead of the more complicated approach.


Reengineer the tree APIs to be more interfacey

Dependent on #1126. It's a longer-term stretch goal but we should try to make the tree APIs and such use the interfaces internally, so that AzExtTreeDataProvider, etc. are no longer tightly coupled to the implementations.
If we can do this cleanly without exploding the interfaces, we might be able to avoid needing a "v3" tree API.

I made changed AzExtParentTreeItem and AzExtTreeDataProvider so that the result of getChildren is no longer cached.
I made sure to use the updated utils package in both RGs and SWA for my testing.
From my exploration of RGs + SWA, the tree felt and behaved exactly the same aside from the focus/unfocus tree item actions. As I'll explain below, I'm afraid we might need to keep at least a watered down version of our caching logic to maintain the current fast and smooth focus/unfocus experience.
Video comparing focusing a group with and without caching

Caching enabled (current experience)
	Caching disabled

https://user-images.githubusercontent.com/12476526/174913831-52fa5fe5-12c4-4f1c-ab27-4aa08f08ddad.mov

https://user-images.githubusercontent.com/12476526/174913480-cd1b10b0-f29c-47e6-bec9-d878515969fe.mov

Here's what I think is happening:

In order to focus/unfocus a group, we must fire the onDidChangeTreeDataEmitter event.
VS Code makes a series of calls to getChildren for the tree items that are expanded.
Since we're no longer caching, calls to getChildren are async and delay the UI update enough to degrade the experience.

Debug logs
For my own sanity I logged when getChildren and refreshUIOnly were called:
Refreshing UI only root
Getting children of root
Getting children of aweininger dev sub
Getting children of Static Web Apps
Getting children of angular-basic-api
Getting children of Production
Getting children of Application Settings
Getting children of Functions
Getting children of root
Getting children of aweininger dev sub
Getting children of Static Webo r Apps
Getting children of angular-basic-api
Getting children of Production
Getting children of Application Settings
Getting children of Functions

The first log is when we call refreshUIOnly upon focusing the group

I think the snappiness of the focus/unfocus actions is important warrant keeping our own cache. I couldn't think of any good workarounds to this problem, since we don't have much control over when VS Code makes calls to getChildren.

That makes sense, I expected VSCode to be calling getChildren again in this scenario. However, we can still do a more narrowly-scoped form of caching, and one that isn't glued to the interface.

I'm going to close this, the APIs we've added for Resources v2 pretty much do the job.


ContentDialog backdrop fix

This code applies overlay to the title bar of a ContentDialogExample instance.
Description
Using VisualTreeHelper, which allows for navigation of the visual tree in Windows UI XAML, the parent and child instances of the dialog object are accessed. The first child is a rectangle that represents the title bar of the window frame. The rectangle margin is set to zero, which is used to make the overlay fill the title bar. A callback is also registered to handle a change of margin property in the rectangle. When the margin property changes to its original value, the overlay is removed by the sender.ClearValue(dp) method.
Motivation and Context
Extending the backdrop into the titlebar can provide a more seamless visual experience and better integration with the overall theme of the application, not resulting in inconsistant results provided to user.  https://github.com/microsoft/WinUI-Gallery/issues/1315
How Has This Been Tested?
The Code was thoroughly user tested in both dark and light mode. In addition, it was executed successfully with changes to titlebar settings. It should not result in any additional changes or conflicts in other existing parts of the project.
Screenshots (if appropriate):
Original ContentDialog

Fixed ContentDialog

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree
On Fri, Jul 7, 2023 at 10:04 PM microsoft-github-policy-service[bot] <
@.***> wrote:

@BrancheyJuhas https://github.com/BrancheyJuhas please read the
following Contributor License Agreement(CLA). If you agree with the CLA,
please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:

(default - no company specified) I have sole ownership of
intellectual property rights to my Submissions and I am not making
Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work
for my employer (or my employer has intellectual property rights in my
Submissions by contract or applicable law). I have permission from my
employer to make Submissions and enter into this Agreement on behalf of my
employer. By signing below, the defined term “You” includes me and my
employer.

@microsoft-github-policy-service agree company="Microsoft"
Contributor License Agreement Contribution License Agreement
This Contribution License Agreement (“Agreement”) is agreed to by the
party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its
affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is
effective as of the latest signature
date below.

Definitions.
“Code” means the computer software code, whether in human-readable
or machine-executable form,
that is delivered by You to Microsoft under this Agreement.
“Project” means any of the projects owned or managed by Microsoft
and offered under a license
approved by the Open Source Initiative (www.opensource.org).
“Submit” is the act of uploading, submitting, transmitting, or
distributing code or other content to any
Project, including but not limited to communication on electronic
mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf
of, the Project for the purpose of
discussing and improving that Project, but excluding communication
that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material
Submitted by You, including any
associated comments and documentation.
Your Submission. You must agree to the terms of this Agreement
before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now
or in the future (except as
described in Section 4 below), Submit to any Project.
Originality of Work. You represent that each of Your Submissions
is entirely Your original work.
Should You wish to Submit materials that are not Your original work,
You may Submit them separately
to the Project if You (a) retain all copyright and license information
that was in the materials as You
received them, (b) in the description accompanying Your Submission,
include the phrase “Submission
containing materials of a third party:” followed by the names of the
third party and any licenses or other
restrictions of which You are aware, and (c) follow any other
instructions in the Project’s written
guidelines concerning Submissions.
Your Employer. References to “employer” in this Agreement include
Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a
contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your
employer has intellectual
property rights in Your Submission by contract or applicable law, You
must secure permission from Your
employer to make the Submission before signing this Agreement. In that
case, the term “You” in this
Agreement will refer to You and the employer collectively. If You
change employers in the future and
desire to Submit additional Submissions for the new employer, then You
agree to sign a new Agreement
and secure permission from the new employer before Submitting those
Submissions.
Licenses.

Copyright License. You grant Microsoft, and those who receive the
Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive,
royalty-free, irrevocable license in the
Submission to reproduce, prepare derivative works of, publicly
display, publicly perform, and distribute
the Submission and such derivative works, and to sublicense any or all
of the foregoing rights to third
parties.
Patent License. You grant Microsoft, and those who receive the
Submission directly or
indirectly from Microsoft, a perpetual, worldwide, non-exclusive,
royalty-free, irrevocable license under
Your patent claims that are necessarily infringed by the Submission or
the combination of the
Submission with the Project to which it was Submitted to make, have
made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the
Project.
Other Rights Reserved. Each party reserves all rights not
expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without
limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.

Representations and Warranties. You represent that You are
legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your
original work (except as You may
have disclosed under Section 3). You represent that You have secured
permission from Your employer to
make the Submission in cases where Your Submission is made in the
course of Your work for Your
employer or Your employer has intellectual property rights in Your
Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You
represent and warrant that You
have the necessary authority to bind the listed employer to the
obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless
You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE
WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6, THE SUBMISSION PROVIDED
UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO,
ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
Notice to Microsoft. You agree to notify Microsoft in writing of
any facts or circumstances of which
You later become aware that would make Your representations in this
Agreement inaccurate in any
respect.
Information about Submissions. You agree that contributions to
Projects and information about
contributions may be maintained indefinitely and disclosed publicly,
including Your name and other
information that You submit with Your Submission.
Governing Law/Jurisdiction. This Agreement is governed by the
laws of the State of Washington, and
the parties consent to exclusive jurisdiction and venue in the federal
courts sitting in King County,
Washington, unless no federal subject matter jurisdiction exists, in
which case the parties consent to
exclusive jurisdiction and venue in the Superior Court of King County,
Washington. The parties waive all
defenses of lack of personal jurisdiction and forum non-conveniens.
Entire Agreement/Assignment. This Agreement is the entire
agreement between the parties, and
supersedes any and all prior agreements, understandings or
communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may
be assigned by Microsoft.

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WinUI-Gallery/pull/1316#issuecomment-1626005478,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXPMNNSQZP7YSFL2IRK7ORDXPBTTFANCNFSM6AAAAAA2CHJJV4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Can you still use the title bar? E.G. drag the window?

Also, if this a real bug, it's actually a WinUI issue. I've seen an issue {id coming} just this week. Might be better to follow that.

Can you still use the title bar? E.G. drag the window?

Yes, it is still possible to drag the window after this bugfix.

Also, if this a real bug, it's actually a WinUI issue. I've seen microsoft/microsoft-ui-xaml#6534 just this week. Might be better to follow that.

I would agree, but if there is a way to fix the bug from the frontend, while not fixed in WinUI source, developers user should be aware of the solution. After bugfix in WinUI codebase, it is of course possible to edit ContentDialog page.

Closing PR as the issue is fixed for WASDK 1.4 🎉


⚠ Home 主页 has degraded performance

In 8efb5e5, Home 主页 (https://www.fangkehou.eu.org) experienced degraded performance:

HTTP code: 502
Response time: 18117 ms

Resolved: Home 主页 performance has improved in f084588 after 19 minutes.


Access Code Table - Add data binding

Currently the table accepts static accessCodes, this task is to update the component to use the actual hooks / preferred data-bindings.

As a part of this task, once the fake is ready, we should render AccessCodeTable directly within AccessCodeTable.stories . We're currently rendering the Content component directly as a work-around.

Technically the original task is already one in #80 , updated title to reflect the remaining update required once the fake is ready for local / storybook.


All Day Events

All Day events from Office365 are showing up as 08:00pm - 08:00pm on the day before the event should be
edit: All Day events from Google Calendars do work fine so seems to be something with 365
Home Assistant:

Outlook:

can you post an example event from HA that comes from office365? I don't have office365 so i cant look into it

I would be happy to but not sure how to get an example event? If you let me know what sort of data you are looking for and where it might be stored I can get it

develop network tab -> the card makes api calls to HA to get the calendar data. I need to see if the data structure is different for office 365 or is coming back wrong. This may be a HA issue as the card basically displays what HA gives it.

How's this?

message: TEST - 123
all_day: false
start_time: '2020-04-19 20:00:00'
end_time: '2020-04-20 20:00:00'
location:
displayName: ''
locationType: default
uniqueIdType: unknown
address: {}
coordinates: {}
description: ''
offset_reached: false
data:

summary: TEST - 123
description: ''
location: ''
categories: []
sensitivity: Normal
show_as: Free
is_all_day: true
attendees: []
start: '2020-04-19T20:00:00-04:00'
end: '2020-04-20T20:00:00-04:00'
uid: >-
AQMkADAwATNiZmYAZC1hMzBiLTRiMDktMDACLTAwCgBGAAAD0_A4rl1Gv0y_Bc92y-yYVgcA8u0cL-Ew5kCG4AtrJCWBkAAAAgENAAAA8u0cL-Ew5kCG4AtrJCWBkAAEKyWEogAAAA==
calendar_id: >-
AQMkADAwATNiZmYAZC1hMzBiLTRiMDktMDACLTAwCgBGAAAD0_A4rl1Gv0y_Bc92y-yYVgcA8u0cL-Ew5kCG4AtrJCWBkAAAAgEGAAAA8u0cL-Ew5kCG4AtrJCWBkAAAAlF-AAAA
subject: TEST - 123
body: ''
friendly_name: Calendar

How's this?
message: TEST - 123
all_day: false
start_time: '2020-04-19 20:00:00'
end_time: '2020-04-20 20:00:00'
location:
displayName: ''
locationType: default
uniqueIdType: unknown
address: {}
coordinates: {}
description: ''
offset_reached: false
data:

summary: TEST - 123
description: ''
location: ''
categories: []
sensitivity: Normal
show_as: Free
is_all_day: true
attendees: []
start: '2020-04-19T20:00:00-04:00'
end: '2020-04-20T20:00:00-04:00'
uid: >-
AQMkADAwATNiZmYAZC1hMzBiLTRiMDktMDACLTAwCgBGAAAD0_A4rl1Gv0y_Bc92y-yYVgcAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxEKyWEogAAAA==
calendar_id: >-
AQMkADAwATNiZmYAZC1hMzBiLTRiMDktMDACLTAwCgBGAAAD0_A4rl1Gv0y_Bc92y-yYVgcA8xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAAAlF-AAAA
subject: TEST - 123
body: ''
friendly_name: Calendar

Hi, I saw that this was marked as fixed but I am still having the same issue


Additional style on reload, css prop, styled-components

Bug report
Describe the bug
When i change styles in css prop and reload page i get error "Warning: Prop className did not match.". In head style section i see two same styles (old and new). Problem only on client side.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Change styles in css prop
Refresh page (error in console on client)

Expected behavior
Console without error about className
Screenshots

On screenshot we can see 3 classes in style tag, but in code we have only 2.
System information

OS: Windows
Browser: Chrome
Version of Next.js: 7.0.2

Additional context
I also updated packages to latest versions.
Git repo with bug: https://github.com/dmitweb/with-styled-components-app-bug

Having the same issue. Would this apply to NextJS?

Note
⚠ The plugin call order in your .babelrc file matters. If you're using the env property in your babel configuration, then putting this plugin into the plugins array won't suffice. Instead it needs to be put into each env's plugins array to maintain it being executed first. See this for more information.

https://www.styled-components.com/docs/tooling#babel-plugin

@kusold it dosn't help, u can use emotion as workaround, same func without issue


Remove Spring Boot as a dependency

Spring dependency managment messes up the one project that depends on this.
Spring boot is also seriously overkill for this use case, it's literally imported just for the webClient.

fixed by 5e71a399a2b1fcff45a6871ee7cab47186ef7cc1


monit couchdb2 / restarter

also fixing removal of redis restarter and absense of couchdb_dir

@snopoke i've made some changes, please review


fix(resolveAsyncComponents): return object when module is empty

When resolvedDef.default is undefined, match.components[key] will be undefined instead of a object like {_Ctor: {},  inject: {}} in v2.7.
I thought this behavior may break compatibility with previous versions, pls feel free to review and discuss.

When do you find yourself with undefined as the default export of a component?

@posva Thank you for the review!
In [nuxt error test}(https://github.com/nuxt/nuxt.js/blob/dev/test/fixtures/error/pages/index.vue), there is an error component which includes a undefined variable not_defined.
After webpack building, component module default will be like:
exports.default = {
  not_defined
};

At first time loading, component resolving will throw a exception not_defined is not defined, then export.default will be cached as undefined.
The third case of nuxt error.test.js will be failed because error is not custom type: NuxtServerError

It's just a test case for error condition, not a common case, so if it's not necessary to consider, I can open a pr for nuxt to fix the test

Even if we add this check, it's still likely an error that should be thrown explicitly.


strange behavior of function definition package

@rlewis1988 and I noticed some strange behavior in the function definition package. The proof below works, but the line the starts "have Hor: ..." is redundant. It is not used anywhere in the proof.If you comment out the line, there is an error in the next line, a very complicated "type mismatch at application." This feels like a bug; at least, we do not understand what is going on.
import data.list data.nat
open nat list eq.ops

theorem nat.le_of_eq {x y : ℕ} (H : x = y) : x ≤ y := H ▸ !le.refl
calc_trans nat.ge.trans

section

variable {Q : Type}

definition f : list Q → ℕ  -- default if l is empty, else max l
  | []        := 0
  | (h :: t)  := f t + 1

theorem f_foo : ∀{l : list Q}, ∀{q : Q}, q ∈ l → f l ≥ 1
  | []                := take q, assume Hq, absurd Hq !not_mem_nil
  | [h]               := take q, assume Hq, nat.le_of_eq !rfl
  | (h :: (h' :: t))  := take q, assume Hq,
    have Hor : q = h ∨ q ∈ (h' :: t), from iff.mp !mem_cons_iff Hq,
    have H : f (h' :: t) ≥ 1, from f_foo (mem_cons h' t),
    have H1 : 1 + 1 ≤ f (h' :: t) + 1, from nat.add_le_add_right H 1,
    calc
      f (h :: h' :: t) = f (h' :: t) + 1 : rfl
                   ... ≥ 1 + 1           : H1
                   ... ≥ 1               : !le_succ_of_le !le.refl

end

To more small comments: it seems that the theorem nat.le_of_eq has been deleted from the library. Why? Also, for some reason, nat.ge.trans is not declared as a calc_trans rule; shouldn't we declare it? (If you import and open "algebra", the rule is present.)

I will investigate this issue later. In the meantime, we can workaround the problem by avoiding the unnecessary takes and assumes. Here is the simpler f_foo:
theorem f_foo : ∀ {l : list Q} {q : Q}, q ∈ l → f l ≥ 1
  | []              q Hq := absurd Hq !not_mem_nil
  | [h]             q Hq := nat.le_of_eq !rfl
  | (h :: h' :: t)  q Hq :=
    have H : f (h' :: t) ≥ 1, from f_foo (mem_cons h' t),
    have H1 : 1 + 1 ≤ f (h' :: t) + 1, from nat.add_le_add_right H 1,
    calc
      f (h :: h' :: t) = f (h' :: t) + 1 : rfl
                   ... ≥ 1 + 1           : H1
                   ... ≥ 1               : !le_succ_of_le !le.refl

To more small comments: it seems that the theorem nat.le_of_eq has been deleted from the library. Why?

I don't know.

Also, for some reason, nat.ge.trans is not declared as a calc_trans rule; shouldn't we declare it?

We should.

I'm not sure that nat.le_of_eq ever existed. At least, I don't see algebra.le_of_eq anywhere in the history of order.lean. (The theorem I noticed disappear was one of the redundant trans rules -- lt_of_lt_of_eq, I think -- and I see why that was removed.) They may have just been overlooked.

O.k., I'll add le_of_eq, and make nat.ge.trans a calc_trans rule. Thanks, Leo, for showing us how to simplify the proof.

The source of the bug is the following:
On the left hand side, f_foo is described as a unary function (it returns a function of type ∀{q : Q}, q ∈ l → f l ≥ 1). On the right hand side, there is a recursive application that treats f_foo as a ternary function. The application f_foo (mem_cons h' t) is notation for f_foo _ _ (mem_cons h' t).
The current compiler incorrectly assumes that the number of arguments provided to f_foo is equal to the number of arguments on the left-hand-side. So, it incorrectly eliminates the recursive call.
The strange error message is generated by the kernel during the type checking step. It is weird because it is due to a compilation bug.
When we add extra terms, we change the order the constraints are solved. This is why the superfluous have is also a workaround.   Note that the superfluous have is also giving hints to the elaborator. It is constraining the type of Hq and q.

Interesting. So sending the "right" number of arguments fixes the problem in this case, but the problem would likely come up again in situations where the more general recursion is needed (because the function or theorem has to be applied to different arguments).

Aha! That's tricky. Thanks for looking, Leo.

Interesting. So sending the "right" number of arguments fixes the problem in this case, but the problem would likely come up again in situations where the more general recursion is needed (because the function or theorem has to be applied to different arguments).

I think this issue only occurs in really rare cases. I don't see any realistic example where the workaround would not work. For me, this is a very low priority issue. It will be fixed, but not in the near future.


The  containing a '-' character is incorrectly resolving the values for CodeArtifactEndpointImpl.

In the awsCodeArtifact url, if the domain contains a '-' character thenCodeArtifactEndpointImpl will get incorrect values for domain and domainOwner.
Example Error:
Could not resolve all files for configuration ':myProject:runtimeClasspath'.
   > Could not resolve com.abcd:xyz-sdk:1.22.3.
     Required by:
         project :myProject
      > Could not resolve com.abcd:xyz-sdk:1.22.3.
         > Could not get resource 'https://env-production-123456789012.d.codeartifact.eu-west-1
         .amazonaws.com/maven/env-data/com/abcd/xyz-sdk/1.22.3/xyz-sdk-1.22.3.pom'.
            > Failed to query the value of property 'passwordProp'.
               > 2 validation errors detected: Value 'production-123456789012' at 'domainOwner' failed to satisfy constraint: Member must satisfy regular expression pattern: [0-9]{12}; Value 'production-123456789012' at 'domainOwner' failed to satisfy constraint: Member must have length less than or equal to 12

This problem seems to originate from an issue with the following regEx match.
^https://(?<domain>.*?)-(?<domainOwner>.*?).d.codeartifact.(?<region>.+?).amazonaws.com/.+?/(?<repository>.+?)(?:/|\?.*|/\?.*)?$

Illustration using regex101:
0-132	https://env-production-123456789012.d.codeartifact.eu-west-1.amazonaws.com/maven/env-data/com/abcd/x...
8-11	env
12-35	production-123456789012
51-60	eu-west-1
81-132	env-data/com/abcd/xyz-sdk/1.22.3/xyz-sdk-1.22.3.pom

Suggested fix is:
- a/src/main/kotlin/io/cloudshiftdev/gradle/codeartifact/CodeArtifactEndpoint.kt	(revision 1b536c784dc003a3dd1d42ffb0f7c26a2e541588)
+++ b/src/main/kotlin/io/cloudshiftdev/gradle/codeartifact/CodeArtifactEndpoint.kt	(revision d28651458bba0488b98163c941ab656a409bd8ba)
@@ -41,7 +41,8 @@
         public fun String.toCodeArtifactEndpointOrNull(): CodeArtifactEndpoint? = fromUrl(this)

         private val regex =
-            """^https://(?<domain>.*?)-(?<domainOwner>.*?).d.codeartifact.(?<region>.+?).amazonaws.com/.+?/(?<repository>.+?)(?:/|\?.*|/\?.*)?$"""
+            """^https://(?<domain>.*?)-(?<domainOwner>[0-9]*?).d.codeartifact.(?<region>.+?).amazonaws.com/.+?/(?<repository>.+?)(?:/|\?.*|/\?.*)?$""".trimMargin()
                 .toRegex()
     }
 }

Thanks for the thorough bug report; this is addressed in release 0.7.4.


NoDeleteMessages

everything was working perfectly until a few hours ago, now all deletes are gone and it doesnt show them. it appears that its disables itself and wont turn on

#2


Question: email address as username

Does addict support allowing email address to be the user's username?  Can I override the username field or should I just both fields equal to the user's email address for now?

For the time being I'd say to use the same in both :smile: I'll be making some changes to the required fields scheme and their validation soon though, I'll ping you back on this issue when it's done.

@schainker #68 makes addict rely on e-mail now :smile:

<3 thanks @trenpixster!


Bug fix 3.3/little weekend fix

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/7369/

@obiwahn: Wrong branch names used in Jenkins build... Please restart with correct branches

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/7392/

IMHO this is ready to merge, although the Mac tests showed compile errors. But they seem to be totally unrelated and are probably caused by an incompatible compiler used for 3.3.

ports:

[x] 3.4 -- https://github.com/arangodb/arangodb/pull/10526
[x] 3.5 -- https://github.com/arangodb/arangodb/pull/10527
[x] devel -- https://github.com/arangodb/arangodb/pull/10518


Bring in linter to enforce a code style guide

To keep our work on this project clean and consistent, I'm proposing that we adhere to a style guide.
This PR includes the following contributions:

Configure ESLint with Airbnb's Javascript style guide
Additional ESLint configurations which help React and Typescript to play together nicely
New lint script in package.json

Run $ npm run lint to find and fix any linting errors in .ts and .tsx files

Your code editor can be set up to respect these styling rules and display warnings about them. If you've never used a linter before, but you'd like to give it a shot with this project, we can work together to get it plugged into your dev environment 😃

We are not using Prettier haha ok! This works too I have no preference!

I've never heard of Prettier until now. Idk how I missed it it seems huge 🤷♀ Should we bring in Prettier in this PR, or decide to open a new PR if we wanna bring it in later?


Implementation of robots.txt

As in title.

This file might be important.
We don't want search engine results to show resource images, random files like .json, scripts or Admin Panel.


gnssutils/minmea: Add config for extended sentnce LOR LSQ

Summary
Add config for extended sentnce LOR LSQ.
Enable vendor extended sentnce "LOR LSQ" for the MINMEA NMEA library.
Impact
gnssutils
Testing
./tools/configure.sh -l lilygo_tbeam_lora_gps:gps

compilation ok, failed in link stage, need check CI result.

[Experimental Bot, please feedback here]
No, this PR does not fully meet the NuttX requirements.
Here's why and how to improve it:

Insufficient Summary:

Why? The summary lacks a clear explanation of why adding this configuration for the extended sentence is necessary. What problem does it solve? What benefit does it provide?
What functional part? Be more specific than "gnssutils." Which file(s) are modified?

Missing Impact Details:

New feature? Is this a new feature, or is it enabling an existing feature that was previously unavailable?
User impact? Will users need to change any configurations or will this "just work"?
Build/Hardware/Documentation/Security/Compatibility:  You've marked "gnssutils" under impact, but you need to address each specific impact category with "YES/NO" and provide details if applicable.

Incomplete Testing:

Build Host Details:  Provide specifics about your build host environment (OS, CPU architecture, compiler version).
Target Details:  Specify the target architecture (e.g., "sim" for simulator, "ARMv7-M") and the board configuration you used for testing.
Insufficient Logs: The provided testing logs are too vague.   For example:

Before: Show that the extended sentence was NOT being parsed.
After:  Show that the extended sentence IS now being parsed correctly.

Example of Improved Summary:
## Summary

This PR enables support for the vendor-specific "LOR LSQ" extended sentence in the MINMEA NMEA library. This sentence provides [explain the data provided by the sentence and why it's useful].

The change adds a new configuration option to enable parsing of this sentence and updates the MINMEA library to handle the new sentence type.

Related NuttX Issue: [If applicable, link to an issue discussing the need for this feature]

Remember:  A good PR description saves reviewers time and helps ensure your changes are accepted quickly!


Fix for bug where cards are marked as saved before save completes

This PR fixes a bug where cards are being marked as saved before the save happens. This also fixes an issue where a card is being saved when exiting edit mode even though the card never changed.
Note that because of the test waiters it's not possible to make assertions while the save is in-flight. but I was able to make a test that asserts we don't save an unchanged card when toggling edit view.

It should be possible to assert intermediate state even with test waiters. Avoid "await"-ing the pervious operation then add a waitFor or waitUntil so that you can assert the expected state occurs.


集成到"nuxt": "^3.0.0-rc.12" 报错

ElementPlusError: [IdInjection] Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})

在app.vue 加入
<script setup> import { ID_INJECTION_KEY } from 'element-plus' provide(ID_INJECTION_KEY, {   prefix: 100,   current: 0, }) </script>

Firstly, sorry that I don't speak Chinese. And from the error, a solution I can think of is creating a plugin yourself:
// ~/plugins/element.ts
import { ID_INJECTION_KEY } from "element-plus";

export default defineNuxtPlugin(({ vueApp }) => {
  vueApp.provide(ID_INJECTION_KEY, {
    prefix: 0, // a random number
    current: 0, // also a random number
  });
});

This solution works for me.

hi,
When the page is refreshed, the following error prompt will appear


MOE-1.x: Use proguard for backporting instead of retrolambda

The reason of doing this is to support backporting Java 8 stream and date API using the net.sourceforge.streamsupport and org.threeten lib. See the -target option in proguard manual for more details.
Currently in MOE 1.x retrolambda is used for not only backporting the lambda, but also to support default methods in interfaces, and also to inject MOE annotations and class registration code to binding classes. If the backporting is done by proguard, then we need to replace the retrolambda with another tool to perform those MOE specific operations. This can be done by the moe-tools-classvalidator tool from MOE-2.x branch, with SVM related code removed.

However one problem of this is to use proguard for backporting, the proguard level must always be 'all'.

The most important problem is when using proguard level all it tends to remove all the protocol binding interfaces (such as apple.uikit.protocol.UIApplicationDelegate) which will causes problem.
I couldn't find a way to tell proguard to not remove interface if it's implemented by a class that has been kept. I think we have to extend the proguard to support this kind of rules, just like how we extend it with the --keepinnerclasses option.

MOE requires the backported default interface to be marked as synthetic.

However one problem of this is to use proguard for backporting, the proguard level must always be all, which could break some projects.

I realized that this is no longer true and seems that it works fine with all proguard level.