Nargo: Handle non-inlined Acir circuit info for contract functions

Problem
After this PR https://github.com/noir-lang/noir/pull/4719 we added handling for displaying multiple circuits infos to represent an entire program. This is similar to what was already done for contracts. It isn't entirely obvious how we should display things for a contract.
For example this is the output of nargo info

on simple_contract under the compile_success_contract tests.
We already list multiple function's for each entry point in the contract. With foldable calls being used from potentially outside of a contract, we will need to display more information as to make this distinction.
Happy Case
We should settle on how we want display contract circuit size info when working with non-inlined / foldable calls.
Project Impact
Nice-to-have
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response

As we move nargo info to bb this should be handled by aztec tooling rather than nargo. Closing in favor of https://github.com/AztecProtocol/aztec-packages/issues/6190


The last wave form is always flickering when recording

My code:
@override
  void initState() {
    super.initState();
    _recorderController = RecorderController();
    _recorderController.record();
  }

...

AudioWaveforms(
    size: const Size(230, 50),
    recorderController: _recorderController,
    waveStyle: const WaveStyle(
      waveColor: Colors.pink,
      spacing: 8.0,
      extendWaveform: true,
      showMiddleLine: false,
   ),
)

For some reason the last wave form always appears to be flickering:

Is this a bug? or am I doing something wrong?

Actually when a wave is generated the first time it just suddenly appears without any animation so that's why it looks flickering. I will put it under bug.

I noticed that too, would be glad for fix


Move one test into JUnit as an example

Looks good! Can you comment on the approach of using src/test/WEB-INF/classes as the test dir instead of the standard src/test/java?


Edit days without records

It should be possible to edit dates (i.e. multiple records) for days that have no records yet.

This is partial resolved by https://github.com/mlange-42/track/pull/147


[Bug] DatePicker is not mobile responsive when used with TimePicker in default position (placed right side)

DatePicker when used with an Analog_time_picker, is mobile-friendly whereas when DatePicker is used with time_picker, it doesn't display properly on small screens.

Figure-1 (Displays properly)

Figure-2 (Doesn't display properly)
In the above images, we can see that when a datePicker is used with an Analog Time Picker displays properly but when used with a timePicker, cuts off the right side content
Code used -
import React, { useState } from "react";
import DatePicker, { DateObject } from "react-multi-date-picker";
// import TimePicker from "react-multi-date-picker/plugins/analog_time_picker";
import TimePicker from "react-multi-date-picker/plugins/time_picker";

export default function App() {
  let [date, setDate] = useState(new DateObject());

  return (

Hello CodeSandbox

      <DatePicker
        value={date}
        onChange={setDate}
        calendarPosition="bottom-center"
        plugins={[<TimePicker hideSeconds />]}
      />

  );
}

Actions to replicate the scenario -

Go to this  CodeSandbox
In the right-side preview panel, beside the URL container, click on the "Open in new window" icon
Preview opens in a new window. Right Click > Inspect > choose a mobile (like iPhone X)

It is best to place TimePicker at the bottom  of the Calendar.

Placing the TimePicker to the left or right of the Calendar creates too much space in the top and bottom of the TimePicker, which is not desirable.

For the problem you mentioned, I can add style and className props, so the user can adjust the TimePicker width if needed.

Also, I'm glad to know your idea for resolving the empty spaces I mentioned.

Also, I'm glad to know your idea for resolving the empty spaces I mentioned.

I think it is okay to have that white space as it is a decision taken by the user not to have an analog clock at the top and want to place the picker at the right side instead of the bottom. You can try adding a label called "Preview" under the picker, where that date and time is dynamically displayed when onlyTimePicker is used. (..but I think it is okay to have white space for now).
The only suggestion I have is to reduce the time taken to show the initial tooltip. The first toolpick is taking more than 2 seconds to show up, which is a bit more.

Hello and thanks for the suggestion.
You can now change the time picker width by installing v2.9.3.
But the speed of displaying the title in HTML is related to the browser settings and I can not do anything about it.

No, there's no way. The title attribute is implemented in a browser dependent fashion.

But I put a trick on the demo page that might be useful.
1- Styling TimePicker
2- Custom Tooltip

No worries, thanks!


WIP: [Link] component

Description
Added a Link component. This really just a wrapper around an <a> since we don't want to re-invent the wheel re: keyboard events, a11y, etc.
closes #149
Motivation and context
We decided that Link needs to be a separate component than Button, since a button is a form element, while an anchor is not.
How to test

npm run build
navigate to Site > Link
Play with the links and make sure all the normal props are passed thru
It's pretty much just an anchor tag

Types of changes

New feature

Checklist

[x] Renders and functions properly in all supported browsers
[x] Automated tests written and passing
[x] Accessibility and inclusivity considered
[x] Rendering performance (initial load time & 60fps) and perceived performance considered
[x] Documentation created or updated

How does this PR make you feel?

This PR has a packages/link/package-lock.json file which must be deleted.  We are not using lock files.  If it reappears, it is a smell that you have some mineral dependency versioning problems on your branch.  I can help.

Any thoughts to what happens if users add an onClick handler?  Does it get a role="button", do we warn them, in dev, that they should use a Button instead?  Is it a documentation thing?

Re: https://github.com/mineral-ui/mineral-ui/pull/211#issuecomment-319367427
I read a fascinating discussion about this decision the other day: https://github.com/alphagov/govuk_elements/pull/272

@brentertz The solution we have right now is to have the component print a console.error with a warning (console.warn doesn't have a stack trace).
Another story we'll have to definitely add is a way to style the Link as a Button, since sometimes implementers are going to want a call to action "button" that takes the user to another page.

@kylegach Can you please run the focus styles by the design team.  I personally think that they are a bit odd/unexpected.

I am still feeling a bit wishy-washy on the prop named, "element".  Can we please revisit it one last time?

Re: https://github.com/mineral-ui/mineral-ui/pull/211#issuecomment-320246081 — I updated it to simply use the browser’s focus styles, for now.

Re: https://github.com/mineral-ui/mineral-ui/pull/211#issuecomment-320246081 — I updated it to simply use the browser’s focus styles, until we receive a design spec.


Migrate from "yum" install to "apt" install

See https://github.com/Senzing/community-roadmap/issues/53

PR merged, release created see: https://github.com/Senzing/aws-cloudformation-ecs-senzing-stack-basic/issues/109


Mixed content

@jgravois
In the lastest Firefox the demo only works after security is disabled.
I think it is because mixed content, secure and insecure.  I suppose everything should be https?

browsers are getting more and more persnickety these days...
fixed via 2e6e1d61596b91ae15d16e13bc58c252d121f0c0
thanks for catching that.


Can't close window from title bar in GLFW_CURSOR_DISABLED mode

OS and version: Windows 10 64-bit (10.0.15063 Build 15063)
Release or commit: master (d80d4be0307d52d7add69f9a995a34325a9dfe1c)
Test: "boing" project in examples (64-bit)
Steps:

Before init() type glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
Defocus the window (i press the windows key)
Try to click the X button on the top bar
Result: mouse gets recaptured and the window stays open

I also tried calling glfwSetWindowFocusCallback and inside that function setting to GLFW_CURSOR_DISABLED when focused and GLFW_CURSOR_NORMAL when unfocused, but it made no difference besides the cursor being visible when hovering over the window while defocused.
This is unexpected behavior to me because the X button lights up making you think it can be clicked. Also, other games that capture the mouse let you close this way (none of the ones I tested use GLFW as far as I know).

This was one of the left-over bits of #650. It should be fixed now with a368d89c947db11afb97bc4788022929fcd71493. Thank you!


WW-4915 Replace deprecated commons-lang3 classes

org.apache.commons.lang3.StringEscapeUtils.escapeXml was replaced with org.apache.commons.text.StringEscapeUtils.escapeXml10 which escapes more characters and potentially can break some things.
@apache/struts-committers

This introduces a new dependency and I would wait with merging this till 2.6, wdyt?

Coverage remained the same at 46.638% when pulling dac624431ef42352cd5343a1a1a7275398ec45d4 on aleksandr-m:feature/lang_to_text into eed364fe28a905707674ff11855c1f09e953d931 on apache:master.

Sure. The escapeXml change will also be more reasonable then.

LGTM 👍


Refactored to improve readability

This commit refactors the code to improve readability.

Please have a look @chaitanyaenr

Can one of the admins verify this patch?

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

@paigerube14 maybe we can log the namespaces being monitored when Cerberus starts for users to know what namespaces are being monitored and then just log when there's a failure to cut down the noise. Thoughts?

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

@paigerube14 maybe we can log the namespaces being monitored when Cerberus starts for users to know what namespaces are being monitored and then just log when there's a failure to cut down the noise. Thoughts?

I think that would work. I can work on this and see what I can trim down if you want? Should I open a new issue to work on or just want to do it in this one?

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

@paigerube14 maybe we can log the namespaces being monitored when Cerberus starts for users to know what namespaces are being monitored and then just log when there's a failure to cut down the noise. Thoughts?

I think that would work. I can work on this and see what I can trim down if you want? Should I open a new issue to work on or just want to do it in this one?

@paigerube14 opening a new issue sounds good, feel free to assign it to yourself. Thanks.

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

With multiprocessing, all the checks are performed in client.py and the loop size significantly decreases once the PR is merged. And we log and store the failures in database in the main loop (https://github.com/openshift-scale/cerberus/blob/master/start_cerberus.py#L245). Therefore, I think we need two different loops.

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

With multiprocessing, all the checks are performed in client.py and the loop size significantly decreases once the PR is merged. And we log and store the failures in database in the main loop (https://github.com/openshift-scale/cerberus/blob/master/start_cerberus.py#L245). Therefore, I think we need two different loops.

Ah thanks for pointing that out! I missed all that being taken out! I'll retake a deeper look at that PR

LGTM
This might not be the pr to do it in, but are we able to combine some of the steps with there corresponding logging lines?
For example, line 143 (if watch_nodes) prints out the iteration node status and line 207 (if not watch_nodes_status) prints out only if there's a failure. Seems like we could just combine and print out only the failure case. I know we had kept them separate so we would be able to print out all the failures at the end but I just think the one loop is getting a little large. Thoughts? @mffiedler @yashashreesuresh @chaitanyaenr

With multiprocessing, all the checks are performed in client.py and the loop size significantly decreases once the PR is merged. And we log and store the failures in database in the main loop (https://github.com/openshift-scale/cerberus/blob/master/start_cerberus.py#L245). Therefore, I think we need two different loops.

Ah thanks for pointing that out! I missed all that being taken out! I'll retake a deeper look at that PR

Yeah, this PR is 11 commits behind the master. We can look at enhancing the readability once the multiprocessing PR gets merged as it would give a better picture.


Epic: Performance Optimizations

This issue will track know areas that we can improve the performance: Bazel memory usage, analysis phase wall-time, and generator wall-time.
Bazel memory

[ ] #2045
[ ] Stop retaining target-specific input_files (split into two structs) in XcodeProjInfo provider
[ ] See what compiler opts we can stop storing in XcodeProjInfo provider

Analysis phase time

[ ] Normalizing file paths could happen as part of args()? Maybe move spec creation into its own action (similar to swift_debug_settings.py.

generator time

[x] #2043
[ ] #2042
[ ] XcodeProj.write() is largely serial

I'm taking a look at parallelizing XcodeProj.write().


Actor management for grid operators

https://app.zenhub.com/files/345461101/0aa7bc5c-5e64-421a-bcc2-063f39de8efd/downloadhttps://app.zenhub.com/files/345461101/403367cf-f273-4ff5-952e-f807d71a259e/downloadDescription
In order for us to know what actors have which roles, and decide what they are allowed to do. We need to register actors and their roles within the system.
Example.
A grid company has a role that allows them to create new metering points and update metering point master data.
A balance supplier cannot create new metering points. But can initiate other processes.
The creation of actors is not done via a BRS but is done via a GUI. It is only DH that can create new actors. The verification of new actors is a process that starts prior to creation and is handled outside of DH.
The scope of this feature is not to create actors via a GUI. It is to have a place to store actors and the handling of which actors can do what. And to determine which actors can receive certain information, and to make sure they only receive information they are allowed to.
Acceptance criteria

[ ] We have a place to store information about actors.
[ ] Actors can be given roles which allows them to perform certain actions within the system.
[ ] Only permitted actors can perform certain actions.
[ ] We can ensure that actors only receive information they are permitted to receive.

https://app.zenhub.com/files/345461101/e8f5c7fe-b500-421c-b0e9-425f3c73e0b8/downloadhttps://app.zenhub.com/files/345461101/525c97e7-529f-43c1-a241-333d73aa002a/download

Added two files


making django_extensions as a base requirement and base installed apps.

Stuff breaks when you are giving flexibility of using "django_extensions" in local environment but not in production env.
For example using docker system (uses base+local requirements ):
from django_extensions.db.models import TimeStampedModel  would work.
but using docker in production mode will use (base + production requirements)
But production requirements file does not have "django_extensions".
Also typically I don't see why django_extensions should not be allowed in production environment.
Am I missing anything there?

@scripterkaran here's why we discourage the use of django_extensions in production. Use the django-model-utils TimeStampedModel instead.

in addition, i have used TimeStampedModel in conjunction with CurrentUserField of django-cuser, without problems so far.


Renaming  to into_?

is-macro generates as_ methods by naming convention https://rust-lang.github.io/api-guidelines/naming.html#ad-hoc-conversions-follow-as_-to_-into_-conventions-c-conv
But into_ is actually named as its variant itself. Though it will be breaking change, is there any chance to consider renaming?
Minimal backward compatibility still will be kept by adding #[deprecation] to previous methods.

Those methods do not have into_ prefix because of Result::ok

A type in the standard library does not use into_ as a prefix, and the operation seems identical to me. (E -> Option)

Thank you. I also realized Result::ok returns Option<T> while into_something mostly just returns T


feat: Implemented User Profile Page issue: #143

Description
This PR introduces several new features and components to the User Profile page, enhancing the user experience and functionality. The following key features have been implemented:
Changes
1. User Profile Page Layout

Created a structured layout for the User Profile page.
Implemented navigation to different sections such as Account Details, Wishlist, Purchased Items, Payment Methods, and
Address.

2. Account Details Component

Displays user information including name, email, and profile picture.
Allows users to update their profile details and upload a new profile picture.

3. Wishlist Component

Displays the user's wishlist items in a visually appealing card layout.
Uses DaisyUI and Tailwind CSS for styling.
Includes a heart button on product cards to add/remove items from the wishlist.
Fetches and displays the wishlist items dynamically.
Implements pagination for the wishlist, showing 5 items per page in a three-column layout.

4. Purchased Items Component

As of now I have added a empty image in this component.

5. Payment Methods Component

As of now this also implemented as empty.

6. Address Component

Displays user's saved addresses.
Ensures proper validation of address fields.

7. Prisma Schema Updates

Created a new schema for handling wishlist items.
The Wishlist model includes fields for id, userId, and productId

        model Wishlist {
            id               Int      @id @default(autoincrement())
           userId         String
           productId   Int
           product      Product  @relation(fields: [productId], references: [productId])
          user             Mainuser @relation(fields: [userId], references: [email])
           @@unique([userId, productId])
         }

8. Wishlist Controller

addToWishlist Function

Adds a product to the wishlist.

Removes the product from the wishlist if it already exists.

getWishlist Function

Fetches the user's wishlist items.

9. PrivateRoute Component

PrivateRoute  Component

Created a PrivateRoute component to protect routes that should only be accessible to logged-in users.
Redirects users to the login page if they are not authenticated.

##Bug Fixes

Addressed issues related to adding/removing items from the wishlist.
Improved state management to ensure the correct display of wishlist items.
Added a border to navbar.
Added a profile image on navbar at place of user name after login.
Added a dropdown on the profile avatar of user profile page and logout.
Implemented a privateroute component for preventing user to visit profile page , cart page without login.

Before:
After:

How to test
1. Setup:

Ensure that the server and client are running.
Ensure you are logged in to access the User Profile page.

2. Accessing User Profile Page:

Click on the profile picture in the navbar.
Verify that the User Profile page loads with the appropriate sections (Account, Wishlist, Purchased Items, etc.).

3. Testing Wishlist Functionality:

Navigate to the product listing page.
Click the heart button on a product card to add it to the wishlist.
Verify that the heart button turns red.
Reload the page and verify that the heart button remains red for items in the wishlist.
Navigate to the Wishlist section in the User Profile page.
Verify that the added product appears in the wishlist.
Remove a product from the wishlist by clicking the heart button again.
Verify that the product is removed from the wishlist and the heart button turns gray.

4. Testing PrivateRoute:

Try to access the User Profile page while logged out.
Verify that you are redirected to the login page.
Log in and try to access the User Profile page again.
Verify that you can now access the User Profile page.

It fixes the issue #143 .

Approving the changes, would be good if you work on the others features as well post GSSoC :)

Hey @dvjsharma , add the labels on this issue.


Update virtual-machines-move-limitations.md

The error message user gets while migrating the Azure SQL VM has this document, but this document doesnt have information that " SQL VM cannot be migrated, but can only re installed after migration.
Hence adding the below line
Azure SQL VM cannot be migrated, Can only be reinstalled after the migration. Please refer to the document to re-install Azure SQL VM , Move guidance for virtual machines.

@pranathipanyam : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@pranathipanyam - I tested this scenario and was able to move a SQL VM to another subscription. Where did you see this error message? Were you attempting to move the SQL VM to a new region?

@ShannonLeavitt @tfitzmac Could you please let me what are the minor edits required? I can do it from my end, so that it ll be helpful for me while doing it for coming document updates.

Hi Tom,
The document you have provided is to move using ASR, thishttps://docs.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/move-sql-vm-different-region?toc=/azure/azure-resource-manager/management/toc.json document is not mentioned in the error message. The document mentioned in the error message  is  -  When the customer wants to migrate an Azure VM along with SQL VM using Azure resource mover, which is not supported. Hence thishttps://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations?tabs=azure-cli document has the resources that are under "Not supported" category using Azure resource mover.
Hence, it should include the information about Azure SQL VM in this document. ( The work-around to reinstall the extension after migrating the VM that has sql installed.). We have to improve the documenthttps://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations?tabs=azure-cli provided in the error message, so customer gets clarity on this scenario
Please let me know if I've confused you, we can set up a call and work on this. I usually work from 9AM to 6PM, but can get on a call with you till 12 AM IST.
Thanks,
Pranathi Panyam | Azure Cloud Engineer
From: Tom FitzMacken @.>
Sent: Wednesday, March 30, 2022 8:17 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Pranathi Panyam @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Update virtual-machines-move-limitations.md (PR #90671)
This article is for moving to new resource group or subscription. There is another article for region movehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fvirtual-machines%2Fwindows%2Fmove-sql-vm-different-region%3Ftoc%3D%2Fazure%2Fazure-resource-manager%2Fmanagement%2Ftoc.json&data=04|01|Pranathi.Panyam%40microsoft.com|3d00e2f0a8a344c77df508da125c1eab|72f988bf86f141af91ab2d7cd011db47|1|0|637842484140289480|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=LJQQySEw5FTbG%2Ft3r%2BXWPus%2FQ0RF43xT%2FWbjpq0G%2BEs%3D&reserved=0.
#please-close

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fpull%2F90671%23issuecomment-1083233802&data=04|01|Pranathi.Panyam%40microsoft.com|3d00e2f0a8a344c77df508da125c1eab|72f988bf86f141af91ab2d7cd011db47|1|0|637842484140289480|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=mz1U1P01yQChuEifkUNx%2F6IAFUiAMDhLCA76aVuc9FQ%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FASHBODXR7ESBAML4R57CMLLVCRSNRANCNFSM5R6KFKIQ&data=04|01|Pranathi.Panyam%40microsoft.com|3d00e2f0a8a344c77df508da125c1eab|72f988bf86f141af91ab2d7cd011db47|1|0|637842484140289480|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&sdata=pnO8AR%2F4HJT2g4pkCqcKn8vPtujUHOFUBvp1ljKmiO0%3D&reserved=0.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Only Microsoft employees can close issues or pull requests via commenting in this repo.


Fix docstrings for TimeData and DenseData

Smal tweaks and fixes to the docstrings in interfaces.py, partially in response to comments on #236. Also some tentative fixes to the deploy script that hopefully will fix the docs build.

yes


UIWebView Nav Bar Text Disappears

Hi All.
It seems that when you run this plugin within UIWebView on iOS the nav bar text and buttons are not present in the screenshot.  Everything runs great on Android.
Please see the video here:
https://youtu.be/dq2EDXVUrAI
In my case I cannot move to WKWebView due to CORS issues... and a great deal of the userbase is still stuck on iOS 8 due to being corporate devices.
Keen to help debug this if someone can point me in the right direction?

Hi @carydias thanks for sharing this video, your app looks great. I have really no idea why this could happen.
Do you think it has something to do with this ionic plugin or with https://github.com/Telerik-Verified-Plugins/NativePageTransitions ?

Thanks for the kind words!  What makes me think it's related to the plugin or more specifically Ionic is that it only occurs on the ionic nav bar which is simply a web element like anything else on the page?  I'm not sure what is unique about that component vesus anything else on the page/view.
It does not occur in WKWebview for anyone else watching.  Curious if others are experiencing the issue as well or it is unique to my implementation.

I'll have to try to debug it. If you want to help I guess a simple dom inspection via safari could give us more info about the problem.
thanks

Hi @shprink it seems that Ionic sets the property "nav-bar" of the new "nav-bar-block" to "entering" before the screenshot is taken.  This results in the currently displayed "nav-bar-block" being hidden from the screenshot.

Curious how we can delay/disable this?  I tried setting $ionicConfigProvider.views.transition('none'); without success.

@carydias @shprink  Have you found a solution to this? I am experiencing the same issue.  It currently only happening on several pages for me, but those pages don't even include Native Transitions and so I am pretty confused as to why this is happening.


Add arm64 installer: Volta.Volta version 2.0.0

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-08-12 11:16:30.722 [FAIL] Installer failed security check. Url: https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-windows-x86_64.msi Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
(Automated response - build 887.)

I consider it highly likely that this is a false positive from Windows Defender. Depending on when you download it, Windows Defender may or may not detect it. There is a high chance of success with retries.

/azp run


Exam mode: Fix an error on the instructor student exam page

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines.

Motivation and Context
Fixes a sentry error reporting studentExams to be undefined.
Description
Use an empty array as default value.
Steps for Testing
Code Review should be enough
Review Progress
Code Review

[x] Review 1
[x] Review 2

Thanks!


Remove target from babel-preset-env

https://github.com/blainekasten/enzyme-matchers/issues/123
I noticed the tests weren't passing even with a clean pull, it seems mostly related to spacing changes in the snapshots. I could do a separate pull request for those if you'd like, just want to confirm that it's not just me.

LGTM!


add the retinaface model.

add the retina face model.

/assign @oneseer

/approve
/lgtm

/assign @guorentong

/assign @oneseer

/approve
/lgtm

/approve
/lgtm

Codecov Report

Merging #287 (cbf33a7) into main (a165c30) will decrease coverage by 2.94%.
The diff coverage is 3.98%.

@@            Coverage Diff             @@
##             main     #287      +/-   ##
==========================================
- Coverage   72.21%   69.27%   -2.95%
==========================================
  Files         182      191       +9
  Lines        6213     6477     +264
  Branches      644      667      +23
==========================================
  Hits         4487     4487
- Misses       1496     1758     +262
- Partials      230      232       +2

Impacted Files
Coverage Δ

towhee/models/retina_face/configs.py
0.00% <0.00%> (ø)

towhee/models/retina_face/heads.py
0.00% <0.00%> (ø)

towhee/models/retina_face/mobilenet_v1.py
0.00% <0.00%> (ø)

towhee/models/retina_face/prior_box.py
0.00% <0.00%> (ø)

towhee/models/retina_face/retinaface.py
0.00% <0.00%> (ø)

towhee/models/retina_face/retinaface_fpn.py
0.00% <0.00%> (ø)

towhee/models/retina_face/ssh.py
0.00% <0.00%> (ø)

towhee/models/retina_face/utils.py
0.00% <0.00%> (ø)

towhee/models/utils/create_conv2d.py
0.00% <0.00%> (-81.82%)
:arrow_down:

towhee/models/utils/pretrained_utils.py
68.42% <33.33%> (-8.05%)
:arrow_down:

... and 3 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 a165c30...cbf33a7. Read the comment docs.


Silently ignore 'bio == null' NullPointerExceptions

Closes: https://github.com/square/okhttp/issues/6509

I think I broke this build on master, it's really awkward to get passing builds with very different behaviour on JDK8, JDK8 alpn, JDK 11 etc.  Then JDK 8 now supports ALPN and TLS 1.3.  Does my head in.

I think I broke this build on master, it's really awkward to get passing builds with very different behaviour on JDK8, JDK8 alpn, JDK 11 etc.  Then JDK 8 now supports ALPN and TLS 1.3.  Does my head in.


Support custom non-pip plugins whose executables are already present on the system by specifying executable but no pip_url

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2341
Originally created by @DouweM on 2020-09-04 15:26:04

This would be a way to support https://gitlab.com/meltano/meltano/-/issues/1175, as an alternative to https://gitlab.com/meltano/meltano/-/issues/2205:
extractors:
- name: tap-mssql
  namespace: tap_mssql
  executable: tap-mssql # or /path/to/tap-mssql

Of course, this would make a Meltano project less portable than it otherwise would be, since it'll depend on the executable already being present on the system, and it wouldn't be available in a containerized project unless the Dockerfile was modified to install it and make it available on the PATH.

View 18 previous comments from the original issue on GitLab


Replace Zero with Data.Void.

The Zero type as defined in Common isn't actually empty. This patch replaces it with Data.Void.

I will probably incorporate this and I do think Void is better than my
Zero, but I need some time to think about it because I would like to see
if there were some way for runPipe to enforce at compile time that a
Pipeline had no calls to 'await', even if the result is never used.
Even with the Void input type people can still call an 'await' with no
value bound and it will still type-check.  If I don't come up with a
better solution before the next release I will merge your patch into v1.1.
On 01/18/2012 09:15 AM, Paolo Capriotti wrote:

The Zero type as defined in Common isn't actually empty. This patch replaces it with Data.Void.
You can merge this Pull Request by running:
git pull https://github.com/pcapriotti/Haskell-Pipes-Library fix-zero
Or you can view, comment on it, or merge it online at:
https://github.com/Gabriel439/Haskell-Pipes-Library/pull/3
-- Commit Summary --

Replace Zero with Data.Void.

-- File Changes --
M Control/Pipe.hs (25)
M Control/Pipe/Common.hs (18)
M pipes.cabal (2)
-- Patch Links --
https://github.com/Gabriel439/Haskell-Pipes-Library/pull/3.patch
https://github.com/Gabriel439/Haskell-Pipes-Library/pull/3.diff

Reply to this email directly or view it on GitHub:
https://github.com/Gabriel439/Haskell-Pipes-Library/pull/3

Yeah, I thought about this too, but couldn't find a solution. For better or worse, Haskell doesn't really have uninhabited types, so even if you define Pipe as a GADT, I'm not sure you can remove the Await case when a == Zero.
Also note that at the moment you can even yield in a blocked pipe with yield undefined. If you think that's ok because the user is explicitly cheating by using undefined, then I'd argue that creating a function of an (almost) uninhabited type is cheating as well. :)

Also, I read your comment about your scheduler use case.  I can't refer
to it right now because of the reddit blackout, but the basic gist of my
answer is that an Arrow instance for Pipes might solve your problem.
However, as it is right now you cannot implement a correct Arrow
instance for Pipes (I wrote one in the comments but it's incorrect), but
the fix I'm working on for resource finalization will also enable Arrows
as well (and I think it's elegant, too, and more general than just
resource finalization).
I don't know exactly how I would implement it yet, but I'll sketch the
basic idea.  As a starting example, let's say that you wanted to read
from a file.  The desired behavior is that the file will not open until
you make at least one request and it will only make as many read calls
as there are requests.  So, the first approach to writing such a Pipe by
hand might be that you specify up front how many read requests you want
to make:
readFile' n = take' n <+< do
openFile
readLine >>= yield
take' (n - 1) <+< do
readLine >>= yield
take' (n - 2) <+< do
readLine >>= yield
take' (n - 3) <+< ...
closeFile
Then you would compose it with a strict consumer and you would get the
desired behavior:
printer <-< readFile' n
If you make no await requests it never passes the first take' statement
and won't even open the file.  If you make one request, it opens the
file, reads one line, and closes the file.  Extra await requests
generate extra lines.
Notice that each take' statement acts like a guard for its corresponding
block.  You can't step into the first take' block unless you read at
least one line.  You can't step into the second take' block unless you
read at least one line.  I call these "priority levels" for lack of a
better term, where each take' (n - m) essentially specifies that you
must make at least "m" yield requests to pass into its
corresponding block.  It allows arbitrary heirarchies and nesting and
most importantly any two actions that occur at the same priority level
are guaranteed to be run together or not at all, thus allowing
transparent resource finalization.
What I'm trying to figure out is how to structure it so that (a) you
don't need to specify up front how much input you need and (b) creating
elegant and useful combinators that automatically translate into code
like the above (although the final solution may not necessarily use take').
On 01/18/2012 09:37 AM, Paolo Capriotti wrote:

Yeah, I thought about this too, but couldn't find a solution. For better or worse, Haskell doesn't really have uninhabited types, so even if you define Pipe as a GADT, I'm not sure you can remove the Await case when a == Zero.
Also note that at the moment you can even yield in a blocked pipe with yield undefined. If you think that's ok because the user is explicitly cheating by using undefined, then I'd argue that creating a function of an (almost) uninhabited type is cheating as well. :)

Reply to this email directly or view it on GitHub:
https://github.com/Gabriel439/Haskell-Pipes-Library/pull/3#issuecomment-3549824

Nice! I'll have to think about it for a while to understand it, but it seems a really interesting idea.
About the Arrow instance, I don't see how it would solve my use case, but I'm not very familiar with arrows, so maybe I'm not seeing the obvious. By the way, I'm implementing a couple of combinators (called fork and join) which I think would solve it. They're going to be in my 'folds' branch, if you're interested. It would be nice if they were instances of a more general pattern, though.

So I was going over your fork and join implementation.  Everything you
are proposing is covered by an Arrow instance. Arrows were designed to
do exactly what you are proposing (and more).  You can bifurcate
outputs, join them into a single input, and even set up recursive
control structures (provided you make an ArrowLoop instance).  Not only
do they have a strong theoretical background, but they are also
supported by Haskell syntactic sugar
http://www.haskell.org/arrows/syntax.html.
However, a correct Arrow instance is not trivial to implement and I'm
still trying to see if it's possible.  The core of the problem is that
they can yield output before awaiting anything and they can yield
multiple values between await statements.  I can write instances that
type-check and seem to work, but I haven't proven that they satisfy the
Arrow laws.
What arrows will not do is Pipe suspension and resumption, but I think
you are right that we need at least some sort of "suspend" primitive in
the library:
data Pipe a b m r =
...
Suspend (Pipe a b m r)
suspend :: Pipe a b m ()
suspend = Suspend (Pure ())
It wouldn't make sense to borrow the await and yield primitives from
other coroutine implementations and not the suspend primitive.  I just
need to figure out how suspend would mesh with composition.  However,
suspend + Arrow instance would solve your scenario completely if I get
Arrows to work.
Regarding the catamorphism, I'd be more comfortable just exposing the
constructors.  The catamorphism doesn't really abstract anything away
and it's less flexible than using the constructors.  For example, how
would you implement composition using foldPipe?  It could probably be
done but it would be significantly less easy to understand.  However, I
would still like to see if I can provide all the functionality people
need as an orthogonal set of very general class instances that are
theoretically well founded.  One of my goals when designing this library
was to prevent the overabundance of primitive functions that tend to
plague most iteratee/coroutine implementations.  Haskell uses category
theory to reduce the number of concepts people have to learn by
extensive reuse of the same type-classes and I'd like my library to
follow in that same tradition so that people can apply what they already
know about existing typeclasses to use the library with very little time
investment required.

Suspend is basically Yield with no value, so I don't think it's necessary. If one really needs it, it can always be emulated by using Pipe a (Maybe b) m r.
I still don't see how an Arrow instance would address my use case, but I'll think about it some more.
Regarding foldPipe, you're right, I don't think it's possible to implement composition with it (since you need to fold over both pipes simultaneously), and it does expose some implementation details.
Anyway, I don't think it's so bad to allow to pattern match at least over the Yield and Await components of a pipe. Using some kind of folding construct allows you to limit exactly which part of the pipe implementation you want to expose.


pip install wheel

I assume this is somehow my fault, but when I was trying to run
python runtests.py --bench-compare master sparse.Arithmetic
as mentioned in https://github.com/scipy/scipy/tree/master/benchmarks, I hit a problem at the pip install wheel step on line https://github.com/spacetelescope/asv/blob/master/asv/plugins/virtualenv.py#L107 within asv.  The error is buried underneath a few layers of system/subprocess calls made by Python scripts, so it is kind of cryptic.  The asv package itself passes its internal tests on my system, but I have not tried to isolate the problem to use only asv scripts and not scipy scripts.

What is the error message?

This isn't all of the output, but it failed at the 'installing dependencies' step:
[...]/scipy$ python runtests.py --bench-compare master sparse.Arithmetic
· Fetching recent changes
· Fetching recent changes
· Creating environments
· Installing dependencies

at which point it gave tracebacks ending with this:
File "[...]/.local/lib/python2.7/site-packages/asv-0.1-py2.7.egg/asv/plugins/virtualenv.py", line 107, in install_requirements
    self._run_executable('pip', ['install', 'wheel'])
  File "[...]/.local/lib/python2.7/site-packages/asv-0.1-py2.7.egg/asv/plugins/virtualenv.py", line 122, in _run_executable
    os.path.join(self._path, 'bin', executable)] + args, **kwargs)
  File "[...]/.local/lib/python2.7/site-packages/asv-0.1-py2.7.egg/asv/util.py", line 295, in check_output
    cwd=cwd)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Manually installing wheel didn't seem to help (I get the same error).  Maybe asv is not finding pip?  I see that asv uses logging, is there a way to enable these logs through the runtests.py wrapper in scipy?  Or maybe they are already being created somewhere?  Also asv seems to be using its virtualenv plugin.  According to $ virtualenv --version I have 12.0.7 (installed through pip on Ubuntu), but I'm not a virtualenv expert.  Most of my python modules have been installed through $ pip install <package> --user rather than through Ubuntu's package manager.

Yes, looks like pip is not present in the virtualenv. Maybe the virtualenv is hosed, try rm -rf benchmarks/env to force asv to recreate it.
In particular, if you run git clean, it will currently hose up the virtualenv used by asv.
asv should be made smart enough to notice this.

@pv Thanks, after $ rm -rf benchmarks/env, $ python runtests.py --bench-compare master sparse.Arithmetic has progressed beyond the 'installing dependencies' step.  It's currently 'Building for py2.7-Cython0.21.1-Tempita0.5.2-numpy1.8.2-six'.

The command
$ python runtests.py --bench-compare master
has completed successfully after I worked around the problem by deleting benchmarks/env.

In particular, if you run git clean, it will currently hose up the virtualenv used by asv.
asv should be made smart enough to notice this.

OK, I'll leave this issue open.


Wrong Link, Confusing Win32 .rc & .res with .NET .resx !

I wanted to learn more about the project properties/application "Resources" ...
I found this article here: https://einaregilsson.com/add-multiple-icons-to-a-dotnet-application/
It sais that THOSE Win32 resource files (.rc -> .res) are "completely different" from .NET resources (.resx -> .resource)...
So, I was under the impression that this option is about Win32 resources. Despite this, at the end if this page there is a link to .NET resources: https://docs.microsoft.com/en-us/dotnet/core/extensions/create-resource-files
Is it possible that the author(s) put in the wrong link?
EDIT: I have seen another issue was raised, asking about the .rc / .res specifications... maybe add this link to the page instead?
If I'm wrong I'm sorry. Thanks.

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

ID: db2f3877-b9ea-1ee4-b4ab-ec146139cf5b
Version Independent ID: b9e98d4e-1053-4ac3-f1f0-a31c12e72f6f
Content: Application page of C# project properties - Visual Studio (Windows)
Content Source: docs/ide/reference/application-page-project-designer-csharp.md
Product: visual-studio-windows
Technology: vs-ide-general
GitHub Login: @TerryGLee
Microsoft Alias: tglee

@AMUCOMO -- thank you for your feedback.  Please consider these resources:

Visual Studio on Microsoft Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

@TerryGLee -- please look into this potential clarification.


#if Xcode compiler directive

I was integrating this into a project via Cocoapods and noticed that all the code between the #if Xcode directives wasn't being compiled. Where is this defined? I'm using Xcode, of course 😄
I worked around this by adding -D Xcode to OTHER_SWIFT_FLAGS for the library via a Podfile post_install hook.

Huh! I swore this check worked, so maybe it's a SwiftPM-only directive. It's definitely broken for everyone now, though, since we switched over to XcodeGen recently. Guess we didn't notice because we don't really use the XCTAttachment viewer 😅

Thanks for fixing this so quickly @stephencelis 👍


Sandbox for windows 11

hi i was wondering about gettings sand box for windows 11 on windows 10 I have been looking into this I see a lot of people wanting to run sandbox on windows 10 but with windows 11 its a good way of developing apps for both windows 11 and windows 10
### Tasks
- [ ] adding support to run windows 11 on windows 10
- [ ] including netframework and net 5.0 or latest version

I think that would require a lot of effort.
Support for older versions would be easier.

not really it is if know source code about them

Unfortunately, we can only support the Host OS build that is currently on your device. This allows us to keep Sandbox 'lightweight'.

Unfortunately, we can only support the Host OS build that is currently on your device. This allows us to keep Sandbox 'lightweight'.

Unfortunately, we can only support the Host OS build that is currently on your device. This allows us to keep Sandbox 'lightweight'.


SA1135 misfires on using VSCOOKIE = System.UInt32

Given this:
    using VSCOOKIE = System.UInt32;

SA1135 reports:
Severity	Code	Description	Project	File	Line	Source	Suppression State	Tool
Error	SA1135	Using directive for type 'uint' should be qualified		D:\VS\src\env\shell\Connected\Impl\OnlineLicensing\OnlineLicensingManager.cs	41	IntelliSense	Active	StyleCop.Analyzers

However, the code fix that it offers throws an unhandled exception, causing Roslyn to terminate it. And C# won't accept this:
    using VSCOOKIE = uint;

So this is a false positive to begin with.

Can't seem to reproduce this with the latest release. Can you confirm that this has been fixed, @AArnott? Seems like #3157 took care of it.

I did however note that using such a type alias in code triggers SA1121. Filed separate issue #3424, to see if that really is wanted behavior.

Agreed. It doesn't repro with 1.2.0-beta.354.


Added progress bars for builds

Motivation
https://issues.jboss.org/browse/AEROGEAR-7946
Verification steps

deploy local OpenShift with mobile-core
provision mobile CI/CD service
create mobile client
open mobile client's details and navigate to builds tab
create new build configuration (you can use https://github.com/aerogear/cordova-showcase-template.git)
fetch and checkout this PR
make serve
in OpenShift console start new build
open localhost:4000 in your browser
open the mobile app and navigate to builds tab
expand build config
you should see progress bars showing stages of the build
refresh page to watch build progress

👀

@psturc thanks for review. Should be fixed now.

Pull Request Test Coverage Report for Build 543

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 68.497%

Totals

Change from base Build 527:
0.0%

Covered Lines:
474

Relevant Lines:
692

💛  - Coveralls

@jhellar I verified the fix and no longer seeing the error.
Just a tiny thing: if no stages have started in the build, please add the info message (as displayed in OpenShift console):

@psturc should be fixed now.

@jhellar let's rebase and merge this guy


odo create: force s2i components and cleanup

/kind user-story
User Story
As an odo v2 user, I want to be able to create old s2i builder image (LocalConfig) components so I can work as with odo v1.
Acceptance Criteria

[ ] It should be possible to force odo create command to create LocalConfig component even if it has the component type with the same name as devfile component. For example, using a new flag (odo create java --s2i)
[ ] If there is a devfile component with a given name but no s2i component odo create --s2i should fail.
[ ] flags that are valid only for s2i components should have a note in  help message ( odo create --help)
[ ] if the user provides a flag that is valid only  s2i components without --s2i the command should error out
[ ] remove --cpu, --max-cpu,--max-memory,--memory,--max-memory,--min-memory flags to simplify odo create command. They were rarely used and the same can be achieved using odo config command after the component is created.

Example:
component creation
▶  odo preference set experimental true

▶ odo catalog list components
Odo OpenShift Components:
NAME              PROJECT       TAGS                        SUPPORTED
java              openshift     11,8,latest                 YES
nodejs            openshift     10-SCL,8,8-RHOAR,latest     YES

Odo Devfile Components:
NAME                 DESCRIPTION                            REGISTRY                   SUPPORTED
maven                Upstream Maven and OpenJDK 11          DefaultDevfileRegistry     YES
nodejs               Stack with NodeJS 10                   DefaultDevfileRegistry     YES

▶ odo create nodejs
# this currently creates nodejs devfile component, which is OK
# but there is no way to create nodejs OpenShift component

▶ odo create nodejs --s2i
# this new proposed flag would create nodejs OpenShift component

example of help output
Flags:
      --app string                                       Application, defaults to active application
  -b, --binary string                                    (valid only with --s2i) Create a binary file component component using given artifact. Works only with Java components. File needs to be in the context directory.
      --context string                                   Use given context directory as a source for component settings
      --devfile string                                   Path to the user specify devfile
      --downloadSource string[="devfile-project-name"]   Download sample project from devfile.
      --env strings                                      (valid only with --s2i) Environmental variables for the component. For example --env VariableName=Value
  -g, --git string                                       (valid only with --s2i) Create a git component using this repository.
  -h, --help                                             Help for create
      --now                                              Push changes to the cluster immediately
  -p, --port strings                                     (valid only with --s2i) Ports to be used when the component is created (ex. 8080,8100/tcp,9100/udp)
      --project string                                   Project, defaults to active project
  -r, --ref string                                       (valid only with --s2i) Use a specific ref e.g. commit, branch or tag of the git repository
      --registry string                                  Create devfile component from specific registry

/kind user-story
/priority medium

For this issue, I'll have to understand to flags in the cobra cli framework are implemented. After this the business logic should not be that hard to implement.

flags that are valid only for s2i components should have a note in help message ( odo create --help)
^This one looks like a quick win.

remove --cpu, --max-cpu,--max-memory,--memory,--max-memory,--min-memory flags to simplify odo create command. They were rarely used and the same can be achieved using odo config command after the component is created.
^For this point, a separate PR can be created I think.

And ofcourse, the tests and docs will have to be added, modified and deleted (if applicable).


Add distance metrics for query results

Currently we do not return score/distance metrics for query results.
Can we add distance metrics for each SourceNode in query response?

yes! good idea (will probably be an optional field since only embedding-based indices will return similarity scores)

Closed with #246


tsc module system

In Angular docs 5 Min Quickstart and Appendix: TypeScript configuration they teach using module: "system" for tsc:
{
  "compilerOptions": {
    "target": "ES5",
    "module": "system",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "noImplicitAny": false
  },
  "exclude": [
    "node_modules"
  ]
}

This issue is just to evaluate if it would be a better option to transpile ng2-bootstrap with system as well (don't know the implications given that ng2-bootstrap uses webpackBootstrap and I don't really know how it works). I suppose that the reason to use system is the detection order, from Systemjs:

The module format detection happens in the following order:

System.register / System.registerDynamic If the source code starts with a number of comments, followed by System.register or System.registerDynamic as the first line of code.
ES modules The source is only detected as an ES module if it contains explicit module syntax - valid import or export statements.
AMD modules The presence of a valid AMD define statement in the code.
CommonJS modules The presence of require(...) or exports / module.exports assigments
Global This is the fallback module format after all the above fail.

The problem would be to a new angular2 developer strictly following the 5 Min Quickstart: in the systemjs config they teach using format: "register" option.

Hmm.. I've seen in the published npm version it's being transpiled with module "system", so it would not be a problem for a user of ng2-bootstrap, just for a developer of ng2-boostrap.

I used Angular2 Webpack Starter to start my app and i used ng2-bootstrap . When  i run the script npm run server:prod, i  got Uncaught TypeError. How could i solve this problem ?

Hi, I'm newbi in web programming and i has problems to integrate your project in mine.
My project based on angular2-seed and it uses commonjs for dev runner, angular2-hot-loader, prod bundle. This seed is the most popular and it is would be nice if ng2-bootstrap npm package was bundled with commonjs. After all npm package and doesn't uses commonjs it is look uncommon.

npm package will be same as angular2 npm package,
right now it is commonjs, and ng2-bootstrap will be commonjs by default
other thing that it will have systemjs bundles


[WIP] taking charge of 408 timeout error

Now we can get a correct message from a timeout error.
Pull request dedicated to this issue : https://github.com/ManageIQ/manageiq-providers-ibm_power_hmc/issues/44
Before :
hc.logon
Traceback (most recent call last):
       15: from bin/console:14:in `<main>'
       14: from (irb):2
       13: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:43:in `logon'
       12: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:654:in `request'
       11: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:671:in `rescue in request'
       10: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:671:in `new'
        9: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:627:in `initialize'
        8: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:627:in `new'
        7: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/parser.rb:11:in `initialize'
        6: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/parser.rb:11:in `new'
        5: from /home/padmin/.rvm/gems/ruby-2.7.2/gems/rexml-3.2.5/lib/rexml/document.rb:101:in `initialize'
        4: from /home/padmin/.rvm/gems/ruby-2.7.2/gems/rexml-3.2.5/lib/rexml/document.rb:448:in `build'
        3: from /home/padmin/.rvm/gems/ruby-2.7.2/gems/rexml-3.2.5/lib/rexml/parsers/treeparser.rb:23:in `parse'
        2: from /home/padmin/.rvm/gems/ruby-2.7.2/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb:183:in `pull'
        1: from /home/padmin/.rvm/gems/ruby-2.7.2/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb:385:in `pull_event'
REXML::ParseException (Declarations can only occur in the doctype declaration.)
Line: 1
Position: 91
Last 80 unconsumed characters:
<!doctype html public -//IETF//DTD HTML 2.0//EN> <html><head><title>Console Inter
2.7.2 :003 >

And now :
hc.logon
Traceback (most recent call last):
        5: from bin/console:14:in `<main>'
        4: from (irb):2
        3: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:43:in `logon'
        2: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:654:in `request'
        1: from /home/padmin/Calliste/ibm_power_hmc_sdk_ruby/lib/ibm_power_hmc/connection.rb:671:in `rescue in request'
IbmPowerHmc::Connection::HttpError (msg="408 Request Timeout" status="408" reason="" uri=)

@jaywcarman  Maybe I have to update the gem version ?

I updated the version number.
If it's okay for you @jaywcarman, I can create a new tag and push this version to rubyGems


Mingw windows support

Hey
I'm working on windows, i have a go project where i want to call the rust sdk bindings of this repo, however cgo can't work with the msvc compiler, from your notes i see that currently is only available with msvc. Will you add support for mingw soon or how difficult would it be to try to compile it using the mingw toolchain?

Did you try server-sdk-go? Is it missing some functionality that you want to use?

Hey
Yeah, it's missing all the encoding stuff with libwebrtc libraries in the go sdk


Messages exist in queue but are not received when listening

I'm able to add messages to the queue but when I try to receive them nothing is received.
I've used the Azure Service Bus in linqpad with C# sample code so I know the queue works, but I'm probably missing something on the F# implementation with CloudAgent.
I tried serializing the object before adding it to the queue so that the content would just be a string that I could deserialize on receipt, but still had the same issue.
If I set a breakpoint on the line inbox.Receive() it gets hit, but a breakpoint on the following line never does.
Thanks for the help.
I'm not sure if it'd be more helpful to put the code in this issue or point you to my project so here are both.
https://github.com/talbottmike/TalBot/tree/AzureServiceBus
The type I'm posting is in TalBot.Types...
type IncomingMessage =
    {
        token : string;
        teamId : string;
        teamDomain : string;
        channelId : string;
        channelName : string;
        timestamp : decimal;
        userId : string;
        userName : string;
        text : string;
        triggerWord : string;
    }

I'm accessing the queue in TalBot.BotHelper around the beginning of the module.
let createResilientAgent agentId =
    MailboxProcessor.Start(fun inbox ->
        async {
            while true do
                let! message, replyChannel = inbox.Receive()
                printfn "%s is the channelName." message.channelName
                printfn "%s" (agentId.ToString())

                match message with
                | { channelName = "#bot-log" } ->
                    printfn "success"
                    replyChannel Completed // all good, message was processed
                | { channelName = "snapple" } ->
                    printfn "snapple failed"
                    replyChannel Failed // error occurred, try again
                | _ ->
                    printfn "abandoned"
                    replyChannel Abandoned // give up with this message.
        })

let readFromServiceQueue () =
    let serviceBusReadConnection () = ServiceBusConnection serviceBusReadConnectionString
    let cloudReadConnection () = WorkerCloudConnection(serviceBusReadConnection (), Queue "queue")
    printfn "trying to read from the queue"
    let disposable = ConnectionFactory.StartListening(cloudReadConnection (), createResilientAgent >> Messaging.CloudAgentKind.ResilientCloudAgent)
    disposable.Dispose()

That should serialize fine. I'll try to repro this evening, but in the meantime can you check the payload of the message on the queue (you can use the Service Bus Explorer or maybe even just VS) to see how it has been serialized?
Also - what version of JSON .Net are you using?

Service Bus Explorer is a helpful tool. Thanks for pointing it out.
Here is the message text from a queue item.
{"token":"mytoken","teamId":"myteamid","teamDomain":"myteamdomain","channelId":"mychannelid","channelName":"bot-log","timestamp":1433205126.000015,"userId":"U0305UA8G","userName":"mtalbott","text":"bot test5","triggerWord":"bot"}

In my paket.lock file I'm referencing more than one version of Json.
FSharp.CloudAgent (0.3)
-Newtonsoft.Json (>= 6.0.6)
Microsoft.AspNet.WebApi.Client (5.2.3)
-Microsoft.Net.Http (>= 2.2.22) - framework: portable-wp80+win+net45+wp81+wpa81
-Newtonsoft.Json (>= 6.0.4) - framework: portable-wp80+win+net45+wp81+wpa81, >= net45
Newtonsoft.Json (6.0.8)
I need to get back to the code that pays the bills, but I can try setting these all to 6.0.6 this evening and see if that helps.

Setting the version of JSON .Net to 6.0.6 didn't help. I'm trying out VS2015 and noticed the diagnostic tools show exceptions that have been thrown and caught. There are repeated exceptions that state - Exception	A System.InvalidOperationException was thrown: "The MailboxProcessor has already been started."	System.InvalidOperationException
The exceptions occur when this line runs
let disposable = ConnectionFactory.StartListening(cloudReadConnection (), createResilientAgent >> Messaging.CloudAgentKind.ResilientCloudAgent)
Not sure if that's helpful or unrelated.

Any other thoughts or suggestions on this?

Looking at this today.

OK. I think I know why you aren't receiving any messages - I think it's how you're using the agent. In the readFromServiceQueue function, you're starting up and agent pool listening to a service bus queue, but then immediately afterwards disposing of the pool.
I've not got a complete understanding of how you're intended to use it but I would recommend that you slightly change how your application uses CloudAgent. CloudAgent doesn't need you to manually start listening and stop listening on demand, which is what you're effectively doing now - the bot locks into an infinite while loop, constantly creating a listener and then shutting it down immediately after.
Instead, all you need to do is on startup of your service, once, create the worker pool (i.e. the call to StartListening). CloudAgent will automatically poll in the background for new messages as they arrive and dispatch them to an agent on demand.
Have a look at this sample https://gist.github.com/isaacabraham/48c29056bfe1c03ee303 which shows a basic client / server running. In the context of your application, when you start the windows service up, that's where you want to start listening once. There's no need to lock into a loop polling - Cloud Agent does all of that for you.

Yep. That's what I was doing wrong. Thanks for your help. I appreciate it.


Some things that we might want to document are private

I was writing some documentation, and I noticed that some of the features we wanted to document are private. This is apparently a problem because cargo doc gives warnings.
What is the best solution?

We solved this by making them public!


Error when applying SoftTreeSupLoss to custom model/dataset

Hey,
Thanks for sharing your code.
I have a pretrained pytorch(Fastai) model on my custom dataset and when i am trying to run the below code on my dataset. I get an assertion error.
The dataset I have is loaded using a dataloader having 3 classes
from nbdt.loss import SoftTreeSupLoss
criterion = nn.CrossEntropyLoss()
criterion = SoftTreeSupLoss(dataset='CIFAR10', criterion=criterion) -- originial
criterion = SoftTreeSupLoss(dataset=data, criterion=criterion) -- custom
Also, do I have to train the whole model again or can just pass this new loss function to that model and get the inference?
Any help would be really appreciated :)

Code looks good. What's the error? You can just run the model as an NBDT. However, fine-tuning with the SoftTreeSupLoss will improve accuracy drastically.

Hey
thanks for your reply
everytime i try to run the code for my custom dataset
i get an "assertion error"
below is the code:
from nbdt.loss import SoftTreeSupLoss
criterion = nn.CrossEntropyLoss()
criterion = SoftTreeSupLoss(dataset=data['train'], criterion=criterion)
where data['train'] is a dataloader for my dataset
Sorry for the confusion but please let me know if i am missing anything

I see, just modify the nbdt.utils.DATASETS constant to include your custom dataset. Also, dataset section of the README will be helpful: https://github.com/alvinwan/neural-backed-decision-trees#dataset

Hi,
thanks a lot for your reply and time.
I modified the utils.py and modified the datasets too for my custom dataset.
However, can you guide me to execute it?
The reason being, after modifying both the python files I get the same error.
After modifying both files, is their a different way to run these files?

Try steps 3 and 4 (I just added these) in the README "datasets" section. It now elucidates which constants in nbdt.utils to modify.


Version Packages

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
<EMAIL_ADDRESS>Minor Changes

Fix global is not defined error when using Vite + React by @anagstef

<EMAIL_ADDRESS>Patch Changes

Updated dependencies [1e71b60a2]:

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>Patch Changes

Updated dependencies [1e71b60a2]:

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>Patch Changes

Updated dependencies [1e71b60a2]:

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>Patch Changes

Updated dependencies [1e71b60a2]:

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>Patch Changes

Updated dependencies [1e71b60a2]:

<EMAIL_ADDRESS>

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


Yt import - Fixes Issue #95

This issue fixes #95.
This Feature adds a new option inside the Navbar Menu.

A dialog box will appear when the option is selected from the menus.

If the Youtube Playlist URL is valid and contains smaller than 100 playlist items, it will be added to the queue.

Please give me feedback on any possible bugs/improvements! I'll try my best to fix it.

nice
thank you for the help/contribution
I have no to merge/review sry :smile:

hey @zjjiang2 I can't get this to work locally, ping me on discord when you have a moment and we can figure out what's going on

doesn't work at the moment. maybe one day


Programs improvements

Let ekr_loop exit on errors and stop the ekr_* execution if not enough arguments have been supplied.

Can you use if () instead of if() and update the patch?

@tuexen Done!

Taken. Thanks.


Update registry address and make build output less verbous

Sorry, for this combined PR, I forgot about the changes I made and as it's already pushed...
The main thing is that there is going to be a change in the registry URL and the old registry is going away.

Thanks


predict_generator throwing error continuously

Hi could someone possibly provide some hints on what exactly is going wrong with predict_generator method since fit.generator worked just fine.
Here's the code snippet and the error that I get:
> predictions = model.predict_generator(test_generator, nbr_test_samples)
(Pdb) n
Exception: Exceptio...one...',)
predictions = model.predict_generator(test_generator, nbr_test_samples)
(Pdb) Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/user/anaconda/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/user/anaconda/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/user/anaconda2/lib/python2.7/site-packages/keras/engine/training.py", line 433, in data_generator_task
    generator_output = next(generator)
  File "/home/user/anaconda2/lib/python2.7/site-packages/keras/preprocessing/image.py", line 596, in next
    index_array, current_index, current_batch_size = next(self.index_generator)
  File "/home/user/anaconda2/lib/python2.7/site-packages/keras/preprocessing/image.py", line 444, in _flow_index
    current_index = (self.batch_index * batch_size) % N
ZeroDivisionError: integer division or modulo by zero

Furthermore the directory that I'm providing as input to the ImageDataGenrator has 1000 images inside but when I run the code I get a message saying Found 0 images in 0 classes. I understand the 0 classes part since I didn't specify any classes as argument to ImageDataGenerator since this is the test dataset. But, I don't understand the Found 0 images.
To me the message I would expect to see isFound 1000 images in 0 classes. Am I correct? or Am I missing something?
How can I overcome this error?
Thanks!

Where is your reproducible code snippet? (should include some code to create a directory and populate it with fake images, e.g. like we do in the tests for this module).

Apologize for that. Here I'll provide the reproducible code:
from keras.models import load_model
import os
from keras.preprocessing.image import ImageDataGenerator
import numpy as np

img_width = 299
img_height = 299
batch_size = 32
nbr_test_samples = 100
root_path = 'path/to/root/directory'
weights_path = os.path.join(root_path, 'weights.h5')
test_data_dir = os.path.join(root_path, 'test_directory')

test_datagen = ImageDataGenerator(rescale=1./255)

test_generator = test_datagen.flow_from_directory(
        test_data_dir,
        target_size=(img_width, img_height),
        batch_size=batch_size,
        shuffle=False,
        classes=None,
        class_mode=None)

test_image_list = test_generator.filenames
model = load_model(weights_path)
predictions = model.predict_generator(test_generator, nbr_test_samples)

np.savetxt(os.path.join(root_path, 'predictions.txt'),  predictions)

This is not reproducible since it assumes a specific directory with specific content, as well as a weights file.

ok but that's exactly what I have. I have a pretrained model on which I only train the top layer to obtain the weights.h5 file. Here I also use augmentation and model.fit_generator and it works fine without any problems. After the training finishes I try to do a predict using model.predict_generator as in the above text and then I always get errors. I've noticed that if I go until test_generator = test_datagen.flow_from_directory(...., then I get the message from ImageDataGenerator Found 0 images with 0 classes. Since I haven't specified any classes then that's expected but in test_data_dir argument given to ImageDataGenerator it points to a directory with 100 images but ImageDataGenerator still says Found 0 images. I don't understand why is that?

I don't know what you issue is and I cannot investigate it unless you provide a reproducible code snippet. Reproducible means I should be able to run it and get the results as you do.

@fchollet thanks for you patience. I just realized that I could use the .predict method but I had to create a subfolder inside my original folder of test images. For instance my original folder structure was:
test_folder
    |______image_1
    |______image_2
    |______image_3
    |______image_N

With the above folder structure whenever I was using the imageDataGenerator I was getting the message Found 0 images in 0 classes.
With the new folder structure
test/test_folder
           |______image_1
           |______image_2
           |_____image_3
           |______image_N

Now whenever I use the ImageDataGenerator I'm getting Found x images in 1 classes
I believe that's the correct behaviour if I'm not mistaken?
Now I'm testing the .predict_generator method for consistency and if I get the same results as with the .predict method then I'll close the issue.

I'm closing this issue since both .predict and .predict_generator require the above folder structure in order to work. Let me know if there is anything wrong in my assumptions above. Thanks.

@kirk86 I've run into the same issue. Were you able to confirm that images with no classes (such as for test) need to be in a subfolder? I find it weird that it would say Found x images in 1 classes, since the class_mode is None.

@anasb Yes it's true I've run my code that way and it works using a subfolder. I guess this might have to do with the way the ImageGenerator was developed. I'm not familiar with the intrinsic representation of it so that's a wild guess.

Isn't is because the generator you are passing to predict_generator is using augmentation ?

flow_from_directory(directory)

Arguments:
directory: path to the target directory. It should contain one subdirectory per class. Any PNG, JPG, BMP or PPM images inside each of the subdirectories directory tree will be included in the generator. See this script for more details.

I was facing a similiar issue. When checking my dataset I was able to open all files, however in some cases the dpi information was missing in the jpeg-header, so PIL tries to read it from exif.
It then tries to calculate it - this is where the error may rises.
So one should check if the all data can be read including the dpi information. Another way of finding corrputed files is to change load_img function in keras.preprocessing to print out the path variable. Thus, one can know the file name when the program crashes


[BUG]: API Responses Diverging from Frontend in AnythingLLM

How are you running AnythingLLM?
Docker (local)
What happened?
Description
There appears to be a discrepancy in the responses generated by AnythingLLM when interacting through its frontend (chat widget) versus using its API. Specifically, the API seems to disregard pinned documents and possibly the Retrieval-Augmented Generation (RAG) workflow, leading to inconsistencies in behavior and response content.
Observed Behavior
Frontend (Chat Widget):

Responses include data from pinned documents as expected.
The RAG workflow is followed, producing relevant and coherent answers that align with the intended setup.

API:

Responses differ significantly from those generated by the frontend.
Pinned documents and embedded information do not appear to be factored into the responses.
It seems as though the RAG process is either bypassed or partially implemented in API responses.

Potential Issue Area
The discrepancy suggests that:

Pinned Documents: These are either not being included in the embedding checks or not being considered in the RAG workflow when queried via the API.
RAG Workflow: The API might not be executing the retrieval and generation steps correctly.
Configuration Sync: There might be a misalignment between the configuration settings of the frontend and the API, leading to differing outputs.

Expected Behavior

Consistent behavior and responses across both the AnythingLLM frontend and its API.
Proper inclusion of pinned documents and embedded information in API responses.
Adherence to the Retrieval-Augmented Generation (RAG) workflow for both frontend and API interactions.

Are there known steps to reproduce?
Steps to Reproduce

Configure an AnythingLLM workspace with pinned documents and RAG capabilities.
Query the same question via:

The AnythingLLM frontend (chat widget).
The API endpoint.

Compare the responses for:

Inclusion of data from pinned documents.
Adherence to RAG workflow.
Structural consistency and coherence.

Supporting Information
This issue resembles a previously reported and closed bug (reference: "Chat Widget vs. Cloud Instance" issue): GitHub Issue #2526

As I outlined in that thread - there is no difference from AnythingLLM's perspective to what we send to the LLM and what is being shown is the non-deterministic nature of LLM inferencing. I have gone through the process of tailing the exact input and output for the UI, API, and Embed inputs/outputs to show this is the case when no documents are present, documents are embedded, and a document is pinned.
I am using OpenAI here, so it knows what Anythingllm is even without context, but what is actually important is the structure of the system prompt, since that is how document context is injected to every provider.

Running the following:
Frontend GUI
No documents/RAG
[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed."
  },
  {
    "role": "user",
    "content": "Hello"
  }
]

"Hi there! How can I assist you today?"

With documents/RAG

Here you can see snippets of data from the main document

[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.\nContext:\n[CONTEXT 0]:\n<document_metadata>\nsourceDocument: readme.pdf\npublished: 11/25/2024, 8:44:02 PM\n</document_metadata>\n\n[Learn about documents](./server/storage/documents/DOCUMENTS.md)\n[Learn about vector caching](./server/storage/vector-cache/VECTOR_CACHE.md)\n## Contributing\n- create issue\n- create PR with branch name format of `<issue number>-<short name>`\n- yee haw let's merge\n\nTelemetry for AnythingLLM\n## Telemetry\nAnythingLLM by Mintplex Labs Inc contains a telemetry feature that collects anonymous usage \ninformation.\n### Why?\nWe use this information to help us understand how AnythingLLM is used, to help us prioritize \nwork on new features and bug fixes, and to help us improve AnythingLLM's performance and2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md4/5\nstability.\n### Opting out\nSet `DISABLE_TELEMETRY` in your server or docker .env settings to \"true\" to opt out of \ntelemetry.\n```\nDISABLE_TELEMETRY=\"true\"\n```\n### What do you explicitly track?\n[END CONTEXT 0]\n\n[CONTEXT 1]:\n<document_metadata>\nsourceDocument: readme.pdf\npublished: 11/25/2024, 8:44:02 PM\n</document_metadata>\n\nalt=\"License\">\n   |\n  \n    Docs\n   |\n   \n    Hosted Instance\n  \n
\n
\n AnythingLLM for desktop is in public beta!  Download Now\n
\nA full-stack application that enables you to turn any document, resource, or piece of \ncontent into context that any LLM can use as references during chatting. This application \nallows you to pick and choose which LLM or Vector Database you want to use as well as \nsupporting multi-user management and permissions.\n![Chatting](https://github.com/Mintplex-Labs/anything-llm/assets/16845892/cfc5f47c-bd91-\n4067-986c-f3f49621a859)\n2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md2/5\n[END CONTEXT 1]\n\n"
  },
  {
    "role": "user",
    "content": "What is AnythingLLM"
  }
]

"AnythingLLM is a full-stack application that allows you to transform any document, resource, or piece of content into contextual information that any Language Model (LLM) can utilize as references during interactions. The application enables users to select which LLM or Vector Database they prefer to use and supports multi-user management and permissions. Additionally, AnythingLLM for desktop is currently available in public beta."

With pinned document
[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.\nContext:\n[CONTEXT 0]:\n2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md1/5\n\n
\n  \n
\n
\n    AnythingLLM: A private ChatGPT to chat with anything!.
\n    An efficient, customizable, and open-source enterprise-ready document chatbot solution.\n
\n
\n

    I am truncating this in this comment since this is a massive amount of text, but the entire document's context is here.

    [END CONTEXT 0]\n\n"
  },
  {
    "role": "user",
    "content": "What is AnythingLLM"
  }
]

"AnythingLLM is a full-stack application that enables users to create a private ChatGPT to interact with any document or resource. It is customizable, open-source, and designed for enterprise use. The application allows for the integration of various LLMs (Large Language Models) and Vector Databases, and supports multi-user management and permissions. It provides features like multiple document type support, different chat modes, in-chat citations, and cost-effective management of large documents. AnythingLLM can be deployed locally or hosted remotely to intelligently chat with documents provided by users."

Now via API v1/api/workspace/:slug/chat
No documents/RAG
[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed."
  },
  {
    "role": "user",
    "content": "What is AnythingLLM?"
  }
]

"AnythingLLM is an open-source project that provides a platform for deploying and managing language models. It allows users to integrate various language models into applications, offering features like customization, scaling, and deployment. The project aims to make it easier for developers to work with language models by providing tools and infrastructure to support their use cases."

With documents/RAG
[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.\nContext:\n[CONTEXT 0]:\n<document_metadata>\nsourceDocument: readme.pdf\npublished: 11/25/2024, 8:44:02 PM\n</document_metadata>\n\n[Learn about documents](./server/storage/documents/DOCUMENTS.md)\n[Learn about vector caching](./server/storage/vector-cache/VECTOR_CACHE.md)\n## Contributing\n- create issue\n- create PR with branch name format of `<issue number>-<short name>`\n- yee haw let's merge\n\nTelemetry for AnythingLLM\n## Telemetry\nAnythingLLM by Mintplex Labs Inc contains a telemetry feature that collects anonymous usage \ninformation.\n### Why?\nWe use this information to help us understand how AnythingLLM is used, to help us prioritize \nwork on new features and bug fixes, and to help us improve AnythingLLM's performance and2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md4/5\nstability.\n### Opting out\nSet `DISABLE_TELEMETRY` in your server or docker .env settings to \"true\" to opt out of \ntelemetry.\n```\nDISABLE_TELEMETRY=\"true\"\n```\n### What do you explicitly track?\n[END CONTEXT 0]\n\n[CONTEXT 1]:\n<document_metadata>\nsourceDocument: readme.pdf\npublished: 11/25/2024, 8:44:02 PM\n</document_metadata>\n\nalt=\"License\">\n   |\n  \n    Docs\n   |\n   \n    Hosted Instance\n  \n
\n
\n AnythingLLM for desktop is in public beta!  Download Now\n
\nA full-stack application that enables you to turn any document, resource, or piece of \ncontent into context that any LLM can use as references during chatting. This application \nallows you to pick and choose which LLM or Vector Database you want to use as well as \nsupporting multi-user management and permissions.\n![Chatting](https://github.com/Mintplex-Labs/anything-llm/assets/16845892/cfc5f47c-bd91-\n4067-986c-f3f49621a859)\n2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md2/5\n[END CONTEXT 1]\n\n"
  },
  {
    "role": "user",
    "content": "What is AnythingLLM?"
  }
]

"AnythingLLM is a full-stack application that enables users to turn any document, resource, or piece of content into context that any large language model (LLM) can use as references during chatting. It allows users to select which LLM or vector database to use, and it supports multi-user management and permissions."

With pinned document
[
  {
    "role": "system",
        "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.\nContext:\n[CONTEXT 0]:\n2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md1/5\n\n
\n  \n
\n
\n    AnythingLLM: A private ChatGPT to chat with anything!.
\n    An efficient, customizable, and open-source enterprise-ready document chatbot solution.\n
\n
\n

    I am truncating this in this comment since this is a massive amount of text, but the entire document's context is here.

    [END CONTEXT 0]\n\n"
  },
  {
    "role": "user",
    "content": "What is AnythingLLM?"
  }
]

"AnythingLLM is a full-stack application that allows users to create a private ChatGPT capable of interacting intelligently with any documents provided. It supports various commercial and open-source LLMs and vector databases, enabling users to manage documents efficiently and chat with them using different modes. It features multi-user support, customizable chat widgets, and cost-effective document management, making it suitable for enterprise-ready document chatbot solutions."

Now via the embed widget tied to the same workspace
With documents/RAG
[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed."
  },
  {
    "role": "user",
    "content": "What is AnythingLLM?"
  }
]

"AnythingLLM is a platform or tool designed to integrate and manage large language models (LLMs) for various applications. It typically provides a framework for deploying, fine-tuning, and using LLMs to perform tasks like text generation, summarization, and more, in a customizable manner. It aims to make it easier for developers and businesses to harness the power of these advanced AI models for their specific needs."

With documents/RAG
[
  {
    "role": "system",
    "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.\nContext:\n[CONTEXT 0]:\n<document_metadata>\nsourceDocument: readme.pdf\npublished: 11/25/2024, 8:44:02 PM\n</document_metadata>\n\n[Learn about documents](./server/storage/documents/DOCUMENTS.md)\n[Learn about vector caching](./server/storage/vector-cache/VECTOR_CACHE.md)\n## Contributing\n- create issue\n- create PR with branch name format of `<issue number>-<short name>`\n- yee haw let's merge\n\nTelemetry for AnythingLLM\n## Telemetry\nAnythingLLM by Mintplex Labs Inc contains a telemetry feature that collects anonymous usage \ninformation.\n### Why?\nWe use this information to help us understand how AnythingLLM is used, to help us prioritize \nwork on new features and bug fixes, and to help us improve AnythingLLM's performance and2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md4/5\nstability.\n### Opting out\nSet `DISABLE_TELEMETRY` in your server or docker .env settings to \"true\" to opt out of \ntelemetry.\n```\nDISABLE_TELEMETRY=\"true\"\n```\n### What do you explicitly track?\n[END CONTEXT 0]\n\n[CONTEXT 1]:\n<document_metadata>\nsourceDocument: readme.pdf\npublished: 11/25/2024, 8:44:02 PM\n</document_metadata>\n\nalt=\"License\">\n   |\n  \n    Docs\n   |\n   \n    Hosted Instance\n  \n
\n
\n AnythingLLM for desktop is in public beta!  Download Now\n
\nA full-stack application that enables you to turn any document, resource, or piece of \ncontent into context that any LLM can use as references during chatting. This application \nallows you to pick and choose which LLM or Vector Database you want to use as well as \nsupporting multi-user management and permissions.\n![Chatting](https://github.com/Mintplex-Labs/anything-llm/assets/16845892/cfc5f47c-bd91-\n4067-986c-f3f49621a859)\n2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md2/5\n[END CONTEXT 1]\n\n"
  },
  {
    "role": "user",
    "content": "What is AnythingLLM"
  }
]

"AnythingLLM is a full-stack application developed by Mintplex Labs Inc that enables users to transform any document, resource, or piece of content into context that any language model (LLM) can use as a reference during chatting. It allows users to select which LLM or vector database they want to use and supports multi-user management and permissions. The desktop version is currently in public beta."

With pinned document
[
  {
    "role": "system",
       "content": "Given the following conversation, relevant context, and a follow up question, reply with an answer to the current question the user is asking. Return only your response to the question given the above information following the users instructions as needed.\nContext:\n[CONTEXT 0]:\n2/22/24, 12:50 PMraw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md\nhttps://raw.githubusercontent.com/Mintplex-Labs/anything-llm/master/README.md1/5\n\n
\n  \n
\n
\n    AnythingLLM: A private ChatGPT to chat with anything!.
\n    An efficient, customizable, and open-source enterprise-ready document chatbot solution.\n
\n
\n

    I am truncating this in this comment since this is a massive amount of text, but the entire document's context is here.

    [END CONTEXT 0]\n\n"
  },
  {
    "role": "user",
    "content": "What is AnythingLLM"
  }
]

"AnythingLLM is a full-stack, open-source application designed to create a private ChatGPT that can interact intelligently with any documents you provide. It allows you to use both commercial and open-source language models (LLMs) and vector database solutions, offering customization and efficiency for enterprise use. The application supports multiple document types, offers multi-user management with permissions, and can be deployed both locally and on the cloud. It allows users to choose their preferred LLM or vector database, and includes features like document containerization into workspaces, in-chat citations, and a cost-effective approach to managing large documents. Additionally, it provides a developer API for custom integrations."

As you can see, the input passed to the LLM is the exact same each time. The only reason it would vary is because we are managing the context - which is shown via logs - for when you try pinning more tokens to the workspace than there are available to use for your selected model or context window.
Otherwise, we will always append the same context every time no matter what why you chat with a model. All things being equal it can come down to the model just responding slightly even under the same exact context - which is an expected behavior since LLMs are not deterministic and with a random seed per-request the output can vary slightly.