Python3 compatiblity

Thank you for creating a pull request to contribute to Adafruit's GitHub code!
Before you open the request please review the following guidelines and tips to
help it be more easily integrated:

Describe the scope of your change--i.e. what the change does and what parts
of the code were modified.  This will help us understand any risks of integrating
the code.

Describe any known limitations with your change.  For example if the change
doesn't apply to a supported platform of the library please mention it.

Please run any tests or examples that can exercise your modified code.  We
strive to not break users of the code and running tests/examples helps with this
process.

Thank you again for contributing!  We will try to test and integrate the change
as soon as we can, but be aware we have many GitHub repositories to manage and
can't immediately respond to every request.  There is no need to bump or check in
on a pull request (it will clutter the discussion of the request).
Also don't be worried if the request is closed or not integrated--sometimes the
priorities of Adafruit's GitHub code (education, ease of use) might not match the
priorities of the pull request.  Don't fret, the open source community thrives on
forks and GitHub makes it easy to keep your changes in a forked repo.
After reviewing the guidelines above you can delete this text from the pull request.

I have this error running low_level on Python 3.5
Using adapter: Default Adapter
Disconnecting any connected UART devices...
Traceback (most recent call last):
File "/Users/danielvera/PycharmProjects/Adafruit_Python_BluefruitLE/examples/low_level.py", line 106, in
ble.run_mainloop_with(main)
File "/usr/local/lib/python3.5/site-packages/Adafruit_BluefruitLE-0.9.0-py3.5.egg/Adafruit_BluefruitLE/corebluetooth/provider.py", line 265, in run_mainloop_with
File "/usr/local/lib/python3.5/site-packages/PyObjCTools/AppHelper.py", line 242, in runConsoleEventLoop
if not runLoop.runMode_beforeDate_(mode, nextfire):
File "/usr/local/lib/python3.5/site-packages/PyObjCTools/AppHelper.py", line 77, in scheduleCallWithDelay_
self.performCall()
File "/usr/local/lib/python3.5/site-packages/PyObjCTools/AppHelper.py", line 95, in performCall
func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/Adafruit_BluefruitLE-0.9.0-py3.5.egg/Adafruit_BluefruitLE/corebluetooth/provider.py", line 291, in _raise_error
TypeError: 'error' object is not callable
How can I solve this?
Thanks

This should support Python 3 now--I merged in some changes last month that added Linux support, and then added support on the OSX side too (although I was having trouble getting the Python cocoa layer to work there in Python 3... I'm not really sure it works but it's outside the scope of this code unfortunately).


Add missing ESM types subpath export condition.

Describe the bug
The TypeScript 4.7+ NodeNext module resolver does not honor the legacy types property in the package.json file.  You need to add a types export condition as described here.

Note that the "types" condition should always come first in "exports".

{
  "exports": {
    ".": {
      "types": "./dist/src/index.d.ts",
      "require": "./cjs/nats.js",
      "import": "./esm/nats.js"
    }
  }

or, since the "." export path is optional if there is only one element:
{
  "exports": {
      "types": "./dist/src/index.d.ts",
      "require": "./cjs/nats.js",
      "import": "./esm/nats.js"
  }

Reproduction
git clone git@github.com:scott-lc/livekit-nodenext-issue.git
cd ./livekit-nodenext-issue
npm install
npm run build

Compilation failure -
index.ts:1:22 - error TS7016: Could not find a declaration file for module 'livekit-client'. '.../livekit-nodenext-issue/node_modules/livekit-client/dist/livekit-client.esm.mjs' implicitly has an 'any' type.
  Try `npm i --save-dev @types/livekit-client` if it exists or add a new declaration (.d.ts) file containing `declare module 'livekit-client';`

1 import { Room } from "livekit-client";
                       ~~~~~~~~~~~~~~~~

Found 1 error in index.ts:1

Logs
No response
System Info
System:
    OS: macOS 12.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 1.50 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.17.0/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Browsers:
    Chrome: 104.0.5112.101
    Edge: 101.0.1210.32
    Firefox: 105.0.1
    Safari: 16.0

Severity
blocking all usage of LiveKit
Additional Information
Will submit PR shortly.

fixed via #460


How to retrieve relevant knowledge

How can I retrieve relevant knowledge to LLMs?Would you kindly provide the corresponding code if available？

Hi. We currently use the Wikipedia documents attached in the original datasets.


Incorrect type. Expected "array".

the following CFN code always creates the Warning 'Incorrect type. Expected "array".' even though it is right sythax:
"Id" : { "Fn::Select" : [ "2", { "Fn::Split": ["/", { "Ref": "AWS::StackId"}]}]} ________________________________~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
is this related to the schema version (https://s3.amazonaws.com/cfn-resource-specifications-us-east-1-prod/schemas/2.15.0/all-spec.json)? is there any newer schema version out there?
or any way to suppress this warning?

Which Visual Studio Code extensions do you have installed?
The first two warnings look like they're coming from cfn-nag
Wondering if that third warning is coming from an extension..
Maybe try un-installing and re-installing extensions to double check?

is there any newer schema version out there?

tracking this in https://github.com/aws-cloudformation/aws-cloudformation-template-schema/issues/32, I've currently been creating newer Template Schema versions for CloudFormation's Visual Studio Code extension here, but the location may change

Pat, i have disabled so extensions and was still getting this error.
Then i removed the Json schema in settings.json and the error disappeared.
Added it back in as described here, then the error came back.
So i doubt any other extension is causing this.
I have cfn_nag and cfnlint installed. I can send a full list later.
Regards,
Eike
Pat Myron<EMAIL_ADDRESS>schrieb am Sa., 16. Mai 2020, 08:28:

Which Visual Studio Code extensions do you have installed?
The first two warnings look like they're coming from cfn-nag
https://marketplace.visualstudio.com/items?itemName=eastman.vscode-cfn-nag
Wondering if that third warning is coming from an extension..
Maybe try un-installing and re-installing extensions to double check?
is there any newer schema version out there?
tracking this in #32
https://github.com/aws-cloudformation/aws-cloudformation-template-schema/issues/32,
I've currently been creating newer Template Schema versions for
CloudFormation's Visual Studio Code extension here
https://raw.githubusercontent.com/aws-cloudformation/aws-cfn-lint-visual-studio-code/master/schema/all-spec.json,
but the location may change
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aws-cloudformation/aws-cloudformation-template-schema/issues/39#issuecomment-629596619,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHZSG5YDJV4SH4EPF52HDTRRYW7BANCNFSM4NAOZ5CQ
.

i tried the template schema version you provided (https://raw.githubusercontent.com/aws-cloudformation/aws-cfn-lint-visual-studio-code/master/schema/all-spec.json) and this version does not cause this error either.

and this version does not cause this error either.

Sorry, bit confused by this wording. Just to clarify, does the newer schema version solve the issue?

seeing this with GetAzs as well
Intrinsic functions seem to be handled here


Allow customization of handling transient failures

Pull Request Test Coverage Report for Build 4629

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
19 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.1%) to 69.491%

Files with Coverage Reduction
New Missed Lines
%

mysql-persistence/src/main/java/com/netflix/conductor/dao/mysql/MySQLBaseDAO.java
3
69.32%

cassandra-persistence/src/main/java/com/netflix/conductor/dao/cassandra/CassandraEventHandlerDAO.java
8
68.42%

cassandra-persistence/src/main/java/com/netflix/conductor/dao/cassandra/CassandraMetadataDAO.java
8
56.48%

Totals

Change from base Build 4599:
-0.1%

Covered Lines:
12844

Relevant Lines:
18483

💛  - Coveralls


A couple notes on AD Connect prerequisites for HAADJ

FTC here. It would be of value to include notes in our docs about some prerequisites that AD Connect needs to meet so HAADJ works as expected:

The OU or group filtering must include the context of the machines to be HAADJ. We have encountered this issue were our customers are blocked because the OU is not selected. I know it is necessary that the objects to be synced must be included in the AD connector, but it is not for most customers.
The userCertificate attribute must be synchronized from AD. Some customers do not include it because reasons, but I have seen it happen.
The computer objects must be included.

*All this are requirements for the AD Connector.

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

ID: 816f0138-d336-3905-9f4f-e60c04da9326
Version Independent ID: ce5166e4-5d15-ef1f-1090-576a69e601e8
Content: How to configure hybrid Azure Active Directory joined devices
Content Source: articles/active-directory/devices/hybrid-azuread-join-managed-domains.md
Service: active-directory
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@ermacia91
Thanks for your feedback! We will investigate and update as appropriate.

Hi @ermacia91, the article already states: "Verify that Azure AD Connect has synchronized the computer objects of the devices you want to be hybrid Azure AD joined to Azure AD. If the computer objects belong to specific organizational units (OU), then these OUs need to be configured for synchronization in Azure AD connect as well."
Doesn't this cover your first and last bullet?

Yes, noticed that after making the comment. I would suggest to make the note more noticeable, as it is easily missed by our customers.

@ermacia91 We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.


back

Description

Steps to reproduce

Demo

https://jsfiddle.net/handsoncode/4owqzasd/
Your environment

Vue wrapper version:
Handsontable version:
Browser Name and version:
Operating System:

Hi @alexpettigrew1
can you share more details?


cleaning up busco file addition and adding annotation source to ftp directory structure

cleaned up check_for_file method
added annotation source for the new FTP structure
updated the DToL dbs list and yaml file

Other than the Travis failing test, I think it is good to go for approval.

Other than the Travis failing test, I think it is good to go for approval.

The failing test is something to do with Poetry, so I'll merge this and look in to fixing the test later


Add documentation for FQDN-based NetworkPolicies

The feature was added in https://github.com/antrea-io/antrea/pull/2613, but is not documented yet.
Ideally the documentation would be added in time for the upcoming release (v1.3), but there may not be enough time.

PR open: https://github.com/antrea-io/antrea/pull/2634


Document ability to disable a function in local.settings.json

Functions in a C# class library can be disabled locally per this answer. This was more useful for me than creating an environment variable. The topic should mention how to disable functions locally; great for debugging just one function at a time in a large function app.

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

ID: 3b7f85a6-7b15-afe0-6443-27512c831553
Version Independent ID: 5caea59e-779c-7b0e-e30b-497d4d1df4c7
Content: How to disable functions in Azure Functions
Content Source: articles/azure-functions/disable-function.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

@PrimeHydra Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.


Image Size

Is there a way to add image size too to the arguments
'imgSize': 'huge|icon|large|medium|small|xlarge|xxlarge|imgSizeUndefined'

Necroposting but w/e
If u have cv2 or pillow installed u can easily resize them to how you wish.


Direct Query Automatic Page Refresh - not listed as a Service only feature

If I am not mistaken Power BI Report Server does not support automatic page refresh for Direct Query models since this setting is not visible when authoring a Direct Query based report in Power BI Desktop for Report Server. This should probably be highlighted here as one of the features only available in the Service.

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

ID: a5e43027-f0e6-928a-8c16-4401ee8d0e52
Version Independent ID: 51c87d50-4316-c0d9-a31c-3163d1557e1f
Content: Comparing Power BI Report Server and the Power BI service - Power BI
Content Source: powerbi-docs/report-server/compare-report-server-service.md
Service: powerbi
Sub-service: powerbi-report-server
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Thanks, @dgosbell ! I'll confirm and update.

Hi, @dgosbell -- adding it to the table in this article. Change will be live this afternoon, 25 March. Thanks!


BasicModal 生产环境下Bug

Subject of the issue
Describe your issue here.
BasicModal 生产环境下confirm-loading 属性无效  不会有loading状态,开发环境正常
Your environment

OS:
Packages:
Env:

Steps to reproduce
Tell us how to reproduce this issue. Please provide a working and simplified example.
🎉 BONUS POINTS for creating a minimal reproduction and uploading it to GitHub. This will get you the fastest support. 🎉
Expected behaviour
What should happen?
Actual behaviour
What happens instead?

我测试了下可以正常使用

我测试了下可以正常使用

没有提供更详细的信息，我先关闭了。你有更详细的信息可以重新打开

没有提供更详细的信息，我先关闭了。你有更详细的信息可以重新打开


Include other segmentation methods

Including:

Automated (threshold-based)
Semi-auto (click and fill)

Also could leverage existing napari plugins to implement more complex segmentation:

Random forest, e.g. ilastik
Unet

Closing this in favour of https://github.com/brainglobe/brainreg-segment/pull/74


Don't mention EndpointSlice resource on front page

EndpointSlice is a nice idea, but it's not front-page-of-site nice. At the moment there's text about EndpointSlice showing on https://k8s.io/
This PR leaves the documentation in place but removes the front page callout.
Previews:

https://deploy-preview-20761--kubernetes-io-master-staging.netlify.app/
https://deploy-preview-20761--kubernetes-io-master-staging.netlify.app/docs/concepts/services-networking/endpoint-slices/

/sig network
/kind cleanup

@sftim, The change seems fine. Who decides which topics to feature on the home page?
/cc @freehan

Seems reasonable.
/cc @zacharysarah @kbarnard10 for awareness
/lgtm
/approve


check if service is ready before sending a request

this should be done according to docs, if not it might return error or panic

The github diffrence is showing much useful info so I may be missing something, but why do we need tower as a dependancy here?

It is required for tower::ServiceExt trait which is required for .ready async function. It is possible to do without that, but that will require more code like futures::future::poll_fn(|cx| send_request.poll_ready(cx)). I find using .ready much simpler.


Newbie question:   working with gcloud beta emulators datastore

I have two simple questions:

Is "gcloud beta emulators datastore" the correct emulator to work with google-cloud-cpp client library?
Is there an additional CLI you are aware of that works with the datastore emulator that can create bucket, and copy data to/from the bucket? Or do I have to write application using google-cloud-cpp to achieve that?   I need a CLI to populate a stress test environment to drive the sdk-based development.

Many thanks,
Yang

Is "gcloud beta emulators datastore" the correct emulator to work with google-cloud-cpp client library?

Unfortunately not. That is for Cloud Datastore a NoSQL database, and google-cloud-cpp is for Cloud Bigtable (a different NoSQL database) and Google Cloud Storage (GCS) an object storage service.

Is there an additional CLI you are aware of that works with the datastore emulator that can create bucket, and copy data to/from the bucket?

I am not sure I am parsing this correctly.  Seems like you are looking for an emulator for GCS. There is no official emulator for GCS.  There is a testbench (suitable for tests) in google-cloud-cpp/google/cloud/storage/testbench which implements (most) of the GCS REST API.

Or do I have to write application using google-cloud-cpp to achieve that?

Other than the testbench mentioned above, google-cloud-cpp contains client libraries, I do not think they are a good starting point to implement an emulator.

I need a CLI to populate a stress test environment to drive the sdk-based development.

I am not sure I understand.  Are you looking for a CLI to populate GCS instances for testing?  Or a CLI to stress test some SDK?
It is possible I misunderstood your question. If so, please let me know what I missed.

Hi,
thanks for the prompt replies.
I am looking for a CLI to populate the GCS instances and an emulator if possible.  So my take is that
I can use gsutil to populate the GCS backend and there is no emulator available but a testbench can be used to test the REST APIs.
Thanks,
Yang


Add one test for checkbranches for Bears when passing/passing builds

Pull Request Test Coverage Report for Build 2042

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

Totals

Change from base Build 2033:
0.0%

Covered Lines:
2907

Relevant Lines:
5404

💛  - Coveralls


new roles and icons request

low priority request.

change flex logo to something more appealing
as with bruiser, introduce a ranged flex role.
introduce icon for "no roles defined".

@Takaloy Please provide those Icons :)

where are the existing roles icons stored? I can see it referencing 'assets/img/roles/' but there doesn't seem to be any roles folder in the repo.

Because that's the theme repo and not this one - and there are only the roles stored which we are using OsSloth
@Takaloy
We are using Icons from here:
http://game-icons.net/
You are free to use any other source tho - as long as it doesn't cost us anything and are SVG images.

there's a few good candidates in that library I think for flex.
http://game-icons.net/delapouite/originals/swiss-army-knife.html <- swiss army knife and all that
http://game-icons.net/sbed/originals/expander.html <-- similar to HGC's representation of Flex (they use two different colours)

for undefined roles this one I think is perfect: http://game-icons.net/lorc/originals/uncertainty.html

ranged flex could be this one: http://game-icons.net/lorc/originals/bowman.html

Don't give me options, just say directly what and how and which colors if you want to change anything.

The first one then

On 6 Jul 2017, at 14:24, kealsera<EMAIL_ADDRESS>wrote:
Don't give me options, just say directly what and how and which colors if you want to change anything.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Enums in pair notation trap (Foo => 42)

There may be a dup of this ticket but I can't find it.
See https://irclog.perlgeek.de/perl6/2017-12-21#i_15608707.
Basically “Foo => 42” will create a pair with “Foo” string as a key, even if you have a same-named enum defined earlier.

Seems to me it will override the enum only when the :{} operator is used to force non-string keys in hashes. The following piece of code does what you want:
enum sides <Back Front>;
my %a := { Back=>10, Front=>20 };
say %a.perl;
say %a{Back};

I'm not sure if this should be managed as a general trap or a note in the :{} operator section https://docs.perl6.org/type/Hash#index-entry-%3A{}

It's a general trap of pair notation.

Note that if you declared the type of the keys with %a{Sides} then it would error out rather than do the wrong thing.
enum Sides <Back Front>;

# my %a{Sides} := { Back=>10, Front=>20 }; # error
# my %a{Sides} := :{ Back=>10, Front=>20 }; # error
# my %a{Sides} := :{ (Back)=>10, (Front)=>20 }; # error
# my %a{Sides} = Back=>10, Front=>20; # error

my %a{Sides} = (Back)=>10, (Front)=>20; # no error
say %a.perl;
say %a{Back};

This is probably obvious but anyway:
Another option for stopping => autoquoting its lhs is to write ::Back etc. (I slightly prefer this to (Back) etc.)
Another option is to use list notation: enum Sides <Back Front> ; my %a = Back, 10, Front, 20;.


POST (via jquery ajax) works but it doesn't give the right response

On localhost works like a charm. For some reason on the server the POST petition via ajax jquery it is done correctly but it gives me the classic No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin on the response. ☹

Weird indeed. I can certainly look into the issue, but I need more information to reproduce the issue and debug it. Please provide all the following:

The version of Node.js you are using.
The version of this module you are using.
A complete application I can download and run. If this uses other modules, please try to either exclude them or write down the versions you are using (exact versions, please).
Complete instructions for how to run your app and instructions for how to reproduce the issue.

With this information, perhaps we can get to the bottom of this :) Thanks!

I'm going to close this, but will happily re-open if there is a response :) !


Hexagonal grid support?

I can't find any mention of hexagonal grid support. Does this support hexagon grids?

No, only orthographic square tile grids are currently supported.
I'm open to PRs though :)


how i used this library correctly

Initially, thank you alexvasilkov for your perfect library..
I wrote all codes completely but i didnt work.. So, i changed some codes than it worked well.. I'm writing in here.. I hope it is benefit to someone..(this solutions just research, not my own)

gradle/module

 compile 'com.alexvasilkov:android-commons:1.2.4'
 compile 'com.alexvasilkov:foldable-layout:1.2.0'

add function to PaintingsAdapter.class

private Activity getActivityX() {
        Context context = getContext();
        while (context instanceof ContextWrapper) {
            if (context instanceof Activity) {
                return (Activity)context;
            }
            context = ((ContextWrapper)context).getBaseContext();
        }
        return null;
    }

change onClick() function in PaintingsAdapter.class

@Override
    public void onClick(View view) {
        Painting item = (Painting) view.getTag(R.id.list_item_image);
        if (getActivityX() instanceof UnfoldableDetailsActivity) {
            ((UnfoldableDetailsActivity) getActivityX()).openDetails(view, item);
        } else if (getActivityX() instanceof FoldableListActivity) {
            Toast.makeText(getActivityX(), item.getTitle(), Toast.LENGTH_SHORT).show();
        }
    }

4)change bindView() function in MainActivity.class
@Override
        protected void bindView(ActivityInfo item, int pos, View convertView) {
            TextView tv = (TextView) convertView;
            if (TextUtils.isEmpty(item.nonLocalizedLabel)) {
                tv.setText(String.valueOf(item.labelRes));
            } else {
                tv.setText(String.valueOf(item.nonLocalizedLabel));
            }
        }

note : if your thema is Fullscreen than delete the line in classes
getSupportActionBar().setDisplayHomeAsUpEnabled(true);

This code seems to be similar to one in the sample app, but thanks anyway :)


Qdrant (Independent Publisher)

Adds a connector to include support for Qdrant - https://qdrant.tech/
I've tested with the test suites and templates.

[x] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[x] I attest that the connector works and I verified by deploying and testing all the operations.
[x] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[x] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[x] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[x] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[x] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

Hey @vmanoharas.
I received the following mail from<EMAIL_ADDRESS>
[Action Required] Connector Ownership Acknowledgment for qdrant

If the email is not rendered, please check that your mail client supports the Adaptive Card feature.
As a workaround you can use the Outlook on the web for Office 365.

I've tried to open this on Outlook as well. I don't see anything else in the mail body.
Do you happen to know anything about this?

Hey @vmanoharas. I received the following mail from<EMAIL_ADDRESS>
[Action Required] Connector Ownership Acknowledgment for qdrant

If the email is not rendered, please check that your mail client supports the Adaptive Card feature.
As a workaround you can use the Outlook on the web for Office 365.

I've tried to open this on Outlook as well. I don't see anything else in the mail body.
Do you happen to know anything about this?

Hello @Anush008,
Kindly ignore this email as of now.

Hello Partner,
I hope you are doing well.
Congratulations, the deployment of your connector and documentation page was already completed, We have a short survey - https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR0BHMrjhL0hDmckROosW6AFURERIVUUzMk5XRzJGV1dJM1Q5RVZJUjFXSC4u on the connector certification process that we would like for you to complete. Your feedback is appreciated and will help us improve the program.
Thank you very much for working with us.


[(UN)EXPECTED BEHAVIOR] Transfer low CP Pokemon with high IV when other ruleset is defined

Expected Behavior

I wan't to release all Pokemon under CP 100 and have further rules for each Pokemon. (I want to have the candy so setting to catch above CP 100 isn't going to solve :8ball:)
Actual Behavior

If there is a ruleset for a Pokemon, the any rule isn't checked (I suppose) as Pokemon below CP 100 (with high IV) aren't released.
Your FULL config.json (remove your username, password, gmapkey and any other private info)

"release": {
"any": {
"release_below_cp": 100,
"release_below_iv": 0,
"logic": "or"
},
"Bulbasaur": {
"release_below_cp": 590,
"release_below_iv": 0.8,
"logic": "and"
},
"Charmander": {
"release_below_cp": 500,
"release_below_iv": 0.8,
"logic": "and"
},
"Squirtle": {
"release_below_cp": 500,
"release_below_iv": 0.85,
"logic": "and"
},
"Caterpie": {
"release_below_cp": 300,
"release_below_iv": 0.85,
"logic": "and"
}
}
Output when issue occurred

See the actual behavior
Steps to Reproduce

Run the bot
Other Information
OS: CentOS

Branch: dev

Git Commit: 33ef1a077634465cc6623864d4b47b8776b9e094

Python Version: Python 2.7.5

Any other relevant files/configs (eg: path files)

I think it IS expected for the bot to ignore "any" rule when a particular Pokemon has its own "catch" and "release" rule. I suggest you to use the Pokemon Optimizer task, which specify rules of Pokemon to keep (yes, keep, not release), then release everything else. That has been working fine for me.

That is weird rules but following Pokemon Optimizer rules would achieve that.
"rules": [
    {
        "mode": "by_pokemon",
        "names": ["!Bulbasaur", "!Charmander", "!Squirtle", "!Caterpie"],
        "keep": {"cp": 100}
    },
    {
        "mode": "by_pokemon",
        "names": ["Bulbasaur"],
        "keep": {"cp": 590}
    },
    {
        "mode": "by_pokemon",
        "names": ["Bulbasaur"],
        "keep": {"iv": 0.8, "cp": 100}
    },
    {
        "mode": "by_pokemon",
        "names": ["Charmander"],
        "keep": {"cp": 500}
    },
    {
        "mode": "by_pokemon",
        "names": ["Charmander"],
        "keep": {"iv": 0.8, "cp": 100}
    },
    {
        "mode": "by_pokemon",
        "names": ["Squirtle"],
        "keep": {"cp": 500}
    },
    {
        "mode": "by_pokemon",
        "names": ["Squirtle"],
        "keep": {"iv": 0.85, "cp": 100}
    },
    {
        "mode": "by_pokemon",
        "names": ["Caterpie"],
        "keep": {"cp": 300}
    },
    {
        "mode": "by_pokemon",
        "names": ["Caterpie"],
        "keep": {"iv": 0.85, "cp": 100}
    }
]


Extend CI no output timeout

This prevents spurious failures caused by CircleCI cutting off the build
when it goes too long without output, which happens sometimes since the
tests don't output anything until they've been completed.

Closing because this won't go green unless #222 gets merged, and #222 already contains the relevant commit.


Waterfall plot for Entity Occurrences

Description of feature
An idea for downstream visualisation of comparison between conditions:
Waterfall plot of unique peptides between 2 conditions, with overlapping peptides (non unique). Example figure is attached, in this case y axis = sample prevalence. As we predict the peptides, we can compare the number of entities the peptide is contained in (e.g. bins, contigs, taxids)

Bin the entity occurrence to plot less data points (one bin == one entity occurrence)

Waterfall plot makes sense if it shows high frequency peptides. Frequency in this case would mean a predicted occurrence within one bin/taxa. For these input types the plot generation should be relatively straight forward? (maybe we need to be more stringent in filtering or like I posted above by binning the frequency, to reduce the number of bars -> resources) For assemblies on the other hand it will not be that straight forward, as we do not have information about the taxa/binning in taxa. Still the plot could be generated by using a frequency within contigs, which can be used to compare between communities, but is also dependent on read depth etc and may be biased. Thus either plots are only generated for bins/taxa or the user is warned, that the plot may not show the result that is expected.
Still for large datasets, e.g. full test the plot will generate 2 million bars. Therefore, it may be more helpful to reduce the plot to a table including the result, this could also be a table which filters the highest unique predicted binders (binding score) for each condition.


Can not build after installing with Pod

I have a working Hello JSON project working and added
Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'MyJSONProject' do
pod "SwiftyJSON", ">= 2.2"
end
target 'MyJSONProjectTests' do
end
and get:
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table ] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]

Podfile
platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
    pod 'SwiftyJSON', '~> 2.2.0'
end

Update the Cocoapods
sudo gem update

Update the spec
pod repo update

Install
pod install

Sorry this was an issue back in May.  I fixed it about a week after that and forgot to update this.  Thank you for the reply


Added the e2e test for this vllm microservice

Description
This PR aims to add the e2e test for the vllm llm microservice.
Issues
n/a.
Type of change
List the type of change like below. Please delete options that are not relevant.

[x] New feature (non-breaking change which adds new functionality)

Dependencies
No newly introduced 3rd party dependency.
Tests
Following the previous https://github.com/opea-project/GenAIComps/pull/134, the validation process is the same as this one.

As the previous https://github.com/opea-project/GenAIComps/pull/134 requirements. I have added the e2etest for the vllm llms microservice. Please have a review and check. @chensuyue

@tianyil1 please fix the dockerfile path.

@XinyaoWa will open a new one.


https://blogs.msdn.microsoft.com/sonam_rastogi_blogs/ blog is missing

My blog is missing. It is also not listed under https://docs.microsoft.com/en-us/archive/blogs/ list.
Please suggest.

Hi there, is there any update for me?

Hi there, is there any update for me?

@Sonam12345 MSDN Blogs are archived at https://docs.microsoft.com/en-us/archive/blogs/

I cannot find my blog in archives as well.
https://blogs.msdn.microsoft.com/sonam_rastogi_blogs/
On Mon, Jul 26, 2021 at 12:07 AM rootsmusic @.***>
wrote:

@Sonam12345 https://github.com/Sonam12345 MSDN Blogs are archived at
https://docs.microsoft.com/en-us/archive/blogs/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/feedback/issues/3359#issuecomment-886241295,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVJ3EGR74UP7LGAMCXJZVDTZRKWZANCNFSM4VSS3CRQ
.

--
Sonam Rastogi


P1 process

What does this PR do?
Publish how Giant Swarm handle P1 processes
Towards https://github.com/giantswarm/giantswarm/issues/20576
(Please set a descriptive PR title. Use this space for additional explanations.)
What does it look like?
(If this is more than a textual change, a screenshot can help in some cases to speed up the review process.)
Any background context you can provide?
(Please link public issues or summarize if not public.)
What is needed from the reviewers?
Have you maintained the front matter?
(Please bump the last_review_date in case this qualifies as a review for an entire page. Provide user_questions which should be answered in the page. Provide a meaningful description.)

@muemich is weird but you commented in the commit instead of this PR. I have tried to apply all your suggestions, PTAL

Sorry, yes! Figured in the end

Shouldn't do anything before 9am as it seems, sorry

I have added the diagram from Miro. Can you please take a last look? I would like to merge it before the presentation (though I could get some slight change after feedback)


Dashboard Token Listing: KPTx

Discord Handle of Submitter: wizgotD #8866
Token Symbol: KPTx
Network: Polygon
Token Address: 0x9556B40E816e2890FdAFfb2fFd47F6493F240781
Network Explorer Link: https://polygonscan.com/address/0x9556b40e816e2890fdaffb2ffd47f6493f240781
Is a Super Token? true
Address of Underlying Token:  0x7D369731E3d7F86417Aa86ef4Be26e309080BD2F
SVG Logo Link: https://drive.google.com/file/d/1Cqfk1YmeliHtX8U3HTQJMO-Sde9efw8H/view?usp=share_link
Coingecko or Hardcoded Price?: Hardcoded
Coingecko ID:
Harcoded Price (if Coingecko ID is unavailable): 0.0008
Token HEX Color: #2596be
Info on Listing: We are planning to use our token and use the vesting module with our Gnosis Safe DAO module. This would allow our members to see the token directly in dashboard.
Please close only after token has been added to resolver!

Hardcoded Price (if Coingecko ID is unavailable): 0.0008 I think this can be 0, I just took the value from dodo.

listed in resolver, assets pending

Are the assets pending something the team at KP can provide?

yes, you could probably speed up the process by providing a PR for this repo, see previous PRs for how to do it.


Remove macOS workflows

Since GitHub actions now support macOS M1 runners it makes sense to collect them under one "CI backend".
I've thus opened https://github.com/ocaml-multicore/multicoretests/pull/458 to this effect.
To save CPU cycles we can thus remove the macOS runners from multicoretests-ci.
CC @benmandrew

Yep, thanks! :pray:


mwc-top-app-bar with 100% content

I was wondering whether it is possible to have a default content slot in the app bar that fills the rest of the screen?
An example would be a data visualization page that uses the app bar to display tools for manipulating the content of a chart and the chart below the bar fills the rest of the screen.
As it looks now the content slot grows with the provided content and scrolls if the content exceeds the screen.
Is there any way to achieve a 100% content height already that I have not yet found?
Alternatives that I have considered:

Don't use mwc-top-app-bar and roll out my own app bar  :-(
Subclass and override contentClasses() to inject a class that makes the content slot height: calc(100% - 64px) (in this case for the default appearance of the bar)
Don't use the content slot of the bar but place the content side by side with the bar either with height: calc(100% - 64px) or  in a flexbox.

What do you think?

Seems like the best way to handle this for now would be to simply add a custom property for height that defaults to auto

or alternatively this?


debug: option to disable the modal dialog on launch failure

This is a resurrection of the original feature request https://github.com/microsoft/vscode/issues/48606
(Previously discussed in https://github.com/microsoft/vscode-go/issues/1644 in microsoft/vscode-go,
but we are still getting the same requests from users https://github.com/golang/vscode-go/issues/1375)
The feature request https://github.com/microsoft/vscode-go/issues/1644 filed in microsoft/vscode-go
repo was rejected, I am afraid there was some misunderstanding during the discussion.
Go's debug adapter&debugger (delve dap) does not only launch the debugee upon a launch request,
but also performs the compile/build of the target binary.  That is different from debug workflows of
other languages that usually separate build steps from debug launch steps.
When build fails, the adapter returns error for the launch request
(we couldn't build due to compiler errors so we couldn't launch!), which results in the modal popup.
Revisiting @weinand's original comment https://github.com/microsoft/vscode/issues/48606#issuecomment-384265967

I think there are two types of notifications:

expected (frequent) problems like compiler errors,
unexpected (rare) problems like a runtime error in a debugger or a non-existing variable in a launch config.

IMO the first type of problem should be addressed by the non-modal notification whereas the second type
should result in a modal dialog because it is a fundamental problem that requires the users attention.

So, I'd say Go's debug extension current behavior doesn't match the expected UX.
Is there any workaround in DAP to implement this in vscode-go side?
Separating the compile step from the launch as a pre-launch task is not ideal for Go
since we depend on Delve's decision on how to build the target with sufficient debug info.
Can we have an option to disable the modal dialog depending on the types of launch failures?
cc @polinasok @suzmue @isidorn
ps. I tried to use the showUser property (set to false), but that just controls the extra notification popup currently.

Here is a sample log of the request-response traffic that results in the dialogue.
From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"go","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":true,"supportsSetVariable":true}}
From client: launch({"name":"Launch file","type":"go","request":"launch","program":"/Users/polina/go/src/temp.go,...}}
To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":false,"message":"Failed to continue: Check the debug console for details.","body":{"error":{"id":3000,"format":"Failed to continue: Check the debug console for details.","showUser":false}}}

I guess we could return launch success and then immediately send a terminated event while printing the error details to the console to avoid the pop-up, but that seems like a hack.
I think it would be much cleaner for vscode to either honor showUser or to have a global setting to turn these pop-ups on and off.

@weinand Any updates? We have a draft PR, but it is too hacky to put inside of the delve debugger and negatively impacts clients that do not have this problem. Next step would be to move the hack into the vscode-go extension, intercepting the launch error response and replacing it with a success response + terminated event to trick vscode editor into not showing the window, but we would much rather avoid any such hacks if a mechanism is coming on your end soon. Thank you.

I think it is not a good idea to run the compile/build as part of DAP's launch request (and not as a separate task). Communicating compile/build errors to the user via the debug console is not a good user experience. I would expect that compile/build problems show up in the problems view and I can easily navigate from there.
...

VS Code only shows a modal dialog if the "showUser" property of the error message exists and is false. If "showUser" is missing, we would behave like before in order to preserve compatibility.

I think this would work and would not be a large change.
For reference here's a place where I think we show the modal dialog https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/browser/debugService.ts#L836

I think it is not a good idea to run the compile/build as part of DAP's launch request (and not as a separate task). Communicating compile/build errors to the user via the debug console is not a good user experience. I would expect that compile/build problems show up in the problems view and I can easily navigate from there.

The build diagnostics show up in the problems view almost real time (thank to the language server) but I observed many users prefer continuous testing rather than switching among the problems view, debug console, and terminal.

Debugging compiled languages always depends on compile/builds with sufficient debug info. But the C++ or C# extension compile/build as a prelaunch task and not as part of DAP launch and they never complained about this.

Maybe it's because go's tool chain is generally much easier to use so requiring a separate make file or configuration is not part of the common go dev workflow. For example, dlv test is modeled after go test command that takes either file path, directory path, or even package path, builds the test binary, and runs the test binary from the package directory. No more than one command is needed. In addition to what go test does, dlv test detects the go version user in use and provides the additional flags to include additional debug info which may vary depending on the go version. We may choose to let the extension duplicate what dlv would do and provide a pretask, but I think it's better to keep all this knowledge centralized in dlv and debug adapter (for vscode-go and other editors' plugins)

VS Code only shows a modal dialog if the "showUser" property of the error message exists and is false. If "showUser" is missing, we would behave like before in order to preserve compatibility.
I think this would work and would not be a large change.
For reference here's a place where I think we show the modal dialog https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/debug/browser/debugService.ts#L836

It sounds like the best option for us :-)

@isidorn ok, let's do this.

https://github.com/go-delve/delve/pull/2617#issuecomment-885745255

I think it is not a good idea to run the compile/build as part of DAP's launch request (and not as a separate task).

If this is part of the DAP contract or best practices, it should be documented in the spec. Otherwise, it really does seem quite logical to do whatever steps are needed, including compilation, as part of launching the debug session.

The DAP "launch" request should fail without a modal dialog if the reason was a compile/build error.
I see two options:

in case of a compile/build error in the "launch" request, the Go DA sends the error information to the debug console but does not return an error from the "launch" request to make VS Code continue the session normally. After the initialisation sequence is done, the Go DA sends a "Terminated" and "Exited" events to stop the debug session. This would not require any changes in clients (e.g. VS Code).

This is what this PR has attempted to do. It looked wrong to report success when we had a clear error. I also pinged another user of our adapter, and this change would break them (comment) because as logic would suggest they expect success to mean success and act accordingly.

VS Code only shows a modal dialog if the "showUser" property of the error message exists and is false. If "showUser" is missing, we would behave like before in order to preserve compatibility.

This would be great.  To clarify do you propose the following:

showUser=true => show both modal dialog AND error regular pop-up?
showUser=false => show neither
no showUser => show only modal dialog?

Since I do not have Go setup, @polinasok or @weinand can you please create a branch of Mock Debug that would behave like the go debugger in this case with respect to the showUser flag. That would make it easy for me to double check if all is good. Thanks!

@isidorn I will add this to mock-debug

@weinand thanks a lot for updating mock debug, this was very helpful.
I have pushed a change as we agreed above.
@polinasok please try it out with vscode insiders from tomorrow and let me know how it goes. Thanks a lot!

I tried this and can see that change in the behavior. I looks like it also impacts attach request failures as well. I am grateful for a quick turnaround and your responsiveness. However, I am concerned that this change will negatively impact your users. Because there was an automated pop-up for launch and attach errors, we chose to set showUser to false for all launch/attach errors to avoid double pop-ups that users would need to manage. With the new change, we loose the modal dialog for all errors, not just build errors. Therefore all errors that don't also log to Debug Console become silent. This, of course, can be addressed with a quick code change adding showUser=true as needed. But while we are anticipating this change, other adapter implementors that used the same logic might get caught off-guard.

Oh, and another thought, what is the advantage of having both the modal and the bottom pop-up?

The user must close both of them manually. Perhaps it makes more sense for showUser to replace the small bottom error with the visible modal dialog?

@polinasok thanks for trying it out. All good feedback. Let's reopen so we try to address this.

I see. We could only have this logic for launch requests, however that sounds not consistent. What do you propose? If the showUser is not defined the error will still be shown as before. So I do not understand how this can catch adapter implementors off guard. Can you clarify pease?
When the dialog is shown we should not show the notification. Reason for this is that different code paths handle this and they are not in sync. I can look into this.

Yes, having a modal alert and a notification doesn't make sense.

I have pushed a fix for 2.
However let's leave this open to see @polinasok response for 1.

Clarification on 1. What I meant is that there might be implementers out there who chose explicit showUser=false not because they did not want to show anything to the user, but because they wanted to show the error only once. Since the editor always reliably triggered the visible modal alert, regardless of what the spec says, the showUser property was not controlling the overall visibility, but only the visibility of the duplicate notification. This fix changes the status quo for false values.
Specifically for Go, we will now need to change the adapter code to set showUser=true for all launch/attach errors other than the long build errors that go into Debug Console. Since the users might update their editor and their tools at different times, some might end up with duplicate notifications (old version of vscode + new version of adapter) and some users might end up with no notifications (new version of vscode + old version of adapter) for some short period of time. Eventually the dust will settle and everybody will have a consistent experience.

@polinasok thanks for clarifying. I agree with you that the dust will settle eventually, and in the meantime the inconsistency which we might have is ok. So closing this as I plan no further changes here. Thanks

I agree with you that the dust will settle eventually, and in the meantime the inconsistency which we might have is ok.

We will be ok because we know this is coming and can time our changes accordingly. Implementers that set showUser=false explicitly might be caught off-guard when their launch/attach error become silent. I suggest clearly documenting this in your release notes, so they can quickly figure out what is going on.
When will this change be live? It is marked with Aug milestone. Does that mean early September?

@polinasok yes as you say this will be in the Stable August release, and in practice that means early September.
It is already live in Insiders.


sketch of doc file for `expect_snapshot_

Fixes #379?

(couldn't compile or run document() on my local)

Thanks - see response to issue #379


DocumentDB: Connection timeout from parse-dashboard

Hello,
I just installed parse server on azure services and faced problem with displaying data in parse-dashboard. I just create parse server on azure according to this article, everything before migrating your app part:
https://azure.microsoft.com/en-us/blog/announcing-the-publication-of-parse-server-with-azure-managed-services/
Just after my data from parse.com was migrated, i go to azure-parse-dashboard and trying to verify my collection. But when I try to display table with 515k records - it display nothing. When I go logs section I found this error there:
2016-10-23T18:57:56.191Z - Uncaught internal server error. { [MongoError: connection 51 to ziveparseserverdb-parse.documents.azure.com:10250 timed out]
name: 'MongoError',
message: 'connection 51 to ziveparseserverdb-parse.documents.azure.com:10250 timed out' } MongoError: connection 51 to ziveparseserverdb-parse.documents.azure.com:10250 timed out
at Function.MongoError.create (D:\home\site\wwwroot\node_modules\mongodb-core\lib\error.js:29:11)
at TLSSocket. (D:\home\site\wwwroot\node_modules\mongodb-core\lib\connection\connection.js:173:20)
at TLSSocket.g (events.js:260:16)
at emitNone (events.js:67:13)
at TLSSocket.emit (events.js:166:7)
at TLSSocket.Socket._onTimeout (net.js:332:8)
at _runOnTimeout (timers.js:524:11)
at _makeTimerTimeout (timers.js:515:3)
at Timer.unrefTimeout (timers.js:584:5)
2016-10-23T18:57:56.191Z - Error generating response. { [MongoError: connection 51 to ziveparseserverdb-parse.documents.azure.com:10250 timed out]
name: 'MongoError',
message: 'connection 51 to ziveparseserverdb-parse.documents.azure.com:10250 timed out' }
When i tried to display the same collection with filter - seems everything is ok.
How can I fix displaying all my data correctly???
Thanks in advance, Egor

@aliuy Can you check into this?


FlexAttention slower than eager in HF transformers

related PR : https://github.com/huggingface/transformers/pull/35423
Repro gist : https://gist.github.com/staghado/c3688a51aadec9e0b63316d8a7227064
The implementation combines a sliding window mask with a document mask. The masks are created once for each input and re-used for subsequent layers.
One thing that might be the issue is that the flex_attention function is not compiled in transformers.
I might be missing something, thanks in advance for your help.
Using attn_implementation=flex_attention
Sequence length : torch.Size([1, 702])
  Time taken: 0.7820 seconds

Using attn_implementation=sdpa
Sequence length : torch.Size([1, 702])
  Time taken: 0.0748 seconds

Using attn_implementation=eager
Sequence length : torch.Size([1, 702])
  Time taken: 0.0679 seconds

when running FlexAttention vs. SDPA alone (with compile), I get :
Torch version: 2.6.0.dev20241112+cu121

=== Benchmark Results ===
+--------------+--------------+----------------------+----------------------+
|   Batch Size |   Seq Length |   FLEX Avg Time (ms) |   SDPA Avg Time (ms) |
+==============+==============+======================+======================+
|            1 |          128 |      19157.4         |      18323.5         |
+--------------+--------------+----------------------+----------------------+
|            1 |          256 |      29308.9         |      26515.9         |
+--------------+--------------+----------------------+----------------------+
|            1 |          512 |      42290.9         |      43449.5         |
+--------------+--------------+----------------------+----------------------+
|            1 |         1024 |      47303.1         |      85003.2         |
+--------------+--------------+----------------------+----------------------+
|            1 |         2048 |      89719.6         |     221348           |
+--------------+--------------+----------------------+----------------------+
|            1 |         4096 |     170735           |     842239           |
+--------------+--------------+----------------------+----------------------+
|            1 |         8192 |     331801           |          3.34551e+06 |
+--------------+--------------+----------------------+----------------------+
|            2 |         8192 |     645975           |          6.44274e+06 |
+--------------+--------------+----------------------+----------------------+
|            4 |         8192 |          1.26423e+06 |          1.24122e+07 |
+--------------+--------------+----------------------+----------------------+
|            4 |         8192 |          1.26883e+06 |          1.24035e+07 |
+--------------+--------------+----------------------+----------------------+

import torch
from torch.nn.functional import scaled_dot_product_attention
from torch.nn.attention import SDPBackend, sdpa_kernel
from tabulate import tabulate

from torch.nn.attention.flex_attention import (
    flex_attention,
    create_block_mask,
    create_mask,
)

torch._dynamo.config.cache_size_limit = 1000
flex_attention = torch.compile(flex_attention, dynamic=False)
print(f"Torch version: {torch.__version__}")

from torch._inductor.utils import do_bench_using_profiling
from typing import Callable
def benchmark_cuda_function_in_microseconds(func: Callable, *args, **kwargs) -> float:
    """Thin wrapper around do_bench_using_profiling"""
    no_args = lambda: func(*args, **kwargs)
    time = do_bench_using_profiling(no_args)
    return time * 1e3

benchmark_fn = benchmark_cuda_function_in_microseconds

WINDOW_SIZE = 64

def generate_block_mask(sequence_ids, cu_seqlens, WINDOW_SIZE):
    def sliding_window_seq_mask_mod(b, h, q_idx, kv_idx):
        # only allow attention within the same sequence
        same_seq = sequence_ids[q_idx] == sequence_ids[kv_idx]

        # get position within the sequence
        q_pos = q_idx - cu_seqlens[sequence_ids[q_idx]]
        kv_pos = kv_idx - cu_seqlens[sequence_ids[kv_idx]]

        # sliding window within each sequence
        in_window = (q_pos - kv_pos).abs() <= WINDOW_SIZE

        return same_seq & in_window
    return sliding_window_seq_mask_mod

def SWA_mask(b, h, q_idx, kv_idx):
    # sliding window within each sequence
    in_window = (q_idx - kv_idx).abs() <= WINDOW_SIZE
    return in_window

# Benchmarking function
def run_benchmark(batch_sizes, sequence_lengths, num_heads=16, hidden_dim=64, n_runs=3):
    results = []

    for batch_size in batch_sizes:
        for seq_len in sequence_lengths:
            q = torch.randn(
                batch_size, num_heads, seq_len, hidden_dim, dtype=torch.bfloat16
            ).to("cuda")
            k = torch.randn(
                batch_size, num_heads, seq_len, hidden_dim, dtype=torch.bfloat16
            ).to("cuda")
            v = torch.randn(
                batch_size, num_heads, seq_len, hidden_dim, dtype=torch.bfloat16
            ).to("cuda")

            sequence_lengths = [seq_len] * batch_size
            sequence_ids = torch.cat([torch.full((length,), i, dtype=torch.long) for i, length in enumerate(sequence_lengths)]).to("cuda")
            _, counts = torch.unique_consecutive(sequence_ids, return_counts=True)
            cu_seqlens = torch.cat([torch.tensor([0], device=sequence_ids.device), counts.cumsum(0)[:]])

            block_mask = create_block_mask(
                generate_block_mask(sequence_ids, cu_seqlens, WINDOW_SIZE),
                B=None,
                H=None,
                Q_LEN=cu_seqlens[-1],
                KV_LEN=cu_seqlens[-1],
                device="cuda",
            )
            mask = create_mask(SWA_mask, None, None, seq_len, seq_len, device="cuda")

            # Benchmark flex_attention
            flex_times = []
            for _ in range(n_runs):
                flex_time = benchmark_fn(
                    flex_attention,
                    q.reshape(1, num_heads, -1, hidden_dim),
                    k.reshape(1, num_heads, -1, hidden_dim),
                    v.reshape(1, num_heads, -1, hidden_dim),
                    score_mod=None,
                    block_mask=block_mask,
                )
                flex_times.append(flex_time)
            flex_avg_time = (sum(flex_times) / n_runs) * 1000  # Convert to ms

            # Benchmark scaled_dot_product_attention with mask
            sdpa_times = []
            with sdpa_kernel([SDPBackend.MATH, SDPBackend.EFFICIENT_ATTENTION]):
                for _ in range(n_runs):
                    sdpa_time = benchmark_fn(
                        scaled_dot_product_attention,
                        q,
                        k,
                        v,
                        attn_mask=mask,
                    )
                    sdpa_times.append(sdpa_time)
                sdpa_avg_time = (sum(sdpa_times) / n_runs) * 1000  # Convert to ms

            results.append(
                {
                    "Batch Size": batch_size,
                    "Seq Length": seq_len,
                    "FLEX Avg Time (ms)": f"{flex_avg_time:.2f}",
                    "SDPA Avg Time (ms)": f"{sdpa_avg_time:.2f}",
                }
            )

    return results

if __name__ == "__main__":
    batch_sizes = [
        1,
        2,
        4,
    ]
    sequence_lengths = [128, 256, 512, 1024, 2048, 4096, 8192]
    n_runs = 5

    results = run_benchmark(batch_sizes, sequence_lengths, n_runs=n_runs)

    # Generate table
    print("\n=== Benchmark Results ===")
    print(tabulate(results, headers="keys", tablefmt="grid"))

So my question is how to cleanly integrate
torch._dynamo.config.cache_size_limit = 1000
flex_attention = torch.compile(flex_attention, dynamic=False)

into transformers?

Without a doubt it will be slower than eager when it is not compiled.  Let me ping some HF folks to see if we can raise a warning / ensure it is easy to compile.


RuntimeError: Inputs and outputs not all float|uint8|int16 types.Node number 4 (ADD) failed to invoke.

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
TensorFlow installed from (source or binary): binary
TensorFlow version (or github SHA if from source):TF 2.2.0 from anaconda

Command used to run the converter or code if you’re using the Python API
If possible, please share a link to Colab/Jupyter/any notebook.
import tensorflow as tf
# Path to the frozen graph file
graph_def_file = 'savedModel.pb'
# A list of the names of the model's input tensors
input_arrays = ['input.1']
# A list of the names of the model's output tensors
output_arrays = ['4358']
# Load and convert the frozen graph
converter = tf.compat.v1.lite.TFLiteConverter.from_frozen_graph(
  graph_def_file, input_arrays, output_arrays)

converter.target_spec.supported_ops = [
    tf.lite.OpsSet.TFLITE_BUILTINS,
    tf.lite.OpsSet.SELECT_TF_OPS,
]
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_types = [tf.float16]
tflite_fp16_model = converter.convert()
tflite_model_fp16_file = "tf_model.tflite"
open(tflite_model_fp16_file , "wb").write(tflite_fp16_model)

The output from the converter invocation
2020-05-22 20:38:17.870933: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-05-22 20:38:17.872070: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2020-05-22 20:38:17.872351: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (DESKTOP-7CPMA5J): /proc/driver/nvidia/version does not exist
2020-05-22 20:38:17.872996: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-05-22 20:38:17.880532: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency:<PHONE_NUMBER> Hz
2020-05-22 20:38:17.882702: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f5b64000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-05-22 20:38:17.882997: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version

Also, please include a link to the saved model or GraphDef
https://drive.google.com/file/d/17d8lFYY-4Z7iExnLNdYbjOt6EQpVbDdI/view?usp=sharing

Failure details
If the conversion is successful, but the generated model is wrong,
state what is wrong:

Producing wrong results and/or decrease in accuracy
Producing correct results, but the model is slower than expected (model generated from old converter)

Model not running gives error  as below.
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

[{'name': 'input.1', 'index': 0, 'shape': array([  1,   3, 256, 256], dtype=int32), 'shape_signature': array([  1,   3, 256, 256], dtype=int32), 'dtype': <class 'numpy.float32'>, 'quantization': (0.0, 0), 'quantization_parameters': {'scales': array([], dtype=float32), 'zero_points': array([], dtype=int32), 'quantized_dimension': 0}, 'sparsity_parameters': {}}]
[{'name': '4358', 'index': 4138, 'shape': array([ 1, 17,  3], dtype=int32), 'shape_signature': array([ 1, 17,  3], dtype=int32), 'dtype': <class 'numpy.float32'>, 'quantization': (0.0, 0), 'quantization_parameters': {'scales': array([], dtype=float32), 'zero_points': array([], dtype=int32), 'quantized_dimension': 0}, 'sparsity_parameters': {}}]
Traceback (most recent call last):
File "test_graph.py", line 20, in
interpreter.invoke()
File "/home/shreyas/.local/lib/python3.8/site-packages/tensorflow/lite/python/interpreter.py", line 511, in invoke
self._interpreter.Invoke()
File "/home/shreyas/.local/lib/python3.8/site-packages/tensorflow/lite/python/interpreter_wrapper/tensorflow_wrap_interpreter_wrapper.py", line 113, in Invoke
return _tensorflow_wrap_interpreter_wrapper.InterpreterWrapper_Invoke(self)
RuntimeError: Inputs and outputs not all float|uint8|int16 types.Node number 4 (ADD) failed to invoke.

#37099 issue has the same problem, solution isnt working for me.

https://colab.research.google.com/gist/amahendrakar/df7024e8e3f3204c171a586a1c671dab/37099.ipynb
Code implementation

Was able to reproduce the issue with TF v2.2.
Whereas, running the code with TF-nightly, throws an error stating RuntimeError: Regular TensorFlow ops are not supported by this interpreter. Make sure you apply/link the Flex delegate before inference.Node number 3 (FlexAddV2) failed to prepare..
Please find the attached gist. Thanks!

I am also seeing this issue. Any hope of a near term fix? I am blocked.

This is working as intended.
The model has Addv2 which accepts type int64. Tensorflow lite doesn't support Addv2 with int64 input/output.
Since, you used SELECT_TF_OPS that means all non supported ops will be exported as TF ops and run in TF.
To run the generated tflite file, you need to use Interpreter which supports SELECT.
Please follow the guide on creating interpreter
https://www.tensorflow.org/lite/guide/ops_select
Another way is to update your model to use int32 instead of int64, and convert without SELECT_TF_OPS and use regular interpreter.
Thanks


Add package-lock

We're using yarn, is there a reason why we need package-lock.json on top?

I missed that we are using yarn


Publisher hangs

Hello, I'm new to rabbitmq so please forgive me if this is a rudimentary question, but in my scheduler worker, I'm expecting it to add a few items to the queue and exit. But the process hangs once I call .publish() on the queue object. tortoise.destroy() doesn't seem to do the trick. Is there something else I'm supposed to do to exit?

I had a similar issue, running in mocha tests.
In my case, tortoise.destroy() does not hang but my node process hangs.


refactor: move warnings and error in appropriate objects following the jetbrains convention

This PR tries to follow the convention for error generation followed by jetbrains in their compiler plugins:
Kotlinx.serialization errors definitions
Kotlinx.serialization rendering factory
Update
Apparently, this PR closes #507 but the warning inside the IDE is not raised because of the following issue:
IDEA-363292
To reproduce the error inside the IDE follow the steps:

Enable K2 mode inside the IDE Settings -> Language & Frameworks -> Kotlin
Enter in the menu with shift + shift digit Registry, then identify the kotlin.k2.only.bundled.compiler.plugins.enabled entry and UNSET the flag
Rebuild the compiler plugin
Reload the build inside the IDE

@FreshMag could you try to reproduce this error?

@FreshMag Thanks for your help.
@DanySK @angelacorte, I suggest merging this PR so we are enabled for IntelliJ support when the issue is solved. Is it ok for you?


Graphql materials

https://dev.to/vetswhocode/the-api-series-graphql-and-sending-queries-with-fetch-gf0 - bad, no good examples

https://www.youtube.com/watch?v=eIQh02xuVw4
verified

https://www.youtube.com/watch?v=qux4-yWeZvo

https://www.youtube.com/watch?v=ZQL7tL2S0oQ

https://www.youtube.com/watch?v=0ZJI4cBS4JM
GraphQL Client Tutorial With Fetch


admin&admin

I have set up two groups and two different administrators, but one administrator can delete and change the permissions of the other administrator. There is a security issue with this, can it be modified? Please help. Version: Autotube v0.29.4

Can it be set to only manage users within their own team?


Research result doesn't show the slottted gems.

Hi,
I guess it's a bug and not a feature.
When doing a research the slotted gems doesn't appear in the "result".
Even when doing an "advanced reseach" with  "All gems" it doesn't show the slotted gems.
Regards.

I gave this a quick test, if you search for quality gems or search for a gem by name it brings up gems that are socketed in gear in the results.
It only seems to be "All gems" that has this issue. I'll get it sorted for the next release.

Hi,
It also affect the "leveled gems".
Thanks.
Regards.

Ok, will fix that too!

This has finally been fixed, and will be in Procurement 1.9.7 which will be released today.


fixed python3 bug in ChefAPI.from_config_file

Which version of Python 3? Because the tests are currently passing on 3.4 and 3.5, though I don't remember if this code has a good test or not :)

Using 3.5.1.  My knife.rb configuration file using interpolated values and that code path wasn't tested.  I added a new test to cover it.  Thoughts?

Bump @coderanger

Bump @coderanger Is there anything I can do to help with this?

Sorry for the delay, looks good.

(for anyone that finds this later, this might break 2.6 compat if I hadn't already done that. I do not consider that a bug)


form element

Hi!
I have a problem. Demo input and text area on your site work well, but when I try to put them on my site it  does not work. Checkbox, radio, range and datepicker work good, exept input and textarea. When I click on the field, label does not push up. I haven't any problems with js - console is clear.
P.S. Sorry for my english)

For dynamic forms rendering, i find it unacceptable having to reload the script, easiest solution i have found is on forms.js (original source code) :
// Handle HTML5 autofocus
$('input[autofocus]').siblings('label, i').addClass('active');
Just use it without "autofocus", just to inputs and problem solved

I agree with joseAlbano. The form renders pretty poorly. Is there a cleaner solution coming up ?

Thanks @orlax . That helped ;-)


FME Release Notes

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: Add release notes for Harness Feature Management & Experimentation module
Jira/GitHub Issue numbers (if any): ______________________________
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://675c30da138faf126b52202a--harness-developer.netlify.app

Todos for @dtk-DaveKarow to follow up on in January:
[] Figure out how to get FME on the HDH index page (scroll down to where it has "Release Notes" as an H3)
[] Port the existing split.io/releases content into the release-notes/feature-management-experimentation.md file.
...possibly


Fix some issues and improve performance

Thanks a lot for this and for trying to help optimize it. I'll look more into it and merge it later when I finish checking it out.


Increase number of supported DUA registrations

Increase ancillary buffer size to allow for a larger number of multicast groups
Required for NdProxyManager::JoinSolicitedNodeMulticastGroup

Any idea on how to overcome the CI issues?

Maybe we can skip it if it's building in Docker. We can always configure this in the Host when we are running OTBR in Docker.

Maybe we can skip it if it's building in Docker. We can always configure this in the Host when we are running OTBR in Docker.

I don't fully understand your proposal here. Should I change something in my code?

Maybe we can skip it if it's building in Docker. We can always configure this in the Host when we are running OTBR in Docker.

I don't fully understand your proposal here. Should I change something in my code?

Apparently sysctl -w net.core.optmem_max=65536 failed to run in Docker. I am proposing that the setup script can check if it's in Docker, and skip setting sysctl -w net.core.optmem_max=65536 if it is.

@simonlingoogle thanks for the tip, now CI is green. I understand that the setting must be applied on the host side in order to be available in the Docker container.
@jwhui could you label this PR as bug? Without this fix the default OPENTHREAD_CONFIG_NDPROXY_TABLE_ENTRY_NUM minimum limit for DUA registrations can't be reached.


REST service to provide a list of Rasa stories

AS AN Architect
I WANT a REST service to provide a list of Rasa stories
SO THAT this functionality wouldn't be duplicated
Acceptance Criteria

[ ] Use /rasa/stories endpoint
[ ] Use Rasa stories.yml as a source

Examples
Input

version: "3.0"
stories:
- story: andmekaitse_küsimused
  steps:
  - intent: andmekaitse_küsimused
  - action: utter_andmekaitse_küsimused

- story: Deactivate custom fallback form
  steps:
  - action: custom_fallback_form
  - slot_was_set:
    - asukoht: Tallinn
  - action: action_react_to_affirm_deny_in_custom_fallback_form

Output
["andmekaitse_küsimused", "Deactivate custom fallback form"]

@janyprus please link this issue with an appropriate pull request.


Reduce Curator/Zookeeper client creation and logging level

@nickbp: Made those methods package private.  Just the CuratorPersister method must remain public as it's in a different package.  I think that makes sense as consumers of the Persister should make the decision about whether to keep it closed or not.  Actually adding it to the interface.


chore: remove emulateMedia method

It has been deprecated for a while. In the next breaking release let's remove it.

Let's mark this as feat(api): and make sure to include "BREAKING CHANGE" in the commit message, per https://github.com/puppeteer/puppeteer/blob/main/CONTRIBUTING.md#commit-messages.


Support to download docs offline

I found today this site: http://devdocs.io/offline
It has support to download the documentation for offline navigation.
Would be nice if docs.rs would support that too.

Duplicate of https://github.com/rust-lang/docs.rs/issues/174


Bone Fracture Detection

Is your feature request related to a problem? Please describe.
’m always frustrated when diagnosing bone fractures manually as it is time-consuming and prone to human error. There is a need for an efficient and accurate method to detect bone fractures from X-ray images.
Describe the solution you'd like
I would like to develop a machine learning model that can automatically detect bone fractures from medical images. The model should be trained on a diverse dataset to ensure accuracy and reliability. It should provide a clear indication of the presence and location of fractures.
Describe alternatives you've considered
Enhancing manual diagnosis with advanced imaging software to assist radiologists.
Developing a hybrid system combining AI detection with human oversight to improve accuracy.
Using traditional image processing techniques for fracture detection without machine learning.

@vishuhere assigned!


Cursor setting in graph not working

Version
4.2.1
Reproduction link
https://gallery.echartsjs.com/editor.html?c=xfSxInuEWv&v=1
Steps to reproduce
Add cursor: 'wait' in option
cursor: 'wait',
What is expected?
Expect 'wait' cursor when hovering over the nodes and edges.
What is actually happening?
the cursor is still the default 'pointer'.
The same issue was reported in #7764 . It still exists in the latest version 4.2.1.

Actually, It's been fixed 8 months ago
https://github.com/apache/incubator-echarts/blob/master/src/chart/helper/Symbol.js#L158
Maybe you need to build Echarts from source code

4.2.1 didn't include this fix. I don't know why.

I tested. The fix is included in the source code of master branch but not in dist, which is 4.2.1. It will be included in the next release.


[flutter_releases] Flutter stable 2.10.1 Framework Cherrypicks

Flutter stable 2.10.1 Framework
Scheduled Cherrypicks

commit: f268f8203

Gold has detected about 10 new digest(s) on patchset 4.
View them at https://flutter-gold.skia.org/cl/github/98091

Gold has detected about 6 new digest(s) on patchset 5.
View them at https://flutter-gold.skia.org/cl/github/98091

Gold has detected about 9 new digest(s) on patchset 6.
View them at https://flutter-gold.skia.org/cl/github/98091


Resource hooks are constantly re-run

I have just tried write a resource "helper" like this:
export default class LoadDataResource extends Resource {
  @service store;

  @tracked data = null;
  @tracked isLoading = true;
  @tracked isError = false;

  get value() {
    return {
      isLoading: this.isLoading,
      isError: this.isError,
      data: this.data,
    };
  }

  setup() {
    let options = this.args.positional[0];
     taskFor(this.loadDataTask).perform(options);
  }

  teardown() {
    taskFor(this.loadDataTask).cancelAll();
  }

  @task
  *loadDataTask(options) {
    this.isLoading = true;
    this.isError = false;

    try {
      let data = yield this.store.loadData(options);

      this.isError = false;
      this.isLoading = false;
      this.data = data;
    } catch (error) {
      this.isError = true;
      this.isLoading = false;
      this.data = error;
    }
  }
}

Used like this:
{{# let (load-data (hash name='xx' age=30)) as |resource|}}
  {{log resource}}
{{/let}}

However, that goes into an infinite loop of setup/teardown of the resource.

Hmm, now that I try it more, I seem to get the same behavior when converting the task to an async function.
I have managed to make a pretty minimal case where it doesn't work for me:
export default class LoadDataResource extends Resource {
  @tracked isLoading = true;

  get value() {
    return {
      isLoading: this.isLoading,
    };
  }

  setup() {
    this.loadData();
  }

  async loadData() {
    await new Promise((resolve) => {
      setTimeout(() => resolve([]), 1000);
    });

    this.isLoading = false;
    console.log('load data completed');
  }
}

Every time isLoading is set, the setup() hooks seems to be called again, so every 1000ms.

How are you invoking the Resource?
Does this "fix" it?
  setup() {
    setTimeout(() => this.loadData());
  }

This is the problem with long timelines to implement things, I forgot that there were fundamentally two layers of caching going on here, have a PR coming up!

@pzuraq @buschtoens this is still happening on "ember-could-get-used-to-this": "^1.0.1" with a fairly exact scenario posted here.

I'm hitting a similar error.
Resource:
import {Resource} from 'ember-could-get-used-to-this';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency-decorators';
import {tracked} from '@glimmer/tracking';

export default class MemberFetcher extends Resource {
    @service store;

    @tracked data = null;
    @tracked isLoading = false;

    get value() {
        return {
            data: this.data,
            isLoading: this.isLoading
        };
    }

    setup() {
        const {id} = this.args.named;

        if (!id) {
            return;
        }
        console.log('setup', id);
        this.fetchMemberTask.perform(id);
    }

    @task
    *fetchMemberTask(id) {
        this.isLoading = true;
        const member = yield this.store.findRecord('member', id);
        this.isLoading = false;

        this.data = member;
    }
}

Invocation:
{{#let (member-fetcher id=this.member) as |memberFetcher|}}
    {{#if memberFetcher.data}}
        <GhMemberDetails @member={{memberFetcher.data}} />
    {{/if}}
{{/let}}

Error:

Does the library need a new release? Looks like the fix was committed after the last release was cut.


Azdo Pipeline Provider - prompt user for PAT

Prompt user for PAT if not found in the AZURE_DEVOPS_EXT_PAT environment variable. This is to improve the AzDo pipeline config experience by asking the user for a PAT and linking to documentation on how to create a PAT.
This should also provide instructions on how the user can set a PAT via environment variables so the user is not prompted repeatedly for a PAT.

I think that this was completed via #743


Upgrade OpenAI Client Library to Latest Version (1.x)

0.x is outdated😔

https://github.com/uezo/aiavatarkit/commit/f10df714e900d9af3cdd54604fb0046798226a84


add blobfile methods that work with byte_streams

This PR should be reviewed by: @socrata/pipeline

This PR should be reviewed by: @socrata/pipeline


Improve Handling of Portfolio Data & Calculations

it's currently a bit confusing how the portfolio data/calculation is handled & managed.

the function get_data(...) in utils.py is taking a list of DataProvider and PortfolioCompany and then just returns a data frame.
this data frame is then later used in the Temp Score calculations, even though there you could also use it without the portfolio data. And if I understand it correctly, temp score calculations on a company level don't need any portfolio data, so it feels like you're mixing stuff here.

What could be improved:

better separate the computations around aggregated data for portfolios from the calculations of temp scores. One is the temp score on a company level and one is on portfolio level
have more clear input for the function that combines Company, Target and Portfolio data. Right now it needs a provider, even though the actual input you need at this stage is the calculated temp scores on company level, and then just join in more portfolio data for further aggregations
if you want to keep that you need to pass a Provider as input to this function, maybe it would make sense to add a provider that actually takes directly the class Company and Target as inputs, rather than it has to be CSV or Excel. Though I still feel like the input for the portfolio agg functions should be the temp score on company level plus whatever extra data is needed on a company level, rather than the provider again.

does it make sense?

Currently, what happens in the get_data method is that for each company in the portfolio, all targets and company info are retrieved. For this, all data providers are used in a "waterfall" fashion, which is why we need a list of data providers (i.e. if data provider A doesn't have the required information, we'll ask data provider B). These targets are then denormalized and a 9-box grid is created, as per the Target Validation Protocol from the SBTi's methodology. Therefore this step is essential and I don't see how could do this in separate steps.
The information in the portfolio data is also included in this denormalized data set as some of the fields in the portfolio might be required during the calculation of the temperature score (mainly "engage_target").
To make the notebooks cleaner, I've now added the option to perform the data retrieval in the calculate method, so the user doesn't need to know what's happening under the hood and can just pass-in his data providers and portfolio.


First take at splitting out GenericChildData and its descendant class…

…es into its own file, and out of the GenericChildType class.

ok it is now passes all my test cases for get, post, patch and delete, with the exception of calendars. but that is an issue of weird parameter naming in the API, where GET has basically nothing to do with POST: https://kanka.io/en/docs/1.0/calendars. I don't know if it's worth writing a converter script for that or just to wait until it gets fixed. I'll think about it.


Unable to recognize "\ operatorname" flag

I use the web to convert latex to mathml, but in my latex code, "\ operatorname" flag can not be recognized. Can you add support for this flag?

Thank you for opening issues!
It seems to be not difficult, so I'll try to implement it in a few days.

Implemented in version 0.2.1. Thank you for your suggestion!


Y24-457 - Barcode Plate B addition to Traction LIMS for PacBio

User story
As Craig, I would like a new tag set for new barcode plates A, B, C and D so I can add tags to the pipeline.
Primary Contacts

Craig Corton -<EMAIL_ADDRESS>James Watts -<EMAIL_ADDRESS>
Nominated testers for UAT

Craig Corton -<EMAIL_ADDRESS>James Watts -<EMAIL_ADDRESS>
Acceptance criteria
To be considered successful the solution must allow:

[ ] The Pacbio_384_barcode_plates_ABCD tag set should be available
[ ] The create tag set rake task should include the Pacbio_384_barcode_plates_ABCD tag set
[ ] The tag set should be available in SMRT link (and available in UAT SMRTLink for testing - trac-smrtlink-uat.psd.sanger.ac.uk:8243/sl/data-management)
[ ] The tag set should have the uuid. 6ed141f6-4293-d3ba-933e-0b9b60c8a7ce

Additional context
Attached is the file containing the barcode IDs and fasta sequences required

Hi Stanley
There is nothing attached.
Steve.
From: Stan1520 @.>
Reply to: sanger/traction-service @.>
Date: Wednesday 20 November 2024 at 11:20
To: sanger/traction-service @.>
Cc: Stephen Inglis @.>, Mention @.***>
Subject: [sanger/traction-service] Y24-457 - Barcode Plate B addition to Traction LIMS for PacBio (Issue #1487) [EXT]
User story
As Craig, I would like a new tag set for new barcode plates A, B, C and D so I can add tags to the pipeline.
Primary Contacts

Craig Corton -<EMAIL_ADDRESS>James Watts -<EMAIL_ADDRESS>
Nominated testers for UAT

Craig Corton -<EMAIL_ADDRESS>James Watts -<EMAIL_ADDRESS>
Acceptance criteria
To be considered successful the solution must allow:

The Pacbio_384_barcode_plates_ABCD tag set should be available
The create tag set rake task should include the Pacbio_384_barcode_plates_ABCD tag set
The tag set should be available in SMRT link (and available in UAT SMRTLink for testing - trac-smrtlink-uat.psd.sanger.ac.uk:8243/sl/data-management)
The tag set should have the uuid. 6ed141f6-4293-d3ba-933e-0b9b60c8a7ce

Additional context
Attached is the file containing the barcode IDs and fasta sequences required
—
Reply to this email directly, view it on GitHub [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sanger_traction-2Dservice_issues_1487&d=DwMCaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=PioAYl_Zz9lnGwJRms8MsEB0E-grNRW-ut-_gAGl70g&m=xfd3i0lPw8VCmo8bCSyIgn49pfcfLF1wjuN7hntGNPMTIClhVBYJU6fbUsQ_FSCU&s=kfRCSdaxgM5aBI9y0Hbc-5BJLlhlCki_i3iqyHmOQt8&e=, or unsubscribe [github.com]https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAD6ZHZ6VSVIY7V23F3QW732BRWAHAVCNFSM6AAAAABSEKWC72VHI2DSMVQWIX3LMV43ASLTON2WKOZSGY3TKNJRGQ3TIMY&d=DwMCaQ&c=D7ByGjS34AllFgecYw0iC6Zq7qlm8uclZFI0SqQnqBo&r=PioAYl_Zz9lnGwJRms8MsEB0E-grNRW-ut-_gAGl70g&m=xfd3i0lPw8VCmo8bCSyIgn49pfcfLF1wjuN7hntGNPMTIClhVBYJU6fbUsQ_FSCU&s=wOn6Wjg4aAa4PZTPWsym4mAHFT1R24PRNjdG9F25ESQ&e=.
You are receiving this because you were mentioned.Message ID: @.***>

The Wellcome Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is Wellcome Sanger Institute, Wellcome Genome Campus, Hinxton, CB10 1SA.


v1 branch/tag for the latest release

This can be useful for users who want the latest features and fixes, and don’t want to manually bump the version all the time.

Currently action has a latest tag, which points to the latest version. The reason I chose latest instead of v1 is I didn't want dependabot to update action based on semver.

Well I think some users might be hesitant because latest doesn’t guarantee API compatibility in any means but v1 generally does.

Does it mean the action doesn’t guarantee any kind of API compatibility, or it provides API compatibility forever? I don’t think either of them is viable…

Action will be providing API compatibility, I don't see any reason to introduce any breaking change to API, but I am also considering adding v{major} tag as well.
This can be added similar to how latest tag is updated currently with additional logic for detecting major version:
https://github.com/SwiftyLab/setup-swift/blob/5dfc5184796ead5ef4e3ce6bae9ba37ea8049151/.github/workflows/main.yml#L514-L518
Do you want to have a crack at this?


Major rewrite

I thought it we are considering a major rewrite, then it might be worth say why? and what functionality we have right now.
Re writing the nwp-consumer has been a success.
Why

make code easier to read
easier to debug
easier to expand on
join together training dataset code and live consumer. Currently training dataset code is in dagster repo (TODO add link)

Requirements

Get 3 different satellite data, 0, 9 and 45.5.
For 0 and 9, get both the HRV and non-HRV data
Optional to scale data, to match exsisting google public dataset data
Dataset: Make training dataset, and merge to monthly zarrs
Live: Get live data
Live: For live data, with 9 degrees, use data tailor service (we might find we might not need to)
Live: When getting live data, save raw and process timestamp files so that we dont have to repeat this everytime the consumer runs
Live: Save 'latest' file, so ML models can just load that file
Dockerize service, so that live and dataset can use the same docker file

@devsjc could you add any other requirements you think we need


Posting webhook notifications to my own server

Hello everyone! Could you help me, please?
I need my gitblit config repo to POST webhook notifications to my http://myserver:port/monitor endpoint which is configured on my Spring Cloud Config Server which uses Spring Cloud Bus.
How can I push hook events to my Spring Cloud Config server?
I know I have to leverage groovy scripts and I've look through these existing scripts https://github.com/gitblit/gitblit/tree/master/src/main/distrib/data/groovy but I don't have an idea how to set up webhook to my own server and where should I place gitblit.properties file.
Thanks in advance.

Please have a look on sample fisheye groovy script. This will do the job for you. You might only need to adopt your target URL.
Having prepared the hook script, assign the hook in repository configuration to "post receive" event.

Closing as done since no further feedback from author.


Add simple worked out example

Add a simple worked out example with explanations to help new users understand how they can use the KMC_Lattice library to build their own custom KMC simulation tools.

The companion repo, KMC_Lattice_example has now been updated to work with KMC_Lattice v2.0 and serves as a simple example for new users.


Is there any way to hook fieldArray onChange?

I know there is feature to know when Field is changed. But I also need to hook when FieldArray is changed(items added/deleted). I asked on stackoverflow, but no one answered. So I guess it should be added as feature? If I'm wrong, tell the solution please.

@kkseven07  did you find a solution for this?

#4531


Sphinx documentation should be hosted online

It would be great to automatically build and push the sphinx docs to gh_pages when merging to master.

We discussed this at a recent meeting and came up with the following steps:

Publish gt4py docs to gt_pages
Improve docs for eve and gtc
Create top-level sphinx page with links to all projects and switch to that.

Let's do this after #1040, maybe in the process we reorganize how docs are separated.

Docs are here https://github.com/GridTools/gt4py. Need to be updated again once we are done. Simply build the docs, copy the folder to the appropriate place in the gh-pages branch and push.


hostname don't work in my browser

When i create a new tenant, i can't access by browser.
i use:
multi-tenan version: 5.3
laravel: 5.8
server: largon
php: 7.2
i'm creating it with a seeder
public function run()
{
        $uuid = env('DB_DATABASE').'_example';
        /**
         * Website
         */
        $website = new Website(['uuid' => $uuid]);
        app(WebsiteRepository::class)->create($website);

        /**
         * Hostname
         */
        $hostname = new Hostname(['fqdn' => 'example.'.env('APP_URL_BASE')]);
        $hostname = app(HostnameRepository::class)->create($hostname);
        app(HostnameRepository::class)->attach($hostname, $website);

        /**
         * Switch to new tenant
         */
        $tenancy = app(Environment::class);
        $tenancy->hostname($hostname);
        $tenancy->tenant($website);
}

It sounds like you may have misunderstood how that works.  I recommend reading my post here: https://medium.com/@fletch3555/networking-your-multi-tenant-app-24a340310883

As @fletch3555 mentions you need to allow the domain to resolve to your laragon set up. In addition using environment variables outside of configuration files isn't recommended as they won't be accessible when the config is cached.


IndexError when training on a custom dataset

I cloned the repository and trained a DeepDPM on a custom dataset (with pre-computed embeddings of dim 128).
I ran the DeepDPM.py file with init_k=150. At epoch 56 (after splitting clusters at epoch 55), I get the following error:
line 237, in cluster_loss_function
    gmm_k = MultivariateNormal(model_mus[k].double().to(device=self.device), model_covs[k].double().to(device=self.device))
IndexError: index 150 is out of bounds for dimension 0 with size 150

After splitting, the model creates more clusters (156) than model_mus and model_covs can handle (150).
@meitarronen Please help, how can I deal with this issue?

@meitarronen @freifeld Up 🙏 Any idea?

@alamie we will upload an update soon with this bug fixed.

@alamie In the last update of the code this bug has been fixed. Please let us know if it persists!


Convert ```mermaid snippet into the actual graph

Currently many tools expect to see mermaid graphs into a code block like:

```meirmad
  CODE HERE
```

but the theme support only the shortcode syntax: {{}}
Please, add the ability to render correctly also the code blocks.

Close this issue because #226 has been merged?


Parallel Solvers

PR #173 added support for implicit solvers provided by OrdinaryDiffEq.
We should support more solvers. In particular: parallel solvers such as KuttaPRK2p5.

This is not to be confused with the other sort of parallelization which comes from analysis of a Decapode, such as that demonstrated in the multi-species Navier-Stokes Decapode. That sort of parallelization can't really be done by selecting a different algorithm for solve.


fix routing for SS 3.2+

Hi @Martimiz,
I have been struggling to setup the routing for this module using SS 3.4.
I followed your instructions on https://github.com/Martimiz/silverstripe-languageprefix/blob/master/docs/en/routing.md, but it just didn't quite work. I then updated all the core routes from cms and framework and it seems to work.
Initially I had put the consolidated routes in mysite/_config/routes.yml, but then I thought it might be worthwhile to directly incorporate them in the module itself. Hence this PR.
What was your intention by having the routing in the instructions and not already setup in the code? SS version issues and maintainability, I assume?
Is there a way we can make this more flexible without re-defining all the core routes? And without having to setup the routing for each project manually (again)?
Cheers, Flo

Thanks for your effort, xini!
To be totally honest, I actually forgot about this fix, that should only have been temporary in the first place... So before implementing your pull, which is basically making the temp solution final, I'd like to look into this one more time.
I'll get back to you :)
Martine

No worries. Yes, I suspected something like that. Thanks!

OK, sorry for never getting back to this - that shouldn't have happened!
This used to be an issue in early versions of SilverStripe 3, but I'm sure it isn't anymore in current versions, so v3.0.0 should work fine now, without that patch. Let me know if I'm still misscing something...

Hey, no worries. I can't even recall what project I used this for. But my pull request was done after you released 3.0.0 and it's called "fix routing for SS 3.2+", which means that there was an issue with newer versions of SS.

I know the problem existed and I'm quite sure it's actually a framework issue. I remeber in early 2.0 I had somerhing similar implemented - there is still the docs/en/routing.md that explains. It was removed after I was told the problem no longer existed and oI tested it on a couple of sites and versions
I'll close this one for now. Please let me know if you ever run into that problem again, so we can find out what actually causes it. Thanks again