From: Junio C Hamano <hidden> Date: 2016-06-15 22:45:40
Johannes Schindelin [off-list ref] writes:
Okay, I understand now, _after_ having looked at the original
levenshtein.c.
IOW you could have made my task of reviewing your patch much easier.
Anyway, here is my
Acked-by: Johannes Schindelin [off-list ref]
Thanks for the bugfix,
In other words, even the original author's head exploded without looking
at extra context lines around the patch.
It is a sure sign that the original implementation was too scantily
described, and that the fix was not explained well in the proposed commit
log message (i.e. in what corner cases the original was bad in what way,
and how the patch fixes it).
I shouldn't have to decipher the original and the fixed version with
pencil and paper when re-reviewing Dscho's Ack.
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:45:40
Signed-off-by: Johannes Schindelin <redacted>
---
On Wed, 19 Nov 2008, Junio C Hamano wrote:
> It is a sure sign that the original implementation was too
> scantily described, and that the fix was not explained well in the
> proposed commit log message (i.e. in what corner cases the original
> was bad in what way, and how the patch fixes it).
How about this?
levenshtein.c | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
From: Samuel Tardieu <hidden> Date: 2016-06-15 22:45:40
* Johannes Schindelin [off-list ref] [2008-11-20 13:00:35 +0100]
| How about this?
I think it still lacks a note about what "deletion" and "insertion" means
(is that a character deleted from string1 to obtain string2 or the reverse?).
In most implementation, you use the same cost for insertion and deletion
so the function is symetrical, but this implementation is more powerful.
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:45:40
Signed-off-by: Johannes Schindelin <redacted>
---
On Thu, 20 Nov 2008, Samuel Tardieu wrote:
> * Johannes Schindelin [off-list ref] [2008-11-20
> 13:00:35 +0100]
>
> | How about this?
>
> I think it still lacks a note about what "deletion" and
> "insertion" means (is that a character deleted from string1 to obtain
> string2 or the reverse?). In most implementation, you use the same
> cost for insertion and deletion so the function is symetrical, but
> this implementation is more powerful.
Second paragraph and last sentence were added.
levenshtein.c | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
From: Jon Loeliger <hidden> Date: 2016-06-15 22:45:40
On Thu, 2008-11-20 at 14:27 +0100, Johannes Schindelin wrote:
Signed-off-by: Johannes Schindelin <redacted>
+ * This implementation allows the costs to be weighted:
+ *
+ * - w (as in "sWap")
+ * - s (as in "Substition")
+ * - a (for insertion, AKA "Add")
+ * - d (as in "Deletion")
+ *
Were these supposed to be examples or definitions?
The first looks like a definition by example.
I'm not sure what "Substition" is besides a misspelling.
Is it the definition "Substitution"? Or was it an
example "Substitition" poorly spelled?
The final two look like straight definitions.
Thanks,
jdl
On Thu, Nov 20, 2008 at 18:21, Jon Loeliger [off-list ref] wrote:
Were these supposed to be examples or definitions?
The first looks like a definition by example.
I'm not sure what "Substition" is besides a misspelling.
Is it the definition "Substitution"? Or was it an
example "Substitition" poorly spelled?
The final two look like straight definitions.
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:45:40
Hi,
On Thu, 20 Nov 2008, Jon Loeliger wrote:
On Thu, 2008-11-20 at 14:27 +0100, Johannes Schindelin wrote:
quoted
Signed-off-by: Johannes Schindelin <redacted>
quoted
+ * This implementation allows the costs to be weighted:
+ *
+ * - w (as in "sWap")
+ * - s (as in "Substition")
+ * - a (for insertion, AKA "Add")
+ * - d (as in "Deletion")
+ *
I'm not sure what "Substition" is besides a misspelling.