{"id":23659440,"url":"https://github.com/cloudnetservice/spark","last_synced_at":"2025-12-01T06:30:14.847Z","repository":{"id":39575464,"uuid":"507063725","full_name":"CloudNetService/spark","owner":"CloudNetService","description":"A fork of the well known spark profiler which has support for CloudNet.","archived":false,"fork":false,"pushed_at":"2023-06-23T13:39:49.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T02:54:26.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CloudNetService.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-24T15:44:39.000Z","updated_at":"2022-06-24T15:51:06.000Z","dependencies_parsed_at":"2022-08-29T12:30:16.396Z","dependency_job_id":null,"html_url":"https://github.com/CloudNetService/spark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudNetService%2Fspark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudNetService%2Fspark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudNetService%2Fspark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CloudNetService%2Fspark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CloudNetService","download_url":"https://codeload.github.com/CloudNetService/spark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239647296,"owners_count":19674136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-29T02:54:28.587Z","updated_at":"2025-12-01T06:30:14.801Z","avatar_url":"https://github.com/CloudNetService.png","language":"Kotlin","readme":"# Spark profiler fork\n\nA fork of the well known [spark profiler](https://github.com/lucko/spark) which has support for CloudNet.\n\n## Dependencies\n\nThis project is available via [jitpack](https://jitpack.io):\n\n```groovy\nrepositories {\n    maven {\n        name = 'jitpack'\n        url = 'https://jitpack.io/'\n    }\n}\n\ndependencies {\n    implementation('com.github.CloudNetService.spark', '\u003csubmodule\u003e', 'main-SNAPSHOT')\n}\n```\n\n## Building from source\n\nAfter cloning the project you need to init the submodules and apply the patches using:\n\n```\ngit submodule update --init \u0026\u0026 ./gradlew applyPatches\n```\n\nYou can then publish spark into your local maven repository for testing:\n\n* Navigate into the `patched-spark` folder using the command line\n* Build \u0026 publish the project using `./gradlew publishToMavenLocal`\n\n**Java 17 is required to build the project!**\n\n## Making changes\n\nAfter applying the patches a new folder should appear named `patched-spark`. You can make changes to the spark sources\nin that folder. When you are done modifying them:\n\n* Navigate into the `patched-spark` folder using the command line\n* Commit your changes using a meaningful commit message\n* Move into the root project folder and build a patch from the created commit using `./gradlew rebuildPatches`\n\n## Modifying an existing patch\n\nTo modify an existing patch:\n\n* First make your changes in the `patched-spark` folder as always\n* Find the commit hash of the commit you want to edit by for example using `git log`, `git blame` or the git history\n  provided by your IDE or GitHub\n* Make a fixup commit: `git commit -a --fixup \u003ccommit hash of the patch to edit\u003e`\n    * You can also use `--squash` instead of `--fixup` to change the commit message of the patch as well\n* Rebase the changes: `git rebase -i --autosquash origin`. This will automatically move the fixup to the right place,\n  you just need to confirm the action by \"saving\" the changes in the text editor that will open.\n* Move into the root project folder and rebuild the patch from the created commit using `./gradlew rebuildPatches`\n\n## Patch formatting\n\nIn general, it is preferred to keep the patches as small as possible to make it easier to pull in changes made in the\nforked repository. Some general notes:\n\n* Single line changes always have a `// cloudnet` suffix, optionally providing a description of the change\n  like: `// cloudnet - private -\u003e protected`\n* Multi line changes start with `// cloudnet start` and end with `// cloudnet end`, the start message can optionally\n  contain a reason like: `// cloudnet start - easier access to caption registry`\n\nDon't comment lines out unless necessary, you can make the diff smaller by (for example) inserting an `if (true)`\nbefore the code you want to prevent from happening like:\n\n```java\npublic @NonNull String getMessage() {\n    // cloudnet start - no more heavy operations\n    if (true) return \"hello world\";\n    // cloudnet end\n    return \"hello\" + \" \" + \"world\";\n}\n```\n\nThis is how a full change might look like:\n```java\npublic @NonNull String getMessage(final @NonNull String input) { // cloudnet - private -\u003e public\n    final String partiallyFixed = input.replace('.', '-');\n    final boolean empty = partiallyFixed.isBlank(); // cloudnet - was isEmpty but isBlank is better\n    final Integer parsedValue = Ints.tryParse(partiallyFixed);\n    // cloudnet start - no more heavy operations\n    if (true) return \"hello world \" + partiallyFixed;\n    // cloudnet end\n    return \"hello\" + \" \" + partiallyFixed + \" \" + parsedValue + \" \" + \"world\";\n}\n```\n\n## Contributing\n\nIf you think that something else should be changed in order to easier integrate this fork into your project, fell free\nto open a pull request. Contributions are always welcome.\n\n## License\n\nThis project is based on [spark](https://github.com/lucko/spark) which is licensed under the terms of \nthe [GPL-3.0 license](https://github.com/lucko/spark/blob/master/LICENSE.txt). This \nincludes all files pulled in from the `spark` git submodule as well as the patched code in `patched-spark`. The patches \nand all other files in this repository are MIT licensed to the CloudNetService team \u0026 contributors.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudnetservice%2Fspark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudnetservice%2Fspark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudnetservice%2Fspark/lists"}