This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(jaro). | |
-export([distance/2]). | |
%% This is an Erlang translation of Elixir's `String.jaro_distance/2'. | |
%% Upstream: https://github.com/elixir-lang/elixir/blob/v1.15.7/lib/elixir/lib/string.ex#L2784-L2879. | |
%% Jaro Distance is relatively simple - only transpositions of grapheme | |
%% clusters are allowed which is much simpler than other edit distance | |
%% measurements like Damerau–Levenshtein (insertion, deletion, substitution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("//:defs.bzl", "build_run", "build_test") | |
build_run(name = "hello-run") | |
build_test(name = "hello-test") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detection | |
# --------- | |
hook global BufCreate .*[.](erl|hrl|app\.src) %{ | |
set-option buffer filetype erlang | |
} | |
hook global BufCreate .*/rebar.config %{ | |
set-option buffer filetype erlang | |
} |