Adding GPT-4o Support

I tried to add support for GPT-4o here. I'm not sure everything is working quite right yet but it's a start.
Remaining issues:

GPT-4o is not yet shown in the quick-switcher.
I'm still getting an invalid model error when I try to send a query. I've dumped the debug console as shown below. I don't normally work with JS so I'm not having much luck making sense of it. Anyone able to advise here?

rejected promise not handled within 1 second: Error: Invalid model: gpt-4o
extensionHostProcess.js:147
stack trace: Error: Invalid model: gpt-4o
	at module2.exports.__wbindgen_error_new (/Users/nick/Documents/vscode-chatgpt-reborn/out/extension.js:58536:19)
	at wasm://wasm/00b5f812:wasm-function[59]:0x29389
	at module2.exports.encoding_for_model (/Users/nick/Documents/vscode-chatgpt-reborn/out/extension.js:58344:14)
	at ApiProvider.getEncodingForModel (/Users/nick/Documents/vscode-chatgpt-reborn/out/extension.js:64154:51)
	at ApiProvider.countMessageTokens (/Users/nick/Documents/vscode-chatgpt-reborn/out/extension.js:64167:31)
	at a.value (/Users/nick/Documents/vscode-chatgpt-reborn/out/extension.js:64553:45)
	at o.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:660)
	at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:877)
	at w.$onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:145:14048)
	at c.S (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:5505)
	at c.Q (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:5271)
	at c.M (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:4361)
	at c.L (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:3579)
	at a.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:2227)
	at o.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:660)
	at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:877)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:107:14175)
	at a.value (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:176:8023)
	at o.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:660)
	at o.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:82:877)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:107:14175)
	at MessagePortMain.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:176:6303)
	at MessagePortMain.emit (node:events:517:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2285)
	at Object.callbackTrampoline (node:internal/async_hooks:130:17)

Thanks for getting a head start @nickv2002. This and the gpt-4-turbo PR I'll focus on merging this weekend. Apologies, work as been chaotic of late, so I've been slow to update this extension.
I see you've updated tiktoken so (I think) that should be enough for it to recognize the model. Tiktoken can be slow to update models though, so I'd double-check it accepts gpt-4o as a model, if it doesn't, in the past I would just lie to tiktoken and say we're using a similar model that it does know about.
The OpenAI package might require an update.
The way models get populated in the dropdown is by having the background process ask OpenAI what models are available on the key the user provided (theoretically in the future we could add support for custom fine-tuned models). The backend process then only checks the giant list that OpenAI returns against a small subset of models we choose to show in the GUI. Without digging in right now, I forget how the code decides what models to tell the frontend process are available (or if the frontend process decides that part).
You've updated the Typescript types, so I think the dropdown GUI component, may just have it hard-coded to show options for only specific models. So, if you look at how gpt-4-turbo is done, you can probably copy that, and add a new entry for gpt-4o.
Before merging, I'll probably create translations for the new gpt-4o entry based off the gpt-4-turbo one, and having chatgpt help with the translation. It's kind of tedious with all the languages, but I know we have a few users in East Asia.
@nickv2002 if you'd like to go ahead take a stab at updating the model-dropdown component, feel free. If you don't have time, np, I can pick up where you left off over the weekend. I appreciate your proactive work on this update.

tiktoken 1.0.15 does specifically mention gpt-4o support: https://github.com/dqbd/tiktoken/releases/tag/%40dqbd%2Ftiktoken%401.0.15

I'm not sure where the remaining Invalid model: gpt-4o error message is coming from (I can successfully curl the API with my key to get gpt-4o responses). I have some guests for the holiday weekend here so won't get a chance to work on this PR for a while. Thanks for looking into this in the meantime!

Thank you for the work on this feature, Nick. I'll deploy a new release with gpt-4o soon.


HMR not working after failed hydration

Vue version
3.2.45
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-knf34v?file=App.vue
Steps to reproduce
Сhange a value e.g. const a = ref(2)
What is expected?
Value is changed on the web page
What is actually happening?
HTML is removed from <div id="app" />
System Info
No response
Any additional comments?
No response

During HMR reload, the div element is unmounted. However, in SSR mode, the mountComponent process does not remount the div element but hydrates it instead, causing the issue of the div element being deleted.


[DNM] Build dlrn packages from opendev changes

https://review.opendev.org/c/openstack/neutron/+/910912
Depends-On: https://review.opendev.org/c/openstack/neutron/+/913763
Depends-On: https://github.com/openstack-k8s-operators/ci-framework/pull/1418

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

recheck

Below are the results:
https://logserver.rdoproject.org/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a/github-check/tcib-build-containers/6701b9d/job-output.txt
Constructed Zuul Change list:
 TASK [build_openstack_packages : Print Zuul change list var=cifmw_bop_change_list] ***
2024-04-15 04:20:19.352119 | controller | Monday 15 April 2024  04:20:19 -0400 (0:00:00.152)       0:01:41.236 **********
2024-04-15 04:20:19.386226 | controller | ok: [localhost] => {
2024-04-15 04:20:19.386263 | controller |     "cifmw_bop_change_list": [
2024-04-15 04:20:19.386275 | controller |         {
2024-04-15 04:20:19.386285 | controller |             "branch": "stable/2023.1",
2024-04-15 04:20:19.386295 | controller |             "change": "913763",
2024-04-15 04:20:19.386310 | controller |             "host": "https://review.opendev.org",
2024-04-15 04:20:19.386320 | controller |             "project": "openstack/neutron",
2024-04-15 04:20:19.386330 | controller |             "refspec": "refs/changes/63/913763/3"
2024-04-15 04:20:19.386349 | controller |         },
2024-04-15 04:20:19.386359 | controller |         {
2024-04-15 04:20:19.386369 | controller |             "branch": "main",
2024-04-15 04:20:19.386379 | controller |             "change": "162",
2024-04-15 04:20:19.386388 | controller |             "host": "https://github.com",
2024-04-15 04:20:19.386398 | controller |             "project": "openstack-k8s-operators/tcib",
2024-04-15 04:20:19.386408 | controller |             "refspec": "refs/changes/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a"
2024-04-15 04:20:19.386418 | controller |         }
2024-04-15 04:20:19.386428 | controller |     ]
2024-04-15 04:20:19.386437 | controller | }
2024-04-15 04:20:19.386447 | controller |
2024-04-15 04:20:19.386457 | controller | TASK [build_openstack_packages : Build DLRN packages from zuul changes _raw_params=run_dlrn.yml] ***
2024-04-15 04:20:19.386467 | controller | Monday 15 April 2024  04:20:19 -0400 (0:00:00.034)       0:01:41.270 **********
2024-04-15 04:20:19.502210 | controller | included: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/build_openstack_packages/tasks/run_dlrn.yml for localhost => (item={'host': 'https://review.opendev.org', 'project': 'openstack/neutron', 'branch': 'stable/2023.1', 'change': '913763', 'refspec': 'refs/changes/63/913763/3'})
2024-04-15 04:20:19.502251 | controller | included: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/build_openstack_packages/tasks/run_dlrn.yml for localhost => (item={'host': 'https://github.com', 'project': 'openstack-k8s-operators/tcib', 'branch': 'main', 'change': '162', 'refspec': 'refs/changes/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a'})

DLRN Built packages:  TASK [build_openstack_packages : Print Zuul change list var=cifmw_bop_change_list] ***
2024-04-15 04:20:19.352119 | controller | Monday 15 April 2024  04:20:19 -0400 (0:00:00.152)       0:01:41.236 **********
2024-04-15 04:20:19.386226 | controller | ok: [localhost] => {
2024-04-15 04:20:19.386263 | controller |     "cifmw_bop_change_list": [
2024-04-15 04:20:19.386275 | controller |         {
2024-04-15 04:20:19.386285 | controller |             "branch": "stable/2023.1",
2024-04-15 04:20:19.386295 | controller |             "change": "913763",
2024-04-15 04:20:19.386310 | controller |             "host": "https://review.opendev.org",
2024-04-15 04:20:19.386320 | controller |             "project": "openstack/neutron",
2024-04-15 04:20:19.386330 | controller |             "refspec": "refs/changes/63/913763/3"
2024-04-15 04:20:19.386349 | controller |         },
2024-04-15 04:20:19.386359 | controller |         {
2024-04-15 04:20:19.386369 | controller |             "branch": "main",
2024-04-15 04:20:19.386379 | controller |             "change": "162",
2024-04-15 04:20:19.386388 | controller |             "host": "https://github.com",
2024-04-15 04:20:19.386398 | controller |             "project": "openstack-k8s-operators/tcib",
2024-04-15 04:20:19.386408 | controller |             "refspec": "refs/changes/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a"
2024-04-15 04:20:19.386418 | controller |         }
2024-04-15 04:20:19.386428 | controller |     ]
2024-04-15 04:20:19.386437 | controller | }
2024-04-15 04:20:19.386447 | controller |
2024-04-15 04:20:19.386457 | controller | TASK [build_openstack_packages : Build DLRN packages from zuul changes _raw_params=run_dlrn.yml] ***
2024-04-15 04:20:19.386467 | controller | Monday 15 April 2024  04:20:19 -0400 (0:00:00.034)       0:01:41.270 **********
2024-04-15 04:20:19.502210 | controller | included: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/build_openstack_packages/tasks/run_dlrn.yml for localhost => (item={'host': 'https://review.opendev.org', 'project': 'openstack/neutron', 'branch': 'stable/2023.1', 'change': '913763', 'refspec': 'refs/changes/63/913763/3'})
2024-04-15 04:20:19.502251 | controller | included: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/build_openstack_packages/tasks/run_dlrn.yml for localhost => (item={'host': 'https://github.com', 'project': 'openstack-k8s-operators/tcib', 'branch': 'main', 'change': '162', 'refspec': 'refs/changes/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a'})
tcib package getting consumed from gating repo https://logserver.rdoproject.org/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a/github-check/tcib-build-containers/6701b9d/ci-framework-data/logs/3b7eb06f-23a3-4101-afd5-ef83db3d0aa4/base/base-build.log
python-tcib-containers   noarch  0.3.1-0.20240415083803.5dac896.el9 gating-repo                 60 k

OpenStack-neutron package getting consumed https://logserver.rdoproject.org/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a/github-check/tcib-build-containers/6701b9d/ci-framework-data/logs/3b7eb06f-23a3-4101-afd5-ef83db3d0aa4/base/os/neutron-base/neutron-base-build.log
openstack-neutron                          noarch  1:22.1.1-0.20240415082121.8591eec.el9 gating-repo                    33 k
 openstack-neutron-ml2                      noarch  1:22.1.1-0.20240415082121.8591eec.el9 gating-repo                    20 k
 openstack-neutron-rpc-server               noarch  1:22.1.1-0.20240415082121.8591eec.el9 gating-repo                    12 k

Gating Repo: https://logserver.rdoproject.org/62/162/5dac89638ab6f54562dfeeeacc9000bb8bfb5e4a/github-check/tcib-build-containers/6701b9d/ci-framework-data/artifacts/repositories/gating.repo

recheck

recheck

recheck

recheck

recheck

recheck


Updated repo with ImageLoad handler and fixed an issue when lightbox is used in an iframe

I also updated webpack to test something, you can revert that. Basically I just added a image loaded handler and am only using window.top when window.self == window.top to fix an error when this is used in an iframe. Both of these solutions are addressing issues #103 and #102 respectively.

Thanks for the contribution! I cleaned things up a bit, but it's nice to have a foundation to build on. These are available now in v4.6.0

Thanks! What did you clean up exactly?
Also I'm new to contributing and forking, so I don't understand how the
build process works from the forked repo when I imported that into my react
app. What I mean is, when I imported your repo, it creates the js file in
the dist folder but my version didn't do that. So I just ran build from the
forked repo and copied the dist folder directly into the node modules in my
react app.
Thanks for accepting the code and cleaning it up for me. Much appreciated!
On Thu, Mar 8, 2018 at 6:14 PM Fritz<EMAIL_ADDRESS>wrote:

Thanks for the contribution! I cleaned things up a bit, but it's nice to
have a foundation to build on. These are available now in v4.6.0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fritz-c/react-image-lightbox/pull/104#issuecomment-371669779,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ajb8YjrbK8eZt1gZYMibPcprQbGO0P6-ks5tcclegaJpZM4Si8Ow
.

My changes:
https://github.com/fritz-c/react-image-lightbox/compare/8ba1887f2643dd8a8b3adeab96ed92cef4a165e3...master
As for local development, I think you'd have to use npm link to use an unreleased library with your changes.
If there's something I want to test out, though, I usually just make a test case or another example within the library repo. I do that more for my react-sortable-tree repo with the storybook examples, for example.
If you're talking about forking the library to permanently use your changes, you could create your own npm library using this code as a base, plus your modifications. You might scope the package with your user name to make it more obvious it's a fork.

Liked the changes you made and thanks a lot for the tips. You've been a
great help! I'm happy I could help contribute to this project. I've tried
to make my own  Version of this and used other modal/lightbox  solutions
out there, and this is the best one I've found by far. Keep up the good
work and have a great night!
On Thu, Mar 8, 2018 at 7:22 PM Fritz<EMAIL_ADDRESS>wrote:

My changes:
8ba1887...master
https://github.com/fritz-c/react-image-lightbox/compare/8ba1887f2643dd8a8b3adeab96ed92cef4a165e3...master
As for local development, I think you'd have to use npm link
https://docs.npmjs.com/cli/link to use an unreleased library with your
changes.
If there's something I want to test out, though, I usually just make a
test case or another example within the library repo. I do that more for my
react-sortable-tree repo with the storybook examples, for example.
If you're talking about forking the library to permanently use your
changes, you could create your own npm library using this code as a base,
plus your modifications. You might scope the package
https://docs.npmjs.com/misc/scope with your user name to make it more
obvious it's a fork.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fritz-c/react-image-lightbox/pull/104#issuecomment-371681773,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ajb8YiYqcrg0UJirK66AyxMJV49DKyKgks5tcdlcgaJpZM4Si8Ow
.


[ENG 5336] Dep-group: dev modules (flake, etc)

Purpose
Python dependencies and libs upgrade
Changes
Bumped dev dependencies
QA Notes
Please make verification statements inspired by your code and what your code touches.

Verify
Verify

What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation

Side Effects

Ticket
ENG-5336

Ace! Merged.


We need your contributions

We would like to develop a python based platform to monitor Docker containers, we need your help and suggestions :-)

What would there be to do?

@Neverbolt Thank you for your interest. The idea is to create an API client and interface it with a server side platform. So developing a module to collect, prepare and send data then optimise it to be simple, non-blocking and fast is a very good idea to start.
The project needs also to choose a unit testing strategy, probably enhance the naming convention ..etc Any other suggestions are welcome.


The paid version

Releasing bug fixes, full design overhaul, and new features like filtering and showing data in more ways.

Things added:

a totally new design inspired by Zerion.io and Baremetrics.
Filtering/breakdown on pages and goals - referrers, browsers, countries will come soon
Rename of tracker.js to kind.js and kinder.js - kind.js auto-send pageviews on pushState and normal pageview while kinder don't - good when you want to trigger that yourself
Added an own repo (private right now) for documentation - will update it to be correct before the release of it.
Added plans - Will start from 7 EUR and the highest plan right now is 90 EUR. - highly inspired by Postmark, campaign monitor, and all of the design there. 14 days trial will be active when this is released.
Fixed bugs on events not being saved as sessions have not been saved yet.
Fixed bugs on charts showing multiple views on some days (yesterday and today)

What's left:

[ ] Fix so the new tracker javascript works for self-hosting
[x] Going through the plans to be correct prices and all. (maybe support multi-currency?)
[ ] Using a tab menu for site settings pages as well?
[x] nice messages on cancel and upgrade
[ ] some more small things...

Will release as soon as tracker and plans are fixed. the rest of the list can wait :)
Issues this MR have fixed:
Closing #89, #5, #91, #90
Good to know:
To skip plans and trial ending for self-hosting - you would need to after creating user run the task kind:admin <email for user>
Need also send an email to the beta users for a thank you and say it is payment now and give them a huge discount coupon as a thank you.

I forgot to add that I have done some optimizing, doing fewer maps, and less duplicating variables and also moved stats classes to structs.
Should reduce memory usage and make it go even faster :)


Test against PHP 7.2

With the release of PHP 7.2, would be interesting to test it.

Test failed.

The method count now throws an Exception if it is trying to count an non Coutable. Goona work on fixes.

The each method was deprecated in PHP 7.2. I'm gonna work on PHPUnit 6 compatibility, that fixes it.

https://travis-ci.org/cakephp/phinx/jobs/314070337#L545
The error seems to be caused by the sebastian/comparator.

I guess after merge #1238 everything will works.

OK. I will check both patches on my local environment, and if there are no problems I will merge them.

@carusogabriel PHP 7.2 build still fails after merging of #1238. Can you try rebasing your branch on top of latest master?

@ADmad After rebase, still not working. I'm going to install PHP 7.2 locally and try to fix it :sweat_smile:

Phpunit 4 would probably be required for PHP 5.4/5.5.


trust(true) followed by trust(false) doesn't seem to work

Hello, I am using your plugin on an Android 5.0 phone and an facing an odd issue. I'd appreciate if you can provide any tips.
Example 1: I generate a self-signed certificate for my server and start my app. Inside the app, I set cordova.plugins.certificates.trustUnsecureCerts(false);.  As expected, $http.get for SSL inside my app fails. onReceivedSslError called.  As expected
Example 2: I generate a self-signed certificate for my server and start my app. Inside the app, I set cordova.plugins.certificates.trustUnsecureCerts(true);.  As expected, $http.get for SSL inside my app succeeds. onReceivedSslError called.  As expected
Interestingly, if I quit the app and start it again, onReceivedSslError is not called - the https call just passes through successfully. not expected
Example 3:  I generate a self-signed certificate for my server and start my app. Inside the app, I set cordova.plugins.certificates.trustUnsecureCerts(true);.  As expected, $http.get for SSL inside my app succeeds. onReceivedSslError NOT called.  But then I invoke cordova.plugins.certificates.trustUnsecureCerts(false); and quit the app. When the app restarts, (and I am sure it is not setting it to true again), the https commands continue to work. `onReceivedSSLError' never called. Not as expected
Would you have any thoughts on what is happening? Thanks.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sorry, I think I reported incorrect data. Closing. Once I do more tests, I'll open this again.


Defer css load

@projectmushroom please review
This is an attempt to defer load smart styles.
Good improvements but to keep in mind there is not much content on my local site.
QA Site

Local Site:

Issues,
How can we optimize and include Django template compress hashing to those files?


Change image for textfield of type .selection

the class has a parameter or function for change the image on right side of  textfield of type .selection?

There is no public API for changing the rightView. It would be a really nice feature to have if you want to contribute to the project.
In the meantime, you can create your own type & configurator. For example:
fileprivate struct AnimatedTextInputCustomSelectionConfigurator {

    static func generate() -> TextInput {
        let textField = AnimatedTextField()

        //create your imageView
        let arrowImageView =

        textField.rightView = arrowImageView
        textField.rightViewMode = .always
        textField.isUserInteractionEnabled = false
        return textField
    }
}

Then configure it like so:
let textInput = AnimatedTextInput()
textInput.type = generic(textInput: AnimatedTextInputCustomSelectionConfigurator.generate())
//...

Thanks Victor. At next month I will probably do that.

Thank you!


Add Conduit to README.MD

Please add this repo https://github.com/slashdotdash/conduit

Hello, we moved the addition of new implementations to this website : https://codebase.show/projects/realworld
Please submit your implementation there.


update footer

Describe the feature
I can fix it. Please grant me access so I can resolve the issue.
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

I want to work on this issue. Kindly assign me and also add labels for the same. @Its-Aman-Yadav


Feature: Option to disable deletion of stats embed message

Would be nice to have an option to disable the auto-deletion of embed messages. We use the stat tracking in our community as a way for people to show off to others. Because of this it's useful to keep the embed around

Added this abilty in push 3835e50


Fix project structure

Perhaps we could draw inspiration from Jakarta2024 by incorporating well-organized packages. This would not only improve the overall project structure but also provide a clearer understanding of the necessary components for our project. What are your thoughts on this approach? 🤔

Sounds good!

Absolutly:)


fix(Differ): removed early bail that was preventing structure changes from being recognized

commented out steps that prevent a comparison from happening in DiffStructure if the checksum or path have not yet been updated (as is the case when DiffDataset is called inside prepare dataset)

sure thing, about to push an update

This would be a great chance to squash merge instead of commit-merge. mind if I do it?


No signature of method: build_…android() applicable for argument types: (build_…_run_closure2)

Hello!
I can't build my Flutter app for Android after adding the secure_application package, it crashes with error below:
Build file '/usr/local/Caskroom/flutter/2.2.2/flutter/.pub-cache/hosted/pub.dartlang.org/secure_application-3.7.3/android/build.gradle' line: 27

A problem occurred evaluating project ':secure_application'.
> No signature of method: build_c5ahy1849z3l6msywlxga8k28.android() is applicable for argument types: (build_c5ahy1849z3l6msywlxga8k28$_run_closure2) values: [build_c5ahy1849z3l6msywlxga8k28$_run_closure2@62470d9]

Here is my build.gradle of app module:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
    compileSdkVersion 30

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.mobile"
        minSdkVersion 24
        targetSdkVersion 30
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug
        }
    }
    buildToolsVersion '30.0.3'
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

build.gradle of project:
buildscript {
    ext.kotlin_version = '1.5.21'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

And pubspec.yaml of Flutter:
name: mobile
description: Mobile

version: 1.0.0+1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_localizations:
    sdk: flutter
  intl: ^0.17.0
  cupertino_icons: ^1.0.3
  equatable: ^2.0.3
  flutter_bloc: ^7.0.1
  get_it: ^7.2.0
  hex: ^0.2.0
  path: ^1.8.0
  qr_flutter: ^4.0.0
  qr_code_scanner: ^0.5.2
  secp256k1: ^0.3.0
  sqflite_sqlcipher: ^2.0.0
  sha3: ^0.2.0
  share_plus: ^2.1.4
  shared_preferences: ^2.0.6
  secure_application: ^3.7.3

dev_dependencies:
  flutter_test:
    sdk: flutter
  build_runner:
  test:

flutter:
  generate: true
  uses-material-design: true
  assets:
    - assets/scripts/sqlite_v1.sql

What am I doing wrong? Where can the problem be?

getting the same issue, please resolve it.

@bhoominn  i published version 3.8 tell me if it solves your issue
i was successfull in building it on a android VD running android 11

without a reply from @bhoominn  i will close this issue. Do not hesitate to reopen if necessary.
Thanks again @ghostman2013 👍


Fix double labels at schema.mobivoc.org as for example with Parking space

Not in issue in the vocabulary. LODE seems to double print the name of a Class in the HTML if it finds an rdfs:label as well as a skos:prefLabel.


cbuildgen: RTE/

Describe the bug
A csolution project with  but no  will be converted by the csolution tool into a file named:
<projectname>+<target-type>.cprj and will generate a folder RTE/_<target-type> containing e.g. RTE_Components.h
cbuildgen tool by default does not modify the content of directories in RTE/....
In this case cbuildgen throws an error:
*** ERROR M204:
  Path not found: '...<projectdir>/RTE/_Target_1'!

To Reproduce
Take a csolution project and remove/disable .
Expected behavior
The expected behavior of cbuildgen is that it recognizes the +.cprj as name of the  and expects the <projectdir>/RTE/_<target-type> instead of <projectdir>/RTE/_Target_1.
It seems like + is not recognized as separator between  and . Once I replace + with . in the cprj filename the correct RTE/_ directory is used.
Environment (please complete the following information):

Tool: cmsis-toolbox/cbuildgen
Version: 1.6.0
OS: windows

Current workarounds:
a) add a build-type to your *.csolution.yml file:
b) invoke cbuild with --update-rte to create content into _Target_1

Fix released in cmsis-toolbox 1.7.0


Fixed Event Log image in Adding Analysis Profile

Fixed issue when while adding analysis profile, after loading page there was link on non existing picture.

This is how it look after clicking on it:

This is how it looks after my change:

@epwinchell please review

@miq-bot add_label ui, bug

@dclarizio Looks good


Update import to match new petclinic code

There was an update made to the petclinic application which added a new import to the PetClinicApplication.java class running the current version of the bash script would fail at the end

Since the latest release of PetClinic is using Spring Boot 3.0.0 and it requires Java 17 it is preferred to use commit a5cbb8505a1df3c348c06607933a07fc8c87c222 as the version that is used for this example.


Sparse matrix equality efficient

This is a pull request that originates from a requirement in Spark for a more efficient SparseMatrix equality check. When comparing two CSCMatrices, use activeKeysIterator instead of keysIterator. This will return and check the non-zero-value keys in the SparseMatrix. An extra conditional is introduced to make sure the active size of both SparseMatrices are the same.
I tried to to implement the case where equality needed to be checked between a SparseMatrix and DenseMatrix. However, I couldn't find a way of doing this without traversing the DenseMatrix at least once.

Note: This PR was from [https://github.com/apache/spark/pull/8960] and [https://issues.apache.org/jira/browse/SPARK-10906]

If one matrix is dense, I think it's OK to take time linear in the size of the dense matrix (since you have to anyways).  The key optimization is for 2 sparse matrices.

@jkbradley
I do not think

I do not think it is possible to have an explicit zero in a sparse matrix.
Take a look at the following lines of code in the CSCMatrix class :
Conditional in update function :
https://github.com/scalanlp/breeze/blob/master/math/src/main/scala/breeze/linalg/CSCMatrix.scala#L79-L84
Locate function which utilizes binarySearch :
https://github.com/scalanlp/breeze/blob/master/math/src/main/scala/breeze/linalg/CSCMatrix.scala#L148-L152
So if the element is not found then ind will be < 0. If v is zero, then we update nothing, if it isn't then we update the array value. I have updated the PR with a commit that shows that explicit zeros become implicit.

Is that still true if you use the constructor?  I don't think it is.

I have updated the test using CSCMatrix instead of CSCMatrix.Builder. - is this what you had in mind?
If so then this test passes as well.

i think he means the new CSCMatrix constructor that takes an array.
I'm ok with that possible equality breakage so long as we add a warning to
the constructor to CSCMatrix that you can't pass in an Array with zeros in
it and expect equality to work.
-- David
On Wed, Jan 6, 2016 at 2:11 PM, rahul palamuttam<EMAIL_ADDRESS>wrote:

I have updated the test using CSCMatrix instead of CSCMatrix.Builder. - is
this what you had in mind?
If so then this test passes as well.
—
Reply to this email directly or view it on GitHub
https://github.com/scalanlp/breeze/pull/480#issuecomment-169478854.

@dlwh In MLlib, we'd like equality to ensure semantic equality.  Would you mind if we did the more careful check in Breeze?  If you think it's too expensive, then we can implement it in MLlib instead.
@rahulpalamuttam As @dlwh said, I meant that MLlib sometimes creates a Breeze CSCMatrix using a constructor which does not check for explicit zeros.  Because of that, we need to assume Breeze matrices could contain explicit zeros.  Note also that the update() method could create an explicit 0 if you set an existing entry to 0.

ok sure. in that case we probably need a loop that walks over columns in
parallel, doing an operation similar to the loop that SparseVector's inner
product uses on each column.
https://github.com/dlwh/breeze/blob/4f10a4199f00e026827eb01dfcb06cdd1e558952/math/src/main/scala/breeze/linalg/operators/SparseVectorOps.scala#L891-L891
Probably only copy the "smallVectors" for starters unless you're feeling
ambitious.
-- David
On Wed, Jan 6, 2016 at 2:32 PM, jkbradley<EMAIL_ADDRESS>wrote:

@dlwh https://github.com/dlwh In MLlib, we'd like equality to ensure
semantic equality. Would you mind if we did the more careful check in
Breeze? If you think it's too expensive, then we can implement it in MLlib
instead.
@rahulpalamuttam https://github.com/rahulpalamuttam As @dlwh
https://github.com/dlwh said, I meant that MLlib sometimes creates a
Breeze CSCMatrix using a constructor which does not check for explicit
zeros. Because of that, we need to assume Breeze matrices could contain
explicit zeros. Note also that the update() method could create an explicit
0 if you set an existing entry to 0.
—
Reply to this email directly or view it on GitHub
https://github.com/scalanlp/breeze/pull/480#issuecomment-169483533.

(lemme know if you need help with it!)
On Wed, Jan 6, 2016 at 2:39 PM, David Hall<EMAIL_ADDRESS>wrote:

ok sure. in that case we probably need a loop that walks over columns in
parallel, doing an operation similar to the loop that SparseVector's inner
product uses on each column.
https://github.com/dlwh/breeze/blob/4f10a4199f00e026827eb01dfcb06cdd1e558952/math/src/main/scala/breeze/linalg/operators/SparseVectorOps.scala#L891-L891
Probably only copy the "smallVectors" for starters unless you're feeling
ambitious.
-- David
On Wed, Jan 6, 2016 at 2:32 PM, jkbradley<EMAIL_ADDRESS>wrote:

@dlwh https://github.com/dlwh In MLlib, we'd like equality to ensure
semantic equality. Would you mind if we did the more careful check in
Breeze? If you think it's too expensive, then we can implement it in MLlib
instead.
@rahulpalamuttam https://github.com/rahulpalamuttam As @dlwh
https://github.com/dlwh said, I meant that MLlib sometimes creates a
Breeze CSCMatrix using a constructor which does not check for explicit
zeros. Because of that, we need to assume Breeze matrices could contain
explicit zeros. Note also that the update() method could create an explicit
0 if you set an existing entry to 0.
—
Reply to this email directly or view it on GitHub
https://github.com/scalanlp/breeze/pull/480#issuecomment-169483533.

@dlwh
Thank you. So I tried to implement the check based on the small inner product implementation. I had a tough time trying to figure out an analogous implementation for "indexAt". The recent commit uses activeIterator. This iterator also accesses the data array values linearly, rather than doing a binary search for the value based on the key.
I ended up using a sequence of while loops as you suggested over both iterators making sure to have additional while loops to skip over the zeros. The last pair of while loops you see is to ensure that an iterator that still has elements only contain zeros.

nitpick, then lgtm!

well, one other check

How about this? I also went back to matching the input matrix, instead of matching the pair of matrices.
Also I was not exactly sure why the initial implementation matches for Matrix[_], instead of Matrix[V], but I kept the former.

lgtm, thanks!


Successfully building Apollo v9.0, but encountering errors when running camera_detection_single_stage.dag.

System information

**OS Platform and Distribution **: orin
**Apollo version **:9.0

Steps to reproduce the issue:
After successfully building the perception module, I attempted to test the effect of the smoke. I used the command
"mainboard -d modules/transform/dag/static_transform.dag -d modules/perception/camera_detection_single_stage/dag/camera_detection_single_stage.dag -d modules/perception/camera_location_estimation/dag/camera_location_estimation.dag -d modules/perception/camera_location_refinement/dag/camera_location_refinement.dag -d modules/perception/camera_tracking/dag/camera_tracking.dag -d modules/perception/multi_sensor_fusion/dag/multi_sensor_fusion.dag"
to launch the modules. However, the "/apollo/perception/obstacles" topic consistently had no information. Upon inspecting the logs, I found that it was stuck in the tracker module. The logs indicated that the detection, location_estimation, and location_refinement modules were producing output normally, but the tracker module only output the following message once::
"I1116 16:05:16.286335 48529 camera_tracking_component.cc:71] Enter Tracking component, message timestamp:<PHONE_NUMBER>.641768 current timestamp:<PHONE_NUMBER>.286372."
Could you please advise me on how to debug the camera tracker module?
Supporting materials (screenshots, command lines, code/script snippets):

I am outputting the content of the 'track' line by line to identify the problem. Currently, it is confirmed that the entire process is stuck in the
”OMTObstacleTracker::Associate2D“
method when calling
“OMTObstacleTracker::CreateNewTarget”
Upon further output, it can be observed that the code is stuck at
“auto &min_tmplt = kMinTemplateHWL.at(sub_type);”
At the moment, I cannot find a solution. The log outputs information indicating the successful initialization of “object_template_manager”

I am outputting the content of the 'track' line by line to identify the problem. Currently, it is confirmed that the entire process is stuck in the ”OMTObstacleTracker::Associate2D“ method when calling “OMTObstacleTracker::CreateNewTarget” Upon further output, it can be observed that the code is stuck at “auto &min_tmplt = kMinTemplateHWL.at(sub_type);” At the moment, I cannot find a solution. The log outputs information indicating the successful initialization of “object_template_manager”

Thanks for your work, it's true that sub_type keeps 0 in omt tracking stage.
Main reason is vector types_ in modules/perception/camera_detection_3d/detector/smoke/smoke_obstacle_detector.h file is empty, your can change InitParam function like this:
void SmokeObstacleDetector::InitParam(const smoke::ModelParam &model_param) {
  // min 2d height
  min_dims_ = model_param.min_dims();
  // confidence threshold
  confidence_threshold_ = model_param.confidence_threshold();
  // ori cycle
  ori_cycle_ = model_param.ori_cycle();
  // border ratio
  border_ratio_ = model_param.border_ratio();

  // add these
  types_.push_back(base::ObjectSubType::CAR);
  types_.push_back(base::ObjectSubType::VAN);
  types_.push_back(base::ObjectSubType::TRUCK);
  types_.push_back(base::ObjectSubType::BUS);
  types_.push_back(base::ObjectSubType::PEDESTRIAN);
  types_.push_back(base::ObjectSubType::CYCLIST);
  types_.push_back(base::ObjectSubType::TRAFFICCONE);
}

We will fix this and other omt bugs in next version.

System information

**OS Platform and Distribution **: orin
**Apollo version **:9.0

Steps to reproduce the issue:
After successfully building the perception module, I attempted to test the effect of the smoke. I used the command "mainboard -d modules/transform/dag/static_transform.dag -d modules/perception/camera_detection_single_stage/dag/camera_detection_single_stage.dag -d modules/perception/camera_location_estimation/dag/camera_location_estimation.dag -d modules/perception/camera_location_refinement/dag/camera_location_refinement.dag -d modules/perception/camera_tracking/dag/camera_tracking.dag -d modules/perception/multi_sensor_fusion/dag/multi_sensor_fusion.dag" to launch the modules. However, the "/apollo/perception/obstacles" topic consistently had no information. Upon inspecting the logs, I found that it was stuck in the tracker module. The logs indicated that the detection, location_estimation, and location_refinement modules were producing output normally, but the tracker module only output the following message once:: "I1116 16:05:16.286335 48529 camera_tracking_component.cc:71] Enter Tracking component, message timestamp:<PHONE_NUMBER>.641768 current timestamp:<PHONE_NUMBER>.286372." Could you please advise me on how to debug the camera tracker module?
Supporting materials (screenshots, command lines, code/script snippets):

You can use following command to start smoke:

Modify readers channel in modules/perception/camera_tracking/dag/camera_tracking.dag to smoke output channel in modules/perception/camera_detection_single_stage/conf/camera_detection_single_stage_config.pb.txt
launch it

cyber_launch start modules/perception/launch/perception_camera_single_stage.launch

You can use following command to gdb:
gdb mainboard
>> set args -d /apollo/modules/perception/msg_adapter/dag/msg_adapter.dag -d /apollo/modules/perception/camera_detection_single_stage/dag/camera_detection_single_stage.dag -d /apollo/modules/perception/camera_tracking/dag/camera_tracking.dag -p camera -s CYBER_DEFAULT
>> run
>> bt

Please reopen this issue if you have any other question.


No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

I get the Code from Github
git clone https://github.com/googlecodelabs/exoplayer-intro.git
load the project and build -> got this error message.
"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android"
Any idea how I can fix this?

MIPS has been removed from the NDK. You should no longer get this message. Please open a new issue if you are.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #221 (4783a23) into main (2974dfe) will increase coverage by 8.43%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #221      +/-   ##
==========================================
+ Coverage   83.33%   91.76%   +8.43%
==========================================
  Files           2        1       -1
  Lines         126      340     +214
  Branches       31       31
==========================================
+ Hits          105      312     +207
- Misses         21       28       +7

Impacted Files
Coverage Δ

src/index.ts
91.76% <100.00%> (+9.76%)
:arrow_up:

example/src/main.ts

Continue to review full report at Codecov.

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


MSAL Angular authentication issue for user in Azure Government Cloud

Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
2.15.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.0.1
Public or Confidential Client?
Public
Description
We have implemented MSAL Angular @ 2.0.1 in our SaaS product.
Facing authentication issue for users in Azure Government Cloud.
Authentication works fine for users in Azure Commercial Cloud.
Error Message
Failed to load resource: the server responded with a status of 400 ()
ServerError: invalid_request: 900434 - [2024-03-19 14:30:35Z]:
AADSTS900434: National Cloud request processing failed:
CallNationalCloud: http request failed with errorcode:
Unauthorized,
Content:{"error":"invalid_client","error_description":"AADSTS7000218:
The request body must contain the following parameter:
'client_assertion' or 'client_secret'. Trace ID: 9c96d248-ce24-4338-84ce-0ddb016c3f00
Correlation ID: 7630f191-4689-4cf4-ab5c-737a85e0b8e9 Timestamp: 2024-03-19 14:30:35Z",
"error_codes":[7000218],"timestamp":"2024-03-19 14:30:35Z","trace_id":"9c96d248-ce24-4338-84ce-0ddb016c3f00",
"correlation_id":"7630f191-4689-4cf4-ab5c-737a85e0b8e9","error_uri":https://login.microsoftonline.us/error?code=7000218,
"claims":"{"access_token":{"capolids":{"essential":true,}}}"}.
Trace ID: d3b376fc-e4e7-4309-8f53-7704ea075900 Correlation ID: 7630f191-4689-4cf4-ab5c-737a85e0b8e9
Timestamp: 2024-03-19 14:30:35Z - Correlation ID: 7630f191-4689-4cf4-ab5c-737a85e0b8e9 -
Trace ID: d3b376fc-e4e7-4309-8f53-7704ea075900
MSAL Logs
Log is not appropriate for this
Network Trace (Preferrably Fiddler)

[ ] Sent
[ ] Pending

MSAL Configuration
MsalModule.forRoot(new PublicClientApplication({
  auth: {
    clientId: <MSAL_APPLICATION_ID>,
    authority: 'https://login.microsoftonline.com/common',
    redirectUri: <REDIRECT_URL>
  },
    cache: {
      cacheLocation: 'localStorage',
      storeAuthStateInCookie: false,
    }
  }),
  null,
  {
  interactionType: InteractionType.Popup,
  protectedResourceMap: new Map([
      ['https://graph.microsoft.com/v1.0/me', ['user.read']]
  ])
})

Relevant Code Snippets
//MSAL Popup called like below

      import { MsalService } from "@azure/msal-angular";

      const scopes = [<MSAL_APPLICATION_ID> + "/.default"];
      this.msalService.loginPopup({ scopes: scopes }).subscribe({
        next : (response) => {
          //Process response
        },
        error : (error) => {}
      })

Reproduction Steps
We have followed this implementation: https://learn.microsoft.com/en-us/entra/identity-platform/tutorial-v2-angular-auth-code
Expected Behavior
Authentication for users in Azure Government Cloud should also work (just like for rest of the users)
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari, None (Server), Other
Regression
No response
Source
External (Customer)

Hi,
@tnorling If you could provide any assistance regarding this bug, we'll greatly appreciate it.

Hi guys,
@jo-arroyo @jasonnutter @sameerag @pkanher617 @hectormmg @samuelkubai @derisen
Basically, I can see issues created in the last 2 weeks not getting any reply at all (may be you all are busy/this repo has a long min response time).
We have a big client facing this issue and I couldn't find any thing related to this.
Any way, if you could provide any guidance for this specific issue, we would really really appreciate it.

@sivaraman-27 The error indicates it is a confidential client. Can you confirm it is the same application in both the clients?

Hi @sameerag,
It's a public client (Angular app doing authentication with the below libraries)

@azure/msal-angular: "2.0.1"
@azure/msal-browser: "2.15.0"

Called in angular app as "Public Client" (see below):
MsalModule.forRoot(new PublicClientApplication({
  auth: {
    clientId: <MSAL_APPLICATION_ID>,
    authority: 'https://login.microsoftonline.com/common',
    redirectUri: <REDIRECT_URL>
  },
    cache: {
      cacheLocation: 'localStorage',
      storeAuthStateInCookie: false,
    }
  }),
  null,
  {
  interactionType: InteractionType.Popup,
  protectedResourceMap: new Map([
      ['https://graph.microsoft.com/v1.0/me', ['user.read']]
  ])
})

But in Azure Portal > App registrations > Authentication > Advanced Settings --> Allow public client flows is "NO"

We haven't enabled "Allow Public Client to YES" because, it's working fine for all accounts in Azure Commercial Cloud.
But it fails with error only for Azure Government Cloud users
We really appreciate your reply. Thank you for your kind guidance.

@sameerag , I have provided the requested information. Kindly provide guidance.

@sivaraman-27 - @Robbie-Microsoft @Avery-Dunn and myself work on confidential client scenarios only, not auth in the browser, so we don't have the expertise to help :(

@sivaraman-27 all SPA scenarios are public clients, however, they are marked as SPA and you need not allow public client configuration in the app registration, unless you are looking for a desktop or mobile app too.
Having said that, let me check the correlationId provided above and see if we can infer any info.

@danieldobalian @iambmelt
From this request: https://github.com/AzureAD/microsoft-authentication-library-for-android/issues/232
Do I have to create another app in Government Azure Portal for supporting government users?

Hi @sameerag ,
I have also enabled and tried "Allow Public Client Flows" to "YES" but still the same issue happens
Having said that, let me check the correlationId provided above and see if we can infer any info.
-- Do you find anything?
Also, do you think if I have to create another app in Government Azure Portal for supporting government users?

Hi @sameerag ,
From this: https://github.com/AzureAD/microsoft-authentication-library-for-android/issues/232
"The MSAL for android support authentication for Government users also (Initially not there, but implemented later).
But the MSAL for javascript doesn't implemented this feature yet."
Is the above statement correct?

Hi @sameerag ,
Sorry for pinging you so many times.
I found this article: https://learn.microsoft.com/en-us/entra/identity-platform/msal-national-cloud?tabs=javascript
Does it means separate MSAL app registration in Azure Government Portal for government users?

Hi,
Just confirmed with Azure Identify Team that if an app is registered in Azure Commercial Cloud, then only users in Azure Commercial Cloud can authenticate with this library (This is the current Microsoft's implementation).
So, in order to authenticate users from Azure Government Cloud, we need to register an application in Azure Government Cloud.
Thanks for everyone involved in this thread for helping us out!


duplicated switches patch

This works around #42 but I wouldn't really call it a fix.

I would prefer a proper solution instead of a workaround.

Me too! I couldn't figure this bug out though, so for now this is the best I can do.


Allow assign identifier to a buffer

Part of #1

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.80%. Comparing base (7f7d84d) to head (b9e94ae).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##              main      #13      +/-   ##
===========================================
- Coverage   100.00%   99.80%   -0.21%
===========================================
  Files           13       13
  Lines          462      500      +38
===========================================
+ Hits           462      499      +37
- Misses           0        1       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Suggestions

Sir what are your thoughts on system administrator  (red hat certificates )cyber security (OSCP, CEH or any other cyber security field like security engineer or security analyst) and network engineer  (CCNA and CCNP) sir can you please please cover these three topics for career. It would be very helpful

found another video


Limit length of HTTP body displayed when debugging.

This aims to limit the length of HTTP body displayed to stdout when -d option is used. Closes #928

@mdeuser Let me know if this is what you were thinking.

@rabbah - this is a fix for limiting large http body data being dumped out when the --verbose or --debug flag is specified.

the cli has two flags: verbose and debug right? how about verbose truncate and debug doesn't.

Will attempt to proceed in the direction of limiting verbose only and leaving the debug to print fully.

PG 4 #596 Passsed

@dubeejw Made some changes per your request, also let me know if I should convert to strings vs []byte.

To me this issue has gotten too specific. It's now only limiting in verbose for a certain field in resp body for actions only - feels off to me. The only "global" limiting in verbose is for req body.

What I noticed was that when I ran an action get for an action that has a big zip file attached to it, I still had to scroll through all the normal output before I could seen the truncated code in the verbose output. I think it'd be better to truncate the code in verbose and normal modes. @rabbah

@bpoole16, how about doing it this way? https://github.com/dubeejw/openwhisk/commit/5b57eb6ddd4b6d55a051f24f6e221b2fba944dd8

That works, I had something like that similar until I realized it was cutting off a bunch of resp information. Due to this I was just trying to find problematic fields and reduce them. If we are okay with losing resp body information looks fine to me.

@bpoole16 - what will be the output of wsk action get LARGEACTION when the exec.code field is quite large?  will the rest of the action output be intact?

Originally yes, it would just limit the code field and the rest of the resp body would be normal. With James suggestion it cuts off the resp body after 1000 bytes.

PG 4 632 passed


Some bugfixes related to Grammar Pooling

Hi there,
since you are basically managing the only active maintenance development of Xerces, I thought you might want to consider pulling in some patches that I found to be tremendously useful (but are not fixed in the official Xerces-J yet).
They are both somehow related to grammar pooling, something that is quite useful to massively improve the performance of systems that are doing large scale XML processing.
These patches are:

https://issues.apache.org/jira/browse/XERCESJ-1205
https://issues.apache.org/jira/browse/XERCESJ-1645

Hope you find them useful!

I certainly d like to see it pulled in (I reported one of these issues too)


Mod Compat

Hello! I have a suggestion for mod compat. maybe you could add tapestries for these mods one day?
https://www.curseforge.com/minecraft/mc-mods/tinted
https://www.curseforge.com/minecraft/mc-mods/flamboyant-recrafted
flamboyant is probably updating to 1.19. Also some of the colors have the same names between both mods.

Thanks for the suggestion!
While it would be cool, we're not likely to add support ourselves, just because of the effort involved.
Someone else would be free to make an addon to do it if they want.

ok! Let's hope!


Add support for implicit UNSET as a type annotation

Currently, we need to set the default value to strawberry.arguments.UNSET to support optional arguments. This object has the Any annotation which hides itself from type checkers.
Example:
id: Optional[strawberry.ID] = UNSET

MyPy will consider id to be a Union[ID, None] while in reality, it's a Union[ID, None, _Unset]. This results in potential bugs in code where the type-checker would catch it.
For example, the following snippet will raise an error without a type checker catching it:
def foo(id: Optional[str] = UNSET) -> None:
  if id is not None:
    print(id.lower()) # Will attempt to call `lower()` on `UNSET`

Proposal
My proposal is to introduce a new type alias as a first-class citizen in the Strawberry type system:
T = TypeVar("T")
UnsetOrOptional = Union[_Unset, Optional[T]]

And its usage in resolvers:
@strawberry.field
def foo(id: UnsetOrOptional[strawberry.ID]) -> None:
  pass

The default assignment of the arguments remain used for actual default values in GraphQL
The body of our resolver has the current triple Union to enforce it to check for unset as well
The upstream logic will automatically assign UNSET to its value if it was not included in the request

Just optional
This allows us to also provide the option for resolvers to define a simpler default behavior when we only care about strawberry.ID vs None:
@strawberry.field
def foo(id: Optional[strawberry.ID]) -> None:
  pass

No default assignment needed if you don't want it to show up in the generated GraphQL schema
The upstream logic will automatically assign None to its value if it was not included in the request

I wonder if it's simpler to just make Union[Optional[str], UNSET] work rather than introduce a new type? What do you think @sarahhenkens ? My thinking is that even with a new type using a Union should also work so why not just make that the way to do it.
Note: Union[str, None, UNSET] should also work.

I think it could, it does require you to explicitly set the default value to UNSET though

Also what should happen if you define Union[str, UNSET]. Is that a valid state?

I think it could, it does require you to explicitly set the default value to UNSET though

I think that should be pretty easy to solve with a custom scalar?
https://strawberry.rocks/docs/types/scalars

From a typing perspective, that is a valid value but it's impossible to reach there since this should be emitted into a String!.
When using the union method, I currently get the following error:
strawberry.exceptions.InvalidUnionType: Union type `_Unset` is not a Strawberry type

@sarahhenkens we (well @jkimbo :D) are going to work on this as discussed in our monthly meeting 😊 https://github.com/strawberry-graphql/strawberry/discussions/986

A minor fix to the annotation parser to allow for stricter type annotation for optional and unsettable field args https://github.com/strawberry-graphql/strawberry/pull/1467


[WIP][POC] remote-dom

Background
(Provide a link to any relevant issues AND provide a TLDR of the issue in this pull request)
Solution
(Describe your solution, why this approach was chosen, and what the alternatives/impacts may be)
🎩

...

Checklist

[ ] I have :tophat:'d these changes
[ ] I have updated relevant documentation

/snapit

/snapit

/snapit


Perhaps include abbreviations?

“w/” → “with”, etc. And then the TreeView could include abbreviations as a collapsible category.

No, let's stay focused.


Nuclio Automatic/SemiAutomatic AI Tool Functions not running on GPU

Not sure if this is an elephant in the room with Intel not wanting support for Nvidia GPUs, but the models CVAT uses with the Nuclio serverless functions do not run with GPU acceleration. The documentation is not great on this topic, but I've pieced together everything I could find.
I'm deploying CVAT to an AWS EC2 g4dn.xlarge instance, 2nd Generation Intel Xeon, 4 vCPUs, 16GBs RAM, Nvidia Tesla T4 GPU with 16 GB vRAM, running Ubuntu 20.04. I can get all the functions to appear from serverless/deploy.sh under Models and most of them run (which is a different issue), but all that do run, run on the CPU.
Now, I've tried running with and without nvidia-docker (which is not mentioned to use in the installation instructions). I've tried the suggestion here. I have the nvidia gaming drivers installed for the G4 instances. I have docker version 19.03.13, nvidia drivers 445.48 and CUDA version 11.0.
We even tried changing cvat/requirements/base.txt to use tensorflow-gpu opposed to tensorflow.
To test, we use a 180 frame video in a task, from the /task page in the UI, select the ellipsis beside Action and select Automatic annotation and select Faster RCNN via Tensorflow Model (mostly), then in the terminal use gpustat to check for usage on the Tesla T4 GPU, which has only read zero so far. htop shows over 100% utilization on a nuclio task as the progression bar moves in the UI however.
Our next trial was gonna be to try a P3 instance as the documentation (someone please add a link to this in the installation guide) suggests. (Nuclio installation instructions need improvement badly too)
Thanks for the help.

@machinsk , a serverless function with a DL model inside just a docker container with some specific bindings to nuclio framework and python code to run the model. If the function itself can be running on GPU, it will run on GPU. For now all functions inside CVAT repository are not optimized to run on GPU. If somebody can contribute and improve them, we will be more than happy to accept the PR.

@nmanovic I agree that there are many missing steps in the documentation for semi annotation and I had to dig into codes in both cvat and nuclio. After some digging, finally, I was able to run the tensorflow fasterRCNN model on the GPU. I will do a PR soon.

It looks like the issue was resolved by @jahaniam. I will close it.


SSH remote path has 60 second delay

I'm currently running Gogs <IP_ADDRESS>6 from a binary download and am seeing a 60 second pause when using the SSH remote path.
The server is on my local network running in an Ubuntu Trusty LXC container and has only a single repo with a very small commit history and only a few files.
Here are some examples:
$ time git push origin master
Everything up-to-date

real    1m0.405s
user    0m0.015s
sys 0m0.026s

$ time git pull origin master
From ssh://<IP_ADDRESS>:2210/amdavidson/dotfiles
 * branch            master     -> FETCH_HEAD
Already up-to-date.

real    1m0.625s
user    0m0.054s
sys 0m0.073s

$ time git push origin master
Username for 'http://<IP_ADDRESS>:8010': amdavidson
Password for 'http://amdavidson@<IP_ADDRESS>:8010':
Everything up-to-date

real    0m2.834s
user    0m0.006s
sys 0m0.007s

$ time git pull origin master
Username for 'http://<IP_ADDRESS>:8010': amdavidson
Password for 'http://amdavidson@<IP_ADDRESS>:8010':
From http://<IP_ADDRESS>:8010/amdavidson/dotfiles
 * branch            master     -> FETCH_HEAD
Already up-to-date.

real    0m3.092s
user    0m0.041s
sys 0m0.047s

The time shown for the HTTP remote path includes me entering my password.
I don't see any records in the Gogs logs, but I can't see any indication of the ssh processes except when looking at the xorm logs. I also don't see any spike in CPU usage during this time. I am running SQLite3 as my database backend as this will only be used for personal purposes.
The SSH access will always take a few tenths of a second more than 1 minute without exception. It seems like something is delaying, waiting for a timeout.
Any thoughts on what that could be?

Thanks your feedback!
What is the actual effect you can feel without time xx for the  60 second pause?

With or without time, it just feels like the process has hung because there is no visual feedback of the delay, just a stalled terminal. I initially thought that Gogs was not working at all because it wasn't clear whether it was still working. With a local network and small commits it should be almost instantaneous.
I then ran a test on the same container, same server, same repo, and same iptables routing and got the following:
$ git remote set-url origin ssh://amdavidson@<IP_ADDRESS>:2210/tmp/repo.git
$ time git push origin master
Everything up-to-date

real	0m0.240s
user	0m0.017s
sys	0m0.022s

What is happening differently in Gogs between the HTTP service and the SSH service?

@amdavidson HTTP requests are accepted by Gogs, but underlying calls git to do its work.
Whereas SSH you're first talking to your SSH server daemon, then calls Gogs, and then underlying git. So I suspect that could be something going wrong with your SSH server daemon?

Check you sshd config for usedns option. It needs to be no for speedup
access.
27 сент. 2015 г. 23:28 пользователь "无闻"<EMAIL_ADDRESS>написал:

@amdavidson https://github.com/amdavidson HTTP requests are accepted by
Gogs, but underlying calls git to do its work.
Whereas SSH you're first talking to your SSH server daemon, then calls
Gogs, and then underlying git. So I suspect that could be something going
wrong with your SSH server daemon?
—
Reply to this email directly or view it on GitHub
https://github.com/gogits/gogs/issues/1698#issuecomment-143592642.

UseDNS = no seems to have no effect in this case. Especially because I posted that using a bare GIT repo hosted over the same ssh connection (but without using Gogs) was pushing in less than a second.
Although, as with many things, a server reboot for other maintenance items was able to correct this one, at least for now.
Closing until I see this issue again.

Thanks your detail!
Reboot is still the top first problem solver 😂

@Unknwon Here is ssh_config file form Working container and there are few key files in the /etc/ssh/ directory.

It might give you hint.

@icewheel thanks!
I'm going to try again with latest tag, if it's 100% reproducible, life will be much easier...

Having this exact same problem. Reboot did not solve it :cry:

@cleonn too bad we don't know why....

I'm upgrading to 0.7.0 just to see if it persists. Not running in docker.

@cleonn have you tried this: https://github.com/gogits/gogs/issues/1698#issuecomment-143593566

The usedns option? Yes, one of the first we tried, but we've all but eliminated the sshd as a culprit.

OK.... a quick hack is upgrade to latest master and use config options: https://github.com/gogits/gogs/blob/master/conf/app.ini#L51-L53 to start a builtin SSH server. It's experimental... but maybe better than waiting for hangs..

upgrade to 0.7.0 made git pull go fast again (it used to hang for 60 seconds). But a push still hangs for 60 seconds. No problem when running it over HTTPS.
Running on ubuntu 14.04.3 with openssh-server 1:6.6p1-2ubuntu2.3. scp and all other functions over ssh work as usual. No problems doing reverse lookups.
strace and debug of ssh process shows no traffic over the connection for 60 seconds, it's waiting for something. strace of gogs-process shows activity when running over HTTPS but almost no activity when running over SSH.
Will checkout the builtin SSH server.

I know What happen, you must do tail -f /home/git/go/src/github.com/gogits/gogs/log/serv.log. There is a bug, cause there is a time out :
2015/11/08 23:55:10 [...ts/gogs/cmd/serve.go:114 handleUpdateTask()] [E] Fail to trigger task: Head http://xxx.no-ip.org:3000/gogoe/test1/tasks/trigger?branch=master: dial tcp 82.xxx.194.169:30
00: i/o timeout
My temporary solution is to change /home/git/go/src/github.com/gogits/gogs/custom/conf/app.ini
ROOT_URL = http://XXXX.org:

Wow! Finally we have a clue, thanks!

However; it's just a temporary solution, i think there is a problem ? What can cause that?

Ah thanks! That solved it for me! git pull and push are now working! My problem was that I'm running gogs on EC2 in Amazon and the Security Groups were not configured to allow the instance to talk to itself over HTTPS (we're using Elastic Load Balancer for SSL termination).
There must have been a change where git over ssh requires gogs to communicate with itself over the network (probably using the ROOT_URL config).

@riantsoa as @cleonn mentioned, set ROOT_URL to a correct value and let Gogs talks to itself is the ultimate solution.

In my configuration i have the following settings :
DOMAIN = xxx.no-ip.org
HTTP_PORT =3000
ROOT_URL = http://xxx.no-ip.org
it work (no lag), but in the log, i see instead " [...ts/gogs/cmd/serve.go:111 handleUpdateTask()] [E] Fail to trigger task: not 2xx response code
"

@riantsoa can you try do a curl --request HEAD http://xxx.no-ip.org on your same server that runs Gogs and see what's the status code?

when i do that i see a bunch HTML.
When i put the URL  http://xxx.no-ip.org:8080/project1/inetpub/tasks/trigger?branch=master in a browser, there is a popup that ask me password and a login.

@riantsoa why you're carrying port 443? What is the actual URL you access the web UI?

I use  http://xxx.no-ip.org:443 to access the webUI

I use http://xxx.no-ip.org:443 to access the webUI

OK, then the ROOT_URL should be http://xxx.no-ip.org:443 as well.

When i put the URL http://xxx.no-ip.org:443/project1/inetpub/tasks/trigger?branch=master in a browser, there is a 404 error

Because it only allows HEAD request.

i tried http://xxx.no-ip.org:443 but it doesnt work (time out) .
To solve the problem, in the server /etc/hosts,  i put <IP_ADDRESS>     xxx.no-ip.org

i tried http://xxx.no-ip.org:443 but it doesnt work (time out) .

Use HTTP and 443 just looks strange to me maybe I'm just not familiar with it.

To solve the problem, in the server /etc/hosts, i put <IP_ADDRESS> xxx.no-ip.org

Does this solve the problem?

yes it solve the problem, i forced the server to route internally all request to istself.

I am not able to login on server as i have increased delay to 60 second on server using #tc command
How we can ssh on server using 60sec delay
Can anyone please help me on this issue

Do you have any idea that we can do ssh if server is having 60 sec delay


Accuracy drop after adding quant_noise to InceptionResnetV1

What is your question?
Since the open-source version of product quantization in the computer vision models is not yet available, after the Quant-Noise paper understanding I have tried following the documentation on implementing both quant noise training and later product quantization  on face recognition InceptionResnetV1 pre-trained model.
The main problem is, after applying quant noise on both the Convolutional and Linear layers, the training seems to be broken, a loss is not decreasing as It is in the model version without noise, and accuracy seems to be 0.00%. In addition, a drop in the performance is not visible when a model is just quantized with iPQ. When will example models be available on ClassyVision, and is there a fix to this problem right now?
Code
def quantize_nodes(model):
    conv_blocks = {(3, 3): 9, (1, 1): 1, (1, 7): 7, (7, 1): 7,
                   (1, 3): 3, (3, 1): 3}
    modules = list(model.modules())

    for i in range(len(modules)):
        if (isinstance(modules[i], torch.nn.Conv2d)):
            if (modules[i].kernel_size != (1, 1)):
                modules[i] = quant_noise(modules[i], p=0.1, block_size=conv_blocks[modules[i].kernel_size])
        if (isinstance(modules[i], torch.nn.Linear)):
            modules[i] = quant_noise(modules[i], p=0.1, block_size=8)

resnet = InceptionResnetV1(pretrained='casia-webface).to(device)
quantize_nodes(model=resnet)

What have you tried?
Tried adding noise only to certain convolutional layers (3,3) or linear layers, which reduces the problem but does not fix it.
What's your environment?

fairseq Version (master):
PyTorch Version (1.5)
OS (Ubuntu 18.4):
How you installed fairseq (git):
Python version: 3.6

Hi jmatak,
Thanks for your interest in our work and thanks for reaching out! Some suggestions below for the Inception, as the parameters we specify in the appendix of our paper are only valid for EfficientNets:

As a sanity check, could you confirm that the training goes well with p=0 (i.e. no Quant-Noise)?
In our experience, with ResNets you don't necessarily need Quant-Noise with 3x3 convolutions since the filters are already redundant along the spatial dimension (see previous paper). I would recommend applying Quant-Noise with p=0.05 to only the 1x1 convolutions that are large enough (all except the first layer for instance).
You could also try slowly increasing p fro 0 to say 0.05 or 0.1 during the training.
We are working on a new and cleaner API and aim at open sourcing the vision models and code for various tasks as soon as possible.

Let me know if that helps,
Pierre

Hi @pierrestock,
Thanks for your fast reply. I understand that I am heading upfront in terms of using the model that was not yet tested. I tried to replicate to all your questions by implementing and trying in practice:

With Quant-Noise parameter p=0, training goes well, accuracy increases to 99
Well, in the Inception architecture, there is an error in adding Quant-Noise to the 1x1 convolutions. The problem is in the calculated input size per channel. This kind of error:
Calculated padded input size per channel: (38 x 38). Kernel size: (80 x 64). Kernel size can't be greater than actual input size
in this kind code:

if mod.kernel_size == (1, 1):
           mask = torch.zeros(int(in_channels // block_size * out_channels), device=weight.device)
           mask.bernoulli_(p)
           mask = mask.repeat_interleave(block_size, -1).view(-1, in_channels)

Since the majority of convolutions in Inception are 3x3, removing them, Linear layers, and 1x1 convolutions because of the bug, the training process starts working well, but it only affects a minority of 1x7 and 1x3 convolutions. Basically, the code is still broken. For more guidance in this problem, I tried to train with only adding Quant-Noise to Linear layers, but no progress is made.

I hope the API will be available as soon as possible, looking forward to this work!

Anyone, when will new API be publically available?


Ios pullup not expanding to full height

Using the basic example in the documentation for the modal variant (but also can be replicated on the persistant variant) the pullup does not render at full height. Let me know if you need more info.
  <PullUp
    modal
    state={state}
    onStateChanged={onChange}>
    <View style={{ height: 500, backgroundColor: 'red' }} />
  </PullUp>

After further investigation, the child of this component needs an explicit height set (not relative like 100%) and also a style tag with padding needs to be applied to the pullup component.
`  <PullUp
style={{ padding: 20 }}
modal
state={state}
onStateChanged={onChange}

<View style={{ flex: 1, height: 1000, backgroundColor: 'red' }} />

`


Fix/Export PDF With React 18 + Type Improvements

Overview

Still using @react-pdf/renderer
Use npm's override in package.json to override peer dependency to React 18, see this doc
Use types from src/components/planner/types.ts
More explicit Planner types (eg. Semester -> PlanSemester)
PDF's now use session.user.name for the username and no longer include the major associated with the plan

I think this PR is very messy as I renamed some types in src/components/planner/types.ts. I will open a new PR with just the React PDF changes.


Updated the project

Updated

gitignore rules
android gradle tools plugin to v2.2.2
compile sdk version to v25
build tools version to v25.0.1
target sdk version to 25
support lib version to v25.0.1
butterknife to v8.4.0
timber to v4.3.1
retrofit to v2.1.0
gradle wrapper to v2.14.1

Further updated

android gradle plugin to v2.2.3
support lib version to v25.1.0
timber lib to v4.4.0

Any updates on this PR regarding merging ?