id
int64
0
45.1k
file_name
stringlengths
4
68
file_path
stringlengths
14
193
content
stringlengths
32
9.62M
size
int64
32
9.62M
language
stringclasses
1 value
extension
stringclasses
6 values
total_lines
int64
1
136k
avg_line_length
float64
3
903k
max_line_length
int64
3
4.51M
alphanum_fraction
float64
0
1
repo_name
stringclasses
779 values
repo_stars
int64
0
882
repo_forks
int64
0
108
repo_open_issues
int64
0
90
repo_license
stringclasses
8 values
repo_extraction_date
stringclasses
146 values
sha
stringlengths
64
64
__index_level_0__
int64
0
45.1k
exdup_ids_cmlisp_stkv2
listlengths
1
47
24,236
cl-gcrypt.lisp
gorozhin_cl-gcrypt/src/cl-gcrypt.lisp
(in-package #:cl-user) (defpackage #:cl-gcrypt (:use #:cl #:cl-gcrypt.helper)) (in-package #:cl-gcrypt) (cffi:define-foreign-library libgcrypt (:darwin (:or "libgcrypt.20.dylib" "libgcrypt.dylib.20" "libgcrypt.dylib")) (:unix (:or "libgcrypt.so.20" "libgcrypt.20.so" "libgcrypt.so")) (t (:default "libgcrypt")))...
16,938
Common Lisp
.lisp
303
53.871287
96
0.712035
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
35ae3fafd295a638d281d4928554d90dd1bf8354047f8c1d3977a72467dde690
24,236
[ -1 ]
24,237
sexp-export.lisp
gorozhin_cl-gcrypt/src/sexp-export.lisp
(in-package #:cl-gcrypt) (export '#.(lispify "gcry_sexp_t" 'type)) (export '#.(Lispify "GCRYSEXP_FMT_DEFAULT" 'enumvalue)) (export '#.(lispify "GCRYSEXP_FMT_CANON" 'enumvalue)) (export '#.(lispify "GCRYSEXP_FMT_BASE64" 'enumvalue)) (export '#.(lispify "GCRYSEXP_FMT_ADVANCED" 'enumvalue)) (export '#.(namify-function ...
1,572
Common Lisp
.lisp
32
47.6875
56
0.699214
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
befeb3269e574abef5b653cd00bfc6ad7a70348c12fdb7addcabd1caf9f93398
24,237
[ -1 ]
24,238
pk-export.lisp
gorozhin_cl-gcrypt/src/pk-export.lisp
(in-package #:cl-gcrypt) (export '#.(lispify "GCRY_PK_RSA" 'enumvalue)) (export '#.(lispify "GCRY_PK_RSA_E" 'enumvalue)) (export '#.(lispify "GCRY_PK_RSA_S" 'enumvalue)) (export '#.(lispify "GCRY_PK_ELG_E" 'enumvalue)) (export '#.(lispify "GCRY_PK_DSA" 'enumvalue)) (export '#.(lispify "GCRY_PK_ECC" 'enumvalue)) (expor...
1,670
Common Lisp
.lisp
34
47.970588
53
0.690374
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
6a02bce03b72ddc157a3ca1027f9e1d6111d2066be176bdc07114bbd59d82557
24,238
[ -1 ]
24,239
cipher-export.lisp
gorozhin_cl-gcrypt/src/cipher-export.lisp
(in-package #:cl-gcrypt) (export '#.(lispify "gcry_cipher_hd_t" 'type)) (export '#.(lispify "GCRY_CIPHER_NONE" 'enumvalue)) (export '#.(lispify "GCRY_CIPHER_IDEA" 'enumvalue)) (export '#.(lispify "GCRY_CIPHER_3DES" 'enumvalue)) (export '#.(lispify "GCRY_CIPHER_CAST5" 'enumvalue)) (export '#.(lispify "GCRY_CIPHER_BLOW...
3,801
Common Lisp
.lisp
70
53.242857
61
0.718272
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
3129047f97e4ac1f8769600b6142ecdb78db22a01bc8687438da63f9954ad8b6
24,239
[ -1 ]
24,240
helper.lisp
gorozhin_cl-gcrypt/src/helper.lisp
(in-package :cl-user) (defpackage cl-gcrypt.helper (:use :cl) (:export :lispify :enumvalue :constant :defenum :namify-function :namify-function-definition)) (in-package :cl-gcrypt.helper) (defmacro defenum (&rest definitions) `(progn ,@(loop for definition in definitions for ind...
1,870
Common Lisp
.lisp
74
18.824324
58
0.569514
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
0e667ff44f59bccf07affc94a2268c3c0ee511d2619ba25e2c0fc63fff8a1178
24,240
[ -1 ]
24,241
md.lisp
gorozhin_cl-gcrypt/t/md.lisp
(in-package #:cl-gcrypt-test) (def-suite cl-gcrypt-md-suite :description "Message digest tests") (in-suite cl-gcrypt-md-suite) (defun perform-simple-hash-test (algo expected &key (string "cl-gcrypt") (flags 0)) (let* ((foreign-string (convert-to-foreign string :string)) (foreign-string-length (forei...
22,233
Common Lisp
.lisp
535
36.882243
186
0.717201
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
1266d1b2360bd64ddacb62ccf856959b7b957b33385c19f5c66fa71572433425
24,241
[ -1 ]
24,242
cl-gcrypt-test.lisp
gorozhin_cl-gcrypt/t/cl-gcrypt-test.lisp
(in-package #:cl-user) (uiop:define-package #:cl-gcrypt-test (:use #:cl #:cl-gcrypt #:cffi #:fiveam #:alexandria #:babel) (:export #:cl-gcrypt-cipher-suite #:cl-gcrypt-md-suite)) (in-package #:cl-gcrypt-test) (defun foreign-buffer-to-string (buffer length) (unless (null-pointer-p buffer) (let ((stream (m...
1,232
Common Lisp
.lisp
33
33.090909
62
0.663317
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
6a56ad0032221756cf9d9a63a3b3c364649f9065ed9735e7cc27482d5ef0e58c
24,242
[ -1 ]
24,243
pk-test.lisp
gorozhin_cl-gcrypt/t/pk-test.lisp
(in-package #:cl-gcrypt-test) (def-suite cl-gcrypt-pk-suite :description "Assymetric cypto tests") (in-suite cl-gcrypt-pk-suite) (defun free-batch (&rest pointers) (loop for pointer in pointers do (foreign-free pointer))) (defun sexp-free-batch (&rest pointers) (loop for pointer in pointers do (gcry-sexp-relea...
6,610
Common Lisp
.lisp
163
35.276074
522
0.706425
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
249814142d1a03001457322c796c011a129038066106d32635133b617121538b
24,243
[ -1 ]
24,244
cipher-test.lisp
gorozhin_cl-gcrypt/t/cipher-test.lisp
(in-package #:cl-gcrypt-test) (def-suite cl-gcrypt-cipher-suite :description "Cipher tests") (in-suite cl-gcrypt-cipher-suite) (defun pad-right-with-zeros (buffer actual-buffer-length desired-length-multiplier) (let* ((padding (if (= desired-length-multiplier 1) 0 (- desired-length-multiplier ...
16,899
Common Lisp
.lisp
461
30.62256
73
0.687324
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
ef19716a55f94e25aae3e0369574c33436bd1f03da55c303c96498e6c257a28d
24,244
[ -1 ]
24,245
sexp-test.lisp
gorozhin_cl-gcrypt/t/sexp-test.lisp
(in-package #:cl-gcrypt-test) (def-suite cl-gcrypt-sexp-suite :description "Symbolic expression tests") (in-suite cl-gcrypt-sexp-suite) (let ((was-executed nil)) (cffi:defcallback simple-free :void ((data :pointer)) (setf was-executed t) (cffi:foreign-free data)) (defun callback-executed-p () (prog...
19,742
Common Lisp
.lisp
657
24.313546
79
0.644092
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
1309155e99b57c420947dba9667bf2a473979289738408b7e1472f705a61e700
24,245
[ -1 ]
24,246
cl-gcrypt.asd
gorozhin_cl-gcrypt/cl-gcrypt.asd
(in-package #:cl-user) (defpackage cl-gcrypt-asd (:use #:cl #:asdf)) (in-package #:cl-gcrypt-asd) (defsystem cl-gcrypt :version "0.0.1" :author "Mikhail Gorozhin <m.gorozhin at gmail.com>" :license "LGPLv2.1" :depends-on (#:cffi) :components ((:module "src" :components ((:file "md-binding" :depends-on ("...
1,081
Common Lisp
.asd
27
35.851852
66
0.634378
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
53f6202c9430db7f1a7e87ee2f6072001df840d612eedb869ae06603347b6e60
24,246
[ -1 ]
24,247
cl-gcrypt-test.asd
gorozhin_cl-gcrypt/cl-gcrypt-test.asd
(in-package #:cl-user) (uiop:define-package #:cl-gcrypt-test-asd (:use #:cl #:asdf #:uiop)) (in-package #:cl-gcrypt-test-asd) (defun run-tests () (let ((suites (list (intern* 'cl-gcrypt-cipher-suite '#:cl-gcrypt-test) (intern* 'cl-gcrypt-md-suite '#:cl-gcrypt-test) (intern* 'cl-gcrypt-sexp-suite '#:cl-gcr...
1,210
Common Lisp
.asd
33
32.69697
64
0.642491
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
51bd0323dc2dec413d430cdead46cda6c498706ca1edb2ea635c302e9b5933ed
24,247
[ -1 ]
24,268
tests.yml
gorozhin_cl-gcrypt/.github/workflows/tests.yml
name: Tests on: push: branches: pull_request: branches: jobs: test: name: ${{ matrix.lisp }} on ${{ matrix.os }} strategy: matrix: lisp: [sbcl-bin, ccl] os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 ...
1,997
Common Lisp
.l
54
28.740741
247
0.564116
gorozhin/cl-gcrypt
1
0
0
LGPL-2.1
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
93a372a17affb3e38b510a12d75d3427b8c7df27a3610fa8da55b1e96de2726e
24,268
[ -1 ]
24,283
documentation-EN.lisp
JMC-design_turtle-graphics/documentation-EN.lisp
(in-package :turtle) #-life (defun document (doc-strings) (dolist (doc-string doc-strings) (destructuring-bind (fn . doc) doc-string (setf (documentation (find-symbol (symbol-name fn)) 'function) doc)))) (document '((forward . "Move forward UNITS amount. Draws line if TURTLE-DRAWP is T.") (back . "Move...
1,485
Common Lisp
.lisp
25
55.76
92
0.714678
JMC-design/turtle-graphics
1
0
0
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
50d53179525418e42c1567aea3b6c768ea4710868a57e119ec1219eba0db5164
24,283
[ -1 ]
24,284
turtle.lisp
JMC-design_turtle-graphics/turtle.lisp
(defpackage :turtle-graphics (:use :cl) (:nicknames :turtle)) (in-package :turtle) (defconstant +half-pi+ (/ pi 2)) (defconstant +2pi+ (* pi 2)) (defparameter *composite-p* t "When True composites lines onto final drawing.") (defparameter *always-flush* nil "When False only flushes the clx display buffer in TO fu...
7,289
Common Lisp
.lisp
193
33.181347
187
0.63991
JMC-design/turtle-graphics
1
0
0
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
40863053fff78ad14bd8a405fb4760f51769087b6b85df38ca27e0a973a767d6
24,284
[ -1 ]
24,285
turtle-graphics.asd
JMC-design_turtle-graphics/turtle-graphics.asd
(in-package :asdf-user) (defsystem "turtle-graphics" :description "Turtle graphics for lisp supporting rgba32." :version "0.1" :author "Johannes Martinez Calzada" :licence "LGPL" :depends-on ("tag" "surface-x11") :components ((:file "turtle")))
257
Common Lisp
.asd
8
29.625
60
0.718876
JMC-design/turtle-graphics
1
0
0
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
f490220fee5f99b80e8013054a88c31bc2286c5a2a74836ef72a0a796bc8e0c4
24,285
[ -1 ]
24,304
gmsk-transfer.lisp
glv2_cl-gmsk-transfer/gmsk-transfer.lisp
;;; This file is part of cl-gmsk-transfer ;;; Copyright 2021-2022 Guillaume LE VAILLANT ;;; Distributed under the GNU GPL v3 or later. ;;; See the file LICENSE for terms of use and distribution. (defpackage :gmsk-transfer (:use :cl) (:import-from :cffi #:callback #:defcallback ...
19,319
Common Lisp
.lisp
441
24.76644
81
0.442439
glv2/cl-gmsk-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
a3be6b124a803f60c934bfab5c38ed43d75e2de0515a4620f7eac3c4ce88a213
24,304
[ -1 ]
24,305
tests.lisp
glv2_cl-gmsk-transfer/tests.lisp
;;; This file is part of cl-gmsk-transfer ;;; Copyright 2021-2022 Guillaume LE VAILLANT ;;; Distributed under the GNU GPL v3 or later. ;;; See the file LICENSE for terms of use and distribution. (defpackage :gmsk-transfer-tests (:use :cl :fiveam :gmsk-transfer) (:import-from :uiop #:with-temporary-...
3,923
Common Lisp
.lisp
77
38.181818
78
0.569752
glv2/cl-gmsk-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
a92d36426e72f6b6c2f7b59e2a9e0ec7743646bd1e5a0a76a2fe31c3d497734c
24,305
[ -1 ]
24,306
echo-server.lisp
glv2_cl-gmsk-transfer/examples/echo-server.lisp
;;; Example of use of cl-gmsk-transfer's API to make a server receiving ;;; messages from clients and sending them back in reverse order. ;;; ;;; Copyright 2021 Guillaume LE VAILLANT ;;; ;;; This program is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as ...
3,478
Common Lisp
.lisp
83
30.409639
73
0.565269
glv2/cl-gmsk-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
66d9a42e9f736e997538404308c25184a742481ccd59e2dd5ed65e5623cf1815
24,306
[ -1 ]
24,307
gmsk-transfer.asd
glv2_cl-gmsk-transfer/gmsk-transfer.asd
;;; This file is part of cl-gmsk-transfer ;;; Copyright 2021-2022 Guillaume LE VAILLANT ;;; Distributed under the GNU GPL v3 or later. ;;; See the file LICENSE for terms of use and distribution. (defsystem "gmsk-transfer" :name "gmsk-transfer" :description "Send and receive data with SDRs using GMSK modulation" ...
1,079
Common Lisp
.asd
26
36.307692
70
0.663178
glv2/cl-gmsk-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
756de384b26a6aad71dcade5284f7a10abc4e2bcf4e50fc3a0bc9d7ab94eb8d9
24,307
[ -1 ]
24,326
ofdm-transfer.lisp
glv2_cl-ofdm-transfer/ofdm-transfer.lisp
;;; This file is part of cl-ofdm-transfer ;;; Copyright 2021-2022 Guillaume LE VAILLANT ;;; Distributed under the GNU GPL v3 or later. ;;; See the file LICENSE for terms of use and distribution. (defpackage :ofdm-transfer (:use :cl) (:import-from :cffi #:callback #:defcallback ...
21,980
Common Lisp
.lisp
481
26.079002
81
0.453986
glv2/cl-ofdm-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
8da172023e2ebaaa799a53c8024ad3e52a9ec1535d2c2ad308bce1a555005cc1
24,326
[ -1 ]
24,327
tests.lisp
glv2_cl-ofdm-transfer/tests.lisp
;;; This file is part of cl-ofdm-transfer ;;; Copyright 2021-2022 Guillaume LE VAILLANT ;;; Distributed under the GNU GPL v3 or later. ;;; See the file LICENSE for terms of use and distribution. (defpackage :ofdm-transfer-tests (:use :cl :fiveam :ofdm-transfer) (:import-from :uiop #:with-temporary-...
3,923
Common Lisp
.lisp
77
38.181818
78
0.569752
glv2/cl-ofdm-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d480ce9585fcd7d1bd7fcfcbf7314cc7d11e8ca1856aea96c560501170330942
24,327
[ -1 ]
24,328
echo-server.lisp
glv2_cl-ofdm-transfer/examples/echo-server.lisp
;;; Example of use of cl-ofdm-transfer's API to make a server receiving ;;; messages from clients and sending them back in reverse order. ;;; ;;; Copyright 2021 Guillaume LE VAILLANT ;;; ;;; This program is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as ...
4,084
Common Lisp
.lisp
92
31.73913
80
0.564148
glv2/cl-ofdm-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
76d863d4cc1dbdba6255c6092751fe76e9689f206f03d67c0ef7ad970d061b94
24,328
[ -1 ]
24,329
ofdm-transfer.asd
glv2_cl-ofdm-transfer/ofdm-transfer.asd
;;; This file is part of cl-ofdm-transfer ;;; Copyright 2021-2022 Guillaume LE VAILLANT ;;; Distributed under the GNU GPL v3 or later. ;;; See the file LICENSE for terms of use and distribution. (defsystem "ofdm-transfer" :name "ofdm-transfer" :description "Send and receive data with SDRs using OFDM modulation" ...
1,079
Common Lisp
.asd
26
36.307692
70
0.663178
glv2/cl-ofdm-transfer
1
0
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
7ecbe3f6da56e9695ded1784078b1db79369cf9a3f2c4bc745f3627a68c2fa97
24,329
[ -1 ]
24,348
doit.lisp
shepherdjerred-homework_simplify-function/test/doit.lisp
(load "../src/simplify.lisp") (load "rules.lisp") (setq term0 '(+ Mary (+ Sue (- Sue)))) (pprint (setq a0 (simplify term0 r))) (setq term1 '(+ saw (+ (+ had (+ heard (- heard))) (- had)))) (pprint (setq a1 (simplify term1 r))) (setq term2 '(+ (+ (- (* a b)) (* a b)) a)) (pprint (setq a2 (simplify term2 r))) (setq term3...
873
Common Lisp
.lisp
19
44.894737
80
0.594373
shepherdjerred-homework/simplify-function
1
1
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
5e8c1861585db5fc77bf314f915c2d00905c10c1ea69a37e860581eb78881a01
24,348
[ -1 ]
24,349
rules.lisp
shepherdjerred-homework_simplify-function/test/rules.lisp
(setq r1 '((+ x (- x)) 0)) (setq r2 '((+ 0 x) x)) (setq r3 '((+ x 0) x)) (setq r4 '((/ x x) 1)) (setq r5 '((* x 1) x)) (setq r6 '((+ (- x) x) 0)) (setq r7 '((- (- x)) x)) (setq r8 '((* 1 x) x)) (setq r9 '((- x x) 0)) (setq r10 '((/ 0 x) 0)) (setq r11 '((* 0 x) 0)) (setq r12 '((/ (* y x) x) y)) (setq r (list r1 r2 r3 r4...
351
Common Lisp
.lisp
13
25.923077
54
0.436202
shepherdjerred-homework/simplify-function
1
1
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
6b3b15bc9464ab926a4dd642f5e4144a0051c69a80534999358e46cd41f9bfb5
24,349
[ -1 ]
24,350
test.lisp
shepherdjerred-homework_simplify-function/test/test.lisp
(progn (load "../src/match.lisp") (load "../src/simplify.lisp") ; (trace simplify) ; (trace simplify-term) ; (trace match) ; (trace find-matching-reduction) ; (trace apply-reduction) ; (trace apply-match) ; (trace apply-matches) (setq r '( ((+ x (- x)) 0) ...
848
Common Lisp
.lisp
37
14.378378
64
0.32797
shepherdjerred-homework/simplify-function
1
1
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
f2d4949552a2dcb5adbf47b626a2fec3c075f31d65ee0fd479389b7763dbfc72
24,350
[ -1 ]
24,351
match.lisp
shepherdjerred-homework_simplify-function/src/match.lisp
;************************************************************************ ; isvar ; ; return true or false to indicate whether or not argument is a variable ; ; (isvar 'u) => non-nil ; (isvar 'a) => nil (defun isvar (x) (member x '(u v w x y z))) ;***********************************...
3,900
Common Lisp
.lisp
88
36.443182
109
0.464729
shepherdjerred-homework/simplify-function
1
1
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
a1b927a768dfb896db7b5f375b9faff113913d91b0b93948a697685a08bf1093
24,351
[ -1 ]
24,352
simplify.lisp
shepherdjerred-homework_simplify-function/src/simplify.lisp
; simplify ; Jerred Shepherd ; match = ((X . A)) ; reduction = ((+ X 0) (X)) ; term = (+ A 0) ; Given a list of reductions, this function will return the reduction whose pattern matches the term. ; If no reduction matches the term, it will return nil ; Term: (+ A 0) ; Reductions: (((+ X 0) X)) (defun f...
3,275
Common Lisp
.lisp
114
22.236842
101
0.588832
shepherdjerred-homework/simplify-function
1
1
0
GPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d98fed6f5821ab67f3fc6fcea282f88aa2524a0a6af503b4caa3dde7da09cbd6
24,352
[ -1 ]
24,373
package.lisp
ibawt_cl-swagger/package.lisp
;;;; package.lisp ;;;; ;;;; Copyright (c) 2016 Ian Quick (defpackage #:cl-swagger (:use #:cl #:alexandria #:drakma) (:nicknames #:swagger) (:export #:generate-client #:swagger-object #:unknown-response-content-type-error #:unhandled-response-code-error))
290
Common Lisp
.lisp
13
18.615385
40
0.648551
ibawt/cl-swagger
1
1
1
AGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
82f1cd2d33332698d4d62c33b912f89fcb18ce276e7d6c145ad8cfd1f6185dab
24,373
[ -1 ]
24,374
test.lisp
ibawt_cl-swagger/test.lisp
(defpackage :test (:use :cl :cl-swagger)) (in-package :test) (defparameter *petstore-url* "http://localhost/v2/swagger.json") (defvar *petstore-json* (let* ((cl-json:*json-identifier-name-to-lisp* #'identity)) (fetch-json *petstore-url*))) (time (generate-client :test *k8s-json*)) (defvar ...
732
Common Lisp
.lisp
19
34.947368
127
0.681366
ibawt/cl-swagger
1
1
1
AGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
35a2cc0eb39145bd231dc324a766763ec5d735a5bb35f4a9d6b6fc6cd8cca1a7
24,374
[ -1 ]
24,375
cl-swagger.asd
ibawt_cl-swagger/cl-swagger.asd
;;;; cl-swagger.asd ;;;; ;;;; Copyright (c) 2016 Ian Quick (asdf:defsystem #:cl-swagger :description "Describe cl-swagger here" :author "Ian Quick <ian.quick@gmail.com>" :license "AGPL" :serial t :depends-on (:alexandria :cl-json :drakma) :components ((:file "package") ...
351
Common Lisp
.asd
13
21.538462
43
0.596439
ibawt/cl-swagger
1
1
1
AGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
eff5ba44da11aea8bc1897e50d4c3530e2c81aac8e73baeb804eab548581cc15
24,375
[ -1 ]
24,394
hackmode.lisp
lost-rob0t_hackmode/hackmode.lisp
(declaim (optimize (speed 3) (safety 0))) (defpackage :hackmode-user (:export :main) (:use :cl #:hackmode) (:documentation "top level entry function")) ;; I dont really use hackmode-user (in-package :hackmode-user) (defun main () (in-package :cl-user) (use-package :hackmode) (use-package :hackmode-tools...
455
Common Lisp
.lisp
16
25.9375
46
0.707094
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
f4ded435f7c73fd60734b6b1c96b8f5c6492af0b9e5931e7f41bd4388c8f0a2b
24,394
[ -1 ]
24,395
certsh.lisp
lost-rob0t_hackmode/source/hackmode-tools/recon/recon-dns/certsh.lisp
(in-package :recon.dns) (defun cert.sh (domain) (remove-duplicates (flatten (loop for result in (jsown:parse (dex:get (format nil "https://crt.sh/?q=~a&output=json" domain) :headers '(("User-Agent" . "Hackmode") ("Accept" . "Application/json")))) for domain = (jsown:val result "...
1,495
Common Lisp
.lisp
23
51.086957
201
0.570451
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
58b46ee215387a2c76c094cfeef0fd59061e93c0a4089d7b79c449f17f32cee7
24,395
[ -1 ]
24,396
package.lisp
lost-rob0t_hackmode/source/hackmode-tools/recon/recon-dns/package.lisp
(uiop:define-package :recon-dns (:use :cl :hackmode) (:nicknames :recon.dns) (:export :dns-recon :subfinder :subfinder* :dnsrecon :check-mdi :*subfinder-finish-hook* :*subfinder-setup-hook* :*cert.sh-finish-hook* :*cert.sh-setup-hook* :*oam-subs-setup-hook* :*oam-subs-finish-hoo...
487
Common Lisp
.lisp
23
17.434783
39
0.650108
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
93f72f191254e213c092a7557a72fb046c9ef8c20db5900df5c8126e6dbeee48
24,396
[ -1 ]
24,397
dns.lisp
lost-rob0t_hackmode/source/hackmode-tools/recon/recon-dns/dns.lisp
(in-package :recon-dns) ;; TODO wrape up shell tool creation into a macro since its just calling it from the shell (defun subfinder (&rest args) "run subfinder" (nth 0 (apply #'make-command "subfinder" "-silent" args))) (defvar *subfinder-setup-hook* (make-instance 'nhooks:hook-void ...
2,219
Common Lisp
.lisp
41
44.073171
153
0.616489
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
26e058b37986389993874e8979b177a993a3f925257090d1e969d55b40f60c46
24,397
[ -1 ]
24,398
mdi.lisp
lost-rob0t_hackmode/source/hackmode-tools/recon/recon-dns/mdi.lisp
(in-package :recon.dns) (defvar *check-mdi-setup-hook* (make-instance 'nhooks:hook-void :handlers nil) "Hook That is called before check-mdi is ran.") (defvar *check-mdi-finish-hook* (make-instance 'nhooks:hook-any :handler...
3,438
Common Lisp
.lisp
58
46.137931
163
0.60761
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
b9a732ddf2d0fbf3cf11c6b007df11c2c68e43844ea5e982bb1eeb23ab1b3b37
24,398
[ -1 ]
24,399
package.lisp
lost-rob0t_hackmode/source/hackmode-core/package.lisp
(uiop:define-package :hackmode (:import-from :serapeum :dict :@) (:documentation "Core hackmode internalls.") (:export :EXPLOIT-OPTION-DOCUMENTATION :EXPLOIT-NAME :USE :EXPLOIT-OPTIONS :EXPLOIT-OPTION-NAME :EXPLOIT-SETUP :UNIX-NOW :RUN-EXPLOIT :EXPLOIT-FUNC :EXPLOIT-HELP :EXPLOIT...
1,619
Common Lisp
.lisp
93
13.473118
46
0.673014
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
12e065a4ca5062a9e93ea0517e8b32382f6cadbc53fcd75269675b840631a96b
24,399
[ -1 ]
24,400
database.lisp
lost-rob0t_hackmode/source/hackmode-core/database.lisp
(in-package :hackmode) (conspack:defencoding meta doc-id tags dtype date-added date-updated operation) (conspack:defencoding output doc-id tags dtype date-added date-updated operation tool output) (conspack:defencoding host doc-id tags dtype date-added date-updated operation hostname ip) (conspack:defenco...
1,102
Common Lisp
.lisp
21
44.380952
102
0.66573
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
503ca78c42c1848cd36ddd39c99be028638205021154f3a995cebeadf0c8d073
24,400
[ -1 ]
24,401
objects.lisp
lost-rob0t_hackmode/source/hackmode-core/objects.lisp
(in-package :hackmode) (defclass meta () ((date-added :initarg :date-added :initform (unix-now) :type integer :accessor doc-date-added :allocation :class) (date-updated :initarg :date-updated :initform (unix-now) :type integer :accessor doc-date-updated :allocation :class) (operation :initarg :operation :init...
3,277
Common Lisp
.lisp
42
74.428571
121
0.735157
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d023caf9228f8fc4aedb1e18af01e23868b0c21d9fcae35eee450046d0d2860a
24,401
[ -1 ]
24,402
operations.lisp
lost-rob0t_hackmode/source/hackmode-core/operations.lisp
(in-package :hackmode) ;;; This file is ment to handle the handling of operation, which put simply is just a current working directory ;;; This is the common pattern when doing hacking i find myself in (defvar *operations-database* (tek9:new-database "operations" :path hackmode-operations-database)) (nhooks:add-hoo...
1,965
Common Lisp
.lisp
31
58.741935
146
0.714286
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
e553f0fb9ca90ff26535cb407048f2c507348e2b237c467fa4e9861720393cec
24,402
[ -1 ]
24,403
functions.lisp
lost-rob0t_hackmode/source/hackmode-core/functions.lisp
(in-package :hackmode) (defvar *api-common-patterns* (list "/api/" "/v1/" "/v2/" "/rest/" "/rest/v1/" "/rest/v2/" "/rpc/" "/rpc/v1/" "/rpc/v2/" "/services/" "/services/api/" "/services/v1/" "/services/v2/" "/public/api/" "/public/v1/" "/public/...
3,754
Common Lisp
.lisp
45
61.2
129
0.502434
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
140e3488ef5cd1ba59bad9aa23659321b41557da3ca8e43b49493bc14fc3ebcb
24,403
[ -1 ]
24,404
exploits.lisp
lost-rob0t_hackmode/source/hackmode-core/exploits.lisp
(in-package :hackmode) (defclass exploit () ((name :initarg :name :accessor exploit-name :initform (error "Invalid exploit Error: exploit requires a name")) (platform :initarg :platform :accessor exploit-platform :initform (error "Invalid exploit Error: exploit requires a platform")) (help :initarg :help :acce...
1,613
Common Lisp
.lisp
20
77.6
174
0.744788
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
667d352a4f406e73e5d08cf2ffdc8414063dbc22c9db0b0d54d01a431979db4f
24,404
[ -1 ]
24,405
settings.lisp
lost-rob0t_hackmode/source/hackmode-core/settings.lisp
;;;; This file is ment to be a user facing config options that is ment to be changed, ;;;; although everything can be, just these are explitit options (in-package :hackmode) (defvar config-dir (nfiles:expand (make-instance 'nfiles:config-file :base-path #p"hackmode/")) "A Path to user configuration") (defvar hackm...
3,297
Common Lisp
.lisp
35
89.142857
222
0.737882
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
b2db557d5ebff978d7ba4cc64b9ec79b9d0fc4e53ca347f98e7e542338bdeec3
24,405
[ -1 ]
24,406
db.lisp
lost-rob0t_hackmode/source/hackmode-database/db.lisp
(in-package :hackmode-database) (defvar *db* nil "The hackmode database object") (defun make-document (data &key (id (make-ke)))) ;; default to the one from tek9 ;; This is effectivly just a wrapper around "put" (defun put-doc (database document &key (database-name "std")) (tek9:put* database document :key (sxhas...
405
Common Lisp
.lisp
9
42.888889
63
0.728205
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
a164b3eac366dc715efd426f6385d695683718ac50f8b37ad664716dc891907f
24,406
[ -1 ]
24,407
package.lisp
lost-rob0t_hackmode/source/hackmode-database/package.lisp
(uiop:define-package :hackmode-database (:nicknames :hack-db) (:use :tek9 :cl) (:documentation "the database for starintel"))
135
Common Lisp
.lisp
4
31.25
48
0.709924
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
dbf6c274f4e696a430ef8c85676a07581ae706e2eebb7674f6b558786c4e1efa
24,407
[ -1 ]
24,408
hackmode-user.asd
lost-rob0t_hackmode/hackmode-user.asd
(asdf:defsystem :hackmode-user :version "0.1.0" :description "description" :author "nsaspy@airmail.cc" :serial t :license "LGPLv3" :components ((:file "hackmode")) :depends-on (#:hackmode #:lish #:hackmode-tools #:shellpool))
267
Common Lisp
.asd
8
30.625
65
0.629344
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
239e5c89ea6930aaf4a21a2f0c377d929965bd87c8f600e9a3ad6fdce6f5b5b2
24,408
[ -1 ]
24,409
recon-dns.asd
lost-rob0t_hackmode/source/hackmode-tools/recon/recon-dns/recon-dns.asd
(asdf:defsystem :recon-dns :version "0.1.0" :description "DNS recon tooling." :author "nsaspy@airmail.cc" :serial t :license "LGPLV3" :components ((:file "package") (:file "dns") (:file "mdi") (:file "certsh")) :depends-on (#:ha...
392
Common Lisp
.asd
11
28.727273
92
0.530184
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
576a172ddda412d8b420ebf72148a9077736378f635640850a305b1ff6ef8e1f
24,409
[ -1 ]
24,410
hackmode.asd
lost-rob0t_hackmode/source/hackmode-core/hackmode.asd
(asdf:defsystem :hackmode :description "Core Systems for hackmode" :author "nsaspy" :license "LGLV3" :version "0.1.0" :serial t :depends-on (#:serapeum :local-time :nfiles :nhooks #:tek9 #:cl-ppcre #:dexador #:shellpool) :components ((:file "package") (:file "utils") (:file "...
539
Common Lisp
.asd
16
24.3125
94
0.527725
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
9c83c3123cd3aa975116945dc6b713a4c73ad44c02b3c4ed5ad141448e8ff343
24,410
[ -1 ]
24,411
hackmode-database.asd
lost-rob0t_hackmode/source/hackmode-database/hackmode-database.asd
(asdf:defsystem :hackmode-database :description "Database for hackmode" :author "nsaspy" :license "MIT" :version "0.1.0" :serial t :depends-on (#:tek9 #:cl-conspack) :components ((:file "package") (:file "objects") (:file "encoding") (:file "db")))
309
Common Lisp
.asd
11
21.636364
38
0.575758
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
05faa01343a825621bebb9516e95ba0c60ae89fc0b848b9166e83762f2fe4722
24,411
[ -1 ]
24,414
flake.lock
lost-rob0t_hackmode/flake.lock
{ "nodes": { "nixpkgs": { "locked": { "lastModified": 1699580828, "narHash": "sha256-SQT+801NjseVMQCr0ZVJVsdL9AN4CKxSU2Zf3oIbj+Q=", "owner": "nixos", "repo": "nixpkgs", "rev": "7c19f30a07d07d3fceaa2f6fced02c42c43563a8", "type": "github" }, "origina...
534
Common Lisp
.l
26
14.153846
73
0.48622
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
ad6f044665d110ba4f4f2263fa11d7e28c3985805cdb4d910f03462b9835d018
24,414
[ -1 ]
24,415
.gitmodules
lost-rob0t_hackmode/.gitmodules
[submodule "deps/yew"] path = deps/yew url = https://github.com/lost-rob0t/yew-for-hackmode.git [submodule "deps/cl-cidr-notation"] path = deps/cl-cidr-notation url = https://github.com/AccelerationNet/cl-cidr-notation.git
227
Common Lisp
.l
6
36.166667
62
0.760181
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d63b0a435abe97a16999847be5a7bce00111f20dc8d2ac5523a209a683cffbf0
24,415
[ -1 ]
24,416
Makefile
lost-rob0t_hackmode/Makefile
## # Hackmode # # @file # @version 0.1 LISP ?= sbcl all: test run: $(LISP) --load run.lisp build: $(LISP) --non-interactive \ --load hackmode-user.asd \ --eval '(ql:quickload :hackmode-user)' \ --load 'hackmode.lisp' \ --eval "(sb-ext:save-lisp-and-die \"hm\" :toplevel 'hackmode-user::main :executable t :...
385
Common Lisp
.l
19
18.368421
104
0.67313
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
c0e1bcf06af885bec29e5e0889dc9d67d46d7434b68a88a2ac0ac8a6577e3b2d
24,416
[ -1 ]
24,417
flake.nix
lost-rob0t_hackmode/flake.nix
{ description = "Hackmode is a red teaming toolkit/exploit framework for common lisp"; inputs = { nixpkgs.url = "github:nixos/nixpkgs"; }; outputs = { self, nixpkgs }: let pkgs = nixpkgs.legacyPackages.x86_64-linux; in { devShell.x86_64-linux = pkgs.mkShell { buil...
950
Common Lisp
.l
36
17.055556
204
0.526894
lost-rob0t/hackmode
1
0
3
LGPL-3.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
93456ac417ce865a42f213fbce394331ded14e565119e4c9dc01d5cdda28f088
24,417
[ -1 ]
24,445
mandelbrot.lisp
sebity_mandelbrot/mandelbrot.lisp
;;;; mandelbrot.lisp (in-package #:mandelbrot) ;;; "mandelbrot" goes here. Hacks and glory await! (defparameter *width* 800) (defparameter *height* 600) (defparameter *zoom* 0.35) (defparameter *move-x* 1.5) (defparameter *move-y* 1.4) (defparameter *max-iterations* 300) (defun square (x) (* x x)) (defun draw-f...
2,873
Common Lisp
.lisp
85
27.282353
77
0.568838
sebity/mandelbrot
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
12f1a611577eabfe69a40d4aab2fa23e2fc0ce3f96ed934080e7f37a50fc0e5a
24,445
[ -1 ]
24,446
mandelbrot.asd
sebity_mandelbrot/mandelbrot.asd
;;;; mandelbrot.asd (asdf:defsystem #:mandelbrot :description "A Mandelbrot Set in Common Lisp" :author "Jan Tatham <jan@sebity.com>" :license "GPL v2" :depends-on (#:lispbuilder-sdl) :serial t :components ((:file "package") (:file "mandelbrot")))
277
Common Lisp
.asd
9
26.555556
48
0.665414
sebity/mandelbrot
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
c27b42e82d62bcda75064ece965cfb6e2a1a487241981f2d4127c9375af86ba3
24,446
[ -1 ]
24,464
packages.lisp
jnjcc_cl-nlp/packages.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Natural Language Processing in Common Lisp (in-package #:cl-user) (defpackage #:cl-nlp (:nicknames #:nlp) (:use #:cl #:cl-ml/probs #:cl-ml/algo #:cl-ml/linalg #:cl-ml/graph #:cl-ml/io #:cl-ml #:cl-nlp/algo) (:export #:f...
1,526
Common Lisp
.lisp
38
30.289474
82
0.558406
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
4002e91b11dd76ef641c509a16bb0c0cfec3d22b8024a2e74d6690e5d46a68a9
24,464
[ -1 ]
24,465
word2vec-test.lisp
jnjcc_cl-nlp/test/word2vec-test.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (define-test w2v-vocab-test "Huffman tree of the form: 8 / \ 6 7 / \ / \ 5 B D A / \ 2 3 4 E C 0 1 where inner node being index, whi...
2,230
Common Lisp
.lisp
51
37.764706
108
0.611034
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
c405d2ab6d030f9309f053e9ab60d5c4bdbaf174ce80aa537569ad2db6ac06d4
24,465
[ -1 ]
24,466
pgm-test.lisp
jnjcc_cl-nlp/test/pgm-test.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (define-test hmm-model-test (let ((states '("bull" "bear" "static")) (symbls '("up" "down" "unchanged")) (startp '(0.5 0.2 0.3)) (transp '((0.6 0.2 0.2) (0.5 0.3 0.2) (0.4 0.1 0.5))) (e...
1,155
Common Lisp
.lisp
23
40.826087
91
0.538053
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
17641aa54e71f8ba19fd44a3e6d808e35146132d1037d5c11906df73a7ef6302
24,466
[ -1 ]
24,467
algo-test.lisp
jnjcc_cl-nlp/test/algo-test.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (define-test algo-dict-test (let* ((keys '("A" "B" "C")) (vals '( 1 2 3)) (badict (zip-badict keys vals)) (bhdict (zip-bhdict keys vals))) (assert-eq 1 (badict-ref badict "A")) (...
1,003
Common Lisp
.lisp
24
36.708333
66
0.610883
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
23112ffff9c980e262591cd53a02df623943e0412eef04444580d525889f5b47
24,467
[ -1 ]
24,468
tests.lisp
jnjcc_cl-nlp/test/tests.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (defun run-all-tests () (let ((result (run-tests :all :cl-nlp/test))) (test-names result) result))
210
Common Lisp
.lisp
7
27.285714
66
0.651741
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
9a7ea3ffd29a044f2355bfaf1491e6178cf8a61211c3fa9c179d5c01a8215879
24,468
[ -1 ]
24,469
postag-test.lisp
jnjcc_cl-nlp/test/postag-test.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (define-test hmm-tagger-test (if (probe-file *treebank-dir*) (let* ((treebank (cl-nlp::load-treebank-dir *treebank-dir*)) (tagcorpus (cl-nlp::parse-treebank treebank)) (trains (subseq t...
1,842
Common Lisp
.lisp
33
46.545455
80
0.596676
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d3c06a7ecff7032856bdfddab70aa48d456be2c9ebbb05696c85eeeac9c13214
24,469
[ -1 ]
24,470
corpora-test.lisp
jnjcc_cl-nlp/test/corpora-test.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (define-test treebank-test (if (probe-file *treebank-dir*) (let* ((treebank (cl-nlp::load-treebank-dir *treebank-dir*)) (tagged (cl-nlp::parse-treebank treebank)) (tagone nil)) ...
1,850
Common Lisp
.lisp
37
42.972973
89
0.620709
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
fb44689a094fbc08b1dfda3e6abc4c4e4d5535d91b5c70e6ccd1d1ff76c45c44
24,470
[ -1 ]
24,471
common.lisp
jnjcc_cl-nlp/test/common.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (defvar *test-stream* nil) (defvar *float-zero-epsilon* 1.0e-10) (defun float= (a b) (<= (abs (- a b)) *float-zero-epsilon*)) (defun float/= (a b) (> (abs (- a b)) *float-zero-epsilon*)) (defun float< (a b) (a...
470
Common Lisp
.lisp
14
31
75
0.621381
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
cb5eeb4738bc90859854a0793b53608f10340df9b5536809a8cfb6bda885619c
24,471
[ -1 ]
24,472
lm-test.lisp
jnjcc_cl-nlp/test/lm-test.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (define-test ngram-count-test (let ((text (format nil "~A~%~A~%~A~%~A" "One Ring to rule them all" "One Ring to find them" "One Ring to bring them all" "and in the darkness ...
6,393
Common Lisp
.lisp
138
38.775362
117
0.582986
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
85497826ee113e9cd2e9cd4b87edafbdc6b6b95b748245adfd80fe3da989f2b3
24,472
[ -1 ]
24,473
packages.lisp
jnjcc_cl-nlp/test/packages.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-user) (defpackage #:cl-nlp/test (:nicknames #:nlp/test) (:use #:cl #:lisp-unit #:cl-nlp/algo #:cl-nlp #:cl-ml/io) (:export #:run-all-tests))
246
Common Lisp
.lisp
8
27.75
66
0.622881
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
fd7486f90be8411a54cfd1c9933bd3e6e5ba504db6c78b6fb220a69dca5ff92b
24,473
[ -1 ]
24,474
dataset.lisp
jnjcc_cl-nlp/test/dataset.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp/test) (defvar *dataset-path* (merge-pathnames "test/dataset/" (asdf:system-source-directory :cl-nlp-test))) (defvar *nltk-path* (merge-pathnames "nltk_data/" (user-homedir-pathname))) ...
404
Common Lisp
.lisp
7
50.428571
85
0.656489
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
9c618cd07bac9612286777e255ca9e7b4da6831b32a3b2c3a40cbff292ff354c
24,474
[ -1 ]
24,475
csgd.lisp
jnjcc_cl-nlp/pgm/csgd.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; SGD for CRF (in-package #:cl-nlp) (defmethod crf-learn-sgd ((crf crf-model) crfdata) ) ;;; Given `inst', expectation of feature function under empirical distribution ;;; w[k] <- w[k] + eta * \sum_{t=1}^{T}f[k](y', y, x, t) ;;; or in vec...
1,035
Common Lisp
.lisp
28
32.714286
78
0.605788
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
f6dcc26de28f21a4da353eaf932a7e75c241385b3ba1b0c8560cc428431ba1a1
24,475
[ -1 ]
24,476
hmm.lisp
jnjcc_cl-nlp/pgm/hmm.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; (First-order) Hidden Markov Model $\lambda = (S, V, \pi, A, B)$: ;;;; - The Evaluation Problem and the Forward / Backward Algorithm ;;;; - The Decoding Problem and the Viterbi Algorithm ;;;; - The Learning Problem and the MLE / Baum-Welc...
12,176
Common Lisp
.lisp
262
37.721374
97
0.598014
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
42de68d2bed9b6157ba11ed5b2f235bf485e75bec251ed18ff75a0418b2cef11
24,476
[ -1 ]
24,477
crf.lisp
jnjcc_cl-nlp/pgm/crf.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; (First-order, linear-chain) Conditional Random Fields (in-package #:cl-nlp) ;;; using CRFsuite jargons: ;;; - `attrsd': attribute name bidictionary ;;; - `labeld': label name bidictionary (defclass crf-model () ((attrsd :initform nil :...
2,868
Common Lisp
.lisp
63
40.047619
102
0.646049
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d721fb8e0fd539b418b0ee0d14f4702fcf697a6cc3986bd491eecd4db35b6614
24,477
[ -1 ]
24,478
foftab.lisp
jnjcc_cl-nlp/lm/foftab.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; frequency of frequency table for ngram (in-package #:cl-nlp) ;;; m-gram list reference with index starting from 0: ;;; - proxy list reference for each m-gram (0 <= m <= n) of n-gram ;;; + list elements: some statistics about a certain ...
5,339
Common Lisp
.lisp
119
39.907563
108
0.615769
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
b380964287aef056a997618301cf0d6d623cad71b2ab89e3762bb50d5d4baf0c
24,478
[ -1 ]
24,479
backoff.lisp
jnjcc_cl-nlp/lm/backoff.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp) (defun %get-next-pointer (curidxs m idminfo) "given `curidxs[m]' as the current m-gram, what is the latest (m+1)-gram it points to?" (if (= (mlist-ref curidxs m) (idm-get-gnum idminfo m)) ;; points to the last (m+1...
4,409
Common Lisp
.lisp
83
37.927711
103
0.502661
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
2a42a2e03b8fa109c64e6a78ddd171917035038dc8216c1e43260a50e707ff84
24,479
[ -1 ]
24,480
katz.lisp
jnjcc_cl-nlp/lm/katz.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Katz Backoff Model (in-package #:cl-nlp) (defun %get-next-index (idx m idminfo) "given `idx' as the current m-gram, what is the latest (m+1)-gram it points to?" (if (= idx (idm-get-gnum idminfo m)) ;; points to the last (m+1)-gram ...
3,580
Common Lisp
.lisp
85
33.011765
94
0.519484
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
6e8c258675772f6a0216b33cb76d5054e939e1b2bae27d0c3ba1c7aa5e60386e
24,480
[ -1 ]
24,481
idvocab.lisp
jnjcc_cl-nlp/lm/idvocab.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; vocabulary as hash-table: word -> id (in-package #:cl-nlp) (defun update-word-id (vocab word newid) "exist or not, we update word id" (multiple-value-bind (oldid exist) (gethash word vocab) (when exist (format t "~A already exi...
1,087
Common Lisp
.lisp
29
32.689655
72
0.62334
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
1f62adf433f32dd5fa9843426952162423db8bf64365f6ec0b78b28f4b962271
24,481
[ -1 ]
24,482
idngram.lisp
jnjcc_cl-nlp/lm/idngram.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; idngram count as hash-table: idngram -> count (in-package #:cl-nlp) (defun %join-idngram (sentence beg end idvocab) (join-strings (mapcar (lambda (word) (gethash word idvocab)) (subseq sentence beg end)))) (defun i...
2,177
Common Lisp
.lisp
46
33.043478
92
0.496944
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
e124b4e687fdf2208a92e470494633fbf135f64a604bf10961d9e528d10746bf
24,482
[ -1 ]
24,483
ngram.lisp
jnjcc_cl-nlp/lm/ngram.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; word ngram count as hash-table: ngram -> count (in-package #:cl-nlp) (defun wngram-count (stream n &key (eow #\Space) (eol #\Newline) (bos "<BOS>") (eos "<EOS>")) "hash-table: ngram -> count" (let ((ngram-hash (make-hash-table :test 'equ...
1,217
Common Lisp
.lisp
30
30.5
93
0.514768
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
47c8886f7b835a5a96c3ed8fb7aa75eb30ab5e30891023296a92e3122b326c85
24,483
[ -1 ]
24,484
lm.lisp
jnjcc_cl-nlp/lm/lm.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp) (defun ngram-lm (corpus-fp n lm-fp &key (disc-type :good-turing) (disc-range *fof-disc-range*) (uni-range *fof-uni-range*) (bos "-1") (eos "-2") (oov :open) (unk "<UNK>") (lmtype :arpa)) ...
906
Common Lisp
.lisp
18
41.5
104
0.603837
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
215a794309fb9392ea137f9068a32bb229e27e0fee0d3e55e9d22d6063cac324
24,484
[ -1 ]
24,485
idinfo.lisp
jnjcc_cl-nlp/lm/idinfo.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; data structures for idngram info (in-package #:cl-nlp) ;;; Let m <= n be any gram, `freq' be frequency of some m-gram, `idx' be index of some m-gram ;;; - (idngram-tree) ;;; + `mgram-fof'[m][freq]: freq of freq table for each m-gram, a...
4,628
Common Lisp
.lisp
92
46.967391
104
0.673234
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d6c17974a53d317254e2060fbb53b50581fb7d6605831758b36239635d488577
24,485
[ -1 ]
24,486
idlm.lisp
jnjcc_cl-nlp/lm/idlm.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; idngram language model: ;;;; corpus -> (word-frequency) -> (wfreq-idvocab) \ ;;;; \ / (idngram-lm) ;;;; `---------------------> (idngram-count) / (in-package #:cl-nlp) (defun idngram-lm ...
1,644
Common Lisp
.lisp
33
43.272727
106
0.579863
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d332da06163dce3a95e79367ec94ad26c7b8251d6b383008019687991eba3461
24,486
[ -1 ]
24,487
reduce.lisp
jnjcc_cl-nlp/lm/reduce.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; reduce n-gram to m-gram (in-package #:cl-nlp) (defun read-ngram (stream &key (eow #\Space)) (let ((ngram-hash (make-hash-table :test 'equal)) (ngram nil)) (do ((line (read-line stream nil :eof) (read-line stream ...
5,051
Common Lisp
.lisp
109
37.908257
101
0.565085
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
5f8a5a11fc7aa845a66e3a60829116bd2aed71c22a981d66bd7b9aae6acfdec9
24,487
[ -1 ]
24,488
arpa.lisp
jnjcc_cl-nlp/lm/arpa.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; ARPA file format: write n-gram Language Model (in-package #:cl-nlp) (defun %write-cond-prob (idminfo m curidxs endidxs id2word stream) (let ((mgfreq nil) (condpr 0.0) (alpha 0.0) (log10prob 0.0) (log10alpha ...
3,568
Common Lisp
.lisp
77
34.987013
98
0.53186
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
60c60f62db1fa055c238554af4d1f7ff436e872edb0115533f5eeee7653a63f4
24,488
[ -1 ]
24,489
idtree.lisp
jnjcc_cl-nlp/lm/idtree.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; m-gram statistics and trees for n-gram (m <= n) (in-package #:cl-nlp) (defun %collect-grams (pre-gram n cur-gram cur-freq diff bos eos running-total idm) "`cur-gram' and `pre-gram' differs starting from position `diff', which means [0, `di...
3,642
Common Lisp
.lisp
77
38.207792
110
0.551656
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
b22e627b2321a9f6d7f6503f79beb26a3316b2c179d8628297258003a0b37fae
24,489
[ -1 ]
24,490
sorted.lisp
jnjcc_cl-nlp/lm/sorted.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; sort n-gram (possibly reduce to m-gram and sort) (in-package #:cl-nlp) ;;; wngram (as a list) sort (alphabetical order) (defun %wngram< (wng1 wng2) (string< (join-strings wng1) (join-strings wng2))) ;;; idngram (as a list) sort (numeric o...
2,437
Common Lisp
.lisp
57
35.245614
85
0.567214
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
d2f2b641918a61dce4a56611a476a698761889d9932cf38514d33e8b5eb704b3
24,490
[ -1 ]
24,491
discount.lisp
jnjcc_cl-nlp/lm/discount.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Discounting is a kind of smoothing algorithm (in-package #:cl-nlp) (defun %good-turing (mgram-fof m disc-ratios) "Good-Turing discounting ratio in Katz backoff model" (let* ((disc (fof-disc mgram-fof m)) (k disc) ;; com...
5,302
Common Lisp
.lisp
113
40.274336
102
0.626062
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
57191412d5c49cde3b41523e97c73643fdc8811f804ddb93dff4f43c3645b98f
24,491
[ -1 ]
24,492
wfreq.lisp
jnjcc_cl-nlp/lm/wfreq.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; word frequency as hash-table: word -> frequency (in-package #:cl-nlp) (defun incf-frequency (whash word &optional (delta 1)) (multiple-value-bind (freq exist) (gethash word whash) (unless exist (setf freq 0)) (incf freq delta...
1,271
Common Lisp
.lisp
30
34.333333
74
0.582053
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
45647de38a2da2e969e08990793eb8111a6969c2d9db78c4347e8286eabc20a1
24,492
[ -1 ]
24,493
api.lisp
jnjcc_cl-nlp/probs/api.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Probability Distribution API: ;;;; ;;;; freq-dist-bins ;;;; / ;;;; freq-dist cond-freq-dist -> dcond-prob-dist -> dcond-mutable ;;;; \ / ;;;; freq-dist-hash ;;;; ^ ...
4,272
Common Lisp
.lisp
100
38.04
91
0.614052
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
24986a4b589ba1fcf1580c9ac3ac55156eeb41141de6ba25de24eb2d0f8ba19a
24,493
[ -1 ]
24,494
condfreq.lisp
jnjcc_cl-nlp/probs/condfreq.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Conditional Probability Distribution from Conditional Frequency Distribution (in-package #:cl-nlp) (defclass cond-freq-dist (freq-dist-hash) ()) (defmethod fdist-cond-value ((cfdist cond-freq-dist) condi key) (let ((fdist (fdist-value c...
2,563
Common Lisp
.lisp
61
37.377049
93
0.661983
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
6a4b1589aa5790a36f52e420b6476c121a547cdb5c812cdf03af50f73a370e26
24,494
[ -1 ]
24,495
freqdist.lisp
jnjcc_cl-nlp/probs/freqdist.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Frequency Distribution (in-package #:cl-nlp) ;;; <key, value> pairs, where value not necessarily being frequency (defclass freq-dist () ((test :initform nil :initarg :test))) (defgeneric fdist-key (fdist key) (:documentation "returns (k...
2,424
Common Lisp
.lisp
60
36.75
74
0.681005
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
54444c0ca4bfdd70106ea689c0f22cbbaa5a91e955bdcfe044851149f46d53de
24,495
[ -1 ]
24,496
hashfreq.lisp
jnjcc_cl-nlp/probs/hashfreq.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Frequency Distribution using hash-table (in-package #:cl-nlp) (defclass freq-dist-hash (freq-dist) ((htable :initform nil) (sumfreq :initform nil))) (defmethod initialize-instance :after ((fdist freq-dist-hash) &rest args) (declare (...
1,945
Common Lisp
.lisp
52
31.884615
73
0.653744
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
eeef6491cc9dcfc821cecac796fe8d712ae157bdd6334076606eb7385261be46
24,496
[ -1 ]
24,497
mutabledist.lisp
jnjcc_cl-nlp/probs/mutabledist.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Mutable Probability Distribution (in-package #:cl-nlp) (defclass dprob-mutable (freq-dist-hash) ()) (defmethod init-from-literal ((pmutable dprob-mutable) keylst problst) "`keylst': (key1 key2 ...); problst: (prob1 prob2 ...)" (dotime...
1,391
Common Lisp
.lisp
32
39.65625
70
0.706449
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
f2984a9ac93e160ab33141b4a2bf4785ab16e88287e210527fe23620d50b7fe1
24,497
[ -1 ]
24,498
derivdist.lisp
jnjcc_cl-nlp/probs/derivdist.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Derived Probability Distribution from Frequency Distribution (in-package #:cl-nlp) ;;; Derive (or, estimate) probability distribution from Frequency Distribution `fdist' ;;; just a view window of `fdist' (defclass dprob-dist () ((fdist :...
2,178
Common Lisp
.lisp
53
37.660377
91
0.698721
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
43f196a2b9a862c6050ac30fd5728c0274cc77fb5250f6fd51834c8b27b86f78
24,498
[ -1 ]
24,499
binfreq.lisp
jnjcc_cl-nlp/probs/binfreq.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; lightweight frequency distribution using bins (in-package #:cl-nlp) (defclass freq-dist-bins (freq-dist) ((bins :initform nil) (sumfreq :initform nil) (binnums :initform nil))) (defmethod fdist-key ((fdist freq-dist-bins) key) (wi...
1,877
Common Lisp
.lisp
49
32.918367
71
0.631666
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
2c87b38ddb33f1a3281282e58ff4086787ed729718b9f2e6a85a0aee6f93c5dc
24,499
[ -1 ]
24,500
vocab.lisp
jnjcc_cl-nlp/embed/vocab.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Vocabulary for word2vec (in-package #:cl-nlp) (defclass w2v-word-info () ((freq :initform 0 :initarg :freq :reader winfo-freq :documentation "word frequency") (indx :initform -1 :initarg :indx :reader winfo-indx :docum...
5,867
Common Lisp
.lisp
132
38.022727
92
0.63673
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
b68477268af27c3a483df77aabe79428ca36ae87091b8a48e6a9b62158022ee9
24,500
[ -1 ]
24,501
word2vec.lisp
jnjcc_cl-nlp/embed/word2vec.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp) (defclass word2vec () ((dimensions :initform 128 :initarg :dimensions :documentation "dimensionality of the word vectors") (vocabulary :initform nil :documentation "word2vec vocabulary") (in-matrix :in...
12,538
Common Lisp
.lisp
272
38.102941
95
0.615391
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
ba231eb06bcdd50c22969ac0d4fe757a3a5ad286d591c3ea453bd0fe19c30b17
24,501
[ -1 ]
24,502
node2vec.lisp
jnjcc_cl-nlp/embed/node2vec.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp) (defclass node2vec () ((embed-size :initform 128 :initarg :embed-size :documentation "embedding size") (w2v-model :initform nil :documentation "word2vec model") (walk-length :initform 80 :initarg :walk-length :docume...
4,806
Common Lisp
.lisp
104
39.807692
90
0.653666
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
9fe9738f58fb6678a1b601d11939d23ac18affc16175a04548bfc00f04ca1b63
24,502
[ -1 ]
24,503
bidict.lisp
jnjcc_cl-nlp/algo/bidict.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Bidirectional dictionary using association list / hash-table ;;;; - forward: string -> int (which is unique, mainly used as indices) ;;;; - backward: int -> string (in-package #:cl-nlp/algo) ;;; Bidirectional dictionary using association...
1,699
Common Lisp
.lisp
45
34.333333
93
0.669104
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
1815bd5849156b2cd0e0869201b87a92658a9e220f333fe49f337be851cd435d
24,503
[ -1 ]
24,504
distance.lisp
jnjcc_cl-nlp/algo/distance.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Edit Distance (in-package #:cl-nlp/algo) (defun edit-distance (lst1 lst2 &key (equal #'string=)) (let ((m (length lst1)) (n (length lst2)) (leven nil)) (setf leven (make-array (list (+ m 1) (+ n 1)) :initial-element 0))...
987
Common Lisp
.lisp
30
24.7
71
0.463874
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
70d3e9a1b0ef2c34b41420fbe822620e30f2ac72391abc69068433c705693842
24,504
[ -1 ]
24,505
dict.lisp
jnjcc_cl-nlp/algo/dict.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Dictionary (for string) using association list / hash-table ;;;; (cl-ml::bins) mainly used for non-string keys (in-package #:cl-nlp/algo) ;;; Dictionary using association list (defun make-adict () nil) (defun adict-len (adict) (length...
1,786
Common Lisp
.lisp
49
32.612245
66
0.656032
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
2949d58339ea12e8c1105ed9f0e600950887522df3c880b1e4eebecff2f69f00
24,505
[ -1 ]
24,506
packages.lisp
jnjcc_cl-nlp/algo/packages.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; ;;;; Common data structure and algorithms for NLP (in-package #:cl-user) (defpackage #:cl-nlp/algo (:nicknames #:nlp/algo) (:use #:cl) (:export #:edit-distance #:make-adict #:zip-adict #:adict-len #:adict-add #:adict-append #:adi...
611
Common Lisp
.lisp
13
41.076923
90
0.628571
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
561d571016833806e8ce1790acd010c90914992dee1900526d6e3e542c762a67
24,506
[ -1 ]
24,507
ner.lisp
jnjcc_cl-nlp/ner/ner.lisp
;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved. ;;;; (in-package #:cl-nlp)
95
Common Lisp
.lisp
3
30.333333
66
0.67033
jnjcc/cl-nlp
1
0
0
GPL-2.0
9/19/2024, 11:28:28 AM (Europe/Amsterdam)
6cfe5215477f9a7c193dbfaf5d3abfaa98690f4d48a58c27c246d32e5846c49d
24,507
[ -1 ]