Homec4science

Provide the ability to set an alter-operation cost to PhutilEditDistanceMatrix

Authored by epriestley <git@epriestley.com> on May 23 2013, 23:32.

Description

Provide the ability to set an alter-operation cost to PhutilEditDistanceMatrix

Summary:
In Arcanist, we currently price altering the edit operation so that strings like (x) vs ((x)) get analyzed as isssi instead of issis (that is, the first and last parens are highlighted as "new", rather than the first open and first close paren) which is better for human viewers.

Support this in PhutilEditDistanceMatrix.

Test Plan: Provided an alter cost in arc and ran the tests. They pass after this change.

Reviewers: btrahan, Afaque_Hussain

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2379

Differential Revision: https://secure.phabricator.com/D6013

Details

Committed
epriestley <git@epriestley.com>May 23 2013, 23:32
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUcd8cf8229aa2: Implemented phutil_utf8_combined().
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU70f880798b11: Provide the ability to set an alter-operation cost to PhutilEditDistanceMatrix (authored by epriestley <git@epriestley.com>).May 23 2013, 23:32