Skip to content

Commit

Permalink
Bump version to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
axelf4 committed Nov 25, 2024
1 parent 70ab03c commit cb0ce38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hotfuzz.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
;; Copyright (C) Axel Forsman

;; Author: Axel Forsman <[email protected]>
;; Version: 0.1
;; Version: 1.0
;; Package-Requires: ((emacs "27.1"))
;; Keywords: matching
;; Homepage: https://github.com/axelf4/hotfuzz
;; URL: https://github.com/axelf4/hotfuzz
;; SPDX-License-Identifier: GPL-3.0-or-later

;;; Commentary:
Expand Down Expand Up @@ -71,8 +71,8 @@ Large values will decrease performance."
"Calculate costs for transforming Aᵢ to Bⱼ with deletions for all j.
The matrix C[i][j] represents the minimum cost of a conversion, and D,
the minimum cost when aᵢ is deleted. The costs for row I are written
into NC/ND, using the costs for row I-1 in PC/PD. The vectors NC/PC
and ND/PD respectively may alias."
into NC/ND, using the row I-1 in PC/PD. The vectors NC/PC and ND/PD
respectively may alias."
(cl-loop
with m = (length b)
and g = 100 and h = 10 ; Every k-symbol gap is penalized by g+hk
Expand All @@ -97,7 +97,7 @@ and ND/PD respectively may alias."
(hotfuzz--calc-bonus haystack)
(let ((c (fillarray hotfuzz--c 10000)) (d (fillarray hotfuzz--d 10000)))
(dotimes (i n) (hotfuzz--match-row haystack needle i c d c d))
(aref c (1- m)))))) ; Final cost
(aref c (1- m))))))

(defun hotfuzz-highlight (needle haystack)
"Highlight destructively the characters NEEDLE matched in HAYSTACK.
Expand Down

0 comments on commit cb0ce38

Please sign in to comment.