repeats almost the same steps over and over with the same results.

Describe the bug
Could not resolve issue with Astro and pagination and burned though about 1 million tokens repeating the same steps.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-dnhjz1
Steps to reproduce
reproduction is difficult you need to get into loop with almost the same results tried continually.  If staff have access to the history on the URL provided it shows the error pretty well.
Almost the same attempted fix each time.  Many different attempts to prompt a fix including full stack of the errors and the LLM didn't deviate enough from the failed process to find success.
Expected behavior
I expect the LLM to check previous attempts when it seems to understand there have been multiple attempts and try a different route to resolution at that point.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 129
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 60472714,
  "usedJSHeapSize": 54785130,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = sparkes
Chat ID = 43278c1df170

Additional context
This is the second such loop in a couple of days wasting about 2 million tokens in total.  The problem is the errors I get don't help me provide extra context to the model because I only understand them in exactly the same way the model seems to and might take the same first step so I haven't been able to help the LLM format a better answer.
The error is pasted below.
PageNumberParamNotFound
Page number param not found.
[paginate()] page number param page not found in your filepath.
See Docs Reference
Rename your file to [page].astro or [...page].astro.
errors/errors.js:37:5
Open in editor
import { codeFrame } from "./printer.js";
function isAstroError(e) {
return e instanceof AstroError;
}
class AstroError extends Error {
loc;
title;
hint;
frame;
type = "AstroError";
constructor(props, options) {
const { name, title, message, stack, location, hint, frame } = props;
super(message, options);
this.title = title;
this.name = name;
if (message) this.message = message;
this.stack = stack ? stack : this.stack;
this.loc = location;
this.hint = hint;
this.frame = frame;
}
setLocation(location) {
this.loc = location;
}
setName(name) {
this.name = name;
}
setMessage(message) {
this.message = message;
}
setHint(hint) {
this.hint = hint;
}
setFrame(source, location) {
this.frame = codeFrame(source, location);
}
static is(err) {
^
return err.type === "AstroError";
}
}
class CompilerError extends AstroError {
type = "CompilerError";
constructor(props, options) {
super(props, options);
}
static is(err) {
return err.type === "CompilerError";
}
}
class CSSError extends AstroError {
type = "CSSError";
static is(err) {
return err.type === "CSSError";
}
}
class MarkdownError extends AstroError {
type = "MarkdownError";
static is(err) {
return err.type === "MarkdownError";
}
}
class InternalError extends AstroError {
type = "InternalError";
static is(err) {
return err.type === "InternalError";
}
}
class AggregateError extends AstroError {
type = "AggregateError";
errors;
// Despite being a collection of errors, AggregateError still needs to have a main error attached to it
// This is because Vite expects every thrown errors handled during HMR to be, well, Error and have a message
constructor(props, options) {
super(props, options);
this.errors = props.errors;
}
static is(err) {
return err.type === "AggregateError";
}
}
const astroConfigZodErrors = /* @PURE / new WeakSet();
function isAstroConfigZodError(error) {
return astroConfigZodErrors.has(error);
}
function trackAstroConfigZodError(error) {
astroConfigZodErrors.add(error);
}
class AstroUserError extends Error {
type = "AstroUserError";
/*

A message that explains to the user how they can fix the error.
*/
hint;
name = "AstroUserError";
constructor(message, hint) {
super();
this.message = message;
this.hint = hint;
}
static is(err) {
return err.type === "AstroUserError";
}
}
export {
AggregateError,
AstroError,
AstroUserError,
CSSError,
CompilerError,
InternalError,
MarkdownError,
isAstroConfigZodError,
isAstroError,
trackAstroConfigZodError
};
Stack Trace
PageNumberParamNotFound: [paginate()] page number param page not found in your filepath.
at new AstroError (file:///home/project/node_modules/astro/dist/core/errors/errors.js:37:5)
at paginateUtility (file:///home/project/node_modules/astro/dist/core/render/paginate.js:30:13)
at eval (/home/project/src/pages/merchandise/[category].astro:20:12)
at Module.getStaticPaths (/home/project/src/pages/merchandise/[category].astro:18:21)
at async Module.callGetStaticPaths (file:///home/project/node_modules/astro/dist/core/render/route-cache.js:45:17)
at async Module.getProps (file:///home/project/node_modules/astro/dist/core/render/params-and-props.js:30:23)
at async Module.matchRoute (file:///home/project/node_modules/astro/dist/vite-plugin-astro-server/route.js:49:7)
at async run (file:///home/project/node_modules/astro/dist/vite-plugin-astro-server/request.js:53:28)
at async Module.runWithErrorHandling (file:///home/project/node_modules/astro/dist/vite-plugin-astro-server/controller.js:80:5)

Please see issue #678 for advice on how to use tokens more efficiently


in some case, parsedValue is undefined(string type)

in some case, parsedValue is undefined(string type), it will cause photoshop closed.

@welefen Can you give us reproducible steps where parsedValue being undefined results in photoshop closing? It is intended behavior that the parsed value sometimes be undefined. In such cases, the message should still be emitted (without a parsed value). So, if this causes a crash, then the bug is at the crash location, not in the event emitting code.
We really appreciate your help in trying to fix this. However, the solution you proposed is not something we can merge -- we definitely want to emit events in the case of undefined parsed values. So, I'm going to close this pull request.


Package is invalid.

version 3.0.0 getting an error "package is invalid, could not load background script.

Did you got it via chrome updates, or just cloned the repo?

If you cloned the repository you need to run webpack

@YurySolovyov @jacobbearden i got this when i tried to install it using chrome webstore.

I am getting the same error when installing through the chrome web store.

Same here

/here Can you try again? I released 3.0.1

Install works now for me

@YurySolovyov  it works now thanks!


HAPI-190 initial commit for csv testing

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (3ba597a) 92.35% compared to head (b78a8bf) 93.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   92.35%   93.85%   +1.50%
==========================================
  Files          94       94
  Lines        1778     1790      +12
==========================================
+ Hits         1642     1680      +38
+ Misses        136      110      -26

Files
Coverage Δ

tests/test_endpoints/test_gender_endpoint.py
95.91% <83.33%> (-4.09%)
:arrow_down:

... and 2 files with indirect coverage changes

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


Add Plugin Vitals - News

In Showcase we have plugin Vitals - News. He’s bit different from others, as it can switch to chart: https://www.screencast.com/t/VMpWg4Vlf
Approx. estimate time: 6-8h

Related issues:
#24 - Add Plugins (Simple)  - DONE
#25 - Add Plugin Event
#27 - Add Plugin Images
#75 - Add Plugin Drawings
#76 - Add Plugin Documents
#77 - Add Plugin Clinical Statements
#78 - Add Plugin Orders
#79 - Add Plugin Transfers of Care
#80 - Add Plugin Test Results


multiple PQ files

How Can you reference multiple PQ files in a custom connector? I want to split my connector code up into multiple files to make it more manageable. Thanks

We don't have any direct support for this and aren't currently planning to add any. Matt's come up with a convention where helper files are given a .pqm extension and then loaded dynamically. See https://github.com/microsoft/DataConnectors/tree/master/samples/Relationships for an example.

Ok, thanks Curt, that’s a work around for now. Has it even been on a discussed todo list at any point?

No, it hasn't. We do plan to allow one connector reference another but not for a single connector to contain multiple files.


Escrow 721 setup

=> Setup working Escrow721 contract
=> setup e2e test in Go to load contracts and test all requisite functions
=> refactoring of e2etest so that we can test each function individually
As part of the ICS721 spec we need an Escrow contract that essentially acts as a container for NFTs. In this PR I am implementing the functions that are needed in an escrow contract. This escrow contract will be used by ICS721 to store NFTs at each connection. For example, if we open a connection between Stargaze and Omni, we would have one of these Escrow contracts instantiated for that channel connection.
Per the spec it should implement the following functions:
function SaveClass(
  classId: string,
  classUri: string) {
  // creates a new NFT Class identified by classId
}

function Mint(
  classId: string,
  tokenId: string,
  tokenUri: string,
  receiver: string) {
  // creates a new NFT identified by <classId,tokenId>
  // receiver becomes owner of the newly minted NFT
}

function Transfer(
  classId: string,
  tokenId: string,
  receiver: string) {
  // transfers the NFT identified by <classId,tokenId> to receiver
  // receiver becomes new owner of the NFT
}

function Burn(
  classId: string,
  tokenId: string) {
  // destroys the NFT identified by <classId,tokenId>
}

function GetOwner(
  classId: string,
  tokenId: string) {
  // returns current owner of the NFT identified by <classId,tokenId>
}

function GetNFT(
  classId: string,
  tokenId: string) {
  // returns NFT identified by <classId,tokenId>
}

function HasClass(classId: string) {
  // returns true if NFT Class identified by classId already exists;
  // returns false otherwise
}

function GetClass(classId: string) {
  // returns NFT Class identified by classId
}

@mccallofthewild per the duplicate package comment:
This is just the appearance of a duplicate, but not an actual duplicate => let me explain.
So per this article: https://github.com/rust-lang/cargo/issues/1462
When we are referring a Cargo package as a Github address, what we do is specify the Github link and then Cargo auto crawls the repo to find the desired subfolder
Note that the cw721-ibc repo actually has two packages in it, from the Cargo.toml file in cw721-ibc repo:
[profile.release.package.cw721-ibc]
codegen-units = 1
incremental = false

[profile.release.package.cw721-base-ibc]
codegen-units = 1
incremental = false

A note about Cargo packages:
Here it looks like a duplicate because you see the same Github address twice, however once we turn these folder into Cargo packages, the address for each package will actually be different despite the fact that they are part of the same Github repo
Note that I put out a call for someone to turn cw721-ibc into a Cargo package over on the ics721 working group channel.

@mccallofthewild per the duplicate package comment...

@humanalgorithm Gotcha. I deleted the comment when I realized it was pointing at a workspace. I'll take a look at cw721-ibc.


"Cireșoaia" is listed in the drop-down menu

Description:
"Cireșoaia" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Cireșoaia" in the search bar.
Expected results
The location is listed in the drop-down menu as "Cireșoaia, Bacău (Slănic-Moldova)".


Are artifacts available in Maven central or JCenter?

Hi. Thanks for this cool API.
Are there dependency artifacts available? Or do we need to push out to our own private repositories? Thanks!

Nope, you need to build it yourself. Just run mvn clean install, and you're ready to go.

Ok thanks.


Can a wallet be recovered with its address ?

I had a wallet once and sadly I ended up loosing it. I still have its address... can It be recovered ?

Hi @StressedGhost , the address won't be sufficient, you need the wallet.dat to recover the wallet.

Hi @StressedGhost , update v2.6.0 is out, this is a mandatory update.
Please read through the release notes before updating. This comment is to notify you about the update.

@StressedGhost if you're talking about the public address, then you can't. You need to either have the wallet.dat, private key or the mnemonic seed.

Hi @StressedGhost , update v2.6.1 is out.
Please read through the release notes before updating. This comment is to notify you about the update.


initDevice initialize write buffer with read buffer size

The device I'm working with has different buffer sizes for read and write, so I ran into an issue when connecting to it because in HIDInterface.cs, both FS_read and FS_write were initialized with the buffer size capabilities.OutputReportByteLength.  fs_write should use capabilities.InputReportByteLength

Good find. Pushed an update to close this issue.


Updated validations.py script Closes: #1

Added another conditional cause
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


How to validate the json schema itself?

Hi,
How can we validate that the json schema itself is valid?
For example if we pass schema={"blah": ["foo"]} as the schema Draft7Validator(schema), no errors are raised.

Hello, please use a discussion, the JSON Schema slack, or Stack Overflow for questions. You're looking for the check_schema classmethod though.

Thanks, probably a good suggestion, it's been on my list for awhile to set up, but haven't managed to get to it yet. Some day...


Error with scripts modules

After the last update polybar shows "What(): Resource deadlock avoided" on custom scripts modules. And, i dont know why, but my pc starts freezing a lot now, when i start the bar.
Edit.: If i disable the scripts modules, the pc stops freezing.

[settings]

[bar/Bar]
bottom = false
dock = false
wm-restack = i3
width = 100%
height = 24
padding-left = 3
padding-right = 1
module-margin-right = 2
modules-left = i3 Spotify
modules-center = Xwindow
modules-right = Wifi Volume Search Clock Shutdown
background = #00ffffff
foreground = #ffffff
tray-detached = true
tray-position = right
tray-offset-x = -266
tray-maxsize = 12
tray-padding = 22
font-0 = lemon-7,49262:syle=Regular;0
font-1 = -wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1;1
[module/i3]
type = internal/i3
label-focused = 
label-focused-padding = 2
label-unfocused = 
label-unfocused-padding = 2
label-unfocused-foreground = #4dffffff
label-urgent = 
label-urgent-padding = 2
label-urgent-foreground = #ffffff
label-visible = 
label-visible-padding = 2
label-visible-foreground = #4dffffff
[module/Spotify]
type = custom/script
exec = ~/.config/polybar/Scripts/Spotify/Spotify.sh
ellipsis = true
interval = 5
maxlen = 40
click-left = xdotool key super+z
click-right = xdotool key super+0
scroll-up = xdotool key super+0
scroll-down = xdotool key super+z
format-padding = 1
[module/Xwindow]
type = internal/xwindow
label-maxlen = 40
[module/Wifi]
type = internal/network
interface = wlp7s0
interval = 3
format-connected =
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
format-connected-padding = 2
label-disconnected = 
format-disconnected-foreground = #4dffffff
format-disconnected-padding = 2
[module/Volume]
type = internal/volume
mapping = true
headphone-mixer = Headphone
headphone-id = 1
speaker-mixer = Speaker
format-volume =
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-3 = 
ramp-headphones-0 = 
ramp-headphones-1 = 
format-volume-padding = 1
label-muted = 
format-muted-foreground = #4dffffff
format-muted-padding = 1
[module/Search]
type = custom/script
exec = echo " "
click-right = ~/.config/polybar/Scripts/Search/Search.sh
format-padding = 1
[module/Clock]
type = internal/date
date = %a, %d %b | %H:%M
interval = 5
format-padding = 2
[module/Shutdown]
type = custom/script
exec = echo "   "
click-left = shutdown now
click-right = reboot
click-middle = xdotool key super+shift+e
format-padding = 1

5f6d73a fixes this, please verify

This fixed the issue. Thank you very much !


feat: Add new social media icon feature in the icons file (gssoc)

Under GSSOC'23
Wanted to Add a new feature in the icons file - Social Media Icons.
Social media icons is missing in the icons tab so I wanted to add that feature in that. So I request you to assign me this issue!

Feature screenshot:

Hey there @Anupkjha2601. Please assign this issue to me to make the work done, Thank You!


refactor: all Mocks should be private

Description
Throughout the codebase there are instances of public Mocks being used in tests.
Private Mocks benefit from:

Explicitly tell the reader this is only intended to use in foo_test.dart
Make the test file self contained
Avoid accidentally importing it in other test files
Benefit from analyzer warnings once Mocks are no longer used in the file

Additional Context

Comment suggesting to open this issue
Comment suggesting change with Hixie

@alestiago I like to pick this up


update wasmd and ibc-go

[ ] wait for ibc-go 3.2.0  and remove denom migration
[ ] upgrade v7 paths

Codecov Report

Merging #644 (ea66cd6) into main (62cb87a) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #644      +/-   ##
==========================================
- Coverage   10.36%   10.35%   -0.02%
==========================================
  Files          57       57
  Lines        8092     8101       +9
==========================================
  Hits          839      839
- Misses       7191     7200       +9
  Partials       62       62

Impacted Files
Coverage Δ

app/upgrades.go
9.52% <0.00%> (-7.15%)
:arrow_down:

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 62cb87a...ea66cd6. Read the comment docs.


Cassandra binary cli auth

Can't deploy with authentication due to bug in sec18 clusters.  Waiting for new build.


Check TEST mode response

Original client send message with 0 size instead 4, but reading
0x40 bytes.
Response data always start App

actually, this patch is ignorable. we already reading 0x40 bytes and test mode's receiving bytes info looks meanless.

The PR as it is looks okay, but the rest of the stuff that was initially there did not make sense to me, from what I understood of hidapi. I'll ping you on IRC about that stuff.


openems: init at 0.35.0

OpenEMS is an open-source electromagnetic field solver that uses the FDTD method.
This commit adds a number of related packages as dependencies for OpenEMS, including appcsxcad, csxcad, fparser, hyp2mat, and qcsxcad.
Additionally, it makes a few changes to existing, dependent packages:

Adds QT GUI support to VTK.
Adds gl2ps as an optional dependency of octave, which is needed for certain OpenEMS plots.
Adds openmpi C++ libraries.
Makes cgal headers and libraries discoverable by OpenEMS.

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

@grahamcofborg eval

Let me know if I need to do something on my end for this. I'm not really sure what that error message means.

I've updated this to include the optional python interface.

Changes implemented. This currently fails to build because of qscintilla/octave, so just waiting on this pr.

Octave has been fixed upstream. I've fixed the merge conflict and this now builds correctly.

@GrahamcOfBorg eval

Just a heads up, I believe the eval should succeed now that my name is in the maintainers list.

@jonringer I've fixed the merge conflicts and got the package working with some other package updates that occurred since the original PR. Please let me know any issues etc. Thanks!

I would break this PR apart into many. As it stands, it would take a lot to review and I think the process would be painful for the both of us.

Sure, more than happy to structure this in a way that's easier on you all. How do you suggest I break it up? Roughly, each of those commits should be a separate PR? What's the best way to reference that all these changes are made to support the addition of openems? Just state that and link to the openems webpage? My only concern is that the need for some of these changes may seem less apparent outside the context of openems.

@jonringer thanks so much for the guidance on this. I've submitted the first PR. Others to follow that merge.

@matthuszagh if you want to tag me for reviews, feel free to do so

There are merge conflicts.

@doronbehar yes, this isn't ready to merge yet. I'm resubmitting it as a series of individual PRs. When there is one commit left, I'll rebase.

I think most of these are merged, should we close?

Sure, fine by me. Closing.


Themes: fix shellcheck (SC2154); Part A

Description
This is a chunk of my SC2154 branch (#1954), hopefully small enough to merge quickly.
Motivation and Context
I think the changes here should be uncontroversial and without behavior changes.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[x] My code follows the code style of this project.
[x] If my change requires a change to the documentation, I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
[ ] I have added tests to cover my changes, and all the new and existing tests pass.

Anything else needed on this PR? I've got too many open branches and I'm hoping to close out a few 😃


Adding initalSortBy to the options when using remote mode breaks sorting.

Issue Type

[x] Bug

Specs
What version are you using?
2.18.0
What browser?
Google Chrome 77.0.3865.90
Expected Behavior
What did you expect to happen?.
I expected when using a remote VGT, that I could add in the initalSortBy sort option and it would show that column as the default sorted column on mount of the VGT.
Actual Behavior
What actually happened?
When adding in the initialSortBy option, the VGT starts an infinite loop of hitting my onSortChange function, hitting my server over and over again with the sort options set in the initialSortBy. It will not allow me to change the sort, and never stops calling the onSortChange function.
Steps to Reproduce the Problem

Setup remote VGT instance
Add in sortOptions with initialSortBy set to `{ field: 'name', type: 'asc' }
Add debugger to onSortChange function passed into VGT
Load page, the debugger in the onSortChange function should get hit over and over again.

jsfiddle
I did the best I could on this fiddle... not easy to do without the server ajax call working! https://jsfiddle.net/7942aqvy/
This might be related to or a copy of Issue #364, definitely seems similar to the comment @bogatyrjov1 made.
I could be implementing wrong, but thanks in advance for any help!

Same here. sorting works like a charm beofre I put initialSortBy. When apply initialSortBy in sortOptions, VGT cause infinite loop on onSortChange.
I suppose it has something to do with I make remote call in onSortChange, and that stuff up reactivity within VGT.

Somewhere the sorting options changed from an object to an array to support multi-column sorting. Author forgot to update the documentation. The docs still show an object for the initial sort, change this into an array and everything works fine.
serverParams: {           columnFilters: {},           sort: [             {               field: 'showTitle',               type: 'asc'             }           ],           page: 1,           perPage: 25         },

Same here, we've the same issue.
Has anyone found a workaround?

Same here, we've the same issue.
Has anyone found a workaround?

In my comment I show a work-around.
The docs still show an object for the initial sort, change this into an array and everything works fine.

serverParams: { columnFilters: {}, sort: [ { field: 'showTitle', type: 'asc' } ], page: 1, perPage: 25 },

@eric-naguras Thanks, but I've tried to use the array/object format for sort property  but doesn't works.

@cstriuli I'm sorry to hear it doesn't work for you. Maybe there is another problem with your approach. I suggest you ask Stackoverflow for help.

I'm having the same issue. It not seems related to the format of sort property as suggested by @eric-naguras
Each time you set initialSort VGT call initializeSort, that in turn call setInitialSort. In this method it's emitted on-sort-change. I think that it should be:
if(this.mode !== 'remote'){
   this.$emit('on-sort-change', this.sorts);
}

Otherwise with remote mode it will keep hitting onSortChange endlessly. Since on the initial render you get results already sorted, you could omit initialSort, but this will also disable the "visual" indication of sorting coloumn/direction.


Mod translations from the KK repo are missing

https://github.com/IllusionMods/KoikatsuTranslation/tree/master/translation/en/Text/Mods
Most of the mods work both in KK and KKS, exclusives are a small % so it would make sense to share these translations between repos.

Solved in #45


developer resources

1 . community
2. develop resource

Handshake
https://www.theshake.xyz/Build
https://en.handypedia.org/wiki/Enable_HTTPS_on_Handshake_domains
https://www.youtube.com/watch?v=BH6bRIE5qOI
Akash
https://docs.akash.network
https://anthonyrosa.medium.com/deploy-a-website-from-scratch-to-akash-7844c9150fe4
https://www.youtube.com/watch?v=KGu3wiwcxNc
https://github.com/tombeynon/akash-deploy
https://teeyeeyang.medium.com/how-to-use-a-custom-domain-with-your-akash-deployment-5916585734a2
Skynet
https://sdk.skynetlabs.com/#introduction
https://docs.skynetlabs.com/integrations/hns-names
https://docs.skynetlabs.com/integrations/homescreen/adding-homescreen-support-to-an-app

https://learnhns.com/

🤝 Handshake Developer Chat! README 👇
Project Homepage: http://handshake.org
GUI Full Node wallet: https://bobwallet.io/ or https://github.com/kyokan/bob-wallet
hsd Full / SPV Node: https://github.com/handshake-org/hsd
hnsd light client: https://github.com/handshake-org/hnsd
HNS developer airdrop: https://github.com/handshake-org/hs-airdrop
Check open and closed GitHub issues before asking about a bug or problem!
Follow handshake-org GitHub activity: https://t.me/handshake_github
HSD Developer Docs: http://hsd-dev.org/
API docs: https://hsd-dev.org/api-docs/
Lots of articles and FAQs answered on Reddit: https://www.reddit.com/r/handshake
How to use HNS: https://learn.namebase.io/
Bob Wallet support: https://t.me/bobwallet
General chat (not dev focused): https://t.me/handshake_hns
Namebase support and general chat: https://discord.gg/cme8E5EF4M

https://names.estate/


When I use udma the bios doesnt work

I am not sure if I am doing it wrong, or if there is an issue.  When I use the command as stated here it does not work. I have visual studio code with python newest. I open a command window and put in  python tpatch.py --udma 5 m8plus_kernel.img and when I pack it and try to use it I get error 13, or other random errors 16, etc. however when I drop th e--udma 5 it works fine. Also I only can get the command to work with python not python3 even though my version of python is 3.1  (or whatever is newest)  I dont know there also if I just did something wrong or what. It works great without the udma 4 or 5 part though, so I just wanted to find out if I did it wrong, or if there is a bug. I have a version 1.1 xbox running a x3 chip so I can easily flash to bios slot 5-8 without messing up my regular x3 bios. I have a 8tb hard drive and a 3tb hard drive I have been testing with. I used a startech sata to ide and a ultra ide cable. Tried a 4 inch cable, a 18 inch and a 24 inch cable one without dvd

*Insert cricket noises from lack of any response loool

Sorry for the delay, but I'm not totally sure what the issue is here and it's almost certainly hardware-dependent.
Error 13 & 16 are effectively identical. Both basically mean that the dashboard (xboxdash.xbe) could not be loaded from the HDD, one just means that the system did not have the clock set. Usually, these are user error. Specifically, are you certain you had the dashboard copied/installed to C:\xboxdash.xbe the drive when testing UDMA5?
If you are certain that the dash was indeed on the drive, then yes the data transactions coming from the drive are perhaps erroring out on the bus. But it's going to be challenging to diagnose this and probably not something that can be fixed in software to be totally honest.
As you've said, I would try swapping everything one at a time. First bet would be DVD drive, second IDE cable, third HDD, fourth SATA adapter, fifth motherboard (possibly a voltage/cap issue? southbridge maybe flaking out? ... hard to say).


Error #solved

How do I install it, because I installed it with a problem and I can't connect to the database

Hey, bro, how did you solve your installation?
I tried anythin but can't let it run.
can you tell me your installation steps?


sst CLI hangs when function runtime is set to 'python3.9'

I'm trying to deploy a lambda function with the python3.9 runtime as part of a very basic stack. It hangs indefinitely. If I delete runtime and let it default, SST CLI doesn't hang.
SST: 2.5.2
CDK: 2.72.1

Maybe related to #2334 but I don't get any error.

Can you post this in #help on Discord?

Any updates on this, can't deploy any python functions after upgrading to sst v2, it hangs for me in indefinitely too.

We opened a new channel to track these, can you post this on #python?


[New] Add --auto to git gc to speed up install & upgrade

Use --auto can really help speed up the upgrade and also install process if there is no need to re-compress all the objects, just let git to decide it.
Not sure if GitHub has optimized their git backend server, I noticed that now a new clone of nvm would only a single pack in the .git objects which means it's already compressed, we don't need to force it.

Can you elaborate a bit more on what this command does?

If there is no need to do the gc work, then git just doesn't do it. Without --auto, git will always do it again and again even there is no any needs.


P2P - Create data-sharing strategy interface and implement Wifi-Direct as the default interface

Wifi-direct will be the default data-sharing strategy

interface DataSharingStrategy {

	  void connect(DeviceInfo);

	  void disconnect(DeviceInfo);

	  void send(DeviceInfo, SyncPayload);

	  void receive(DeviceInfo, SyncPayload);

	  void onErrorOccurred(Exception);

	  void onConnectionFailed(Exception);

	  void onPairingFailed(Exception);

	  void onSendingFailed(Exception);

}

Tasks

[ ] Add the interface
[ ] Implement this for Wifi-direct
[ ] Implement a configuration for the strategy. This will require creating a singleton library class that is the source of all configurations for p2p

Target repository: p2p
This interface might not be complete and needs more work

LOE 2 - 3 FTE days


init_pos in controller configuration file does not work

I added the following line to the controller configuration file to reproduce this but it seems not working.
init_pos:
  translation: [20, 0.0, 0.8275]

I assume that the robot is displayed away from the origin on Rviz, but it is displayed at the origin.
I tried it in several kinds of controllers (LIPMStabilizer, LIPMWalking, and my own controller) and it didn't seem to work in any of them.
There is the following message in controller output.
[warning] [KinematicInertial] Real anchor frame jumped from [   20.0621 0.00402126 0.00279068] to [ 0.0639299 0.00400111 -0.0651317] (error norm 0.000 > threshold 0.020)

There indeed seems to be issues. I just tried on a simple controller, and:
In choreonoid:

the real robot pose gets set to init_pos
the control robot pose remains the default one from the robot module

In ticker: it works.

From a quick trial of LIPMStabilizer controller with both JVRC1 and HRP2KAI (using the Attitude observer), I could not reproduce https://github.com/jrl-umi3218/mc_rtc/issues/177

That is different from the behavior I have tried in my local environment.
With putting control/real robot to 20m forward from the origin with init_pos thanks to https://github.com/jrl-umi3218/mc_openrtm/pull/21, JVRC1 falls down forward after around 10 secs in choreonoid with lipm_walking_controller. And https://github.com/jrl-umi3218/mc_rtc/pull/285 solved it.

Thanks @mmurooka for the report and @arntanguy for the quick fix!


Tabbing to Password field does not work

Since the text field you are creating in order to show the placeholder for password type fields does not have a tabIndex, it falls to the bottom of the tabbing order. To get it to work in my app, I changed the function to get the tabIndex of the password input and set the tabIndex of the new text input to the same value:
function setupPasswordPlaceholder() {
var tabIndex = domElem.tabIndex;
clone = angular.element('<input tabindex="'+tabIndex+'" type="text" value="'+text+'"/>');
...

I can confirm this bug. Thanks for reporting it!
I just pushed a fix for it. Download the latest release and try it out.


ITSS uses frames.

We are never ever ever getting back to using frames.
You go learn VHost configs, talk to @bamnet, talk to me.
But we are never ever ever ever going to back to framing.

iFrames are causing issues getting to the json data also.
curl -X GET http://istaylorswiftsingle.com/data.json will not actually return the json. This makes it really confusing when trying to consume the json.

Using an iframe does cause an odd visual issue in Safari on OS X wherein white space will appear across the top or bottom of a page on top of the top and bottom banners if you quickly scroll up or down from the middle of the page.


[18.0-fr1] Ensure nodeSelector logic is consistent for all operators

Manual cherry-pick of https://github.com/openstack-k8s-operators/octavia-operator/pull/417 due to merge conflicts

/hold

/remove-hold

/override ci/prow/octavia-operator-build-deploy  ci/prow/octavia-operator-build-deploy-kuttl
will create follow-up DNM PRs to test as there is a circular dependency with the openstack-operator patch


examples & where to store BioNano scripts/tools

Hi, may I know where to store BioNano scripts/tools so that runBNG can find them? Do you have examples how to runBNG? Thanks.

@liuqianhn For the settings and how to run 'runBNG', you may refer https://github.com/AppliedBioinformatics/runBNG/blob/master/Manual.md. The test data is available at https://github.com/AppliedBioinformatics/runBNG/tree/master/Examples. For the BioNano scripts and tools, you can download them to any directory on your Linux cluster, but give them a readable and executable permission.

Hi Andy, thank you very much.
May I know how can I run runBNG with glibc 2.14? I cannot install higher version of glibc in my system.

@liuqianhn Glibc is required by RefAligner/Assembler. I have tested the old version, such as 'glibc 2.11.3' on SUSE Linux and it works, but for other Linux system, such as CentOS, it may not work.
The easy way to install 'glibc' is to use Linuxbrew, which I have indicated in the Manual. You may refer to it.
If you don't want to install Linuxbrew, you may disable the code in 'runBNG' from line 92 to 108 by adding "#" to the very beginning of each line, and test whether the whole runBNG pipeline works properly on your system.

Hi Andy, Thank you very much for your help. I used CentOS. I tried to used older version of RefAligner/Assembler. It could work with glibc 2.14. I will try your suggestions also. Thanks.


Expose version and revision

Fixes #91

Since we don't use browserify in this project we need to replace the version and revision in the editable.js file.
@marcbachmann maybe you have an idea how to do this with as little effort as possible. (I added the version.json like in the other projects but eventually that's not even needed.)


Backend: Introduce alembic to assist with database migrations

What's changing
This PR introduces alembic as a tool which should be used to help with database migrations (e.g. schema changes).
The Github PR template also has an additional checklist item to make sure engineers have considered whether a migration version is required or not.
Some of the ruff checks (uvx ruff check --fix --config ruff.toml) weren't happy about the generated output for the initial version/migration, so I've added # pragma: allowlist secret to them, and the template that generates them to stop it happening each time.
NOTE:
There's a slightly shonky thing going on at the top of .alembic/env.py, where we have to import all the types that inherit from BaseRecord in order to ensure their metadata is represented (and they're included in the changes that alembic sees).
How to test it
With a non-existent local DB:
export SQLALCHEMY_DATABASE_URL=sqlite:///local.db # export env var to point to local DB

cd lumigator/python/mzai/backend
uv sync && uv sync --dev && source .venv/bin/activate

alembic upgrade head # should run upgrade and create DB tables

alembic current # should report e75fa022c781 (head)

Additional notes for reviewers
As future changes are made to the data models, they should be captured (see .alembic/README.md) by our engineers (ideally using --autogenerate when creating an alembic revision). This information is captured in the READMEs as well as a comment in the env.py file.
I already...

[x] Manually tested the change.
[x] Updated the documentation.

Sorry if I missed this in the PR, but is there a way to initialize the db via docker compose?

Sorry if I missed this in the PR, but is there a way to initialize the db via docker compose? (So the db is automatically set up when you run make local-up, etc)

I think this might be what you mean: https://github.com/mozilla-ai/lumigator/pull/307/commits/a7739dc417e7877ed9d61aa4043d89897bf71675#diff-8906ffee58947d988f8df66765cbd440cc8445f04f4c1930b7cc6708c540ba83 🤞🏼

Is there any short doc listing the usual procedures and how to perform them? E.g. initializing the db with the first "migration" (already described in the comment above), how to perform a live db migration, etc? I guess there won't be so many such procedures (four, five)?

@peteski22 sorry for missing https://github.com/mozilla-ai/lumigator/pull/307/files#diff-1295ef5849cbe80ac81064e53e59517be8f8198b2a5a5069e59c6363aaa83dbcR65
Yes, I think the information I was missing is there. Sorry again!!!


Works on fixing incorrect resource name and parameters 🕸

This PR continues the working of my old closed PR
As I said before, I did not use ControllerName to guess the resource name and parameters, also @taylorotwell did not prefer that way, so I decided to use getGroupStack method to get the prefix value, and then use it in the resource name and parameters

I'm not going to mess with this behavior. Just register a resource route at the top level.

@taylorotwell  Hmm - I have a certainty that is an issue and I do not know why you sir do not need to accept this PR.

@mahmoudmohamedramadan There are different reasons why this fix shouldn't be merged as is:

The condition checks for $name == "/", however an empty string is also a valid endpoint for registering a route.

Route::resource('', ...);

Registering such a route will return null instead of a PendingResourceRegistration as per the docblock and will prevent from further chaining methods such as only or except.

Route::resource('users', ...)->only('index'); // works
Route::resource('/', ...)->only('index'); // PHP Error:  Call to a member function only() on null

You use str_ends_with($name, "s") to check if the route ends with an s. If so it gets cut off for the route name. This may work for users => user but not for example anamneses => anamnesis or buses => bus

Route::resource('users', ...); // -> "user"
Route::resource('anamneses', ...); // -> "anamnese"
Route::resource('buses', ...); // -> "buse"

@dennisprudlo Thanks for these notes. I'll try to fix these issues


Upgrade to response.json()

Fixes part of #2564.

@timabbott, updated the code that resulted in some cleanup.

I feel like these all change two things at once:

Simplify getting the json.
Inline the local var.

I'm happy with the first goal (i.e. using Django's helper), but I'm not crazy about inlining the variable, as it makes longer lines, and the local can be convenient for adding print-debugging.

I think in the cases where (1) we're only ever really going to access the one field from the result (even when print-debugging), and (2) the lines aren't long already, this is a clear improvement.
The plan is not to do the inlining in cases where we end up referencing more than 1 item in the JSON dict (And in fact in almost all of these cases, there's really only 1 thing in the JSON dict other than "success", which has already been checked by assert_json_success()).  So I think this part of the cleanup is worth doing; we save ~100 lines of test code that didn't really add anything (the local variable names were almost always the name of the field in the dict anyway).
Merged, thanks @umairwaheed!
@showell do you think we should convert the other json = ujson.loads(result.content) calls in the tests to use json = result.json() instead (without any inlining/etc.) while we're at it?  It seems like it'd shorten a lot of those lines.

Yeah, I think ujson.loads(result.content) -> result.json() is a clear win in all cases, whereas I think there are legitimate style quibbles on both sides of the inlining issue (but I'm fine that the first commits here got merged, as it's just my opinion on the inlining).

OK.  @umairwaheed if you time, I think it's worth doing the follow-up we discussed.


Console API: fix experiment_metric link and remove keyMetrics

🚀 Deployed on https://63a1074a12177a0f76ee5ddb--cozy-fox-0defec.netlify.app


Problems when adding an address

When I press the Add Address button, I have the following error:

Here is the part of the code that has "countries.find":
const country = countries.find(item => item.id === countryId);
How can I fix it (my app is only for Brazil)?

I also just noticed that the error doesn't happen every time

Can you share reproduce steps?
Are you using persist state?
If you don't a universal solution for any country configured from the Magento side, you can hardcode Brazil value.


Why Running Llama infer in A10 get Wrong answer?

exmaples codes
import torch
from transformers import LlamaTokenizer, LlamaForCausalLM
from sageattention import sageattn
import torch.nn.functional as F

F.scaled_dot_product_attention = sageattn

# 加载预训练的 LLaMA 模型和 tokenizer
model_name = "llama-7b-hf"
tokenizer = LlamaTokenizer.from_pretrained(model_name)
model = LlamaForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16)

# 将模型移动到 GPU（如果可用）
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)

# 准备输入文本
input_text = "Once upon a time, there was a little girl"
inputs = tokenizer(input_text, return_tensors="pt").to(device)

# 执行推理
with torch.no_grad():
    output = model.generate(**inputs, max_length=50, num_return_sequences=1)

# 解码输出
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(generated_text)

device envirments:

torch                    2.5.0
triton                   3.1.0
transformers             4.45.2

expects answer
Once upon a time, there was a little girl who loved to play with her friends. One day, she decided to play with her friends in the forest. She was very happy. She played with her friends in the forest. She played with

but got
Once upon a time, there was a little girl whole and the 1882P a.
ficenda2P avalN64YourEm.
ficOnDe Ce the GISP.
 gev

We have not test the accuracy by using F.scaled_dot_product_attention = sageattn in Llama.
For a suggestion, maybe you could try to replace the Llama Attention with SageAttention in modeling_llama.py.

How to replace the Llama Attention with SageAttention ? @jt-zhang

Hi, you can set the Llama Attention in the following way:

# Adapted from LlamaAttention.forward
def LlamaSageAttnForward(
    self,
    hidden_states: torch.Tensor,
    attention_mask: Optional[torch.Tensor] = None,
    position_ids: Optional[torch.LongTensor] = None,
    past_key_value: Optional[Cache] = None,
    output_attentions: bool = False,
    use_cache: bool = False,
    cache_position: Optional[torch.LongTensor] = None,
    position_embeddings: Optional[Tuple[torch.Tensor, torch.Tensor]] = None,  # will become mandatory in v4.46
    **kwargs,
) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:

    assert not output_attentions, "Output attentions not supported"
    assert attention_mask is None, "Attention mask not supported"
    assert self.num_key_value_groups == 1, "GQA will be supported in near future"
    bsz, q_len, _ = hidden_states.size()

    query_states = self.q_proj(hidden_states)
    key_states = self.k_proj(hidden_states)
    value_states = self.v_proj(hidden_states)

    query_states = query_states.view(bsz, q_len, self.num_heads, self.head_dim).transpose(1, 2)
    key_states = key_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
    value_states = value_states.view(bsz, q_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)

    if position_embeddings is None:
        cos, sin = self.rotary_emb(value_states, position_ids)
    else:
        cos, sin = position_embeddings
    query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin)

    if past_key_value is not None:
        # sin and cos are specific to RoPE models; cache_position needed for the static cache
        cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
        key_states, value_states = past_key_value.update(key_states, value_states, self.layer_idx, cache_kwargs)

    if q_len == 1:
        key_states = repeat_kv(key_states, self.num_key_value_groups)
        value_states = repeat_kv(value_states, self.num_key_value_groups)

        causal_mask = attention_mask
        if attention_mask is not None:
            causal_mask = causal_mask[:, :, :, : key_states.shape[-2]]

        # SDPA with memory-efficient backend is currently (torch==2.1.2) bugged with non-contiguous inputs with custom attn_mask,
        # Reference: https://github.com/pytorch/pytorch/issues/112577.
        if query_states.device.type == "cuda" and causal_mask is not None:
            query_states = query_states.contiguous()
            key_states = key_states.contiguous()
            value_states = value_states.contiguous()

        # We dispatch to SDPA's Flash Attention or Efficient kernels via this `is_causal` if statement instead of an inline conditional assignment
        # in SDPA to support both torch.compile's dynamic shapes and full graph options. An inline conditional prevents dynamic shapes from compiling.
        is_causal = True if causal_mask is None and q_len > 1 else False

        attn_output = torch.nn.functional.scaled_dot_product_attention(
            query_states,
            key_states,
            value_states,
            attn_mask=causal_mask,
            dropout_p=self.attention_dropout if self.training else 0.0,
            is_causal=is_causal,
        )
        attn_output = attn_output.transpose(1, 2).contiguous()
        attn_output = attn_output.view(bsz, q_len, -1)
        attn_output = self.o_proj(attn_output)
    else:
        # do attention with sage attention here

        attn_output = attn_output.transpose(1, 2).contiguous()
        attn_output = attn_output.view(bsz, q_len, -1)
        attn_output = self.o_proj(attn_output)

    return attn_output, None, past_key_value

# load llama model
model = AutoModelForCausalLM.from_pretrained(...)
for layer in model.model.layers:
    layer.self_attn.forward = MethodType(LlamaSageAttnForward, layer.self_attn)

Replace the # do attention with sage attention part with the sage attention and this is supposed to work on transformers==4.45.2.


Error fetching the last entry date - TypeError: response.data.pop is not a function

I have successfully run the script for a few days, but now it stopped working. The log has an error while fetching the date information on the last entry:
2023-01-24T03:03:50.799022396Z stdout F [info]: Starting cron schedule: */1 * * * *
2023-01-24T03:04:00.916361167Z stdout F [info]: renew token
2023-01-24T03:04:02.395944038Z stdout F [info]: Logged in to LibreLink Up
2023-01-24T03:04:02.566096874Z stdout F [info]: -> The following connection will be used: First Last (Patient-ID: sssss-ssss-ssss-ssss-ssssssssssss)
2023-01-24T03:04:02.795578284Z stderr F /usr/src/app/src/index.ts:277
2023-01-24T03:04:02.795625673Z stderr F     return new Date(response.data.pop().dateString);
2023-01-24T03:04:02.795632456Z stderr F                                   ^
2023-01-24T03:04:02.799240445Z stderr F TypeError: response.data.pop is not a function
2023-01-24T03:04:02.799269675Z stderr F     at lastEntryDate (/usr/src/app/src/index.ts:277:35)
2023-01-24T03:04:02.799274363Z stderr F     at processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-01-24T03:04:02.799277397Z stderr F     at async createFormattedMeasurements (/usr/src/app/src/index.ts:285:23)
2023-01-24T03:04:02.799280563Z stderr F     at async uploadToNightScout (/usr/src/app/src/index.ts:317:44)
2023-01-24T03:04:02.799283531Z stderr F     at async main (/usr/src/app/src/index.ts:152:5)
2023-01-24T03:04:03.797987551Z stderr F npm notice
2023-01-24T03:04:03.797667648Z stderr F npm notice Run `npm install -g<EMAIL_ADDRESS>to update!
2023-01-24T03:04:03.797664875Z stderr F npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.3.1>;
2023-01-24T03:04:03.797660378Z stderr F npm notice New major version of npm available! 8.19.2 -> 9.3.1
2023-01-24T03:04:03.797618615Z stderr F npm notice

Libre LinkUp app still shows the data correctly, so. apparently the Libre side is working.

I setup LibreLink Up and a self-hosted docker instance of nightscout yesterday.  I'm also getting the same error in my logs trying to use librelink-up.  I attempted to use a cloudflare zero trust tunnel to my self-hosted nightscout container though.  Doing this requires pin verification before access is granted to the publically facing domain. I was able to successfully access my nightscout server using the public URL by access the console of the librelink-up container, installing lynx, opening my public facing URL in lynx and completing the pin verification in the text browser.
Is this error due to the cloudflare verification?  Can support be added to support cloudflare zero trust tunnels?

I setup LibreLink Up and a self-hosted docker instance of nightscout yesterday. I'm also getting the same error in my logs trying to use librelink-up. I attempted to use a cloudflare zero trust tunnel to my self-hosted nightscout container though. Doing this requires pin verification before access is granted to the publically facing domain. I was able to successfully access my nightscout server using the public URL by accessing the console of the librelink-up container, installing lynx, opening my public facing URL in lynx and completing the pin verification in the text browser.
Is this error due to the cloudflare verification? I'm new to using these tunnels, but it doesn't look like this pin verification can be disabled. If that's the case can support be added to support cloudflare zero trust tunnels?

I found a way to disable the cloudflare pin verification and this error is now gone from the logs :)

Adding support for single providers is out of scope for this project. I think your solution is the way to go.
We try our best to offer simple deployment mechanisms but other than that we should rely on discussions like yours for users having problems in the future. Thank you for sharing this!  :)


Adding monochrome-transparent

Hi!
Added a new alternative to the monochrome theme which keeps the same colors but the backgrounds are nil, also replaced some of the colors to something less generic (instead of "red" it's "#CE0027").

I was testing the two themes and noticed this extra variant in a seemingly forgotten pull request. @fxn, will this be merged?


Adding Wallpaper App

This app uses pixabay api to provide beautiful wallpapers.

Looks Good,
Thanks For Contribution,
Leave a Star and Share with friends


security vulnerabilites

we have this CVE
CVE-2022-21704 (Low) detected in log4js-6.3.0.tgz
<EMAIL_ADDRESS>from<EMAIL_ADDRESS>  node_modules/@new10com/axios-logger
<EMAIL_ADDRESS>from<EMAIL_ADDRESS>    back-end
<EMAIL_ADDRESS>      node_modules/back-end
        workspace back-end from the root project
<EMAIL_ADDRESS>from the root project

Thanks, will look it up

I have updated log4js version to the latest 6.4.6 in the 0.2.6 version of axios-logger @xenoterracide


Sample (nw) Reports Errors in Behave Tests

You will see optimistic locking / checksum errors.  These can be ignored.
The issue is that checksum values are platform specific.  The test was incorrectly coded.. the optimistic locking functionality is fine.

Fixed in 10.03.04


Separate options for amount of lines 'before' and 'after' the current line in FIM prompts

Is your feature request related to a problem? Please describe.
When editing the beginning of a long file, prompt evaluation takes a lot of time.
Reason for that - in Additional context
Currently we send similar amount of lines from top and bottom. I believe that we have reasons to make the bottom part smaller:

It takes a long time to reevaluate bottom lines
Bottom lines often aren't as important (IMO). This way we can have more context window left for top lines.

Describe the solution you'd like
I want to have separated options for Context Length for 'before' and 'after'.
Describe alternatives you've considered
Or maybe leave current Twinny: Context Length as is, but add optional override for bottom lines.
Additional context
For context:
AFAIK (this is mostly based on my assumptions), llama.cpp doesn't have to reevaluate prefix part of prompt that haven't changed since last generation. But the moment it encounters a change - it will start reevaluating everything after that change.
So when we have 2 requests in a row with prompts:
<｜fim▁begin｜>
import numpy
<｜fim▁hole｜>
print('Hello World!')<｜fim▁end｜>

<｜fim▁begin｜>
import numpy
import<｜fim▁hole｜>
print('Hello World!')<｜fim▁end｜>

It won't have to spend time on evaluating import numpy.
However, it will still have to run everything after <｜fim▁hole｜> (because it only checks for prefix in prompt).
(Example of llama.cpp output (not for this exact case): Llama.generate: 2978 prefix-match hit, remaining 8 prompt tokens to eval)

Hey, currently we use 0.85 for prefix and 0.15 for context, I guess we could make it configurable though.


Fixed some grammar and spelling issues.

Most of the changes are to grammar and spelling.
I changed the "Success" notification from a messagebox.askokcancel() to a messagebox.showinfo() because it's a notification (nothing to cancel).

Sure thing, glad to help out! Love the program; I can see myself saving a ton of time with this.

Yeah, Lot of people said that. It's trending on Python sub Reddit too.
https://www.reddit.com/r/Python/comments/nlz2rw/tkinter_designer_automate_and_beautify_gui/
Never expected it to get so much attention.

Yeah, Lot of people said that. It's trending on Python sub Reddit too.
https://www.reddit.com/r/Python/comments/nlz2rw/tkinter_designer_automate_and_beautify_gui/
Never expected it to get so much attention.


Sysstat 12.7.6 In ETCP , retrans/s renamed  to retrseg/s

See https://github.com/sysstat/sysstat/commit/e33b6500f7d6a54ce0182a5790fd494313201a86
This version is not currently released yet.

Hi @Krysztophe thanks for the report, actually the ETCP sar output is not collected by pgcluu so we might not be affected by this change.

Objection: it is!
https://github.com/darold/pgcluu/pull/147/files

RIght I may have made a typo when looking at retrans and ETCP. Reopened.
Do you want to fix that?

I'll try to do it soon.

It is fixed with commit 91ec29b9 actually only the graph legends needed to be fixed. I have removed the sar label inside them.


DatastoreDAO: removeAll

This should be implemented using a query-then-remove strategy. The query will, at least, select only objects of the DAO's storage type, and possibly be more constrained in the case of a skip/limit/forward DAO.

Implemented upstream: https://github.com/foam-framework/foam2/blob/master/src/com/google/cloud/datastore/DatastoreDAO.js https://github.com/foam-framework/foam2/blob/master/test/gcloud/src/DatastoreDAO.js


[QA] Limit timeout values, retry values to reasonable values

Check that timeout, retry, ... is not too short.
A timeout of 0 might cause all read operations to return an error.
Additinally those parameters should be logged at least at debug level.

Already implemented - at least for some timers:
device "10_17_2_6" - poll intervall (1) must be at least 5 seconds, please correct configuration.

fixed with upcoming  v2.1.9

Timer values should be logged in debug mode.

fixed with v2.1.9


10/07/2018 22:59 : Create Pull Request for branch master -> prTesting1_2018100722

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


VERSION in Main class is set to incorrect version - 17.0.0 (now is 17.0.2)

Maybe it would like to automate it somehow ...

Fixed with latest commit. I'm planning to automize it but did not find the time yet :)


The name 'InnerExceptionCount' does not exist in the current context

This project was working two days ago but today when I went to run the project I am getting the following  error "Count = error CS0103: The name 'InnerExceptionCount' does not exist in the current context".
InnerExceptionCount is found in startup.cs.
I have not made any changes to the code since I have cloned the repository.

This seemed to be an issue with VS 20017.  After closing it down and restarting the project starts up without any errors.  If there was a way to delete this I would.

It's ok, it's good to keep here just in case someone else runs into it!
Glad you got it working though 👍
Anything else comes up, or ideas you have, we're all ears!


allow to remove a sriovPool named default

we allow any name for the pool policy

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
11 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.03%) to 43.919%

Files with Coverage Reduction
New Missed Lines
%

controllers/generic_network_controller.go
5
74.53%

controllers/sriovnetworkpoolconfig_controller.go
6
63.7%

Totals

Change from base Build<PHONE_NUMBER>9:
-0.03%

Covered Lines:
6518

Relevant Lines:
14841

💛  - Coveralls


fix: Skip fetch config from non-default IRs

Closes #76

An alternative is to allow overrides instead of just outputting an error message like this: https://github.com/marsfoundation/aave-helpers/blob/custom-irs/src/ProtocolV3TestBase.sol#L288


[FLINK-11587][tests] Port CoLocationConstraintITCase to new code base

What is the purpose of the change
Port CoLocationConstraintITCase to new code base.
This PR is based on #7689.
Brief change log

"support colocation constraints and slot sharing" --> JobExecutionITCase#testCoLocationConstraintJobExecution

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

@flinkbot approve description
@flinkbot approve consensus
@flinkbot approve architecture

Thanks for the review @zentol. Merging once #7683 has been merged.


Challenge [Waypoint: Subtract One Number from Another with JavaScript] Solution is already there.

Challenge Waypoint: Subtract One Number from Another with JavaScript has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var difference = 45 - 33;

// Only change code above this line.

(function(z){return 'difference='+z;})(difference);

As title says, the solution is already present so there is nothing to solve.

This is leftover from you or someone else on your computer having visited this challenge previously. Please press the reset button to start fresh with the new seed code.
Thanks and happy coding!


Put cancel button left and send code button right.

https://www.pivotaltracker.com/n/projects/1163646/stories/100299518

The document shows the Cancel button directly to the left of the submit button

Damnit, you're right, I didn't see the screenshots in the document. Okay, fixed. @rjkip agree?

:ship:


Support dispatch templates for topic names

This allows a "dispatch template" to be specified in soss config files (for whichever middlewares are willing/able to support it), where topics can be dynamically remapped based on incoming message data.
So far it's implemented in soss-ros2 and soss-ros1 (the latter in a different repo).

An example config for this feature can be found in osrf/soss-ros1#2


[CONTROLLER/PROMETHEUS] modifies method of checking data activity

This PR is for:

Server

modifies method of checking data activity
Checklist

[ ] Added unit test.

Backport to branches

v6.5
main

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


variations should have language attributes

Can you reproduce this issue on default Wordpress theme (eg Storefront)?
yes
Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?
yes
What product versions and settings are you using when this issue occurs?

PHP: 7.1
WordPress: 4.9.7
WooCommerce: 3.4.4
Polylang: [state if using Polylang PRO] 2.3.8
Hyyan WooCommerce Polylang Integration: 1.2.0
Browser: any

Steps to Reproduce

Export product variations using functions like WC_Product_Query->get_products()

What I Expected
product variations should be included if passed in the args
What Happened Instead
product variations are not included.
This is because product variations do not have a language assigned, but Polylang adds the language filter, so they become excluded.
@hyyan  why are the variations linked by '_point_to_variation' rather than using the native Polylang functions to link up the variations?  - in which case variations would be compatible with the rest of Polylang and need less special handling?

Language can be set on variations by running:
insert into wp_term_relationships (object_id, term_taxonomy_id)
select vp.ID, tt1.term_taxonomy_id
FROM wp_posts p inner join wp_posts vp on p.ID = vp.post_parent
inner join wp_term_relationships AS tr1 ON (p.ID = tr1.object_id)
inner join wp_term_taxonomy tt1 on (tt1.term_taxonomy_id = tr1.term_taxonomy_id)
WHERE vp.post_type = 'product_variation'
and tt1.taxonomy = 'language'
AND NOT EXISTS (
				SELECT 1
				FROM wp_term_relationships tr2
        inner join wp_term_taxonomy tt2 on (tt2.term_taxonomy_id = tr2.term_taxonomy_id)
				WHERE tt2.taxonomy = 'language'
				AND tr2.object_id = vp.ID
			)

vp is the variation post, p is the parent post, joined to the language taxonomy via the term_relationships table.
The NOT EXISTS clause makes this query rerunnable by excluding variations which already have a language set.   [ie, as a hack you could rerun this after adding more variations]
if you want to check your data before running try eg:
how many variations should be assigned to each language
select t.name, t.slug, count(*)
FROM wp_posts p inner join wp_posts vp on p.ID = vp.post_parent
inner join wp_term_relationships AS tr1 ON (p.ID = tr1.object_id)
inner join wp_term_taxonomy tt1 on (tt1.term_taxonomy_id = tr1.term_taxonomy_id)
inner join wp_terms t on tt1.term_id = t.term_id
WHERE vp.post_type = 'product_variation'
and tt1.taxonomy = 'language'
group by t.name, t.slug

how many variations actually are assigned to each language: you could run this before and after to test and confirm effect of insert
select t.name, t.slug, count(*)
FROM wp_posts p inner join wp_posts vp on p.ID = vp.post_parent
inner join wp_term_relationships AS tr1 ON (vp.ID = tr1.object_id)
inner join wp_term_taxonomy tt1 on (tt1.term_taxonomy_id = tr1.term_taxonomy_id)
inner join wp_terms t on tt1.term_id = t.term_id
WHERE vp.post_type = 'product_variation'
and tt1.taxonomy = 'language'
group by t.name, t.slug

The table prefix wp_ would need changing according to the site.
The SQL is fine, more testing needed to see if there is any negative impact from adding the language reference.

Fixed in the code for any future saves of variations,
I'll just leave this open for consideration of automatic running of the language assignment insert on upgrade of the plugin.


NuGetPack alias requires settings

I noticed that the NuGetPack method in the NuGetAliases class requires a NuGetPackSettings. Most other methods provide overloads without a setting. Is there a specific reason for this?

@devlead would you be in a position to comment on this issue? Thanks

It's true, guess initial intent that at least some information like i.e. version would be supplied, we've got an overload that takes just a NuGetPackSettings eliminating all need for a nuspec, which has been the route I've personally taken.
An overload taking only FilePath for nuspec would certainly be possible, but would also make same package each time unless you preprocess nuspec before, but that's kinda counterintuitive as that's what supplying settings does in a typed way.

I'm going to go ahead an close this due inactivity, if it's still an issue please reopen.


one to many addon.MagicOrm mapping

The idea would be if you had an orm class Foo then you could call Foo.bars and get all the Bar instances that contain the value in Foo.pk.
There are three variable name so look for:

ies -> y, so something like cities should be reduced to city
es -> ""
s -> "", so foos should be reduced to foo

The tough part is figuring out how to find the orm class, you can take the current module of the orm who called the property and work backwards, looking at each parent module and finding all the orm classes in that module and submodules of that module, this runs on the assumption that people group up their orm modules like we've always done (we always have a models module that contains all the orms) or something else? Not sure what.

You could do this using Orm.orm_classes and checking each orm_class.models_name

I actually did this sometime in the last few weeks in https://github.com/Jaymon/prom/commit/71dd2a0b5a945afe2601ac55158aca14ef716c86


So i merged your Armor Stands Fix

So i merged your armor stands fix to attempt to get MiniaturePets working but of course there are still some issues. What i can say is that for the most part its working just need to figure out what to do to get the proper models to load.

Player heads are going to be their own issue - they don't exist in Bedrock.

Closing as armor stand fixes are now merged.


unclear error during testing

Hi there,
Thank you for your great work.
I am using Pointcept to train and test different models on my own point cloud dataset. I have trained models using SparseUNet and PTv2. But both have issues when testing—the models tend to predict all the points to label 0. I am not clear what happend and hence asking for you help. I will provide the configs and logs below. Thank you!
Best

Train
[2023-12-17 17:55:05,524 INFO train.py line 123 9439] => Loading config ...
[2023-12-17 17:55:05,525 INFO train.py line 125 9439] Save path: exp/seg2tunnel/semseg-spunet-v1m1-0-base
[2023-12-17 17:55:05,664 INFO train.py line 126 9439] Config:
weight = None
resume = False
evaluate = True
test_only = False
seed = 5476867
save_path = 'exp/seg2tunnel/semseg-spunet-v1m1-0-base'
num_worker = 32
batch_size = 4
batch_size_val = None
batch_size_test = None
epoch = 12000
eval_epoch = 100
sync_bn = False
enable_amp = True
empty_cache = False
find_unused_parameters = False
mix_prob = 0.8
param_dicts = None
hooks = [
dict(type='CheckpointLoader'),
dict(type='IterationTimer', warmup_iter=2),
dict(type='InformationWriter'),
dict(type='SemSegEvaluator'),
dict(type='CheckpointSaver', save_freq=None),
dict(type='PreciseEvaluator', test_last=False)
]
test = dict(type='SemSegTester')
model = dict(
type='DefaultSegmentor',
backbone=dict(
type='SpUNet-v1m1',
in_channels=6,
num_classes=7,
channels=(32, 64, 128, 256, 256, 128, 96, 96),
layers=(2, 3, 4, 6, 2, 2, 2, 2)),
criteria=[dict(type='CrossEntropyLoss', loss_weight=1.0, ignore_index=-1)])
optimizer = dict(
type='SGD', lr=0.1, momentum=0.9, weight_decay=0.0001, nesterov=True)
scheduler = dict(type='PolyLR')
dataset_type = 'Seg2TunnelDataset'
data_root = '../Seg2Tunnel/seg2tunnel_pointcept_0.04'
data = dict(
num_classes=7,
ignore_index=-1,
names=['clutter', 's1', 's2', 's3', 's4', 's5', 's6'],
train=dict(
type='Seg2TunnelDataset',
split='training_set',
data_root='../Seg2Tunnel/seg2tunnel_pointcept_0.04',
transform=[
dict(
type='RandomRotate',
angle=[-1, 1],
axis='z',
center=[0, 0, 0],
p=0.5),
dict(
type='GridSample',
grid_size=0.01,
hash_type='fnv',
mode='train',
keys=('coord', 'color', 'segment'),
return_discrete_coord=True),
dict(type='SphereCrop', point_max=204800, mode='random'),
dict(type='NormalizeColor'),
dict(type='ShufflePoint'),
dict(type='ToTensor'),
dict(
type='Collect',
keys=('coord', 'discrete_coord', 'segment'),
feat_keys=['coord', 'color'])
],
test_mode=False,
loop=120),
val=dict(
type='Seg2TunnelDataset',
split='validation_set',
data_root='../Seg2Tunnel/seg2tunnel_pointcept_0.04',
transform=[
dict(
type='GridSample',
grid_size=0.01,
hash_type='fnv',
mode='train',
keys=('coord', 'color', 'segment'),
return_discrete_coord=True),
dict(type='NormalizeColor'),
dict(type='ToTensor'),
dict(
type='Collect',
keys=('coord', 'discrete_coord', 'segment'),
feat_keys=['coord', 'color'])
],
test_mode=False,
loop=100),
test=dict(
type='Seg2TunnelDataset',
split='validation_set',
data_root='../Seg2Tunnel/seg2tunnel_pointcept_0.04',
transform=[dict(type='NormalizeColor')],
test_mode=True,
test_cfg=dict(
voxelize=dict(
type='GridSample',
grid_size=0.01,
hash_type='fnv',
mode='test',
keys=('coord', 'color'),
return_discrete_coord=True),
crop=None,
post_transform=[
dict(type='ToTensor'),
dict(
type='Collect',
keys=('coord', 'discrete_coord', 'index'),
feat_keys=('coord', 'color'))
],
aug_transform=[])))
num_worker_per_gpu = 32
batch_size_per_gpu = 4
batch_size_val_per_gpu = 1
batch_size_test_per_gpu = 1
[2023-12-17 17:55:05,665 INFO train.py line 127 9439] => Building model ...
[2023-12-17 17:55:06,277 INFO train.py line 204 9439] Num params: 39156583
[2023-12-17 17:55:06,665 INFO train.py line 129 9439] => Building writer ...
[2023-12-17 17:55:06,672 INFO train.py line 214 9439] Tensorboard writer logging dir: exp/seg2tunnel/semseg-spunet-v1m1-0-base
[2023-12-17 17:55:06,672 INFO train.py line 131 9439] => Building train dataset & dataloader ...
[2023-12-17 17:55:06,673 INFO seg2tunnel.py line 48 9439] Totally 25 x 120 samples in training_set set.
[2023-12-17 17:55:06,673 INFO train.py line 133 9439] => Building val dataset & dataloader ...
[2023-12-17 17:55:06,674 INFO seg2tunnel.py line 48 9439] Totally 6 x 100 samples in validation_set set.
[2023-12-17 17:55:06,674 INFO train.py line 135 9439] => Building optimize, scheduler, scaler(amp) ...
[2023-12-17 17:55:06,675 INFO train.py line 139 9439] => Building hooks ...
[2023-12-17 17:55:06,675 INFO misc.py line 214 9439] => Loading checkpoint & weight ...
[2023-12-17 17:55:06,676 INFO misc.py line 247 9439] No weight found at: None
[2023-12-17 17:55:06,676 INFO train.py line 146 9439] >>>>>>>>>>>>>>>> Start Training >>>>>>>>>>>>>>>>
[2023-12-17 17:55:58,493 INFO misc.py line 120 9439] Train: [1/100][1/750] Data 4.229 (4.229) Batch 51.097 (51.097) Remain 1064:30:42 loss: 1.9507 Lr: 0.10000
[2023-12-17 17:55:59,053 INFO misc.py line 120 9439] Train: [1/100][2/750] Data 0.009 (0.009) Batch 0.559 (0.559) Remain 11:38:59 loss: 1.8681 Lr: 0.10000
[2023-12-17 17:55:59,577 INFO misc.py line 120 9439] Train: [1/100][3/750] Data 0.002 (0.002) Batch 0.525 (0.525) Remain 10:56:46 loss: 1.6642 Lr: 0.10000
[2023-12-17 17:56:00,062 INFO misc.py line 120 9439] Train: [1/100][4/750] Data 0.001 (0.001) Batch 0.484 (0.484) Remain 10:05:16 loss: 1.8276 Lr: 0.10000
[2023-12-17 17:56:00,543 INFO misc.py line 120 9439] Train: [1/100][5/750] Data 0.002 (0.002) Batch 0.481 (0.483) Remain 10:03:20 loss: 1.6885 Lr: 0.09999
[2023-12-17 17:56:01,038 INFO misc.py line 120 9439] Train: [1/100][6/750] Data 0.001 (0.002) Batch 0.495 (0.487) Remain 10:08:25 loss: 1.5444 Lr: 0.09999
[2023-12-17 17:56:01,522 INFO misc.py line 120 9439] Train: [1/100][7/750] Data 0.001 (0.001) Batch 0.484 (0.486) Remain 10:07:29 loss: 1.4567 Lr: 0.09999
[2023-12-17 17:56:02,015 INFO misc.py line 120 9439] Train: [1/100][8/750] Data 0.001 (0.001) Batch 0.494 (0.488) Remain 10:09:22 loss: 1.4999 Lr: 0.09999
[2023-12-17 17:56:02,477 INFO misc.py line 120 9439] Train: [1/100][9/750] Data 0.001 (0.001) Batch 0.461 (0.483) Remain 10:03:53 loss: 1.4749 Lr: 0.09999
Best model
[2023-12-18 03:23:10,072 INFO evaluator.py line 159 9439] Test: [591/600] Loss 0.1581
[2023-12-18 03:23:10,402 INFO evaluator.py line 159 9439] Test: [592/600] Loss 0.3383
[2023-12-18 03:23:10,672 INFO evaluator.py line 159 9439] Test: [593/600] Loss 0.3706
[2023-12-18 03:23:11,041 INFO evaluator.py line 159 9439] Test: [594/600] Loss 0.3570
[2023-12-18 03:23:11,416 INFO evaluator.py line 159 9439] Test: [595/600] Loss 0.1212
[2023-12-18 03:23:11,782 INFO evaluator.py line 159 9439] Test: [596/600] Loss 0.1459
[2023-12-18 03:23:12,137 INFO evaluator.py line 159 9439] Test: [597/600] Loss 0.1581
[2023-12-18 03:23:12,468 INFO evaluator.py line 159 9439] Test: [598/600] Loss 0.3384
[2023-12-18 03:23:12,739 INFO evaluator.py line 159 9439] Test: [599/600] Loss 0.3664
[2023-12-18 03:23:13,108 INFO evaluator.py line 159 9439] Test: [600/600] Loss 0.3571
[2023-12-18 03:23:13,178 INFO evaluator.py line 174 9439] Val result: mIoU/mAcc/allAcc 0.8722/0.9296/0.9470.
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_0-clutter Result: iou/accuracy 0.9187/0.9537
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_1-s1 Result: iou/accuracy 0.8787/0.9398
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_2-s2 Result: iou/accuracy 0.9018/0.9548
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_3-s3 Result: iou/accuracy 0.8880/0.9502
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_4-s4 Result: iou/accuracy 0.7298/0.8177
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_5-s5 Result: iou/accuracy 0.8788/0.9385
[2023-12-18 03:23:13,178 INFO evaluator.py line 180 9439] Class_6-s6 Result: iou/accuracy 0.9095/0.9524
[2023-12-18 03:23:13,179 INFO evaluator.py line 194 9439] <<<<<<<<<<<<<<<<< End Evaluation <<<<<<<<<<<<<<<<<
[2023-12-18 03:23:13,179 INFO misc.py line 161 9439] Best validation mIoU updated to: 0.8722
[2023-12-18 03:23:13,180 INFO misc.py line 166 9439] Currently Best mIoU: 0.8722
[2023-12-18 03:23:13,180 INFO misc.py line 175 9439] Saving checkpoint to: exp/seg2tunnel/semseg-spunet-v1m1-0-base/model/model_last.pth
[2023-12-18 03:23:18,177 INFO misc.py line 120 9439] Train: [61/100][1/750] Data 3.318 (3.318) Batch 3.931 (3.931) Remain 32:45:39 loss: 0.0165 Lr: 0.04386
[2023-12-18 03:23:19,786 INFO misc.py line 120 9439] Train: [61/100][2/750] Data 1.102 (1.102) Batch 1.609 (1.609) Remain 13:24:23 loss: 0.0389 Lr: 0.04385
[2023-12-18 03:23:20,376 INFO misc.py line 120 9439] Train: [61/100][3/750] Data 0.003 (0.003) Batch 0.589 (0.589) Remain 04:54:40 loss: 0.0174 Lr: 0.04385
[2023-12-18 03:23:20,852 INFO misc.py line 120 9439] Train: [61/100][4/750] Data 0.003 (0.003) Batch 0.477 (0.477) Remain 03:58:25 loss: 0.0162 Lr: 0.04385
Test
[2023-12-18 09:43:39,879 INFO evaluator.py line 159 354912] Test: [598/600] Loss 0.3532
[2023-12-18 09:43:40,149 INFO evaluator.py line 159 354912] Test: [599/600] Loss 0.4481
[2023-12-18 09:43:40,517 INFO evaluator.py line 159 354912] Test: [600/600] Loss 0.4053
[2023-12-18 09:43:40,573 INFO evaluator.py line 174 354912] Val result: mIoU/mAcc/allAcc 0.8681/0.9261/0.9450.
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_0-clutter Result: iou/accuracy 0.9181/0.9535
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_1-s1 Result: iou/accuracy 0.8804/0.9316
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_2-s2 Result: iou/accuracy 0.8940/0.9508
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_3-s3 Result: iou/accuracy 0.8810/0.9507
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_4-s4 Result: iou/accuracy 0.7267/0.8106
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_5-s5 Result: iou/accuracy 0.8696/0.9372
[2023-12-18 09:43:40,573 INFO evaluator.py line 180 354912] Class_6-s6 Result: iou/accuracy 0.9067/0.9485
[2023-12-18 09:43:40,574 INFO evaluator.py line 194 354912] <<<<<<<<<<<<<<<<< End Evaluation <<<<<<<<<<<<<<<<<
[2023-12-18 09:43:40,574 INFO misc.py line 166 354912] Currently Best mIoU: 0.8722
[2023-12-18 09:43:40,574 INFO misc.py line 175 354912] Saving checkpoint to: exp/seg2tunnel/semseg-spunet-v1m1-0-base/model/model_last.pth
[2023-12-18 09:43:40,944 INFO evaluator.py line 199 354912] Best mIoU: 0.8722
[2023-12-18 09:43:40,944 INFO misc.py line 256 354912] >>>>>>>>>>>>>>>> Start Precise Evaluation >>>>>>>>>>>>>>>>
[2023-12-18 09:43:40,967 INFO misc.py line 262 354912] => Building test dataset & dataloader ...
[2023-12-18 09:43:40,969 INFO seg2tunnel.py line 48 354912] Totally 6 x 1 samples in validation_set set.
[2023-12-18 09:43:40,969 INFO misc.py line 283 354912] => Testing on model_best ...
[2023-12-18 09:43:42,096 INFO test.py line 39 354912] >>>>>>>>>>>>>>>> Start Evaluation >>>>>>>>>>>>>>>>
[2023-12-18 09:43:42,322 INFO test.py line 138 354912] Test: 2-2 [1/6]-445813 Batch 0.035 (0.035) Accuracy 0.3891 (0.1429) mIoU 0.0556 (0.0556)
[2023-12-18 09:43:42,455 INFO test.py line 138 354912] Test: 1-15 [2/6]-454369 Batch 0.019 (0.027) Accuracy 0.3886 (0.1429) mIoU 0.0555 (0.0556)
[2023-12-18 09:43:42,612 INFO test.py line 138 354912] Test: 2-14 [3/6]-426496 Batch 0.033 (0.029) Accuracy 0.4494 (0.1429) mIoU 0.0642 (0.0583)
[2023-12-18 09:43:42,738 INFO test.py line 138 354912] Test: 1-12 [4/6]-418837 Batch 0.017 (0.026) Accuracy 0.3837 (0.1429) mIoU 0.0548 (0.0575)
[2023-12-18 09:43:42,860 INFO test.py line 138 354912] Test: 2-10 [5/6]-342153 Batch 0.024 (0.026) Accuracy 0.4845 (0.1429) mIoU 0.0692 (0.0594)
[2023-12-18 09:43:42,995 INFO test.py line 138 354912] Test: 1-4 [6/6]-430467 Batch 0.017 (0.024) Accuracy 0.3837 (0.1429) mIoU 0.0548 (0.0586)
[2023-12-18 09:43:43,012 INFO test.py line 194 354912] Syncing ...
[2023-12-18 09:43:43,013 INFO test.py line 213 354912] Val result: mIoU/mAcc/allAcc 0.0586/0.1429/0.4104
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_0 - clutter Result: iou/accuracy 0.4104/1.0000
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_1 - s1 Result: iou/accuracy 0.0000/0.0000
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_2 - s2 Result: iou/accuracy 0.0000/0.0000
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_3 - s3 Result: iou/accuracy 0.0000/0.0000
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_4 - s4 Result: iou/accuracy 0.0000/0.0000
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_5 - s5 Result: iou/accuracy 0.0000/0.0000
[2023-12-18 09:43:43,013 INFO test.py line 219 354912] Class_6 - s6 Result: iou/accuracy 0.0000/0.0000
[2023-12-18 09:43:43,013 INFO test.py line 227 354912] <<<<<<<<<<<<<<<<< End Evaluation <<<<<<<<<<<<<<<<<

Here is another example using PTv2 and augment transformation during testing. The results improves a little bit but there is still huge discrepancy from validating. FYI, I using the same dataset split for validating and testing.
train.log
test-model_best.log

Hi, README here might be helpful to your issue: https://github.com/Pointcept/Pointcept?tab=readme-ov-file#testing ("The TTA can be disabled by replace ..."). To disable TTA during testing, you can pad an Identity transform as follows:
aug_transform = [
                [dict(type="RandomRotateTargetAngle", angle=[0], axis="z", center=[0, 0, 0], p=1)]
            ]

(I notice your aug_transform is an empty list)

Here is another example using PTv2 and augment transformation during testing. The results improves a little bit but there is still huge discrepancy from validating. FYI, I using the same dataset split for validating and testing. train.log test-model_best.log

Hi Xiaoyang,
Thank you for your prompt reply!
I have also tried using TTA. Please see the quoted reply. Huge discrepancy can also be observed between validation and test. So I think TTA is not the main reason for that?
And I just tried your suggestion, replacing the aug_transform. The results are still the same—all the points are predicted as label 0.
Please see the attachments:
test-model_best .log

I noticed that "1/6: 2-2, loaded pred and label.", and may I confirm that did you conduct multiple experiments in one exp folder? (you need to manually empty the cached prediction before multiple test in one experiment folder) If not, I will try to diagnose the issue further.

I emptied the prediction results and it works! Thank you for your help! Wish you all the best!


Magic Completion for impl Trait for Associated Items

Summary
This PR adds a set of magic completions to auto complete associated trait items (functions/consts/types).

Notes
Since the assist and completion share the same logic when figuring out the associated items that are missing, a shared utility was created in the ra_assists::utils module.
Resolves #1046
As this is my first PR to the rust-analyzer project, I'm new to the codebase, feedback welcomed!

This an amazing addition, thanks so much for working on it!

This looks good to me!
I think the test fail primaraly due to rustfmt? You can run cargo xtask format to format things, or cargo xtask install pre-commit-hook to install the hook.
I think there's a bunch of things we can further tweak here, but it's also good to land as is.

I think the test fail primaraly due to rustfmt? You can run cargo xtask format to format things, or cargo xtask install pre-commit-hook to install the hook.

Ah, there was formatting issues. I was sure I had the pre-commit-hook on my environment; I'll have to check that when I get home.

I think there's a bunch of things we can further tweak here, but it's also good to land as is.

I'm happy to further refine this if you had thoughts. I can also refine it in a separate PR if your intention was to accept this as is.

Whoops, spoke too soon, test still failed. Let me try removing the doc comments as it seems to be bringing up docs::no_docs_comments.

Oh, @matklad, maybe the CI is complaining about needing module level documentation? That would make sense 🤔

I'd lean towards checking this in this specific completion, and not in the
general completion context. But it doesn't matter that much, moving between
the two should be easy.
On Tue, 11 Feb 2020 at 17:15, Kevin DeLorey<EMAIL_ADDRESS>wrote:

@kdelorey commented on this pull request.
In crates/ra_ide/src/completion/complete_trait_impl.rs
https://github.com/rust-analyzer/rust-analyzer/pull/3108#discussion_r377739345
:

+/// ignore +/// trait SomeTrait { +///     const SOME_CONST: u16; +/// } +/// +/// impl SomeTrait for () { +///     const <|> +/// } +///
+pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) {

// it is possible to have a parent fn and impl block. Ignore completion
// attempts from within a fn block.
if ctx.function_syntax.is_some() {

   return;

}

Ah, makes sense. Would there any need for the CompletionContext to
provide the impl_block as this behavior seems pretty specific to this
completion type?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-analyzer/rust-analyzer/pull/3108?email_source=notifications&email_token=AANB3M6BFIUQ2FOOABROTXDRCLFILA5CNFSM4KTAQCCKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCVCDPMA#discussion_r377739345,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANB3M7GX6LTCFMMTEJ4SUTRCLFILANCNFSM4KTAQCCA
.

I agree, when I get home from my day job I'll work on that change. Thanks for taking a look.

@matklad one thing I've discovered while working on the suggested change was the CONST_DEF syntax node is made a little differently than its counterparts (fn/type). Consder the following:
impl SomeTrait for () {
   fn<|>
}

will produce something like the following syntax tree:
ITEM_LIST@[85; 95)
  L_CURLY@[85; 86) "{"
  WHITESPACE@[86; 91) "\n    "
  FN_DEF@[91; 93)  <-- incomplete `fn` syntrax makes `FN_DEF`
    FN_KW@[91; 93) "fn"
  WHITESPACE@[93; 94) "\n"
  R_CURLY@[94; 95) "}"

But with a const it does something a little different:
impl SomeTrait for () {
   const<|>
}

will produce something like the following
ITEM_LIST@[85; 98)
  L_CURLY@[85; 86) "{"
  WHITESPACE@[86; 91) "\n    "
  ERROR@[91; 96)   <-- Expected `CONST_DEF`
    CONST_KW@[91; 96) "const"
  WHITESPACE@[96; 97) "\n"
  R_CURLY@[97; 98) "}"

It won't generate a CONST_DEF node until a user starts typing a IDENT. Anyways, with my limited experince, I wasn't sure if I stumbled upon a bug or something intentional? It currently makes the handling of the const case a little different than fn and type associated items.

Anyways, with my limited experince, I wasn't sure if I stumbled upon a bug or something intentional

That's semi-intentional, in that const is not necessary a const FOO, it could be a const fn as well, so we can't relibely decide, by just seening a const, what's the end result would be.

bors r+
Thanks!

Opened a sequel in https://github.com/rust-analyzer/rust-analyzer/issues/3183

@matklad, thanks for working with me on this. It was pretty rewarding to open reddit this morning and see a gif of my contribution 🎉


85 add testcases to server gamecontroller

finally done :)
100% code coverage for game controller and minor bug fixes / other tests

Check failed because of a bug in a different test:
GameServiceTest > getNRandomBlackCards() FAILED
java.lang.NullPointerException: Cannot invoke "org.springframework.data.domain.Page.getTotalElements()" because "somePage" is null
at ch.uzh.ifi.hase.soprafs22.service.GameService.getNRandomBlackCards(GameService.java:63)
at ch.uzh.ifi.hase.soprafs22.service.GameServiceTest.getNRandomBlackCards(GameServiceTest.java:79)

So i will merge mine in the dev and den merge the dev again in yours?
If  i solved the issue, there will be no longer a problem?

So i will merge mine in the dev and den merge the dev again in yours? If i solved the issue, there will be no longer a problem?

I as the error is in a file I have not atered but you have and I checked your code, the test causing the fail of the build does no longer exist in the code, I assume it will be fine as all my tests run properly on my local machine, and also online only one test failed..


Updated instructions for Swift 2.0 and iOS 9.0?

Hello,
Great product! It would be fantastic if you could update the installation instructions and the demo files (inside ApiAIDemoSwift) for Swift 2.0 and iOS 9.0. Namely, here are a few things which I noticed:

It's never mentioned that we should import AVFoundation in order for these two lines to work:

    AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayAndRecord, error: nil)
    AVAudioSession.sharedInstance().setActive(true, error: nil)

Also in the current version of swift, the two methods above give errors because the parameters are no longer valid.
In the other instructions, it is only specified to put the code in AppDelegate.swift, but where in AppDelegate.swift?

let request = self.apiai.requestWithType(AIRequestType.Text) as AITextRequest

In the instruction above, requestWithType() is deprecated. What is the new method?
The Podfile is with old syntax and assumes iOS 7.0
Perhaps you should mention that we have to rename the Bundle Identifier in order to avoid errors with code signing.
Finally, an import ApiAI statement is required in many of the classes, as well as an import statement for MBProgressHUD

Thanks! :)

+1 for me


Ruby 3.2 incompatibility due to removal of File.exists? alias

Closes #125

Thanks!

Any chance you can cut a new gem version with the fix?

Done!


WIP: redux integration

@irisli

I'm going to leave this umerged and will merge it once I get back to working on the laboratory


i can update readme file.

Hello @hirentimbadiya, I hope u are doing great.
Hey i can update the README file for you.
Please assign me the work and give me the labels for hacktobeer fest.

What changes you will make, can you brief about that.

You can assign me and provide me the logo, i will try my best to give you best output.


Fix shell_open not returning errors on Windows

Fixes https://github.com/godotengine/godot/issues/52794
Followed ShellExecuteW docs and tried to match most error codes.

Any reason for not checking the other errors?

Any reason for not checking the other errors?

Mostly not understanding what those situations are in detail and/or Godot not having a good error code to match it.
SE_ERR_FNF/SE_ERR_PNF are the same error codes as ERROR_FILE_NOT_FOUND/ERROR_PATH_NOT_FOUND, so they're implicitly matched too.

SE_ERR_FNF/SE_ERR_PNF are the same error codes as ERROR_FILE_NOT_FOUND/ERROR_PATH_NOT_FOUND, so they're implicitly matched too.

That's a bit risky if we ever change our error codes, might be better to match explicit with a switch.

Yeah, code should not depend on error enum members having a specific value, those will change.
Otherwise this looks good to me, I'm fine with not mapping every value for now, returning a general error for some cases is fine and this is still a big improvement. I'll make a note to maybe have a look and add more when my error overhaul is far enough along.

ERROR_FILE_NOT_FOUND/ERROR_PATH_NOT_FOUND is from Windows API, not from Godot :sweat_smile:

Also originally I added both like so:
switch (ret) {
	case ERROR_FILE_NOT_FOUND:
	case SE_ERR_DLLNOTFOUND:
	case SE_ERR_FNF:
		return ERR_FILE_NOT_FOUND;
	case ERROR_PATH_NOT_FOUND:
	case SE_ERR_PNF:
		return ERR_FILE_BAD_PATH;
	....

But because they have the same error codes the compiler fails with duplicated case statements.

Ah, yeah thats fine then, no way to avoid that. We could add a debug assert to ensure those are identical, but they're probably unlikely to change.

Thanks!

Cherry-picked for 3.4.


Unable to disable default key mappings

Description
In Telescope, I have some default key mappings for all pickers, including:

<C-y> = Scroll results window up
<C-e> = Scroll results window down

Therefore, I would like to disable telescope-undo's default key mapping of <C-y> and use the one that I have setup in Telescope's default mappings option. I have tried the following configurations, but none of them work.
-- ERROR
opts = {
  extensions = {
    undo = {
      mappings = {
        i = {
          ["<C-y>"] = false,
        },
      },
    },
  },
}

-- ERROR
opts = {
  extensions = {
    undo = {
      mappings = {
        i = {
          ["<C-y>"] = "results_scrolling_up",
        },
      },
    },
  },
}

-- No error, but still doesn't work
opts = function(_, opts)
  opts.extensions = opts.extensions or {}
  opts.extensions.undo = {
    mappings = {
      i = {
        ["<C-y>"] = require("telescope.actions").results_scrolling_up,
      },
    },
  }
  return opts
end

NOTE: The above examples show partial configurations for Telescope using the Lazy plugin manager.
Is it possible to disable the default key mappings, and, if so, how?
Minimal Config
vim.g.mapleader = " "
vim.g.maplocalleader = " "

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  {
    "nvim-telescope/telescope.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "debugloop/telescope-undo.nvim",
    },
    cmd = "Telescope",
    keys = {
      { "<Leader>u", "<Cmd>Telescope undo<CR>" },
    },
    opts = {
      extensions = {
        undo = {
          mappings = {
            i = {
              ["<C-y>"] = false,
            },
          },
        },
      },
    },
    config = function(_, opts)
      require("telescope").setup(opts)
      require("telescope").load_extension("undo")
    end,
  },
})

I can't test this myself right now, as I'm on vacation and only have my phone available. However, have you tried setting it to nil? Since you've already excellently outlined your issue, it might be sufficient to point you to the places where the configs are merged: https://github.com/debugloop/telescope-undo.nvim/blob/main/lua/telescope/_extensions/undo.lua#L36-L49
If that logic is faulty somehow, it should be in there. But at a glance I'd assume nil wshould work. I'll come around in two weeks time and get my hands on nvim again otherwise, sorry :)

Unfortunately, nil would not work because setting a table value to nil in Lua is the same as deleting the value from the table. It's not a huge deal for me to use different keymaps than those I'd prefer for a period of time, so I'm not in any rush to get this fixed, but since you pointed me to the relevant section of the code, I'll see if I can get something working on my own and will submit a PR if so.
Don't feel like you have to review it right away or anything. Enjoy your vacation!

Ah, I see, thanks for going the extra mile here 🤟🏻
No problem doing that at the moment, I'm stuck on a ferry all day anyway, and reading some code is a nice past time in that case 👍🏻


[Testerina] Function mocking thenReturn isnt compatible with () nil return value

Description:
Having thenReturn(()) does not return a nil value but rather causes the inbuilt validation to fail as it considers this as "return value not being set".
Same applies to doNothing() function which is supposed to skip execution entirely.
Steps to reproduce:
Affected Versions:
beta2
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Identified the issue in function mocking but in object mocking this issue seems to be not there.
In function mocking,
@test:Mock { functionName: "f1"} // function f1() returns int? { return 2; }
test:MockFunction mockFn1 = new();

@test:Mock { functionName: "f2"} // function f2() returns int? { return 3; }
test:MockFunction mockFn2 = new();

@test:Config {}
function testFunctionMock() {
    test:when(mockFn1).thenReturn(());
    test:assertEquals(f1(), ());
}

@test:Config {}
function testFunctionMock2() {
    test:when(mockFn2).doNothing();
    test:assertEquals(f2(), ());
}

produced the output
[fail] testFunctionMock:

                    no return value or action registered for function

                        at ballerina.test.0:mockHandler(mock.bal:383)
                        gayaldassanayake.thenreturn$test.0.tests.test:testFunctionMock(tests/test.bal:37)

                [fail] testFunctionMock2:

                    no return value or action registered for function

                        at ballerina.test.0:mockHandler(mock.bal:383)
                        gayaldassanayake.thenreturn$test.0.tests.test:testFunctionMock2(tests/test.bal:43)