{"id":19129958,"url":"https://github.com/mathworks/extension-for-clone-detector","last_synced_at":"2026-06-18T03:31:32.325Z","repository":{"id":217317011,"uuid":"742429080","full_name":"mathworks/Extension-for-Clone-Detector","owner":"mathworks","description":"Extension for Clone Detector","archived":false,"fork":false,"pushed_at":"2024-02-23T20:47:50.000Z","size":219,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-03T11:09:38.084Z","etag":null,"topics":["clone-detector","simulink-model"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathworks.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-12T13:08:53.000Z","updated_at":"2024-04-22T16:17:24.000Z","dependencies_parsed_at":"2024-01-15T18:33:18.599Z","dependency_job_id":"525d7d1d-3d01-423a-9cb1-f74a01a35beb","html_url":"https://github.com/mathworks/Extension-for-Clone-Detector","commit_stats":null,"previous_names":["mathworks/extension-for-clone-detector"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FExtension-for-Clone-Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FExtension-for-Clone-Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FExtension-for-Clone-Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2FExtension-for-Clone-Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathworks","download_url":"https://codeload.github.com/mathworks/Extension-for-Clone-Detector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240206982,"owners_count":19765039,"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":["clone-detector","simulink-model"],"created_at":"2024-11-09T06:09:07.756Z","updated_at":"2026-06-18T03:31:27.306Z","avatar_url":"https://github.com/mathworks.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"Extension for Clone Detector:\n---------------------------------------------------------------------\nWhen fixing a bug or enhancing a functionality Simulink users have to \nsearch for all the clone/duplicate instances of the functionality \nmanually in a model or across multiple Simulink models which is \ntedious and time consuming task.\n\nWe are here to make the above experience efficient to search a \nSimulink blocks pattern in a target scope which can be models or folders.\n\n\u003c!--- Markdown supports the following HTML entities: © - \u0026copy;  ® - \u0026reg;  ™ - \u0026trade;\nMore information about Trademarks can be found internally within the Checklist for Community Contributions and Supportfiles Confluence page---\u003e\n\n## Setup \nTo Run:\n1. Download the zip file\n2. Ensure that it contains \"findClonesOfSource.m\" and \"cloneDetection_Matlab_App.mlapp\" files.\n3. Open the mlapp and run it. It will open a Clone Detector MATLAB\u0026reg; App\n\n### MathWorks Products (https://www.mathworks.com)\n\nRequires MATLAB release R2021a or newer\n- [Simulink\u0026reg; Check\u0026trade;](https://www.mathworks.com/products/simulink-check.html)\n\n## Getting Started \n1. Open the Clone Detector MATLAB\u0026reg; App as mentioned in the Setup\n2. Open a model and select a blocks pattern you want to search. \nClick on \"Get Selected Blocks\" in the GUI. This will fetch the selected blocks and \nadds them to the \"Define Source\" text field.\n3. Click on \"Browse Models\" or \"Browse Folders\" to select \nTarget Scope where you want to search the above blocks pattern\n4. Click on \"Find Clones\" button and wait for the results\n5. When clone detection is complete, you can explore the clones which \nare grouped per model. You can select a clone region and click on \n\"Highlight Selected Clone\" to highlight that in the respective model.\n6. If you want to use script/API workflow, you can do so by calling the \nfindClonesOfSource function with passing the sourceBlocksPath, targetScopeList\nto it.\n\n[Clone Detector App screenshot](screenshots/clone_detector_app.png)\n![Clone Detector App screenshot](screenshots/clone_detector_app.png)\n\n## Contents\nreadme.md                           This file.\u003cbr/\u003e\nlicense.txt                         License file.\u003cbr/\u003e\nsecurity.md                         Security statement.\u003cbr/\u003e\nfindClonesOfSource.m                Scipt which call Simulink Check APIs and aggregates the results\u003cbr/\u003e\ncloneDetection_Matlab_App.mlapp     MATLAB App GUI interface to detect clones and show results\u003cbr/\u003e\n\n## Examples\nTo learn how to use this in testing workflows, see [Examples](/examples/). \n\n## License\nThe license is available in the license.txt file in this GitHub repository.\n\n## References\nClone Detection official API documentation: https://www.mathworks.com/help/slcheck/ug/clone-detection-programmatically.html\u003cbr/\u003e\nClone Detector Simulink Toolstrip App documentation: https://www.mathworks.com/help/slcheck/ug/identify-subsystem-clones-and-replace-them-with-library-blocks.html\n\n## Community Support\n[MATLAB Central](https://www.mathworks.com/matlabcentral)\n\nCopyright 2023 The MathWorks, Inc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks%2Fextension-for-clone-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks%2Fextension-for-clone-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks%2Fextension-for-clone-detector/lists"}