[DETECTION] no encoding found.

Notice
I hereby announce that my raw input is not :

Too small content (<=32 characters) as I do know that ANY charset detector heavily depends on content
Encoded in a deprecated/abandoned encoding that is not even supported by my interpreter

Provide the file
https://www.mediafire.com/file/65rdejsj3ltya7m/test.zip/file
Verbose output
Using the CLI, run normalizer -v ./my-file.txt and past the result in here.
normalizer.exe -v test.cue
2023-10-01 23:06:05,727 | Level 5 | Code page ascii does not fit given bytes sequence at ALL. 'ascii' codec can't decode byte 0xc1 in position 82: ordinal not in range(128)
2023-10-01 23:06:05,727 | Level 5 | Code page utf_8 does not fit given bytes sequence at ALL. 'utf-8' codec can't decode byte 0xc1 in position 82: invalid start byte
2023-10-01 23:06:05,730 | Level 5 | Code page big5 does not fit given bytes sequence at ALL. 'big5' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,731 | Level 5 | Code page big5hkscs does not fit given bytes sequence at ALL. 'big5hkscs' codec can't decode byte 0xe9 in position 129: illegal multibyte sequence
2023-10-01 23:06:05,733 | Level 5 | cp037 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 502.050000 %.
2023-10-01 23:06:05,735 | Level 5 | cp1006 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 52.350000 %.
2023-10-01 23:06:05,736 | Level 5 | cp1026 is deemed too similar to code page cp037 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,737 | Level 5 | cp1125 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 78.900000 %.
2023-10-01 23:06:05,740 | Level 5 | cp1140 is deemed too similar to code page cp037 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,741 | Level 5 | Code page cp1250 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x98 in position 88: character maps to <undefined>
2023-10-01 23:06:05,744 | Level 5 | Code page cp1251 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x98 in position 88: character maps to <undefined>
2023-10-01 23:06:05,745 | Level 5 | Code page cp1252 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x8d in position 224: character maps to <undefined>
2023-10-01 23:06:05,746 | Level 5 | Code page cp1253 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x98 in position 88: character maps to <undefined>
2023-10-01 23:06:05,747 | Level 5 | Code page cp1254 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x8d in position 224: character maps to <undefined>
2023-10-01 23:06:05,748 | Level 5 | Code page cp1255 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x9c in position 130: character maps to <undefined>
2023-10-01 23:06:05,751 | Level 5 | cp1256 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 51.750000 %.
2023-10-01 23:06:05,752 | Level 5 | Code page cp1257 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x98 in position 88: character maps to <undefined>
2023-10-01 23:06:05,753 | Level 5 | Code page cp1258 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x8d in position 224: character maps to <undefined>
2023-10-01 23:06:05,753 | Level 5 | cp273 is deemed too similar to code page cp037 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,754 | Level 5 | Code page cp424 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x75 in position 55: character maps to <undefined>
2023-10-01 23:06:05,756 | Level 5 | cp437 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 86.450000 %.
2023-10-01 23:06:05,757 | Level 5 | cp500 is deemed too similar to code page cp037 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,759 | Level 5 | cp720 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 78.000000 %.
2023-10-01 23:06:05,764 | Level 5 | cp737 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 78.750000 %.
2023-10-01 23:06:05,765 | Level 5 | cp775 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 73.200000 %.
2023-10-01 23:06:05,766 | Level 5 | cp850 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,768 | Level 5 | cp852 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 62.600000 %.
2023-10-01 23:06:05,769 | Level 5 | cp855 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 67.500000 %.
2023-10-01 23:06:05,770 | Level 5 | Code page cp856 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xa8 in position 85: character maps to <undefined>
2023-10-01 23:06:05,773 | Level 5 | Code page cp857 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xf2 in position 413: character maps to <undefined>
2023-10-01 23:06:05,774 | Level 5 | cp858 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,775 | Level 5 | cp860 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,777 | Level 5 | cp861 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,778 | Level 5 | cp862 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,779 | Level 5 | cp863 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,780 | Level 5 | Code page cp864 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x9c in position 130: character maps to <undefined>
2023-10-01 23:06:05,781 | Level 5 | cp865 is deemed too similar to code page cp437 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,783 | Level 5 | cp866 is deemed too similar to code page cp1125 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,784 | Level 5 | Code page cp869 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x85 in position 1730: character maps to <undefined>
2023-10-01 23:06:05,786 | Level 5 | Code page cp874 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x98 in position 88: character maps to <undefined>
2023-10-01 23:06:05,787 | Level 5 | cp875 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 349.800000 %.
2023-10-01 23:06:05,788 | Level 5 | Code page cp932 does not fit given bytes sequence at ALL. 'cp932' codec can't decode byte 0xea in position 121: illegal multibyte sequence
2023-10-01 23:06:05,790 | Level 5 | Code page cp949 does not fit given bytes sequence at ALL. 'cp949' codec can't decode byte 0xe9 in position 129: illegal multibyte sequence
2023-10-01 23:06:05,791 | Level 5 | Code page cp950 does not fit given bytes sequence at ALL. 'cp950' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,794 | Level 5 | Code page euc_jis_2004 does not fit given bytes sequence at ALL. 'euc_jis_2004' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,795 | Level 5 | Code page euc_jisx0213 does not fit given bytes sequence at ALL. 'euc_jisx0213' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,797 | Level 5 | Code page euc_jp does not fit given bytes sequence at ALL. 'euc_jp' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,798 | Level 5 | Code page euc_kr does not fit given bytes sequence at ALL. 'euc_kr' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,799 | Level 5 | Code page gb18030 does not fit given bytes sequence at ALL. 'gb18030' codec can't decode byte 0xa5 in position 176: illegal multibyte sequence
2023-10-01 23:06:05,800 | Level 5 | Code page gb2312 does not fit given bytes sequence at ALL. 'gb2312' codec can't decode byte 0x98 in position 88: illegal multibyte sequence
2023-10-01 23:06:05,800 | Level 5 | Code page gbk does not fit given bytes sequence at ALL. 'gbk' codec can't decode byte 0xa5 in position 176: illegal multibyte sequence
2023-10-01 23:06:05,802 | Level 5 | hp_roman8 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 56.400000 %.
2023-10-01 23:06:05,804 | Level 5 | Code page hz does not fit given bytes sequence at ALL. 'hz' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,805 | Level 5 | Code page iso2022_jp does not fit given bytes sequence at ALL. 'iso2022_jp' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,806 | Level 5 | Code page iso2022_jp_1 does not fit given bytes sequence at ALL. 'iso2022_jp_1' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,807 | Level 5 | Code page iso2022_jp_2 does not fit given bytes sequence at ALL. 'iso2022_jp_2' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,808 | Level 5 | Code page iso2022_jp_2004 does not fit given bytes sequence at ALL. 'iso2022_jp_2004' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,809 | Level 5 | Code page iso2022_jp_3 does not fit given bytes sequence at ALL. 'iso2022_jp_3' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,810 | Level 5 | Code page iso2022_jp_ext does not fit given bytes sequence at ALL. 'iso2022_jp_ext' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,811 | Level 5 | Code page iso2022_kr does not fit given bytes sequence at ALL. 'iso2022_kr' codec can't decode byte 0xc1 in position 82: illegal multibyte sequence
2023-10-01 23:06:05,815 | Level 5 | iso8859_10 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 57.600000 %.
2023-10-01 23:06:05,815 | Level 5 | Code page iso8859_11 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xdc in position 142: character maps to <undefined>
2023-10-01 23:06:05,817 | Level 5 | iso8859_13 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 49.750000 %.
2023-10-01 23:06:05,818 | Level 5 | iso8859_14 is deemed too similar to code page iso8859_10 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,819 | Level 5 | iso8859_15 is deemed too similar to code page iso8859_10 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,820 | Level 5 | iso8859_16 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 40.450000 %.
2023-10-01 23:06:05,821 | Level 5 | iso8859_2 is deemed too similar to code page iso8859_16 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,822 | Level 5 | Code page iso8859_3 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xa5 in position 100: character maps to <undefined>
2023-10-01 23:06:05,825 | Level 5 | iso8859_4 is deemed too similar to code page iso8859_10 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,827 | Level 5 | iso8859_5 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 24.400000 %.
2023-10-01 23:06:05,828 | Level 5 | Code page iso8859_6 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xf8 in position 83: character maps to <undefined>
2023-10-01 23:06:05,829 | Level 5 | Code page iso8859_7 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xae in position 134: character maps to <undefined>
2023-10-01 23:06:05,830 | Level 5 | Code page iso8859_8 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xc1 in position 82: character maps to <undefined>
2023-10-01 23:06:05,831 | Level 5 | iso8859_9 is deemed too similar to code page iso8859_10 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,832 | Level 5 | Code page johab does not fit given bytes sequence at ALL. 'johab' codec can't decode byte 0xc3 in position 139: illegal multibyte sequence
2023-10-01 23:06:05,833 | Level 5 | koi8_r was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 62.100000 %.
2023-10-01 23:06:05,835 | Level 5 | Code page koi8_t does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xb4 in position 84: character maps to <undefined>
2023-10-01 23:06:05,837 | Level 5 | koi8_u was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 60.350000 %.
2023-10-01 23:06:05,838 | Level 5 | Code page kz1048 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0x98 in position 88: character maps to <undefined>
2023-10-01 23:06:05,839 | Level 5 | latin_1 is deemed too similar to code page iso8859_10 and was consider unsuited already. Continuing!
2023-10-01 23:06:05,840 | Level 5 | mac_cyrillic was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 38.150000 %.
2023-10-01 23:06:05,842 | Level 5 | mac_greek was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 40.900000 %.
2023-10-01 23:06:05,843 | Level 5 | mac_iceland was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 31.350000 %.
2023-10-01 23:06:05,846 | Level 5 | mac_latin2 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 49.700000 %.
2023-10-01 23:06:05,847 | Level 5 | mac_roman is deemed too similar to code page mac_iceland and was consider unsuited already. Continuing!
2023-10-01 23:06:05,848 | Level 5 | mac_turkish is deemed too similar to code page mac_iceland and was consider unsuited already. Continuing!
2023-10-01 23:06:05,851 | Level 5 | ptcp154 was excluded because of initial chaos probing. Gave up 2 time(s). Computed mean chaos is 22.150000 %.
2023-10-01 23:06:05,853 | Level 5 | Code page shift_jis does not fit given bytes sequence at ALL. 'shift_jis' codec can't decode byte 0xf8 in position 83: illegal multibyte sequence
2023-10-01 23:06:05,855 | Level 5 | Code page shift_jis_2004 does not fit given bytes sequence at ALL. 'shift_jis_2004' codec can't decode byte 0xeb in position 164: illegal multibyte sequence
2023-10-01 23:06:05,856 | Level 5 | Code page shift_jisx0213 does not fit given bytes sequence at ALL. 'shift_jisx0213' codec can't decode bytes in position 121-122: illegal multibyte sequence
2023-10-01 23:06:05,857 | Level 5 | Code page tis_620 does not fit given bytes sequence at ALL. 'charmap' codec can't decode byte 0xdc in position 142: character maps to <undefined>
2023-10-01 23:06:05,858 | Level 5 | Encoding utf_16 won't be tested as-is because it require a BOM. Will try some sub-encoder LE/BE.
2023-10-01 23:06:05,860 | Level 5 | Code page utf_16_be does not fit given bytes sequence at ALL. 'utf-16-be' codec can't decode byte 0x0a in position 4526: truncated data
2023-10-01 23:06:05,861 | Level 5 | Code page utf_16_le does not fit given bytes sequence at ALL. 'utf-16-le' codec can't decode bytes in position 408-409: illegal UTF-16 surrogate
2023-10-01 23:06:05,861 | Level 5 | Encoding utf_32 won't be tested as-is because it require a BOM. Will try some sub-encoder LE/BE.
2023-10-01 23:06:05,862 | Level 5 | Code page utf_32_be does not fit given bytes sequence at ALL. 'utf-32-be' codec can't decode bytes in position 0-3: code point not in range(0x110000)
2023-10-01 23:06:05,863 | Level 5 | Code page utf_32_le does not fit given bytes sequence at ALL. 'utf-32-le' codec can't decode bytes in position 0-3: code point not in range(0x110000)
2023-10-01 23:06:05,865 | Level 5 | Encoding utf_7 won't be tested as-is because detection is unreliable without BOM/SIG.
2023-10-01 23:06:05,865 | DEBUG | Encoding detection: Unable to determine any suitable charset.
Unable to identify originating encoding for "test.cue". Maybe try increasing maximum amount of chaos.
{
    "path": "E:\\test.cue",
    "encoding": null,
    "encoding_aliases": [],
    "alternative_encodings": [],
    "language": "Unknown",
    "alphabets": [],
    "has_sig_or_bom": false,
    "chaos": 1.0,
    "coherence": 0.0,
    "unicode_path": null,
    "is_preferred": true
}

Expected encoding
No results found in chardet.
Identified as GB18030 in cChardet.
Desktop (please complete the following information):

OS: Windows
Python version: Python 3.11.1
Package version: 3.3.0

The file attached is corrupted. It is GB18030 but, strictly speaking, it is invalid. position 176: illegal multibyte sequence
It's written in the debug log.
2023-10-01 23:06:05,799 | Level 5 | Code page gb18030 does not fit given bytes sequence at ALL. 'gb18030' codec can't decode byte 0xa5 in position 176: illegal multibyte sequence

charset-normalizer can't propose an encoding if it leads to an error decoding it.


Unconfirmable message

Is it possible to send an unconfirmable message? Also do you know if sending a confirmable message is blocking? (meaning that the client waits until it gets an ACK).

First, please note that the code from the fork (at nning/coap) is online as coap gem since version 0.1.0.
Sending an unconfirmable message is possible with the following snippet, for example:
client.get_by_uri('coap://[::1]/hello', nil, tt: :non)

Currently, both sending confirmable and non-confirmable messages blocks the program flow and the method call returns the answer as CoAP::Message directly. The initial receive timeout is 2 seconds. For non-confirmable messages, a Timeout::Error Exception is thrown after this timeout. Confirmable messages are resent with increasing timeouts (4 times by default).
It is currently not possible to prevent blocking until an answer has been received but this would be an interesting feature.


Tests having warnings are marked as failed

Hi,
Thank you for neotest-go, great work!
I'm experiencing an issue when tests are being marked as failed when they produce warnings, even though tests themselves pass:

Here is the output from go test command:
➜  go-fileserver git:(registry) ✗ go test ./registry -count=1
# github.com/olzhasar/go-fileserver/registry.test
ld: warning: -no_pie is deprecated when targeting new OS versions
ld: warning: non-standard -pagezero_size is deprecated when targeting macOS 13.0 or later
ok      github.com/olzhasar/go-fileserver/registry      0.880s

I believe these kind of warnings can be generated when go is calling C code.
I don't know the internals well, so no easy way to reproduce that I am aware of.
I am experiencing these warnings when importing mattn/go-sqlite3 package on MacOS. You can try to run any go test with this package imported


feat: Update cli.py run/edit from github or external files

Update cli.py run/edit from github or external files
can do things like:
marimo edit https://github.com/marimo-team/marimo/issues/339
marimo edit https://raw.githubusercontent.com/marimo-team/marimo/main/examples/optimization/regularization_and_sparsity.py
marimo edit https://github.com/marimo-team/marimo/blob/main/examples/optimization/regularization_and_sparsity.py

Left a comment about what happens with URLs and edit, but I think we can improve later, not urgent


Update oc get version

Fix:

Update oc get version using  -o jsonpath instead of jq parser due to change in json hierarchy

Due to mix branch


1034-Twilio-Callback-URL-Bugfix

Description
When our twilio client is used to initiate an SMS send, it includes a callback URL for delivery status. That callback URL is used by Twilio to deliver delivery statuses for that particular message.
The issue is that the callback URL that is being used uses our notifications.va.gov address, which is not accessible to public internet. This is result in 500 errors in Twilio for EVERY SMS request that goes through Notify that uses Twilio.
#1034
Type of change
Please delete options that are not relevant.

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

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@jakehova  Shane said we could just leave it out, not include anything. Can't we just strip line 106?
Did you test these solutions and ensure Twilio does not error?

@jakehova Shane said we could just leave it out, not include anything. Can't we just strip line 106?
Did you test these solutions and ensure Twilio does not error?

If status_callback is empty or null then it doesn't make the request.  I tested this by calling the twilio API endpoint directly.  I am going ahead and changing it to your recommendation with the update that I had to change two places.  One for sends with message service sid and one where it sends without that.


Angular 6.0.0 --stats-json or sourceMap blocking at 95% when optimisation&buildOptimizer are set to true

Versions
Angular CLI: 6.0.0
Node: 9.8.0
OS: win32 x64
Angular: 6.0.0
... common, compiler, compiler-cli, core, forms, http
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
angular-devkit/build-angular: 0.6.0,
angular/cli: 6.0.0,
angular/compiler-cli: 6.0.0,
rxjs: 6.0.0
typescript: 2.7.2
webpack: 4.6.0

Repro steps
Build with this configuration :
 "optimization": true,
              "outputHashing": "none",
              "sourceMap": true,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": true,
              "buildOptimizer": true,

Observed behavior
Blocking at 95% but folder and map exist on filesystem, cli never finish 95% step. (it works if disabled optimisation option)
95% emitting index-html-webpack-plugin
Desired behavior
Finish generation build with sourcemap when optimisation and buildOptimizer are enabled in configuration

you did good job, I confirm your copy/paste works well ! https://github.com/angular/angular-cli/issues/10747

@istiti exactly - only difference your ticket was somwhere below and used RC - i confirmed that it is the same with final 6 release.

Duplicate of #10591


Add missing include

I got the following error on Apple Clang 15:
[1/17] /Library/Developer/CommandLineTools/usr/bin/c++  -I/Users/vagrant/Data/buildtrees/ctbench/src/v1.3.3-f96a0799ba.clean/grapher/include -isystem /Users/vagrant/Data/installed/x64-osx/include -fPIC -g -std=gnu++20 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -DJSON_NOEXCEPTION -Wall -Wextra -Werror -Wnull-dereference -Wold-style-cast -Wdouble-promotion -Wshadow -march=native -fno-rtti -flto -fPIC -MD -MT grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o -MF grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o.d -o grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o -c /Users/vagrant/Data/buildtrees/ctbench/src/v1.3.3-f96a0799ba.clean/grapher/lib/grapher/utils/cli.cpp
FAILED: grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++  -I/Users/vagrant/Data/buildtrees/ctbench/src/v1.3.3-f96a0799ba.clean/grapher/include -isystem /Users/vagrant/Data/installed/x64-osx/include -fPIC -g -std=gnu++20 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -DJSON_NOEXCEPTION -Wall -Wextra -Werror -Wnull-dereference -Wold-style-cast -Wdouble-promotion -Wshadow -march=native -fno-rtti -flto -fPIC -MD -MT grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o -MF grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o.d -o grapher/CMakeFiles/grapher.dir/lib/grapher/utils/cli.cpp.o -c /Users/vagrant/Data/buildtrees/ctbench/src/v1.3.3-f96a0799ba.clean/grapher/lib/grapher/utils/cli.cpp
/Users/vagrant/Data/buildtrees/ctbench/src/v1.3.3-f96a0799ba.clean/grapher/lib/grapher/utils/cli.cpp:40:28: error: implicit instantiation of undefined template 'std::basic_istringstream<char>'
        std::istringstream iss(entry_dir.path().filename().stem());
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/iosfwd:128:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_istringstream;
                               ^
1 error generated.

This is caused by a missing include of sstream

Hi ! Sorry for the delay, I somehow missed this PR. I'm merging that, thanks for the contribution :)


Some slight changes required

Please see
https://docs.zivver.com/en/manuals/sso/microsoft-azure-active-directory.html
ZIVVER can now digest the link to the metadata XML file, no need to contact support anymore

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

ID: 66c65ecc-cd3a-3477-c493-54036dda3424
Version Independent ID: ddaa2ec2-01af-8eb5-42a8-bff251a08caa
Content: Tutorial: Azure Active Directory integration with ZIVVER
Content Source: articles/active-directory/saas-apps/zivver-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@RMStoica-zivver Thank you for your feedback . We will have this reviewed and updated accordingly.

@chetansriv and @v-nagta Can you please make these changes in the article? Also I think now this is a good candidate for OneClickSSO.

@RMStoica-zivver  tutorial updated per your request, please review

#please-close

@chetansriv looks correct, thank you very much for the quick turnaround.
@jeevansd please let me know if you need any sort of info on the OneClickSSO front.


feat: Better handling of wait conditions when installing extensions

Wait condition could be more complex, mimicing 'kubectl wait' behavior.

For CI to pass, requires https://github.com/fuseml/extensions/pull/15 (waitfor syntax was changed)


Fix: Restore color picker after rotating

When trying out the color picker, I noticed that the color picker dialog disappears if I rotate my phone while it is shown (that is with ICS on SGS2). These changes restore the dialog after the rotation, similar to the DialogPreference. Both old and new color are remembered, but nothing is persisted until the user explicitely asks for it.

Komen


Feature: Cerebro Developer Lookup

The best mental model for this project is LinkedIn Recruiter, but we want to think past recruiting.
High level features.
as a user, I will be able to sort /filter developers by time zone, interests, and contribution type
as a user, I will be able to filter/sort contributed repos, languages, active/passive, spammer, typo hunter
This is a reference from Linked Recruiter, but we need a simpler experience than this.

Before jumping into this @getaheaddev, could provide other examples where people sort profiles or listings. Some places top of mind, where I like the design personally. Thinking less enterprise and more ecommerce with a focus on time zone.
Keep in mind we will go with a wireframe first on this since it is a net new feature.
Shopify Cart for saving for later

Urban Outfitters search with topic suggestions

Fiverr explore page


'DropPath' object has no attribute 'scale_by_keep'

HARDWARE

Ubuntu 18.04
Torch 1.7.0a0+7036e91
Torch vision 0.8.0a0

Hi, @jahongir7174 Thank you for your awesome work.
I tried to run a test on your pre-trained model. However, It seems that the pre-trained model gives me an error.
Could you please help me to solve this problem?
Number of parameters: 21458488
     acc@1     acc@5:   0%|                                                                                | 0/48 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "main.py", line 227, in <module>
    main()
  File "main.py", line 223, in main
    test()
  File "main.py", line 171, in test
    loss, acc1, acc5 = batch(images, target, model, criterion)
  File "main.py", line 43, in batch
    output = model(images)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/ws/EfficientNetV2/nets/nn.py", line 164, in forward
    x = self.p1(x)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py", line 117, in forward
    input = module(input)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/ws/EfficientNetV2/nets/nn.py", line 69, in forward
    return x + self.res(x) if self.add else self.res(x)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/container.py", line 117, in forward
    input = module(input)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/timm/models/layers/drop.py", line 164, in forward
    return drop_path(x, self.drop_prob, self.training, self.scale_by_keep)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 779, in __getattr__
    type(self).__name__, name))
torch.nn.modules.module.ModuleAttributeError: 'DropPath' object has no attribute 'scale_by_keep'

I also create a script to test your model on a single image, got the same problem too.
import torch
from torchvision import transforms
from PIL import Image

model = torch.load('weights/best.pt', map_location='cuda')['model'].float()
with torch.no_grad():
    model.eval()

image = Image.open("/ws/dataset/hamxe_dataset/data_fake/data_Fake/data/mau/bike/EtzcWfSbQS.jpg")
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])

transform_norm = transforms.Compose([transforms.Resize(384),
                                          transforms.CenterCrop(384),
                                          transforms.ToTensor(), normalize])
img_normalized = transform_norm(image).float()
img_normalized = img_normalized.unsqueeze_(0)
img_normalized = img_normalized.cuda()

with torch.cuda.amp.autocast():
    output = model(img_normalized)

print(output)

@HoangTienDuc Thanks for your interest. The issue is related to timm package. I think you are using the latest version of timm, please use pip install timm==0.4.12


New package: NumberTheoreticTransforms v0.1.1

Registering package: NumberTheoreticTransforms
Repository: https://github.com/jakubwro/NumberTheoreticTransforms.jl
Created by: @jakubwro
Version: v0.1.1
Commit: b260723260b6782433617cf456ff5602393c8762
Git reference: master
Release notes:

The initial release that provides implementations of Number Theoretic Transform and Fermat Number Transform.

Adding a comment to prevent automerge. Please close this PR as #7482  should be fine


Possible discrepancy between registering & querying for hardware errors?

I noticed when comparing the documentation for querying hardware errors (https://docs.microsoft.com/en-us/windows-hardware/drivers/whea/querying-the-system-event-log-for-hardware-error-events) that the recommendation is to query the Microsoft-Windows-WHEA-Logger provider for current versions of Windows (Vista SP1 and later). However, when registering for hardware error events the recommendation is to use the Microsoft-Windows-Kernel-WHEA/Errors provider for current versions of Windows (7 and later versions).
Is there a reason for the omission of the WHEA-Logger provider in the registration documentation? The WHEA-Logger provider in the System channel appears to provide way more information than what is found in the Kernel-WHEA/Errors provider on a hardware error.
Apologies if this is a dumb question and thanks for taking the time to look into it.

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

ID: 759a7b35-c5ac-8ead-d483-3417ab3c01ed
Version Independent ID: 72f27974-7da4-0154-f9c8-e37eacf337ce
Content: Registering for Notification of Hardware Error Events - Windows drivers
Content Source: windows-driver-docs-pr/whea/registering-for-notification-of-hardware-error-events.md
Product: windows-hardware
Technology: whea
GitHub Login: @tedhudek
Microsoft Alias: tedhudek

Thanks for raising this point. We will work to clarify our recommendations and use cases in the documentation.
To provide some clarity here:

WHEA-Logger: Is designed for users in desktop scenarios.  It gives a human readable message with the main details of the event so a user that sees the event has some idea on what occurred.
Kernel-WHEA/Errors: Is what is recommended for server type scenarios.  The data here isn't immediately human readable, but is an ACPI/UEFI defined Common Platform Error Record (CPER) See: https://docs.microsoft.com/en-us/windows-hardware/drivers/whea/error-records. While the full record requires tooling that's enlightened to understand the formatting due to it's more dynamic nature, it provides a much higher level of detail on the exact specifics of the hardware error event.

Hopefully that provides some clarity on the two different WHEA logs for you to choose the appropriate information source for your use case.

That makes sense and thank you for the additional info. I really appreciate it. Have a good one.

FYI @pastramionry I added the info from this issue to the two pages in question and removed outdated references.  See what you think --
https://docs.microsoft.com/en-us/windows-hardware/drivers/whea/querying-the-system-event-log-for-hardware-error-events
https://docs.microsoft.com/en-us/windows-hardware/drivers/whea/registering-for-notification-of-hardware-error-events
Thanks for raising this!


Prevent Handler from adding invalid searches to Watchlist

Fixes #
Entry is only added to watchlist if valid
Proposed Changes

yeah error on my part sry

Should be in line now


Typed requests without needing the http crate

This explores a possible approach to #2170.
With this PR, a user can write a http_component entry point using an extractor, without needing the http crate (as this is not referenced in the template), by use-ing spin_sdk::http::typed::Request<T> instead of spin_sdk::http::Request.  E.g.
// Note typed::Request rather than Request
use spin_sdk::http::{IntoResponse, typed::Request, Response, Json};

#[derive(Deserialize)]
struct Fie {
    thing: String,
    whatsit: i32,
}

#[http_component]
fn handle_test(req: Request<Json<Fie>>) -> anyhow::Result<impl IntoResponse> {
    let fie = req.body()?;
    let text = format!("The thing was {} and the whatsit was {}", fie.thing, fie.whatsit);
    Ok(Response::builder()
        .status(200)
        .header("content-type", "text/plain")
        .body(text)
        .build())
}

I don't love the duplication of methods - I don't know if this can be made more maintainable.  But anyway putting this up for feedback and discussion.

I'm similarly not entirely convinced this approach is worth it either ... I think I would be more in favor of an "extractor" as mentioned in the linked issue in the near term (which although is less aesthetic, provides reasonable convenience around having to go from serialized bytes to some user provided data structure).
Having said that, @itowlson I am amendable to what you're proposing here if you feel strongly about the DX.

The people have spoken!  Thanks for the feedback - I'll close.


add in version number to report

The report that gets generated should have the version number included.

Added


pyroma check passes on its own but not through autoreviewer

I am facing an issue while running autoreviewer on my github remote branch. It tells me Pyroma passes 9/10 checks.
[`pyroma`](https://github.com/regebro/pyroma) rating: 9/10

1. Your package does not have keywords data.
1. Your package should have a 'url' field with a link to the project home page, or a 'project_urls' field, with a dictionary of links, or both.
1. Specifying a development status in the classifiers gives users a hint of how stable your software is.

These results can be regenerated locally using the following shell commands:

but my pyproject.toml file contains all these fields: keywords, [tool.poetry.urls] and classifiers. I tried running pyroma on the local repo and the cloned repo from the remote branch. It passes all checks. Both repos are synced.
Another issue is even with the zenodo linked in my README, the autoreviewer check fails.

try using --no-cache flag to have it get the newer code in case you've made changes in the mean time. Maybe it makes sense to not cache by default

@cthoyt could you make --no-cache as a default option? That would be really convenient.


json-clone

[ ] Expose JSON deep clone function from src/json-patch/util.ts in json-clone library.
[ ] Implement another function which supports binary data in Uint8Array.
[ ] Add benchmarks.

:tada: This issue has been resolved in version 7.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Process hangs until SQLiteBackend instance is closed

The problem
Process will hang until instance of SQLiteBackend is closed. More specifically, the process will hang until the SQLiteBackend's responses: SQLitePickleCache and redirects: SQLiteCache instance variables are closed. Note, Ive not tested this on other backends.
Expected behavior
Process will exit without explicit close of SQLiteBackend.
Steps to reproduce the behavior
import asyncio
from aiohttp_client_cache import CachedSession, SQLiteBackend

async def hangs_forever():
    cache = SQLiteBackend("test_cache")
    async with CachedSession(cache=cache) as session:
        await session.get("http://httpbin.org/delay/1")
    # await cache.close()

if __name__ == "__main__":
    asyncio.run(hangs_forever())

Workarounds
The only workaround ive found thus far is to explicitly close the SQLiteBackend cache instance (e.g. await cache.close()).
Environment

aiohttp-client-cache version: [e.g. 0.8.2]
Python version: [e.g. 3.9]
Platform: [e.g. macOS Ventura 13.4.1 arm64]

This looks like an issue stemming from aiosqlite.Connection which inherits from threading.Thread.

Could you give the changes in main a try for me? I believe that will fix the issue. I'll get a patch release out for that soon.

@JWCook, certainly! Just tested at ae635330e86687e3717773380dc6e2ec78191a6f and the process exited as expected.

For those interested, the fix was introduced in ae635330e86687e3717773380dc6e2ec78191a6f.

Fixed in 0.9.0

Related to #147.

I am reopening this because it seems that the switch to aiosqlite has altered the supported semantics for using aiohttp_client_cache.CachedSession. The following code hangs:
import asyncio
from aiohttp_client_cache import SQLiteBackend, CachedSession

async def main():
    cache = SQLiteBackend()
    client = CachedSession(cache=cache)

    req = await client.get("http://httpbin.org/get")
    resp = await req.text()
    req.close()
    print(resp)

    # does not hang if properly close (identical behavior to async context manager)
    # await client.close()

if __name__ == "__main__":
    asyncio.run(main())

TLDR; the above code hangs because client.close() is never called and awaited.
It is required that client.close() is called and awaited because SQLiteBackend creates and uses a aiosqlite.Connection that runs in its own thread. The aiosqlite.Connection acts like an event loop (see its run() method). It accepts work (coroutines) over a queue and then reschedules coroutines on the main thread's event loop. This is the problem, in the above code, the event loop runs for a shorter amount of time than the aiosqlite.Connection thread (as soon as main() returns, the event loop starts its shutdown). This makes it impossible to close unless done implicitly or explicitly at the call site. In some cases adding a finalizer (__del__) to SQLiteBackend that schedules a close() task on the main event loop to could remedy this, but there is no guarantee that the event loop will be open long enough for that task to be scheduled and run.
The unfortunate side-affect of this behavior is that all code that uses a SQLiteBackend passes the responsibility of handling the lifetime of the aiosqlite.Connection's thread to the end user. Meaning users of that code need to either explicitly call a shutdown method (i.e. close()) or use the object via a context manager. For example:
import asyncio
from aiohttp_client_cache import SQLiteBackend, CachedSession

class Client:
    def __init__(self):
        self._session = CachedSession(cache=SQLiteBackend())

    async def get(self) -> str:
        async with self._session.get("http://httpbin.org/delay/1") as req:
            return await req.text()

    async def close(self) -> None:
        # failing to call close will result in the program hanging
        await self._session.close()

    async def __aenter__(self) -> "Client":
        return self

    async def __aexit__(self, exc_type, exc_val, exc_tb) -> None:
        await self.close()

async def main():
    client = Client()
    res = await client.get()
    print(res)
    # this hangs because client.close() is never called

if __name__ == "__main__":
    asyncio.run(main())

@aaraney Are you still seeing this behavior in the latest release (0.9.1)? SQLite connections are now closed automatically, and your code snippet appears to work fine for me locally and in CI.
Note that this behavior can also be changed with the autoclose parameter (see #162).

If the CachedSession is not properly closed this can happen, however, close is not called magically without using a contextmanager.
You have to do:
  async with CachedSession(cache=SQLiteBackend()) as client:
      # use client

after the with block finished, the session and the associated cache will be properly closed and no dangling sqlite connection will be running.

Okay, I understand now. Yeah, getting aiosqlite to close properly on its own without using a contextmanager is a bit tricky. Looks like there are a couple relevant open issues on the aiosqlite repo, but there are some (less than ideal) ways I could hack around this in the mean time.
I'll make a separate issue for this (#187).

@JWCook thanks for continuing to look into this and try and find a viable way to move forward. I am more than happy to collaborate on this issue, meaning submitting a PR, working through proposed solutions, or just testing it. I've been using your package for a long time and would like to continue to do so. You've always been quick to respond and great to communicate with!

Thanks, I'm glad you've found it useful! I'll try to get at least a short-term fix for this released within the next couple weeks.
One thing that would help would be testing out the changes in #189, and let me know if you have any thoughts about that approach.

@JWCook for sure! I'll take a look at that over the next few days.


Rearrange featured pages

Move readings to right and first featured page to left, then wrap under readings

Resolved in https://github.com/SaintJosephCatholicChurch/saint-joseph-catholic-church-site/commit/d423cdca7ab417e50d29c39ec3e2cbe3e5384b8a


fix(codegen): correct sourcemaps when Windows line breaks + unicode

Fix source mapping of Window-style line breaks in presence of Unicode chars.
content.chars().nth(i + 1) gets the i + 1th char, but i is a byte offset not a char offset.
The replacement content.as_bytes().get(i + 1) gets the i + 1th byte, and should also be faster as doesn't require iterating through chars again.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2584  👈
#2583
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

Merge activity

Mar 3, 11:22 PM EST: @Boshen started a stack merge that includes this pull request via Graphite.


Increasing / decreasing audio delay

Description
Increasing / decreasing audio delay.  Same with subtitles.
Could be variation of synchronization use cases.
Proposed Solutions
Q: Requires subframe accuracy?
Seems like a client feature to provide a control, or not.
Additional Background
Source: BL workshop notes
Interest: 50%

Client side?

With what little information was given it seems to me a client side issue. I would want more of a description of this kind of situation before being able to make a better judgment though.

Propose close


rpc and rpc_id fail when argument is PackedVector2Array

Godot version
4.0.dev (462bb3bf3)
System information
Arch Linux - I dont think this is an issue with my computer but i can provide logs/more specs if nessecary
Issue description
As the title says, trying to send a PackedVector2Array as the argument over rpc or rpc_id will fail. I work around it by packaging the PackedVector2Array inside an array and unpackaging it on the client side.
Steps to reproduce
Put this code in a multiplayer game. Have a client or server run it. Nothing happens or it crashes without explanation.
func send_data():
	rpc("sync_points", $Line2D.points)

@rpc(any_peer, unreliable_ordered)
func sync_points(points):
	$Line2D.points = points

Minimal reproduction project
Project: Every time a client connects every client gets another triangle on their screen. For it to work, host and client need workaround checked.
rpc_tests.zip

@jjanella Please upload a minimal reproduction project to make this easier to troubleshoot.

rpc_tests.zip
run with --server then run others with --client
optionally use --workaround on server and all clients to get it to work "properly"
the project: for each client that connects every client receives another triangle on their screen (only works with workaround)

rpc_tests.zip
Project: Every time a client connects every client gets another triangle on their screen. For it to work, host and client need workaround checked.

I can't reproduce the error and can send PackedVector2Array successfully. But instead, I got an error from sending an empty PackedByteArray.
E 0:00:06:0231   _process_rpc: RPC - 'Node(server.gd)::sync_points': Method expected 1 arguments, but called with 0
  <C++ Source>   modules/multiplayer/scene_rpc_interface.cpp:290 @ _process_rpc()

@jjanella Seems you added an empty zip file. So I will add mine instead.
base.gd
extends Node
class_name Base

func _ready() -> void :
	multiplayer.connected_to_server.connect(func() : print("Connected"))
	multiplayer.peer_connected.connect(_peer_con)

func _peer_con(peer : int) -> void :
	var data = PackedByteArray()
	sync_points.rpc_id(peer, data)

@rpc("any_peer", "unreliable_ordered")
func sync_points(data) -> void :
	print(data)

server.gd
extends Base

func _ready() -> void :
	super()
	print("server")

	var peer := ENetMultiplayerPeer.new()
	peer.create_server(5555, 2)
	multiplayer.multiplayer_peer = peer

client.gd
extends Base

func _ready() -> void :
	super()
	print("client")

	var peer := ENetMultiplayerPeer.new()
	peer.create_client("<IP_ADDRESS>", 5555)
	multiplayer.multiplayer_peer = peer

That is odd that it was empty, thank you

That is odd that it was empty, thank you


il2-cpp

Hello.I would like to know if there will be support for XUnityAutoTranslator in the il2cc plugin

There is some support.
https://github.com/bbepis/XUnity.AutoTranslator/issues/98
Most features in this version are disabled.

Thanks a lot. Good luck working on the plugin

Will definitely be supported when BepInEx supports it.

Issue is tracked in pinned issue. Closing


Hello-World just a bit over a newbie level?

Just thinking a bit about the Hello-World exercise for Python and that it might be a bit above a complete newbie level. In order for a few of the tests to pass an if statement is needed to test the incoming value. While this is low level material, I recommend that maybe it be more simple to have the function simply return the "Hello, World!" string.

You are not the first or only one that thinks that way. It should change in the future: https://github.com/exercism/x-common/issues/520

Thanks @behrtam!


cosmosView.settings.filledImage = UIImage(named: "GoldStarFilled")

settings .FilledImage is missing. I can not replace the image.

Hi, thanks for reporting. This feature was recently added to the library. Are you using the recent version?

Okay. Thank you. I usung old version

No worries.


[explore] improve metric(s) and groupby(s) controls

surface verbose_name, description & expression in controls
[table viz] surface verbose name in table header

LGTM!


Change unordered marker from asterisk to dash

The currently used asterisk * should be changed to dashes -. The main reason is that asterisks * can be confused for bold/italic markers. There was also a very long discussion for Prettier to also change the default to dashes to same reasons  which was then adapted.
There are some other reasons like the alignment with the YAML spec which uses dashes for list items.
This guide will now also adapt to this improvement by changing the default unordered list marker from asterisks * to dashes -.

This is causing a problem in .md files in my case, where I've to insert a Thematic break using *** but Prettier is constantly changing it to ---
Any possible solutions for it?

@manishprivet This change was only related to lists, but using *** for horizontal rules can be seen as problematic as the previously used * characters for lists. --- on the other hand should be fine in any case because there are more than one dash without a whitespace. Anyway, if you still like to keep *** you can simply add a Prettier ignore comment above it to stop Prettier from formatting/changing it:
<!-- prettier-ignore -->
***


add keysprovider package to ensure usage of specific key and not access them directly

After our short chat, this is something simple I came across .
We basically ensure we are using the appropriates key/s by using a new type (in a different package) that encapsulates the access to the keys using a public method. We just provide the implementation of the method of the key that we want to expose (the _keys: field is unexported to force the usage of the public method and use the key we want).
So instead of:
get cosmosdb keys -> select explicitly a concrete key (error prone) -> use that key
do:
get cosmosdb keys -> instantiate our new keysprovider struct -> use that component to access the correct key.
Quick note, the fact that ContextInfo in pkg/database/keysprovider/keysprovider.go is defined as a new type with type ContextInfo string is interesting to ensure we do not use the keycontextinfo instead of keyvalue by mistake (it is satisfied at compile time) and we can easily convert it to string with string(keycontextInfoValue).
Also, for the testing part we don't need to deal with logrus Entries and just use plain strings (no more do something + log(I/O) at the same time, also good ?).
Maybe something nice would be to define masterkey parameter in func NewMasterKeyAuthorizer(masterKey string) (Authorizer, error) in  pkg/database/cosmosdb/zz_generated_authorizer.go:34 as its own data type and make our new struct that I have defined be the only one returning a value of that type to ensure at compile time that we are passing the expected key(but that code is autogenerated AFAIK).
This approach could be really useful if there were a lot of places where we use directly the keys and we change it to use this new type passing it as a reference instead of the raw keys. Right now is just one usage but I still see value on using it to prevent exactly that in the future.
This PR is just something simple I thought about instead of using reflection or something obscure.
🙂

Good chat about the key stuff. Closing it for now as this secondary key thingy is just a temporary change that will be replaced with something different in the future.


Easier user interface

I think we should try to lower the barrier to using some of this functionality. I propose introducing the following methods, namely encode, load_database and search.  The functions will look like as follows
def encode(sequences, model_deep, model, tokenizer, device):
    i = 0
    embed_all_sequences=[]
    while i < len(sequences):
        protrans_sequence = featurize_prottrans(sequences[i:i+1], model, tokenizer, device)
        embedded_sequence = embed_tm_vec(protrans_sequence, model_deep, device)
        embed_all_sequences.append(embedded_sequence)
    return np.concatenate(embed_all_sequences, axis=0)

def load_database(path):
    lookup_database = np.load(path)
    #Build an indexed database
    d = lookup_database.shape[1]
    index = faiss.IndexFlatIP(d)
    faiss.normalize_L2(lookup_database)
    index.add(lookup_database)
    return index

def query(index, queries, k=10):
    faiss.normalize_L2(queries)
    return index.search(queries, k)

This is just get started -- ideally, we'd just have 1 TMvec model rather than 4 objects floating around everytime we want to encode .  I think either a namedtuple or a wrapper TMvec class will help with this.

Done! Nice suggestion.


The method is not allowed for the requested URL

I am trying to create the ML model with regard to the following steps but no luck.
select a time frame
click “Create Baseline” button, wait for ML model to be created
click “Train model” button, wait for training to complete
run a prediction with “Play” button
observe anomalies (as annotations on graph)
It shown this error when i press “Create Baseline” button:

Log under Loud ML server:
<IP_ADDRESS> - - [2020-05-07 16:12:27] "POST /models HTTP/1.1" 405 220 0.002024
The environment as below
Grafana: v6.7.3
Loud ML server: 1.5
InfluxDB: 1.7.9

Can you try this: (example)
curl -H "Content-Type: application/json" -X POST loudml:8077/models --data-binary @model.json
model.json
{
  "bucket_interval": "1m",
  "default_bucket": "temperature-bucket",
  "features": [
    {
      "default": 0,
      "field": "temp2",
      "metric": "avg",
      "name": "avg_temp_feature"
    }
  ],
  "interval": 60,
  "max_evals": 10,
  "name": "avg_temp2-model",
  "offset": 30,
  "span": 5,
  "max_threshold": 90,
  "min_threshold": 50,
  "type": "donut"
}

What is the result?
Regards,
Fadjar

Hi Fadjar,
The response is same as the above error message.
# curl -H "Content-Type: application/json" -X POST <IP_ADDRESS>:8077/models --data-binary @model.json {"message": "The method is not allowed for the requested URL."}
Thanks,
ib

It means, not the loudml-grafana-app problem, it's loudml server problem.
Please ensure you can create model in the loudml server using curl. then the loudml-grafana-app will do the rest.
Regards,
Fadjar

May you try to open http://<IP_ADDRESS>:8077/models in your web browser?
This should display you a list of models you have / empty list.
Just wondering why curl not working.
V.

Hi Fadjar,
The model can be created after upgraded the loudml server to v1.6; however, the "loudml-grafana-app" module somehow cannot create the model when there is "fill(0)" option under influxdb query with below error:
invalid field features.0.match_all: not a valid value
I suspect this error is related to the double quote around the '0' in the JSON post by "loudml-grafana-app" module.
...
"features": [
    {
      "default": **"0",**
...

Even though the model can be created by manually post the JSON to the loudml server through the curl command, it is not able to save the model after the training is completed by clicking the train button in Grafana...
TypeError: 'Not JSON Serializable'

@ifan-boy addressed this in latest 1.3.0

Wow 1.3.0...


Swift 3

This branch is compatible with XCode 8 Beta 6.
Some work still needs to be done re: the AnyObject and Any change. I think perhaps moving to AnyHashable would be the best, if that's possible.

@danielrhodes Hey, thanks for the help! Just pushed v5. Didn't see any need for AnyHashable, but maybe I'm missing something? Let me know if v5 works for you! 😄


test(split_chunks): migrate split-chunks-common/simple

Related issue (if exists)

Summary

copilot:summary

Walkthrough
copilot:walkthrough

Blocked by supporting of splitChunks.name.


Simplify file struct abstractions

Rationale for this change
Currently we have many abstractions that sound very similar: PartitionedFile, FilePartition, ParquetPartition. This is an attempt to simplify the code by removing FilePartition and ParquetPartition.
What changes are included in this PR?

removal of FilePartition and ParquetPartition
simplification of the file display in the parquet exec plan with the FileGroupsDisplay wrapper
FileGroupsDisplay was not applied to the CSV, Avro and Json exec plans as those will be handled in a separate PR (for https://github.com/apache/arrow-datafusion/issues/1122)

Are there any user-facing changes?
FilePartition was publicly accessible but not really part of the public API

cc @yjshen

Thanks @rdettai !


Move from travis to github actions

Move from travis to github actions
Add python 3.9 and 3.10 support

@kevin1024 @IvanMalison many tests are failing, I believe github actions will bring more visibility.

Oh cool.  All I have to do is merge this pr and the tests run in GitHub?

Oh cool. All I have to do is merge this pr and the tests run in GitHub?

@kevin1024 yes! You can see it in action here https://github.com/jairhenrique/vcrpy/pull/1

Rad.  Thanks!

Oh hey can you update the Travis button in the readme?


PiranhaJava: Sample application does not build on Oracle JDK 9.0+

Unsure if this is a trivial fix or not, but I was unable to get the sample application included in this repository to work with Java version 9.0 or higher. Downgrading to Java 8 resolved the issue for me
$ java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

$ ./gradlew test
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

> Task :piranha:test FAILED
Error: Could not create the Java Virtual Machine.
-Xbootclasspath/p is no longer a supported option.

@atrakh please try polyglot piranha. It should work irrespective of your Java language version. I am closing this issue for now. Please feel free to reopen in case you are facing any difficulties using it.


gRPC client examples fails

Build steps Pass:
cp (download path)/l_openvino_toolkit_p_2019.1.094_online.tgz .
make docker_build_bin http_proxy=$http_proxy https_proxy=$https_proxy
Placed ResNet-50 model under /opt/ml/model1/1 folder
Starting Docker Container with a Single Model with:
docker run --rm -d  -v /models/:/opt/ml:ro -p 9001:9001 ie-serving-py:latest
/ie-serving-py/start_server.sh ie_serving model --model_path /opt/ml/model1 --model_name my_model --port 9001
The following command is failing with below log:
python grpc_serving_client.py --grpc_port 9001 --images_numpy_path imgs.npy --input_name data --output_name prob --transpose_input False --labels_numpy lbs.npy
Log:
E0604 18:41:13.744116590   24051 http_proxy.cc:62]           'https' scheme not supported in proxy URI
('Image data range:', 0.0, ':', 255.0)
Start processing:
Model name: resnet
Iterations: 10
Images numpy path: imgs.npy
Images in shape: (10, 3, 224, 224)
Traceback (most recent call last):
File "grpc_serving_client.py", line 105, in
result = stub.Predict(request, 10.0) # result includes a dictionary with all model outputs
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 565, in call
return _end_unary_response_blocking(state, call, False, None)
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.NOT_FOUND
details = "Servable not found for request: Specific(resnet, 0)"
debug_error_string = "{"created":"@1559653873.758416316","description":"Error received from peer ipv6:[::1]:9001","file":"src/core/lib/surface/call.cc","file_line":1046,"grpc_message":"Servable not found for request: Specific(resnet, 0)","grpc_status":5}"

@dtrawins How can I fix this issue? is it a known issue?

same issue:
https://stackoverflow.com/questions/55674762/openvino-serving-servable-not-found-for-request

@ramakrishnapallala Looking at your description I think you should place the model files in /models/model1/1 folder. You might confirm if the service is started successfully by checking the docker container logs.
Other thing to confirm is the proxy settings. While you are connecting to the localhost interface, make sure you don't have configured http_proxy env or you have localhost included in no_proxy.

@ramakrishnapallala Looking at your description I think you should place the model files in /models/model1/1 folder. You might confirm if the service is started successfully by checking the docker container logs.
Other thing to confirm is the proxy settings. While you are connecting to the localhost interface, make sure you don't have configured http_proxy env or you have localhost included in no_proxy.

My model is placed under /opt/ml/model1/1/ and the service is started successfully.
docker run --rm -d  -v /models/:/opt/ml:ro -p 9001:9001  --env LOG_LEVEL=DEBUG --env LOG_PATH=/var/log/ie_serving.log  ie-serving-py:latest /ie-serving-py/start_server.sh ie_serving model --model_path /opt/ml/model1 --model_name resnet --port 9001
2019-06-05 14:21:49,464 - ie_serving.models.model - DEBUG - []
2019-06-05 14:21:50,466 - ie_serving.models.model - DEBUG - []
2019-06-05 14:21:51,467 - ie_serving.models.model - DEBUG - []
2019-06-05 14:21:52,469 - ie_serving.models.model - DEBUG - []
2019-06-05 14:21:53,471 - ie_serving.models.model - DEBUG - []
after running the inference request i get the following log from service.
python grpc_serving_client.py --grpc_port 9001 --images_numpy_path imgs.npy --input_name data --output_name prob --transpose_input False --labels_numpy lbs.npy
python grpc_serving_client.py --grpc_port 9001 --images_numpy_path imgs.npy --input_name data --output_name prob --transpose_input False --labels_numpy lbs.npy
E0605 19:56:41.488049049    3815 http_proxy.cc:62]           'https' scheme not supported in proxy URI
('Image data range:', 0.0, ':', 255.0)
Start processing:
Model name: resnet
Iterations: 10
Images numpy path: imgs.npy
Images in shape: (10, 3, 224, 224)
Traceback (most recent call last):
File "grpc_serving_client.py", line 105, in
result = stub.Predict(request, 10.0) # result includes a dictionary with all model outputs
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 565, in call
return _end_unary_response_blocking(state, call, False, None)
File "/usr/lib64/python2.7/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.NOT_FOUND
details = "Servable not found for request: Specific(resnet, 0)"
debug_error_string = "{"created":"@1559744801.502814900","description":"Error received from peer ipv6:[::1]:9001","file":"src/core/lib/surface/call.cc","file_line":1046,"grpc_message":"Servable not found for request: Specific(resnet, 0)","grpc_status":5}"
sudo docker logs dreamy_ramanujan
2019-06-05 14:23:34,626 - ie_serving.models.model - DEBUG - []
2019-06-05 14:23:35,628 - ie_serving.models.model - DEBUG - []
2019-06-05 14:23:35,772 - ie_serving.server.service - DEBUG - PREDICT, invalid model spec from request, resnet - 0
2019-06-05 14:23:36,630 - ie_serving.models.model - DEBUG - []

@ramakrishnapallala you service doesn't seem to start correctly. The container is running but it is waiting the for models to be present in the requested path in the container /opt/ml/model1.
If you have the model files on the host in /opt/ml/model1/1/ you should start the container with different parameters:
docker run --rm -d -v /opt/ml:/opt/ml:ro -p 9001:9001 --env LOG_LEVEL=DEBUG --env LOG_PATH=/var/log/ie_serving.log ie-serving-py:latest /ie-serving-py/start_server.sh ie_serving model --model_path /opt/ml/model1 --model_name resnet --port 9001
The parameter -v maps the path on the host with the path in the container.

Thank you @dtrawins, now it works.


Bump minimum supported CMake version to 3.15

Following an internal discussion, we've decided to bump minimum CMake version to 3.15 for maintainability purposes.
Driven by #609.
CI_BRANCHES:NEURON_BRANCH=cmake315,

superseded by #613


Use the Bootstrap javascript API?

Hi @cdmoro ,
I guess you and I are coming from the same point of of waiting too long for bootstrapvue to be updated. I had already created THIS repository with a similar goal, and I have looked at your components. I had an idea, instead of using the data api (data-bs-), since bootstrap already provides a pure javascript API for the components, why not use bootstrap's javascript directly?
I had done a collapse component and a collapse directive and you can get the idea here:
// Collapse.vue Component
<template>

    <slot></slot>

</template>

// BCollapse directive
import { DirectiveBinding, VNode } from "vue";
import Collapse from "bootstrap/js/src/collapse";
const getBsCollapse: any = (el: HTMLElement | Element, binding: DirectiveBinding) => {
  const state = binding.value?.state || false;
  const parent = binding.value?.parent || null;
  return new Collapse(el, { toggle: state, parent: parent || '' });
}
export default {
  created(el: HTMLElement, binding: DirectiveBinding, vnode: VNode) {
    el.classList.add("collapse");
    getBsCollapse(el, binding);
  },
  beforeUpdate(el: Element, binding: DirectiveBinding, vnode: VNode) {
    const state = binding.value?.state || false;
    if (state) {
      getBsCollapse(el, binding).show();
    } else {
      getBsCollapse(el, binding).hide();
    }
  },
}

Usage of the collapse component
<template>
    <vb-button variant="danger" @click="toggleCollapse">Toggle Collapse</vb-button>
    <vb-collapse :show="collapse">

Hi There!

        Hi there! I am a collapsable element that can only be shown once show is
        set to true.

    </vb-collapse>
</template>

As you can see the only prop that you need to pass is show and it allows for programmatic opening and closing as it should be in vue.
Let me know in case you are interested in collaboration.
Cheers!

Hello there! @coolsam726
I thinking a lot how could be the best approach to build the components. I came with this ideas:

The component structure and logic must be simple and readable.
Every component has to handle its own logic. Par example, the collapse component should have new Collapse(componentRef, options); in the mounted hook.
The directives only modify the already created instance of the component. Par example, the v-b-toggle should have Collapse.getInstance(target) and handle the component via its methods. I think it's a bad practice to create the component instance inside the toggle directive. You have at least two components (Collapse or Accordion and Offcanvas) that use that directive.
All the components should support v-model directive, instead of show or similar.

This is and example (not 100% accurate) of what I mean
BToggle.ts
import { Directive } from "vue";

const BToggle: Directive<HTMLElement> = {
    mounted: function(el, binding) {
        el.addEventListener('click', () => {
            el.classList.toggle('collapsed');
            const target = document.getElementById(binding.arg as string);
            const collapse = Collapse.getInstance(target as Element);
            collapse?.toggle();
        });
    },
}

export default BToggle;

BCollapse.vue
<template>

        <slot/>

</template>

Let me know what you think!

Closing the issue for inactivity. BCollapse component has been changed already to support v-model and emit events.


[Event Request] Page 233 Apply Vendor Entries OnApplyVendorEntriesOnNextRecord

Please Add an Event OnApplyVendorEntriesOnNextRecord in Page 233 Apply Vendor Entries
trigger OnNextRecord(Steps: Integer): Integer
    var
        NextStep: Integer;
        IsHandled: Boolean;
    begin
        OnApplyVendorEntriesOnNextRecord(Rec, Steps, NextStep, IsHandled);
        if IsHandled then
            exit(NextStep);
        exit(Steps);
    end;

[IntegrationEvent(true, false)]
    local procedure OnApplyVendorEntriesOnNextRecord(VendorLedgerEntry: Record "Vendor Ledger Entry"; Steps: Integer; var NextStep: Integer; var IsHandled: Boolean)
    begin
    end;

Thank You!

We cannot add an empty trigger, since in will break default behavior of this page, so we cannot add such event

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

My message is the one to believe :)

Actually it does not break anything since it will exit the default steps as it would if no code was present

Ι don't agree that the event will break anything. If not handled will exit the parameter steps. In any case we have already did that in a different object. Please check page 554 "Analysis by Dimensions".

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


x/tools/gopls: stuck organizeImports code action

gopls built at ae52477ae52477
Observed organize imports stuck (deadlocked) occasionally.
In VS Code where the extension issues the "organizeImports" code action on save by default,
the problem can be surfaced as the "Saving foo.go: Getting Code Actions from ..." popup form.
It started to occur after https://go.dev/cl/589975
but we think the CL is needed to address other problems.
From the goroutine dump, we tracked the following goroutine is waiting on the channels but there is no active producer goroutine.
1 @ 0x9f98f4e 0x9f63f1f 0x9f63b32 0xa6fa98b 0xa6f7617 0x9fd1441
#       0xa6fa98a       golang.org/x/tools/internal/imports.findImport+0x3ca                    /Users/hakim/release/tools/internal/imports/fix.go:1751
#       0xa6f7616       golang.org/x/tools/internal/imports.addExternalCandidates.func5+0x116   /Users/hakim/release/tools/internal/imports/fix.go:1238

One obvious bug is we can return too early before starting producers.
https://github.com/golang/tools/blob/ae524770c657808d9d9bb7dc3a622c7104e345a5/internal/imports/fix.go#L1711
This type of race is hard to reproduce (depends on the timing, cpu power, # of candidates in go module cache) on different machines, but once it occurs, the user will likely experience the issue repeatedly. :-(

Similar Issues

https://github.com/golang/go/issues/41969
https://github.com/golang/go/issues/67824
https://github.com/golang/go/issues/43560
https://github.com/golang/go/issues/59216
https://github.com/golang/go/issues/45089

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)


use FindChild to increase performance a bit

FindChild is deprecated: https://docs.unity3d.com/ScriptReference/Transform.html


Detroit: Missing Translations for Finder

Through development and QA, a few translations have been found to be missing. This issue is to fill in the 10/27 tab finder translations and "Finish" mentioned here.
QA Notes
Start Here: https://detroit-public-dev.netlify.app

Select a language to test
Click through the finder to verify that those translations are present.
Go back to home page and select another language.
Repeat until all translations verified.

LGTM


Added Fast Duck

Added Fast Duck into Misc, could probably go in Movement

merging now uwu

cool

imagine marking my comment as off topic

kinda homo if you ask me

uncool


pvsamv1: non-linear beam self-shading derate not accounted for in annual/waterfall outputs

When you select standard shade mode where beam shading is treated nonlinearly, the loss due to beam self-shading is applied to dc power after the single-diode module model. But the annual_poa_shading_loss_percent output just seems to take the diff between poa_nom and poa_shaded, so it doesn't capture the dc-side beam derate. There doesn't seem to be another annual/waterfall output that does capture that loss, so it is effectively missing from a waterfall-type annual summary despite being the most important shading component for the most common shading scenario.
I noticed this when looking at the develop branch

Some additional context:
Description of SAM's "non-linear self-shading" model: Deline, C.; Dobos, A.; Janzou, S.; Meydbrey, J.; Donoval, M. (2013). A Simplified Model of Uniform Shading in Large Photovoltaic Arrays. Solar Energy Vol 96, October 2013, pp 274-282. Draft Preprint (PDF 1.3 MB)
The non-linear self shading model represents the effect of shadows as a reduction of the DC output and a reduction in the diffuse POA irradiance, which is consistent with what is shown in the PV loss diagram.

Showing a reduction in beam irradiance in the loss diagram would misrepresent how the non-linear self shading model works by suggesting that the POA input to the module model is less than the actual value.
The loss diagram does not break out the DC losses calculated inside the module model as discussed in https://github.com/NREL/ssc/issues/205. One way to quantify the loss is to run two simulations: One with self-shading enabled and one without.
The non-linear self shading factors are reported in the time series results as:

Subarray n Self-shading non-linear DC factor
Subarray n Self-shading non-linear ground diffuse irradiance factor
Subarray n Self-shading non-linear sky diffuse irradiance factor

Paul,
Thanks for the breakdown. Respectfully, I still think the DC effect of beam shading should be broken out as a separate line item. To me, "module deviation from STC" implies deviations in magnitude of irradiance and temperature. And the dc effect on beam shading is already calculated separately as part of the shading step so it seems like it is strictly a reporting issue. For example, PVsyst reports this as "electrical effect". The name is a bit vague but once you understand what it is, it is clear that all aspects of shading phenomena are accounted for.
It seems like based on #205 an effort is already underway to have more individual losses broken out; if that is the case I'm happy to just have this duped or added to #205

Thanks @caseyzak24 ! I agree we will want to break out DC nonlinear shading loss out separately as part of #205  as well. I've added a comment to that issue to make sure this discussion is referenced, so closing this issue for now.


Fix compatibility with python 3.11

asyncio.wait() now forbids coroutine parameters. Only tasks are allowed.
https://docs.python.org/3/library/asyncio-task.html#asyncio.wait

Changed in version 3.11: Passing coroutine objects to wait() directly is forbidden.

Thanks! I have copied this code from HA. Looks like it needs a fix, too.

Yes, but they don't support py3.11 officially yet. So I have to patch some components to work with 3.11


eliminate segfaults in the case of nonexistent http configs

Currently, if nginx is started with a config that only loads ngx_http_datadog_module.so and doesn't include a http config stanza, nginx will segfault in the module initializer. This PR ensures that in the above case, nginx will exit after producing a loggable error with human-parsable output.

Thanks for the patch. I'm testing it now.
This PR didn't trigger anything in CircleCI. I wonder why.

I've proposed https://github.com/DataDog/nginx-datadog/pull/18 to address this issue instead.
Thanks again for finding this and offering a fix.

Works for me. Thanks for taking a look!


it seems plugin does not work correctly in qwik

I follow your direction with new qwik-city-app

npm craete qwik
npm install --save-dev vite-plugin-stylex
npm install --save @stylexjs/stylex
add the plugin to vite config
open src/global.css and add "@stylex stylesheet;"
and try stylex in src/routes/index.tsx

but style is not applied
it seems the value of props are broken

and my vscode show error when i import "vite-plugin-stylex" (but no error in compile)

thank you for your efforts

bump!
I have the same issue in vite.config.ts

i use pandacss now and very happy with it 😄

Please share a repository that reproduces the issue.

Same issue. Problem with types it seems because package.json missing
  "main": "./dist/index.mjs",
  "types": "./dist/index.ts",

You can try import import styleX from "vite-plugin-stylex/dist/index.mjs";, but it just produces other issues

The plugin is an ESM package; you'll need to fix that on your end by using the .mts extension for your vite config for example as I don't plan to support CJS builds. I'm closing this one.


Gitlabbinding

Fixes #1149
Basically, a shameless copy of GitHubBinding
Release Note
GitLabBinding introduced

/hold

/unhold

/retest

/assign

/lgtm

/retest

/retest

/lgtm
/approve
(I'm not sure what's going on with e2e testing atm)

/assign @chaodaig

/approve

/retest


Better documentation of available meta properties and how to use them

Double-Check

[X] Read the entire Kitbook docs.
[X] Check that there isn't already an issue that requests a similar feature.

Clear description of the requested feature
From looking through the docs it was unclear which _meta properties were available. Your video helped answer a lot of other questions, such as the ability to use the kit vite plugin for configuration, but again now clear what is available to configure tbh.
Ah, just found this in the docs: https://kitbook.vercel.app/docs/1-variants/DefaultSlot

But it's not clear how to write the variant code to create this "image". I again had to go to the kitbook code base to find DefaultSlot.variants.ts
export const Text: Variant<Component> = {
  _meta: {
    slot: 'Just a bit of plain text.',
  },
}
export const HTML: Variant<Component> = {
  _meta: {
    slot: 'Try some <i>italics</i>',
  },
}

Suggested solution
Digging through the codebase I found this very useful VariantMeta interface. Would be great to include it in the docs with the comments expanded as markdown text.
export interface VariantMeta {
  description?: string
  /** overrides Kitbook-wide viewports */
  viewports?: Viewport[]
  /** overrides Kitbook-wide language selection, pass an empty array to use just Kitbook's first language */
  languages?: Language[]
  /** contexts won't be HMRed as context must be set on component init which requires remounting the component */
  contexts?: MockedContext[]
  /** can pass in a string to be @html rendered or a Svelte Component for the default slot - you may find Compositions easier to work with than passing in a default slot but it's here. For named slots, use a Composition. */
  slot?: string | any
  /** don't hydrate variant on client by turning off scripts on iframe */
  csr?: false
  /** don't render on server by waiting until iframe is running client side to render variant  */
  ssr?: false
  tests?: {
    /** skips default snapshot test, but not additional tests */
    skip?: boolean
    /** each additional test will take viewports into account and run once per applicable viewport but will not take languages into account */
    additional?: Record<string, Test>
    /** When running Playwright screenshot tests, wait until there are no network operations for at least 500ms, discouraged except when needing to test hydrated views. Defaults to `false`. */
    clientSideRendered?: boolean
  }
}

I now found this "sort of documented" in the https://kitbook.vercel.app/docs/1-variants/refactor-variants page.
Alternative
No response
Additional context
No response

Glad to see you've been digging in! The reason I haven't thoroughly documented each item is that I haven't fully solidified my API. I've been using Kitbook for a long time now, so you'd think I'd have figured it out, but I'm still discovering new use cases and trying to brainstorm the easiest way to implement them with the least boilerplate. For example, I used to have the props under a property called props and then I tried props root level to cut out a little boilerplate. While it was convenient, when it comes to adding any other config, it's kind of annoying to need to place it all under _meta. So through trial and error, I've realized it is a bad idea.
I also have a few other potential changes in the slow-cooker: notably alignment with the barebones of the Storybook CSF conventions (if they're not ditching regular CSF for Svelte CSF completely, see here); and Svelte 5 support.


VsDoc Intellisense XML not working

While type inference appears to be working quite well, vsdoc appears to not be working.
Here is my version information:
node.js tools  1.0.30109.03
vs2013 12.0.31101.00 update 4
Simple examples of issue:

Here is the same code from the images for copy and paste convenience:
// example to show vsdoc _not working_ in node.js tools  1.0.30109.03 vs2013 12.0.31101.00 update 4

function testFunction(theParameter) {
    /// Function for example in determining if vsdoc is working.
    /// <param name="theParameter" type='Array'>Letting the program know it is an Array</param>
    /// <returns type="Array">The same as the input.</returns>
    return theParameter;
}

testFunction()

// example to show vsdoc _working_ in asp.net project vs2013 12.0.31101.00 update 4

function testFunction(theParameter) {
    /// Function for example in determining if vsdoc is working.
    /// <param name="theParameter" type='Array'>Letting the program know it is an Array</param>
    /// <returns type="Array">The same as the input.</returns>
    return theParameter;
}

testFunction()

Also, I tried jsdoc with webessentials as a workaround, and  the issues I see there are possibly related:
It appears that type inference is overriding explicit jsdoc:

Jsdoc has no effect inside the function body, as I get no intellisense choices or type info:

Actually we don't support vsdoc at all at the moment (that was something we lost when we migrated away from the language service available in the rest of visual studio in favor of a static analysis engine). We do, however, support jsdoc.

OK - this would explain why node.js tools do not have IntelliSense for jQuery inside a JavaScript say.
I've been searching for a way to support IntelliSense for JavaScript in node.js tools, is this possible using jsDoc?

Glad you got it working using JsDoc!
In Node Tools, JsDoc and the inference engine currently provide intellisense. There are no plans to add VsDoc support currently unless we see high demand for it. (Usage of Vsdoc format comments in JavaScript is relatively low).

Thanks pdtdev. This has fixed it for me too.


[Request for External] report 17 "Consolidated Trial Balance"

Dear ALAppExtensions team,
On behalf of 4PS I would like to request to make variable 'GLFilter' protected on report 17 "Consolidated Trial Balance".
protected var
    GLFilter: Text;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Not connected to server

switch(message.toLowerCase()){         case ${prefix}help:             client._sendMessage(0, channel, "Help: ");             break;     }
I got the error:
(node:7124) UnhandledPromiseRejectionWarning: Not connected to server. (node:7124) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:7124) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

There's not enough of your code to tell you exactly what's happening, but you shouldn't use "._sendMessage" as this is an internal method used by the more appropriate ".say" method.

Not sure why but I get the same Not connected to server issue even with the .say function here is my code
const client = new tmi.client(options);

client.connect();

client.on("chat", (chan, user, message, self) => {
    client.say(chan, "pong");
});

I also have the debug on true to see and it says that it connects successfully to the server. Here is the log
[12:34] info: Connecting to irc-ws.chat.twitch.tv on port 80..
[12:34] info: Sending authentication to server..
[12:34] info: Connected to server.
[12:34] info: Joined #zelak312
[12:34] info: [#zelak312] <zelak312>: m!ping
Not connected to server. Promise { <rejected> 'Not connected to server.' }

@ZelAk312 I think you might be spamming the server and getting forcefully disconnected by Twitch. You have an unintended loop:
When the bot sends a message called via the say & action methods, it will emit another "chat" event.
https://github.com/tmijs/tmi.js/blob/4dcfa551c4616d584f3d2e3d6e147bfa3f5256ba/lib/client.js#L1101-L1118
This is where the self boolean value passed in the event is useful.
client.on("chat", (chan, user, message, self) => {
    if(self) {
        return;
    }
    client.say(chan, "pong");
});

Yeah I completely understand but I also changed that to be sure that wasn't the problem and the thing is that it doesn't even send one msg since at the first one it says that the server is not connected


Try to make time more efficient

As usual, one thing led to another.  This gets the same answer as your original version, but it stores some intermediate results in a SentenceBundle for lack of a better name.  I still do not like updateNorms.  It does too much searching and probably gets the wrong answer if there are overlapping text intervals.  That indexWhere will only find the first match, which I'm not sure is the longest one.  More needs to be stuffed into the norm than it can hold, so maybe some rules/conventions need to be made.  That might change the output, so I'm skipping it for now.

Thanks for making everything so readable! For updateNorms we could use a filtered version of multiTextIntervalAndTimeIntervals with the overlapping time expressions filtered out. What do you think?

I'm away from the computer for several hours.
On Mon, May 27, 2019, 8:48 AM EgoLaparra<EMAIL_ADDRESS>wrote:

Thanks for making everything so readable! For updateNorms we could use a
filtered version of multiTextIntervalAndTimeIntervals with the overlapping
time expressions filtered out. What do you think?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/clulab/eidos/pull/582?email_source=notifications&email_token=ACCHCOTHBAZ3FGQGX6ERBPLPXP7F7A5CNFSM4HPZC4V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWKDM6I#issuecomment-496252537,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACCHCOU3VFEXLY4ZN353OFLPXP7F7ANCNFSM4HPZC4VQ
.

Something like that might be good.  I don't think it should hold back your PR.  Maybe others would have an opinion about it that could be discussed at a weekly meeting.  I'm just going to run a few more tests before merging the big one.


Server crashes when start

I'm following the docs and I have the following code
const { Deepstream } = require('@deepstream/server')

/*
The server can take
1) a configuration file path
2) null to explicitly use defaults to be overriden by server.set()
3) left empty to load the base configuration from the config file located within the conf directory.
4) pass some options, missing options will be merged from the base configuration.
*/
const server = new Deepstream()

// start the server
server.start()

And I'm calling it in the terminal and its giving me this issue:
(node:26328) UnhandledPromiseRejectionWarning: Error: No config file found
    at getDefaultConfigPath (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\node_modules\@deepstream\server\src\config\js-yaml-loader.ts:194:9)
    at setGlobalConfigDirectory (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\node_modules\@deepstream\server\src\config\js-yaml-loader.ts:129:7)
    at Object.loadConfigWithoutInitialization (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\node_modules\@deepstream\server\src\config\js-yaml-loader.ts:61:22)
    at Object.loadConfig (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\node_modules\@deepstream\server\src\config\js-yaml-loader.ts:87:24)
    at Deepstream.loadConfig (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\node_modules\@deepstream\server\src\deepstream.io.ts:465:35)
    at new Deepstream (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\node_modules\@deepstream\server\src\deepstream.io.ts:91:10)
    at Object.<anonymous> (C:\ds-demo-spaceshooter-master\ds-demo-spaceshooter-master\srcServer.js:10:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:26328) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:26328) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I was under the impression I don't need to use any config file?
I'm currently using the LTS of Node. (14.16.0)
Anyone have any thoughts on the matter?

Hi, which docs are you following ? Here is the correct description: https://deepstream.io/docs/server/node-api/
In summary just do this: const server = new Deepstream({}) whith an empty object to use the default options.


Wrong 'Order by' priorities in SQL when using multiple OrderBy statements

Using multiple OrderBy statements is sometimes translated with wrong priorities just like the later OrderBy was ThenBy.
This was OK with EF Core 2.0.3 but does not work with 2.1.0 and later.
Unfortunately, I can reproduce the issue only when using Automapper, I was not able to isolate the problem further. However, since the test case works properly when using differrent IQueryable source or EF Core version 2.0.3, I believe the problem is within EF Core.
Please see the gist.
The problem is with the third query where
.OrderBy(x => x.ID)
.OrderBy(x => x.Name)

is translated to SQL as
ORDER BY [x].[ID], [x].[Name]
instead of
ORDER BY [x].[Name], [x].[ID]
The problem is simplified in the example, real use of such feature is to provide a default sorting (first OrderBy call) when returning an IQueryable but allowing the client to apply custom sorting if needed.
Further technical details
EF Core version: 2.1.3
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2017 15.8.5

@maumar - Looks like correlated subquery is doing something funky with ordering.

Triage: we will look at this for 2.2, but will punt to 3.0 if it gets complicated and/or risky.

Problem is indeed caused by correlated collection optimization. When determining order in which the correlated queries should be returned we take all the orderby clauses in the order that they were declared. This is incorrect for corner cases, such as one in the repro. Problem also exists to a certain extent in the Include pipeline, when including collections, although the algorithm used is slightly different so the problem manifests differently and for different cases. Good news is that both queries are returned in the same order, so there is no data corruption - all relevant children are returned and associated with their parents. Its just that the parents come in the different order than expected.

@gius workaround is to change a mapping for the Addresses collection somewhat by adding Skip(0) at the end. This will not change the results but will disable correlated collection optimization which is the source of the issue you are seeing.
Caveat is that queries won't be able to take advantage of the perf boost that comes with this optimization - we will now issue N+1 queries, rather than just 2 (just like we did in EF 2.03).
config.CreateMap<Customer, CustomerDto>().ForMember(c => c.Addresses, mo => mo.MapFrom(e => e.Addresses.Skip(0)));

we changed the way correlated subqueries are implemented - everything will be in one query now so the issue is no longer relevant, closing


[BUG] ERROR CODE 403 WHEN LAUNCHING FROM ROBLOX WEBSITE AND EXCEPTION OCCURED ERROR

Acknowledgement of preliminary instructions

[x] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
Error code 403 when trying to open Roblox from Roblox website with Bloxstrap (Roblox.com, game, launch, bloxstrap opens, loads, error code 403)
If not error code 403 then this error opens: an exception has occured while running bloxstrap
System.Net.Http.HttpRequestException: An error occurred while sending the request.
[Inner Exception]
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
[Inner Exception]
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.
[
Bloxstrap_20240115T155425Z.log
](url)

Error code 403 when trying to open Roblox from Roblox website with Bloxstrap

This error is coming from Roblox itself and doesn't have anything to do with Bloxstrap. Open the Roblox desktop app by launching the 'Play Roblox' shortcut that's on the desktop, log out of your account there and stay logged out, then try and launch from the website. If that doesn't work then you will just have to launch Roblox through the desktop app.

If not error code 403 then this error opens: an exception has occured while running bloxstrap

This seems like your internet connection is being interrupted. You'll just have to relaunch whenever this happens.

Assuming this has been resolved, please reopen if it hasn't.

I got banned for one day. I tried to log out but I'm stuck on the ban screen bloxstrap. I got banned for saying "I hate furry."
I try desktop and web but no work.


Hang with GPT and customized weights

I would like to run FT with a model similar to GPT where layer norms don't include affine transforms (e.g elementwise_affine=False for nn.LayerNorm) and linear layers don't include biases. To make it compatible with the weight format used by ParallelGptOp, I manually add some weights and biases to the checkpoint after training with PyTorch (e.g. setting $\gamma$ to 1 and $\beta$ to 0 for LayerNorm layers).
However, hangs keep happening during the forward pass when I load the weights with ParallelGptOp (see the attached logs). Do you see any issues here? Would it be possible to add some options to disable biases and affine layers?

Can you provide the scripts you run FT?

Never mind. It turns out to be an issue during the checkpoint conversion. I fixed it and it seems to be working with int8_mode = 1 now.
Quick question here. Do these diagrams apply for GPT? I think for GPT, int8_mode = 2 is SmoothQuant, and but can you please provide more information about how int8_mode = 1 works for GPT? I'm struggling to find information about it, in particular how it should perform in comparison with LLM INT8 and SmoothQuant. Is there any paper describing this int8_mode = 1?

int8_mode = 1 is only quantizing the weight, and dequantizing the weight back to fp16 in the gemm, then using FP16 tensor core.


Communication JobRouter Readme Issues

Section link

Reason:
Unknown discriminator mode.
Suggestion:
Update objectType to kind.

Section link

Reason:
1.Property 'Id' do not exist on type 'RouterQueueResponse'.
2.Syntax error.
Suggestion:
1.Update to id.
2.Update to ,.

Section link1,
link2

Reason:
Property 'Id' do not exist on type 'DistributionPolicyResponse'.
Suggestion:
Update to id.

Section link

Reason:
1.Syntax error.
2.Property 'Id' do not exist on type 'RouterQueueResponse'.
3.Parameter error.
Suggestion:
1.Add ,.
2.Update to id.
3.Update to salesQueueResponse.id.

Section link

Reason:
1.JobRouterClient.createJob is not a function.
2.Property 'Id' do not exist on type 'ClassificationPolicyResponse'.
Suggestion:
1.Update to jobRouterClient.
2.Update to id.
@joheredi, @mayurid, @marche0133 for notification.

Thank you for the feedback @zzhxiaofeng.  Readme is updated. Closing this issue.

@williamzhao87 The first issue is not resolved. Please have a look when you are free.

@zzhxiaofeng  Should be resolved here:
https://github.com/Azure/azure-sdk-for-js/pull/27033


Working on support lagom

This is currently a work in progress. Feel free to review, but DO NOT MERGE.

Superseded by PR #32


move importer

@hsaginor I updated the importRoot to content-v2 and moved the custom importer files into the /tools folder.

@icaraps Lets just change content root and keep the importer tools where they are for now. I still need to merge my changes.

Closing in favor of https://github.com/headwirecom/helix-sportsmagazine/pull/71


Code to train model to reproduce the model and evaluate in all experiments

I would like to know the source code related to Section 3 and 4 in the paper.

See: https://github.com/facebookresearch/fairseq/tree/main/examples/mbart
and https://github.com/huggingface/transformers/tree/main/examples


Replace Linter::Javscript with hound-jshint

Remove jshint gem.
Remove jshint from BETA_LANGUAGES list.
Move config/style_guides/javascript.json to hound-jshint.

https://trello.com/c/NDWEJI1G

:100: !!!

I'm happy this is finally a reality!

:confetti_ball: :tada: