[Feature]: Implement QNetworkManager for HTTP requests

Contact Details
<EMAIL_ADDRESS>Feature Request
Currently, all network requests are made in succession of each other on 1 thread, which indirectly slows the speed of the GUI.
Moving HTTP requests to the builtin PySide6 QNetworkManager API should allow for easy asynchronous requests, along with an easy way to hook responses to functions.
This may also remove the requests dependency, if 100% converted.

UI Elements have been fully transitioned to QNetworkManager in v0.10a1.
The Waypoint Client still requires requests. Due to the way it requires two separate sessions, it may not be feasible to transition it to QNetworkManager.

Client have been fully transitioned to QNetworkManager in v0.10a2.
requests has now been removed from requirements.


Drag file in the shell/edtor to automatically have the path and commands to open it

From<EMAIL_ADDRESS>on 2013-10-15T13:30:50Z
I would like to drag a file inside the editor and automatically retrieve the command for open it with python.
e.g. if the file is an image dragging it into the editor or the shell, write  "im = Image.open("path_of_the_file\image.jpg")".  it would be a nice feature!
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1608

From ccordoba12 on 2015-01-01T15:56:36Z
Really hard to implement because it's impossible to predict what modules are installed and what not in a particular Python installation.
Status: WontFix


Use native multi-select

At the moment, VSCode does not offer multi select prompts. It is implemented as a normal select at the moment https://github.com/SamVerschueren/vscode-yo/blob/master/src/prompts/checkbox.ts.
If VSCode releases multi-select, which they probably will in the next build. Use those native multi-selects instead.

@bpasero can you give a quick update on this? Is it in the backlog? Searched for an issue regarding multi select but couldn't find it. Should I create a new issue?

It is on our backlog: https://github.com/Microsoft/vscode/issues/238

Oh, there is a typo in the title, that's why I couldn't find it :). Thanks for linking.

Checkbox lists do not work in the extension currently. Is it a known issue?

It should work though, what generator are you using?

It's my own generator.
npm install -g generator-psgallery
yo psgallery


Add JwtComponentTest.java

will re-open the PR in tractus-x. copied the changes locally and will close the PR for now.


Feature: Visible Quantification

This PR adds a new form of type, forall ('a : k) -> t, which is to be used both visibly and relevantly. This is not dependent types, yet.
The "regular" behaviour of forall 'a. t can be regained when you have a function of type forall ('a : k) -> t by using f ?.
We still don't have visible type lambdas, because that would frankly be quite a mess.

For extra reference: These types are still erased, and no changes were made to Core. :tada:


#3831 - SINF restriction bridge mapping and rename to SINR

Changed restriction code SINF to SINR
Updated the activity page accordion code to SINR
Created a DB migration to change the code of the SINF to SINR.
Renamed SINF to SINR in the existing RestrictionCode enum.
Changed an existing E2E to ensure SINR will be mapped to LGCY.

Replaced "TREE" with "SINR" in file "SFAS-TO-SIMS-2024MAR07-LEGACY-RESTRICTIONS.txt" to ensure SINR for this PR.

Updated SQL file "Bulk-insert-sfas-mapped-restrictions.sql" to map SINR to LGCY after all the SFAS restrictions are imported.

Rollback evidence screenshot

Screenshot of mapping SINR to LGCY on the activity page after restriction files are imported

Screenshot of the SINR code on the activity page accordion

Screenshot of the sfas_student table having two records after restrictions are imported

Screenshot of the student_restrictions table having only one record with restriction_id = 72 (LGCY)

Screenshot of the completed job for processing the SINR record on Bull Dashboard

Nice work @lewischen-aot. Please take a look at the comments.


Moving the attachments row below the composeBox

Fixes #5080
Now the attachments row shows up as soon as the input in the message is focused and it can be trigerred through the plus icon also but now we see it below the composeBox
https://user-images.githubusercontent.com/65273718/140883639-257e8348-f561-4dc8-a656-c3db494b5e44.mp4
.

Thanks, @chetas411!
It looks like the Git history in your branch currently contains a merge commit. We don't use merge commits in the Zulip project.
Take a look at our Git guide:
https://zulip.readthedocs.io/en/latest/git/index.html
and I highly recommend using gitk or another graphical Git viewer so you can see what's happening in your repo as you make changes.
Then please ask in #git help on chat.zulip.org with any questions you have as you put the branch into the right form.

Thanks, @chetas411!
It looks like the Git history in your branch currently contains a merge commit. We don't use merge commits in the Zulip project.
Take a look at our Git guide: https://zulip.readthedocs.io/en/latest/git/index.html and I highly recommend using gitk or another graphical Git viewer so you can see what's happening in your repo as you make changes.
Also, I see a commit that fixes an error that's introduced earlier in the branch:
fixing prettier fail

Please also fix up the earlier commit(s), to maintain that we don't have any commits that break tests.
Please ask in #git help on chat.zulip.org with any questions you have as you put the branch into the right form.

Okay I will go through the guide and will make a new PR with clean git history. Thanks for help


line() got an unexpected keyword argument 'name' in <IP_ADDRESS>

Hi , I install visdom from source , version is <IP_ADDRESS> , Python 3.7
But , I run demp.py
viz.line(
        X=np.arange(21, 30),
        Y=np.arange(1, 10),
        win=win,
        name='2',
        update='append'
    )

got TypeError: line() got an unexpected keyword argument 'name'

Sorry it a stupid question , can close, I think maybe my environment has some problem , I reinstall it and fixed.

No worries - feel free to open a new issue if you run into any other problems!


Chronicle operations as Synth schema

Chronicle Synth
Chronicle Synth is a tool for generating Synth schema for Chronicle. It takes a YAML file as input, which contains information about the domain's name, attributes, entities, activities, agents, and roles, and generates Synth collections that can be used to generate the Chronicle operations available to a domain's users.
If you just want to generate untyped Chronicle operations with synth the collections in chronicle-synth/synth/ are ready to go. Use the ./crates/chronicle-synth/collect and ./crates/chronicle-synth/generate scripts to generate a set of synthetic Chronicle operations.
The core functionality of the chronicle-synth --bin target (cargo run --bin chronicle-synth --) is to generate the additional Synth schema specific to each individual Chronicle domain.
Since it's up to the user to determine how they want to use Synth to generate data, the crates/chronicle-synth/generate script is there to show one way to get going with generating data from the collections.
Prerequisites
To use Chronicle Synth, you need to have Synth installed on your system. If you don't have it already installed, you can follow the instructions in the Synth documentation to install it.
Usage
Loading domain.yaml Chronicle Domain Definitions
To use Chronicle Synth, you must have a YAML file that describes your domain. The file should have the following structure:
name: DomainName
attributes:
  AttributeName:
    type: AttributeType
entities:
  EntityName:
    attributes:
      - AttributeName1
      - AttributeName2
activities:
  ActivityName:
    attributes:
      - AttributeName1
      - AttributeName2
agents:
  AgentName:
    attributes:
      - AttributeName1
roles:
  - RoleName1
  - RoleName2

Once you have your YAML file, you can generate Synth schema by running the following command:
chronicle-synth <path-to-yaml-file>

Or, since <path-to-yaml-file> defaults to domain.yaml, if your YAML file is named domain.yaml, you can simply run:
cargo run --bin chronicle-synth --

This will output the additional Synth schema required to generate synth data for your domain to the domain_schema directory, and collate the core Chronicle Synth collections along with the generated collections specific to your domain in collections.
Generating Your Domain's Synth Data
Chronicle Synth includes a generate script, which will print a synth-example of each Chronicle operation in your domain.
Example
./crates/chronicle-synth/generate | jq

Signed-off-by: Joseph Livesey<EMAIL_ADDRESS>CHRON-305
(subtask of: CHRON-283)

I was curious where generate was spending its time, especially as it holds the array wholly in memory, and it's pretty clear that it's almost completely within synth itself that the time gets spent.

With JSON generated from my time recording domain.yaml the chronicle import step gives me,
thread 'main' panicked at 'Failed to parse imported JSON-LD to ChronicleOperation: NotANode', /home/mtbc/src/chronicle/crates/chronicle/src/bootstrap/mod.rs:412:18

I might just be doing something wrong, I don't typically use the import subcommand. Does it work for you okay with that domain definition?

With JSON generated from my time recording domain.yaml the chronicle import step gives me,
thread 'main' panicked at 'Failed to parse imported JSON-LD to ChronicleOperation: NotANode', /home/mtbc/src/chronicle/crates/chronicle/src/bootstrap/mod.rs:412:18

I might just be doing something wrong, I don't typically use the import subcommand. Does it work for you okay with that domain definition?

Funnily enough, the import command is just leading me to a hung Chronicle now. But I did test with your timekeeping domain. I wonder if your import data is a JSON array, like those in the tests of the import handling in api/src/lib.rs.

With JSON generated from my time recording domain.yaml the chronicle import step gives me,
thread 'main' panicked at 'Failed to parse imported JSON-LD to ChronicleOperation: NotANode', /home/mtbc/src/chronicle/crates/chronicle/src/bootstrap/mod.rs:412:18

I might just be doing something wrong, I don't typically use the import subcommand. Does it work for you okay with that domain definition?

I'm in main with the following import.json in the Chronicle root directory:
[
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#ActivityExists"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "deploy"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#ActivityUses"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "syndicate"
      }
    ],
    "http://btp.works/chronicleoperations/ns#entityName": [
      {
        "@value": "e-commerce"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#AgentActsOnBehalfOf"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "unleash"
      }
    ],
    "http://btp.works/chronicleoperations/ns#delegateId": [
      {
        "@value": "Aubrey McCullough"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ],
    "http://btp.works/chronicleoperations/ns#responsibleId": [
      {
        "@value": "Reyna Bins"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#AgentExists"
    ],
    "http://btp.works/chronicleoperations/ns#agentName": [
      {
        "@value": "Roscoe Howell"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#CreateNamespace"
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#EndActivity"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "revolutionize"
      }
    ],
    "http://btp.works/chronicleoperations/ns#endActivityTime": [
      {
        "@value": "2023-05-04T01:36:47.635925354+00:00"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#EntityDerive"
    ],
    "http://btp.works/chronicleoperations/ns#entityName": [
      {
        "@value": "synergies"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ],
    "http://btp.works/chronicleoperations/ns#usedEntityName": [
      {
        "@value": "eyeballs"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#EntityExists"
    ],
    "http://btp.works/chronicleoperations/ns#entityName": [
      {
        "@value": "methodologies"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "grow"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#agentName": [
      {
        "@value": "Perry Mueller"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "drive"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Approve"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#entityName": [
      {
        "@value": "e-services"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "syndicate"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {
          "Name": "networks"
        }
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Person"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "engage"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {
          "Name": "applications"
        }
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Project"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "e-enable"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {
          "Reason": "content"
        }
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Reject"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "utilize"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {
          "Reason": "synergies"
        }
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Revision"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "whiteboard"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Submit"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "incubate"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Summary"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "monetize"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Timesheet"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "whiteboard"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {}
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "View"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#SetAttributes"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "grow"
      }
    ],
    "http://btp.works/chronicleoperations/ns#attributes": [
      {
        "@type": "@json",
        "@value": {
          "Task": "networks"
        }
      }
    ],
    "http://btp.works/chronicleoperations/ns#domaintypeId": [
      {
        "@value": "Work"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#StartActivity"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "seize"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ],
    "http://btp.works/chronicleoperations/ns#startActivityTime": [
      {
        "@value": "2023-05-04T01:36:47.932068994+00:00"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#WasAssociatedWith"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "whiteboard"
      }
    ],
    "http://btp.works/chronicleoperations/ns#agentName": [
      {
        "@value": "Justyn Pfannerstill"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ],
    "http://btp.works/chronicleoperations/ns#role": [
      "PROJECT_LEAD"
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#WasAssociatedWith"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "streamline"
      }
    ],
    "http://btp.works/chronicleoperations/ns#agentName": [
      {
        "@value": "Nayeli Conn"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#WasAttributedTo"
    ],
    "http://btp.works/chronicleoperations/ns#agentName": [
      {
        "@value": "Durward Walker"
      }
    ],
    "http://btp.works/chronicleoperations/ns#entityName": [
      {
        "@value": "networks"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#WasGeneratedBy"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "exploit"
      }
    ],
    "http://btp.works/chronicleoperations/ns#entityName": [
      {
        "@value": "infomediaries"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#WasInformedBy"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "maximize"
      }
    ],
    "http://btp.works/chronicleoperations/ns#informingActivityName": [
      {
        "@value": "embrace"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  }
]

I run
cargo run --bin chronicle --features inmem -- import testns 60976119-adc6-3826-a57b-3ccb0580e7bd import.json

I get:
Import complete
{
  "@context": "https://btp.works/chr/1.0/c.jsonld",
  "@graph": [
    {
      "@id": "chronicle:agent:Roscoe%20Howell",
      "@type": "prov:Agent",
      "externalId": "Roscoe Howell",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:delegation:Aubrey%20McCullough:Reyna%20Bins:role=:activity=unleash",
      "@type": "prov:Delegation",
      "actedOnBehalfOf": [
        "chronicle:agent:Reyna%20Bins"
      ],
      "agent": "chronicle:agent:Aubrey%20McCullough",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:hadActivity": {
        "@id": "chronicle:activity:unleash"
      }
    },
    {
      "@id": "chronicle:agent:Aubrey%20McCullough",
      "@type": "prov:Agent",
      "actedOnBehalfOf": [
        "chronicle:agent:Reyna%20Bins"
      ],
      "externalId": "Aubrey McCullough",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:qualifiedDelegation": {
        "@id": "chronicle:delegation:Aubrey%20McCullough:Reyna%20Bins:role=:activity=unleash"
      },
      "value": {}
    },
    {
      "@id": "chronicle:agent:Justyn%20Pfannerstill",
      "@type": "prov:Agent",
      "externalId": "Justyn Pfannerstill",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:revolutionize",
      "@type": "prov:Activity",
      "endTime": "2023-05-04T01:36:47.635925354+00:00",
      "externalId": "revolutionize",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:unleash",
      "@type": "prov:Activity",
      "externalId": "unleash",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:entity:e%2Dcommerce",
      "@type": "prov:Entity",
      "externalId": "e-commerce",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:entity:networks",
      "@type": "prov:Entity",
      "externalId": "networks",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:qualifiedAttribution": {
        "@id": "chronicle:attribution:Durward%20Walker:networks:role="
      },
      "value": {},
      "wasAttributedTo": [
        "chronicle:agent:Durward%20Walker"
      ]
    },
    {
      "@id": "chronicle:activity:seize",
      "@type": "prov:Activity",
      "externalId": "seize",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "startTime": "2023-05-04T01:36:47.932068994+00:00",
      "value": {}
    },
    {
      "@id": "chronicle:attribution:Durward%20Walker:networks:role=",
      "@type": "prov:Attribution",
      "agent": "chronicle:agent:Durward%20Walker",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:hadEntity": {
        "@id": "chronicle:entity:networks"
      }
    },
    {
      "@id": "chronicle:entity:eyeballs",
      "@type": "prov:Entity",
      "externalId": "eyeballs",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:utilize",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Revision"
      ],
      "externalId": "utilize",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {
        "Reason": "synergies"
      }
    },
    {
      "@id": "chronicle:agent:Reyna%20Bins",
      "@type": "prov:Agent",
      "externalId": "Reyna Bins",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:exploit",
      "@type": "prov:Activity",
      "externalId": "exploit",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:whiteboard",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:View"
      ],
      "externalId": "whiteboard",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:qualifiedAssociation": {
        "@id": "chronicle:association:Justyn%20Pfannerstill:whiteboard:role=PROJECT%5FLEAD"
      },
      "value": {},
      "wasAssociatedWith": [
        "chronicle:agent:Justyn%20Pfannerstill"
      ]
    },
    {
      "@id": "chronicle:activity:deploy",
      "@type": "prov:Activity",
      "externalId": "deploy",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:entity:methodologies",
      "@type": "prov:Entity",
      "externalId": "methodologies",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:agent:Perry%20Mueller",
      "@type": "prov:Agent",
      "externalId": "Perry Mueller",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:entity:infomediaries",
      "@type": "prov:Entity",
      "externalId": "infomediaries",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {},
      "wasGeneratedBy": [
        "chronicle:activity:exploit"
      ]
    },
    {
      "@id": "chronicle:entity:synergies",
      "@type": "prov:Entity",
      "externalId": "synergies",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {},
      "wasDerivedFrom": [
        "chronicle:entity:eyeballs"
      ]
    },
    {
      "@id": "chronicle:activity:incubate",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Summary"
      ],
      "externalId": "incubate",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:agent:Nayeli%20Conn",
      "@type": "prov:Agent",
      "externalId": "Nayeli Conn",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:association:Justyn%20Pfannerstill:whiteboard:role=PROJECT%5FLEAD",
      "@type": "prov:Association",
      "agent": "chronicle:agent:Justyn%20Pfannerstill",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:hadActivity": {
        "@id": "chronicle:activity:whiteboard"
      },
      "prov:hadRole": "PROJECT_LEAD"
    },
    {
      "@id": "chronicle:activity:monetize",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Timesheet"
      ],
      "externalId": "monetize",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:streamline",
      "@type": "prov:Activity",
      "externalId": "streamline",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:qualifiedAssociation": {
        "@id": "chronicle:association:Nayeli%20Conn:streamline:role="
      },
      "value": {},
      "wasAssociatedWith": [
        "chronicle:agent:Nayeli%20Conn"
      ]
    },
    {
      "@id": "chronicle:activity:engage",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Project"
      ],
      "externalId": "engage",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {
        "Name": "applications"
      }
    },
    {
      "@id": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "@type": "chronicle:Namespace",
      "externalId": "testns"
    },
    {
      "@id": "chronicle:activity:maximize",
      "@type": "prov:Activity",
      "externalId": "maximize",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:wasInformedBy": {
        "@id": "chronicle:activity:embrace"
      },
      "value": {}
    },
    {
      "@id": "chronicle:activity:grow",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Work"
      ],
      "externalId": "grow",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {
        "Task": "networks"
      }
    },
    {
      "@id": "chronicle:agent:Durward%20Walker",
      "@type": "prov:Agent",
      "externalId": "Durward Walker",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:association:Nayeli%20Conn:streamline:role=",
      "@type": "prov:Association",
      "agent": "chronicle:agent:Nayeli%20Conn",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "prov:hadActivity": {
        "@id": "chronicle:activity:streamline"
      }
    },
    {
      "@id": "chronicle:activity:syndicate",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Person"
      ],
      "externalId": "syndicate",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "used": [
        "chronicle:entity:e%2Dcommerce"
      ],
      "value": {
        "Name": "networks"
      }
    },
    {
      "@id": "chronicle:activity:embrace",
      "@type": "prov:Activity",
      "externalId": "embrace",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:entity:e%2Dservices",
      "@type": "prov:Entity",
      "externalId": "e-services",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:drive",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Approve"
      ],
      "externalId": "drive",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {}
    },
    {
      "@id": "chronicle:activity:e%2Denable",
      "@type": [
        "prov:Activity",
        "chronicle:domaintype:Reject"
      ],
      "externalId": "e-enable",
      "namespace": "chronicle:ns:testns:60976119-adc6-3826-a57b-3ccb0580e7bd",
      "value": {
        "Reason": "content"
      }
    }
  ]
}

Thank you for retrying. I've now done likewise after cleaning much and pulling your latest. What it generated this time looked good except for that it gave me,
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#StartActivity"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "aggregate"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ],
    "http://btp.works/chronicleoperations/ns#startActivityTime": [
      {
        "@value": "2023-05-04T03:57:51.882729310+00:00"
      }
    ]
  },

and
  {
    "@id": "_:n1",
    "@type": [
      "http://btp.works/chronicleoperations/ns#EndActivity"
    ],
    "http://btp.works/chronicleoperations/ns#activityName": [
      {
        "@value": "aggregate"
      }
    ],
    "http://btp.works/chronicleoperations/ns#endActivityTime": [
      {
        "@value": "2023-05-04T03:57:46.372004858+00:00"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceName": [
      {
        "@value": "testns"
      }
    ],
    "http://btp.works/chronicleoperations/ns#namespaceUuid": [
      {
        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"
      }
    ]
  },

leading to,
ApiError(Contradiction(Contradiction { id: Activity(ActivityId(ExternalId("aggregate"))), namespace: NamespaceId { external_id: ExternalId("testns"), uuid: 60976119-adc6-3826-a57b-3ccb0580e7bd }, contradiction: [InvalidRange { start: 2023-05-04T03:57:51.882729310Z, end: 2023-05-04T03:57:46.372004858Z }] }))

I do hope that with synth it's not too difficult to constrain the one @date_time with regard to the other.

Now I'm looking forward to the CLI command that runs ApiCommand::Query. :smile:

Thank you for retrying. I've now done likewise after cleaning much and pulling your latest. What it generated this time looked good except for that it gave me,

  {

    "@id": "_:n1",

    "@type": [

      "http://btp.works/chronicleoperations/ns#StartActivity"

    ],

    "http://btp.works/chronicleoperations/ns#activityName": [

      {

        "@value": "aggregate"

      }

    ],

    "http://btp.works/chronicleoperations/ns#namespaceName": [

      {

        "@value": "testns"

      }

    ],

    "http://btp.works/chronicleoperations/ns#namespaceUuid": [

      {

        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"

      }

    ],

    "http://btp.works/chronicleoperations/ns#startActivityTime": [

      {

        "@value": "2023-05-04T03:57:51.882729310+00:00"

      }

    ]

  },

and

  {

    "@id": "_:n1",

    "@type": [

      "http://btp.works/chronicleoperations/ns#EndActivity"

    ],

    "http://btp.works/chronicleoperations/ns#activityName": [

      {

        "@value": "aggregate"

      }

    ],

    "http://btp.works/chronicleoperations/ns#endActivityTime": [

      {

        "@value": "2023-05-04T03:57:46.372004858+00:00"

      }

    ],

    "http://btp.works/chronicleoperations/ns#namespaceName": [

      {

        "@value": "testns"

      }

    ],

    "http://btp.works/chronicleoperations/ns#namespaceUuid": [

      {

        "@value": "60976119-adc6-3826-a57b-3ccb0580e7bd"

      }

    ]

  },

leading to,

ApiError(Contradiction(Contradiction { id: Activity(ActivityId(ExternalId("aggregate"))), namespace: NamespaceId { external_id: ExternalId("testns"), uuid: 60976119-adc6-3826-a57b-3ccb0580e7bd }, contradiction: [InvalidRange { start: 2023-05-04T03:57:51.882729310Z, end: 2023-05-04T03:57:46.372004858Z }] }))

I do hope that with synth it's not too difficult to constrain the one @date_time with regard to the other.

Yeah, sounds like you weren't getting on main and maybe running into the IRI formatting bug I discovered that got fixed on Monday.


BasicAer returns incorrect result

Information

Qiskit Terra version: Terra 0.7.0, Qiskit 0.7.3
Python version: 3.7.0
Operating system: OSX

What is the current behavior?
from qiskit import *

q= QuantumRegister(2)
c = ClassicalRegister(1)
qc = QuantumCircuit(q, c)

qc.x(q[1])
qc.measure(q[1], c[0])

backend = BasicAer.get_backend('qasm_simulator')
job = execute(qc,backend)
print(qc)
print(job.result().get_counts())

outputs {'0': 1024}, when it should clearly ouput 1.
Suggested solutions
Using Aer instead of BasicAer works.

Hmm, I ran that exact script locally and got:
q0_0: |0>────────
         ┌───┐┌─┐
q0_1: |0>┤ X ├┤M├
         └───┘└╥┘
 c0_0: 0 ══════╩═

{'1': 1024}

Which is the expected result.

Same as @mtreinish.

I also get it at Google Colab (which bothers me more, because I'm using it for exercise classes).
The same thing also happens in Trinket.
I've downgraded to 0.6 as a workaround, but obviously that's not ideal.

Can confirm that this is a bug in 0.7.  It does appear to be fixed in master though. I believe in #1624.

Any chance that this could be patched into stable? It's a bit embarrassing if I have to teach the course using 0.6, and it doesn't seem like a good idea to teach it out of master.

@ajavadia ?

I confirmed that https://github.com/Qiskit/qiskit-terra/pull/1624 fixes this issue.
# qiskit-terra 0.7.0

q0_0: |0>────────
         ┌───┐┌─┐
q0_1: |0>┤ X ├┤M├
         └───┘└╥┘
 c0_0: 0 ══════╩═

{'0': 1024}

# qiskit-terra 0.7.0 with PR1624

q0_0: |0>────────
         ┌───┐┌─┐
q0_1: |0>┤ X ├┤M├
         └───┘└╥┘
 c0_0: 0 ══════╩═

{'1': 1024}

@quantumjim It may be an option to use LegacySimulators instead of BasicAer. Although it shows a deprecation warning, it returns a correct result. Anyway, I think Aer is the best option.

@mtreinish can you patch this into 0.7 i think this should be as @quantumjim says.

I've pushed a backport of #1624 to the stable branch here: https://github.com/Qiskit/qiskit-terra/pull/1859 we can merge that and release it as 0.7.1.

Ok, this should be fixed in qiskit-terra 0.7.1, the wheels (ie binaries with the legacy simulator) for mac and windows are still being built and will be uploaded shortly. But as long as you're not on those platforms or you don't need the legacy simulators it'll work for you now.

Mac wheels are up now, just waiting on windows.

And now windows wheels are up.


Add python-version input to tox workflow

This input can be passed to individual tox environments to force which python-version to pass to actions/setup-python.
Closes #53

Awesome, thanks a lot!


Edit Dialog targetEvent

Why does the $event target need to be restricted in such a way?
if(!options.targetEvent.target.classList.contains('md-cell')) {
  return logError('The event target must be a table cell.');
}

This check break the case where the cell contains complex content:

        Testing

        <md-icon>edit</md-icon>

NOTE: This is pseudo-code
In this case, the $event.currentTarget isthe div (not the 'md-cell') which shows an error in the console and does not show the dialog.
From a quick investigation, removing the check shows the dialog correctly.

Okay, this is something I will need to fix. The reason I do that check is to make sure the source of the click is a table cell. I need the table cell to position the dialog.
I think I may just need to change target to currentTarget or something equally as simple. I should be able to get to this later today.
If you get to it before me make a pull request.


[MRG] Gid offset

closes #454
Examples: https://2122-168215891-gh.circle-artifacts.com/0/html/index.html
This PR makes the simulation output agnostic of the order in which the drives are added. The seeds of the drives have to be adjusted for the new scheme.
Another problem that is fixed in this new scheme is that negative seeds are no longer allowed (as in numpy and other software). Earlier a negative seed would be okay because the final seed used would be event_seed + gid and gid may start from a large positive number instead of 0

Codecov Report

Merging #462 (a422094) into master (c224697) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   88.50%   88.57%   +0.07%
==========================================
  Files          18       18
  Lines        3333     3336       +3
==========================================
+ Hits         2950     2955       +5
+ Misses        383      381       -2

Impacted Files
Coverage Δ

hnn_core/drives.py
92.48% <100.00%> (-0.50%)
:arrow_down:

hnn_core/network.py
92.09% <100.00%> (+0.01%)
:arrow_up:

hnn_core/parallel_backends.py
82.32% <0.00%> (+0.82%)
:arrow_up:

Continue to review full report at Codecov.

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

does any of you remember how the seed for poisson process in gamma example was determined to be 1079? It's an unusually high number.

okay test added. MPI tests are spuriously failing sometimes, not sure why. I suggest restarting the CI for now. We'll have to dig in deeper at some point ...

It's unfortunate this PR requires modifying all the examples, but it's definitely informative for me! "Simulate alpha and beta" was altered:

I'll look through the rest to see if there's any others

Humm interesting. Could the older simulation be considered buggy in this case? See the following:
https://github.com/jonescompneurolab/hnn-core/blob/a761e248ddf360710dd60638269f70361f5d6cb3/examples/workflows/plot_simulate_beta.py#L153-L160
when you do add_erp_drives on net_beta it is not the same as doing add_erp_drives on net_erp because the gids of the cells are different, therefore you get different seeds for spikes of the evoked drives in the two cases.

Oh I see you were talking about the other example. This particular example is not affected because of sigma=0. ... touché

does any of you remember how the seed for poisson process in gamma example was determined to be 1079? It's an unusually high number.

In case this was still a question, I think this number was due to the fact that the poisson drive gids were added after the initial 270 real cell gids were assigned, plus the 3 x 270 gids for each of the three tactile evoked response drives (for a grand total of 1080 gids).

Is there still work to be done adjusting the seed values for the examples or are we good to go @jasmainak @ntolley ?

I think this PR is good to go unless you spot any discrepancies in the documentation pages

Unfortunately the LFP example is slightly different. I suspect this is due to the seeds in add_erp_drives_to_jones_model()?


compile issues with gcc-10 on Debian testing

Hi,
While attempting to compile with gcc-10 on Debian testing I get the following issues:
gcc -O3 -s -Werror -Wall -Wno-pointer-sign  -Wno-unused-result -std=gnu99 -pthread -MMD -o build/webdavd.o webdavd.c -I/usr/include/libxml2 -c
webdavd.c: In function ‘runServer’:
webdavd.c:1962:14: error: assignment to ‘MHD_AccessHandlerCallback’ {aka ‘enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, unsigned int *, void **)’} from incompatible pointer type ‘int (*)(void *, Request *, const char *, const char *, const char *, const char *, size_t *, void **)’ {aka ‘int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, unsigned int *, void **)’} [-Werror=incompatible-pointer-types]
 1962 |     callback = &answerForwardToRequest;
      |              ^
webdavd.c:1964:14: error: assignment to ‘MHD_AccessHandlerCallback’ {aka ‘enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, unsigned int *, void **)’} from incompatible pointer type ‘int (*)(void *, Request *, const char *, const char *, const char *, const char *, size_t *, void **)’ {aka ‘int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, unsigned int *, void **)’} [-Werror=incompatible-pointer-types]
 1964 |     callback = &answerToRequest;
      |              ^
webdavd.c: In function ‘createRap’:
webdavd.c:416:5: error: array subscript 1 is outside array bounds of ‘int[1]’ [-Werror=array-bounds]
  416 |     stdLogError(errno, "Could not assign new socket (%d) to %d", newSockFd[1],
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  417 |       (int) RAP_CONTROL_SOCKET);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~
webdavd.c:470:6: note: while referencing ‘socketFd’
  470 |  int socketFd;
      |      ^~~~~~~~
cc1: all warnings being treated as errors
make: *** [makefile:14: build/webdavd.o] Error 1

Guessing gcc-10 is a bit more strict and errors.
Cheers,

Hmm. looks like that was always broken but the compiler now spots it.  It should be a trivial fix.

Let me know if you have further problems. This should be fixed now.

Works perfectly, thanks


Introducing (Dynamical) Lie Algebras for quantum practitioners

Introduction to some key concepts of Lie algebra theory in quantum computation
Currently doing everything with PauliWord and PauliSentence.
Main blocker to change this to pennylane ops is string representations of Pauli ops
TODO

[ ] metadata
[ ] thumbnail

[sc-54217]

Updated the code part of the demo to work with regular PennyLane operators after updating string representations and other things in the codebase recently

Great work! Tomorrow we should have the thumbnail, onces there are changed we can early-merge this demo :)

Metadata and thumbnails updated 👍

Another great demo for your collection! 🚀


Run selected script - without opening editor

Some scripts are very big and editor will take long time to load into UI -  for such scripts we save in drive and run them from workbench or some other tool - just by selecting the file and running it without loading it to editor.
Can we get that feature -  probably in tools or some relevant location when we right click on the database name -  to run the sql file on selected connection/DB instead of opening the file in editor.

Mysql:

Any possible milestone?

This is relatively big feature.
There are too many different questions and possibly too many UI additions. I can't say when we'll have resources for that. Maybe we more people would vote for this feature.

Sorry, I was not trying to prioritize the ticket, but just commenting to make sure it was not forgotten.
Thank you for the wonderful application and thank you for keeping it free.

This is relatively big feature.

I found it by way of the good first issue label. Would you please clarify whether you think it is a good first issue?

A suggestion: I suppose it might be quite easy to implement this as a command line parameter. Just like now you allow to execute tasks (which are very similar in nature to a sql script).
Of course running tasks from the command line is a EE feature, so if a similar implementation is chosen, there goes the "thank you for keeping it free" :smiley:.

I am only asking to provide a right click file within dbeaver ide and run script, without opening the sql script editing window. I don't think it will clash with EE version.
Clarifying: I am not asking for commandline args, I am only asking a right click within the Dbeaver IDE.

This is especially useful when working with database dumps, which are usually large in size. If I want to import a db dump in dbeaver I would usually have to wait around 4 to 5 minutes for the editor to load after opening the sql file, only to then wait 4 to 5 minutes more after switching the database on which I would want to import this dump.

Hello, I Just tried to make this feature by myself. But I got caught in a cyclic dependency problem.
Following is a sequence of my approach:
(1) Make 'Run Script' menu and command in 'org.jkiss.dbeaver.ui.navigator'
(2) Write handler setting in plugin.xml to connect the command with 'SQLEditorHandlerExecute' class in 'org.jkiss.dbeaver.ui.editor.sql'
(3) Add 'org.jkiss.dbeaver.ui.editor.sql' in Required-Bundle of MANIFEST
(4) Because 'org.jkiss.dbeaver.ui.editor.sql' already has dependency on 'org.jkiss.dbeaver.ui.navigator', (3) raises cyclic dependency and compile fails
I tried to find a way to execute SQL without 'SQLEditorHandlerExecute' class, but I couldn't make it. Could anyone have better approach to make this feature? Any advice would be appreciated!

is this issue still open

Hello, I just tried to make this feature by myself. But I got caught in a cyclic dependency problem.
Following is a sequence of my approach: (1) Make 'Run Script' menu and command in 'org.jkiss.dbeaver.ui.navigator' (2) Write handler setting in plugin.xml to connect the command with 'SQLEditorHandlerExecute' class in 'org.jkiss.dbeaver.ui.editor.sql' (3) Add 'org.jkiss.dbeaver.ui.editor.sql' in Required-Bundle of MANIFEST (4) Because 'org.jkiss.dbeaver.ui.editor.sql' already has dependency on 'org.jkiss.dbeaver.ui.navigator', (3) raises cyclic dependency and compile fails
I tried to find a way to execute SQL without 'SQLEditorHandlerExecute' class, but I couldn't make it. Could anyone have better approach to make this feature? Any advice would be appreciated!

Hi. As i am new to Open Source in general i dont know if this will be Helpful and i do not know if you are still interest in solving this Issue. But i have used Lazy Dependencies in the Past for handling necessary cyclic dependencies. So you only Get the dependency once required.
The way i know this in C# is we inject the ServiceProvider[Or equivalent Factory - whatever is used for getting the depency into our class in a clean way, without directly injecting it]
We then make a private member for the dependency, which is nullable and null on intiation of the class
Then we write a getter that intiates the dependency member if null and then returns it either way. This Getter is what we use then to access our dependency.
This way we are not injecting cyclicly on object creation. We are just left with a bidirectional dependancy.
I would apreciate it if one of the big boys of this repository would tell me if this kind of action is ok and how good of an idea it seems.
As, if @CodyBuilder-dev is not interested in pursuing this issue further i would like to tackle it as my first issue.


initial pixi-projection plugin externs

Generated externs for pixi-projection plugin (using dtshx and manual revisions).  Some workaround required for mixin strategy relating to #168.  No docs available.

too hasty, retracting


Upgrade bundler version used for bundling Gemfile to eliminate DidYouMean warning

When running bundle ... on the current Gemfile a warning:
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.

is generated.  This is a a result of an outdated bundler.  Updating the bundler in the Gemfile.lock resolves the issue.
All Submissions:

[X] Have you followed the guidelines in our Contributing document?
[X] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[X] Have you added an explanation of what your changes do and why you'd like us to include them?

Thanks!


Contentlayer Error

Hi,
i did everythig in the readme but after running "pnpm run dev" i get this error:
./src/app/(lobby)/[...slug]/page.tsx:2:0
Module not found: Package path ./generated is not exported from package /Users/jannik/Projects/bytelanede/bytelanede/node_modules/contentlayer (see exports field in /Users/jannik/Projects/bytelanede/bytelanede/node_modules/contentlayer/package.json)
1 | import { notFound } from "next/navigation"

2 | import { allPages } from "contentlayer/generated"
3 |
4 | import<EMAIL_ADDRESS>5 |

https://nextjs.org/docs/messages/module-not-found
ENV Variables are all set.

Try removing node_modules, .next, .contentlayer. And update the packages.


eslint error when apply this config

$ eslint -c .eslintrc.json ./
/Users/ian/git/redux-elm-skeleton/.eslintrc.json:
        Configuration for rule "wrap-iife" is invalid:
        Value "any,[object Object]" has more items than allowed.

Error: /Users/ian/git/redux-elm-skeleton/.eslintrc.json:
        Configuration for rule "wrap-iife" is invalid:
        Value "any,[object Object]" has more items than allowed.

<EMAIL_ADDRESS>with .eslintrc.json
{
    "extends": "standard",
    "plugins": [
        "standard",
        "promise"
    ]
}

Hmm, could it be the eslint version?
The functionPrototypeMethods option was just added in v3.8.0 on October 14th.

after uninstall and re-install all my global packages, the error is disappeared.


added child warning example

Purpose
Added an example test to show some non-intuitive child FFD behavior
Type of change
What types of change is it?
Select the appropriate type(s) that describe this PR

[x] Other (please describe)

Testing
Explain the steps needed to test the new code to verify that it does indeed address the issue and produce the expected behavior.
Checklist
Put an x in the boxes that apply.

[ ] I have run flake8 and black to make sure the code adheres to PEP-8 and is consistently formatted
[x] I have run unit and regression tests which pass locally with my changes
[ ] I have added new tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation

The changes look good. I would say we need to document this far better. I only know about this issue because we discussed it in the office. I think we should include an in depth explanation of this issue in the code. I dont remember the details 100% but I can help with this if you refresh my memory a bit. We should also put in comments in the childffd code pointing to this test and this behavior, so people who want to use that feature will be aware of this.

The changes look good. I would say we need to document this far better. I only know about this issue because we discussed it in the office. I think we should include an in depth explanation of this issue in the code. I dont remember the details 100% but I can help with this if you refresh my memory a bit. We should also put in comments in the childffd code pointing to this test and this behavior, so people who want to use that feature will be aware of this.

@bbrelje  I didn't intend it to be run from the reg test suite.

@bbrelje  I didn't intend it to be run from the reg test suite.

@anilyil
I agree, I added some detail in issue #7.
Do you think we should move this info else where?

@anilyil
I agree, I added some detail in issue #7.
Do you think we should move this info else where?

I'm good with this one, then. Never used the child FFD feature so I didn't understand the backstory here.

I'm good with this one, then. Never used the child FFD feature so I didn't understand the backstory here.

@joanibal Can we refer to issue #7 in the code also? Finally, I think the figures on the issue can be improved. They are difficult to understand because too many things going on. The cube example you used to explain the issue to me in FXB was great. I am guessing the script in this PR also uses that example. Would it be too much work to add those figures to the issue?

@joanibal Can we refer to issue #7 in the code also? Finally, I think the figures on the issue can be improved. They are difficult to understand because too many things going on. The cube example you used to explain the issue to me in FXB was great. I am guessing the script in this PR also uses that example. Would it be too much work to add those figures to the issue?

@anilyil
I added a reference to the issue in the code.
I will update the issue later to use a simpler example.

@anilyil
I added a reference to the issue in the code.
I will update the issue later to use a simpler example.


Unable to move files when using a virtual repo

We have a Virtual repo (let's call it generic-repo) which is hooked up to a local repo (let's call it local-generic-repo) and a number of smart remotes.
Calling the following command using the virtual repo:
.\jfrog.exe rt move "generic-repo/some-folder/subfolder-a/" "generic-repo/some-folder/subfolder-b/" --dry-run=true --flat=true
results in output like:
[Info] [Thread 1] [Dry run] [Dry run] Moving artifact: generic-repo/some-folder/subfolder-a/some-file.exe to: generic-repo/some-folder/subfolder-b/some-file.exe

[Error] [Thread 1] [Dry run] Artifactory response: 409 Conflict
{
  "messages": [
    {
      "level": "ERROR",
      "message": "Failed to move from src=generic-repo/some-folder/subfolder-a/some-file.exe to target=generic-repo/some-folder/subfolder-b/some-file.exe: class org.artif
actory.repo.virtual.VirtualRepo cannot be cast to class org.artifactory.repo.LocalRepo (org.artifactory.repo.virtual.VirtualRepo and org.artifactory.repo.LocalRepo are in unnamed module of loader org.apache.catalina.loader.Par
allelWebappClassLoader @2da446d7)"
    }
  ]
}

Using the local repository (local-generic-repo) instead of the virtual repo in the above command works fine.
Expected behavior
No exception should be raised.
Versions

JFrog CLI version: 1.48.1
JFrog CLI operating system: Windows Server 2008 R2
Artifactory Version: Enterprise Plus 7.19.8 rev 71908900

@testworksau if you use the copy command it should work

Thanks @stein321 - would still be good if this was fixed so that we didn't have to follow the copy with a delete.


Conflicting domains in message and redirect when redirect_url contain no path

Symptom
Currently, if OIDC's redirect url ~has :port in it~ contains no path, e.g. "http:localhost", the OIDC process always failed with an error message:
Conflicting domains in message and redirect

even though the redirect url is specified as supported redirect url during client registration.
Cause
The direct cause is the message domain check.
Suggested resolution
Option 1: ~only check the host name bit of redirect url.~
Option 2 (recommended): remove the message domain check as the Supported Redirect URLs mechanism has offer enough guard against rogue redirect url.
I am happy to make a patch to fix it. Please let me know your thoughts 🙂

Could you provide an example please? I suspect it might be a localhost vs <IP_ADDRESS> kind of error.

Sure, for example, if we start authorize step with redirect url: http://localhost:8000, siwe-oidc will extract localhost as the domain for SIWE, later in next step it will compare domain hostname localhost to redirect uri localhost:8000, which causes the problem.

I am unable to reproduce the issue. Please provide a full example, or the sample request to /sign_in with the body and cookies attached.

Hmmm, odd. Here is a sample request to /sign_in and that returns 500 with Conflicting domains in message and redirect. (redacted some irrelevant data)
Query url:
https://oidc.signinwithethereum.org/sign_in?redirect_uri=http://localhost:8000&state=_F2k8LnilXzM8mb8tU2U-6bu-zXrbM20FXoZFQ46ZUY&client_id=XXXXXX&oidc_nonce=wTyKZ2LrAdmoGvkWA0gQz0tqlvb8HjGcPMFxkgWu3yY

Cookie:
session=e3c3ebab-7f6f-48c5-980d-ba3d2e0aeffc; siwe={%22message%22:{%22domain%22:%22oidc.signinwithethereum.org%22%2C%22address%22:%220xa1EA6dF7E5506DXXXXXXXE11c8bB9c5%22%2C%22statement%22:%22You%20are%20signing-in%20to%20localhost.%22%2C%22uri%22:%22https://oidc.signinwithethereum.org%22%2C%22version%22:%221%22%2C%22nonce%22:%225APl2qAD0K1801uo%22%2C%22issuedAt%22:%222022-09-01T13:34:36.825Z%22%2C%22expirationTime%22:%222022-09-03T13:34:36.824Z%22%2C%22chainId%22:1%2C%22resources%22:[%22http://localhost:8000%22]%2C%22signature%22:%220xe7fde685a1f7ca219e1c186dabac1b9d6c64a53474dd16bc7afdcb7d58a097af79bdc34ef7343fdcb33bad6c0abdc5ae9aacce3d877df86675b772b28d1a2f281c%22}%2C%22signature%22:%220xe7fde685a1f7ca219e1c186dabac1b9d6c64a53474dd16bc7afdcb7d58a097af79bdc34ef7343fdcb33bad6c0abdc5ae9aacce3d877df86675b772b28d1a2f281c%22%2C%22ens%22:null%2C%22ensAvatar%22:null}

Not an expert in rust, but I think it's likely a trailing slash issue.
Check out this playground code.

Thank you for such a quick fix! 🙇🏿

Indeed, it was doing the comparison improperly. It should be deployed shortly (https://github.com/spruceid/ens-oidc)


Rails 8 + Importmaps - missing backdrop

Describe the bug
There are no backdrop in rails8 app using importmaps
To Reproduce

Git clone https://github.com/alec-c4/flowbite_issue
cd flowbite_issue
run bundle install
run bin/dev
open http://localhost:3000
see no backdrop on modal open

I've created an app with esbuild and backdrop works fine

@bitshaker what do you mean? Check those lines https://github.com/alec-c4/flowbite_issue/blob/fd8c7059d4b767fefd804bfe02881c3015d4b14f/app/views/layouts/application.html.erb#L20C1-L22C66

The Flowbite specific css file is not in your repo. It needs to be there. Here’s a simple way to do it.
https://youtu.be/zDhM5HQ10aA
tl;dw
Download the latest CDN versions of the flowbite.min.css and flowbite.turbo.min.js files.
Put the flowbite.turbo.min.js file in vendor/javascript
Put the flowbite.min.css in vendor/assets/stylesheets
Add flowbite to the importmap.rb file like:
pin "flowbite", to: "flowbite.turbo.min.js"
Add flowbite to the application.js file like:
import "flowbite"
In the tailwind.config.js file, add a darkMode toggle class preference (default is media if you want to leave it alone) like:
module.exports = {
  darkMode: "class", //add this line
  content: [
  //all the default stuff here
]
}

Add the stylesheet to application.html.erb like:
<%= stylesheet_link_tag "flowbite", "data-turbo-track": "reload" %>
Bonus: download the markdown files from the flowbite repo where it describes each component. That way, you have context for AI coding help or just your own documentation in your IDE

@bitshaker I've checked this video and, you know, it goes against almost all rails principles. But, anyway, let's check docs, I've mentioned earlier. If you clone my repo and check it - you'll see that everything done following this guide. Also, you can add any code sample from flowbite docs and everything work fine, except backdrop.
But, ok, forget my repo, let's check rails guides - https://guides.rubyonrails.org/asset_pipeline.html Everytime you pin any package - it is downloaded to vendor/javascript folder for some reason (offline access, prevent from yanking from package hosting, etc.). So, we need to create a separate package for flowbite.turbo. Also, I've found following issue https://github.com/rails/importmap-rails/issues/80 - with importmaps it is impossible to pin CSS. That's why the author of your video have downloaded flowbite.turbo.js and css to vendor folder. As I said - it isn't a rails way, but a workaround.
I have an idea - it is possible to publish ruby gem, which will make all required js/css available without importmaps. @zoltanszogyenyi what do you think? Dow you need my help with rubygem?

Also, I've found the following gem https://github.com/iwdt/flowbite-rails but it looks abandoned

I've checked again this video and there is another problem - author have imported tailwind 2 times - from app/assets/stylesheets/application.tailwind.css and from vendor/assets/stylesheets/flowbite.css
I strongly recommend avoiding following such scheme. There are 2 working schemes:

rubygem with js and css
create separate flowbite.turbo package + add ability to download and put to app/assets/stylesheets or vendor/assets/stylesheets clean css file without tailwind and other stuff, only flowbite code.

I think that rubygem way is more accurate, because developers, who use flowbite, will receive updated assets without necessarily to update local files

@bitshaker I'll try to do something this weekend

I can confirm that this problem exists.
Also datepicker looks wonky without the minified css.

Hey! I spent some time and I think I know what's wrong with backdrop. The problem occurs is because of tailwind do purgecss for unused classes and all those classes are listed in flowbite/plugin.js. There is a problem with flowbite plugin, it cannot be loaded with importmap. I've created a gem (but didn't publish yet because of plugin.js issue) which pins flowbite.turbo.js avoiding necessarily to pin flowbite to importmap.rb, but I haven't fixed an issue when I do put plugin.js locally and link it in tailwind.config.js :( But if you're strong in JavaScript I'll be appreciated for your help.


Resource partitioner documentation

Currently the resource partitioner lacks any kind of documentation except examples. It would be good to have some documentation before the next release.

I think this ticket can be closed https://github.com/STEllAR-GROUP/hpx/blob/master/docs/sphinx/manual/hpx_runtime_and_resources.rst#the-hpx-resource-partitioner?

@tapaswenipathak yep. There could be more documentation on it, but I think it's enough to close this.

🆗 🎉


Support Data Maintenance Benchmark

Data Maintenance is detailed explained in TPC-DS Specification at Section 5. To simplify, the following 3 steps are needed for it:

Use TPC-DS Tool to regenerate data

add "update" option for data generation script

Use SQL files in tests folder in DSGen-software-code-3.2.0rc1, to update table data.

add script(currently we have a nds_power.py to read SQL stream files) to read these new SQL files to update the existing table data.
the SQL files may contain multiple SQL statement, need to be able to recognize them and execute them one by one.
Data Maintenance Functions are at section 5.3.2 in Specification.
add new data source schema described under $TPCDS_HOME/tools/tpcds_source.sql

Do Throughput Run again.

Step 2. is called "Data Maintenance". the SQL files are "lf_*.sql" and "dm_*.sql". Note, we need to make them Spark-compatible.
Step 1+2+3 is called Refresh Run.

The UPDATE data contains some unnecessary data, we should drop them. See details in Specification(v3.2.0) pdf at Page 7 of 141
remove tables that are no longer part of the data maintenance refresh in TPC-DS v2.0 A-1
(s_zip_to_cmt) A-3 (s_customer) A-7 (s_item) A-10 (s_store) A-11 (s_call_center) A-12
(s_web_site) A-13 (s_warehouse) A-14 (s_web_page) A-15 (s_promotion) A-20 (s_catalog_page)
(FogBugz 2178)

The Specification doc doesn't explicitly provide the DELETE query strings, I come up with the following SQLs.
See Section 5.3.11
-- DF_CS
-- for catalog_sales
delete from catalog_sales where cs_sold_date_sk in (select d_date_sk from date_dim where d_date between DATE1 and DATE2);
-- for catalog_returns
delete from catalog_returns where cr_order_number in (
select cs_order_number from catalog_sales where cs_sold_date_sk in (select d_date_sk from date_dim where d_date between DATE1 and DATE2)
);

-- DF_SS
-- for store_sales
delete from store_sales
where ss_sold_date_sk in
(select d_date_sk from date_dim where d_date between DATE1 and DATE2);
-- for store_sales
delete from store_returns where sr_ticket_number in (
select ss_ticket_number from store_sales where ss_sold_date_sk in (select d_date_sk from date_dim where d_date between DATE1 and DATE2)
);

-- DF_WS
-- for web_sales
delete from web_sales where ws_sold_date_sk in (select d_date_sk from date_dim where d_date between DATE1 and DATE2);
-- for web_returns
delete from web_returns where wr_order_number in (
select ws_order_number from web_sales where ws_sold_date_sk in (select d_date_sk from date_dim where d_date between DATE1 and DATE2)
);

-- DF_I
-- for inventory
delete from inventory where inv_date_sk in (select d_date_sk from date_dim where d_date between DATE1 and DATE2);


API Updates: routing table, models endpoint, inference routing, rebase on safety_refactor

Changes
Major Changes
✅  rebase on top of safety_refactor branch
✅  routers migration
- move memory router to use llama_stack/distribution/routers
- add RoutingTable class with to manage provider implementations
- add inference routing based on model param to use different models
✅  models/list & models/get endpoint to query information on what model is currently being served & corresponding api provider
- 1 adapter could support multiple models (e.g. fireworks/together/ollama), for this case, we list all supported models by the adapter
✅  safety/list_shields to query available shields in distribution
Minor Changes
✅  backward compatibility: single adapter without routing implementation still supported
✅  example configs to configure advanced routing table
✅  configure script to configure single adapter backed endpoints
Not in this PR
🚧  register_model endpoint to add new models
🚧  Client CLI for querying distribution models endpoint --> will be in llama-stack-apps
🚧  Update client SDK package to deal with new OpenAPI spec on run_shield
Tests
Routing Table
Test Inference Routing
python -m llama_stack.apis.inference.client
python sdk_examples/inference/client.py localhost 5000 false

Meta-Llama3.1-8B-Instruct

Meta-Llama3.1-8B

Test Memory Routing
python -m llama_stack.apis.memory.client

vector memory type

switch to keyvalue memory type remote::pgvector

Test Agents
python -m llama_stack.apis.agents.client
python sdk_examples/agents/client.py

Test Safety
python -m llama_stack.apis.safety.client localhost 5000

Models Endpoint with Routing Table

using ollama supported models list

inference:
    provider_id: remote::ollama
    config:
      url: https://xxx

using default local

inference:
    provider_id: meta-reference
    config:
      model: Meta-Llama3.1-8B-Instruct
      quantization: null
      torch_seed: null
      max_seq_len: 4096
      max_batch_size: 1

Models Endpoint without Routing Table

using routing table

provider_routing_table:
  inference:
    - routing_key: Meta-Llama3.1-8B-Instruct
      provider_id: meta-reference
      config:
        model: Meta-Llama3.1-8B-Instruct
        quantization: null
        torch_seed: null
        max_seq_len: 4096
        max_batch_size: 1
    - routing_key: Meta-Llama3.1-8B
      provider_id: remote::ollama
      config:
        url: https:://ollama.com

run.yaml
built_at: '2024-09-18T13:41:17.656743'
image_name: local
docker_image: null
conda_env: local
apis_to_serve:
- inference
- memory
- telemetry
- agents
- safety
provider_map:
  telemetry:
    provider_id: meta-reference
    config: {}
  safety:
    provider_id: meta-reference
    config:
      llama_guard_shield:
        model: Llama-Guard-3-8B
        excluded_categories: []
        disable_input_check: false
        disable_output_check: false
      prompt_guard_shield:
        model: Prompt-Guard-86M
  agents:
    provider_id: meta-reference
    config: {}
provider_routing_table:
  inference:
    - routing_key: Meta-Llama3.1-8B-Instruct
      provider_id: meta-reference
      config:
        model: Meta-Llama3.1-8B-Instruct
        quantization: null
        torch_seed: null
        max_seq_len: 4096
        max_batch_size: 1
    # - routing_key: Meta-Llama3.1-8B
    #   provider_id: meta-reference
    #   config:
    #     model: Meta-Llama3.1-8B
    #     quantization: null
    #     torch_seed: null
    #     max_seq_len: 4096
    #     max_batch_size: 1
  memory:
    # - routing_key: keyvalue
    #   provider_id: remote::pgvector
    #   config:
    #     host: localhost
    #     port: 5432
    #     db: vectordb
    #     user: vectoruser
    #     password: xxxx
    - routing_key: vector
      provider_id: meta-reference
      config: {}

Merged to main via https://github.com/meta-llama/llama-stack/pull/92


Cast value to string so .replace works

This is a simple fix for an issue I've been having for a while. It casts the variable value to a string so the .replace method works, otherwise it throws a nasty error.
I edited this file manually a couple months ago in production, and so far it has been fine, and I doubt it should break anything as the replace method only works on strings either way.

Looks good! Thank you for the contribution :)


Route Not render

"react-scripts": "1.0.7"
windows 10
node v6.9.5
npm 3.10.10
"react-router-redux": "^4.0.8"
App.js
...
    return (
        <Provider store={store}>
           {/**import { IntlProvider } from 'react-intl';**/}
            <IntlProvider locale={appLocale} messages={messages}>
                <HashRouter history={history}>
                    <Switch>
                        {/* this works */}
                        <Route exact path="/login" component={Login} />
                        {/* this works */}
                        <Route exact path="/" component={Layout} />
                    </Switch>
                </HashRouter>
            </IntlProvider>
        </Provider>
    );
...

Layout.js
return (

                        <Switch>
                             {/* this works */}
                            <Redirect from="/" to="/dashboard" />
                             {/*????????? this not works ??????????*/}
                            <Route exact path="/dashboard" name="dashboard" component={Dashboard} />
                        </Switch>

);

Dashboard.js
import React from 'react';

const Dashboard = (props) => {
    return (

            Dashboard

    );
};

export default Dashboard;

redirecting to dashboard works but don't render anything???

There are a few issues with your code.

You are providing a history to the <HashRouter>. If you want to use your own history object, you need to use the <Router> component.
The version of react-router-redux that you are using is for previous versions of React Router. v5 of react-router-redux is the one that works with React Router v4 (there was already a v4 of r-r-r when v4 was released, so r-r-r had to be bumped to v5 for the RRv4 compatible release).

hey,
Do you mean:
    "react-router-dom": "^4.1.1",
    "react-router-redux": "^5.0.0-alpha.6",

I've just updated like that, but it's still not working

I know which caused the problem now.
<Route exact path="/" component={Layout} /> should not have exact.


chore(main): release 1.3.2

:robot: I have created a release beep boop
1.3.2 (2024-05-16)
Bug Fixes

correction path tsconfig (3479f31)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/Andesite-Lab/Core/releases/tag/v1.3.2 :sunflower:


Can't approve new account requests

This is what happens when I try to edit Land Portal account requests to approve them:

fixed friday late pm
relate to https://github.com/landportal/drupal/issues/381


Stop rotation on last word

How can stop the word rotation when words in list are finished?
I tried this with no luck:
        complete: function () {
          // Overrides default empty function

          // Stop at the last word
          if (this.index === this.phrases.length - 1) {
            this.stop();
          }
        }

Hi @dangelion,
Apologies for the late response. Are you still having difficulties?
That should would in theory. Do you have a live demo perhaps?
Thanks!

Hi @MrSaints
That code doesn't work:
    $(".js-word-rotate").Morphist({
        animateIn: "flipInX", // Overrides default "bounceIn"
        animateOut: "flipOutX", // Overrides default "rollOut"
        speed: 1000, // Overrides default 2000
        complete: function () {
          // Overrides default empty function

          // Stop at the last word
          if (this.index === this.phrases.length - 1) {
            this.stop();
          }
        }
    });

I get this error in console:
Uncaught TypeError: Cannot read property 'length' of undefined

that shows every time a word make a rotation.

That's taken from Morphext I assume.
You need to change this.phrases to this.children.

Thanks, solved


Add option for using the shouldDeclareTopLevelNamespaces flag

There's currently no way to use the --shouldDeclareTopLevelNamespaces flag on the compiler through soynode, since there's no option for it. It would be great to have that option.
I have this working on a local branch of mine, so I'll send a pull request with it soon.

published as v0.7.3


Update OpenStack-Ansible SHA

This change updates the OSA SHA in preparation of the next patch
release for Liberty.
Connected https://github.com/rcbops/u-suk-dev/issues/578

recheck_upgrade Task Failed: horizon_all / horizon_extensions / Collect and compress static files

LGTM 👍

:+1:


Refresh token at me endpoint

connects #118

@cheungpat, thanks for your PR! By analyzing the annotation information on this pull request, we identified @rickmak to be a potential reviewer

Merge via 2402198


Image for users, teams

At some point I added an image attribute for teams but forgot to add in a place on the form for it and also to put in a default image.
Should users also have images?
Note: Bug 3 on Jeremiah's bug report

Added images for users as well.


Scrambled Output

We get scrambled output when entering this command echo "hello > out | cat -e" which could potentially indicate that there is a problem with pipes

The way I've implemented the spacing between echo arguments was responsible of this issue. Precisely i was printing the value of a char variable c that i set as c = 32 and in case i'm printing the last argument i reset it to c = 0. When running cat -e out it converts the null-terminating character to<EMAIL_ADDRESS>so the fix was about the spacing implementation as below:
while (i < ac)
{
   if (i == ac - 1)
       printf("%s", av[i++]);
   else
	printf("%s ", av[i++]);
}


Changing server configuration options on a running server

Please answer these questions before submitting your issue.
What version of gRPC and what language are you using?
1.4.2 - C++
What operating system (Linux, Windows, …) and version?
CentOS 6, Windows 10
For operational reasons, many times, we would want to change the configuration options on a server without taking it down. This can not be done currently on a running server.
Discussion thread here - https://groups.google.com/forum/#!topic/grpc-io/VkHRBWx44HE
Thanks.

We don't currently have any plans to support this.
Can you tell me more about why you need to do this?  It might help us to understand why this is important.

Hi,
In our current framework, we use reconfiguration for a number of reasons. For example, if your ssl cert is going to expire soon, you can reconfigure the cert without taking down the instance.
It also useful sometimes to adjust the maximum number of connections that a server is permitted to have (grpc currently does not allow limiting the max connections and it's a feature request that is pending - https://github.com/grpc/grpc/issues/12472).
I was looking at the grpc_types.h and some options like enabling census reporting etc. might be useful to toggle.
Thanks,

Ability to reload SSL certificates was added recently in #12644.
For things that are set via channel args, why do you need to toggle this without a restart?  Does your environment not have a way to restart individual servers without disrupting the service for clients?

Thanks for the info on the SSL cert reload. That was the big factor.
Our environment does support restarting individual servers in a non-impacting fashion and there are ways to handle other stuff. The configuration reload stuff predates these newer capabilities by a considerable duration so that stuff is still around.
Anyhow, I don't have a good use case now for reconfiguration support so I'll go ahead and close the issue.
Thanks for your time.


[REFACTOR]: [Globepay] Remove Default Case Handling

:memo: Feature Description

We utilize match statements to make pivotal decisions, such as generating requests based on the payment method type and managing responses received from the connector.
These conditions generally go hand in hand with enum variants.
Default case is used because a match statement needs to be exhaustive i.e. every variant needs to be covered.
So, if all the explicit cases are handled then default is used to handle the rest.
Each connector have these match statements but many of them don’t provide reference to each variant in their default case, rather a _ is put to handle all the other cases.
This approach carries a risk because developers may inadvertently overlook the need for explicit handling of the new cases.

:hammer: Possible Implementation

Instead of relying on a default match case _, developers should handle each and every variant explicitly.
By doing so, if there are any changes in the future, they can readily assess the impact of their modifications simply by compiling the code.
In order to manage payment methods that are not implemented by Hyperswitch or yet to be implemented, the connector transformers file should make use of the NotImplemented ConnectorError enum variant.
By doing so, we will throw same error message for all the Connector Implementation
You can check this PR for further reference https://github.com/juspay/hyperswitch/pull/1955

:bookmark: Note: All the changes needed should be contained within hyperswitch/crates/router/src/connector/globepay/transformer.rs
:package: Have you spent some time checking if this feature request has been raised before?

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

:package: Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

:sparkles: Are you willing to submit a PR?

Hey, this issue seems to have no one committed to it, so I'll take it up.
Will take a look at the PR mentioned.
Anything else I should know?


Rename tabs to match the repo and branch when in powershell ise

I'm not sure if you want to embed IDE specific code in here at all.  If you do this also probably isn't the best place.
However I find this useful.  One of the main reasons I use posh-git is because I can use it in Powershell ISE and use the MDI to have a few repos available at once.
I thought I'd share the code and see if you like it/want to incorporate it in some way.
Cheers,
George

I've not heard of using ISE for the MDI…interesting. I am certainly not opposed to making like better for folks using ISE, especially since it's cheap to skip for non-ISE sessions.
What's the relationship between ISE tabs and $Host.UI.RawUI.WindowTitle?
I have some thoughts in general, but for starters can you move this new code into Set-WindowTitle and --amend that change into the existing commit? Would like to avoid the extra churn in Git prompt.ps1.

In addition to moving to Set-WindowTitle should this feature be behind another GitPromptSettings property e.g. EnableIseTabTitle or something like that?

Hi guys,
Thanks for the feedback.
Maybe I should make another CmdLet called Set-TabTitle and call it within Set-WindowTitle is called.
I could encapsulate the code for creating the title and allow people who use other IDEs to pass in a callback to allow them to set the title on their IDE.
With the GitPromptSettings should it default to on or off?  I would say this functionality would be desired by defualt for MDI IDEs.
I'll have a crack at the changes when I get some time and you can review.
I think the tabs and title are managed seperately.
It looks like the title reflects the repo [branch] where the last git command was run.

I have noticed some behaviour that might freak people out a bit.  If you have 2 tabs pointing to the same repo and you change branch in one it'll obviously change the branch in the other tab but that won't be reflected in the ide until you run another git command. It makes sense when you know how git works but though I'd point it out.

Thanks for all the feedback guys.  I'll try to get it all cleaned up.  I don't use powershell that much is there something like FxCop for powershell so I can make sure I conform to your coding standards?

@georgecheyne If you use Visual Studio Code and install the PowerShell extension, you can select your code and press Ctrl+K, Ctrl+F to format the selected script.

Changes look good - I like how you've tried to make this not specific to ISE. However, I noticed my suggested Get-UniqueTabTitle ends up flipping the current tab back and forth between "posh-git [master]" and "posh-git [master] 1" (for example), since it's not aware of the current tab value.

I have noticed some behaviour that might freak people out a bit. If you have 2 tabs pointing to the same repo and you change branch in one it'll obviously change the branch in the other tab but that won't be reflected in the ide until you run another git command. It makes sense when you know how git works but though I'd point it out.

I also noticed this, too. If we're going to update the current tab, we might as well try to update other tabs for the current repo as well. I don't know exactly how it would work, but I wonder if we could use Add-Member to save each tab's working directory (or its $GitStatus? both?) on $psISE.CurrentPowerShellTab. Then each time we go to update the current tab DisplayName, we'd also update any tab for the current repo. We could also keep track of GitTabNumber and OriginalDisplayName for each tab, to make the experience even more seamless.
Thoughts?


How to install osschat for Apache project

I can't access the Wiki page, maybe @huan can help to copy this guide to the right place.
Ask for infrastructure service of ASF from here: https://issues.apache.org/jira/ .
Create a new issue follow the template following:
Dear Infra team,

Can you please install / enable GitHub osschat(https://github.com/apps/osschat) application for our apache/${Your project name} GitHub repo?

Thanks

A previous case for reference: https://issues.apache.org/jira/browse/INFRA-19925

Thanks for figuring it out!
I have just opened the Wiki and get rid of the write limitation.
Now you can edit the wiki, so please feel free to add it by yourself.
Thank you very much for the contribution!

Done.


Superset creates large no. of idle connections to Postgres.

I have used Postgres as datasource for the charts. when dashboard is loaded connection goes from active to idle state and remains the same until restart.
Superset version
0.15.1 and 0.26.0
Expected results
Idle Connections needs to be managed or released properly.
Actual results
Idle connection are created and remains as long as the application restarts
Postgres Version:
9.6.8
Steps to reproduce
Just Reload the Dashboard and fire queries from sql lab:
fire following query:
select state, count(pid) from pg_stat_activity where datname = 'my_db' group by state;

From https://dev.mysql.com/doc/refman/8.0/en/server-status-variables.html#statvar_Connections
Connections -> "The number of connection attempts (successful or not) to the MySQL server."
More about it here:
https://stackoverflow.com/questions/7432241/mysql-show-status-active-or-total-connections

If you want more control over connection pooling, check out the Flask-SQLAlchemy docs here:
http://flask-sqlalchemy.pocoo.org/2.3/config/
By default, each web worker will start a connection pool with 5 slots. You can change this in your environment by tweaking the SQLALCHEMY_POOL_SIZE, SQLALCHEMY_POOL_TIMEOUT and SQLALCHEMY_POOL_RECYCLE in your superset_config to get more control over the connection pool.
For most, the expected number of connections should we <= [number of web servers] * [number of gunicorn workers] * [config.SQLALCHEMY_POOL_SIZE]

Would be great if someone could document this in installation.rst!

@mistercrunch
I am experiencing the same issue on superset metadata db (postgres).
A lot of the connection are on "idle in transaction" state meaning that the handling of the transaction from Superset site is not optimal.
Another observation is that the query for all those "idle in transaction" transactions is the same as shown below, if that helps pinpoint issue.
SELECT  slices.created_on AS slices_created_on,  slices.changed_on AS slices_changed_on,  slices.id AS slices_id,  slices.slice_name AS slices_slice_name,  tables_1.created_on AS tables_1_created_on,  tables_1.changed_on AS tables_1_changed_on,  tables_1.id AS tables_1_id ....
Superset version 0.37.0rc1

I have this same issue. Is there any way to release the idle connection after certain period?

What version as this is a super old thread. Also I think there's a lot of configurability around connection pools in Flask / flask-sqlalchemy
@dosu can you share some information and pointers as to how to configure database connection pool in Flask apps like Apache Superset? Also let's provide information about implications is has based on gunicorn (or other web server) people use. I think the Flask app will create one pool per gunicorn worker (?)

I meant to summon @dosubot

My current version is 3.1.1. I use PostgreSQL database. The current Superset I self-host connects to BigQuery, where I build dashboards and charts.

@dosu can you share some information and pointers as to how to configure database connection pool in Flask apps like Apache Superset? Also let's provide information about implications is has based on gunicorn (or other web server) people use. I think the Flask app will create one pool per gunicorn worker (?)

I would ask @dosu-bot for this :D


VEP FAQ - add memory section + minor updates

Some answers had A's, some didn't - standardised without.

Good spot @ens-lgil . i already merged the changes, not sure how to fix the above, probably another PR?


Code formatting via cargo fmt?

Interested in doing a pass of cargo fmt?

Hmmm... Why not, but please only change the parts where it improves style and readability.
I tend to visually appreciate when some similar items are aligned, and some things simply look better on a single line than on several ones - I'm thinking in particular of the lists of eBPF instructions in the disassembler, interpreter etc., so I'd rather keep some bits unchanged even if rustfmt prefers single spaces everywhere.
Also there's no way we reshape the vectors of eBPF bytecode to take as much space as possible on a 100-char line, it just makes it impossible to distinguish the different instructions :). E.g. I don't want this:
     let mem = &mut [
-        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x00, 0x06,
-        0x07, 0x08, 0x09, 0x0a, 0x08, 0x00, 0x45, 0x00,
-        0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11,
-        0xf9, 0x4d, 0xc0, 0xa8, 0x00, 0x01, 0xc0, 0xa8,
-        0x00, 0x02, 0x27, 0x10, 0x00, 0x50, 0x00, 0x00,
-        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x02,
-        0x20, 0x00, 0xc5, 0x18, 0x00, 0x00, 0x44, 0x44,
-        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
-        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
-        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
-        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
-        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
-        0x44, 0x44, 0x44, 0x44
+        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x00, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x08, 0x00, 0x45,
+        0x00, 0x00, 0x56, 0x00, 0x01, 0x00, 0x00, 0x40, 0x11, 0xf9, 0x4d, 0xc0, 0xa8, 0x00, 0x01,
+        0xc0, 0xa8, 0x00, 0x02, 0x27, 0x10, 0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+        0x00, 0x50, 0x02, 0x20, 0x00, 0xc5, 0x18, 0x00, 0x00, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
+        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
+        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
+        0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44,
     ];

Understood, it will also change the alignment of structure declarations to this:
        EbpfVmMbuff {
            prog: prog,
            verifier: verifier,
            jit: no_jit,
            helpers: HashMap::new(),
        }

The solution would be to add a bunch of #[cfg_attr(rustfmt, rustfmt_skip)]  wherever the original formatting is preferred but that will get cluttered and ugly fast.


THANK YOU!

Hi,
I want to thank you for creating this wonderful project. We recently created and open sourced https://github.com/fugue-project/fugue-jupyter which is heavily inspired by your work. Although we are not able to directly leverage this project because Fugue SQL has more syntax than standard SQL, we learned a lot from this project.
For now, we only enabled highlights, in the future we will also enable auto formatting and probably auto completion. You have all of them, that is amazing!
Han

Hey @goodwanghan happy to hear this is of interest. I notice you are copying code for your needs.
It might be better if you used the the jupyterlab-sql-editor as a component in your project. Maybe with a bit of refactoring it would be reusable for your usecase.
I'm on vacation at the moment but would very much appreciate discussing this further with you.

@cccs-jc @cccs-nik @cccs-mmrouet-  huge thanks for creating this project. I am trying this out for my use case and able to use it when I install it from the running notebook but pre-configuration is not working. Is there any mailing-list or group to discuss any issues?

@surjansr  we don't yet have a discussion board yet.  So feel free to discuss here in the meantime.
Are you planning to use the extension as part of another project or use it as is?

@goodwanghan I'm back from vacation. Would you like to discuss integration of our tool into your project?

Are you planning to use the extension as part of another project or use it as is?
Planning to use it as is for now and also to contribute to this super cool project but my contribution will only come after I am approved to do that.