Corruption of cookies/premature destruction of sessions by XSS filter malfunction

I've been chasing this one for a while.
Our users were occasionally experiencing being kicked out of the web app I've created for them.
I traced this to cookie corruption which led to a HMAC mismatch error which caused the destruction of the session.
The cookie corruption is actually being caused by sanitize_globals in this part:
	// Clean $_COOKIE Data
	if (is_array($_COOKIE) AND count($_COOKIE) > 0)
	{
		// Also get rid of specially treated cookies that might be set by a server
		// or silly application, that are of no use to a CI application anyway
		// but that when present will trip our 'Disallowed Key Characters' alarm
		// http://www.ietf.org/rfc/rfc2109.txt
		// note that the key names below are single quoted strings, and are not PHP variables
		unset($_COOKIE['$Version']);
		unset($_COOKIE['$Path']);
		unset($_COOKIE['$Domain']);

		foreach ($_COOKIE as $key => $val)
		{
			$cleanKey = $this->_clean_input_keys($key);
			log_message('info', '$_COOKIE before cleaning. Key = ' . $cleanKey . ' Value = ' . $_COOKIE[$cleanKey]);
			$_COOKIE[$cleanKey] = $this->_clean_input_data($val);
			log_message('info', '$_COOKIE after cleaning. Key = ' . $cleanKey . ' Value = ' . $_COOKIE[$cleanKey]);
		}
	}

the "cleaning" part that actually corrupts the cookie is in Security.php in remove_evil_attributes and more specifically here:
	// All javascript event handlers (e.g. onload, onclick, onmouseover), style, and xmlns
	$evil_attributes = array('on\w*', 'style', 'xmlns', 'formaction');

		// find occurrences of illegal attribute strings without quotes
		preg_match_all('/('.implode('|', $evil_attributes).')\s*=\s*([^\s>]*)/is', $str, $matches, PREG_SET_ORDER);

		foreach ($matches as $attr)
		{
			$attribs[] = preg_quote($attr[0], '/');
		}

		// replace illegal attribute strings that are inside an html tag
		if (count($attribs) > 0)
		{

-------->				$str = preg_replace('/(<?)(/?[^><]+?)([^A-Za-z<>-])(.?)('.implode('|', $attribs).')(.?)([\s><]?)([><]*)/i', '$1$2 $4$6$7$8', $str, -1, $count);
}
The problem occurs for me when an encrypted cookie contains "on" somewhere in it.
Here is a cookie that fails:
+35Fh9PDDPCGB04jkDSSToycLbknM1odORXLJhsd7tDImYAxnPw+NxlqfXWFbt3TQULpOTiC74k4+NkLIGWtnIDzTq1ueKtGvE913xEqTU0m6PRWyW+lgqqa+HrfhTtNeLb0uckqEu7d7gVRzWSer4ZV3wFw02AcDIeni7DW7VFGDfgOqjCldTsYKKkuFWwojDD5q+yv7IHIvYyGr9LUj1jgFPCz/T0V6LjCLkciLOvtXOS1xlc8JV1ya0sJmhtJwMwNATvUNrHpIyEczOTOJRLhiKNvHGVy9fjr8+9GRx6csu7CAqz6lzuJDehl3Evx6nD6KytE8mK2JRESN+k5V9fiz+1X61rvH2G4kb0LzzecAJmZ2rrJMVWwNZfvu4RawVFEVYKSRNon0wPe3EXpeIgNfKU9v4RmtKGntRr396Q=b943770faa5d84c664eaa24a1ae456425d4651ea
After passing through the previous piece of code this gets altered to:

5Fh9PDDPCGB04jkDSSToycLbknM1odORXLJhsd7tDImYAxnPw+NxlqfXWFbt3TQULpOTiC74k4+NkLIGWtnIDzTq1ueKtGvE913xEqTU0m6PRWyW+lgqqa+HrfhTtNeLb0uckqEu7d7gVRzWSer4ZV3wFw02AcDIeni7DW7VFGDfgOqjCldTsYKKkuFWwojDD5q+yv7IHIvYyGr9LUj1jgFPCz/T0V6LjCLkciLOvtXOS1xlc8JV1ya0sJmhtJwMwNATvUNrHpIyEczOTOJRLhiKNvHGVy9fjr8+9GRx6csu7CAqz6lzuJDehl3Evx6nD6KytE8mK2JRESN+k5V9fiz+1X61rvH2G4kb0LzzecAJmZ2rrJMVWwNZfvu4RawVFEVYKSRN

totally hacking off the HMAC and some other data and altering the first part of the string. When sess_read goes to work with the altered cookie it fails and kills the session, kicking the user out to the login screen.
I'm not sure what a good permanent fix is to this issue so I'll leave it to you Codeigniter experts.

doogie99,
I have had some issues with that but it has been very sparatic and I was not able to reproduce it to troubleshoot.  Basically our users would get totally kicked out like they were never logged in.  Is that what was happening to your user?  Usually this would be on a form submissions for us.
Thanks

rfulcher,
Yep. Very similar. Very sporadic because it is caused by "on" followed by a word character (regexlib.com/CheatSheet.aspx) showing up in the encrypted cookie used for session tracking. The fairly simple match term is not so uncommon when you get an encrypted cookie + HMAC that can be upwards of 400 chars. Although I haven't explored the likelihood (I'm not a stats major) I'm sure there are likely other false matches that could occur resulting in cookie corruption. A possible solution for the code igniter library is to perhaps check the session tracking cookie for validity first before cleaning it. If the HMAC is invalid or the encrypted portion doesn't decrypt then do the cleaning(?). Experts?

Thanks for the information, very nice find...
On Thu, Feb 5, 2015 at 2:23 PM, doogie99<EMAIL_ADDRESS>wrote:

rfulcher,
Yep. Very similar. Very sporadic because it is caused by "on" followed by
a word character (regexlib.com/CheatSheet.aspx) showing up in the
encrypted cookie used for session tracking. The fairly simple match term is
not so uncommon when you get an encrypted cookie + HMAC that can be upwards
of 400 chars. Although I haven't explored the likelihood (I'm not a stats
major) I'm sure there are likely other false matches that could occur
resulting in cookie corruption. A possible solution for the code igniter
library is to perhaps check the session tracking cookie for validity first
before cleaning it. If the HMAC is invalid or the encrypted portion doesn't
decrypt then do the cleaning(?). Experts?
—
Reply to this email directly or view it on GitHub
https://github.com/bcit-ci/CodeIgniter/issues/3570#issuecomment-73108930
.

--
Robert Fulcher
iWAT LLC
Phone:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>
<EMAIL_ADDRESS>www.iwatllc.com
/Confidentiality Notice__________________________
This email message, including any attachments, is for the sole use of
intended recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message.

This is already fixed in the 2.2.1 release - encrypted session cookies are explicitly excluded from that procedure and they don't go through _clean_input_data(). Just update to the latest CI version.

Thanks narfbg..Awesome..did not know that.

narfbg,
Thanks - I cloned your repo and checked the develop branch before I posted. I guess I didn't look closely enough or in the right place; I thought the problem was still there.

The develop branch is the soon to come 3.0 release ... of course, it also doesn't have that issue, but it's completely different. I'd encourage you to upgrade straight to 3.0 (rc2 is available in the downloads section), but you should know that it's not 2.2.1.
Please post on the forums if you have any more questions as we only deal with bug reports here.


Consider finding different library for joins, or write our own

See todo in datasetutils.ts:

we are moving all dataset calculation and manipulation to the backend in #1474


Cannot build in release on my device

Hi Guys,
I tried to build in release on my device with line on
flutter run  --release -d "XXXXX's iPhone"
but after this lines

Launching lib/main.dart on XXXX 's iPhone in release mode...                                                                                ├─Building Dart code...                                     7.3s                                                                                ├─Generating dSYM file...                                   1.3s
 ├─Stripping debug symbols...                                0.2s
 ├─Assembling Flutter resources...                           7.6s
 └─Compiling, linking and signing...                        36.6s
Xcode build done.                                           81.0s
2019-01-28 20:21:25.298 ios-deploy[58580:9463313] [ !! ] Error 0xe8008016: The executable was signed with invalid entitlements. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Installing and launching...                                         7.9s
Could not install build/ios/iphoneos/Runner.app on 6e78dc71d057046f7d78716009db629e723a75d5.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error running application on  XXXX s iPhone .

this is my flutter doctor
 flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.1.10-pre.189, on Mac OS X 10.14.2 18C54, locale en-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] Connected device (2 available)

• No issues found!

@kangwang1988
It can run with the xcode but not the vscode, So it was a flutter issue?


Postgres won't run

Info:

Docker version ($ docker --version):  Docker version 17.09.0-ce, build afdb6d4
Laradock commit ($ git rev-parse HEAD): 903c77421c8433619a7d6cf79cec68e24ac99266
System info (Mac, PC, Linux): PC
System info disto/version: Windows 10

Issue:
Postgres won't run

Expected behavior:
Postgres should run

Reproduce:
$ docker-compose up -d nginx postgres
$ Starting laradock_postgres_1 ...
$ Starting laradock_postgres_1

Without "done"
$ docker-compose ps
         Name                        Command              State                     Ports
-----------------------------------------------------------------------------------------------------------
laradock_postgres_1       docker-entrypoint.sh postgres   Exit 1

$ docker-compose logs
postgres_1             | 2017-10-13 13:31:26.125 UTC [1] FATAL:  data directory "/var/lib/postgresql/data" has wrong ownership
postgres_1             | 2017-10-13 13:31:26.125 UTC [1] HINT:  The server must be started by the user that owns the data directory.

Can work if change - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data to  - /var/lib/postgresql/data in docker-compose.yml

The problem is in updating the postgres image, which when you change it changes the permissions of the data folder. To solve it simply change - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data to - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql without the 'data'

Removing data worked to solve this for me (and similarly for Redis - I had to change /data to /redis for the volume). I'm using Dinghy on OSX if that makes a difference.

I'm using Windows 10 OS.
I solved it by changing DATA_PATH_HOST=~/.laradock/data to DATA_PATH_HOST=D:\laradock-data-host in laradock/.env file

The problem is in updating the postgres image, which when you change it changes the permissions of the data folder. To solve it simply change - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql/data to - ${DATA_SAVE_PATH}/postgres:/var/lib/postgresql without the 'data'

This works for me too!  thanks @demesiooliveira


🎉 4.0.1

ℹ About this release

Version: 4.0.1
Type: patch
Last Release: 4.0.0 (6/14/2023, 7:14:21 PM) [?]
Commits to merge: 15 [?]

📦 Dependencies

Update node-ical from ^0.16.0 to ^0.16.1

📦 Development Dependencies

Update @sebbo2002/semantic-release-docker from ^3.0.0 to ^4.0.0
Update @semantic-release/npm from ^10.0.3 to ^10.0.4
Update @types/node from ^20.2.5 to ^20.3.1
Update @types/ws from ^8.5.4 to ^8.5.5
Update @typescript-eslint/eslint-plugin from ^5.59.8 to ^5.61.0
Update @typescript-eslint/parser from ^5.59.8 to ^5.61.0
Update c8 from ^7.14.0 to ^8.0.0
Update eslint from ^8.41.0 to ^8.43.0
Update eslint-plugin-jsonc from ^2.8.0 to ^2.9.0
Update tsup from ^6.7.0 to ^7.1.0

:tada: This PR is included in version 4.0.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
Docker container (sebbo2002/vestaboard2mqtt:4.0.1)
v4.0.1

Your semantic-release bot :package::rocket:


ISO15693 customCommands & password protection not working

I have been trying to set password protection for the ICODE SLIX.
The data set here at dataset.
I am using the NfcManager.iso15693HandlerIOS.customCommand() as I am currently developing on IOS.
The react-native-nfc-manager has been fantastic to work with type 2 tags.  But really running into problems on setting password protection for the type 5 tags.
As i understand it, I need to follow the following steps to add password protection to ISO15693 tags.

Generate random number
Set password
Write password
Lock password
Enable password protection

Here is an example of a command that I am using just to generate a random number.
try {
    const tag = await NfcManager.getTag();
    const icMfgCode = 0x04; // Assuming NXP's manufacturer code
    const uidBytes = tag?.id.match(/.{1,2}/g).map(byte => parseInt(byte, 16));
    const response = await NfcManager.iso15693HandlerIOS.customCommand({
      flags: 0x02,
      commandCode: 0xb2,
      data: [icMfgCode, ...uidBytes],
    });

    console.log('response for random number:', response);
  } catch (error) {
    console.error('Failed to get random password:', error);
  } finally {
    NfcManager.cancelTechnologyRequest().catch(err => console.error(err));
  }

This is the structure for the command as defined by the product data sheet.

Avoid using the 64-bit optional UID in the command with the 0x02 flag. If you still want to use a UID, try using the flags: 0x22 and data: [icMfgCode, ...uidBytes.reverse()]. The UID bytes are fetched in reverse order.
Here’s how I use a custom command for the "present password" command for an ST type 5 chip:
const checkPasswordIosCmd = {
flags: Nfc15693RequestFlagIOS.HighDataRate, //Bit 2 SET, High data rate
customCommandCode: 0xb3, //Present Password Command code
customRequestParameters: [0x01, 0x55, 0xAA, 0x55, 0xAA, 0xD7, 0xD3, 0x03, 0xE7],
};
const resp = await NfcManager.iso15693HandlerIOS.customCommand(checkPasswordIosCmd);
In this command, the customRequestParameters array starts with the RF password number, followed by the 8-byte actual password.

I will give this a try.  Thanks.


Padding

Is there anyway to add padding to the view? I want it a specific size but then to be able to add padding to all sides so it "shrinks"

There isn't any padding you can add to the control itself.
However, if I'm understanding you correctly you might be able to do with by enclosing the circular progress ring inside a UIView.
This way you can center the ring inside the UIView and add "padding" accordingly.
Let me know if this makes sense or if I didn't understand what you were asking.

Closing because no reply.
Reopen if you have more information to provide.
Thanks.

How can one change the size of the view? I embedded it in a UIView but it doesn't fill out the enclosing UIView. Be nice to be able to set a percentage of view for width and height. I want to draw a half arc progress bar but unless I start futzing with the code it can't be done.


Snackbars don't go above the bottom bar with attachShy() & translucent navbar #89

#89

You're awesome.


[Demo App] Test new user story when they are built

Test new User Stories
Requirement
As a designer or a accessibility expert
I want to be able to test new features in the app
So That Each time there is a user story being built, a new release is being generated in order for tests to be performed very quickly
General description

Each time a Pull Request is being merged a new version of the app is built.
Users with the right access rights in the core team would be able to download a new version of the app, test it, and provide direct feedback on this new update.

Technical Context
In Android the choice of Firebase was performed and such a mechanism has already being put it place by @paulinea . A new iOS project "ODS Demo" could be added to perform this task.

Jenkins scripts have been updated to launch automatically a build with following rules : every day between 20H00 and 21H00 only if main branch have been updated


Action bar messages?

Would the project consider including the ability to send messages to the action bar, as pictured:

already exists

already exists

Would you mind clarifying? I don't see this in the documentation.

this is an issue tracker, not a support forum


Select Tabs via Keybinding

I did not fond this function in extraterm's keybindings or an issue about this:
I want to switch between tabs with a keyboard command. For example:
Alt+Leftarrow Selects the next left tab or Alt+Rightarrow selects the tab to the right.
Is this possible somehow? If not, this is a feature request :)
Thanks a lot and greetings

This does already exist. You can find it in "Keybindings" settings under "Focus Tab Left/right". On Windows/Linux it is Ctrl+, and Ctrl+. by default.

Alright! It's working, thanks. I was a little bit confused by the naming, but is makes sense. thanks a lot!

If you can come up with a better name, I'm happy to hear it.


datasets options "limit" render error

in file "typeahead.bundle.js" line 1724. if  that.limit - rendered > 0 then suggestions.slice length while < that limit. so the correct code is
var idx = (that.limit > rendered) ? rendered : that.limit;
that._append(query, suggestions.slice(0, idx));

issue can be reproduced and can be fixed with the code above.

Just found that after several hours of debugging.
Thanks for the fix.

Confirm bug. Fix works perfectly. Thanks.

I can confirm that one too. Just found and fixed it in a similar way. Line number in typeahead.jquery.js is 811.

Duplicate of #1232


requestModels is mandatory for a get function?

Hi,
I'm documenting my api and I have a GET function. I didnt add the requestModels tag but when I want to generate the openapi file. I get an error telling me that I need the requestModels tag.
There is a way not to include the requestModels tag for a GET function?
Thanks!

Still an error :/

So, I checked the code, and looks like this is already fixed, but never got released to NPM, tried to use it directly from github, but it needs to perform compilation. @nfour or @brendo, can you guys release the latest to npm?

@nfour sorry to bother you, but when do you think a npm release could happen? :slightly_smiling_face:
In the meantime @diestrin and @chuwito there's a workaround you can do. If you add requestModels: {} you won't get the error and openapi.yml will be generated. Instead you will just get a validation warning saying expected Object {} not to be empty.

@nfour Any news? Is this project dead already?

published.


Anyone still facing this should try this and let me know if it still fails.

Anyone still facing this should try this and let me know if it still fails.
npx --ignore-existing create-react-app your-project-name

Originally posted by @heyimalex in https://github.com/facebook/create-react-app/issues/8134#issuecomment-569353358

@MutyamReddy this is a duplicate of #9652 and can be closed.


Add support for Python 3.8 latest version

If the pip lock file only specifies 3.8 and no bug fix version, it should use Python LATEST_38.
@CaseyFaist I found the bug, this should do the trick.

/ping @heroku/languages

To be clear, we are not accepting pipenv feature requests at this time - however, this appears to be purely a bug fix, so looks good 👍 will test from privileged account next week.

Yes, this is working for all version, but 3.8, so we can sneak this in 😉
Oh BTW, are there any plans to support poetry in the future?

@codingjoe thanks for the fix. I'm closing this, and merging it into #955 so that CI will pass (it requires a token so it won't pass on forked PRs)

Thanks @jkutner !


Authorization verification relationship?

In the /d/did/spec/03_state_transitions.md it says operations will fail if
the signer account address doesn't match the verification method listed in the Authorization verification relationships

Is that meant to be Authentication?
If not, I'm not sure how to parse it, as there is not an Authorization verification relationship in did-core.

Thanks for reviewing the docs, yes you are correct that is a mistake in the doc
:arrow_down:  this is the data structure :arrow_down:
https://github.com/allinbits/cosmos-cash/blob/main/proto/did/did.proto#L44


UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4796: character maps to

I am trying to parse this pdf file.
>>> pdf = "R140910A.pdf"
>>> text = textract.process(pdf).upper()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/textract/parsers/__init__.py", line 58, in process
    return parser.process(filename, encoding, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/textract/parsers/utils.py", line 46, in process
    unicode_string = self.decode(byte_string)
  File "/usr/local/lib/python3.5/dist-packages/textract/parsers/utils.py", line 65, in decode
    return text.decode(result['encoding'])
  File "/usr/lib/python3.5/encodings/cp1254.py", line 15, in decode
    return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4796: character maps to <undefined>
>>> import chardet
>>> chardet.__version__
'3.0.4'

As suggested in #133 and #107, I tried chardet 2.1.1.  I get another error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/textract/parsers/__init__.py", line 58, in process
    return parser.process(filename, encoding, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/textract/parsers/utils.py", line 46, in process
    unicode_string = self.decode(byte_string)
  File "/usr/local/lib/python3.5/dist-packages/textract/parsers/utils.py", line 64, in decode
    result = chardet.detect(text)
  File "/usr/local/lib/python3.5/dist-packages/chardet/__init__.py", line 21, in detect
    import universaldetector
ImportError: No module named 'universaldetector'

That's probably a bug in their repo, because it should from chardet.universaldetector import UniversalDetector.  But it shows: 2.1.1 does not solve the issue.

I've got same error "UnicodeDecodeError: 'charmap' codec can't decode byte" trying parse http://pesquisa.in.gov.br/imprensa/jsp/visualiza/index.jsp?data=14/10/2014&jornal=1&pagina=3

I recently started using pyup-bot to track dependency version changes. It looks like https://github.com/chardet/chardet/issues/98 is fixed now in chardet and, according to pyup-bot and PR #166, chardet 3.0.4 is passing all tests.
@vitormorales's file is working with chardet 3.0.4 :tada:
@Michael-E-Rose's R140910A.pdf file and is still causing errors, but a different one now:
vagrant@dev:/vagrant$ textract R140910A.pdf
Traceback (most recent call last):
  File "/vagrant/bin/textract", line 32, in <module>
    main()
  File "/vagrant/bin/textract", line 25, in main
    output = process(**vars(args))
  File "/vagrant/textract/parsers/__init__.py", line 77, in process
    return parser.process(filename, encoding, **kwargs)
  File "/vagrant/textract/parsers/utils.py", line 47, in process
    unicode_string = self.decode(byte_string)
  File "/vagrant/textract/parsers/utils.py", line 65, in decode
    return text.decode(result['encoding'])
  File "/usr/lib/python2.7/encodings/cp1254.py", line 15, in decode
    return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4796: character maps to <undefined>

Digging into chardet a bit, it appears that chardet is not terribly confident in the encoding:
{
    'confidence': 0.5739492570454361,
    'language': 'Turkish',
    'encoding': 'Windows-1254'
}

Do you know what the encoding should be? This might be a good test case for chardet and a good place to file the issue.

The language should certainly be English, and the encoding probably latin1.  I have no idea why it's being detected as Turkish.
I'm happy to file an issue with chardet, but please tell me: How did you get the detection result?

Huh. Filing the issue with chardet will definitely be good. I know that the maintainer was actively working on some major revisions and test cases are helpful.
For debugging, I added a print statement here like this:
        # use chardet to automatically detect the encoding text
        result = chardet.detect(text)
        print result
        return text.decode(result['encoding'])

Sorry if I have to ask again: What exactly happens after
>>> import textract
>>> pdf = "R140910A.pdf"

so that I get the result above? Because with result = chardet.detect(text), I'd have to use a string object and not a filename.

You have to edit the textract source code directly using the instructions above. Does that make sense?

Hello, this issue is still here. Is there something a can do to solve the problem now?

Hi, this is still an issue on certain PDFs even with chardet==3.0.4. Is there a way to force a certain encoding? (Maybe by making a child of the pdf parser class and passing an instance of it in extension=)

I have found chardet to not work well, and UnicodeDammit from beautifulsoup4 works much better. chardet seems to return 'unknown' a whole lot and UnicodeDammit seems to get it correct.

It also seems like the encoding argument in process() is ignored.

So this means the text file is valid UTF8 but textract is incorrectly reading it as "charmap" default windows encoding?


Incomplete description of 'slng'

The description for 'slng' says “Only one instance See below for additional details.” It should be “Only one instance is used. See below for additional details.” as it is for 'dlng'.

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

ID: d8f6ed4e-64e4-2176-f903-c2778419d391
Version Independent ID: bb311713-0340-4c84-180d-b0016a18fefe
Content: meta — Meta table specification - Typography
Content Source: typographydocs/opentype/spec/meta.md
Product: windows
GitHub Login: @PeterCon
Microsoft Alias: PeterCon

Fixed for the next version. Thanks!


fix h3 font styling

servicenow.com:

main:

on mobile, this is even stronger
(servicenow.com on the left, main on the right)


Prow issue: lgtm suggestion is provided unnecessarily

E.g., https://github.com/tikv/tikv/pull/9430#issuecomment-755039808
In this case I wrote "lgtm" as a review summary comment when I approved the PR. The suggestion from the bot is therefore unnecessary. Perhaps you can check for this case?

This response is generated by the ti-community-autoresponder plugin, at present, this plugin does not distinguish different types of comments in the configuration. Maybe we can add this feature? @hi-rustin

This response is generated by the ti-community-autoresponder plugin, at present, this plugin does not distinguish different types of comments in the configuration. Maybe we can add this feature? @hi-rustin

Currently the autoresponder plugin can't decide whether to approve or not, it will only reply based on the content. And the reply will be removed at the end of this month. Maybe we can add a sentence that if you have already approved the PR please ignore this reply, the autoresponder will be removed on January 31, 2020.
@nrc  @Mini256 What do you think?

Currently the autoresponder plugin can't decide whether to approve or not, it will only reply based on the content. And the reply will be removed at the end of this month. Maybe we can add a sentence that if you have already approved the PR please ignore this reply, the autoresponder will be removed on January 31, 2020.
@nrc  @Mini256 What do you think?

This response is generated by the ti-community-autoresponder plugin, at present, this plugin does not distinguish different types of comments in the configuration. Maybe we can add this feature? @hi-rustin

Maybe it can be supported. (I'm not sure if it's better to have it support distinguishing between various comment events, or to keep it to content-only replies.)

This response is generated by the ti-community-autoresponder plugin, at present, this plugin does not distinguish different types of comments in the configuration. Maybe we can add this feature? @hi-rustin

Maybe it can be supported. (I'm not sure if it's better to have it support distinguishing between various comment events, or to keep it to content-only replies.)

/assign

/assign

the autoresponder will be removed on January 31, 2020

Do you mean that this function of the bot is temporary? If so, then it's not worth doing anything.
I don't think it is worth changing the language. But being able to tell the difference between a review comment and a regular comment sounds like it might be more generally useful.

Yes, this is just a temporary reply during the bot migration, and will be removed once everyone is familiar with the new bot.
We can already distinguish between a normal comment and a review comment, but we can't tell if it's an approved review comment.

the autoresponder will be removed on January 31, 2020

Do you mean that this function of the bot is temporary? If so, then it's not worth doing anything.
I don't think it is worth changing the language. But being able to tell the difference between a review comment and a regular comment sounds like it might be more generally useful.

Yes, this is just a temporary reply during the bot migration, and will be removed once everyone is familiar with the new bot.
We can already distinguish between a normal comment and a review comment, but we can't tell if it's an approved review comment.


examples parameter error  text davinci 003

InvalidRequestError: Unrecognized request argument supplied: example
'''
code:
response = openai.Completion.create(
engine="text-davinci-003",
prompt="Write a catchy slogan for a product.\n",
examples=[
{
"input": "A toothpaste that whitens your teeth and freshens your breath.",
"output": "Sparkle and shine with every smile."
},
{
"input": "A shampoo that nourishes your hair and prevents dandruff.",
"output": "Healthy hair starts with Head & Shoulders."
}
],
max_tokens=10,
temperature=0.5,
stop="\n"
)
print(response["choices"][0]["text"])
'''

I want to perform few shot prompting suggest me how to proceed

These kinds of questions are better suited for community.openai.com


iq-tree method

I've made two new phylogenetic tree constructions methods for q2-phylogeny based on IQ-TREE v1.5.5 as available from bioconda.
The two methods are:

iqtree: returns a single tree.
iqtree-ultrafast-bootstrap: similar to the existing raxml-rapid-bootstrap. This will return a tree with bootstrap supports.

Woohoo, thanks @mikerobeson! This looks great! Super excited to have more tree-building options in QIIME 2!

@mikerobeson - want to edit the placeholder I added to the changelog? It should be editable for you, if not please let me know!

Thanks @thermokarst! I slightly reworded the text in the changelog. I'll eventually add IQ-TREE related content to the q2-phylogeny community tutorial.

Cool! Once you are ready we can start to come up with a plan for migrating that tutorial to the official tutorials, if you want. Just let us know what you want to do!


Strings

🚀 Feature
Allow me to add

Reverse Words in a String
Longest Palindrome in a string
Roman Number to Integer and vice versa
Implement ATOI/STRSTR
Longest Common Prefix

Have you read the Contributing Guidelines on Pull Requests?
YES
Motivation
Strings is quite an commonly used data structure and is quite frequently asked in interviews.
Pitch
Strings are like sentences. They are formed by a list of characters, which is really an "array of characters". Strings are very useful when communicating information from the program to the user of the program. They are less useful when storing information for the computer to use.

Please assign me all of these
@shraddhavp  @iamrajiv

Please assign me all of these
@shraddhavp  @iamrajiv


Add task to ensure common Munin plugins are enabled

Add a task to ensure that specific Munin plugins will always be
installed.
Two network plugins have been explicitly enabled, which are enabled by
default on Ubuntu 14.04, but not 12.04.

:+1:


Different number of anchors

Hi,
has anyone ever tried to use more or less anchors than the default (=9)?
Even though "gen_anchors.py" allows for more anchors to be computed, "yolo.py" seems to be hard coded to exactly 9 anchors.
It's clear that the number of anchors must be divisible by 3 (each 'YoloLayer' is passed one third of the anchors). So I tried changing the calls to YoloLayer:
loss_yolo_1 = YoloLayer(anchors_yolo1, #anchors[12:] ...
loss_yolo_2 = YoloLayer(anchors_yolo2,#anchors[6:12] ...
loss_yolo_3 = YoloLayer(anchors_yolo3,#anchors[:6] ...
and made sure that "anchors_yolo1" etc.  contain one third of the anchors:
anchors = [4, 11, 4, 72, 14, 113, 17, 329, 18, 22, 27, 48, 40, 88, 54, 278, 85, 36, 92, 99, 259, 107, 321, 313]
anchors_yolo1 = [85, 36, 92, 99, 259, 107, 321, 313]
anchors_yolo2 = [18, 22, 27, 48, 40, 88, 54, 278]
anchors_yolo3 = [4, 11, 4, 72, 14, 113, 17, 329]
But then I ran into the following error:
InvalidArgumentError: Dimensions must be equal, but are 3 and 4 for 'yolo_layer_1/mul' (op: 'Mul') with input shapes: [?,?,?,3,?], [1,1,1,4,2]. ---> 94         pred_wh = tf.expand_dims(tf.exp(pred_box_wh) * self.anchors / net_factor, 4)
I have a hunch that the 3 in this line
\# adjust the shape of the y_predict [batch, grid_h, grid_w, 3, 4+1+nb_class]
y_pred = tf.reshape(y_pred, tf.concat([tf.shape(y_pred)[:3], tf.constant([3, -1])], axis=0))
relates to the default 3 anchors per layer, and tried changing it to the number of anchors per layer (4 in the example above). But that just leads to further errors:
InvalidArgumentError: Dimensions must be equal, but are 3 and 4 for 'yolo_layer_1/add' (op: 'Add') with input shapes: [4,?,?,3,2], [?,?,?,18,4,?]. ---> 66         pred_box_xy    = (self.cell_grid[:,:grid_h,:grid_w,:,:] + tf.sigmoid(y_pred[..., :2]))  # sigma(t_xy) + c_xy
Could anyone tell me what changes are necessary to have an arbitrary (divisible by 3) number of anchors?
Thank you!

What are the changes required to run YOLO3 with 4 anchors per scale?


Only one sentinel connected in Sentinel Mode using JSON

Expected behavior
Redisson add all sentinels
Actual behavior
Add only the first one, ignoring the other two.
[main] INFO org.redisson.connection.SentinelConnectionManager - master: redis://<IP_ADDRESS>:6379 added
[main] INFO org.redisson.connection.SentinelConnectionManager - slave: redis://<IP_ADDRESS>:6379 added
[redisson-netty-2-12] INFO org.redisson.connection.SentinelConnectionManager - sentinel: redis://<IP_ADDRESS>:26379 added
[redisson-netty-2-20] INFO org.redisson.connection.pool.PubSubConnectionPool - 1 connections initialized for <IP_ADDRESS>/<IP_ADDRESS>:6379
[redisson-netty-2-27] INFO org.redisson.connection.pool.SlaveConnectionPool - 24 connections initialized for <IP_ADDRESS>/<IP_ADDRESS>:6379
[redisson-netty-2-32] INFO org.redisson.connection.pool.MasterConnectionPool - 24 connections initialized for <IP_ADDRESS>/<IP_ADDRESS>:6379

When the added sentinel and the master fail, even if fail over happens normally with the other 2 sentinels, redisson dont reconnect.
Steps to reproduce or test case
Configure de redisson with Tomcat 9
Redis version
5.0.5
Redisson version
3.11.1
Redisson configuration
{
   "sentinelServersConfig":{
      "idleConnectionTimeout":10000,
      "connectTimeout":10000,
      "timeout":3000,
      "retryAttempts":3,
      "retryInterval":1500,
      "failedSlaveReconnectionInterval":3000,
      "failedSlaveCheckInterval":60000,
      "password":null,
      "subscriptionsPerConnection":5,
      "clientName":null,
      "loadBalancer":{
         "class":"org.redisson.connection.balancer.RoundRobinLoadBalancer"
      },
      "subscriptionConnectionMinimumIdleSize":1,
      "subscriptionConnectionPoolSize":50,
      "slaveConnectionMinimumIdleSize":24,
      "slaveConnectionPoolSize":64,
      "masterConnectionMinimumIdleSize":24,
      "masterConnectionPoolSize":64,
      "readMode":"SLAVE",
      "subscriptionMode":"SLAVE",
      "sentinelAddresses":[
         "redis://<IP_ADDRESS>:26379",
         "redis://<IP_ADDRESS>:26379",
         "redis://<IP_ADDRESS>:26379"
      ],
      "masterName":"mymaster",
      "database":0
   },
   "threads":16,
   "nettyThreads":32,
   "codec":{
      "class":"org.redisson.codec.FstCodec"
   },
   "transportMode":"NIO"
}

please set logging level to TRACE for org.redisson and share output


Writing m4a tags seems to render the file unplayable in some cases

Reproducer
use std::{
    fs::{copy, remove_file},
    path::Path,
    process::Command,
};

use lofty::{Accessor, Probe, Tag, TagExt, TagType, TaggedFileExt};

pub fn write_tag(dest: &Path) {
    let mut dest_file = Probe::open(&dest)
        .expect("can't open")
        .read()
        .expect("can't read");
    let tag = Tag::new(TagType::Mp4Ilst);
    let mut dest_tag = dest_file.insert_tag(tag).expect("no tag");
    dest_tag.set_artist("test artist".to_string());
    dest_tag.save_to_path(dest).expect("can't write");
}

fn main() {
    let _ = remove_file("encoded.m4a");
    let _ = remove_file("tagged.m4a");
    Command::new("afconvert")
        .args(["-d", "aac", "-f", "m4af", "test.flac", "encoded.m4a"])
        .output()
        .expect("couldn't encode file");
    println!("encoded to encoded.m4a");
    copy("encoded.m4a", "tagged.m4a").expect("copy failed");
    println!("copied to tagged.m4a");
    write_tag(Path::new("tagged.m4a"));
    println!("wrote tag to tagged.m4a");
}

Summary
Writing a new tag to an m4a file seems to corrupt the file somehow and make it unplayable.
Running afplay test.m4a on the file generated above reports this error:
Error: AudioQueueStart failed ('bada')
And the file is also unplayable in the finder.
Note that this only seems to happen with m4a files created with afconvert. If I use ffmpeg to transcode the flac file to m4a and then write the tag with lofty the resulting file is playable.
Expected behavior
The file should still be a playable m4a file after writing the tag.
Assets
https://github.com/milesegan/lofty-m4a-bug

Thanks for the report and all the information. Could you also provide the file created with afconvert prior to running it through Lofty? I do not have access to afconvert (I think?).

Sorry about that. I've updated the repo to include the file before tagging and I'm also attaching it here. I believe afconvert is part of the OS on Macs but that's the only way to get access to it.
Thanks for all your work on lofty, by the way!
encoded.m4a.zip

Awesome, thanks!
I'm pretty sure this is just caused by the offset atoms, which need to be updated anytime the position of atoms change. I forgot they existed, since I don't have any files using them in my library. I'll try and get that fixed in the next couple days.

Thanks for your quick attention on this!
This year I'm going to try to help you out with some of the good first issue issues.

Could you try out #318 and see if it fixes the issue for you?

Yep it seems to be working now. Thanks for the quick fix!


feat(GUI): implement support for post-flash image instructions

We've recently added support for an instructions markdown file at
_info/instructions.markdown. This PR does the following things to
integrate this into the Etcher experience:

Implement OSMarkdownWindow, a set of components to safely render a
markdown file as a separate dependent Electron BrowserWindow.
Upgrade etcher-image-stream to v4.2.0, which contains the
instructions.markdown addition.
Implement SelectionStateModel.getImageInstructions(), to be able to
easily access the image instructions from the selected image at
runtime.
Add an "Instructions" button link in the Finish page, that triggers
OSMarkdownWindow with the current image instructions, if any.

Change-Type: minor
Changelog-Entry: Implement support for post-flash image instructions in extended image archives.
Signed-off-by: Juan Cruz Viotti<EMAIL_ADDRESS>

See https://github.com/resin-io/etcher/issues/697

I'll close this PR since the current implementation is no longer aligned with what is being discussed in the issue.


Implementing CircularConvolution and CircularCorrelation Layers or Merges

This is a repost from Keras-users.
Hello,
I'd like to implement Holographic Embeddings of Knowledge Graphs in Keras, but I'm stumped as to how to go about it.
The key math is in Eq. 8: the k-th entry of the circular correlation is an inner-product between a and b circularly shifted forward by k indices.
I was thinking that the most direct way to do this would be to add a new merge mode, nothing in the backend documentation jumped out at me as being relevant to getting this done.
The only relevant function I found that should help is theano.tensor.roll
Any ideas of how to implement this in an efficient, elegant way with the tools available in the Keras backend? Hopefully something that would also work with TensorFlow so I could submit a pull request.
Thanks.

For posterity, this is how you do it with TensorFlow. I have no idea if this will work with Theano.
def holographic_merge(inputs):
    a, b = inputs
    a_fft = tf.batch_fft(tf.complex(a, 0.0))
    b_fft = tf.batch_fft(tf.complex(b, 0.0))
    ifft = tf.batch_ifft(tf.conj(a_fft) * b_fft)
    return tf.cast(tf.real(ifft), 'float32')

How do you compute the gradients for a,b ? I implement it with Theano.andbox.fourier.fft, ifft, but gradient for fft, ifft is not implemented yet, I guess (aborts with an error: Elemwise{real,no_inplace}.grad illegally returned an integer-valued variable. (Input index 0, dtype complex128))

@sergeyf Implementation for tensorflow can be found in OpenKE

Thanks!
On Nov 28, 2017 6:28 AM, "Hui Li"<EMAIL_ADDRESS>wrote:

@sergeyf https://github.com/sergeyf Implementation for tensorflow can
be found in OpenKE
https://github.com/thunlp/OpenKE/blob/9a2cc3f838e1bddb2fe8f65b9747d3aba36a72c1/models/HolE.py
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fchollet/keras/issues/2518#issuecomment-347494786,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABya7C0j5KRXwk-WIsHPNlGpq8XByuj4ks5s6-5UgaJpZM4IQES6
.


Installer problems on mac os arm64

Just to report some problems that may prevent an easy installation of Githooks on a mac os with ARM.
Description
Installer Dependencies
On a mac os (13.5.1 with arm64), during the installation with the provided script I get the following error:
> curl -sL https://raw.githubusercontent.com/gabyx/githooks/main/scripts/install.sh | bash -s -- -- \
    --dry-run
bash: line 12: local: -n: invalid option
local: usage: local name[=value] ...

This is because the default bash version on a mac OS seems to be 3.2.57. With this version, local doesn't accept any option and declare doesn't accept -n option, that are present in bash 5.

Thanks!


CSS issue

Created html document that meets CSS issue standards. Fixes #4

The page generally solves the CSS issues. However, it is a completely standalone project. The point of the first week's issues is to design a portfolio and iteratively build towards that. This should build on top of that design as well as on top of the HTML lesson.

The page generally solves the CSS issues. However, it is a completely standalone project. The point of the first week's issues is to design a portfolio and iteratively build towards that. This should build on top of that design as well as on top of the HTML lesson.

Ah ok I understand. Unfortunately this is never mentioned in any of the documentation that I have read thus far. If I had know this my HTML document on issue #1 would not have been filled with nonsense like the lorem and headings that where used.

Ah ok I understand. Unfortunately this is never mentioned in any of the documentation that I have read thus far. If I had know this my HTML document on issue #1 would not have been filled with nonsense like the lorem and headings that where used.

This makes sense. We'll work on updating that in the instructions. Thanks for bringing it to my attention.

is there any more issues with the css and htm ...??

This repo is for students of Vets Who Code. They're currently working through these issues as a part of a course. We are working on a contribution guide to our organization. Thanks for looking to help us out and stay tuned.


Looping through large amounts of data

Hi Oisin,
I'm working with Kate Jones using BatDetect to analyse sound files from Jersey. I've got data from 90 sites across the island, each site surveyed 3 times and stored in different folders.
The file structure is as follows:
Survey night (with reference and date)\grid square.wav files (around 2000-2500 per night)
There were 15 survey nights and most have 30 grid squares for each, although some have fewer where repeats were carried out.
The issue we are having is that we would like to run a loop in BatDetect so that it automatically cycles through each folder and outputs the results in the same folder as the data. But we are unsure whether to alter the code at lines 94-95 and put the loop there, or whether to write a separate piece of code which feeds in at this point.
We'd be very grateful for any suggestions you have on the best way of doing this.
Many thanks and best wishes,
Henry Glynn

Hi Henry,
I think you have three options:

Don't do anything. The code will output the results in a single csv file and you can split that up any way you want afterwards. My vote.

Have you tried running the code as is. It should output the results in a separate folder for each survey night - but it won't be in the same folder as the data.

Alternatively, if I understand your request correctly,  you could do the following:

data_dir = 'wavs/'
op_ann_dir =op_ann_dir
op_ann_dir_ind = op_ann_dir

And on line 42 set:
op_file_name = op_ann_dir_ind + file_name_basename[:-4] + '-sceneRect.csv'

Best of luck!

It should have no problem with either of the following settings:
wav_dir/file_1.wav
wav_dir/file_2.wav
wav_dir/file_3.wav
...

or
wav_dir/wav_sub_dir_1/file_1.wav
wav_dir/wav_sub_dir_1/file_2.wav
wav_dir/wav_sub_dir_2/file_3.wav
...

It looks like you might be having problems with combining back-slashes and forward-slashes - individual_results/\C_1. I think this is because windows uses back-slashes by default.
I updated the code, so if you re-download run_detector.py it should hopefully not throw an error. Unfortunately, I dont have a windows machine handy so I cant test it myself right now.

Hi Oisin,
Thank you so much for this. I’ve just re-run your updated code and it has worked for my test data. When my main dataset is ready tomorrow, I’ll try it with that.
Many thanks and best wishes,
Henry
From: Oisin Mac Aodha<EMAIL_ADDRESS>Sent: 02 August 2018 16:43
To: macaodha/batdetect<EMAIL_ADDRESS>Cc: Glynn, William<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [macaodha/batdetect] Looping through large amounts of data (#3)
It should have no problem with either of the following settings:
wav_dir/file_1.wav
wav_dir/file_2.wav
wav_dir/file_3.wav
...
or
wav_dir/wav_sub_dir_1/file_1.wav
wav_dir/wav_sub_dir_1/file_2.wav
wav_dir/wav_sub_dir_2/file_3.wav
...
It looks like you might be having problems with combining back-slashes and forward-slashes - individual_results/\C_1. I think this is because windows uses back-slashes by defaulthttps://medium.com/@ageitgey/python-3-quick-tip-the-easy-way-to-deal-with-file-paths-on-windows-mac-and-linux-11a072b58d5f.
I updated the code, so if you re-download run_detector.py it should hopefully not throw an error. Unfortunately, I dont have a windows machine handy so I cant test it myself right now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/macaodha/batdetect/issues/3#issuecomment-409971774, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AoDeGy6iJbTvCwYR1N0WwbwtEeGtqhPNks5uMx4PgaJpZM4Vql6A.

Great.


Feature: cut alpha into beta for v2 API change

Type of feature
🍕 Feature
Current behavior
Related: https://github.com/open-sauced/api/issues/478
Suggested solution
This is more or less a tracking issue for coordinating cutting alpha --> beta for the big v2 API change. Once the cutover in the API repo happens from alpha --> beta, we'll want to also cut this in.
There are still a few things that need updating in the client code before this can be done.
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

Closed by: https://github.com/open-sauced/app/pull/2532


UnFold Function

Recursively execute a given function where the result of each iteration is collected within a collection

Move to low priority, awaiting a better finalisation of syntax #10


Grouping requirements

requirements.txt seems to contain both base, development and deployment dependancies. This may lead users to install unnecessary packages on some cases, for example package like flake8 may be unnecessay for production deployment  while gunicorn may be unnecesary for development installation and if someone wants to deploy doccano using a different application server like uWSGI.
I think it would be better to have separate requirements files for different use cases, for example

requirements.txt for basic requirements
requirements_dev.txt for development requirements
requirements_<gunicorn/something>.txt for deployment or platform specific requirements

I have done that at https://github.com/tehamalab/doccano/tree/requirements . If it sounds good  I can submit a pull request
Additionally, why tornado is among the dependancies?
Thank you very much building doccano.

Good idea! But Pipfile may be a better solution.
If possible, please consider to use Pipfile and Pipfile.lock.


Issues with the documentation on updating component references to Nuget as it doesn't mention what to do if using Visual Studio 2019

I'm having a hard time telling which are component references or nuget packages as there is no "components" folder under any of my projects(platform-specific or platform-agnostic).I'm using Visual studio 2019 version 16.2.4.

Can you please share with documentation you are referring to? Thanks!

https://docs.microsoft.com/en-us/xamarin/cross-platform/troubleshooting/component-nuget?tabs=windows.

@johnfredrick as the page mentions, Xamarin Components were discontinued in 2018, so there will be no Components folders in the latest versions of Visual Studio. This is by design.

if you haven't already resolved your question, please open a new issue. As the page explains, component references are a specific kind of XML element in your .csproj so you should be able to identify components by inspecting the .csproj file in a text editor.


Doc-3441 rbac refresh

Refresh RBAC and API sections of Platform docs.
Purely editorial, no technical changes.
Major changes (16 topics)

Access Control section (12 topics)

User management and access control are now recombined as one section since you have to do them together. You can't have users without roles.
Revised all topics.
Combined some topics together and moved information around to minimize duplication.

APIs section (4 topics)

Moved some things from RBAC to API section where they are more appropriate.
Combined "Use the Harness REST API" into "Get started with Harness APIs" because the content was highly repetitive.
Combined two JWT topics into one. There was no clear need for separate topics.
Refreshed the API topics.

Minor changes (1 topic)

Authentication - Single Sign-On (SSO) with SAML - Quick revision for readability and to correspond with automated provisioning topics in RBAC section.

Not for review
Link updates
Typos
Change link text to match destination

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

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

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


fix cpu chart does not reload when search new address

Pull Request Test Coverage Report for Build 566

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

Totals

Change from base Build 564:
0.0%

Covered Lines:
92

Relevant Lines:
103

💛  - Coveralls


[StatsCoordinator] Dont use string interpolation when constructing qu…

…tries
\c @floere @orta

I don't understand what's going on, so I'm happy to leave it to @floere

I would not want to take away such a marvellous learning experience from you! Back atcha, @orta :)

This prevents the possibility of SQL injection


fix:langcodes

the lang code standard assumes region is upper case, however mycroft forced a lower case lang code which is now causing issues if the standard is used
besides handling this, dialect support is now improved by using langcodes library distance function, ensuring the best dialect is selected

Summary by CodeRabbit

New Features

Enhanced language resource management for improved directory handling.
Introduced a scoring mechanism for assessing language code similarities.

Bug Fixes

Updated logic for determining the appropriate language resource directory.

Documentation

Added deprecation warnings for certain parameters and functions to improve clarity.
Updated comments to reflect changes in language directory handling.

Chores

Updated version constraint for the ovos-utils package and added a new dependency, langcodes.

Tests

Removed test case for the new skill GUI implementation while retaining legacy skill GUI tests.

closes #243


add add impulse at point

add `add impulse at point` (add impulse at point)

nevermind, just found this in changelog:
- Add `ExternalForce::at_point` and `ExternalImpulse::at_point` to apply a force/impulse at a specific point
  of a rigid-body.

gonna try it out now


[tree_sitter] Update tree-sitter-cli version to 0.22.2

I'll push a commit that addresses the comments about the bindings location which is a little simplification to the update and should produce less conflicts with other branches. Please tell if there are any concerns. We can still work with it :+1:


Simple frontpage alert/news service

It would be nice to have a banner when something goes wrong.
Perhaps this is possible without rebuilding the whole app, like if we build a small server which only hosts that string. Should be possible similar to https://github.com/kthcloud/llama-prefetch

Will be available at https://alert.app.cloud.cbh.kth.se/ soon


[Removal]: One of the few truly deployed devices in Taiwan, request to be lifted

Hotspot Name
Brief Pickle Otter
Hotspot b58 Address
112tv3X5m2MnnsDLwijDmDiMsWKMAMifz7YCxBU3b5zLEKS9Z5uq
Discord Handle
No response
Hotspot Manufacturer
RAK
Removal Reason
Has been truly deployed, can withstand any test, request unblocking and reply
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information

@6CornerDefender

https://user-images.githubusercontent.com/114550800/196588524-aabd3659-baa3-465c-9a55-07ea6fc19431.mp4
@6CornerDefender

@KXI1I may also need your help. Three of my hot spots were mistakenly sealed. With your help, one of them was unsealed, but the other two are still unprocessed
https://github.com/helium/denylist/issues/8029
https://github.com/helium/denylist/issues/8028

72506bcad1ad4d0c207c1c8e4e9a128e.mp4
@6CornerDefender

This is a real Google Maps image, so you can compare my video

72506bcad1ad4d0c207c1c8e4e9a128e.mp4
@6CornerDefender

This is a real Google Maps image, so you can compare my video

72506bcad1ad4d0c207c1c8e4e9a128e.mp4
@6CornerDefender

This is a real Google Maps image, so you can compare my video

@kxi1

@KXI1

https://github.com/helium/denylist/issues/8028
This hotspot is also mine. I hope you can review it as well


The Android app cannot load the Flutter control when launching the Release APK. Integration with existing Android app

Androidアプリは、Release APKの再生時にFlutterコントロールを読み込めません。これは、Flutterの既存のAndroidアプリを追加するためです。

The flutter control is not displayed in the Android Studio release version APK

Hi @tianzhiguo123
can you please provide your flutter doctor -v?
Also, to better address the issue, would be helpful
if you could post a minimal project to reproduce it

This is a project of our company. Demo can't be reproduced

Hi @tianzhiguo123
can you please provide your flutter doctor -v?
Also, to better address the issue, would be helpful
if you could post a minimal project to reproduce it

This is a project of our company. Demo can't be reproduced

@tianzhiguo123
does it work in debug mode?

Duplicate of https://github.com/flutter/flutter/issues/54938


Python 3 fixes (dashboard related)

These came up when I was updating the dashboard to python 3.
d5ab680 had this ERROR
com.google.fonts/check/038 FontForge validation outputs error messages?

    ERROR Failed with TypeError: a bytes-like object is required, not 'str'
    traceback

      File "/usr/local/lib/python3.6/dist-packages/fontbakery/checkrunner.py", line 350, in _exec_check
        for sub_result in result:  # Might raise.
      File "/usr/local/lib/python3.6/dist-packages/fontbakery/specifications/general.py", line 232, in com_google_fonts_check_038
        for line in fontforge_check_results["ff_err_messages"].split('\n'):

2d8208e had this ERROR:
com.google.fonts/check/018 Checking OS/2 achVendID.

   ERROR   The condition <FontBakeryCondition:registered_vendor_ids> had an error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 17812: ordinal not in range(128)
   traceback

     File "/usr/local/lib/python3.6/dist-packages/fontbakery/checkrunner.py", line 382, in _evaluate_condition
       return None, condition(**args)
     File "/usr/local/lib/python3.6/dist-packages/fontbakery/callable.py", line 71, in __call__
       return self._func(*args, **kwds)
     File "/usr/local/lib/python3.6/dist-packages/fontbakery/specifications/googlefonts.py", line 550, in registered_vendor_ids
       content = open(CACHED).read()
     File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
       return codecs.ascii_decode(input, self.errors)[0]

475596d since https://github.com/googlefonts/fontbakery/commit/67eaeb9479e7cf7e298c44a41d7b4d7b0c2d247e it seems like we were looking here for an APACHE.txt file, but it should be LICNESE.txt for apache families:
com.google.fonts/check/117 Version number has increased since previous release on Google Fonts?

    ERROR The condition <FontBakeryCondition:github_gfonts_ttFont> had an error: KeyError: 'LICENSE.txt'
    traceback

      File "/usr/local/lib/python3.6/dist-packages/fontbakery/checkrunner.py", line 382, in _evaluate_condition
        return None, condition(**args)
      File "/usr/local/lib/python3.6/dist-packages/fontbakery/callable.py", line 71, in __call__
        return self._func(*args, **kwds)
      File "/usr/local/lib/python3.6/dist-packages/fontbakery/specifications/googlefonts.py", line 2295, in github_gfonts_ttFont
        "/{}/{}/{}").format(LICENSE_DIRECTORY[license],

Thanks!


usage profile and extrema does not display correctly for Apoa1 NAMD

Original author: Yanhua Sun
Original issue: https://charm.cs.illinois.edu/redmine/issues/455

The logs are here
/fastscratch/Yanhua/logs_apoa1
Select 8 timesteps and display in usage profile, check for example PE 7, the utilization is wrong
Extreme of least idle is totally messed up.

Original author: Yanhua Sun
Original date: 2014-05-05 16:58:10

Since there is no progress from Ronak, I will delegate this to Maxx.

Original author: Yanhua Sun
Original date: 2014-09-04 16:25:23

Implemented and checked in

Original date: 2014-09-04 20:08:34

Has this been merged?  The gerrit page (http://charm.cs.uiuc.edu/gerrit/#/c/282/) does not show that it has been.

Original author: Yanhua Sun
Original date: 2014-09-04 20:24:47

In the git log, I saw a commit for this bug

Original date: 2014-09-04 21:12:36

Commit 4c8e9b6b726a332df21a433a626d5be85e6b5e36 only fixes the usage profile error, not the extrema error.


Expose timestamp start index via GraphQL and consume in Rosetta

Version 1.4.7 of Rosetta adds a timestamp_start_index option. This isn't exposed via GraphQL yet so we'll leave it as None for now, but should return and set it correctly (In network.ml) when possible.

"If populated, timestamp_start_index indicates the first block index where block timestamps are considered valid (i.e. all blocks less than timestamp_start_index could have invalid timestamps). This is useful when the genesis block (or blocks) of a network have timestamp 0. If not populated, block timestamps are assumed to be valid for all available blocks."

Closing this issue as it is stale for a long time.


Make GPU selectable

Hi @maarzt ,
I'm working on a computer with 3 GPUs and test the GPU-preview. Is it possible to see and/or change which GPU is labkit running on?
Thanks!
Cheers,
Robert

Not yet possible. But I will work on it.


Fix --skip-init-end-tasks argument

Fix #1108.

It seems to me that all integrations tests are ignored, so I didn't add any integration tests for this feature. Please let me know if I am missing anything. Thanks.

tests are split to multi and single threaded. they are not ignored but you cant teat cargo make with cargo test. only via cargo make itself

Added 2 integration tests. One thread safe, one not thread safe. Verified locally with:

cargo nextest run -E 'test(run_flow_skip_init_end_tasks)' --run-ignored all and
cargo nextest run -E 'test(print_skip_init_end_tasks)' --run-ignored all.

@06393993 looks good.

@06393993 can you fix the tests please? also moved it to a new dev branch

I figured out the failure: for not thread-safe tests, we are setting the global logger in the new test, which may causes other tests to panic on error!. The fix is to reset the global logger after the newly added test completes.

I have run  cargo run --bin cargo-make --target-dir target/ci -- make ci-flow locally on my machine to make sure it passes the currently failed github action step.

@06393993 merging. thanks a lot. i hope i'll release it this soon


Faraday Timeout Error uploading files to BigQuery

I have been loading a lot of files to BigQuery and from time to time I receive a
Faraday::TimeoutError: execution expired
There is a way to change the timeout configuration that Faraday is using ?

@gramos74 I tried the following, which did NOT appear to work for me:
conn = Faraday.default_connection
conn.options[:timeout] = 1
data = bigquery.query sql # request takes > 1s

Then, I searched through google-api-client 0.8.6 for any mention of timeout, and found this example of how to pass Faraday options.
It appears that such options would need to be exposed as a parameter and passed here in the gcloud BigQuery connection?
This is where I concluded my investigation, but perhaps @blowmage knows of another solution or approach?

I can think of a couple ways to set a timeout. First, you could create a custom Faraday middleware that sets the timeout. Second, you could monkey punch your way through gcloud-ruby's use of the Google API Client, and Google API Client's use of Faraday and set the timeout on the Faraday connection options:
# set new faraday timeout of 2 minutes
bigquery.connection.instance_variable_get("@client").connection.options.timeout = 120

The problem with both these approaches is that they will stop working as Google API Client moves from Faraday to Hurley, and as gcloud-ruby moves from Google API Client to GRPC.
The design approach taken by gcloud-ruby so far has been to hide the connection details as much as possible, so we don't know if or how to allow timeout to be configured in the public API. This is something we will have to give more thought on.
@gramos74 Ideally, how and where would you like to configure a timeout when using gcloud-ruby?

Hi,
The how is not really clear, specially after reading your comment. I agree that is a good design keeping the connection details hidden.
Where ? In our app, right now, the most critical point where this exception is causing 'problems' is in the upload of the files to BigQuery. Usually fails just after send the last part of the file or checking the status job of the load. So, in both cases is in the LoadJob. If we considere that the LoadJob does a lot of http requests, the dependency in the connection behaviour of this specific job is high.
This could justify 'breaking' the design?  To be honest, I don't know.

Personally, I prefer designs that "leak" access to their dependencies. I am completely open to changing gcloud-ruby to do so in this case.

@gramos74 While we discuss potential changes, can you confirm that a Faraday configuration change via this workaround solves your problem?
# set new faraday timeout of 2 minutes
bigquery.connection.instance_variable_get("@client").connection.options.timeout = 120

Yes, I tested it locally and seems to work fine. But tomorrow I will push it to production and there I will check it with huge files. I will let you know how it goes.

Hi, Sorry for the delay but I was too much busy the last two days.
Let me put first some numbers. The last 5 days I uploaded more than 10000 files to GBQ inserting more than<PHONE_NUMBER> rows.
After changing the timeout value for Faraday as you suggested, I only received 5 Faraday::TimeoutError exceptions, so I would say that the change improved the process definitely.
Hope it can help in order to take a decision.

@gramos74 Your usage certainly makes a strong case for the value of being able to set the timeout. I am strongly in favor of changing the design of the library to support such "under-the-hood" access to connection details for users who need it.
Within the next week I will make an attempt to do so in a PR. This will be a speculative proposal-- merely a concrete example for further discussion.

With the workaround proposed above the upload worked fine until today. Today I have some huge files (2.1 Gb) to be uploaded and the upload process failed: "integer<PHONE_NUMBER> too big to convert to `int' "
Checking the backtrace I saw the problem is in the transport layer and it is related to the size of the string (file).
/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/openssl/buffering.rb:326:in `syswrite'
In the gcloud table source code [lib/gcloud/bigquery/table.rb] I saw that the method load_resumable supports the chunk_size option, but it is not supported in the load method.
If I add support for this option in the load method I can load those huge files ( already tested with a successful result ) with a chunk_size of 1Gb.
Would be possible to add the support for chunk_size in the load_method ?

@gramos74 I think this is a regression. You should be able to set chunk_size on the load method. We will get that restored ASAP.
Also, when a chunk_size is not set, the current behavior is to leave it undefined, which means Faraday will send the entire file in one chunk, but that seems to not work for files larger than 2GB. So I'm thinking we should set a default chunk_size in those cases. What do you think is a sensible default for that chunk size? 250MB? 500MB? 1GB? 2GB?

Well, seems that is not working in the ssl transport, so in this case is not a problem of Faraday :p
You can find more info here: https://bugs.ruby-lang.org/issues/10633
I would say that a default size of 1Gb is ok.

BTW... I already have a fork of the project because I need to fix it asap in production. So I can prepare a pull request once it is ready if you agree.

@gramos74 Go ahead and submit the PR. We are also actively working on it.

This was fixed in PR #702 and refactored for reuse in Storage in #703.

@gramos74 Thoughts on #788?

Closing, as I believe this was addressed by #788.


Added logic of repetitions and ISO8601 intervals

Added ability to give ISO8601 intervals in period field while creating reminder.
Also added ability to provided number of repetitions as per ISO8601 format.
Description
Added parser for ISO 8601 method
Saved number of repetitions left in the reminder track; defaulted it to -1 which means repeat infinitely
Modified logic to execute reminder based on the repetition
Deleted the reminder if repetition was specified and exhausted
Should not break existing functionality because the current way of executing reminder is not changed
However to support the new period format, some SDKs might need to change as they parse period with the assumption that its in Go's time.Duration format
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #2513
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[x] End-to-end tests passing
[x] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#1448
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

This is ready for review

Assigned myself for review. @jigargandhi I just want to make sure before reviewing that this adds to the current time format and not replaces it.

Yes, now you can use both time.Duration format and ISO 8601 format (RnPnYnMnDTnHnMnS) for period

Is it ok if I add a new actor test app for reminder?

Is it ok if I add a new actor test app for reminder?

Building more apps will add to the E2E build time and also duplicate boiler plate code. What is the reason to create a new app since we already have one for actors in E2E?

@artursouza I am facing weird trouble with lint issues, can you help me fixing that.
Apart from that the PR is ready for review

Please, add E2E tests too.

Added E2E tests

/ok-to-test


Migrate to @kitsuyui/rectangle-dividing from @kitsuyui/js-rectangle-dividing

https://github.com/kitsuyui/rust-rectangle-dividing (Rust with WebAssembly)

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

Files
Coverage Δ

packages/clock/src/digital/digital.tsx
100.00% <100.00%> (ø)

packages/clock/src/index.ts
38.09% <100.00%> (ø)

packages/editablelabel/src/index.ts
100.00% <ø> (ø)

packages/style-bulma/src/stopwatch.tsx
45.83% <100.00%> (ø)

packages/style-bulma/src/timer.tsx
34.37% <50.00%> (ø)

packages/editablelabel/src/EditableLabel.tsx
85.24% <91.66%> (ø)

packages/treemap/src/treemap.tsx
0.00% <0.00%> (-28.09%)
:arrow_down:

packages/textfield/src/TextArea.tsx
76.11% <84.78%> (+3.39%)
:arrow_up:

packages/textfield/src/TextField.tsx
76.11% <83.72%> (+3.39%)
:arrow_up:

:loudspeaker: Thoughts on this report? Let us know!


{CI} Merge CLI extension release scripts from release-scripts branch to main branch

This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
[ ] My extension version conforms to the Extension version schema

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

CI


jps: Watch kairostech.com

jps requests the watch of the watch_keyword kairostech\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

kairostech\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

From the now-deleted Discussion at https://stackoverflow.com/beta/discussions/78140085/revolutionizing-testing-kitaps-next-gen-intelligent-automation


fix #1791 baiji-Group-3

Ⅰ. Describe what this PR did
add unit-test for getConflictConfigurations#1791
Ⅱ. Does this pull request fix one issue?
fix #1791
Ⅲ. Describe how you did it
implement function getConflictConfigurationsin config.go
Ⅳ. Describe how to verify it
unit test
Ⅴ. Special notes for reviews
none

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Use go modules when getting KinD

What this PR does / why we need it:
Recently moved to modules and removed the vendor directory. In
order to get go get to work we need to ensure we are using
the modules as intended.
Which issue(s) this PR fixes
Fixes #713
Special notes for your reviewer:
Release note:
NONE

Codecov Report

Merging #714 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #714   +/-   ##
=======================================
  Coverage   39.22%   39.22%
=======================================
  Files          68       68
  Lines        3816     3816
=======================================
  Hits         1497     1497
  Misses       2221     2221
  Partials       98       98

Continue to review full report at Codecov.

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

Fixes the problem and ensures peoples PRs are getting tested. Merging.


click to copy button misaligned in code block inside spoiler tag

I think the right thing to do would be to move the icon slightly to the left so it's inside the code block.

@zulipbot claim

@YashRE42 can you please tell me the steps to reproduce this error ??

@zulipbot claim

The proposed fix sounds good to me.

@Rishabh-792 please take a look at the Zulip contributor guide and keep in mind the following guideline:

Before you claim an issue, you should be confident that you will be able to tackle it effectively.

I will go ahead and unassign this issue, and you should feel free to re-claim it once you have figured out how to approach it (or pick a different one if you prefer).

Sorry @alya
I figured how to aprroach and possibly fix it now and attaching the screenshot after applying a fix.

I can raise a PR if this works.

@Rishabh-792, that looks okay, send in a PR.

@zulipbot claim

@Rishabh-792, that looks okay, send in a PR.

Raised PR #20726 for fixing this.


Error while building

Whenever I try to follow your commands, I receive the following error:
Creating black_candy_redis_1    ... done
Creating black_candy_postgres_1 ... done
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
make: *** [Makefile:38: production_setup] Error 1

Would it be possible to provide a full docker solution, and also instructions on the hub.docker.com website? Currently, cloning the image and then building is pretty complicated, and I do not reallt know where the error is.
In addition to this, I wonder whether this server provides also transcoding functionality? It is not obvious from the settings... Is it possible to implement it?

It seem like your network issue. Black candy already use pre builded image to setup server, it's just pull image down not for build whole image.


[SharedHelpers] Use block.call instead of yield to avoid a stack cons…

…istency error on Ruby 2.2.2
Using yield would cause a crash in the ruby VM due to calls sharing state
and leading to a count mismatch. Using block.call avoids that issue
Fixes https://github.com/bundler/bundler/issues/5341
Manually tested on Ruby 2.2.2 and 2.2.3, since they're not in the test matrix (only the latest 2.2.x is)

@bundlerbot r+

Nice (and fast!) work. 👍


Running on Windows Results in error

C:\Users\jpeng\Documents\business\ai\marsha\marsha>python -m marsha tesseract.mrsh
Compiling functions for tesseract...
Generating Python code...
Chat query took 15sec 553.156ms, started at 44.45ms, ms/chars = 12.363398965856797
Chat query took 24sec 196.805ms, started at 26.371ms, ms/chars = 12.661855049871887
Writing generated code to temporary files...
FILENAME:  tesseract_0/tesseract.py
FILENAME:  tesseract_0/requirements.txt
FILENAME:  tesseract_0/tesseract_test.py
Writing generated code to temporary files...
FILENAME:  tesseract_1/tesseract.py
FILENAME:  tesseract_1/requirements.txt
FILENAME:  tesseract_1/tesseract_test.py
Writing generated code to temporary files...
FILENAME:  tesseract_2/tesseract.py
FILENAME:  tesseract_2/requirements.txt
FILENAME:  tesseract_2/tesseract_test.py
Running tasks in parallel...
Parsing generated code...
Parsing generated code...
Verifying and correcting generated code...
Creating virtual environment...
Parsing generated code...
Verifying and correcting generated code...
Creating virtual environment...
Chat query took 10sec 55.1715ms, started at 24sec 377.311ms, ms/chars = 13.371238683132415
Installing requirements...
TESTFILE:  tesseract_1\tesseract_test.py
Failed to run test suite... [WinError 2] The system cannot find the file specified
Third stage failure
argument of type 'NoneType' is not iterable
Task completed with error. Waiting for pending tasks to finish...
Running tasks in parallel...
Installing requirements...
TESTFILE:  tesseract_2\tesseract_test.py
Failed to run test suite... [WinError 2] The system cannot find the file specified
Third stage failure
argument of type 'NoneType' is not iterable
Task completed with error. Waiting for pending tasks to finish...
Running tasks in parallel...
Chat query took 14sec 694.8ms, started at 34sec 434.483ms, ms/chars = 19.884708931062153
FILENAME:  tesseract_0\tesseract_test.py
Chat query took 28sec 31.8413ms, started at 49sec 133.387ms, ms/chars = 38.03506279250498
FILENAME:  tesseract_0\tesseract_test.py
Chat query took 40sec 667.973ms, started at  1min 17sec, ms/chars = 54.882554711922296
FILENAME:  tesseract_0\tesseract_test.py
Second stage failure
('Failed to generate code', "tesseract_0\tesseract_test.py:35:5 [E] E0602 undefined name 'unittest' [pyflakes]")
All tasks failed. Raising exception...
Failed to generate working code.
('Failed to generate code', "tesseract_0\tesseract_test.py:35:5 [E] E0602 undefined name 'unittest' [pyflakes]")
Retrying...
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha_main.py", line 6, in
asyncio.run(main())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\base.py", line 217, in main
raise Exception(
Exception: Failed to generate working code for tesseract. Total time elapsed:  1min 59sec. Total cost: 0.02.

Tried to run the ocr/tesseract.mrsh file and got the error above

So this is one of the more complicated examples, as you need to install and have available on your $PATH the tesseract and poppler libraries before you run that example.
The exact phrasing there is a bit misleading, now that I think about it, because in the third stage of the compiler it runs the code against the test suite it generated. So that comment is technically correct (the best kind!) but implies when you manually run the code, not when you indirectly run the code during the compile process itself.
Can you try again with those libraries installed? I don't personally know how to install them on Windows, though. Perhaps @aguillenv does, though he's asleep right now, so we'd have to wait until he wakes up if you can't figure that part out.

The poppler and tesseract packages are probably needed running the generated code not during marsha execution.
From the logs shared this seems an issue with marsha handling the file system Failed to run test suite... [WinError 2] The system cannot find the file specified.
I'll dig and see if I find what could be the issue since I'm not working on Windows.

@JohnPeng47 let us know if the issue is solved for you! If you pip-installed Marsha, make sure to run it again with the --upgrade flag to get the latest version.

Uhh now Im getting two errors instead of one:
1st run:
C:\Users\jpeng\Documents\business\ai\marsha\examples\general-purpose>python -m marsha fibonacci.mrsh Compiling functions for fibonacci... Generating Python code... Chat query took  5sec 53.683ms, started at 35.4121ms, ms/chars = 6.454256759292778 Chat query took  5sec 396.657ms, started at 56.5364ms, ms/chars = 7.6009256739011954 Writing generated code to temporary files... FILENAME:  fibonacci_0/fibonacci.py FILENAME:  fibonacci_0/requirements.txt FILENAME:  fibonacci_0/fibonacci_test.py Writing generated code to temporary files... FILENAME:  fibonacci_1/fibonacci.py FILENAME:  fibonacci_1/requirements.txt FILENAME:  fibonacci_1/fibonacci_test.py Writing generated code to temporary files... FILENAME:  fibonacci_2/fibonacci.py FILENAME:  fibonacci_2/requirements.txt FILENAME:  fibonacci_2/fibonacci_test.py Running tasks in parallel... Parsing generated code... Verifying and correcting generated code... Parsing generated code... Verifying and correcting generated code... Creating virtual environment... Parsing generated code... Verifying and correcting generated code... Creating virtual environment... Formatting code... Task completed successfully. Cancelling pending tasks... Writing generated code to files... fibonacci done! Total time elapsed:  5sec 637.325ms. Total cost: 0.0. Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x000002B801248430> Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_subprocess.py", line 126, in __del__     self.close()   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_subprocess.py", line 104, in close     proto.pipe.close()   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 109, in close     self._loop.call_soon(self._call_connection_lost, None)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 753, in call_soon     self._check_closed()   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 515, in _check_closed     raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002B801249E10> Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in __del__     _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 80, in __repr__     info.append(f'fd={self._sock.fileno()}')   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\windows_utils.py", line 102, in fileno     raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002B801249E10> Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in __del__     _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 80, in __repr__     info.append(f'fd={self._sock.fileno()}')   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\windows_utils.py", line 102, in fileno     raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x000002B801248430> Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_subprocess.py", line 125, in __del__     _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_subprocess.py", line 78, in __repr__     info.append(f'stdout={stdout.pipe}')   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 80, in __repr__     info.append(f'fd={self._sock.fileno()}')   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\windows_utils.py", line 102, in fileno     raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002B801249E10> Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in __del__     _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 80, in __repr__     info.append(f'fd={self._sock.fileno()}')   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\windows_utils.py", line 102, in fileno     raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002B801249E10> Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 116, in __del__     _warn(f"unclosed transport {self!r}", ResourceWarning, source=self)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\proactor_events.py", line 80, in __repr__     info.append(f'fd={self._sock.fileno()}')   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\windows_utils.py", line 102, in fileno     raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe
Second run:
C:\Users\jpeng\Documents\business\ai\marsha\examples\general-purpose>python -m marsha fibonacci.mrsh Compiling functions for fibonacci... Generating Python code... Chat query took  4sec 677.319ms, started at 48.6438ms, ms/chars = 6.606382165251478 Chat query took  5sec 407.894ms, started at 29.7339ms, ms/chars = 6.310261812065418 Writing generated code to temporary files... FILENAME:  fibonacci_0/fibonacci.py FILENAME:  fibonacci_0/requirements.txt FILENAME:  fibonacci_0/fibonacci_test.py Writing generated code to temporary files... FILENAME:  fibonacci_1/fibonacci.py FILENAME:  fibonacci_1/requirements.txt FILENAME:  fibonacci_1/fibonacci_test.py Writing generated code to temporary files... FILENAME:  fibonacci_2/fibonacci.py FILENAME:  fibonacci_2/requirements.txt FILENAME:  fibonacci_2/fibonacci_test.py Running tasks in parallel... Parsing generated code... Verifying and correcting generated code... Creating virtual environment... Parsing generated code... Verifying and correcting generated code... Creating virtual environment... Parsing generated code... Verifying and correcting generated code... Installing requirements... TESTFILE:  fibonacci_2\fibonacci_test.py Failed to run test suite... [WinError 2] The system cannot find the file specified Third stage failure argument of type 'NoneType' is not iterable Task completed with error. Waiting for pending tasks to finish... Running tasks in parallel... Installing requirements... TESTFILE:  fibonacci_0\fibonacci_test.py Failed to run test suite... [WinError 2] The system cannot find the file specified Third stage failure argument of type 'NoneType' is not iterable Installing requirements... TESTFILE:  fibonacci_1\fibonacci_test.py Failed to run test suite... [WinError 2] The system cannot find the file specified Third stage failure argument of type 'NoneType' is not iterable All tasks failed. Raising exception... Failed to generate working code. argument of type 'NoneType' is not iterable Retrying... Traceback (most recent call last):   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main     return _run_code(code, main_globals, None,   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code     exec(code, run_globals)   File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\__main__.py", line 6, in <module>     asyncio.run(main())   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run     return loop.run_until_complete(main)   File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 649, in run_until_complete     return future.result()   File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\base.py", line 217, in main     raise Exception( Exception: Failed to generate working code for fibonacci. Total time elapsed: 18sec 189.47ms. Total cost: 0.0. Task exception was never retrieved future: <Task finished name='fibonacci_0\\fibonacci.py' coro=<review_and_fix() done, defined at C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\base.py:281> exception=TypeError("argument of type 'NoneType' is not iterable")> Traceback (most recent call last):   File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\base.py", line 304, in review_and_fix     raise e   File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\base.py", line 300, in review_and_fix     await test_and_fix_files(marsha_filename, functions, defined_types, void_functions, files, stats, debug=debug)   File "C:\Users\jpeng\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\marsha\llm.py", line 444, in test_and_fix_files     if "FAILED" in test_results or "Traceback" in test_results: TypeError: argument of type 'NoneType' is not iterable
`

Also.. not saying this to be an asshole, because personally I think the idea behind this project is really cool, and much needed to push the edge of LLM codegen. But your code is insanely hard to read. Would suggest doing a refactor to improve readability, modularity, all that good stuff, before pushing out any features. OSS contributions is hard, but doing it on a codebase like this makes the task Herculean

ESTFILE: tesseract_1\tesseract_test.py
Failed to run test suite... [WinError 2] The system cannot find the file specified
Third stage failure
argument of type 'NoneType' is not iterable

This is a quote from your first run, same error as before. I'm spinning up a Windows VM to see if I can reproduce on my end, since the earlier change didn't fix things for you (though it did fix it for Github's Windows runner)
As for your second comment, it's pretty vague. What exactly is hard to read for you? The logic for parsing the .mrsh files is in parse.py, anything directly talking to the LLM is in llm.py, base.py has the overall compilation flow laid out, and utils.py has a few functions that are reused between multiple of the other files. It's not a big codebase, yet, and each file is on a single "topic" so I don't see how a refactor would improve anything?

I cannot reproduce your error @JohnPeng47
Steps I took on a fresh Win10 VM:

Install all Windows updates (why this response took so long)
Install git for windows, using the defaults most of the time (I disabled checkout in Windows line ending format)
Install python for windows, using the defaults plus the following two options:
i. Put python.exe on the PATH
ii. Enabled support for filesystem paths >260 chars long
Fired up the git bash prompt (not cmd)
python -m venv env
source venv/Scripts/activate
pip install git+https://github.com/alantech/marsha
git clone https://github.com/alantech/marsha
cd marsha/examples/general-purpose
export OPENAI_ORG=..., export OPENAI_SECRET_KEY=...
python -m marsha fibonacci.mrsh
python -m fibonacci 6 (and etc)


Dataset is unavailable.

I would like to use the NMT Scalp EEG Dataset, but the link (https://chatbotmart.com/datasets/nmt_scalp_eeg_dataset.zip) to download is unavailable. Is there another place to download the dataset?

I am not related to the authors, but datasets in general, are very important!

Correct link: https://zenodo.org/records/10909103

Thanks!
Em qua., 3 de abr. de 2024 às 20:47, Bru @.***>
escreveu:

Hi @raniere-guimaraes https://github.com/raniere-guimaraes and
@alberto-jj https://github.com/alberto-jj,
We integrated this dataset on braindecode, and I put the zip file on
Zenodo: https://zenodo.org/records/8214377
—
Reply to this email directly, view it on GitHub
https://github.com/dll-ncai/eeg_pre-diagnostic_screening/issues/3#issuecomment-2035817425,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAYFVQGYDKYHQ2G3DFVU5DY3SIK3AVCNFSM6AAAAAAZGOU7IOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZVHAYTONBSGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Raniere Guimarães


Add missing tests for lazyproduct.

Coverage increased (+0.1%) to 94.559% when pulling f227799e6ded3ca19e821a3859e009db3c6a9592 on lazyproduct-tests into 2ecbeb80cab387adf44cf4765dfe6b58d8706476 on master.


Cgal convex hull

 Here is an overview of what got changed by this pull request:

Clones added
============
- src/plugins/cgal/nodes/topology/convex_hull.cpp  1

See the complete overview on Codacy


Fix FingerprintJS regex

Apply correct regex per https://github.com/AliasIO/wappalyzer/pull/4053#issuecomment-868276095

examples:
https://www.drtusz.pl/
https://people.cs.kuleuven.be/~victor.lepochat/mwe.html
https://uk.wallapop.com/
https://resolume.com/
https://www.as-web.jp/
https://www.comuniazo.com/

Could this PR still be merged if the changes are OK? It would be great to have this included for the July HTTP Archive crawl.

Done, thanks!