{"id":23344373,"url":"https://github.com/rec/myers","last_synced_at":"2025-04-10T02:32:59.939Z","repository":{"id":56803995,"uuid":"264620319","full_name":"rec/myers","owner":"rec","description":"A tiny, generic implementation of the Myers diff algorithm","archived":false,"fork":false,"pushed_at":"2020-11-07T12:29:51.000Z","size":28,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T04:04:08.225Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rec.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELIST","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-17T08:54:19.000Z","updated_at":"2024-10-07T23:27:12.000Z","dependencies_parsed_at":"2022-08-17T07:30:34.587Z","dependency_job_id":null,"html_url":"https://github.com/rec/myers","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fmyers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fmyers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fmyers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fmyers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rec","download_url":"https://codeload.github.com/rec/myers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144299,"owners_count":21054905,"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-21T06:26:28.242Z","updated_at":"2025-04-10T02:32:59.919Z","avatar_url":"https://github.com/rec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Myers diff of two lists or files\n---------------------------------\n\nInspired by\nhttps://gist.github.com/adamnew123456/37923cf53f51d6b9af32a539cdfa7cc4\n\nAPI\n===\n\n``myers.diff(a, b, context=None, format=None)``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n(`myers.py, 25-60 \u003chttps://github.com/rec/myers/blob/master/myers.py#L25-L60\u003e`_)\n\nReturn the Myers diff of two lists.\n\nThe result is a list of (action, line) pairs,\nwhere ``action`` is one of ``KEEP``, ``INSERT``, ``REMOVE``, or ``OMIT``\n(which happen to be the characters k, i, r, and o).\n\nARGUMENTS:\n   ``a``, ``b``:\n     The two files to compare\n\n   ``context``:\n     How many lines of context to keep between blocks of changes?\n     ``None``, the default, means keep all unchanged lines.\n     ``0`` means throw away all the unchanged lines.\n\n   ``format``:\n     If a dictionary, it is used to format\n     each diff entry.  If true, the default dictionary above is\n     used to format the diff entries.  Otherwise they are returned as-is.\n\n(automatically generated by `doks \u003chttps://github.com/rec/doks/\u003e`_ on 2020-11-07T12:19:33.047064)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frec%2Fmyers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frec%2Fmyers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frec%2Fmyers/lists"}