Create an SAP Fiori App Using SAP Business Application Studio

Tutorial URL: https://developers.sap.com/tutorials/appstudio-fioriapps-create.html
Please specify the step you are referring to
Hi There,
Tried to follow the steps but encountered problem with Step 8. Further details below:

Step
Parameter
Value

A
Select a system
My SAP systems                    <-- OK - dropdown value selectable

B
Select a source
ES5_BASIC_AUTH [Catalog]    <-- could not get this entry to be accepted (Forced to choose ES5 [Catalog] in dropdown and once selected asked for Gateway Authentication name and password for which I entered valid credentials? but  got "Not Authorized" when I clicked on Login button

C
Select a service
GWSAMPLE_BASIC  <---- Not available

And could not get project to be created. (next button was disabled).
Could you please clarify what action is required? Thanks in advance,
Regards
Peter

Hi Peter,
The ES5 destination should be configured in the subaccount from which you launch SAP Business Application Studio. In the Cockpit, below the Subscriptions tab (that you used in order to access AppStudio) there's the Connectivity tab, and within it there's the Destination option. In here the ES5 destination should be configured.
Please also refer to the following ES5 destination creation tutorial.
Regards,
Raz

Hi Raz
I have already subscribed to ES5 Gateway and it still does not seem to register when I go back into SBAS and use it. It still comes up with the only option ES5 [Catalog]  in the dropdown. So I cannot pick GWSAMPLE_BASICas the next in Select a Service option. I must be missing something here but have no clue what.
I cannot progress with the tutorial steps from there.
Thanks & Regards
Peter
On Monday, 13 July 2020, 13:52:02 BST, Raz Korn<EMAIL_ADDRESS>wrote:
Hi Peter,
The ES5 destination should be configured in the subaccount from which you launch SAP Business Application Studio. In the Cockpit, below the Subscriptions tab (that you used in order to access AppStudio) there's the Connectivity tab, and within it there's the Destination option. In here the ES5 destination should be configured.
Please also refer to the following ES5 destination creation tutorial.
Regards,
Raz
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi Peter,

Are you able to access the ES5 service directly?

Can you share screenshots of your destinations? In addition a screenshot of the ES5 destination configuration?

Regards - Raz

Hello again, I did get further this time. See attached scrshots but now cannot progress beyond Run configurations. Please let me in know any suggestions. Thanks in advance,
Document.docx

Hi Peter,
Great to hear that connecting to ES5 is working properly.
I tried reproducing the Run Configuration issue, but without success. I'll check with my colleagues.
Meanwhile, can you try the following workaround:

open the Explorer pane (the top button on the left side).
refresh the browser and wait until the Welcome page appears (if the "Show welcome page on startup" is checked), or wait until the "NPM SCRIPTS" section in the explorer pane gets filled with content.
Proceed with creating the run configuration, etc.

Also - please share if

a launch.json file was created inside a .vscode folder in the project's root directory.
a .env file was created inside the HTML5 module folder (BusinessPartners folder).
These files contain the content of the created run configuration. Please share their content / screenshot.

Regards - Raz

Hi Raz, I progressed a little bit more.
Document2.docx
Please find attached the steps where I got to this time round. Please suggest if any workaround. Thanks a lot.

Hi Peter,
As you probably guessed, all run configurations were created, but were not displayed.
The issue you experience now is a known issue - see issue 5300.
Regards, Raz

Hi Raz
No luck.I did the workaround but still receive same error when I run the conf again.Picked another run conf and get the same. Please see attached and check bottom 2 screenshots. Thanks.
Regards Peter
Document2.docx

Hi Peter,
It looks like npm install was run in the wrong directory. it should be run in the approuter directory. In your case something like "fd2-approuter", which is inside "fd2" directory. If you right-click "fd-2-approuter" directory in the explorer and choose "Open in terminal", the terminal will open in the right directory for executing the npm install.
Regards - Raz

Hello Raz
I finally managed to complete all 8 steps in the tutorial. Thank you for your assistance.
I wonder if you can tell me if there are any more tutorials like this one that I can go thru to enhance my experience of this trial cloud environment.
Regards
Peter
P.S Either Yourself or an Admin can close this issue log now. Thanks very much.

Hi Peter,
Excellent!
Despite the hick ups, I hope that you see the benefits of the new development environment and feel comfortable with it.
I'm not sure what exactly you mean by "experience of this trial cloud environment", but I suggest the following:

Enhance your knowledge of AppStudio, including hands-on, visit the homepage, or filter the tutorials  for it.

If you're interested in a specific business scenario or product: You can visit SCP Discovery Center and start your journey with a specific mission or look for the missions related to a specific service. Additional options are to filter the tutorials based on a specific topic or product or visit the relevant product page on SAP Community.

I'm sure that by googling you'll find additional resources :-)
Regards - Raz

Hello Raz
Thanks a lot for the help. Much appreciated. As I am currently on a trial sap cloud account that's what i meant. I will look into those urls and hope I can find more interesting tutorials like your one. Yes Google is the answer to everything if you know what to look for. Cheers.
RegardsPeter Li
On Wednesday, 15 July 2020, 15:34:03 BST, Raz Korn<EMAIL_ADDRESS>wrote:
Hi Peter,
Excellent!
Despite the hick ups, I hope that you see the benefits of the new development environment and feel comfortable with it.
I'm not sure what exactly you mean by "experience of this trial cloud environment", but I suggest the following:

Enhance your knowledge of AppStudio, including hands-on, visit the homepage, or filter the tutorials  for it.

If you're interested in a specific business scenario or product: You can visit SCP Discovery Center and start your journey with a specific mission or look for the missions related to a specific service. Additional options are to filter the tutorials based on a specific topic or product or visit the relevant product page on SAP Community.
I'm sure that by googling you'll find additional resources :-)
Regards - Raz
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


fix on grammar + more information on open-source llms using published papers & github repos

also i couldn't find the ref called VSPU17 in the slides :(

Thanks!

also i couldn't find the ref called VSPU17 in the slides :(

Yes, it's not automatically synchronized, I'd like to do a script that I can run to automatically synchronize the cite and refs


fix compatibility with choices.js

Fix issue where stopping all event propagation in modal container interferes with opening the choices.js modal, which has event listeners on document.
Sandbox with original issue: https://codesandbox.io/s/vue-final-modal-choices-js-issue-5o694?file=/src/components/VModal.vue (choices.js works fine outside the modal, but not inside the modal, where it does not open on click)
My solution: Instead of stopping all event propagation in the modal content, I'm using the .self modifier on the container to only capture direct clicks on it. I stole this from vue-js-modal code. They use a .self.stop modifier, but I'm not sure why the stop would be necessary here.
https://github.com/euvl/vue-js-modal/blob/2682950e4f9ad37b50d0c4bff0a009856df0be9a/src/components/Modal.vue#L15
Please note that I only tested this with a narrow set of configuration options for vue-final-modal as I am not that deep into your code.

Many thanks for spending time to solve this issue.
I tested your commit, and it seems all right.
I thought adding .self at vfmContainer and removing .stop at vfmContent is more precise and flexible.
I would merge this PR and publish a bugfix version both in Vue 2 and Vue 3.

Hi @ul8,
The fix is published in:

0.19.3 for Vue 2
1.6.2 for Vue 3


[v1.0][W14-B2] PTMan

@koo1993 @sunbangjie @hzxcaryn

@shanwpf @koo1993 @SunBangjie @hzxcaryn

@shanwpf @SunBangjie @hzxcaryn @koo1993
Please keep up the good work!
I would want you to mention the following in your Developer guide

For each team member what are the features (major and minor) you are proposing?
Within the scope of the project, how does it fit in (just a one or 2 line summary)
Please do this by end of day Monday 19 March.

@shanwpf @koo1993 @SunBangjie @hzxcaryn
Some comments added to the DG. Please take a look and update as necessary.


Isn't nn.AffineTransformMatrixGenerator a must-have module?

Hello,
I am looking at the demo: https://github.com/qassemoquab/stnbhwd/tree/master/demo
Seems you don't use nn.AffineTransformMatrixGenerator in https://github.com/qassemoquab/stnbhwd/blob/master/demo/spatial_transformer.lua
So there will no rotation, no scale, and no translation happen to images in training?

That module puts constraints on the transform matrix.
If no transformation is specified, it generates a generic affine transformation (nbParams = 6), which should be the same as not using the module, as far as I understand.

Got it. Thank you.


Identify link from subscription takes me to a strange place

I subscribe to Serpentes within California, and when I click on the Identify link it takes me to an Identify page that is definitely not California snakes. For example:

Takes me to this page.
I think this might be just when there are two instances of this subscription (eg the one shown above, plus one lower on the page showing a different California snake observation) appearing on the same page in the my dashboard but I'm not sure yet.
My subscriptions:

Seems to be happening again. Clicking on Identify here:

Leads to: https://www.inaturalist.org/observations/identify?created_d1=2019-01-02T15%3A19%3A35-0800&created_d2=2019-01-02T15%3A32%3A25-0800&place_id=14&subview=grid&verifiable=any

I think that commit fixed this.


Duplicate Accept Headers

Description
Duplicate accept headers like [Headers("Accept: application/json, application/json")] are generated when an endpoint has multiple responses with a payload. In this case, an endpoint can respond with HTTP 200 or 203 and both responses include a application/json payload in the response body
Support Key: ptbddgt
OpenAPI Specifications
openapi: '3.0.0'
info:
  version: 'v1'
  title: 'Test API'
servers:
  - url: 'https://test.host.com/api/v1'
paths:
  /jobs/{job-id}:
    get:
      tags:
      - 'Jobs'
      summary: 'Get job details'
      description: 'Get the details of the specified job.'
      parameters:
        - in: 'path'
          name: 'job-id'
          description: 'Job ID'
          required: true
          schema:
            type: 'string'
      responses:
        '200':
          description: 'successful operation'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResponse'
        '203':
          description: 'successful operation'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobResponse'
components:
  schemas:
    JobResponse:
      type: 'object'
      properties:
        job:
          type: 'object'
          properties:
            start-date:
              type: 'string'
              format: 'date-time'
            details:
              type: 'string'

Generated code:
public interface ITestAPI
{
    /// <summary>
    /// Get the details of the specified job.
    /// </summary>
    [Headers("Accept: application/json, application/json")]
    [Get("/jobs/{job-id}")]
    Task<JobResponse> Jobs([AliasAs("job-id")] string job_id);
}

@guillaumeserale I found a case where [Headers("Accept: xxx. xxx")] was generated using duplicate values. A fix is on the way

@christianhelle looks like I missed an edge case. Good catch! 👍


[Snyk] Security upgrade @atlassian/forge-graphql from 13.3.10 to 13.3.13

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

ui/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

658/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-JS-AXIOS-6124857
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

13.3.14 is the latest version. Closing as it has been fixed!


Content of book lost, when switching to new WYSIWYG editor

Describe the Bug
Hi
I encountered a bug with a particular book.
When I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented. Fortunately, the content is not lost. I can click on "Delete draft", go back and then the content is available again.
This issue ocourred only in one particular book so far.
Here is the error, which is visible in devtools -> console:
wysiwyg.js?version=v24.12:12 Error: Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: Expected node %s to have a parent.
    at x (wysiwyg.js?version=v24.12:4:591)
    at Eo.getParentOrThrow (wysiwyg.js?version=v24.12:6:5367)
    at Eo.insertBefore (wysiwyg.js?version=v24.12:6:10148)
    at $N (wysiwyg.js?version=v24.12:12:54218)
    at Di (wysiwyg.js?version=v24.12:12:51994)
    at _o (wysiwyg.js?version=v24.12:14:11452)
    at wysiwyg.js?version=v24.12:16:65925
    at jd (wysiwyg.js?version=v24.12:12:24836)
    at xe (wysiwyg.js?version=v24.12:12:25794)
    at po.update (wysiwyg.js?version=v24.12:12:43951)
jd @ wysiwyg.js?version=v24.12:12
xe @ wysiwyg.js?version=v24.12:12
update @ wysiwyg.js?version=v24.12:12
Zn @ wysiwyg.js?version=v24.12:16
Z$ @ wysiwyg.js?version=v24.12:20
(anonymous) @ app.js?version=v24.12:22
Promise.then
setup @ app.js?version=v24.12:22
initComponent @ app.js?version=v24.12:22
init @ app.js?version=v24.12:22
(anonymous) @ app.js?version=v24.12:22

Steps to Reproduce

Open a Book, which is in the old WYSIWYG format
Click on "Edit" (or press 'e')
Click on "Draft Options"
Select "Switch to new WYSIWYG (in alpha testing)
Confirm the Dialogue box with button Continue
"Are you sure you want to change the editor for this page?
Consider the following when changing editors:"
Confirm Browser Message "Leave website?"

End -> Blank page visible and error message in "Devtools -> Console" is visible

Expected Behaviour
The content should not be lost when switching to the new editor.
Screenshots or Additional Context
https://github.com/user-attachments/assets/973f26ff-317f-4459-9f45-46faee076d7c
Browser Details
Brave Browser
Exact BookStack Version
BookStack v24.12

Thanks @miracuruzrh,
If you're also able to share the source of the page content (via old WYSIWYG editor, source button towards the top-right of the editor toolbar) that would also be very helpful for replicating the exact cause here.


Allow for constructing a constant Choice

Choice doesn't provide a const fn for constructing the Choice, since you must use From to construct it. It might be nice to provide a from_u8 const constructor for users that need it.

Can we make the From impl a const fn?

I'm not totally clear on the details but from https://varkor.github.io/blog/2019/01/11/const-types-traits-and-implementations-in-Rust.html it looks like it may be possible to just declare the From impl we have to be const.

In the future it will be possible to do this, yes, but I'm not optimistic about the timeframe. It's worth considering a temporary solution that can be deprecated later.

Ah, sorry, I misunderstood the blog post I linked -- I thought it was talking about the current design and not a future expansion.  If you have a usecase for constructing const Choices, we could think about adding a from_const_u8 with a warning-of-future-deprecation.

In some of my code I have structures which contain a Choice to indicate something about the value, but when they contain a Choice I cannot create constant values for the structure anymore.

I would be happy to add a from_const_u8 with a doc comment noting the potential for future deprecation if that PR existed, but I would prefer to close this issue as "resolved discussion" until then :)


Use getLanguageTag to retrieve device locale

As discussed in #14.
I didn't change much code, tell me if there is something more I can do!

Thanks :)


CosmWasm 0.14

Update provwasm to use cosmwasm 0.14.x. See https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-alpha2/CHANGELOG.md

This includes updating the bindings, mocks, and all integration test contracts.

beta1 versions released

This issue is blocked until cosmwasm v0.14.0 is officially released.

v0.14.0 published


borg power undocumented, inconsistent change?

Description
Borg power cells are weird
A: they appear worse then they used to?
B: Borg starting cell (while being medium power cell) is about 20 times better then medium power cell, until downed or power cell swapped.
it appears that power cells got nerfed dramatically for borgs (but i don't see any changes) and whoever did it buffed starting power cell by a factor of 5-20?
i think reverting power consumtion, back then power cells as they were before felt 2x stronger then they are now(not counting weird starter borg state)

Could possibly maybe be related to the ninja power cell issue? #29477

not sure...
but if anyone want to reproduce, simply spawn in as a borg at roundstart, your power cell should now be medium power cell with alot more power then a high power cell.
if you are downed or power cell is swapped, the power levels should snap down to power cell's proper max charge level.
as it currently stands, there is no way as a starter borg that i would want my starter battery changed, because it easily lasts an entire round.


Add standings feature

This PR resolves issue #31, adding a standings feature.

@digitalSaint Great work!


Forecast minor improvements

Codecov Report

Merging #9 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master      #9   +/-   ##
======================================
  Coverage    50.9%   50.9%
======================================
  Files          22      22
  Lines         998     998
======================================
  Hits          508     508
  Misses        490     490

Impacted Files
Coverage Δ

src/system_data.jl
57% <ø> (ø)
:arrow_up:

src/deterministic_forecast.jl
0% <0%> (ø)
:arrow_up:

src/supplemental_constructors.jl
22.22% <0%> (ø)
: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 37975d1...394f0b9. Read the comment docs.


[language] Move crate language/move-prover/spec-lang to language/move-model

The spec-lang crate has become a general tool for reflecting over move code, used by tools other than the prover. This PR is a 1st step to reflect this correctly and move it out of the prover. In subsequent PRs, some tools currently in move-prover will be moved out there as well and decoupled from the prover command line driver.
The suugested name is move-model, reflecting that this crate's modules provide a model of the Move language which is on a higher abstraction level than file format. It nevertheless contains also the logic for type checking the spec language, which may itself at some point be moved to a different place.
This is a zero-code-change PR, just renaming.
Motivation
Clean up code base.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Existing tests
Related PRs
NA

release binaries dependency change summary:
target packages:
  A move-model 0.1.0 (workspace, path 'language/move-model')
    * features: [none]
  R spec-lang 0.1.0 (workspace, path 'language/move-prover/spec-lang')
    * (old features: [none])

On the name "move-model": I can't think of anything better than "model" but should we consider dropping the "move-" prefix? I'm envisioning a potential future where the current "language" directory is the top-level of standalone Move project, presumably in a directory named "move", and it seems unnecessary to have a bunch of things named "move/move-*". On the other hand, perhaps "model" alone is too vague to suggest its purpose.
On the content: there's a lot of stuff here that doesn't seem to fit in a "model" (e.g., the specification ASTs, translation from the compiler, and type checking). You mention that the type checking may move elsewhere. That definitely seems like it should happen, and I would say the same for the ASTs and translation. This is just the first step, right?

On the name "move-model": I can't think of anything better than "model" but should we consider dropping the "move-" prefix? I'm envisioning a potential future where the current "language" directory is the top-level of standalone Move project, presumably in a directory named "move", and it seems unnecessary to have a bunch of things named "move/move-*". On the other hand, perhaps "model" alone is too vague to suggest its purpose.
On the content: there's a lot of stuff here that doesn't seem to fit in a "model" (e.g., the specification ASTs, translation from the compiler, and type checking). You mention that the type checking may move elsewhere. That definitely seems like it should happen, and I would say the same for the ASTs and translation. This is just the first step, right?

Yes, agreed with removing the move prefix, but I guess we can do this in one later step for all other crates as well. And yes this is only the first step, though some things will be difficult to move out of there. For instance the spec lang AST really is part of the model (a Move program 'model' is bytecode + spec AST + metadata).

Yes, agreed with removing the move prefix, but I guess we can do this in one later step for all other crates as well. And yes this is only the first step, though some things will be difficult to move out of there. For instance the spec lang AST really is part of the model (a Move program 'model' is bytecode + spec AST + metadata).

I see. At some point, we might want to use this model for tools that don't need the specs, but we can consider that later.

/land

I'm OK to go ahead with this for now, but I'm adding @tnowacki as a reviewer to make sure he sees it and has a chance to weigh in later.

Yes, agreed with removing the move prefix, but I guess we can do this in one later step for all other crates as well. And yes this is only the first step, though some things will be difficult to move out of there. For instance the spec lang AST really is part of the model (a Move program 'model' is bytecode + spec AST + metadata).

I see. At some point, we might want to use this model for tools that don't need the specs, but we can consider that later.

We use it already for such tools today, namely abigen, diagen, and errmapgen. The API provided in env.rs is a swiss-knife for multiple use cases. If you don't need specs, don't use the functions related to it.

:broken_heart: Test Failed - commit-workflow

/land


[BUG] Jira Search (Independent Publisher) - 401 Unauthorized due to deprecated authentication type

Type of Connector
Independent Publisher Connector
Name of Connector
Jira Search
Describe the bug
This connector is no longer able to authenticate with Jira Cloud. This is due to Jira Cloud deprecating basic auth for API requests.
{
"error": {
"code": 401,
"source": "uk-001.azure-apim.net",
"clientRequestId": "53605c25-1ca8-41fb-b895-cdd8365da606",
"message": "The response is not in a JSON format.",
"innerError": "Basic authentication with passwords is deprecated.  For more information, see: https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/\n"
}
}
Is this a security bug?
No, this is not a security bug
What is the severity of this bug?
Severity 1 - Connector is broken or there's a very serious issue
To Reproduce
Set up a new power automate flow with this Jira Search (Independent Publisher) connector, use an account you know will auth when you login to Jira Cloud manually.
Expected behavior
I expected authentication to Jira Cloud to be authorized and the API requests to call successfully.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build)
CLI version (paconn --version)
OS version
Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Additional context
Likely requires an update to fix

Hi @paulculmsee are you aware of this issue?

No and I no longer have access to a Jira cloud instance to confirm as my client switched back to Jira Datacenter (onprem).
I'll have to spin up a demo instance and test but the docco here suggests that api token will work with basic auth. If anyone has a chance to confirm/replicate this please let me know.
https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/

Hi all,
I can confirm that I was able to use the JIRA SEARCH feature in Power Automate. It's as @paulculmsee suggests above. Simply provide your email address for your JIRA user in the "username" field. In the "password" field, provide the API token you created in your JIRA user account. Works like a charm!

Dave

Thank you so much @pmf-dave.
@mattbze can you please confirm and close the issue.
Thank you so much.


Duplicate exception in gamelift service definition

The DeleteFleet operation in the gamelift service definition has two identical entries for InvalidFleetStatusException

Thanks for making us aware of the issue!

The duplicated error has been removed, thanks again!

Thanks!


OPS-1205 - Handle German and English message

Description
During the creation of the new release package one testcase failed because of a message that is expected to be german but was english instead. Within the login.feature the scenario
@wrongPasswordAdminLogin had the following error message:
✖ Then the login must fail # shared_steps/common-steps.js:48
AssertionError

expected - actual

-Login failed.
+Login fehlgeschlagen.
at Object.wrongLoginResult (/home/travis/build/hpi-schul-cloud/schulcloud-client/integration-tests/page-objects/pages/generalPagesBeforeLogin/LoginPage.js:102:75)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
The problem is caused by the detection and usage of the browser language on the login page.

Links to Tickets or other pull requests
https://ticketsystem.hpi-schul-cloud.org/browse/OPS-1205

Changes
Updated the test to accept English and German message.

Deployment

New Repos, NPM pakages or vendor scripts

Approval for review

[ ] All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

Link to Definiton of Done
More and detailed information on the definition of done can be found on Confluence

we need a general guideline how to oüerate here. i recommend running all tests in a certain locale , and have additional tests for localisation


Display #included shaders in project / edit in IDE

Shaders that are included are not listed in the pipeline or object tabs or in the shader pass properties. It would be good to have an "Add Shader" option, and to be able to click on them to edit in the IDE. It would also be good to click on the #include "my_shader.hlsl" line in the top-level shader and open the included one that way.
Sorry if this already exists and I just haven't found it yet. I scanned the docs but didn't see this feature.

Thank you for the suggestion. I will try to add the ability to CTRL + click on the #include line in the upcoming update.
As for the "Add shader" option, I would love to add that especially since it would greatly benefit the web version of SHADERed. Though, I am not sure yet what that should look like UI-wise. Maybe as an object in the "Objects" window?

The ability to CTRL+click on the #include line has been implemented with commit 0131425dd61cd772c7710a5e2b53f9954c2d9bea .

I've also expanded this idea and now if you CTRL+click on the variable names, function names, etc... SHADERed will take you to their definition:

I'll leave this issue open though since I would like to expand this feature so that "common" shader files can easily be added to the project (basically I'd like to add the "Add shader" feature somehow).
Thank you once again for the suggestion!

Breakpoints are not working for me in an included file.
Start the debugger, Step, the included file opens successfully in a new window, but any breakpoints in that file are ignored. Even if the file is already opened before starting the debugger, the breakpoints inside it still fail to work.
Also, if the file is not in the same directory as the project file, Ctrl + Click doesn't work. A window opens with the file name, but the window is blank, has no code in it. If the debugger is started though like I explained above, the file contents open correctly, no matter where the file is.
Is this a known behavior?


Question on How to Get R and L Mic/StereoMix Volume Data

Hi,
I am working on a small script which reads data from the Mic/StereoMix devices on Windows and want to be able to get the volume data for the R and L channels separately. I suspect it should be an easy thing to do, but couldn't find any examples searching online. Here is the code I have so far which gets the volume data as a single value, and sends it to the PeppyMeter program over http.
# script to read mic or any input device and send it to PeppyMeter for display
#!/usr/bin/env python3
import numpy as np
import sounddevice as sd
import requests

# specify the input device number in this case stereo mix
input_device = 18
peppy_url = 'http://localhost:8001/vumeter'
#peppy_url = 'http://<IP_ADDRESS>:8001/vumeter'

print(sd.query_devices())

print("\nEnter 'q' or 'Q' to Exit")

# function to handle data from audio input device
def audio_callback(indata, frames, time, status):
    volume_norm = int(np.linalg.norm(indata) * 10)
    #print(volume_norm)
    print("|" * volume_norm)

    # send json volume data
    volume_data = {"left": volume_norm, "right": volume_norm, "mono":volume_norm}
    response = requests.put(peppy_url, json=volume_data)
    #print(response)

try:
    stream = sd.InputStream(device=input_device, callback=audio_callback)
    with stream:
        while True:
            response = input()
            if response in ('', 'q', 'Q'):
                break

except KeyboardInterrupt:
    print('Interrupted by user')
except Exception as e:
    print(type(e).__name__ + ': ' + str(e))

The variable indata is a NumPy array where each audio channel is stored as a column. You can get a single column with the usual NumPy indexing. For example, to get all values for the second (i.e. the right) channel, you can use this:
indata[:, 1]

Printing in the callback is something that should be avoided. I might suggest using a queue to post the input data to another thread. Then calculate the norm in that thread and send the request to the peppy URL.  Your modified code may look something like this.
# script to read mic or any input device and send it to PeppyMeter for display
#!/usr/bin/env python3
import numpy as np
import sounddevice as sd
import requests
import queue
from threading import Thread, Event

# specify the input device number in this case stereo mix
input_device = 18
peppy_url = 'http://localhost:8001/vumeter'
#peppy_url = 'http://<IP_ADDRESS>:8001/vumeter'
data_q = queue.Queue()
exit_event = Event()
consumer_thread = Thread(target = calculate_volume_norm, args=(exit_event, data_q), daemon=True)

print(sd.query_devices())
print("\nEnter 'q' or 'Q' to Exit")

def calculate_volume_norm(stop_event, in_q):
    while not stop_event.is_set():
        try:
            data = in_q.get(timeout = 0.1)
            volume_norm = int(np.linalg.norm(data) * 10)
            print("|" * volume_norm)

            # send json volume data
            volume_data = {"left": volume_norm, "right": volume_norm, "mono":volume_norm}
            response = requests.put(peppy_url, json=volume_data)
        except queue.Empty:
           # We timed out.
            ...

# function to handle data from audio input device
def audio_callback(indata, frames, time, status, q_in):
    if status:
        print('status')
    q_in.put_nowait(indata)

try:
    stream = sd.InputStream(device=input_device, callback=lambda x,y,z,w: audio_callback(x,y,z,w,data_q))
    exit_event.clear()
    consumer_thread.start()
    with stream:
        while True:
            response = input()
            if response in ('', 'q', 'Q'):
                break

except KeyboardInterrupt:
    print('Interrupted by user')
except Exception as e:
    print(type(e).__name__ + ': ' + str(e))
finally:
    exit_event.set()
    consumer_thread.join()


[DRAFT] resolve conflicts by creating a copy; fix auto-save

Fixes: https://github.com/microsoft/pxt-arcade/issues/2990
Fixes: https://github.com/microsoft/pxt-arcade/issues/3108
Fixes: https://github.com/microsoft/pxt-arcade/issues/3107
Fixes: https://github.com/microsoft/pxt-arcade/issues/3129
Improves how we handle conflicts.
Fixes issues around auto-save.

[ ] hunting bug that has to do with inconsistent local state for the header's cloud local params

[ ] fix project rename being reverted


Added optional radius parameter

This allows to make computations on spheres other than the Earth.

:+1: thanks!


highlightspans at beginning of line does not work

If the highlighted span is at the very start of a line, it's not functional. The result is a literal copy of the line including the backtick character, without highlighting.
`this does not work`

I have the same problem.A work around is add a space before the opening single quote


Multiple crashed with STT engines

Hi everybody!
I'm new on Github and hopeful to find some help to solve my problems! I've been trying to install Jasper on my Raspberry Pi 3 running on Rasbian, and having overcome many issues by looking into the forums, there is one that can't seem to be solve with my knowledge...
My problem is the following: After trying three different STT engines, I can't find one that makes Jasper happy...
1- Google STT:
For the Google STT, here is how my profile.yml looked like:
carrier: ' '
first_name: Edouard
gmail_address: **************
gmail_password: ***********
last_name: Fourmaux
wmo_id: 07630
phone_number: '7********9'
prefers_email: false
timezone: FR
stt_engine: google
keys:
    GOOGLE_SPEECH: AIza*************************200
tts_engine: google-tts

And when running jasper.py, I get the following error everytime the microphone hears something:
CRITICAL:client.stt:API key missing, transcription request aborted.
I don't know why the API key is not read or even detected... I have tried many different configuration to make sure it wasn't something wrong with the space: one or two or more spaces before the GOOGLE-SPEECH, I have tried with and without quotes etc.
2- AT&T STT engine
With this one, I run jasper.py and get the following Python error:
ERROR:root:Error occured!
Traceback (most recent call last):
  File "jasper.py", line 146, in <module>
    app = Jasper()
  File "jasper.py", line 109, in __init__
    stt_passive_engine_class.get_passive_instance(),
  File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
  File "/home/pi/jasper/client/stt.py", line 42, in get_instance
    instance = cls(**config)
TypeError: __init__() takes exactly 3 arguments (1 given)

3- Witai SST
With this last engine, I almost get the same message when running jasper.py, only the number of argument that the init() takes is different...
ERROR:root:Error occured!
Traceback (most recent call last):
  File "jasper.py", line 146, in <module>
    app = Jasper()
  File "jasper.py", line 109, in __init__
    stt_passive_engine_class.get_passive_instance(),
  File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
  File "/home/pi/jasper/client/stt.py", line 42, in get_instance
    instance = cls(**config)
TypeError: __init__() takes exactly 2 arguments (1 given)

Could someone point me in the right direction?
I send you many thanks in advance!
Edouard

Remove TAB from

keys:
    GOOGLE_SPEECH: AIza*************************200

and simply put 2 SPACES
keys:
  GOOGLE_SPEECH: AIza*************************200

Do not bother about ATT-STT, it is already shutdown.
for Wit-ai STT get your access tocken and insert following config in profile.yml config

        stt_engine: witai
        witai-stt:
          access_token:    <ACCESS TOKEN>

Thanks G10DRAS for your reply!
1- unfortunately, as I mentionned in my previous message, I tried all sorts of syntax for the Google SST API key. It includes adding spaces (one, two or more) instead of tab (and I think I didn't even tried tab because it returned a Python Error about an unexpected "\t" or something), or adding quotes like " or ' around the key, or writing the key on a new line among other things I tried.
The interesting thing is that I get the exact same error if I don't write anything at all on this line... for these previous reasons, I suspect it doesn't come from the syntax but from something else...
2- I take good note of that
3- Same problem than with Google STT, it is exactly how my profile.yml looked like when I tried Wit-ai, but that gave me the error I mentioned in my first message.
Thanks for your help

how you are running jasper ? sudo ?

Yes i'm running Jasper by typing the following line:
sudo python jasper.py

thats why the issue. run it as normal user
python jasper.py

Hi G10DRAS!
Now you were right! Now it jumps to another error message, which is the following...
CRITICAL:client.stt:Request failed with http status 403
WARNING:client.stt:Status 403 is probably caused by an invalid Google API key.

As you may guess, i checked and rechecked a thousand times my API key and it is correct. Do I need to put quotes around the key?

Ooooookay!!! It's working now! I have let Google down and I am now using Wit-ai!
I have just a quick couple of questions while I have someone that seems to know Jasper quite well!
1- The AI keeps understanding 'JUST FOR' instead of 'JASPER'... May be because I am French or something... I am quite comfortable with Python programming, so do you happen to know where I could find the code that tells what word should trigger the high beep, I may try to add 'JUST FOR' to the list of the triggering word so it works better ;)
2- I found the time period between the high beep and the low beep is very short... Is the low beep triggered when the mic hears something or is there a time period during which the AI waits for the user to speak? Do you know any trick to increase that time ?
Thank you so much in anycase, you made my stuff worked, and I am so grateful for it! :D

Well there is no particular reason why such issue occurs. (OS, STT, Mic, Alsa config... blah blah).

You can change Keyword in jasper.py line 120.
see /client/mic.py there are various parameters THRESHOLD , LISTEN_TIME, THRESHOLD_MULTIPLIER, MAGIC NUMBER. Try adjusting them for your environment.

One user solve it by doing following.
Yes, i will solve it throw modify mic.py and introduce an different loop timing in active listener and also remove the break (i have to consider it)
i would to add:
for i in range (0,100):
time.sleep(0.5)
something like this

@G10DRAS Do you have any suggestions for this error below? Ive tried to install sphinx as my STT. After some digging I realized the instructions on the Jasper website is wrong for installing sphinx. I found a way around but Im getting this error below preventing jasper from running. I put two spaces instead of the tab like you instructed the person above me but I do not understand this mistake.
RuntimeError: hmm_dir '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k' does not exist! Please make sure that you have set the correct hmm_dir in your profile.

yaml config don't like TAB.
The below error explain itself:
RuntimeError: hmm_dir '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k' does not exist! Please make sure that you have set the correct hmm_dir in your profile.
Use following config for sphinx stt and replace path of fst model and hmm_dir with your installation.
stt_engine: sphinx
pocketsphinx:
  fst_model: '/home/pi/phonetisaurus/g014b2b.fst'
  hmm_dir: '/usr/local/share/pocketsphinx/model/en-us/en-us'

@G10DRAS How do I find my hmm_dir so I can paste the correct path in my profile? I still get the same error when I replaced my profile with what you suggested

Search for dir under /usr/local/share/pocketsphinx/model which contains below files
'mdef', 'feat.params', 'means', 'noisedict', 'transition_matrices', 'variances'
thats hmm_dir.
or download the latest model from CMU Sphinx Site

@G10DRAS ok I downloaded the model and corrected the path to my hmm_dir. Jasper is now able to work but it doesn't understand what I'm saying. After failing I tried switching to google's STT but of course it is very limited so I figured it would be better to stick it out with Pocketsphinx. I understand its possible to train sphinx to your words/voice. I tried to follow the steps in the link below but of course more errors occurred. Do you recommend any methods or videos or tutorials or anything I should try to get sphinx to understand me? (By the way I thank you so much for getting me this far! Everytime I take a step for with Jasper some error just brings me back smh. Developers for Jasper should pay you for fixing so much of their terrible code and instructions)
Attempt at training sphinx in Jasper:
https://www.youtube.com/watch?v=VLhj_WYxo7g

In Jasper Pocketsphinx operates on limited vocab, so you can't expect it will transcribe full sentences, hence there is no point to train sphinx with your voice.

@G10DRAS Ok. So is there a way to at least see what words Sphinx recognizes? If so I'll just adjust my modules in jasper to those words sphinx recognize. For example if I say "Light" and sphinx recognizes it as "Now". I could change my module keyword to "Now" and my light module will activate.
You think I could trick jasper in someway like this or do I just need to stick with another STT

If "Light" transcribe as "Now" then its wrong. "Light" is "Light", "Now" is "Now" not even "Wow".
Jasper automatically generates vocab and lm for Pocketsphinx.
It might possible that something is wrong with Pocketsphinx installation itself.
Try compiling pocketsphinx (with sphinxbase) from source and install it. (see jasper doc for instruction, version and links)
Test the installation with pocketsphinx_continuous if that work well then Jasper will also work well with Pocketsphinx.
Test your USB Mic with arecord and check if there is no problem in recording your voice.
Another STT ? You dont have much choices left unless you are ready to pay for online STT service.


Java 8u332 fails to generate doctype, results in layout issues

Running the portal on Java 8u332 causes uPortal to return html pages without the doctype declaration, which makes the browser go into Quirks mode, and a console message notes there may be some layout issues.
Some specific layout issues with Java 8u332 have been experienced with the icon size for the search widget, and extra space in portlets (such as Announcement Admin).
Running with Java 8u292 causes Tomcat / uPortal to return the doctype, and does not display the layout issues.
Workaround is not to upgrade Java install past 8u292 until this issue is sorted out.

Using Java 8u275
$ java -version
openjdk version "1.8.0_275"

Doctype is <!DOCTYPE html SYSTEM "EMPTY">

$ java -version
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (Temurin)(build 25.322-b06, mixed mode)

results in the following
<!DOCTYPE html SYSTEM "EMPTY">

from debian, installed with SDKman:
$ java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (Temurin)(build 25.332-b09, mixed mode)

https://github.com/uPortal-Project/uPortal/blob/master/uPortal-webapp/src/main/resources/layout/theme/respondr/respondr.xsl#L115
This line generates the Doctype. It depends on Xalan from what I can tell. Trying to force an HTML 5 compatible Doctype doesn't seem to work with various attributes on this line. Trying to add an explicit xsl:text line in the / template fails as well.

Reference: http://www.microhowto.info/howto/generate_an_html5_doctype_using_xslt.html

Part of the uP 5.12.0 release.


Custom Scripting Language support

At the moment, Gradle supports two scripting languages for build scripts: Groovy and Kotlin. This decision was implemented in commit 45be6604a83fc7ab582c25fcbeef450de45ec864, where the previous SPI mechanism was removed (it is still referenced in the ScriptPluginFactorySelector  documentation). It would be helpful if the supported script languages would be extensible again.
Expected Behavior
It is possible to extend the supported scripting languages.
Current Behavior
The supported scripting languages are hardcoded in org.gradle.internal.scripts.ScriptingLanguages#ALL.
Context
In our specific case we would like to use configuration-based build files (e.g. JSON or TOML), but there could be other usecases.

Thank you for your interest in Gradle!
This is the intended behavior and there’s no plan to change it. This issue will be closed.

Note that we're working on improving script compilation performance, parallel configuration and configuration avoidance.


update GETTING_STARTED.md

update init_detector() & inference_detector() parameter

Thanks a lot!

Hi @SlideLucask！
First of all, we want to express our gratitude for your significant PR in the mmdetection project. Your contribution is highly appreciated, and we are grateful for your efforts in helping improve this open-source project during your personal time. We believe that many developers will benefit from your PR.
We would also like to invite you to join our Special Interest Group (SIG) private channel on Discord, where you can share your experiences, ideas, and build connections with like-minded peers. To join the SIG channel, simply message moderator— OpenMMLab on Discord or briefly share your open-source contributions in the #introductions channel and we will assist you. Look forward to seeing you there! Join us ：https://discord.gg/raweFPmdzG
If you have WeChat，welcome to join our community on WeChat. You can add our assistant ：openmmlabwx. Please add "mmsig + Github ID" as a remark when adding friends：）
Thank you again for your contribution❤``


Description for tracks.

Actual Behaviour
The description of tracks is not being displayed properly as of now. The current layout is displaying incomplete and tricked out description details.
Expected Behaviour
The entire description should be displayed. I am thinking of including the description in the tracksessions activity itself.
Screenshots of the issue

Would you like to work on the issue?
Yes.
Target Milestone to solve the issue
Till which milestone will you be fixing the issue?
https://github.com/fossasia/open-event-android/milestone/27

@mahikaw If accepted, this will be covered under #1649
Is it fine?

@iamareebjamal I'll wait for the approval then. Till then I'll work on something else 👍

Closing because we don't want track descriptions, as suggested by @niranjan94


send_message can hang when using kwargs for meta

When calling send_message with keyword args from an agent or container the function can block indefinitely without any obvious reason.
This may be related (or the same issue) as the indefinite hanging of TCP communications on the mqtt branch TCP example code.
It will work fine when calling send_message from the main function of the program but fail when doing an equivalent call from handle_message.
The entire construct of using kwargs... for meta fields should maybe be revised anyway. It is probably quite prone to such errors because kwargs... passes a Dict{Symbol, Any} which we parse to string by the symbol names. This is already unwieldy to use when we want to pass fields with a name given by some constant and we never really want these fields as symbols regardless.
Maybe just switch to an explicit Dict{String, Any} field to pass meta fields into?

Addendum: Problem may be unrelated to kwargs and just have been random chance that adding or removing kwargs sometimes made a message pass through and sometimes not. Seems to be a general issue with tcp send_message on the development branch.

I got a working example of the error happening without kwargs. It seems to be related to calling send_message from handle_message. See example code below (this does not terminate but Billy gets the reply message.
Note that the problem is not waiting for send_message in main. It will not terminate without that, either. Adding more threads (in hopes that something just doesn't let go of the single thread) also did not make it terminate.
using Mango
using Sockets: InetAddr, @ip_str
import Mango.AgentCore.handle_message

@agent struct ReplyAgent

end

@agent struct LazyAgent

end

function handle_message(agent::ReplyAgent, message::Any, meta::Any)
    reply_addr = AgentAddress(meta["sender_id"], meta["sender_addr"], nothing)
    println("$(agent.aid) got a message \nwith content $message \nand meta $meta")

    send_message(agent, "a reply!", reply_addr)
end

function handle_message(agent::LazyAgent, message::Any, meta::Any)
    println("$(agent.aid) got a message \nwith content $message \nand meta $meta")
    println("But will do nothing!")
end

function main()
    c1_addr = InetAddr(ip"<IP_ADDRESS>", 5555)
    c1 = Container()
    c1.protocol = TCPProtocol(address=c1_addr)

    c2_addr = InetAddr(ip"<IP_ADDRESS>", 5556)
    c2 = Container()
    c2.protocol = TCPProtocol(address=c2_addr)

    a1 = ReplyAgent()
    a2 = LazyAgent()

    register(c1, a1, "Timmy")
    register(c2, a2, "Billy")

    # start container loop
    wait(Threads.@spawn start(c1))
    wait(Threads.@spawn start(c2))

    timmy_addr = AgentAddress("Timmy", c1_addr, nothing)
    billy_addr = AgentAddress("Billy", c2_addr, nothing)

    # send some messages
    wait(send_message(a2, "hello", timmy_addr))

    # stop container loop
    wait(Threads.@spawn shutdown(c1))
    wait(Threads.@spawn shutdown(c2))
end

main()
```

Moving both agents to a single container will terminate! So it's something with multi-container and this send_message in the handle_message


Implement auto labeling feature for Spark job type

Could you create an issue and associate it with the commit?
What's your plan for documenting this feature?

Plan for documenting this feature is to keep it inside the wiki where Spark job type is currently documented. Please let me know if you prefer other ways.

Since this code is open sourced, is documenting this feature in an internal wiki good enough unless you intend to make this feature internal only for now.

@fangshil @HappyRay:
Do you have any more comments on this PR?
Adding documentation is outside of the scope of this PR and will be address separately.
Can we merge this PR?

The patch looks good to me.
On Tue, Sep 6, 2016 at 1:42 PM, Victsm<EMAIL_ADDRESS>wrote:

@fangshil https://github.com/fangshil @HappyRay
https://github.com/HappyRay:
Do you have any more comments on this PR?
Adding documentation is outside of the scope of this PR and will be
address separately.
Can we merge this PR?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/azkaban/azkaban-plugins/pull/237#issuecomment-245084479,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGN0ASz_I164npNE5_cjP8M2sgi90gpwks5qndBRgaJpZM4JxJwf
.


ocamlPackages.ppx_cstubs: <IP_ADDRESS> -> 0.7.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://opam.ocaml.org/packages/ppx_cstubs/ppx_cstubs.0.7.0.
meta.description for ocamlPackages.ppx_cstubs is: "Preprocessor for easier stub generation with ocaml-ctypes"
meta.homepage for ocamlPackages.ppx_cstubs is: "https://github.com/fdopen/ppx_cstubs"
meta.changelog for ocamlPackages.ppx_cstubs is: "https://github.com/fdopen/ppx_cstubs/raw/0.7.0/CHANGES.md"
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
Warning: a test defined in passthru.tests did not pass
Warning: no invocation of /nix/store/gq95x5dnwx7dahhy9ib3gbfp7mgg1rgs-ocaml4.13.1-ppx_cstubs-0.7.0/bin/ppx_cstubs had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 0.7.0 with grep in /nix/store/gq95x5dnwx7dahhy9ib3gbfp7mgg1rgs-ocaml4.13.1-ppx_cstubs-0.7.0
found 0.7.0 in filename of file in /nix/store/gq95x5dnwx7dahhy9ib3gbfp7mgg1rgs-ocaml4.13.1-ppx_cstubs-0.7.0

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

0 x86_64-linux rebuild(s)
0 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
ocamlPackages.ppx_cstubs

Instructions to test this update (click to expand)

Build yourself:
nix-build -A ocamlPackages.ppx_cstubs https://github.com/StridBot/nixpkgs/archive/52121b4549d71c8b57c4097761c5cca480728591.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/gq95x5dnwx7dahhy9ib3gbfp7mgg1rgs-ocaml4.13.1-ppx_cstubs-0.7.0
ls -la /nix/store/gq95x5dnwx7dahhy9ib3gbfp7mgg1rgs-ocaml4.13.1-ppx_cstubs-0.7.0/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @osener for testing.

@ulrikstrid also CI did not trigger here

@SuperSandro2000 I amended and pushed so now it's triggered (sorry for the ping spam)


DropdownMenu over UIKitView is not clickable

Describe the bug
When a DropdownMenu pops up over a UIKitView, it is not clickable and clicking on the UIKitView does not dismiss it. On Android, it works correctly over an Android View.
Affected platforms
Select one of the platforms below:

iOS

Versions

Kotlin version*: 1.9.0
Compose Multiplatform version*: 1.5.0-beta02
OS version(s)* (required for Desktop and iOS issues): iOS 16.4

To Reproduce
https://github.com/brewin/DropdownMenuBug
Expected behavior
The menu should be clickable like on Android.

Thanks for reporting the issue. We'll be looking into it.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


New component: Tooltip

Related information and insight

https://aksel.nav.no/komponenter/core/tooltip
https://design.entur.org/komponenter/feedback/tooltip
https://designsystem.dk/komponenter/tooltip/
https://carbondesignsystem.com/components/tooltip/usage/
https://atlassian.design/components/tooltip/examples
https://designsystem.digital.gov/components/tooltip/

Relevant issues:

https://github.com/digdir/designsystem/pull/206

Specification and requirements

Add specification and requirements

### Tasks
- [x] Write about specification, requirements and scope in this issue
- [ ] https://github.com/digdir/designsystem/issues/1093
- [ ] https://github.com/digdir/designsystemet/issues/1494
- [ ] https://github.com/digdir/designsystem/issues/911
- [x] Tooltip: WCAG-Test

The Tooltip component is ready for use: https://storybook.designsystemet.no/?path=/docs/felles-tooltip--docs


Allow FMOD Event to be modified in sequencer

Adds ability to change FMOD event of audio component in sequences.

I have passed this on to the Dev team for consideration, thank you for the suggestion!


how should generate persian.txt

hi
how should generate persian.txt file?

hi
just save your persian text in file. copy and past your persian text and
name it "persian.txt".
On Sat, Feb 15, 2020 at 8:24 PM Monirzadeh<EMAIL_ADDRESS>wrote:

hi
how should generate persian.txt file?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mehotkhan/persian-word-cloud/issues/6?email_source=notifications&email_token=AEONEHW7E7JXA3KONDD2X2DRDAM3ZA5CNFSM4KV2JGO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4INZCVXA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEONEHQLKS5MQXVIARIGVYLRDAM3ZANCNFSM4KV2JGOQ
.

for twitte of a user how should i get all of them in persian.txt?

Hi
If by "all of them" you mean the words, You can use the twitterscraper library.
you can scrape tweets with
import twitterscraper as ts
tweetsLimit = 500 #count of tweets it will scrape
username = 'mtinhabibi' #userName of account you want to get tweets from
tweets = ts.query_tweets_from_user( username , tweetsLimit )

this will get you 500 tweets object (see libraryDoc>twitterscraper>query>tweets) so you should separate their texts
tweetsTexts = ""
for tweet in tweets :
    tweetsTexts = tweetsTexts + tweet .__dict__['text']

tweetsTexts  String will be all tweets texts ;You can use
listed = tweetsTexts.split()
result = sorted(set(Listed ), key = lambda word : tweetsTexts.count(word))
result.reverse()

the result  will be a list of words sorted by their count in all tweets.
for writing as a text file you should use
with open('listfile.txt', 'w') as myFile:
    for word in result :
        filehandle.write('%s\n' % word )

just copy your texts in file.
On Mon, Feb 17, 2020 at 2:27 PM Monirzadeh<EMAIL_ADDRESS>wrote:

for twitte of a user how should i get all of them in persian.txt?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mehotkhan/persian-word-cloud/issues/6?email_source=notifications&email_token=AEONEHTZB5VY7HWREMBWAQLRDJURJA5CNFSM4KV2JGO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL567DI#issuecomment-586936205,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEONEHWKRQMD6RSVAURL4R3RDJURJANCNFSM4KV2JGOQ
.

سلام؛
موقع اجرای برنامه با خطا روبرو شدم متن خطا این هست :
TypeError: argument of type 'bool' is not iterable


[Question] How to get list of marked items in ListView?

I've successfully marked items with AllowMarking enabled but I now need to get the list of items that were marked. What's the best way to do that for the ListView instance? Doesn't seem like there is a direct property here.

You have to get all the IsMarked that are true, like this:
var result = new List<string>();
for (int i = 0; i < source.Count; i++) {
	if (list.Source.IsMarked (i)) {
		result.Add(source [i]);
	}
}

Thank you @BDisp 👏


Item Count Exagerations

Issue description:
Items are steadily increasing by double or triple amounts in storage disks but keeping the correct number of items in the system.
What happens:
The disks are filling up with nonexistent items but players can only take the correct amount of items
What you expected to happen:
The disks to hold the correct number of items and accurately count them
Steps to reproduce:

Put a stack of items into the grid
Walk away for a few minutes
Open the grid and try to take out your stack of items
...

Version (make sure you are on the latest version before reporting):

Minecraft: 1.14.4
Forge: 28.1.87
Refined Storage: 1.7

Does this issue occur on a server? [yes/no]
Not Confirmed
If a (crash)log is relevant for this issue, link it here:
[pastebin/gist/etc link here]

Did you try in creative mode?
Did you "copy" the disks with middle mouseclick after having one in inventory?

I've mostly been doing this in creative mode, which is how I spotted the problem and confirmed it.
I don't have an NBT viewer to answer that.
It looks like the disks are all reading the items and trying to store them simultaneously. Is this a priority issue?

Try this with taking fresh disks and not just copying them. If you copy the disks with middleclick, the NBT will be copied and they are all the same.

The disks ID should show on the tooltip if you enable advanced tooltips with F3+h. Having multiple disks with the same ID would create the behavior you described.

Did you have this issue with the External Storage or only disks?

It was because of the same item number. Thank you!


Compile Test - Do not merge - WIP

Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[ ] I signed an Apache CLA.
[ ] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

FWIW, if the sequence of these seems to matter in tests, we should make them not matter (by converting to a Set first).

@markusthoemmes  I observed some weird parameter sequence related problems on my local system that should have concluded that the original Travis test should never have been successful.  But it is of course better to prevent such problems instead of being hit by them at unforeseen times.


Feature request: Support of the assert of the Logging.Log buffer when testing

Use case
When creating Unit Tests, I want to be able to assert if the messages have been logged on the AWS.Lambda.Powertools.Logging.Logger instance buffer.
This will be helpful to assert in the tests the logged messages for the current logger instance, like is possible with the Amazon.Lambda.TestUtilities.
Is it already possible in some way? And/Or does this feature request make sense?
Solution/User Experience
Currently the Amazon.Lambda.TestUtilities provides the TestLambdaLogger() implementation of the ILambdaLogger that stores all the messages in a buffer and writes the messages to the console.
With this helper we can assert if the message has been logged:
var logger = new TestLambdaLogger();
Assert.Contains("Processed message foobar", logger.Buffer.ToString());

Creating this kind of helper can be a good way to follow for the AWS.Lambda.Powertools.Logging.Logger or creating a method to get the current logger instance.
Alternative solutions
No response
Acknowledgment

[X] This feature request meets Powertools for AWS Lambda (.NET) Tenets
[X] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and TypeScript

Thanks for opening the issue @coderade we are experimenting with different approaches:
A couple of questions:

How are you logging, can you share a snippet?
Are you using a static Logger, creating a logging instance in the constructor or other?
Are you using ILambdaContext outside the handler?

We are thinking of one approach, if in a Lambda environment (were we have access to context) we will write to the context.Log output so you will have the message in the TestLambdaLogger buffer and you can assert on that.


Enable preview feature to allow global filter to be at the end.

Description
This resolves #147, An option to always store the global filter at the end of the description would ensure that tasks are compatible with the day planner plugin.
It also would allow #462 to be abandoned as it is getting no response.
This is based off the branch from #670 so you will see additional changes that will go when that is merged.
This PR moves the global filter out of the description completely and will prepend or append it when serializing the task to a markdown string. This is handled in the Task object and in the Task edit UI.
It is under a new feature flag so code will only be called when that is enabled. The flag is not marked as stable until we get user feedback and then an additional PR can be made to enable it as a regular setting.
Motivation and Context
See the following discussions, PRs and Issues.

https://github.com/schemar/obsidian-tasks/discussions/146
https://github.com/schemar/obsidian-tasks/discussions/75
https://github.com/schemar/obsidian-tasks/discussions/219
https://github.com/schemar/obsidian-tasks/pull/462
https://github.com/schemar/obsidian-tasks/issues/147

How has this been tested?
Added updated tests to the toString method of the Tasks object.
Screenshots (if appropriate):
NA
Types of changes

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

Checklist:

[x] My code follows the code style of this project and passes yarn run lint.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] My change has adequate Unit Test coverage.

By creating a Pull Request you agree to our Code of Conduct. For further guidance on contributing please see contributing guide

I'm trying to get the list of PRs down to ones that are feasibly likely to merge, with the goal of merging the ones that still compatible enough with the current code that I can make them mergeable.
I've done a quick review of this one, even though it is still Draft. It contains changes unrelated to the description, and moves some files to different locations (making them no possible to compare against the previous version in the GitHub website).
So sorry but merging this is not realistic and I'm closing it.
Future options include:

A separate PR that only extracts changes in this area from @sytone's https://github.com/sytone/obsidian-tasks-x
Me incrementally merging changes from @sytone's https://github.com/sytone/obsidian-tasks-x in to this repo - after I have:

changed the directory structure in this repo to match that in tasks-x
changed the line length in this repo to match that in tasks-x


Remove experimental feature warning for Flow Framework plugin docs

Description
Removes the warning box for Flow Framework plugin (Automating Configurations docs section) experimental feature.
Checklist

[x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Related to #6713


we should support stylesheets with errors

at the monent a styleshee like this:
  * {
  aa;
  display: block;
  }

or this:
  * {
  aa;
  display: block;
  }

crashes the parser. but we should look if we could still continue parseing and return the valid styles (same as the browser does)

If someone would does a rewrite, we could look as how es-module-shim created a very fast lexer https://guybedford.com/es-module-shims-production-import-maps for ideas how this could be done for css.


vue.common.min.js file not updated in build

Version
2.2.6
Reproduction link
https://github.com/vuejs/vue/releases/tag/v2.2.6
Steps to reproduce

Install Vue with "npm install vue" > version will be 2.2.6

What is expected?
dist/vue.common.min.js has version 2.2.6
What is actually happening?
dist/vue.common.min.js has version 2.0.3

dist/vue.common.js has correctly version 2.2.6

Thanks, this file is actually deprecated and included in the package by accident. Future releases will not include this file.

Thank you @yyx990803, which file should be used instead? It's used in several Webpack starter kits.

@scriptPilot .common.js files are used for bundling, and bundle minification should be done with other parts of the code, .e.g. with webpack.optimize.UglifyJSPlugin + webpack.DefinePlugin (see docs)

@yyx990803 - Thanks!


optimizeCss removes carbon-charts css

Hello,
I tried carbon-charts and wondered why it had missing css even though I imported the css file. It turns out that it was caused by optimizeCss(). Nevertheless, I can work around it by importing stylesheet from html head.

I experience the same issue. Not only does optimizeCss remove carbon-charts styles (in my case the legend), but it also removes the search bar styles of the UI shell and any custom css in custom components unless they are wrapped with a :global() tag.
Using:
"@carbon/charts-svelte": "^0.55.1",
"carbon-components-svelte": "^0.61.1",
"carbon-preprocess-svelte": "^0.6.0",
"sass": "^1.49.7",
"svelte": "^3.46.4",
"svelte-preprocess": "^4.10.2"
"postcss": "^8.4.6",

I am also having the same issue.


DuckDB accelerator fail to run Clickbench queries: This feature is not implemented: Unsupported DataType: conversion: Binary

Describe the bug
DuckDB fail on clickbench queries 11, 12, 13, 14, 15, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 37, 38 when accelerating from hits parquet file. The following error will be shown
Status { code: Internal, message: "This feature is not implemented: Unsupported DataType: conversion: Binary", metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Fri, 08 Nov 2024 19:22:30 GMT", "content-length": "0"} }, source: None }

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '...'
Scroll down to '...'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Runtime Details
Spicepod
Add the relevant spicepod.yml section.
Output of describe table
Add any relevant describe table output here.
Output of explain query
Add any relevant explain query output here.
E.g. explain select 1
+---------------+--------------------------------------+
| plan_type     | plan                                 |
+---------------+--------------------------------------+
| logical_plan  | Projection: Int64(1)                 |
|               |   EmptyRelation                      |
| physical_plan | ProjectionExec: expr=[1 as Int64(1)] |
|               |   PlaceholderRowExec                 |
|               |                                      |
+---------------+--------------------------------------+

spice, spiced, OS info

spice version: spice version
spiced version: spiced --version
OS info: uname -a

Have you tried this on the latest trunk branch?

[ ] Yes
[ ] No

If possible, run spiced with DEBUG log level
By setting the environment variable SPICED_LOG="task_history=DEBUG,spiced=DEBUG,runtime=DEBUG,secrets=DEBUG,data_components=DEBUG,cache=DEBUG,extensions=DEBUG,spice_cloud=DEBUG"
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Close by https://github.com/spiceai/datafusion/pull/63 and https://github.com/spiceai/datafusion/pull/60


Free CDN

Hi,
I see that you are serving static files through Cloudfront. If you're paying them for the traffic, let me know at oskar[atsymbol]cdn77[com] and we might be able to provide the CDN free of charge.
Kind regards
Oskar

The CDN isn't anywhere near the bulk of the costs, the EC2 machines are. Thank you, but I'll pass in favour of keeping the tech in one place.


Add min_value and max_value to CommandOption

Summary
Add min_value and max_value to CommandOption.
Reference: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
Checklist

[x] I have run nox and all the pipelines have passed. (it's taking so long 😭)
[x] I have made unittests according to the code I have added/modified/deleted.

I think this is ready for a re-review.


[#408] Improve error messages

Types of changes

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

Description

Added error handling to DruxtClient
Added error handling to DruxtModule

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] All new and existing tests are passing.

Screenshots/Media:

While test coverage is lower than I'd like, I don't believe theres much risk with this particular change and I'm going to merge this.


Second Google Account forgotten

Some days ago  I added my "original" account, which still works fine (cookie was generated from Chrome).
Today i struggled to get Firefox to save the file of another account, but finally did get to save it (not sure what really made the difference, but I think it worked when I allowed restricted websites).
This second integration did work for about 4 hours, now it asks me to reconfigure and readd the cookie file from some hours ago is no longer accepted.
The first integration is still working as expected.

Unfortunately, these cookie files are a bit of a mystery, at least to me. The procedures I wrote are based on discussions I've read and suggestions from the locationsharinglib author. All I can say is, try to follow the procedure again, paying very close attention. The really important points seem to be, 1) use a private window, 2) do NOT log out of the Google account at any point in the procedure, and 3) close the private window ASAP after downloading the cookies file.
There is also some suggestion that logging out of the Google account anywhere (another browser, computer or app) can invalidate the cookies obtained with this procedure.
Don't really know what else to tell you.

Looks like you've got things working using the "Alt acct only" strategy, is that right? FYI, I added a note about this scenario to README.md. Not sure why this is the case, but for some people, I guess this is what it takes to make it work. Ok to close?

yes to all, sorry, should have mentioned that here.


NTR 'lipoprotein releasing activity'

Hello,
Following up on #17004
and based on the suggestion in
https://github.com/geneontology/go-annotation/issues/2285
I will create a new term:

LABEL: lipoprotein releasing activity:
DEF: The activity of recognizing mature outer membrane lipoproteins in the inner membrane and releasing from the inner membrane so that they can be transported across the periplasmic space to their target location, the outer membrane. This function exists in diderm bacteria.
PARENT:  molecular carrier activity

@amandamackie I reformulated the definition so that it applied to a Molecular Function. Please let me know if you have comments.
Thanks, Pascale

@amandamackie please reopen if you spot problems with this new term.


[core] Help with vdex file

Issue details
I converted Manager.vdex with vdexExtractor.exe to Manager_classes.cdex file.
Loading to jadx-gui-1.5.1.exe message:
No classes loaded, nothing to decompile !
What tool to use?
Thanks for your help.
Manager.zip
Relevant log output or stacktrace
No response
Provide sample and class/method full name
No response
Jadx version
jadx-gui-1.5.1.exe

@inkubudup jadx supports only .dex files.
And looks like vdexExtractor has additional tool to convert that .cdex to dex, check links here: https://github.com/anestisb/vdexExtractor#compact-dex-converter

Thank you for your help, everything works.
    Dnia 19 listopada 2024 18:02 skylot<EMAIL_ADDRESS>napisał(a):

github.com @inkubudup  jadx supports only  .dex  files.
And looks like  vdexExtractor  has additional tool to convert that  .cdex  to dex, check links here:  github.com https://github.com/anestisb/vdexExtractor#compact-dex-converter
—  Reply to this email directly,  github.com view it on GitHub , or  github.com unsubscribe .  You are receiving this because you were mentioned. Message ID:  <skylot/jadx/issues/2349/2486267370 @ github . com>


oAuth flow works fine on Android 7 and above but see ERR_UNKNOWN_URL_SCHEME on Android < 7

Xamarin.Auth Issue
IF BUG, INCLUDE THIS PART:
Seeing ERR_UNKNOWN_URL_SCHEME error while redirecting oAuth flow back to android app only for the versions less than 7.
oAuth flow works fine with latest android versions 7 and above
Version

[ ] nuget version = <IP_ADDRESS>
[ ] component version =
[ ] sample
Followed the steps exactly mentioned here, https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/authentication/oauth

Steps to reproduce

try the oAuth flow on Oreo API 27
try the same oAuth flow on KitKat API 19

Platform:

[] .NET version = .NET Standard 2.0
[] mono version =

Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
Can you also include a screen shot?
IF IT IS A NEW FEATURE REQUEST, INCLUDE THIS PART:
Feature description
Write a description of the feature. How should it work? How should it look?
Include some graphics if this could help!

@xamarinrk1 can you please provide a simple sample that denonstrates the issue.
Regards

no response after more than two weeks, closing


KAFKA-13129: replace describe topic via zk with describe users

Replace the unsupported describe topic via zk with describe users to fix the system tests.
For the upgrade_test case where TLS support is not required, use list_acls instead.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@ijuma @rondagostino , please help take a look. Thank you.

@showuon upgrade_test passes with these changes, I assume?

@ijuma , I have to admit that I cannot complete the upgrade_test test successfully in my local environment, and I think that's because my machine is not power enough to complete it. So sometimes I get "Kafka server didn't finish startup in 60 seconds", and sometimes I get "Replicas did not rejoin the ISR in a reasonable amount of time".
I checked the system tests results that run by @rondagostino in this PR: https://github.com/apache/kafka/pull/10982 before the configCommand change merged, all upgrade_test are passed. So, I assume the only issue we have now for upgrade_test is zk.describe(). At least, I can confirmed that the zk.describe() failure is fixed now.
Sorry, and thank you.

No worries, I ran a few variations and they look good. Also cherry-picked this to 3.0.


Clarification about 'validate_full_vcmr"

HI @linjieli222,
I was looking at the validation phase of the retrieval setup and I can see you have implemented two different variants: validate and full_validate. From my understanding, validate only computes loss function scores while full_validate also generates predictions for which retrieval-based metrics are used. The validate setup is quite straightforward to me, so no clarification is required there. However, the full_validate looks quite complex and I haven't seen an actual description of this method in the original paper. In particular, could you please report a brief description of the steps that are reported in this function: https://github.com/VALUE-Leaderboard/StarterCode/blob/main/eval_vcmr.py#L172?

@aleSuglia
We follow the implementation of VCMR evaluation from TVR:  https://github.com/jayleicn/TVRetrieval/blob/master/baselines/clip_alignment_with_language/inference.py
Let me first explain some high-level details:

There are several evaluation settings here:

SVMR: Single Video Moment Retrieval. Given the ground truth video, the model needs to predict the corresponding video segment (with start and end timestamps) according to the query.
VR: Video Retrieval. Given the query and the testing video corpus, the model needs to rank all video candidates and retrieve the most relevant one.
VCMR: Video Corpus Moment Retrieval. This is the combination of both SVMR and VR. For each of the top-k retrieved videos, the model generates video segments. The final predictions are aggregations of retrieved videos and predicted video segments, and ranked by the product of confidence scores (or probabilities) for retrieved videos/predicted video segments. In our implementation, we use k=200, which is set by the hyperparameter max_before_nms in config.

The HERO model will generate three predictions: _q2video_scores ( for video retrieval ), _st_probs (logits of start frame index for single video moment retrieval, ), _ed_probs (logits of end frame index for single video moment retrieval)
https://github.com/VALUE-Leaderboard/StarterCode/blob/7f124b4ddef86af887ca593b369d470bb0e3586b/eval_vcmr.py#L275-L278

flat_st_ed_sorted_scores is the aggregated predictions for VCMR based on all three predictions above. https://github.com/VALUE-Leaderboard/StarterCode/blob/7f124b4ddef86af887ca593b369d470bb0e3586b/eval_vcmr.py#L345-L346

To explain the process:

We first compute all video embeddings at L208-246
For all queries in the evaluation split, we generate predictions of _q2video_scores, _st_probs, _ed_probs, flat_st_ed_sorted_scores for each query on each video in the corpus at L248-367
Since the four predictions are still probabilties or scores, we need to generate predictions according to these scores and save the predictions into svmr_res, vr_res, vcmr_res

SVMR prediction for each query is a list of top-100 predicted video segment, where each element is formatted as[gt_vid, start_timestamp, end_timestamp, prediction_scores], L370-398
VR prediction for each query is a list of top-100 retrieved video ids, where each element is formatted as[gt_vid, 0, 0, prediction_scores], L400-415
VCMR prediction for each query is a list of top-100 predicted video ids together with the corresponding segment in the retrieved video, where each element is formatted as[retrieved_vid, start_timestamp, end_timestamp,  prediction_scores], L416-458

All these results are saved into a Python dictionary eval_res. https://github.com/VALUE-Leaderboard/StarterCode/blob/7f124b4ddef86af887ca593b369d470bb0e3586b/eval_vcmr.py#L460
If the evaluation split contains ground truth annotations, the results are sent to the evaluation function (the same one used for evaluation on CodaLab) to calculate R@1, 5, 10, 100 at L467-503
In the end, L505-557 performs non-maximal suppression onto the results, if nms_thd is set. In TVR, the authors have tried nms_thd=0.5. Note that all results in VALUE are without nms.

Hope this helps.
Thanks,
Linjie


lineplot y-range tweaks

Fixes #1010

@bobular yep I trust you for sure! 😄 For the second one, I misunderstood their intention, been thinking of [yMin, yMax] anytime for number variable. Thank you for letting me know. Will approve this PR.


fix clear load streams before shutdown SegmentFileWriterThreadPool

Proposed changes
In ~LoadStreamMgr(), clear load streams before shutdown SegmentFileWriterThreadPool.
To fix the following check failure.


Feature/threadsafe ssh client

This pull request is meant to open a discussion on thread safety.  We have seen reports in the wild of multiple SSH clients being built.  This is a first pass at threadsafe connect and disconnect methods.
Potential thread issues:
public void Connect()
        {
            if (IsConnecting)
            {
                Debug.Console(0, this, Debug.ErrorLogLevel.Warning, "Connection attempt in progress.  Exiting Connect()");
                return;
            }

            IsConnecting = true;
            ConnectEnabled = true;
            Debug.Console(1, this, "attempting connect");\

Potential fix:
public void Connect()
        {
            ConnectEnabled = true;
            DisposeOfTimer(disconnectTimer);

            if (
                Interlocked.CompareExchange(
                    ref connectionProgress,
                    ConnectionProgress.InProgress,
                    ConnectionProgress.Idle) == ConnectionProgress.Idle)
            {
                if (client != null && client.IsConnected)
                {
                    Debug.Console(1, this, "Ignoring connection request... already connected");
                    Interlocked.Exchange(ref connectionProgress, ConnectionProgress.Idle);
                    return;
                }

Reference material:
https://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock
https://www.albahari.com/threading/part4.aspx#_Interlocked

It's a rework, I can rename the file if that makes it easier.  When doing it, it was easier for me to look at both.

Good point.  We should probably have Connect() return a boolean of true if not blocked.

I'd agree but the ICommunicationReceiver has a Connect() void method on it


Add quit command... for everything.

IPC MESSAGE RECEIVED. CONFIRM.

Waiting for tests... :clock1:


recyclarr sync - [ERR] Release profiles require Sonarr v3.

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Receiving the following on the initial sync
===========================================
Processing Radarr Server: [movies]
===========================================

[INF] Created 4 New Custom Formats
[INF] Total of 4 custom formats were synced
[INF] Processing Quality Definition: movie
[INF] Number of updated qualities: 14
[INF] Completed at 4/14/2024 3:09:34PM

===========================================
Processing Sonarr Server: [series]
===========================================

[ERR] Release profiles require Sonarr v3. Please use `custom_formats` instead or use the right version of Sonarr.

recyclarr --version
6.0.2+Branch.tags-v6.0.2.Sha.5b163d9dc621f28624270e2543334d8ee8599d98

Sonarr Version
<IP_ADDRESS>1
.NET
Yes (6.0.13)
Database
Sqlite 3.36.0
Database Migration
205
AppData Directory
/Users/richard/.config/Sonarr
Startup Directory
/Applications/Sonarr.app/Contents/MacOS

Thanks
Expected Behavior
Not get the error
Steps To Reproduce
recyclarr sync
Environment & Versions
- Operating System: MacOS 14.4.1
- Architecture: x86
- Recyclarr Version:
- Recyclarr Build:
- Sonarr Version:
- Radarr Version:

Recyclarr Log File(s)
[15:35:54 DBG] Recyclarr Version: 6.0.2+Branch.tags-v6.0.2.Sha.5b163d9dc621f28624270e2543334d8ee8599d98
[15:35:54 DBG] App Data Dir: /Users/richard/.config/recyclarr
[15:35:54 DBG] Config Templates Repo: Using Branch & Clone URL: master, https://github.com/recyclarr/config-templates.git
[15:35:54 DBG] Trash Guides Repo: Using Branch & Clone URL: master, https://github.com/TRaSH-Guides/Guides.git
[15:35:54 DBG] Config Templates Repo: Executing git command with args: ["status"]
[15:35:54 DBG] Config Templates Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/config-templates
[15:35:54 DBG] Trash Guides Repo: Executing git command with args: ["status"]
[15:35:54 DBG] Trash Guides Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/trash-guides
[15:35:54 DBG] Config Templates Repo: Command Output: On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
[15:35:54 DBG] Trash Guides Repo: Command Output: On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
[15:35:54 DBG] Config Templates Repo: Executing git command with args: ["remote","set-url","origin","https://github.com/recyclarr/config-templates.git"]
[15:35:54 DBG] Config Templates Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/config-templates
[15:35:54 DBG] Trash Guides Repo: Executing git command with args: ["remote","set-url","origin","https://github.com/TRaSH-Guides/Guides.git"]
[15:35:54 DBG] Trash Guides Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/trash-guides
[15:35:54 DBG] Config Templates Repo: Command Output:
[15:35:54 DBG] Trash Guides Repo: Command Output:
[15:35:54 DBG] Trash Guides Repo: Remote 'origin' set to https://github.com/TRaSH-Guides/Guides.git
[15:35:54 DBG] Config Templates Repo: Remote 'origin' set to https://github.com/recyclarr/config-templates.git
[15:35:54 DBG] Config Templates Repo: Executing git command with args: ["checkout","-f","master"]
[15:35:54 DBG] Config Templates Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/config-templates
[15:35:54 DBG] Trash Guides Repo: Executing git command with args: ["checkout","-f","master"]
[15:35:54 DBG] Trash Guides Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/trash-guides
[15:35:54 DBG] Config Templates Repo: Command Output: Your branch is up to date with 'origin/master'.
[15:35:54 DBG] Config Templates Repo: Executing git command with args: ["fetch","origin"]
[15:35:54 DBG] Config Templates Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/config-templates
[15:35:54 DBG] Trash Guides Repo: Command Output: Your branch is up to date with 'origin/master'.
[15:35:54 DBG] Trash Guides Repo: Executing git command with args: ["fetch","origin"]
[15:35:54 DBG] Trash Guides Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/trash-guides
[15:35:54 DBG] Trash Guides Repo: Command Output:
[15:35:54 DBG] Config Templates Repo: Command Output:
[15:35:54 DBG] Trash Guides Repo: Executing git command with args: ["reset","--hard","origin/master"]
[15:35:54 DBG] Config Templates Repo: Executing git command with args: ["reset","--hard","origin/master"]
[15:35:54 DBG] Config Templates Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/config-templates
[15:35:54 DBG] Trash Guides Repo: Using working directory: /Users/richard/.config/recyclarr/repositories/trash-guides
[15:35:54 DBG] Config Templates Repo: Command Output: HEAD is now at a89613b fix: Add French includes to include library (#76)
[15:35:54 DBG] Trash Guides Repo: Command Output: HEAD is now at dc82f90 update(imax-descriptions): language and descriptions around imax(e) (#1879)
[15:35:55 DBG] recyclarr.yml: Loading config file: /Users/richard/.config/recyclarr/recyclarr.yml
[15:35:55 DBG] Processing Sonarr server series
[15:35:55 DBG] HTTP Request: GET http://REDACTED:8989/api/v3/system/status
[15:35:55 DBG] HTTP Response: 200 GET http://REDACTED:8989/api/v3/system/status
[15:35:55 DBG] Sonarr Version: <IP_ADDRESS>1
[15:35:55 ERR] Release profiles require Sonarr v3. Please use custom_formats instead or use the right version of Sonarr.
[15:35:55 DBG] Cleaning up logs using max files of 20
Configuration YAML
# yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/config-schema.json

# A starter config to use with Recyclarr. Most values are set to "reasonable defaults". Update the
# values below as needed for your instance. You will be required to update the API Key and URL for
# each instance you want to use.
#
# Many optional settings have been omitted to keep this template simple. Note that there's no "one
# size fits all" configuration. Please refer to the guide to understand how to build the appropriate
# configuration based on your hardware setup and capabilities.
#
# For any lines that mention uncommenting YAML, you simply need to remove the leading hash (`#`).
# The YAML comments will already be at the appropriate indentation.
#
# For more details on the configuration, see the Configuration Reference on the wiki here:
# https://recyclarr.dev/wiki/yaml/config-reference/

# Configuration specific to Sonarr
sonarr:
  series:
    # Set the URL/API Key to your actual instance
    base_url: http://localhost:8989
    api_key: redacted

    # Quality definitions from the guide to sync to Sonarr. Choices: series, anime
    quality_definition:
      type: series

    # Release profiles from the guide to sync to Sonarr v3 (Sonarr v4 does not use this!)
    # Use `recyclarr list release-profiles` for values you can put here.
    # https://trash-guides.info/Sonarr/Sonarr-Release-Profile-RegEx/
    release_profiles:
      # Series
      - trash_ids:
          - EBC725268D687D588A20CBC5F97E538B # Low Quality Groups
          - 1B018E0C53EC825085DD911102E2CA36 # Release Sources (Streaming Service)
          - 71899E6C303A07AF0E4746EFF9873532 # P2P Groups + Repack/Proper
      # Anime (Uncomment below if you want it)
      #- trash_ids:
      #    - d428eda85af1df8904b4bbe4fc2f537c # Anime - First release profile
      #    - 6cd9e10bb5bb4c63d2d7cd3279924c7b # Anime - Second release profile

# Configuration specific to Radarr.
radarr:
  movies:
    # Set the URL/API Key to your actual instance
    base_url: http://localhost:7878
    api_key: redacted

    # Which quality definition in the guide to sync to Radarr. Only choice right now is 'movie'
    quality_definition:
      type: movie

    # Set to 'true' to automatically remove custom formats from Radarr when they are removed from
    # the guide or your configuration. This will NEVER delete custom formats you manually created!
    delete_old_custom_formats: true

    custom_formats:
      # A list of custom formats to sync to Radarr.
      # Use `recyclarr list custom-formats radarr` for values you can put here.
      # https://trash-guides.info/Radarr/Radarr-collection-of-custom-formats/
      - trash_ids:
          - ed38b889b31be83fda192888e2286d83 # BR-DISK
          - 90cedc1fea7ea5d11298bebd3d1d3223 # EVO (no WEBDL)
          - 90a6f9a284dff5103f6346090e6280c8 # LQ
          - dc98083864ea246d05a42df0d05f81cc # x265 (720/1080p)

        # Uncomment the below properties to specify one or more quality profiles that should be
        # updated with scores from the guide for each custom format. Without this, custom formats
        # are synced to Radarr but no scores are set in any quality profiles.
        #quality_profiles:
        #  - name: Quality Profile 1
        #  - name: Quality Profile 2
        #    #score: -9999 # Optional score to assign to all CFs. Overrides scores in the guide.
        #    #reset_unmatched_scores: true # Optionally set other scores to 0 if they are not listed in 'names' above.

Sonarr / Radarr Logs
No response

This is not a bug. Look at the error message, it literally tells you what the issue is:

[ERR] Release profiles require Sonarr v3. Please use custom_formats instead or use the right version of Sonarr.

And your version of Sonarr:
Sonarr Version
<IP_ADDRESS>1

[ERR] Release profiles require Sonarr v3. Please use custom_formats instead or use the right version of Sonarr.

Which of the two do you recommend, use custom_formats, or roll back Sonarr to v3?

I don't make any specific recommendations. Everyone's situation and setup is different. I do recommend, however, that you do your own research and come to the best decision. Do note that in the upcoming v7 release, Sonarr v3 support is completely removed, so keep that in mind as you explore your options. See the 7.0 upgrade guide on the wiki for more details.


Code

Hello
Is the code to be found anywhere? Nothing is uploaded.
Thanks.

Hi, thanks for your interest. We will release the codes soon. Please stay tuned, and we appreciate your patience!

@weijielyu Thanks for your work! I am interested in this work, would you please send me the code? My email address is<EMAIL_ADDRESS>Thanks for your helping.


Test bot_owner logic in /json/users

This fixes a small gap in our coverage for get_members_backend.

Automated message from Dropbox CLA bot
@showell, it looks like you've already signed the Dropbox CLA. Thanks!

This is related to #1002, but I don't think it was specifically called out in your list.

Posted one comment on the mypy failure; otherwise this looks good!

Ha, good catch by mypy.  Just pushed again.

(it doesn't appear you actually pushed?)

I did push, but got a different mypy error now.

trying again now

You can run tools/run-mypy locally to test it without doing a build; takes <10s for me.

Thanks.  I didn't know I could run it locally so easily until just before the last push, but my last push seems to run clean in my environment but still breaks Travis.  I'll fight this again tomorrow with a clear head.

Ahh, the travis failure is our Python 3 compatibility linter; it's just an idiomatic improvement to the code :)

Merged, thanks @showell!


K8s does not reject non-filled required fields

done https://github.com/instaclustr/operator/pull/707