jenny seems to have leaky state

Besides #25, another problem I noticed was that, after running jenny in one dir and then another, the output from the second run referenced dirs from the first run. This is definitely not a case of concatenated logs - I made certain to start fresh.
Even removing all docker containers and images and deleting /tmp/jenny did not cause this to stop. I do not know where else jenny could be storing state, but this behavior is concerning for a few different reasons.

Running in one dir shouldn't have any impact on future runs in any other dir
State shouldn't be stored except in obvious or documented locations, so that it can cleaned up if it gets corrupted or grows too large.
Hidden persistent state could be a security hazard if it contained credentials or other sensitive information.

Evidence of this can be seen in the file attached to #25, jenny-out.txt: search for buildfarm.

I can't mentally see your Jenkinsfile, but maybe the workspace is not being clean up? You should always do that in your node:
node {
    deleteDir()
    checkout scm
    // actual build steps
}

Surprisingly enough, this is the behavior of Jenkins that it's being emulated, and is intentional. Nodes are not being automatically cleaned up, and they are being recycled. There will be junk on the Jenkins nodes.

The data is not stored in jenny, but when you do checkout scm this will actually just do a copy of the project into the /tmp/jenny/workspace/PROJECT_NAME/workspace. The Jenkinsfile it's still being evaluated from the original project folder, since we're already evaluating it at this stage, when we reach checkout scm.
If the error still happens, it's probably still an error in the project's Jenkinsfile. From what I can see in the exception it seems that the list of parameters is not correctly closed, or created (missing comma between parameters?).

There was a mistake in its Jenkinsfile. What I don't understand is why that Jenkinsfile was being used in what ought to be an unrelated run of jenny.

I don't know without seeing the Jenkinsfiles. Maybe the same project name is being used multiple times? I'm going to wait a few days, and if you can't reproduce it I'll close the issue.

Ok.
So far, I only see it when running ./jenny in the jenny repo. As you've noted, that is probably trying to do weird things such as run docker inside docker :)


Incorrect -target_module and -target_method results in popup talking about -fuzz_module and -fuzz_method.

This is confusing, and leads the person using WinAFL to think that there are options -fuzz_module and -fuzz_method that they should be supplying.

The error messages should be improved with the latest update.


Cylinder cannon.js vs cylinder three.js

Hello, I would like to thank the cannon.js author for this fantastic library.
I have a problem with the cylinder geometry. Other elements, such as cube or sphere work well.
The problem is the difference in orientation between the cylinders libraries.
Three.js constructed with the main cylinder axis vertical, but cannon.js it builds with the horizontal axis.
I tried playing with quaternions for change orientation, but I could not see the mesh in cannon.js.
Try it at: http://www.m500.es/webgl/_cilindro_01.html
Here's the code:
http://www.m500.es/webgl/_cilindro_01.txt

I'm having the same problem, but this solution does not work for me. Is this answer now out of date? If so, what would be the way about it now?

Sounds weird! Did you try building cannon.js locally and using the most recent version?
Which solution are you trying? Transforming all points or setting the local shape transform?

So I can confirm that (using local shape transform)
quat.setFromAxisAngle(new CANNON.Vec3(1,0,0),-Math.PI/2);

does work, but not for a cylinder with 6 sides where the sides seems to be offset. 4, 8 and 12 all work fine.

I'm using version 0.6.2, which I just realize was released three years ago (!). Is the NPM package not maintained anymore?

I am using the 0.6.2 version.
The following is what I do, it works fine:

 var geoCylinder = new THREE.CylinderGeometry(1,1,1,8);
 geoCylinder.rotateX(Math.PI/2);
 var matCylinder = new THREE.MeshPhongMaterial({color:0x009999});
 var cylinder = new THREE.Mesh(geoCylinder, matCylinder);
 scene.add(cylinder);

The key is rotateX(90 degree) to the three.js' cylinder geometry, which will correct and adapt it to cannon.js' cylinder shape:

geoCylinder.rotateX(Math.PI/2);


Add support for configurable e2e tests

Description
Add support for setting the sandbox to use for end to end tests. The configuration can be specified via the github actions menu:

or via github action api. A sample run can be seen at https://github.com/rymorale/aepsdk-messaging-android/actions/runs/10742109945/job/29794027467.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

looks good @rymorale 👍


Apparently spurious error if path omitted from 'helm secrets edit' command

secrets 1.2.9, sops 3.0.5
 rdmurray@conrad:~/projects/live_storagemanager/deploy/test[93cfac3...]>helm secrets edit
 Edit encrypted Chart secrets.yaml

 Decrypt encrypted file, edit and then encrypt

 You can use plain sops to edit - https://github.com/mozilla/sops

 Example:
   $ helm secrets edit <SECRET_FILE_PATH>
   or $ sops <SECRET_FILE_PATH>
   $ git add <SECRET_FILE_PATH>
   $ git commit
   $ git push

 Error: Chart package required.
 Error: plugin "secrets" exited with error

The "Error: Chart package required" would appear to be spurious, since it doesn't show up when successfully editing a file.

Did you try sops directly? Looks like this is connected with helm itself, like building local dependency packages for chart?


StrawberryShake - Error is thrown when SortEnumType is null

Describe the bug
A GraphQLClientException error is thrown when any SortEnumType is null
To Reproduce
Steps to reproduce the behavior:

Create a (...)SortInput parameter in GraphQL
Generate code
Execute and give a (...)SortInput object with one Asc value
See error

Expected behavior
You should be able to sort just one field (or more) without having to give other SortEnumType fields a value.
Desktop (please complete the following information):

OS: Windows and WASM
Version 11.1.0-preview.80

Additional context

@Megasware128  Can you provide a schema + a query to reporduce this behaviour?

I think this is fixed with #3323

Thx for getting back to me. I'll try the pr tomorrow. If it fails I'll try to reproduce a simple schema and query. Otherwise I will let you know if the fix works.

@PascalSenn I've tried running the code against #3323. It got me a new error.

These are the schema and query throwing the error:
https://gist.github.com/Megasware128/9b20f857d0b8a27c3cc003848525b667
https://gist.github.com/Megasware128/8f97bd023544d14ad3d9b936789c4f4a
After that I'm calling the query by:
var result = await Client.GetArticles.ExecuteAsync((page - 1) * 10, new ArticleSortInput { ArticlePrice = SortEnumType.Desc });

Stack trace of Errors[0] is:

@PascalSenn  It seems the issue is resolved on the StrawberryShake layer in at least version 11.1.0-rc.4. Now HotChocolate on the server is still throwing errors for sort input values being null. Should I open a new issue for HotChocolate?

Issue seems to be fixed for me since at least 11.2.2


⚠ Mobitopup has degraded performance

In f6ef094, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3578 ms

Resolved: Mobitopup performance has improved in 112fa50.


mv docs to master branch

the docs folder was already on export ignore from previous jekyll docs so they shouldnt export in builds. this runs a test on changes to docs/* and then builds on pushes to master with  changes


Fix logic in target module finding

fix the regex in target module finding, refer to #1260
modify the logic for empty layer pattern, i don't know whether COMMON_LAYERS_PATTERN has special meaning, new logic is: empty ==> all layer pattern is ok

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Thanks for the PR @s-k-yx. I haven't looked at it yet, but could you please run make style so that CI can run successfully?

Thanks for the PR @s-k-yx. I haven't looked at it yet, but could you please run make style so that CI can run successfully?

sorry for that, the file is reformatted. And there is a dubious test case: https://github.com/huggingface/peft/blob/0f1e9091cc975eb5458cc163bf1843a34fb42b76/tests/test_tuners_utils.py#L65
maybe this should be checked, thanks

Thanks for the helpful suggestions, I'll change test code and comments later. And I'm sorry I didn't make myself clear. I've made some replies, hope it helps.

And there is the same problem in layer_indexes, now the new added test case ("foo.bar.7.baz", ["baz"], [], ["bar"], True) will pass(in previous code, it will fail), to be consistent with layers_pattern. Maybe all the empty list should fail, no matter layers_pattern or  layer_indexes

Thanks for the checking, I've modified them accordingly, glad to be of help.

Thanks ! I left a single comment, what do you think?

sorry, I found there is the same problem in my change, I shouldn't mix regex and simply compare. It should be better to use target_module_found = re.fullmatch(config.target_modules, key) and limit it to regex when target_modules is str

sorry, I found there is the same problem in my change, I shouldn't mix regex and simply compare. It should be better to use target_module_found = re.fullmatch(config.target_modules, key) and limit it to regex when target_modules is str

Just for my understanding, what is the problem exactly? Can you give an example?

Okay, I think that makes sense. I thought it would be impossible to do this because sub-modules must have a valid Python variable name as identifier, but that's actually not true:
class MyModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.register_module("foo-bar", torch.nn.Linear(1, 2))
        self.register_module("foo/bar$baz^!", torch.nn.Linear(1, 2))

m = MyModule()
getattr(m, "foo-bar")  # works
getattr(m, "foo/bar$baz^!")  # works

config = LoraConfig(target_modules=["foo-bar", "foo/bar$baz^!"])
get_peft_model(m, config)  # works

Hopefully, nobody does this in the wild, but we can never know :) Do you think we should have a test for this @s-k-yx?

It's always hard to guess user's purpose, telling them how to use makes things simple :) The above test case does nothing wrong, so it should work. Just clarify it in parameter description that it's different when the type of  target_modules is str and list, when it's str it should be regex to match the full layer name,  and when it's list, the element can be the full layer name or the module name but never regex. Will that be fine? @BenjaminBossan

Just clarify it in parameter description that it's different when the type of target_modules is str and list, when it's str it should be regex to match the full layer name, and when it's list, the element can be the full layer name or the module name but never regex. Will that be fine?

This sound excellent.

@s-k-yx Would you be so kind as to fix the merge conflict?

done @BenjaminBossan


FCNPC - Debian 8.5

#Dear Ziggi!
I have a SaMp serverin Debian 8.5. We need FCNPC for fs, (filterscript) but your's not working, we do not know why. And we started search for this, but we finded only for Ubuntu. Can you help me? We got Debian 8.5 and it is not working.

Compile the plugin by yourself.

Hey.
How can I compile the plugin ?:)

Check README.

Im not a professional pawner. Can you help me in this? Thats not my gamemode, that's my friends. Can I add you on anythin? Fb, or somethin' where u can help me.

No. Just follow the instruction.

But I dont understand this.... Shit... I can follow this? (https://github.com/ziggi/FCNPC/blob/master/README.md)


React native paper dates locale error on bare-bone react native project

Current behaviour

The react-native-paper-dates throws some errors on a react native project that is created with react-native-cli
The first error is like the one below, but clicking on dismiss reveals more errors that mostly say the same thing but with different key:...  values
[react-native-paper-dates] The locale en is not registered, see README!, key: typeInDate

Expected behaviour

Clicking on the activating the DatePickerModal should not throw any error, especially when the exact code example from the documentation is being used
How to reproduce?

Hey, i am providing a reproduction to the error here in the repo
https://github.com/Eprince-hub/react-native-date-picker-error
Steps to reproduce (Couldn't reproduce the problem on snack.expo.dev)
Clone the repo & cd into project
git clone https://github.com/Eprince-hub/react-native-date-picker-error.git && cd react-native-date-picker-error

Install all Dependencies
yarn init-deps

Start & run both ios & android
yarn start-all

Click on pick single date and see the error
There is a total of ten errors, clicking on dismiss will reveal next error
Preview

Video
https://github.com/web-ridge/react-native-paper-dates/assets/74430629/6e3de0bd-1f86-47ed-ba7b-baefb280008d
What have you tried so far?

tried debugging the issue with no success, did some online searches and found similar issue being reported here https://github.com/web-ridge/react-native-paper-dates/issues/307 but it was closed unsolved i believe
Your Environment

software
version

ios
16.4

android
13

react-native
0.72.3

react-native-paper
5.9.1

node
18.17.0

npm or yarn
1.22.19

expo sdk
x.x.x

Hi @Eprince-hub, I pulled down your project and you're missing the translation registration. This can be resolved  by adding
import {DatePickerModal, en, registerTranslation} from 'react-native-paper-dates';

React.useEffect(() => {
  registerTranslation('en', en);
}, []);

to your  App.tsx.
This is also found in the documentation here.

Oh, Thanks a lot, this was my problem.. My Bad!🙏

Hi @Eprince-hub, I pulled down your project and you're missing the translation registration. This can be resolved by adding
import {DatePickerModal, en, registerTranslation} from 'react-native-paper-dates';

React.useEffect(() => {
  registerTranslation('en', en);
}, []);

to your App.tsx.
This is also found in the documentation here.

Thanks ! :)

@iM-GeeKy it can be better put outside the render function with no useEffect


[Bug]: Skip download some lectures in long courses

What happened?
I detected a problem on the download process of the last lectures of long courses (courses with 500 lectures for example). The downloader continue downloading the captions adn the assets but not the videos.
[05:11:01] [udemy-downloader] [handle_segments:1091] INFO: > Decryption complete
[05:11:01] [udemy-downloader] [handle_segments:1092] INFO: > Merging video and audio, this might take a minute...
[05:11:02] [udemy-downloader] [handle_segments:1097] INFO: > Merging complete, removing temporary files...
[05:11:02] [udemy-downloader] [parse_new:1293] INFO:   > Processing lecture 405 of 490
[05:11:02] [udemy-downloader] [process_lecture:1221] INFO:       > Lecture '015 [Windows] Local Environment Setup for React Development' has DRM, attempting to download
--- Logging error ---
Traceback (most recent call last):
  File "C:\Users\Pau\AppData\Local\Programs\Python\Python310\lib\logging\__init__.py", line 1101, in emit
    stream.write(msg + self.terminator)
  File "C:\Users\Pau\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u200b' in position 89: character maps to <undefined>
Call stack:
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1696, in <module>
    main()
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1689, in main
    parse_new(_udemy)
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1312, in parse_new
    process_lecture(lecture, lecture_path, lecture_file_name, chapter_dir)
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1221, in process_lecture
    logger.info(f"      > Lecture '%s' has DRM, attempting to download" % lecture_title)
Message: "      > Lecture '015 [Windows]\u200b Local Environment Setup for React Development' has DRM, attempting to download"
Arguments: ()
[05:11:02] [udemy-downloader] [handle_segments:1034] INFO: > Downloading Lecture Tracks...
WARNING: You have asked for UNPLAYABLE formats to be listed/downloaded. This is a developer option intended for debugging.
         If you experience any issues while using this option, DO NOT open a bug report
[generic] index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3V0L3YxLzMxNzVmZTFhYzE2NjQ4MDFiOTE4M2UyODA4N2UwNTE2LzkxMjQyYTcyYzBmYTQwM2Y4YWNjZDcwMWE4OWM3MGEzLzJmNWViNjRkOTc3YjRkN2M4ZGIxZGI4MTIyNDFjM2M5LyIsImV4cCI6MTY1ODYzMjI0MX0: Downloading webpage
ERROR: [generic] Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

Expected Result
Download all the videos, captions and assets of all the course.
[04:59:10] [udemy-downloader] [handle_segments:1059] INFO: > Lecture Tracks Downloaded
[04:59:10] [udemy-downloader] [handle_segments:1067] INFO: KID for video file is: 5A5E35364607449DACC841513A230224
[04:59:10] [udemy-downloader] [handle_segments:1074] INFO: KID for audio file is: 5A5E35364607449DACC841513A230224
[04:59:10] [udemy-downloader] [handle_segments:1080] INFO: > Decrypting video, this might take a minute...
[0724/045910:INFO:demuxer.cc(89)] Demuxer::Run() on file '013 Finishing Up the App - Letting Users Submit Secrets.encrypted.mp4'.
[0724/045910:INFO:demuxer.cc(155)] Initialize Demuxer for file '013 Finishing Up the App - Letting Users Submit Secrets.encrypted.mp4'.
[0724/045911:INFO:single_segment_segmenter.cc(111)] Update media header (moov) and rewrite the file to '013 Finishing Up the App - Letting Users Submit Secrets.decrypted.mp4'.
[0724/045911:INFO:mp4_muxer.cc(186)] MP4 file '013 Finishing Up the App - Letting Users Submit Secrets.decrypted.mp4' finalized.
Packaging completed successfully.
[04:59:11] [udemy-downloader] [handle_segments:1085] INFO: > Decryption complete
[04:59:11] [udemy-downloader] [handle_segments:1086] INFO: > Decrypting audio, this might take a minute...
[0724/045911:INFO:demuxer.cc(89)] Demuxer::Run() on file '013 Finishing Up the App - Letting Users Submit Secrets.encrypted.m4a'.
[0724/045911:INFO:demuxer.cc(155)] Initialize Demuxer for file '013 Finishing Up the App - Letting Users Submit Secrets.encrypted.m4a'.
[0724/045911:INFO:single_segment_segmenter.cc(111)] Update media header (moov) and rewrite the file to '013 Finishing Up the App - Letting Users Submit Secrets.decrypted.m4a'.
[0724/045911:INFO:mp4_muxer.cc(186)] MP4 file '013 Finishing Up the App - Letting Users Submit Secrets.decrypted.m4a' finalized.
Packaging completed successfully.
[04:59:11] [udemy-downloader] [handle_segments:1091] INFO: > Decryption complete
[04:59:11] [udemy-downloader] [handle_segments:1092] INFO: > Merging video and audio, this might take a minute...
[04:59:12] [udemy-downloader] [handle_segments:1097] INFO: > Merging complete, removing temporary files...

Branch
master/main
What operating systems are you seeing the problem on?
Windows
Relevant log output
[05:11:01] [udemy-downloader] [handle_segments:1091] INFO: > Decryption complete
[05:11:01] [udemy-downloader] [handle_segments:1092] INFO: > Merging video and audio, this might take a minute...
[05:11:02] [udemy-downloader] [handle_segments:1097] INFO: > Merging complete, removing temporary files...
[05:11:02] [udemy-downloader] [parse_new:1293] INFO:   > Processing lecture 405 of 490
[05:11:02] [udemy-downloader] [process_lecture:1221] INFO:       > Lecture '015 [Windows] Local Environment Setup for React Development' has DRM, attempting to download
--- Logging error ---
Traceback (most recent call last):
  File "C:\Users\Pau\AppData\Local\Programs\Python\Python310\lib\logging\__init__.py", line 1101, in emit
    stream.write(msg + self.terminator)
  File "C:\Users\Pau\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u200b' in position 89: character maps to <undefined>
Call stack:
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1696, in <module>
    main()
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1689, in main
    parse_new(_udemy)
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1312, in parse_new
    process_lecture(lecture, lecture_path, lecture_file_name, chapter_dir)
  File "I:\repositorios\test\udemy-downloader-master-2\main.py", line 1221, in process_lecture
    logger.info(f"      > Lecture '%s' has DRM, attempting to download" % lecture_title)
Message: "      > Lecture '015 [Windows]\u200b Local Environment Setup for React Development' has DRM, attempting to download"
Arguments: ()
[05:11:02] [udemy-downloader] [handle_segments:1034] INFO: > Downloading Lecture Tracks...
WARNING: You have asked for UNPLAYABLE formats to be listed/downloaded. This is a developer option intended for debugging.
         If you experience any issues while using this option, DO NOT open a bug report
[generic] index.mpd?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXRoIjoib3V0L3YxLzMxNzVmZTFhYzE2NjQ4MDFiOTE4M2UyODA4N2UwNTE2LzkxMjQyYTcyYzBmYTQwM2Y4YWNjZDcwMWE4OWM3MGEzLzJmNWViNjRkOTc3YjRkN2M4ZGIxZGI4MTIyNDFjM2M5LyIsImV4cCI6MTY1ODYzMjI0MX0: Downloading webpage
ERROR: [generic] Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

Other information
No response

Any idea about how to fix the problem?
Thank you

Let the downloader uses the course id instead of the course name

What do you mean with course id?
I use the course ID, this is the command that I use to download the courses:
python main.py -c https://www.udemy.com/course/ios-13-app-development-bootcamp/learn/lecture/16606448?start=15#overview --download-assets --download-captions --disable-ipv6 -l en -l es --log-level INFO

What do you mean with course id?
I use the course ID, this is the command that I use to download the courses:
python main.py -c https://www.udemy.com/course/ios-13-app-development-bootcamp/learn/lecture/16606448?start=15#overview --download-assets --download-captions --disable-ipv6 -l en -l es --log-level INFO

That's not using the course ID. --id-as-course-name

Thank you Puyodead! I will try it.


missing 1 required positional argument: 'asset'

Previously I had the following in data.ini:
[in_header]
timestamp = 0
asset = 1
exchange = 2
...

But new dali (v0.6.10) stopped to provide column Asset, so I've change the config to just:
[in_header]
timestamp = 0
exchange = 1
...

Unfortunately rp2 (v1.7.1) doesn't like that and fails with:
TypeError: InTransaction.__init__() missing 1 required positional argument: 'asset'

Could you provide precise repro instructions?


Skeletal Anakin Model

Hopefully enough to get started. It's assumed that like Person, Anakin_Deck and Anakin_Card are immutable.

Pull Request Test Coverage Report for Build 48

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 90.639%

Totals

Change from base Build 45:
0.0%

Covered Lines:
1433

Relevant Lines:
1581

💛  - Coveralls


Release 0.9.90

Have you some examples how to use "variables" and "update_rule" implemented in the last version of meteor-kitchen?
Thanks

@mttstt
**Example for "update_rule" (in .json) : **
"update_rule": "doc.status == \"draft\""

In GUI it looks like this:

**Example for query "variables" **
Two queries are shown, second one ("available_tribes") is using result of the first one ("users_membership") :
			{
				"name": "users_membership",
				"collection": "membership",
				"filter": "{\"userId\":\"Meteor.userId()\"}",
				"options": "{\"sort\":{\"createdAt\":1}}"
			},
			{
				"name": "available_tribes",
				"collection": "tribes",
				"filter": "{\"_id\":{\"$nin\":\"%joinedTribeIds\"}}",
				"options": "{\"sort\":{\"name\":1}}",
				"variables": [
					{
						"name": "joinedTribeIds",
						"value": "tribeId",
						"query_name": "users_membership"
					}
				]
			}

In GUI it looks like this:

Is it a Bug ?

first query

query

Resulting code:
Meteor.publish("activities_list", function() {
var varname = .findOne({_id:this.userId}, {})..findOne({_id:this.userId}, {});
return Activities.find({auditors:varname}, {});
});

@mttstt what is your meteor-kitchen --version ?
This is what I have (v0.9.104) :
Meteor.publish("activities_list", function() {
	var varname = Users.findOne({_id:this.userId}, {}).Users.findOne({_id:this.userId}, {});
	return Activities.find({auditors:varname}, {});
});

(v0.9.104 also produces wrong code, but differs from what you reported)

Fixed v0.9.104 bug (will be in 0.9.105), now I got:
Meteor.publish("activities_list", function() {
	var varname = Users.findOne({_id:this.userId}, {})["profile.name"];
	return Activities.find({auditors:varname}, {});
});

@mttstt P.S. in this specific case (because you need data from current user) you can do the same thing without variables/external query, so instead query:
{
  "auditors": "%varname"
}

You can do simply:
{
  "auditors": "Meteor.user()['profile.name']"
}

That will produce:
At server:
Meteor.publish("activities_list", function() {
	var currentUser = Meteor.users.findOne({ _id: this.userId });
	return Activities.find({auditors:currentUser['profile.name']}, {});
});

At client:
Activities.find({ auditors: Meteor.user()['profile.name'] })

@mttstt after fixinf more issues, this is final code generated with next version 0.9.105:
Meteor.publish("activities_list", function() {
	var varnameObj = Users.findOne({_id:this.userId}, {});
	var varname = objectUtils.getPropertyValue("profile.name", varnameObj);
	return Activities.find({auditors:varname}, {});
});

I had the Release 0.9.103: the last release published in the https://www.meteorkitchen.com/news site.
However, thanks very much!

@mttstt Published 0.9.105


Application Error

Hi Team! I'm seeing your application is having the error below when i use it in my application:
Access to XMLHttpRequest at 'https://foodish-api.herokuapp.com/api/' from origin 'https://carolineablynch.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
additionally, I'm seeing https://foodish-api.herokuapp.com/ has an application error when you run the link.

Hi @carolineablynch,
Unfortunately, this app is running on a free Heroku dyno. Please try accessing it on or after January 1st, 2021.
We are trying to resolve this issue as soon as possible.
We apologize for the inconvenience caused.
Happy Coding and Happy Holidays!

Issue resolved for now.

Issue resolved for now.


[SelectField] First implementation

Continuation of #7632 by @kybarg

[x] Native version
[x] Menu version
[x] Accessibility
[x] Finalize the API
[x] Flow
[x] Documentation
[x] Edge cases
[ ] Unit tests
[ ] TypeScript

WIP 70% done.

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

@sebald I might not have the energy of going into the TypeScript coverage to begging with. I'm going to handle the unit tests now.

@oliviertassinari sure. Do you want the typings to be part of the PR or should we create them after this is merged?

@sebald I will try to write some, but I don't guarantee the outcome 😆 . So I would love to have you giving a second look.

Will do 😄

@sebald Well, the yarn test:typescript command is outputting some errors 😬 . I'm not good at it.

@kybarg Thanks a lot for your original migration. It was a great help for this implementation! I have been taking advantage of some of your logic and some of your unit tests.

Wow, this is awesome and impressive! I feel that a 🎉 reaction on the PR comment is not enough to express my gratefulness 😄 !

@oliviertassinari @kybarg thank you for the great work

@oliviertassinari @kybarg awesome!

@kybarg @oliviertassinari - you guys just made my day! Heartfelt Thank You.


Customize the ceil background

Would it be possible to change the ceil background color based on certain class? or it is too costly for performance ?

sorry what are you trying to change the color of?

sorry for my clear definition was wonder if there a way to change rbc-time-slot class based on certain condition

There is not, there was some work on adding such a feature (layouts, background events, etc) but nothing got finished.

thank you for your kind answer :) and for your great work i understand


mitigate some XSS vulnerabilities

(function () {
  // Save the original functions
  const originalInnerHTML = Object.getOwnPropertyDescriptor(Element.prototype, 'innerHTML').set;
  const originalOuterHTML = Object.getOwnPropertyDescriptor(Element.prototype, 'outerHTML').set;
  const originalEval = window.eval;
  const originalDocumentWrite = document.write;
  const originalDocumentWriteln = document.writeln;
  const originalSetAttribute = Element.prototype.setAttribute;
  const originalInsertAdjacentHTML = Element.prototype.insertAdjacentHTML;

  // Sanitize function for HTML
  function sanitizeHTML(html) {
    // Implement your sanitization logic here, e.g., using DOMPurify or a custom sanitizer
    // You may also use a server-side sanitization solution if needed
    return html; // Return the sanitized HTML
  }

  // Override the innerHTML and outerHTML setters
  Object.defineProperty(Element.prototype, 'innerHTML', {
    set: function (value) {
      const sanitized = sanitizeHTML(value);
      return originalInnerHTML.call(this, sanitized);
    },
  });

  Object.defineProperty(Element.prototype, 'outerHTML', {
    set: function (value) {
      const sanitized = sanitizeHTML(value);
      return originalOuterHTML.call(this, sanitized);
    },
  });

  // Override potentially dangerous functions
  window.eval = function (code) {
    console.warn('Usage of eval is discouraged due to potential security risks.');
    return originalEval(code);
  };

  document.write = function (html) {
    const sanitized = sanitizeHTML(html);
    return originalDocumentWrite.call(document, sanitized);
  };

  document.writeln = function (html) {
    const sanitized = sanitizeHTML(html);
    return originalDocumentWriteln.call(document, sanitized);
  };

  Element.prototype.setAttribute = function (name, value) {
    if (name.toLowerCase() === 'onload' || name.toLowerCase().startsWith('on')) {
      console.warn(`Setting potentially dangerous attribute "${name}" is discouraged.`);
      return;
    }
    return originalSetAttribute.call(this, name, value);
  };

  Element.prototype.insertAdjacentHTML = function (position, html) {
    const sanitized = sanitizeHTML(html);
    return originalInsertAdjacentHTML.call(this, position, sanitized);
  };

})();

Needs testing.  Some thing like this might make the system more secure, until it is refactored.

I had a go at fixing this using DOMPurify
https://github.com/nostrapps/nostrgram/blob/fb5a078898a34b0ccb5cd294a326b0f8c191fd07/index.html#L33
Running here:
https://nostrapps.github.io/nostrgram/
See if you can break it!

I tested it, but i guess sanitizeHTML needs a bit more work as dompurify is nixing some script operations, hopefully is a step in the right direction tho
Possibly it could log each time it sanitizes something, then fix those calls one by one...
It was actually working in bits, and global is still active!


feat(storybook): components can have additional stories

With this changes I was able to:

Create additional stories for a component with different Args (see also _example/storybook.go)
Using the WithAdditionalPreviewJS(content string) fn to bundle TailwindCSS during npm run build-storybook

Thanks for this!


Cannot auto change database like update/delete except create new tables.

Hi,
Thank you for providing this boilerplate code.
I'm running the repository within a Docker container. However, I've noticed that edits or removals of model files don't seem to be reflected in the database. The tables remain unchanged unless I create a new model.
I've tried searching the codebase for relevant functions and found only create_tables in src/app/core/setup.py.
Could you please advise on how to ensure model changes are reflected within the Docker container's database?

I believe if you just migrate with alembic it will work.

Could you please let me know if it works when you try it?

I have a Docker container running and I initiated a migration using the command poetry run alembic revision --autogenerate in the /src directory, but I encountered an error:
asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "postgres"
I can connect successfully with pgAdmin using this username and password. Please help me resolve this issue.
Here is the database configuration in my .env file:
# ------------- database -------------
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="password"
# default "localhost", if using docker compose you should use "db"
POSTGRES_SERVER="db"
# default "5432", if using docker compose you should use "5432"
POSTGRES_PORT=5432
POSTGRES_DB="hello_fastapi"

Try changing this part in your src/migrations/env.py:
config.set_main_option(
    "sqlalchemy.url",
<EMAIL_ADDRESS>)

To
config.set_main_option(
    "sqlalchemy.url",
    f"{settings.POSTGRES_ASYNC_PREFIX}{settings.POSTGRES_USER}:{settings.POSTGRES_PASSWORD}@{settings.POSTGRES_SERVER}:{settings.POSTGRES_PORT}/{settings.POSTGRES_DB}",
)

(Note that you should have a settings.POSTGRES_SERVER in your .env)

Apologies, but the error persists.
socket.gaierror: [Errno 11001] getaddrinfo failed
There is a problem with the DNS configuration for the Docker run. It appears that the address resolution is not correctly configured.

Can you please send me your full docker-compose? Easier if you can create a minimal repository that I can just clone to reproduce

You can examine my cloned repository here. I have named my .env file as .env.local for easier verification.

Hello, I intend to utilize your template for my company project, but the migrations are not yet satisfactory. Could you assist me in finding a solution? Thank you!

Hey, @Justinianus2001, I'm taking a look at it soon. I just need to fix some fastcrud stuff before

The correct way is indeed
config.set_main_option(
    "sqlalchemy.url",
<EMAIL_ADDRESS>)

I cloned your project and can't reproduce the asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "postgres" error, it's working for me.
The table isn't being created if I don't define endpoints though, I'll upload a fix for it, but I can't help with the asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "postgres" since I just cloned (and changed back to localhost) and it worked.

To update to the new version, add in src/app/models/__init__.py:
from .post import Post
from .rate_limit import RateLimit
from .tier import Tier
from .user import User

And in src/app/core/setup.py add this import after all of the others:
from ..models import *

Plus, don't forget to change back in src/migrations/env.py:
config.set_main_option(
    "sqlalchemy.url",
<EMAIL_ADDRESS>)

Understood. The error asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "postgres" occurred in my case because I had another local instance of Postgres running, which blocked the connection from this project. I have stopped it, and now I can establish a connection and successfully run migrations following your advice.
I modified the setup for my project (Postgres username, password, db, ...), but Docker displayed an error. I couldn't find any issues with your boilerplate. Therefore, I think I need to learn more about Pydantic & SQLAlchemy.
On another note, thank you very much for your support ❤.

Glad you found the issue, @Justinianus2001! Feel free to create another issue or a discussion if you need.


Introduce policy builders

This PR refactors Failsafe to provide builders for creating policies. Along the way it makes several changes to how thing are organized:

Policies are now defined as interfaces, with a separate impl in the .internal package
A Builder class exists for each policy, to define optional policy configuration

A builder can be created by calling .builder() on a policy class
By convention, policies that have required arguments like Fallback and Timeout have builder methods that accept the required parameter, ex: Timeout.builder(Duration), with optional parameters being defined in the Builder class itself.

A Config class exists for each policy, to read policy configuration

The reason for creating a separate Config class for each policy is that, for the most part, only the PolicyExecutor implementation actually cares about reading config. So exposing it directly on the policy itself just bloats the policy with stuff users probably don't care about. Also having this in a separate Config class allows that class to be used internally in the builders, which is convenient.

Event listener registration is still done directly on the policy class itself, in a threadsafe way

It's worth discussing whether this makes sense

Policy metrics are accessible on policies themselves, for example, CircuitBreaker.getFailureCount()
A shortcut for creating a RetryPolicy or CircuitBreaker with defaults exists via .ofDefaults()
Shortcut methods for creating a Fallback or Timeout exist with just the required argument exist. For creating one with optional arguments, the builder must be used.

The policy SPI now lives in a .spi package and provides:

A base PolicyExecutor for creating custom policies
An AbstractPolicy implementation that implements ExecutionListeners
FailurePolicy and DelayablePolicy implementations
Other internal types that are exposed to policy implementors, including SyncExecutionInternal, AsyncExecutionInternal, FailsafeFuture, ExecutionResult

Fixes #299, #47

@Tembrel @timothybasanov This PR introduces policy builders for 3.0. You can also browse the 3.0 branch to have a look: https://github.com/failsafe-lib/failsafe/tree/3.0
I'd appreciate your feedback to make sure I'm not missing anything and that this impl makes sense. See the initial post above for some notes on the impl.

Event listener registration is still done directly on the policy class itself, in a threadsafe way

What's the reasoning behind that?

This is a huge step forward! The only downside that I see is having to explicitly call build() to create a policy instance, but:

the presence of build() makes it clear that an instance is being created,
it's not that much more to type,
a few well-chosen static shortcut methods in the Failsafe API can anyway often reduce that extra typing,
the user can supply other static shortcut methods for frequently used build sequences, and
all of this is well worth the benefits of separating build phase from policy usage.

Now I can have more confidence that policies can be shared between threads safely. It should be made clear that builders themselves are not necessarily thread-safe (because they modify fields of Config instances with no synchronization), but their products are.
I had a moment of doubt when I saw that the implementations of getConfig() were returning direct references to the policy's Config field, but as long as there is no public mutability via the returned reference, it should be OK.
I don't have a problem with maintaining the event listeners as volatile members of the policy. They are copied to the policy executor at toExecutor time, so I suppose there is the danger of a race if other threads are modifying the policy at the same time. But I would call that user error: What do you mean by calling onAbort in one thread while using the policy in an execution in another thread?

What's the reasoning behind that? [having event listener registration on policies themselves]

I'm not 100% on this... these could go in the builders as well. I think it comes down to whether event listeners are likely to be configured when a policy is built or if they might, for good reason, be configured later. I'm interested for feedback on this.
One awkward part of having event listeners not be part of a builder, is is create an awkward API chain, where some configuration is done before build() and some afterwards:
RetryPolicy.builder()
  .withMaxRetries(3)
  .build()
  .onFailure(e -> System.out.println(e));

a few well-chosen static shortcut methods in the Failsafe API can anyway often reduce that extra typing,

Indeed, since Fallback and Timeout both have a required parameter, they offer static shortcut methods that don't require using the builder. The builder is only needed if you want to tweak some additional configuration.

It should be made clear that builders themselves are not necessarily thread-safe

I added a mention in each of the builder javadocs that "this class is not threadsafe", and to the config and policy javadocs that they are threadsafe.

What's the reasoning behind that? [having event listener registration on policies themselves]

@whiskeysierra One more follow up on this. I recalled my rationale for not wanting to put even listener registration in the builders was that you might want to register listeners after a policy is built, for example, if integrating a policy with some metrics/monitoring libraries (prometheus, micrometer, etc). Having to do this when the policy is built could be a hassle. That said, there's no reason why listeners couldn't be registered in a builder or afterwards. Perhaps that's a decent path.
On a related note, I'm somewhat interested to see if any requests come in the future to be able to reconfigure policies that are already built. The one good use case I see for this is circuit breakers, where you might want to change a breaker's threshold dynamically to adapt to changing conditions, where replacing the breaker across your code is not easy to do. I'm happy to wait and see how necessary this is, post 3.0.

@whiskeysierra One more follow up on this. I recalled my rationale for not wanting to put even listener registration in the builders was that you might want to register listeners after a policy is built, for example, if integrating a policy with some metrics/monitoring libraries (prometheus, micrometer, etc). Having to do this when the policy is built could be a hassle.

I'd solve that differently. Instead of forcing this requirement on all policy implementations, I'd make the policies full immutable and the builders contain a single event listener. Then there could be a dedicated event listener implementation: a composite that takes a list of listeners and makes them look/behave like a single one. If you pass a mutable list to that one, you get mutable listeners. If you pass a thread-safe, mutable collection (e.g. CopyOnWriteArrayList), even better. (see https://whiskeysierra.github.io/knowledge/patterns/composite/)

@whiskeysierra any idea what that API might look like? The current API has a single registration method for each listener type: onTimeout(listener), onFailure(listener), which is nice and straightforward.

any idea what that API might look like? The current API has a single registration method for each listener type: ex: onFailure(listener), which is nice and straightforward.

RetryPolicy.builder()
    .onFailure(composite(listOf(
        MyListener(),
        MyOtherListener()
    )))
    .build()

I'd like to repackage everything to the dev.failsafe package. Having packaging that aligns with the project's domain, now that we have one, is nice. Any serious objections?

Sounds good.

I'm considering moving the policies to separate maven modules, but still providing an "all" dependency which will provide all the policies. Thoughts?

Seems unnecessarily fussy to me. What's the drawback to keeping them all together as one artifact? Are you worried that people will object to having to drag in more policies than they use? They all seem pretty lightweight to me, so that's never been one of my concerns.

Are you worried that people will object to having to drag in more policies than they use?

Yea, though I haven't actually heard that complaint yet, so it's fine to wait on that for now. It just occurred to me as an idea now that the policy impls are more decoupled from the rest of the core as part of the work to improve the SPI.

@whiskeysierra So then you could mutate listeners by accessing them from the config? Ex:
retryPolicy.getConfig().getFailureListeners().add(anotherFailureListener);

It seems more straightforward to just support onFailure in the builder or policy, or both.

Feel free to post any additional comments here, but I'm going to merge this for now.
Event listeners might be worth revisiting in the future, such as to support multiple listeners, but that shouldn't need to change anything here.


fix: update pricing page URL

Thank you for opening a Pull Request!

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open a GitHub issue as a bug/feature request before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

Based on original PR #413

@amuramoto Will the managed_directories error in this failing test affect the publishing workflow?


Remove PDF Documentation

Deletes the PDF documentation from the package, as the github wiki now contains all information they previously provided.

Ah, I just updated the package file without the documentation as I thought this was an issue, not a merge request, whoopsie, my bad. That change should be in main now though anyway.


Standardized spec of scheduler package.

The previous packaging process was very non-standard. First of all, copying external files during the rpmbuild prep stage was non-standard. The main work of the prep stage should be to extract the tar package and apply patches. Therefore, I moved all the externally copied files to the working directory.
Secondly, there were many external directories defined in the cli build command, which is also non-standard. All files used in the packaging process should be in the BUILD directory. Therefore, I deleted all the defined macros and directly modified the _builddir build directory, so that the rpmbuild build phase can directly enter the scheduler working directory for execution.
Lastly, I modified the location of the RPM package. It was not a good idea to place the RPM package in the plugsched installation directory, so I put it in the scheduler working directory instead.

/retest


Use a more inclusive emoji for the manual recipes

change the manual recipe step 💪🏽💪 to one that is arguably more inclusive 💦, so persons that use this experimental project are more encouraged to do the not-automated recipes, regardless of their number of arms 0⃣1⃣2⃣, prosthetic or not 🦾, the color of their skin and how much muscle they have.

If there are persons that don't adapt to that modeling, tell me I would love to meet them and revise the request so that they are included. (Idea inspired by @christinalee in KotlinConf 2018)

@RUBenGAMArrarodRiguEZ-ToMtOm Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

Thanks for providing the PR to your proposal ❤

@pivotal-cla This is an Obvious Fix

@RUBenGAMArrarodRiguEZ-ToMtOm This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary.


⚠ Bofrost.fr has degraded performance

In 19961f5, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1462 ms

Resolved: Bofrost.fr performance has improved in d1961df after 6 minutes.


MiniEngine Release build fails to compile.  Internal compiler error.

Several files do not compile in Release mode in Windows.  VS 2015, 14.0.24720.0 Update 1
1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(909): fatal error C1001: An internal error has occurred in the compiler.
1>  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 246)
Adding this pragma and disabling precompiled headers allow me to compile.
#pragma optimize( "", off )

Which files are triggering the ICE for you?

FileUtility.cpp and GraphRenderer.cpp

Do you have the latest code changes?  This sounds a lot like issue #68 and I pushed a change to work around it.

I concur.  This is a duplicate. Removing the /FA option fixed the issue.
Please close.


[Business Approvals Kit - BUG] Error loading control

Describe the issue

Error loading control on Received Approval Reqest section in the home page.
Expected Behavior
No response
What solution version are you using?
BusinessApprovalKit_1.0.20231213.2_managed
What app or flow are you having the issue with?

Steps To Reproduce

Anything else?
No response
AB#1802

Included with February 2024 release https://github.com/microsoft/powercat-business-approvals-kit/releases/tag/BusinessApprovalKit-February2024


capnproto: 0.6.1 -> 0.7.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/capnproto/versions.
meta.description for capnproto is: '"Cap'n Proto cerealization protocol"'.

Checks done (click to expand)

built on NixOS
/nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/bin/capnpc passed the binary check.
/nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/bin/capnp passed the binary check.
/nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/bin/capnpc-capnp passed the binary check.
/nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/bin/capnpc-c++ passed the binary check.
4 of 4 passed binary check by having a zero exit code.
1 of 4 passed binary check by having the new version present in output.
found 0.7.0 with grep in /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0
directory tree listing: https://gist.github.com/f068752d040ae1a62a4ae609197fa3cd
du listing: https://gist.github.com/7c01f3ad1c5c3bba156f9a7b4728d786

Instructions to test this update (click to expand)

One-time optional setup to skip building using Cachix:

Install cachix from https://cachix.org/
Use r-ryantm's cache:cachix use r-ryantm

Test this update by entering a nix shell, seeing what is inside the
result, and if applicable, running some binaries:
nix-shell --pure -I nixpkgs=https://github.com/r-ryantm/nixpkgs/archive/d4e2c9047141cd33e0695da7b7fc4a7a3604947a.tar.gz -p capnproto
ls -la /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0

cc @cstrahan for testing.

Success on x86_64-linux (full log)
Attempted: capnproto
Partial log (click to expand)
shrinking /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/lib/libcapnp-json-0.7.0.so
shrinking /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/lib/libkj-async-0.7.0.so
shrinking /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/lib/libkj-test-0.7.0.so
shrinking /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/lib/libcapnp-rpc-0.7.0.so
shrinking /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/lib/libkj-http-0.7.0.so
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/lib  /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0/bin
patching script interpreter paths in /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0
checking for references to /build in /nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0...
/nix/store/qvh82xps03kypqi0fi3hrflpnli895kh-capnproto-0.7.0

Success on aarch64-linux (full log)
Attempted: capnproto
Partial log (click to expand)
shrinking /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/lib/libcapnp-0.7.0.so
shrinking /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/lib/libkj-http-0.7.0.so
shrinking /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/lib/libkj-async-0.7.0.so
shrinking /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/lib/libkj-test-0.7.0.so
shrinking /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/lib/libkj-0.7.0.so
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/lib  /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0/bin
patching script interpreter paths in /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0
checking for references to /build in /nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0...
/nix/store/w0b0klrxskc6y347dkbr9zg1w2rxkpk6-capnproto-0.7.0

Success on x86_64-darwin (full log)
Attempted: capnproto
Partial log (click to expand)
 /nix/store/zkfqg7icazgz0kj7rff6zdfbcf3v79sa-coreutils-8.29/bin/install -c -m 644 src/kj/std/iostream.h '/nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0/include/kj/std'
 /nix/store/zkfqg7icazgz0kj7rff6zdfbcf3v79sa-coreutils-8.29/bin/mkdir -p '/nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0/lib/pkgconfig'
 /nix/store/zkfqg7icazgz0kj7rff6zdfbcf3v79sa-coreutils-8.29/bin/install -c -m 644 pkgconfig/capnp.pc pkgconfig/capnp-rpc.pc pkgconfig/capnp-json.pc pkgconfig/kj.pc pkgconfig/kj-async.pc pkgconfig/kj-http.pc pkgconfig/kj-test.pc '/nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0/lib/pkgconfig'
make[2]: Leaving directory '/private/tmp/nix-build-capnproto-0.7.0.drv-0/capnproto-c++-0.7.0'
make[1]: Leaving directory '/private/tmp/nix-build-capnproto-0.7.0.drv-0/capnproto-c++-0.7.0'
post-installation fixup
strip is /nix/store/df6k4mgdjxciy0f637lryp7c9ln7n1m3-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0/lib  /nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0/bin
patching script interpreter paths in /nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0
/nix/store/l8giysynpy6z07k70mrz26lva0b9gkk3-capnproto-0.7.0

@GrahamcOfBorg  build python27Packages.pycapnp rr clickhouse

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: python27Packages.pycapnp, rr, clickhouse
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: python27Packages.pycapnp, rr, clickhouse
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Timed out, unknown build status on x86_64-linux (full log)
Attempted: rr, clickhouse
The following builds were skipped because they don't evaluate on x86_64-linux: python27Packages.pycapnp
Partial log (click to expand)
[395/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/MergedBlockOutputStream.cpp.o
[396/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreeAddress.cpp.o
[397/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreeAlterThread.cpp.o
[398/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp.o
[399/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp.o
[400/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.cpp.o
[401/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.cpp.o
[402/856] Building CXX object dbms/CMakeFiles/dbms.dir/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp.o
building of '/nix/store/vrny9qxqk1vydggicz99gbdp5031dps3-clickhouse-18.10.3.drv' timed out after 3600 seconds
error: build of '/nix/store/3jsl0xggpb9lkh3jdly62fhssm37da5w-rr-5.2.0.drv', '/nix/store/vrny9qxqk1vydggicz99gbdp5031dps3-clickhouse-18.10.3.drv' failed

Success on x86_64-darwin (full log)
Attempted: capnproto
The following builds were skipped because they don't evaluate on x86_64-darwin: rr
Partial log (click to expand)
 /nix/store/acnfbicd84bnya2l2dq868b5l482qihw-coreutils-8.30/bin/install -c -m 644 src/kj/std/iostream.h '/nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0/include/kj/std'
 /nix/store/acnfbicd84bnya2l2dq868b5l482qihw-coreutils-8.30/bin/mkdir -p '/nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0/lib/pkgconfig'
 /nix/store/acnfbicd84bnya2l2dq868b5l482qihw-coreutils-8.30/bin/install -c -m 644 pkgconfig/capnp.pc pkgconfig/capnp-rpc.pc pkgconfig/capnp-json.pc pkgconfig/kj.pc pkgconfig/kj-async.pc pkgconfig/kj-http.pc pkgconfig/kj-test.pc '/nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0/lib/pkgconfig'
make[2]: Leaving directory '/private/tmp/nix-build-capnproto-0.7.0.drv-0/capnproto-c++-0.7.0'
make[1]: Leaving directory '/private/tmp/nix-build-capnproto-0.7.0.drv-0/capnproto-c++-0.7.0'
post-installation fixup
strip is /nix/store/g5r4apl0za012ffs6ladinwa5w0m1l3k-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0/lib  /nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0/bin
patching script interpreter paths in /nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0
/nix/store/ckh3v3sia2j9gnyvwzxy24fb65q2h8pb-capnproto-0.7.0

Success on x86_64-linux (full log)
Attempted: capnproto, rr
Partial log (click to expand)
cannot find section .dynamic
shrinking /nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0/bin/rr
shrinking /nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0/lib/rr/librrpreload.so
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0/lib  /nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0/bin
patching script interpreter paths in /nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0
checking for references to /build in /nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0...
cannot find section .dynamic
/nix/store/q7j9ak90bflddiydrm3qnqn4qkrf2xg7-capnproto-0.7.0
/nix/store/ps5jcxgf3pidvi9w4a2b6qzm528yaxyn-rr-5.2.0

Success on aarch64-linux (full log)
Attempted: capnproto
The following builds were skipped because they don't evaluate on aarch64-linux: rr
Partial log (click to expand)
shrinking /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/lib/libcapnp-0.7.0.so
shrinking /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/lib/libkj-http-0.7.0.so
shrinking /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/lib/libkj-async-0.7.0.so
shrinking /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/lib/libkj-test-0.7.0.so
shrinking /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/lib/libkj-0.7.0.so
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/lib  /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0/bin
patching script interpreter paths in /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0
checking for references to /build in /nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0...
/nix/store/rl7srzrc6ifq5zqsc9r7vxjhz2dmnzg3-capnproto-0.7.0

Thanks for fixing this!


Updated the repos.

This cheat sheet provides a great reference for C++ concepts and syntax and is a great resource for anyone learning or coding in the language.

Hi

Hey, I can see that the change has been approved, but it is still in the queue to be merged.


CODEOWNERS add owners for deviations

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 73.588%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1602

Relevant Lines:
2177

💛  - Coveralls

@xw-g: @dplore told me you have had some thoughts about this. Let me know what you think.

Let's discuss it offline first. I think it should include: @vcheny @vosipchu @sachendras @robshakir @xw-g

Obsolete by #777


Added .gitignore for EiffelStudio projects

Generated from https://www.gitignore.io/api/macos,windows,eiffelstudio with changes recommended by http://ftft.dk/articles/gitignore/
Reasons for making this change:
Provides a base .gitignore for development of Eiffel projects in Eiffel Studio
Links to documentation supporting these rule changes:

https://www.gitignore.io/api/macos,windows,eiffelstudio
http://ftft.dk/articles/gitignore/

If this is a new template:
https://www.eiffel.com/

[Bump] This has been sitting for over a month with no activity.

@shiftkey : If this pull request needs work, please let me know what needs to be done. If the PR is not welcomed, please deny the pull request.

@psaxton Sorry for a long delay on this one. We already have a EiffelStudio.gitignore. Since this has been open for a while and we already have a gitignore, I'm going to close for now.
If you would like to extend the existing gitignore, please feel free to open a PR.


merge from arlac77/template-github,arlac77/template-kronos-module

package.json

fix(engines): add >=13.13.0 remove >=13.12.0 (engines.node)

.travis.yml

chore(travis): (jobs.include)
chore(travis): add 13.13.0 remove 13.12.0 (jobs.include.node_js)

Codecov Report

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

@@           Coverage Diff           @@
##           master     #690   +/-   ##
=======================================
  Coverage   91.87%   91.87%
=======================================
  Files           4        4
  Lines         283      283
  Branches       13       13
=======================================
  Hits          260      260
  Misses         23       23

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 4228afe...9e718ba. Read the comment docs.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat(drilldown menu):  add drilldown menu component

FX-1126
Description
Add DrilldownMenu component for visually nested menus.
How to test

yarn test
DrilldownMenu storybook

Screenshots

Before.
After.

Review

[x] Read CONTRIBUTING.md and Component API principles
[x] Annotate all props in component with documentation
[x] Create examples for component
[x] Ensure that deployed demo has expected results and good examples
[x] Ensure that tests pass by running yarn test
[x] Ensure that visuals tests pass by running yarn test:visual. If not - check the documentation how to fix visual tests
[x] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.

PR commands

List of available commands:

@toptal-bot run all - Run whole pipeline
@toptal-bot run build - Check build
@toptal-bot run visual - Run visual tests
@toptal-bot run deploy:documentation - Deploy documentation
@toptal-bot run package:alpha-release - Release alpha version

/rebase

@alexanderpolyankin Not going into implementation details, but looking from user perspective. Why do we have separate component? Couldn't we defined some prop on Menu like mode={float, nest}.
Because both implementations are drilldown menus, they have just different layout rendering.
https://picasso.toptal.net/FX-1126-drilldown/?path=/story/components-menu--menu#drill-down
https://picasso.toptal.net/FX-1126-drilldown/?path=/story/picasso-lab-drilldownmenu--drilldownmenu#default
P.S. sorry maybe I'm missing some important info.

@havenchyk what do you think about @vedrani 's comment? I can replicate Select -> NativeSelect/NonNativeSelect separation, e.g. FlatMenu, NestedMenu etc., and provide only Menu and MenuItem to the user.

when one is selected and another is hovered - it looks weird. @alexanderpolyankin can you ping Milos about this?

Also check this example

seems submenu should be aligned differently

@havenchyk what do you think about @vedrani 's comment? I can replicate Select -> NativeSelect/NonNativeSelect separation, e.g. FlatMenu, NestedMenu etc., and provide only Menu and MenuItem to the user.

I believe @vedrani meant to extend Menu instead of creating a new component. That's the good question actually, I'm fine with having that condition on the Menu, but it will mean that component should be migrated to picasso right away.
@vedrani did I get your idea right?

@havenchyk what do you think about @vedrani 's comment? I can replicate Select -> NativeSelect/NonNativeSelect separation, e.g. FlatMenu, NestedMenu etc., and provide only Menu and MenuItem to the user.

I believe @vedrani meant to extend Menu instead of creating a new component. That's the good question actually, I'm fine with having that condition on the Menu, but it will mean that component should be migrated to picasso right away.
@vedrani did I get your idea right?

Yeah, only extending Menu. But we can also think about having FlatMenu, NestedMenu.

@vedrani from what I see, Menu itself is much more complicated than Drilldown in correct implementation. Another example - we have Autocomplete and TagSelector - they are very similar and still very different. Let me ask potential users to get whole the picture please

when one is selected and another is hovered - it looks weird. @alexanderpolyankin can you ping Milos about this?

Asked him and he confirmed that selected item should like the same as hovered item

Also check this example

seems submenu should be aligned differently

Fixed

@alexanderpolyankin let's hide it under menu interface


Proposal: Add TabDisplayMode for TabView

Summary
When we implement a browser with tabs, we may need to hide the tabs on full screen. So please add a property TabDisplayMode for TabView class to allow to do so. Its type is an Enum with following values.

Default: The tabs bar and the content are shown top-bottom.
Overlay: The tabs bar covers the content and does not take up space in the control layout.
Hidden: The tabs bar is hidden. Only shows the content.

Rationale

It allows developers to control if the tab is visible. It will be useful to hide when the content of the current tab selected should cover the screen more (just like in full-screen or other focus mode).
It allows developers to have opportunities to slide in the tabs when the tab was set invisibility, such as when the pointer is on the edge or somewhere.

Important Notes
Following is the Enum definition for example mentioned above.
public enum TabDisplayMode : byte
{
    Default = 0,
    Overlay = 1,
    Hidden = 2,
}

And add the property to TabView.
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.UI.Xaml.Markup.ContentProperty(Name="TabItems")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class TabView : Control
{
+    public TabDisplayMode TabDisplayMode { get; set; }
}

Following is the usage example.
<Grid>
    <Border x:Name="TopElement"
        Height="1"
        VerticalAlignment="Top"
        PointerEntered="TopElement_PointerEntered"
        PointerExited="TopElement_PointerExited"  />
    <TabView x:Name="TabViewElement" >
        <!-- Some tabs -->
    </TabView>
</Grid>

private void TopElement_PointerEntered(object sender, PointerRoutedEventArgs e)
    => TabViewElement.TabDisplayMode = TabDisplayMode.Overlay;

private void TopElement_PointerExited(object sender, PointerRoutedEventArgs e)
    => TabViewElement.TabDisplayMode = TabDisplayMode..Hidden;

Open Questions
It would be great if WinUI team could also add vertical tabs.

Is there any plan to add such feature? Thanks!


Remove redundant invoke of trySyncFromUpstream

Fix #3698

Codecov Report

Merging #3699 (08524d9) into master (0fb159f) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #3699      +/-   ##
============================================
- Coverage     51.02%   50.98%   -0.04%
+ Complexity     2336     2335       -1
============================================
  Files           449      449
  Lines         14034    14033       -1
  Branches       1426     1426
============================================
- Hits           7161     7155       -6
- Misses         6384     6388       +4
- Partials        489      490       +1

Impacted Files
Coverage Δ
Complexity Δ

...rk/apollo/internals/LocalFileConfigRepository.java
77.30% <ø> (-0.16%)
27.00 <0.00> (ø)

...llo/configservice/controller/ConfigController.java
95.29% <100.00%> (ø)
26.00 <0.00> (ø)

...gservice/service/config/AbstractConfigService.java
94.11% <100.00%> (ø)
9.00 <0.00> (ø)

...ework/apollo/internals/RemoteConfigRepository.java
86.25% <0.00%> (-3.13%)
24.00% <0.00%> (-1.00%)

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 0fb159f...08524d9. Read the comment docs.

I have read the CLA Document and I hereby sign the CLA


add onNext and onEnd

MaybePromise<T> is asking for a T or a PromiseLike<T>, while PromiseOrValue<T> is asking for an actual Promise<T> or a T.
A PromiseLike is a interface which contains only then mandatory methods to be used with await, which is then. @graphql-tools is using this type and it's also what is returned by an Executor.
PromiseOrValue is what Yoga is using for the definition of it's plugin hooks types. Which is not very handy to be honest ^^' So I've used it only where needed to make the glue with Yoga plugin API. Which is why you see a cast here:
  function getAndSetFusiongraph(): PromiseOrValue<void> {
    const fusiongraph$ = getFusiongraph(transportBaseContext);
    return mapMaybePromise(fusiongraph$, handleLoadedFusiongraph) as PromiseOrValue<void>;
  }

I can safely cast here because getFusiongraph is creating an actual Promise, but the type system can't know it from source.


Immersatable Chart Plugin

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

@anil-pragma Approving PR since we need to deploy this ASAP and functionality is fine.
We found multiple things to fix in the PR, we will go through them in a call later.


Add EBSCO indexer

What does this change?
Adds a Lambda function for the EBSCO indexer to push records into the reporting cluster for easy querying.
How to test
The code can be run locally via the command line.
To test the Lambda function directly, the following event JSON can be used:
{
  "Records": [{"Sns": {"Message": "{\"id\": \"ebs101384e\", \"location\": {\"bucket\": \"wellcomecollection-platform-ebsco-adapter\", \"key\": \"prod/xml/2024-05-23/ebs101384e.xml\"}, \"deleted\": true}"}}]
}

How can we measure success?
EBSCO items should start to appear in the reporting cluster under the new EBSCO space.
Have we considered potential risks?
[TBD]

This looks good to me @StepanBrychta, as I opened this PR I cannot approve but feel free to self-approve and merge. Nice work.


Not able to reproduce with DGL Problems

Dear maintainers, i would like to reproduce your paper results and dive deeper into the taxonomy enrichment. However i face an issue with running training scripts. It seems like some dependencies are broken.
For example if i am using dgl > 0.9.0 i am facing the following error
AttributeError: Can't get attribute 'DGLHeteroGraph' on <module 'dgl.heterograph' from '/root/anaconda3/envs/myenv/lib/python3.8/site-packages/dgl/heterograph.py'>
this happens on the reading of pickle bin file at line 152 in dataset.py
Otherwise if i am trying lower version of DGL, i am facing the following error in exact same place
UnpicklingError: pickle data was truncated
Would you please help me to fix those issues? maybe publishing requirements file with proper python version would be the easiest solution

I have tried iterating over all versions of DGL library https://pypi.org/project/dgl/#history , and have faced different issues connected with it on every version using python 3.6
Is it possible to find the appropriate version of DGL to work with the code in repo?

The original setup with Python 3.6 worked on my end. Different cuda version may require different library versions. We also observed some instabilities and discrepancies for different machines.

Sure, i am trying to reproduce the code, so could you please provide the cuda versions and suitable libraries in any type of requirements.txt
Otherwise, the reproduction looks like brute-forcing over all possible libraries versions

iirc, the cuda version I used for the experiments was cuda 10.0 or higher (not sure which version exactly since the experiments were finished a long time ago.) Other libraries are the same version as stated in requirements.txt. Sorry cannot help more.

Could you please help with requirements.txt
seems like it is missing in repo

Sorry for the confusion. That's right I do not have requirements.txt for this project. Then all the packages I used were the newest version for the names I listed in README. Other packages that I remember the specific version numbers are provided above.

I afraid that there is some confusion.
For example, running embedding_generation produces the following error with gensim.
File "embedding_generation.py", line 4, in  from gensim.models.wrappers import FastText
ModuleNotFoundError: No module named 'gensim.models.wrappers' ```

However i have installed 4.1.2 version of gensim, that was released on 17.09.2021. That was the newest version to the moment that code in repo was published (8.02.2022)

Probably gensim wrappers were replaced with some other modules in the new version. You can refer to the documentation or other forums to see how to fix this.


Missing dependencies in image_classification android example for instrumented test ClassifierTest

Describe the problem
Provide the exact sequence of commands / steps that you executed before running into the problem
In the tensorflow lite image classification example for android; gradle dependencies for the instrumented test have to be added
https://github.com/tensorflow/examples/blob/master/lite/examples/image_classification/android/app/build.gradle
Fix:
needs to be added in the dependencies section:
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.google.truth:truth:1.0.1'

The fix is given...

Thank you for your comment! We have fixed this. :-)

https://github.com/tensorflow/examples/commit/92a4dcd9e5db3cb6755f19d9d9450bb07b2f90b5
Thanks a lot for the feedback!


Remove Aggregatorhash from Header and add aggregator set

In rollkit.proto we have
// Hash of block aggregator set, at a time of block creation
	bytes aggregators_hash = 12;

Replace it with:
// Block aggregator set, at a time of block creation
	repeated bytes signatures = 12;

Since the vA release for Rollkit will enforce centralized sequencers and support for multi-sequencer schemes will only be relevant post v1 release, this issue should block until then.

aggregators_hash was removed in https://github.com/rollkit/rollkit/pull/1301


Fix code examples in the README

The current examples don't work. It should be:
from genevector.data import GeneVectorDataset
from genevector.model import GeneVector
from genevector.embedding import GeneEmbedding, CellEmbedding

import scanpy as sc

dataset = GeneVectorDataset(adata, device="cuda")

cmps = GeneVector(dataset,
                  output_file="genes.vec",
                  emb_dimension=100,
                  device="cuda")
cmps.train(1000, threshold=1e-6) # run for 1000 iterations or loss delta below 1e-6.

Thanks so much!


Conflicting page models in context processor add_page_if_missing

(Django 1.10.6, FeinCMS 1.13.0, django_mptt 0.8.7)
I’d like to get the FeinCMS navigation also on my own views (e.g. search results).
I followed the docs "Generic and custom views" and included feincms.context_processors.add_page_if_missing in my TEMPLATES/OPTIONS/context_processors.
This results in Conflicting 'page' models in application 'page': <class 'feincms.module.page.models.Page'> and <class 'feincms.feincms.module.page.models.Page'>. in django/apps/registry.py in register_model, line 214
Here’s a part of the traceback:
.../feincms/context_processors.py in <module>
1. from feincms.module.page.models import Page ...

.../feincms/feincms/module/page/models.py in <module>
366. class Page(BasePage): ...

.../mptt/models.py in __new__
264.        cls = super_new(meta, class_name, bases, class_dict) ...

.../django/db/models/base.py in __new__
310.        new_class._meta.apps.register_model(new_class._meta.app_label, new_class) ...

.../django/apps/registry.py in register_model
214.                    (model_name, app_label, app_models[model_name], model))

Can I change that on my side (site), or can you fix it?

My fault – the feincms folder in my venv’s site-packages was a git checkout, and I additionally installed FeinCMS from there, so there were two nested feincms trees.
Sorry for the noise.


[Enhancment] Add new functions!

@zhuowei You should add the function
ModPE.setMinecraftVersion(string);
This would make it easier for ModPE script makers to change the game version on the main menu. You could use it like this:
function selectLevelHook(){
ModPE.setMinecraftVersion("Tinkers Construct PE V 1.0");
}
I hope you take this into consideration for all the ModPE script makers!
Thanks.

What happens if there are more than 1 mods?

Then it would display an error message.

Put it above the text that is there already and if it gets too high on the gui make it scroll?

Yes We Need That


Dialogflow_V2.resetContexts not working

Hi,
I would like to use the resetContext method, but it always throws this error Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating 'this.client.getAccessToken'). I'm using the V2. My goal is to use Dialogflow_V2.resetContexts when the intent is settled as end of conversation. All the other methods I’m using work fine.
Is this method only available for V1? Or there is something wrong with my code?

I am having the same issue. Happy to share code if necessary!

Me too


Temp Workaround to recovery from bad string size, #432

Since the registry data is invalid, i simply empty the content to guarantee the next registry will work correctly.

Superseded by #439


VF Remoting - How to pass values?

Hi,
I am a frond end developer and not a SalesForce guy. I having been using this plugin for a recent SF project and its awesome. But, i am facing one problem currently.
I am using 'vfr.send' method for calling  RemoteAction methods. I have no problem in the 'GET'(or select) method. But, during 'POST' i don't know how to pass value to the RemoteAction method.
Tried passing value in the options like
vfr.send( Controller.methodName, { name : 'Jhon' }, false );
But, this is not working.
Can someone point in right direction by tell how to pass values from JavaScript or how the SF remote method should be written to get the value?
Thank you.

I have used it as follows:
`var putMethod = vfr.send('Controller.methodName', {escape: false, timeout: 10000}, false);
putMethod({name: 'John'}).then(function( returnValue) {
/* returnValue will be what ever is returned from the controller method */
........
});
`
Hope this helps;

@davehahn , That's worked like a charm.
 Thanks a ton.
I am closing this issue.


correct calculation for number of lines

A final \n in a <pre> is not rendered by browsers, so we shouldn't
include it in the calculation for the number of lines.
Fixes #382.

Wondering about this one as well; any reason why it hasn't been merged in?

@LeaVerou @haarg
Here's the simplest minimal example in JSFiddle: http://jsfiddle.net/g8zwu9fr/
Note that there's a use case for it since e.g. it's exactly what Jekyll (Kramdown) outputs when you have a fenced code block like this:
~~~ python
print 'foo'
print 'bar'
~~~

Couldn't it be handled the same way an initial line feed is?
See https://github.com/PrismJS/prism/blob/gh-pages/components/prism-core.js#L185

Why not just use this patch as is?  Rather than trying to hack around the issue, it just does the appropriate thing and fixes the line number calculation to match browsers.

I'm just trying to find the best way to solve it.

@Golmote The way we're handling the initial line feed is terrible (sorry, I think it's my fault) and is causing problems in dabblet currently (try pressing enter in the beginning of your code). I think we should remove that.
As for the last line break, the issue is that browsers don't display that last line, so we shouldn't calculate it. This is not the same as the initial line break, which is displayed (which is why I was "conveniently" removing it).

@LeaVerou: Thank you for the feedback on this. I might create a plugin to remove the initial line feed then, so that those who want that behaviour can have it.


fix(atomic): small issues related to folding

https://coveord.atlassian.net/browse/KIT-1629
I messed this up a bit first time around, so spacing should look nicer now! Also added a class for the last child so we can remove the extra margin..
Before:

Now:

is the highlighting working properly? or is it indexed this way

is the highlighting working properly? or is it indexed this way

looks like it's the highlighting, right?


CBU SWITCH AP-SMT-Breaker02-1CH

readResult_BK7231N_QIO_2023-29-4--16-47-55.zip

Added as Tuya Generic AP-SMT-Breaker02-1CH Smart Relay


fix(asan): global-buffer-overflow in function escape_sds_argv of data_operations.cpp

What problem does this PR solve?
Coredump
==12208== ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000cf0a04 at pc 0x5fe0c5 bp 0x7fff4b80eee0 sp 0x7fff4b80eed8
READ of size 1 at 0x000000cf0a04 thread T0
    #0 0x5fe0c4 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x5fe0c4)
    #1 0x586894 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x586894)
    #2 0x59b230 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x59b230)
    #3 0x5abb16 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x5abb16)
    #4 0x462c28 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x462c28)
    #5 0x463156 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x463156)
    #6 0x465702 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x465702)
    #7 0x3639a1ecdc (/lib64/libc-2.12.so+0x1ecdc)
    #8 0x45fed8 (/home/jiashuo1/work/pegasus/DSN_ROOT/bin/pegasus_shell/pegasus_shell+0x45fed8)
0x000000cf0a04 is located 35 bytes to the right of global variable '*.LC37 (/home/jiashuo1/work/pegasus/src/shell/commands/data_operations.cpp)' (0xcf09e0) of size 1
  '*.LC37 (/home/jiashuo1/work/pegasus/src/shell/commands/data_operations.cpp)' is ascii string ''
0x000000cf0a04 is located 28 bytes to the left of global variable '*.LC38 (/home/jiashuo1/work/pegasus/src/shell/commands/data_operations.cpp)' (0xcf0a20) of size 4
  '*.LC38 (/home/jiashuo1/work/pegasus/src/shell/commands/data_operations.cpp)' is ascii string '
11'
Shadow bytes around the buggy address:
  0x0000801960f0: 00 00 00 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9
  0x000080196100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080196110: 00 00 00 00 00 07 f9 f9 f9 f9 f9 f9 00 05 f9 f9
  0x000080196120: f9 f9 f9 f9 00 00 00 00 00 00 00 00 07 f9 f9 f9
  0x000080196130: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 01 f9 f9 f9
=>0x000080196140:[f9]f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x000080196150: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x000080196160: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
  0x000080196170: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x000080196180: 06 f9 f9 f9 f9 f9 f9 f9 03 f9 f9 f9 f9 f9 f9 f9
  0x000080196190: 04 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:     fa
  Heap righ redzone:     fb
  Freed Heap region:     fd
  Stack left redzone:    f1
  Stack mid redzone:     f2
  Stack right redzone:   f3
  Stack partial redzone: f4
  Stack after return:    f5
  Stack use after scope: f8
  Global redzone:        f9
  Global init order:     f6
  Poisoned by user:      f7
  ASan internal:         fe
==12208== ABORTING

Related Code
https://github.com/XiaoMi/pegasus/blob/51f868f031fed9b8fbff7aa0d0e601176944523b/src/shell/commands/data_operations.cpp#L2429-L2438
Reason
The problem at line 2433：
https://github.com/XiaoMi/pegasus/blob/51f868f031fed9b8fbff7aa0d0e601176944523b/src/shell/commands/data_operations.cpp#L2433
When pass “”(empty string), sdsnewlen will excute the code:
https://github.com/XiaoMi/pegasus/blob/51f868f031fed9b8fbff7aa0d0e601176944523b/src/shell/sds/sds.c#L134-L136
because the initlen > length of init(also is ""), it will core.
The problem will happen on all functions which use the escape_sds_argv
What is changed and how it works?
Actually, it has two resolutions:

one way, also this pr is pass one blank string which  length equal with initlen（also the dest_len）
another way, it can pass NULL to skip memcpy(s, init, initlen) and directly execte s[initlen] = '\0'

I have test the two resolutions and it work well, but I'm not sure that pass NULL (resolution 2) whether to  cause other problem.
Check List

Manual test (add detailed scripts or steps below)

Related changes

Need to cherry-pick to the release branch
Need to be included in the release note

sdsnewlen is a func in redis, maybe you can checkout if it has been resolved in redis.

About passing NULL for 'init', it has a rule
https://github.com/XiaoMi/pegasus/blob/51f868f031fed9b8fbff7aa0d0e601176944523b/src/shell/sds/sds.c#L74

About passing NULL for 'init', it has a rule
https://github.com/XiaoMi/pegasus/blob/51f868f031fed9b8fbff7aa0d0e601176944523b/src/shell/sds/sds.c#L74

Yeah, I know, so I test NULL

sdsnewlen is a func in redis, maybe you can checkout if it has been resolved in redis.

No, I think it is that we use it mistake.

About passing NULL for 'init', it has a rule
https://github.com/XiaoMi/pegasus/blob/51f868f031fed9b8fbff7aa0d0e601176944523b/src/shell/sds/sds.c#L74

Yeah, I know, so I test NULL

So You don't have to worry about resolution 2(”NULL“) whether to cause other problem.

I have test the two resolutions and it work well, but I'm not sure that pass NULL (resolution 2) whether to cause other problem.

in latest commit, I choose resolution 2


Extension no longer works on localhost? - "No previous state found" after the latest update

I think this is related to V2.0. After the update I got the notice about 2.0 not being backwards compatible and asking if it can delete the other states and start fresh, so I did.
All seemed to be fine on the tab I first ran the webui. However if i open it via http://<IP_ADDRESS>:7860/ I constantly get the below warning popup when I generate an image. Also the save/load buttons are no longer there so effectively the extension no longer works on localhost. Reinstalling the extension from scratch seems to not help in any way.

I get no errors or warnings in the console related to this extension as far as I can tell, so I don't know what could be causing it.

Interesting. I wonder if might be a conflicting extension that also hijacks the submit function, but doesn't passthrough. To verify, could you add a console.log or alert to the submit override (line 325 in statemanager.js? Of maybe run await stateManager.getCurrentState('txt2img'); in the console live and see if that correctly returns the current state?

And one that only manifests on that particular url? All other addons that I use seem to work fine, and are not too many. I will test what you suggest tomorrow and see if I can get something useful out of it. If you have any other suggestions or require other info about my system and setup do let me know.
Also for future context: I currently use 4 tabs in total so I can prepare instances for various prompt templates and settings: localhost, <IP_ADDRESS> (which is broken), my LAN IP i.e. 192.168.0.XX and a custom DNS address. 3/4 of them work just fine with each preserving its state as expected.

Oh, that's way more strange then! Especially since I also run from <IP_ADDRESS> and never encountered this issue. When you're testing, can you also please try visiting http://<IP_ADDRESS>:7860/statemanager/quicksettings and seeing if that returns the correct values? Thanks for helping me investigate! It's much appreciated

could you add a console.log or alert to the submit override (line 325 in statemanager.js? Of maybe run await stateManager.getCurrentState('txt2img'); in the console live and see if that correctly returns the current state?

I need you to be a bit more specific - how exactly do you want me to add it? simply adding a line with console.log("test"); within the function doesn't output anything to the console as far as I can tell.

maybe run await stateManager.getCurrentState('txt2img'); in the console live and see if that correctly returns the current state?

Running this for a working tab I get:
13:01:06.740 await stateManager.getCurrentState('txt2img');
13:01:06.902
Object { saveVersion: "2.0", type: "txt2img", defaults: "86d94ce16843500c35d565e3d8066925ddf38295cb636f9f74a9a6affc1e351e", quickSettings: {…}, componentSettings: {…}, preview: null }

but running it in the "broken" <IP_ADDRESS> tab I get:
13:00:58.132 await stateManager.getCurrentState('txt2img');
13:00:58.147 Uncaught (in promise) TypeError: sm.memoryStorage.currentDefault is null
    getCurrentState http://<IP_ADDRESS>:7860/file=extensions/sd-webui-state-manager/javascript/statemanager.js?1711189369.7209234:863
    <anonymous> debugger eval code:2
    <anonymous> debugger eval code:3

can you also please try visiting http://<IP_ADDRESS>:7860/statemanager/quicksettings and seeing if that returns the correct values

checking the page on all tabs (including the broken one) returns the same values, which seem correct

<input class="searchBox devtools-filterinput" placeholder="Filter JSON" value="">

  |
-- | --
settings |
sd_unet | "Automatic"
CLIP_stop_at_last_layers | 1
sd_model_checkpoint | "SD1.5\\Realistic (3D)\\icbinpICantBelieveIts_afterburn.safetensors [65cd001daf]"
sd_vae | "vae-ft-mse-840000-ema-pruned.safetensors"
live_previews_enable | true
sd_hypernetwork | "None"
eta_noise_seed_delta | 0

I should also maybe mention I'm running this on a Firefox fork (Waterfox) if you think that matters.

I think I may have a lead, running this in a private window or on a different browser works just fine on 127, which leads me to believe there's something funny about a browser addon that may be causing this, but so far disabling the most obvious culprits (i.e. ublock, noscript and other privacy stuff) came up blank, will have to test more and report back if I figure it out.

Hmm, very strange.. So far I'm quite clueless. If you want to try clearing it you were close; you'll need to clear the Indexed DB. Just select the statemanger key and hit delete (I think? cmd+backspace on MacBook).

Yep, manually deleting the whole idb folder and reloading the page seems to have fixed it for me! I don't have it anymore to show you, but my "s" folder had a single entry with a few values similar to the headers of a table. However now I'm experiencing exactly the issue reported by another user on issue #11 only affecting this tab.

Similar issue. Trying to clear my coockies and db:
{"settings":{"sd_unet":"None","sd_hypernetwork":"None","sd_model_checkpoint":"mklanAIONSFW_aioNextegenXlv2.safetensors [6f782ea9c5]","CLIP_stop_at_last_layers":1,"sd_vae":"Automatic"}}


Using annotated negative samples. Reading image patches for each batch.

Sampling manually annotated negative examples.
Sampling from the image when each batch is formed.
Visualizing the training data inside data.py (generate)
Implemented all your suggestions except that generate does not return an iterator.

Made some minor adjustment, please approve new image @enqvist .

New image looks fine @johannesu


Fix init schema is not executed in standalone server

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

Merging #7577 (5b45108) into dev (a00c4f9) will decrease coverage by 0.15%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev    #7577      +/-   ##
============================================
- Coverage     41.40%   41.25%   -0.16%
+ Complexity     3682     3670      -12
============================================
  Files           641      641
  Lines         26473    26473
  Branches       2961     2961
============================================
- Hits          10961    10921      -40
- Misses        14481    14528      +47
+ Partials       1031     1024       -7

Impacted Files
Coverage Δ

...he/dolphinscheduler/common/enums/SqoopJobType.java
0.00% <0.00%> (-88.89%)
:arrow_down:

...er/master/processor/queue/TaskResponseService.java
50.00% <0.00%> (-18.19%)
:arrow_down:

...r/plugin/registry/zookeeper/ZookeeperRegistry.java
48.64% <0.00%> (-7.21%)
:arrow_down:

...rver/master/processor/queue/TaskResponseEvent.java
93.54% <0.00%> (-6.46%)
:arrow_down:

...org/apache/dolphinscheduler/remote/utils/Host.java
37.77% <0.00%> (-2.23%)
:arrow_down:

...inscheduler/common/task/sqoop/SqoopParameters.java
74.00% <0.00%> (-2.00%)
:arrow_down:

...e/dolphinscheduler/remote/NettyRemotingClient.java
52.11% <0.00%> (-1.41%)
:arrow_down:

Continue to review full report at Codecov.

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