From 3698a6d2261413465fad35b6a07823abc4e22f23 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 6 Apr 2021 14:42:25 +0000 Subject: [PATCH] . --- .gitkeep | 0 index.css | 1 + index.html | 1 + index.module.js | 1 + index.nomodule.js | 1 + 5 files changed, 4 insertions(+) create mode 100644 .gitkeep create mode 100644 index.css create mode 100644 index.html create mode 100644 index.module.js create mode 100644 index.nomodule.js diff --git a/.gitkeep b/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/index.css b/index.css new file mode 100644 index 0000000..a1f5629 --- /dev/null +++ b/index.css @@ -0,0 +1 @@ +:root{color-scheme:light dark;background-color:#e6e6e6}a{color:#0367d8}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;margin:3em auto;max-width:30em}label{display:block}input{font:inherit}output{font-weight:700}@media (prefers-color-scheme:dark){:root{background-color:#16191d;color:#e2e5e9}} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..f7fe4e8 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +dice-coefficient

dice-coefficient

A quick demo of dice-coefficient.

Please raise any issues on GitHub.

Coefficient:

\ No newline at end of file diff --git a/index.module.js b/index.module.js new file mode 100644 index 0000000..83e31e5 --- /dev/null +++ b/index.module.js @@ -0,0 +1 @@ +var u=m(2),b=m(3);function m(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return o;function o(t){var n=[],r,i;if(t==null||(i=t.slice?t:String(t),r=i.length-e+1,r<1))return n;for(;r--;)n[r]=i.slice(r,r+e);return n}}function p(e,o){for(var t=String(e).toLowerCase(),n=String(o).toLowerCase(),r=t.length===1?[t]:u(t),i=n.length===1?[n]:u(n),c=-1,l=0,g,v,a;++c{var u=m(2),b=m(3);function m(e){if(typeof e!="number"||Number.isNaN(e)||e<1||e===Number.POSITIVE_INFINITY)throw new Error("`"+e+"` is not a valid argument for `n-gram`");return o;function o(t){var n=[],r,i;if(t==null||(i=t.slice?t:String(t),r=i.length-e+1,r<1))return n;for(;r--;)n[r]=i.slice(r,r+e);return n}}function p(e,o){for(var t=String(e).toLowerCase(),n=String(o).toLowerCase(),r=t.length===1?[t]:u(t),i=n.length===1?[n]:u(n),c=-1,l=0,g,v,a;++c