{"id":13541734,"url":"https://github.com/bystep15/google-diff-match-patch","last_synced_at":"2025-04-02T09:32:22.800Z","repository":{"id":90345926,"uuid":"49929700","full_name":"bystep15/google-diff-match-patch","owner":"bystep15","description":"Automatically exported from code.google.com/p/google-diff-match-patch","archived":false,"fork":false,"pushed_at":"2016-01-19T08:21:53.000Z","size":2481,"stargazers_count":282,"open_issues_count":58,"forks_count":70,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-08-01T10:15:59.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bystep15.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-19T05:50:40.000Z","updated_at":"2024-06-25T05:48:47.000Z","dependencies_parsed_at":"2023-03-19T18:54:13.816Z","dependency_job_id":null,"html_url":"https://github.com/bystep15/google-diff-match-patch","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/bystep15%2Fgoogle-diff-match-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bystep15%2Fgoogle-diff-match-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bystep15%2Fgoogle-diff-match-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bystep15%2Fgoogle-diff-match-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bystep15","download_url":"https://codeload.github.com/bystep15/google-diff-match-patch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222818707,"owners_count":17042228,"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-08-01T10:00:55.575Z","updated_at":"2024-11-03T07:30:40.563Z","avatar_url":"https://github.com/bystep15.png","language":"Python","readme":"Diff, Match and Patch Library\nhttp://code.google.com/p/google-diff-match-patch/\nNeil Fraser\n\nThis library is currently available in seven different ports, all using the same API.\nEvery version includes a full set of unit tests.\n\nAPI地址(https://github.com/bystep15/google-diff-match-patch/tree/wiki)\n\nC++:\n* Ported by Mike Slemmer.\n* Currently requires the Qt library.\n\nC#:\n* Ported by Matthaeus G. Chajdas.\n\nDart:\n* The Dart language is still growing and evolving, so this port is only as\n  stable as the underlying language.\n\nJava:\n* Included is both the source and a Maven package.\n\nJavaScript:\n* diff_match_patch_uncompressed.js is the human-readable version.\n  Users of node.js should 'require' this uncompressed version since the\n  compressed version is not guaranteed to work outside of a web browser.\n* diff_match_patch.js has been compressed using Google's internal JavaScript compressor.\n  Non-Google hackers who wish to recompress the source can use:\n  http://dean.edwards.name/packer/\n\nLua:\n* Ported by Duncan Cross.\n* Does not support line-mode speedup.\n\nObjective C:\n* Ported by Jan Weiss.\n* Includes speed test (this is a separate bundle for other languages).\n\nPython:\n* Two versions, one for Python 2.x, the other for Python 3.x.\n* Runs 10x faster under PyPy than CPython.\n\nDemos:\n* Separate demos for Diff, Match and Patch in JavaScript.\n\n\nThe Diff Match and Patch libraries offer robust algorithms to perform the operations required for synchronizing plain text.\n\n### Diff\n* Compare two blocks of plain text and efficiently return a list of differences.\n* [Diff Demo](http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html)\n\n### Match\n* Given a search string, find its best fuzzy match in a block of plain text.  Weighted for both accuracy and location.\n* [Match Demo](http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_match.html)\n\n### Patch\n* Apply a list of patches onto plain text. Use best-effort to apply patch even when the underlying text doesn\u0026#x27;t match.\n* [Patch Demo](http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_patch.html)\n\nCurrently available in Java, JavaScript, Dart, C++, C#, Objective C, Lua and Python. Regardless of language, each library features [the same API](https://github.com/bystep15/google-diff-match-patch/blob/wiki/API.md) and the same functionality. All versions also have comprehensive test harnesses.\n\n### Algorithms\n\nThis library implements [Myer\u0026#x27;s diff algorithm](http://neil.fraser.name/software/diff_match_patch/myers.pdf) which is generally considered to be the best general-purpose diff. A layer of [pre-diff speedups and post-diff cleanups](http://neil.fraser.name/writing/diff/) surround the diff algorithm, improving both performance and output quality.\n\nThis library also implements a [Bitap matching algorithm](http://neil.fraser.name/software/diff_match_patch/bitap.ps) at the heart of a flexible [matching and patching strategy](http://neil.fraser.name/writing/patch/).\n","funding_links":[],"categories":["inbox"],"sub_categories":["Algorithm"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbystep15%2Fgoogle-diff-match-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbystep15%2Fgoogle-diff-match-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbystep15%2Fgoogle-diff-match-patch/lists"}