Skip to content

Instantly share code, notes, and snippets.

View danieldk's full-sized avatar

Daniël de Kok danieldk

View GitHub Profile
@danieldk
danieldk / punct-unigrams-bigrams.txt
Created September 2, 2023 09:04
Punctuation unigram frequencies across various programming languages, with their most common bigrams
_ 44919, bigrams: __: 1445, ._: 531, _(: 529, _): 138, (_: 99
, 42109, bigrams: ),: 3297, ",: 3266, ],: 1725, },: 461, >,: 389
. 37513, bigrams: ..: 1881, ).: 1539, ._: 531, ].: 436, .": 431
) 32189, bigrams: (): 6046, );: 3852, ),: 3297, )): 2780, "): 2528
( 32188, bigrams: (): 6046, (": 2536, (&: 1116, ((: 699, _(: 529
: 24991, bigrams: ::: 4528, ):: 2302, ":: 849, ]:: 427, :{: 351
" 22854, bigrams: ",: 3266, "": 2633, (": 2536, "): 2528, ":: 849
= 20709, bigrams: ==: 1217, =": 670, +=: 351, !=: 347, =>: 316
/ 12470, bigrams: //: 5087, /*: 494, */: 493, :/: 239, </: 163
; 10225, bigrams: );: 3852, };: 895, ?;: 473, ";: 468, ];: 456
zsh 4................26.35
zsh 3................28.07
zsh 2................28.62
Maltron Colswap......28.96
Rolll................30.67
RSTHD................30.77
Semimak JQ...........31.48
Maltron..............31.94
Whorf................32.15
Semimak..............32.16
Reference: QWERTY
q w e r t | y u i o p -
a s d f g | h j k l ; '
z x c v b | n m , . /
|
total: 274518150.875; scaled: 1.9124203185633584
base: 160930274.5 / t: 29114226; n: 19670615; e: 13467191; r: 10704640.5; o: 8845495;
same finger: 42968625 / ed: 4340025; rt: 3347550; tr: 3309420; un: 3211310; de: 3065845;
long jump hand: 10921500 / in: 2183465; on: 1408861; ve: 786052; ce: 544306; om: 541916;
long jump: 20913880 / ce: 5443060; ec: 4162360; un: 3211310; um: 1122550; ny: 1111780;
Counts of non-alpha characters across Rust and Python projects.
20336 _
15827 ,
14507 .
13524 :
11606 )
11599 (
7986 "
5677 /
generated Feb 17, 2023 11:01:14
system MacOS 13.2.1 Darwin 22.3.0 arm64
emacs 28.2 ~/.emacs.d/
doom 3.0.0-pre PROFILE=_@0 grafted, HEAD -> master, origin/master,
origin/HEAD e9662492 2023-01-01 21:55:13 -0500 ~/.doom.d/
shell /bin/zsh
features ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER THREADS
TOOLKIT_SCROLL_BARS ZLIB
traits batch envvar-file
modules :config use-package :completion company ivy :ui doom doom-dashboard
#include <stdlib.h>
#include <cblas.h>
int const M = 7;
int const K = 1026;
int const N = 1026;
int main() {
float const *A = (float *) calloc(M * K, sizeof(float));
diff --git a/thinc/backends/__init__.py b/thinc/backends/__init__.py
index ba4daaa8..1b39deb3 100644
--- a/thinc/backends/__init__.py
+++ b/thinc/backends/__init__.py
@@ -79,6 +79,10 @@ def _import_extra_cpu_backends():
from thinc_apple_ops import AppleOps
except ImportError:
pass
+ try:
+ from thinc_mkl_ops import MKLOps
--- training/pt_core_news_lg_rule/model-best/config.cfg 2021-11-22 10:28:51.610899763 +0100
+++ training-edit-tree-bench/pt_core_news_lg/model-best/config.cfg 2021-11-21 17:40:53.559460807 +0100
@@ -12,7 +12,7 @@
[nlp]
lang = "pt"
-pipeline = ["tok2vec","morphologizer","parser","senter","attribute_ruler","lemmatizer","ner"]
+pipeline = ["tok2vec","morphologizer","parser","senter","attribute_ruler","edit_tree_lemmatizer","ner"]
disabled = ["parser","senter","attribute_ruler","ner"]
before_creation = null
from typing import Optional, Callable, Any, Tuple
from ..model import Model
from ..util import use_nvtx_range
def with_nvtx_range(
layer: Model,
name: Optional[str] = None,
*,
@danieldk
danieldk / update-cargo-hashes.txt
Last active October 1, 2021 20:02
Rough procedure for updating all cargoSha256/cargoHash
Rough procedure for updating cargo hashes. Warning: this still requires a lot
of manual work to cover all bases. Based on:
https://github.com/NixOS/nixpkgs/pull/112764/commits/2650d5d2b8c19844224f8b368887153e2f18fdae
# Invalidate all hashes
rg -l "cargoHash" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoHash = "..../cargoHash = "sha256-1234/g'
rg -l "cargoSha256" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoSha256 = "[^s].../cargoSha256 = "1234/g'
rg -l "cargoSha256" | grep "\.nix" | xargs -n1 sed -i -re 's/cargoSha256 = "sha256-..../cargoSha256 = "sha256-1234/g'