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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,906 | init-game-events-common.lisp | gwathlobal_CotD/src/game-events/init-game-events-common.lisp | (in-package :cotd)
(defparameter *game-events-military-list* (list +mob-type-soldier+ +mob-type-soldier+ +mob-type-gunner+ +mob-type-sergeant+ +mob-type-scout+ +mob-type-chaplain+))
(defun dump-when-dead ()
(let* ((final-str (if (null (killed-by *player*))
"Killed by unknown forces."
... | 61,705 | Common Lisp | .lisp | 623 | 40.611557 | 238 | 0.30001 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 96602638b6bc4f4f675358fa0e9718757857bd2c2ea630f0c38489386be7e258 | 2,906 | [
-1
] |
2,907 | init-game-events-demonic-raid.lisp | gwathlobal_CotD/src/game-events/init-game-events-demonic-raid.lisp | (in-package :cotd)
;;===========================
;; WIN EVENTS
;;===========================
(set-game-event (make-instance 'game-event :id +game-event-demon-raid-win-for-angels+
:descr-func #'(lambda ()
(let ((win-f... | 16,703 | Common Lisp | .lisp | 150 | 40.626667 | 228 | 0.264338 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 3c84f3f76f4e79d1baa9e4be89222cb31571ec1bafee263e73a9f4483204958a | 2,907 | [
-1
] |
2,908 | init-game-events-campaign.lisp | gwathlobal_CotD/src/game-events/init-game-events-campaign.lisp | (in-package :cotd)
;;===========================
;; WIN EVENTS
;;===========================
(set-game-event (make-instance 'game-event :id +game-event-campaign-satanists-move+
:descr-func #'(lambda ()
(format nil "E... | 27,720 | Common Lisp | .lisp | 237 | 47.632911 | 238 | 0.298366 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 78eea0ded1f0fedc874130eda054d910a7b4dc35d6df449a79498f7a5eb102c8 | 2,908 | [
-1
] |
2,909 | init-game-events-demonic-steal.lisp | gwathlobal_CotD/src/game-events/init-game-events-demonic-steal.lisp | (in-package :cotd)
;;===========================
;; WIN EVENTS
;;===========================
(set-game-event (make-instance 'game-event :id +game-event-demon-steal-win-for-angels+
:descr-func #'(lambda ()
"To win, de... | 15,212 | Common Lisp | .lisp | 141 | 36.843972 | 211 | 0.246996 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 7ea14cf0be85ddefc077aa59f6fa8f9d5f14635ca157806c2754f16e3215ed45 | 2,909 | [
-1
] |
2,910 | init-game-events-angelic-steal.lisp | gwathlobal_CotD/src/game-events/init-game-events-angelic-steal.lisp | (in-package :cotd)
;;===========================
;; WIN EVENTS
;;===========================
(set-game-event (make-instance 'game-event :id +game-event-angelic-steal-win-for-angels+
:descr-func #'(lambda ()
"To win, ... | 12,121 | Common Lisp | .lisp | 114 | 38.27193 | 213 | 0.25829 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | fa9bd8a0d674865782712ccbab6acb60c38eaf50da4342aa018a63fcb6805d8a | 2,910 | [
-1
] |
2,911 | init-game-events-demonic-conquest.lisp | gwathlobal_CotD/src/game-events/init-game-events-demonic-conquest.lisp | (in-package :cotd)
;;===========================
;; WIN EVENTS
;;===========================
(set-game-event (make-instance 'game-event :id +game-event-demon-conquest-win-for-angels+
:descr-func #'(lambda ()
(multipl... | 17,404 | Common Lisp | .lisp | 152 | 43.861842 | 262 | 0.280587 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 98b29b31f0b14bf6b492d5f7fcfe392a29230fe2d3a1937cc654820fbaa858ea | 2,911 | [
-1
] |
2,912 | window-campaign-over.lisp | gwathlobal_CotD/src/windows/window-campaign-over.lisp | (in-package :cotd)
(defclass campaign-over-window (window)
((campaign-over-type :initarg :campaign-over-type :accessor campaign-over-window/campaign-over-type :type campaign-over-enum)
(player-won :initform nil :initarg :player-won :accessor campaign-over-window/player-won)))
(defmethod make-output ((win campaig... | 5,606 | Common Lisp | .lisp | 78 | 53.833333 | 379 | 0.576622 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | c1844d714930da72128e0166ddb5ee0156c4b793972626e3614950daea37307e | 2,912 | [
-1
] |
2,913 | window-display-msg.lisp | gwathlobal_CotD/src/windows/window-display-msg.lisp | (in-package :cotd)
(defclass display-msg-window (window)
((msg-line :initarg :msg-line :accessor display-msg-window/msg-line :type string)
(x :initform nil :initarg :x :accessor display-msg-window/x)
(y :initform nil :initarg :y :accessor display-msg-window/y)
(w :initform nil :initarg :w :accessor display-... | 5,152 | Common Lisp | .lisp | 87 | 42.022989 | 164 | 0.525101 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | ec2e62bdadbec4eb5f0f6d932133e04bab93cfccd9359dd9b00eab4659990163 | 2,913 | [
-1
] |
2,914 | window-input-str.lisp | gwathlobal_CotD/src/windows/window-input-str.lisp | (in-package :cotd)
(defclass input-str-window (window)
((input :initform (make-array '(0) :element-type 'character :adjustable t :fill-pointer t) :accessor input)
(max-w :initform 0 :accessor max-w)
(init-input :initform nil :initarg :init-input :accessor init-input)
(header-str :initarg :header-str :access... | 5,176 | Common Lisp | .lisp | 70 | 61.542857 | 217 | 0.586037 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | adad00220ed3eb8ea8f24120bab5b3cff84750e4cb53bd919760a55eed0b422e | 2,914 | [
-1
] |
2,915 | window-select-faction.lisp | gwathlobal_CotD/src/windows/window-select-faction.lisp | (in-package :cotd)
(defclass select-faction-window (window)
((menu-items :initarg :menu-items :accessor select-faction-window/menu-items)
(menu-descrs :initarg :menu-descrs :accessor select-faction-window/menu-descrs)
(cur-sel :initform 0 :accessor select-faction-window/cur-sel)
(max-menu-length :in... | 18,202 | Common Lisp | .lisp | 240 | 47.304167 | 183 | 0.477993 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 561cc88b66039c7f18a0d26d33f0805d661d11db7369268e136ab408279257ae | 2,915 | [
-1
] |
2,916 | window-journal.lisp | gwathlobal_CotD/src/windows/window-journal.lisp | (in-package :cotd)
(defclass journal-window (window)
())
(defmethod make-output ((win journal-window))
(fill-background-tiles)
(sdl:draw-string-solid-* "JOURNAL" (truncate *window-width* 2) 0 :justify :center)
(let* ((x 10)
(y (+ 0 (* 2 (sdl:char-height sdl:*default-font*))))
(w (- *window... | 2,867 | Common Lisp | .lisp | 44 | 42.25 | 230 | 0.466619 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 24a26b975e4513e346fcd3dac0c26d5dc756f8796b59ebbdffe4383ea758cac5 | 2,916 | [
-1
] |
2,917 | window-level.lisp | gwathlobal_CotD/src/windows/window-level.lisp | (in-package :cotd)
(defclass cell-window (window)
((shoot-mode :initform :single :accessor shoot-mode)
(idle-calcing :initform :done :accessor idle-calcing) ; :done - background pathfinding calculation finished
; :in-progress - background pathfinding calcul... | 69,215 | Common Lisp | .lisp | 924 | 42.190476 | 229 | 0.390923 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 016ff7c0d5ca25cc770fdef421c50e50ccc808f7fe631834cd00884b75ca0b80 | 2,917 | [
-1
] |
2,918 | window-character.lisp | gwathlobal_CotD/src/windows/window-character.lisp | (in-package :cotd)
(defconstant +character-win-weapon&armor+ 0)
(defconstant +character-win-abilities+ 1)
(defconstant +character-win-effects+ 2)
(defclass character-window (window)
((cur-tab :initform 0 :accessor cur-tab)
(cur-sel :initform 0 :accessor cur-sel)))
(defun get-mob-stats-line (mob)
(l... | 12,358 | Common Lisp | .lisp | 178 | 44.410112 | 193 | 0.436743 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | a40c3e36957105a92aa57e1bab98934328ed45d50e416d13a6273a4765d23841 | 2,918 | [
-1
] |
2,919 | window-main-menu.lisp | gwathlobal_CotD/src/windows/window-main-menu.lisp | (in-package :cotd)
(defclass main-menu-window (window)
((cur-sel :initform 0 :accessor main-menu-window/cur-sel :type fixnum)
(menu-items :initform () :accessor main-meni-window/menu-items :type list)
(menu-strs :initform () :accessor main-menu-window/menu-strs :type list)
(menu-funcs :initform () :ac... | 19,522 | Common Lisp | .lisp | 262 | 38.561069 | 229 | 0.401868 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | c9ebd1bcc43fb38c5d503b57afc60c2e84063b5bc6cfc511aa8162dda14beaad | 2,919 | [
-1
] |
2,920 | window-inventory.lisp | gwathlobal_CotD/src/windows/window-inventory.lisp | (in-package :cotd)
(defclass inventory-window (window)
((cur-tab :initform 0 :accessor cur-tab)
(cur-inv :initform 0 :accessor cur-inv)))
(defconstant +inv-tab-inv+ 0)
(defconstant +inv-tab-descr+ 1)
(defconstant +inv-tab-char+ 2)
(defmethod make-output ((win inventory-window))
(fill-background-tiles)
;; a... | 8,953 | Common Lisp | .lisp | 129 | 41.883721 | 198 | 0.421557 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 6d1751261c594c83c3cebe7831d11159430ddc3e8a4ac8ffb079ea121dd5a653 | 2,920 | [
-1
] |
2,921 | window-highscores.lisp | gwathlobal_CotD/src/windows/window-highscores.lisp | (in-package :cotd)
(defclass highscores-window (window)
((highscores-place :initform nil :initarg :highscores-place :accessor highscores-place)))
(defmethod make-output ((win highscores-window))
;; fill the screen black
(sdl:with-rectangle (a-rect (sdl:rectangle :x 0 :y 0 :w *window-width* :h *window-height*))
... | 2,890 | Common Lisp | .lisp | 50 | 44.88 | 217 | 0.562166 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 0fc9d6c0f9a459bc9735e526133e16460b5b11e0838a9f08c8c0a404467d2e80 | 2,921 | [
-1
] |
2,922 | window-loading.lisp | gwathlobal_CotD/src/windows/window-loading.lisp | (in-package :cotd)
(defclass loading-window (window)
((update-func :initarg :update-func :accessor update-func)
(cur-str :initform "Generating map" :initarg :cur-str :accessor cur-str)
(hint-text :initform (nth (random (length *scenario-hints*)) *scenario-hints*) :initarg :hint-text :accessor loading-wind... | 1,483 | Common Lisp | .lisp | 27 | 48.222222 | 168 | 0.641221 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 74930e036ea8edc2abed1c86f62432d73da1ce54746125dc614808ba9c8778f6 | 2,922 | [
-1
] |
2,923 | window-classes.lisp | gwathlobal_CotD/src/windows/window-classes.lisp | (in-package :cotd)
(defconstant +cotd-unicode-question-mark+ 63)
(defconstant +cotd-unicode-at-sign+ 64)
(defconstant +cotd-unicode-latin-q-captial+ 81)
(defconstant +cotd-unicode-latin-a-small+ 97)
(defconstant +cotd-unicode-latin-b-small+ 98)
(defconstant +cotd-unicode-latin-c-small+ 99)
(defconstant +cotd-u... | 2,358 | Common Lisp | .lisp | 53 | 38.962264 | 149 | 0.690487 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | ee637440272f1bdd3432fe316e8b4e524165d8af2ba2fa74156430f536d321e8 | 2,923 | [
-1
] |
2,924 | window-load-game.lisp | gwathlobal_CotD/src/windows/window-load-game.lisp | (in-package :cotd)
(defclass load-game-window (window)
((save-game-type :initarg :save-game-type :type save-game-type-enum)
(title-string :type string)
(display-str-list :initform () :type list)
(game-pathname-list :initform () :type list)
(descr-pathname-list :initform () :type list)
(game-slot-list ... | 13,125 | Common Lisp | .lisp | 161 | 44.049689 | 237 | 0.406514 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 77425097792cc96cab650046a11a944d770c6958fbce8819a11f1c236bd1bb95 | 2,924 | [
-1
] |
2,925 | window-map-select.lisp | gwathlobal_CotD/src/windows/window-map-select.lisp | (in-package :cotd)
(defconstant +map-select-win-map+ 0)
(defconstant +map-select-win-mobs+ 1)
(defclass map-select-window (cell-window)
((max-x :initform 0 :accessor max-x)
(max-y :initform 0 :accessor max-y)
(exec-func :initarg :exec-func :accessor exec-func)
(check-lof :initform nil :initarg :ch... | 19,219 | Common Lisp | .lisp | 238 | 53.079832 | 225 | 0.440561 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 203da2bcfa0593ad6edfd521f42dad9ad9e9957b42e37603f0817228b788325e | 2,925 | [
-1
] |
2,926 | window-campaign.lisp | gwathlobal_CotD/src/windows/window-campaign.lisp |
(in-package :cotd)
(defenum:defenum campaign-window-tab-type (:campaign-window-map-mode
:campaign-window-mission-mode
:campaign-window-status-mode
:campaign-window-effects-mode
... | 38,336 | Common Lisp | .lisp | 473 | 47.448203 | 233 | 0.434888 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 39651b496839190f0790d0e950a105cc1bf08703c06c57dcfb7b6a75450928c6 | 2,926 | [
-1
] |
2,927 | window-messages.lisp | gwathlobal_CotD/src/windows/window-messages.lisp | (in-package :cotd)
(defclass message-window (window)
((cur-str :accessor cur-str)
(message-box :initarg :message-box :accessor message-window/message-box)
(header-str :initarg :header-str :accessor message-window/header-str)
))
(defmethod initialize-instance :after ((win message-window) &key)
(w... | 3,337 | Common Lisp | .lisp | 53 | 46.283019 | 232 | 0.542902 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 0d5b2a4a1141b33af762afa67a450898c65086ab4d3bcc2ab13325a7663dac8b | 2,927 | [
-1
] |
2,928 | window-select-obj.lisp | gwathlobal_CotD/src/windows/window-select-obj.lisp | (in-package :cotd)
(defclass select-obj-window (window)
((cur-sel :initform 0 :accessor cur-sel)
(header-line :initform nil :initarg :header-line :accessor header-line)
(line-list :initarg :line-list :accessor line-list :type list)
(descr-list :initform nil :initarg :descr-list :accessor descr-list)
... | 8,963 | Common Lisp | .lisp | 170 | 39.647059 | 180 | 0.560156 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 5bb50ab96aeb5753e962e6251a19eb738b293e52dedb7105fc1f063a16d0b6e4 | 2,928 | [
-1
] |
2,929 | window-game-over.lisp | gwathlobal_CotD/src/windows/window-game-over.lisp | (in-package :cotd)
(defclass final-stats-window (window)
((game-over-type :initarg :game-over-type :accessor game-over-type :type game-over-enum)
(highscores-place :initform nil :initarg :highscores-place :accessor highscores-place)
(player-died :initform nil :initarg :player-died :accessor player-died)
... | 6,703 | Common Lisp | .lisp | 91 | 48.197802 | 228 | 0.489556 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 0a1232c6a4aa0066ea73e813ebcdef32bdafe84802ce53ffdc0a4f4b519bbc12 | 2,929 | [
-1
] |
2,930 | window-custom-scenario.lisp | gwathlobal_CotD/src/windows/window-custom-scenario.lisp | (in-package :cotd)
(defenum:defenum custom-scenario-window-tab-type (:custom-scenario-tab-missions
:custom-scenario-tab-sectors
:custom-scenario-tab-months
:custom-scena... | 33,759 | Common Lisp | .lisp | 408 | 51.887255 | 204 | 0.487917 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | ceb82b73e10b77af6c983277d5a30f33eaa3af30d5a92730d396cea288f7b0ef | 2,930 | [
-1
] |
2,931 | window-settings.lisp | gwathlobal_CotD/src/windows/window-settings.lisp | (in-package :cotd)
(defclass settings-window (window)
((cur-str :initform 0 :accessor cur-str)
(cur-sel :initform 0 :accessor cur-sel)
(options-list :initform (list (list " Font size"
;; currently displayed value
... | 8,533 | Common Lisp | .lisp | 109 | 35.706422 | 203 | 0.33297 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 63508f94b1d148394165e14155e0db51fedc02c162254a6332a180b152f4ed17 | 2,931 | [
-1
] |
2,932 | window-methods.lisp | gwathlobal_CotD/src/windows/window-methods.lisp | (in-package :cotd)
(defvar *glyph-temp*)
(defvar *glyph-front*)
(defvar *window-width*)
(defvar *window-height*)
(defparameter *temp-rect* nil)
(defparameter *msg-box-window-height* (* 13 5))
(defun draw-glyph (x y n &key (surface sdl:*default-surface*) front-color back-color)
"Drawing a glyph from 'font.... | 55,681 | Common Lisp | .lisp | 815 | 50.03681 | 198 | 0.513947 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 447861e97dccb4ea49a3d860e29538a08ecbef685297981af46feeadaa84279e | 2,932 | [
-1
] |
2,933 | window-help.lisp | gwathlobal_CotD/src/windows/window-help.lisp | (in-package :cotd)
(defconstant +win-help-page-menu+ 0)
(defconstant +win-help-page-overview+ 1)
(defconstant +win-help-page-concepts-combat+ 2)
(defconstant +win-help-page-concepts-environment+ 3)
(defconstant +win-help-page-concepts-gods+ 4)
(defconstant +win-help-page-keybindings+ 5)
(defconstant +win-help-... | 9,615 | Common Lisp | .lisp | 144 | 47.1875 | 202 | 0.509881 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 2b42018606a3a0db67c2d34793b084f0b19cc21f65bd4d9d4bf1bd0857eb2a05 | 2,933 | [
-1
] |
2,934 | init-lvl-mod-weather.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-weather.lisp | (in-package :cotd)
;;---------------------------------
;; Weather level modifiers
;;---------------------------------
(set-level-modifier :id +lm-weather-rain+ :type :level-mod-weather
:name "Rain"
:is-available-for-mission #'(lambda (world-sector-type-id mission-type-id world-... | 6,239 | Common Lisp | .lisp | 72 | 33.333333 | 135 | 0.299895 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 5b05f3f2a3cf04904ea0bd2e673ee4b08b067692d66f8d128067ab7bf6bb66dd | 2,934 | [
-1
] |
2,935 | init-lvl-mod-controlled-by.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-controlled-by.lisp | (in-package :cotd)
;;---------------------------------
;; Controlled By level modifiers
;;---------------------------------
(set-level-modifier :id +lm-controlled-by-none+ :type :level-mod-controlled-by
:name "Uncontrolled"
:priority 25
:is-available-for-mis... | 10,765 | Common Lisp | .lisp | 107 | 37.934579 | 204 | 0.292671 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | a6ceaee33ecd002334237bf8f8fda329f8545e469e2091b82ac9f50e47083c2e | 2,935 | [
-1
] |
2,936 | level-modifier.lisp | gwathlobal_CotD/src/level-modifiers/level-modifier.lisp | (in-package :cotd)
;;---------------------------------
;; LEVEL-MOD-TYPE Constants
;;---------------------------------
(defenum:defenum level-mod-type-enum (:level-mod-controlled-by
:level-mod-sector-feat
:level-mod-sector-item
... | 9,293 | Common Lisp | .lisp | 134 | 53.813433 | 175 | 0.591799 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | f7f2a60039089560525dc916f82d6de55fa7f2d223a524b14d8af8dd560ab5a1 | 2,936 | [
-1
] |
2,937 | init-lvl-mod-sector-feat.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-sector-feat.lisp | (in-package :cotd)
;;---------------------------------
;; Sector Feat level modifiers
;;---------------------------------
(set-level-modifier :id +lm-feat-river+ :type :level-mod-sector-feat
:priority 10
:name "River"
:template-level-gen-func #'(lambda (tem... | 48,514 | Common Lisp | .lisp | 492 | 41.300813 | 195 | 0.316492 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | de38a5d67ebdc1142233682ed5f5546e1cfa0b54cde1d99a38abdc6f9d25eb16 | 2,937 | [
-1
] |
2,938 | init-lvl-mod-misc.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-misc.lisp | (in-package :cotd)
(set-level-modifier :id +lm-misc-eater-incursion+ :type :level-mod-misc
:name "Primordial incursion"
:faction-list-func #'(lambda (sector-type-id)
(declare (ignore sector-type-id))
... | 3,210 | Common Lisp | .lisp | 39 | 34.948718 | 137 | 0.333333 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | d4dc90d6d42757bc11d99001a03084b3d0b9a27754b5c7560c6780ae803a16b4 | 2,938 | [
-1
] |
2,939 | init-lvl-mod-sector-item.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-sector-item.lisp | (in-package :cotd)
;;---------------------------------
;; Sector Item level modifiers
;;---------------------------------
(set-level-modifier :id +lm-item-book-of-rituals+ :type :level-mod-sector-item
:name "Book of Rituals"
:priority 100
:overall-post-proce... | 7,258 | Common Lisp | .lisp | 78 | 42.448718 | 209 | 0.344452 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 5af9d2afea6ed300a6aa806c74d3327691b3dad016c561effb0616258421840b | 2,939 | [
-1
] |
2,940 | init-lvl-mod-player-placement.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-player-placement.lisp | (in-package :cotd)
(set-level-modifier :id +lm-placement-player+ :type :level-mod-player-placement
:name "Player"
:overall-post-process-func-list #'(lambda ()
(let ((func-list ()))
... | 14,871 | Common Lisp | .lisp | 159 | 39.396226 | 171 | 0.331816 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 564226d56117595c3a449440ec24d2cd41676a38cfe506f355eec81599a32f1f | 2,940 | [
-1
] |
2,941 | init-lvl-mod-time-of-day.lisp | gwathlobal_CotD/src/level-modifiers/init-lvl-mod-time-of-day.lisp | (in-package :cotd)
;;---------------------------------
;; Time of Day level modifiers
;;---------------------------------
(set-level-modifier :id +lm-tod-morning+ :type :level-mod-tod
:name "Morning"
:overall-post-process-func-list #'(lambda ()
... | 9,876 | Common Lisp | .lisp | 110 | 37.254545 | 166 | 0.309735 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 851beeead0193a5a406ee67a1f68dc53fa97c0d19014ce89f4a5762d65ab0764 | 2,941 | [
-1
] |
2,942 | init-ai-packages.lisp | gwathlobal_CotD/src/ai/init-ai-packages.lisp | (in-package :cotd)
(set-ai-package (make-instance 'ai-package :id +ai-package-coward+
:priority 9
:on-check-ai #'(lambda (actor nearest-enemy nearest-ally hostile-mobs allied-mobs)
... | 192,829 | Common Lisp | .lisp | 1,620 | 41.345679 | 233 | 0.257614 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 8cf238e08dd2afd11a810cc3ddd280e14b9b4a5e680e93de7713225e2e0b3530 | 2,942 | [
-1
] |
2,943 | ai-player.lisp | gwathlobal_CotD/src/ai/ai-player.lisp | (in-package :cotd)
(defmethod ai-function ((player player))
(log:info "~%AI-Function Player")
;(log:info (format nil "~%TIME-ELAPSED BEFORE: ~A~%" (- (get-internal-real-time) *time-at-end-of-player-turn*)))
(log:info "~%TIME-ELAPSED BEFORE: ~A" (- (get-internal-real-time) *time-at-end-of-player-turn*)... | 13,098 | Common Lisp | .lisp | 203 | 50.630542 | 198 | 0.571686 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 0131c479f2a2d54e6530241fe330d706c0c5ff253a98113c51da4318eff4c2fc | 2,943 | [
-1
] |
2,944 | ai-npc.lisp | gwathlobal_CotD/src/ai/ai-npc.lisp | (in-package :cotd)
(defmethod ai-function ((mob mob))
;(declare (optimize (speed 3)))
;;(setf *ms-inside-path-start* (get-internal-real-time))
;;(format t "~%TIME-ELAPSED AI ~A [~A] BEFORE : ~A~%" (name mob) (id mob) (- (get-internal-real-time) *time-at-end-of-player-turn*))
(log:info "~%AI-Functio... | 13,119 | Common Lisp | .lisp | 197 | 49.862944 | 209 | 0.546793 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 5eada2b2623afc4f16d32d43013d9d801fd0c5677ceb4c08c93f8df3db8ada02 | 2,944 | [
-1
] |
2,945 | ai-packages.lisp | gwathlobal_CotD/src/ai/ai-packages.lisp | (in-package :cotd)
(defclass ai-package ()
((id :initarg :id :accessor id)
(priority :initform 0 :initarg :priority :accessor priority)
(on-check-ai :initform nil :initarg :on-check-ai :accessor on-check-ai) ;; a function that checks for the AI package if it can and should be invoked now
(on-invoke-ai :ini... | 717 | Common Lisp | .lisp | 13 | 52 | 156 | 0.700428 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | b52361fc3b3e19f448b378f2aa9cc5acd2a5904223c5006f5ed04bb30c200aa5 | 2,945 | [
-1
] |
2,946 | ai-common.lisp | gwathlobal_CotD/src/ai/ai-common.lisp | (in-package :cotd)
(defgeneric ai-function (mob))
(defparameter *ms-inside-path* 0)
(defparameter *ms-inside-path-start* 0)
(defun check-move-for-ai (mob dx dy dz cx cy cz &key (final-dst nil))
(declare (optimize (speed 3))
(type fixnum dx dy dz cx cy cz))
(let ((sx 0) (sy 0) (move-resul... | 28,823 | Common Lisp | .lisp | 425 | 44.835294 | 221 | 0.459679 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 60908b0e91753e15f520531f68b9241d50265cac40e79881d803b46cc9700ef3 | 2,946 | [
-1
] |
2,947 | cotd.asd | gwathlobal_CotD/src/cotd.asd | ;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
(defpackage cotd
(:use :common-lisp :asdf)
(:export
:cotd-main
:make-exec))
(in-package :cotd)
(defsystem cotd
:name "The City of the Damned"
:description "A roguelike battle of Angels and Demons in the streets of a Human city."
... | 7,769 | Common Lisp | .asd | 127 | 50.251969 | 131 | 0.59269 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | e295aa7ec4ac64bd50e16685a0688f4de140096750307422722f67faa4fc84f0 | 2,947 | [
-1
] |
3,002 | military_scout.txt | gwathlobal_CotD/src/data/descriptions/military_scout.txt | SCOUT, THE MILITARY
- The military arrives towards the end of the battle for the City. It is allied with the citizens but opposes both angels and demons.
- The military is comprised of five units: Soldiers, Scouts, Sergeants, Machine-gunners, and Chaplains. All of them are capable of ranged combat but do not gain p... | 1,436 | Common Lisp | .l | 9 | 157.444444 | 296 | 0.789916 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 34d1f7a04b728cc6a642eb8466fbb2fcbc21b510a789e347c50ca9bc9ebe6667 | 3,002 | [
-1
] |
3,003 | primordials_eater.txt | gwathlobal_CotD/src/data/descriptions/primordials_eater.txt | EATER OF THE DEAD, PRIMORDIALS
- In the taiga bogs and forests of the East live strange creatures that had walked the Earth before any ape could be called sapient. Now they slumber, waiting for the time when the cycle of humankind is complete and they are able to reign the land once more. The natives fear, worship and... | 851 | Common Lisp | .l | 6 | 140 | 474 | 0.793144 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | d6e0bcea8761365a59dca6438e5fc468e816c7b16326634795302eedd451f67a | 3,003 | [
-1
] |
3,004 | military_chaplain.txt | gwathlobal_CotD/src/data/descriptions/military_chaplain.txt | CHAPLAIN, THE MILITARY
- The military arrives towards the end of the battle for the City. It is allied with the citizens but opposes both angels and demons.
- The military is comprised of five units: Soldiers, Scouts, Sergeants, Machine-gunners, and Chaplains. All of them are capable of ranged combat but do not gai... | 1,196 | Common Lisp | .l | 9 | 130.666667 | 294 | 0.791246 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | 4566b7c96cb7fd13c7621f1e6b3ce2e797be83bf01d6ea5cd7fa1c4b9e4c46df | 3,004 | [
-1
] |
3,005 | lostsoul.txt | gwathlobal_CotD/src/data/descriptions/lostsoul.txt | THE LOST SOUL
- You were the one who triggered the whole invasion. The satanists have sacrificed your body to open the gates to Hell, but your soul lingered in this world.
- You start as a frail ghost that will be attacked by everybody and need only one hit to die.
- As a ghost, you can pass through walls and solid ... | 907 | Common Lisp | .l | 6 | 149.333333 | 359 | 0.790466 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | f2989c0a9bf4d7fd420f238d9cc1004941e397258a8277020876084262ec4042 | 3,005 | [
-1
] |
3,006 | criminals.txt | gwathlobal_CotD/src/data/descriptions/criminals.txt | THE CRIMINALS
- The criminals (who are opposed to the citizens and the military, but will not attack the Communion) are kept mainly in the prison (except for the Thief).
- You may start as the Thief, who is found somewhere on the rooftops of the City.
- Though the Thief is armed with a knife, his primary weapons are... | 887 | Common Lisp | .l | 8 | 108.875 | 237 | 0.775 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | d94312e12dab7fcf1e03649d3a0a6de1802275c35a326670f88a7b1f515f5756 | 3,006 | [
-1
] |
3,007 | primordials_skinchanger.txt | gwathlobal_CotD/src/data/descriptions/primordials_skinchanger.txt | SKINCHANGER, PRIMORDIALS
- In the taiga bogs and forests of the East live strange creatures that had walked the Earth before any ape could be called sapient. Now they slumber, waiting for the time when the cycle of humankind is complete and they are able to reign the land once more. The natives fear, worship and offer... | 842 | Common Lisp | .l | 6 | 138.5 | 474 | 0.798088 | gwathlobal/CotD | 79 | 3 | 0 | GPL-3.0 | 9/19/2024, 11:25:50 AM (Europe/Amsterdam) | a280bcf78b8eca40af35c0d4717f0885e87a08ca3dc615a2d78d3301ecf1190c | 3,007 | [
-1
] |
3,077 | tokenizer.lisp | rotatef_cl-html5-parser/tokenizer.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 73,626 | Common Lisp | .lisp | 1,541 | 35.303699 | 109 | 0.551958 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | f73c482c4b5f38a4e283b48d78bbaf27dc031bfd1e226a83872e39d859adc85b | 3,077 | [
-1
] |
3,078 | entities.lisp | rotatef_cl-html5-parser/entities.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 50,640 | Common Lisp | .lisp | 2,279 | 17.206231 | 89 | 0.524001 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | b3f21a7c1642f00e59326c1a4f695a77485ef04988bb82028848e51c2c86f48a | 3,078 | [
-1
] |
3,079 | inputstream.lisp | rotatef_cl-html5-parser/inputstream.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 12,457 | Common Lisp | .lisp | 305 | 32.567213 | 115 | 0.613143 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 6f0789db275f6ad66433314bdc72a8e882ca7ea09c02b29a5dc85e62dec94b48 | 3,079 | [
-1
] |
3,080 | html5-parser-class.lisp | rotatef_cl-html5-parser/html5-parser-class.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 1,610 | Common Lisp | .lisp | 44 | 34.045455 | 78 | 0.71913 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | c0edf53230a8afa62cb527f6f563c47634835998365484e4261e788dfb9c4129 | 3,080 | [
-1
] |
3,081 | xmls.lisp | rotatef_cl-html5-parser/xmls.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 4,003 | Common Lisp | .lisp | 75 | 33.506667 | 121 | 0.472718 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 132a53a9914000d9e24bffaf86d6bbc9b7b864f9191b5d4a0435b7735c2c83db | 3,081 | [
-1
] |
3,082 | html5-parser.lisp | rotatef_cl-html5-parser/html5-parser.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 103,109 | Common Lisp | .lisp | 2,460 | 31.982927 | 119 | 0.579752 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 70f73032563de109c359b755ae44df5690e455537182acaac911a286cd088f9a | 3,082 | [
-1
] |
3,083 | simple-tree.lisp | rotatef_cl-html5-parser/simple-tree.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 6,504 | Common Lisp | .lisp | 155 | 37.064516 | 86 | 0.677649 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 8f71c4ba5e0d51ebbb8caca35f8f1331983122825752b863663d7c9ac5851c08 | 3,083 | [
-1
] |
3,084 | constants.lisp | rotatef_cl-html5-parser/constants.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 12,467 | Common Lisp | .lisp | 333 | 32.585586 | 86 | 0.589557 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | c9c8a279dc922b2eef94e436d978267f66d622543cb93c286d28d31dedd53f4e | 3,084 | [
-1
] |
3,085 | tree-help.lisp | rotatef_cl-html5-parser/tree-help.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 14,053 | Common Lisp | .lisp | 314 | 34.143312 | 101 | 0.578125 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 895c3d4e814ba2cd5d1b2a3f2041e83e8a6655708bd2631556512069eef9b612 | 3,085 | [
-1
] |
3,086 | packages.lisp | rotatef_cl-html5-parser/packages.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 2,519 | Common Lisp | .lisp | 88 | 25.306818 | 78 | 0.688119 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 53d6fce606d18ff24f5df3b40988987f894a2111ff6d46c927953e9868534d13 | 3,086 | [
-1
] |
3,087 | toxml.lisp | rotatef_cl-html5-parser/toxml.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2017 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;;
;;;; This library is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as published
;;;; by the Free Software Foundation, either vers... | 2,896 | Common Lisp | .lisp | 66 | 38.212121 | 82 | 0.616667 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 1693201dab07147a481958dfba102263f97707330c2fdd619471b16a6da99ef1 | 3,087 | [
-1
] |
3,088 | cxml-dom.lisp | rotatef_cl-html5-parser/cxml/cxml-dom.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2014 Joe Taylor <joekarma@gmail.com>
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian... | 4,377 | Common Lisp | .lisp | 70 | 40.871429 | 130 | 0.5 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | a12e8405e198ad8d4549d3fa196cae3437efda66139b64a94f3caf512342477d | 3,088 | [
-1
] |
3,089 | test-parser.lisp | rotatef_cl-html5-parser/tests/test-parser.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 5,944 | Common Lisp | .lisp | 126 | 36.02381 | 94 | 0.550982 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | fe5676c0fa4110b307ea65e5b2101fd1ab18a511f987fe8b8697eb08cae1e2b4 | 3,089 | [
-1
] |
3,090 | run-tests.lisp | rotatef_cl-html5-parser/tests/run-tests.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 1,152 | Common Lisp | .lisp | 25 | 43.72 | 78 | 0.704889 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | cb01533b1b6818bda4b7feb7787375161829f1c1e76bc9fbe026dd0a17c4d726 | 3,090 | [
-1
] |
3,091 | support.lisp | rotatef_cl-html5-parser/tests/support.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2017 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 2,165 | Common Lisp | .lisp | 45 | 40.866667 | 99 | 0.624231 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | af4c28911b53cb76b6fe882ca7a1e9d7df039ffcc96355ca58b034eb413a2ba9 | 3,091 | [
-1
] |
3,092 | test-tree-builder.lisp | rotatef_cl-html5-parser/tests/test-tree-builder.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 4,293 | Common Lisp | .lisp | 94 | 40.510638 | 82 | 0.649475 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 67ff52f2dd39f4cf7ab5dc2c11eafbb9a81bc2bcbb0117ebcd216ac58007adaf | 3,092 | [
-1
] |
3,093 | packages.lisp | rotatef_cl-html5-parser/tests/packages.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 1,069 | Common Lisp | .lisp | 25 | 41.16 | 78 | 0.715244 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 1bdcf1d2ca7292df3dfee7fb5e25a4075dae58eac31c4004e12b02bcd3207546 | 3,093 | [
-1
] |
3,094 | test-inputstream.lisp | rotatef_cl-html5-parser/tests/test-inputstream.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 4,205 | Common Lisp | .lisp | 74 | 49.243243 | 86 | 0.621845 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | fc335dfdae8ef6b493a678cb5a79dff6632a30cf0f72122dba3b10773a05995b | 3,094 | [
-1
] |
3,095 | test-tokenizer.lisp | rotatef_cl-html5-parser/tests/test-tokenizer.lisp | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2012 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 11,281 | Common Lisp | .lisp | 225 | 35.764444 | 127 | 0.535381 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | cbf269a0396dcf8f52efd3304d28adce3a277d2393ec4fd46d8bd104b2267c14 | 3,095 | [
-1
] |
3,096 | aa-lisp-tests.test | rotatef_cl-html5-parser/tests/testdata/tokenizer/aa-lisp-tests.test | {"tests": [
{"description":"Comment in script",
"initialStates":["SCRIPT DATA state"],
"lastStartTag":"plaintext",
"input":"<!--<S",
"output":[["Character", "<!--<S"]]}
]}
| 174 | Common Lisp | .lisp | 7 | 23.571429 | 38 | 0.618182 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 644ce17fb0a92ddca55fd4a82f9159d70d596e47c98ddd13047684a5eec1c794 | 3,096 | [
-1
] |
3,097 | cl-html5-parser.asd | rotatef_cl-html5-parser/cl-html5-parser.asd | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2017 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 1,864 | Common Lisp | .asd | 41 | 39.707317 | 78 | 0.645604 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 2e5ae0b043153c8e37f4185b239a88e408159258b0829d7373ad337add9c36b7 | 3,097 | [
-1
] |
3,098 | cl-html5-parser-cxml.asd | rotatef_cl-html5-parser/cxml/cl-html5-parser-cxml.asd | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2017 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 1,276 | Common Lisp | .asd | 27 | 45.703704 | 78 | 0.722756 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 3ac9e8bb35025842b544e09f86cdf83b634ce2d27fdf41b0a68b14127aedc843 | 3,098 | [
-1
] |
3,099 | cl-html5-parser-tests.asd | rotatef_cl-html5-parser/tests/cl-html5-parser-tests.asd | ;;;; HTML5 parser for Common Lisp
;;;;
;;;; Copyright (C) 2017 Thomas Bakketun <thomas.bakketun@copyleft.no>
;;;; Copyright (C) 2012 Asgeir Bj√∏rlykke <asgeir@copyleft.no>
;;;; Copyright (C) 2012 Mathias Hellevang
;;;; Copyright (C) 2012 Stian Sletner <stian@copyleft.no>
;;;;
;;;; This library is free software: y... | 1,342 | Common Lisp | .asd | 28 | 43.535714 | 78 | 0.667174 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 0150e21f31f3637ffaa3997661394e7bcad9a3f808928dd46cc4f5a29df44d11 | 3,099 | [
-1
] |
3,109 | .travis.yml | rotatef_cl-html5-parser/.travis.yml | language: lisp
sudo: required
branches:
only:
- master
env:
matrix:
- LISP=sbcl
install:
- curl -L https://github.com/luismbo/cl-travis/raw/master/install.sh | sh
script:
- cl -e "(ql:quickload :cl-html5-parser) (ql:quickload :cl-html5-parser-tests) (html5-parser-tests::run-html5-parser-tests)"
| 316 | Common Lisp | .l | 12 | 23.666667 | 126 | 0.723333 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 01371b5316de892ea0fb24fc5a578adcad00d91726a81aea7fab707bddcc4d5c | 3,109 | [
-1
] |
3,125 | pending-spec-changes-plain-text-unsafe.dat | rotatef_cl-html5-parser/tests/testdata/tree-construction/pending-spec-changes-plain-text-unsafe.dat | #data
<body><table> filler text
#errors
#document
| <html>
| <head>
| <body>
| "fillertext"
| <table>
| 115 | Common Lisp | .l | 9 | 11.777778 | 26 | 0.603774 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | b7c1b29b2b3210ef12d847aabc604c23626ac6783632560fa16ba8b90f780613 | 3,125 | [
-1
] |
3,126 | tables01.dat | rotatef_cl-html5-parser/tests/testdata/tree-construction/tables01.dat | #data
<table><th>
#errors
#document
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <th>
#data
<table><td>
#errors
#document
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
#data
<table><col foo='bar'>
#errors
#document
| <html>
| ... | 2,770 | Common Lisp | .l | 196 | 13.05102 | 91 | 0.461689 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 03e5cd0f31e2974358b997f08177b281d79c0e192a0f1444aecb95a1de55cda7 | 3,126 | [
-1
] |
3,127 | plain-text-unsafe.dat | rotatef_cl-html5-parser/tests/testdata/tree-construction/plain-text-unsafe.dat | #data
FOO
ZOO
#errors
#document
| <html>
| <head>
| <body>
| "FOO
ZOO"
#data
<html> <frameset></frameset>
#errors
#document
| <html>
| <head>
| <frameset>
#data
<html> <frameset></frameset>
#errors
#document
| <html>
| <head>
| <frameset>
#data
<html>a a<frameset></frameset>
#errors
#documen... | 4,190 | Common Lisp | .l | 309 | 12.346278 | 52 | 0.563532 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | ac387fdd7b7f626b1930860a94f99f4365ceb62d62a350de2d9a62c3ab74687e | 3,127 | [
-1
] |
3,128 | html5test-com.dat | rotatef_cl-html5-parser/tests/testdata/tree-construction/html5test-com.dat | #data
<div<div>
#errors
#document
| <html>
| <head>
| <body>
| <div<div>
#data
<div foo<bar=''>
#errors
#document
| <html>
| <head>
| <body>
| <div>
| foo<bar=""
#data
<div foo=`bar`>
#errors
#document
| <html>
| <head>
| <body>
| <div>
| foo="`bar`"
#data
<div \"foo=''>
#errors
#... | 2,676 | Common Lisp | .l | 223 | 10.896861 | 65 | 0.495473 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | c6a621d851468f44918b8b73120fbc980269be22cbfb54ebd57861314fce9e06 | 3,128 | [
-1
] |
3,129 | optionaltags.test | rotatef_cl-html5-parser/tests/testdata/serializer/optionaltags.test | {"tests": [
{"description": "html start-tag followed by text, with attributes",
"input": [["StartTag", "http://www.w3.org/1999/xhtml", "html", [{"namespace": null, "name": "lang", "value": "en"}]], ["Characters", "foo"]],
"expected": ["<html lang=en>foo"]
},
{"description": "html start-tag followed by co... | 35,315 | Common Lisp | .l | 726 | 45.486226 | 187 | 0.586116 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 10681e2dc03781691c4576e8bc8dd567f2431ca3892e2ac47e6b4fd364ad01f9 | 3,129 | [
-1
] |
3,130 | htmlOrFeed.json | rotatef_cl-html5-parser/tests/testdata/sniffer/htmlOrFeed.json | [
{"type": "text/html", "input": ""},
{"type": "text/html", "input": "<!---->"},
{"type": "text/html", "input": "<!--asdfaslkjdf;laksjdf as;dkfjsd-->"},
{"type": "text/html", "input": "<!"},
{"type": "text/html", "input": "\t"},
{"type": "text/html", "input": "<!>"},
{"type": "text/html", "i... | 17,365 | Common Lisp | .l | 43 | 399.046512 | 617 | 0.671535 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | ce18c4642cead03ab881cf6686502b0d746361b3e95e831c48eebf547b8ee3d6 | 3,130 | [
-1
] |
3,131 | unicodeCharsProblematic.test | rotatef_cl-html5-parser/tests/testdata/tokenizer/unicodeCharsProblematic.test | {"tests" : [
{"description": "Invalid Unicode character U+DFFF",
"doubleEscaped":true,
"input": "\\uDFFF",
"output":["ParseError", ["Character", "\\uFFFD"]]},
{"description": "Invalid Unicode character U+D800",
"doubleEscaped":true,
"input": "\\uD800",
"output":["ParseError", ["Character", "\\uFFFD"]]},
{"description... | 826 | Common Lisp | .l | 23 | 34.782609 | 82 | 0.6825 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 5c0922edb0af851130ad50b67a1174e4f673c1b730ec29dd5617885ae4c77d6a | 3,131 | [
-1
] |
3,132 | contentModelFlags.test | rotatef_cl-html5-parser/tests/testdata/tokenizer/contentModelFlags.test | {"tests": [
{"description":"PLAINTEXT content model flag",
"initialStates":["PLAINTEXT state"],
"lastStartTag":"plaintext",
"input":"<head>&body;",
"output":[["Character", "<head>&body;"]]},
{"description":"End tag closing RCDATA or RAWTEXT",
"initialStates":["RCDATA state", "RAWTEXT state"],
"lastStartTag":"xmp",
"i... | 2,521 | Common Lisp | .l | 62 | 39.451613 | 95 | 0.675797 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 00414eb1e7c0ab21ef6ef853e113100acdb676c91b90b98d97d009fc32db5306 | 3,132 | [
-1
] |
3,133 | escapeFlag.test | rotatef_cl-html5-parser/tests/testdata/tokenizer/escapeFlag.test | {"tests": [
{"description":"Commented close tag in RCDATA or RAWTEXT",
"initialStates":["RCDATA state", "RAWTEXT state"],
"lastStartTag":"xmp",
"input":"foo<!--</xmp>--></xmp>",
"output":[["Character", "foo<!--"], ["EndTag", "xmp"], ["Character", "-->"], ["EndTag", "xmp"]]},
{"description":"Bogus comment in RCDATA or... | 1,306 | Common Lisp | .l | 27 | 47.148148 | 129 | 0.597015 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 1fac5089737b5aa2d2461ee7c26807553c43b9d0d16b2e985f099b43a8a6cc69 | 3,133 | [
-1
] |
3,134 | xmlViolation.test | rotatef_cl-html5-parser/tests/testdata/tokenizer/xmlViolation.test | {"xmlViolationTests": [
{"description":"Non-XML character",
"input":"a\uFFFFb",
"ignoreErrorOrder":true,
"output":["ParseError",["Character","a\uFFFDb"]]},
{"description":"Non-XML space",
"input":"a\u000Cb",
"ignoreErrorOrder":true,
"output":[["Character","a b"]]},
{"description":"Double hyphen in comment",
"input":... | 518 | Common Lisp | .l | 16 | 31 | 53 | 0.625 | rotatef/cl-html5-parser | 55 | 14 | 11 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 3ac617dab355d2d0b0f2dfac86e4698a098f8ba1d42bd6b32a27a6a827233d55 | 3,134 | [
-1
] |
3,150 | package.lisp | chunsj_TH/package.lisp | (defpackage :th
(:use #:common-lisp
#:mu)
(:import-from #:cffi)
(:export #:generator
#:storage.byte
#:storage.char
#:storage.short
#:storage.int
#:storage.long
#:storage.float
#:storage.double
#:tensor.byte
... | 10,693 | Common Lisp | .lisp | 501 | 9.42515 | 36 | 0.301217 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 8ec869b4acc2e680897224793fcf75848bad652732616eabbeef53cfe239cd42 | 3,150 | [
-1
] |
3,151 | gaussian.lisp | chunsj_TH/pd/gaussian.lisp | (in-package :th)
(defgeneric score/gaussian (data mean sd))
(defgeneric sample/gaussian (mean sd &optional n))
(defun score/normal (data mean sd) (score/gaussian data mean sd))
(defun sample/normal (mean sd &optional (n 1)) (sample/gaussian mean sd n))
(defun of-gaussian-p (sd) (of-plusp sd))
(defun log-gaussian (d... | 5,610 | Common Lisp | .lisp | 119 | 39.596639 | 88 | 0.558361 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | c7d8beecd492f1c455d0b95186d36bb6b74c2e2a52fd388250e03ec0ba367890 | 3,151 | [
-1
] |
3,152 | beta.lisp | chunsj_TH/pd/beta.lisp | (in-package :th)
(defgeneric score/beta (data alpha beta))
(defgeneric sample/beta (alpha beta &optional n))
(defun of-beta-p (data alpha beta)
(and (of-unit-interval-p data) (of-plusp alpha) (of-plusp beta)))
(defun beta/clamp (data) ($clamp data 1E-7 (- 1 1E-7)))
(defmethod score/beta ((data number) (alpha numb... | 4,285 | Common Lisp | .lisp | 82 | 44.317073 | 69 | 0.546606 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 1ee4932d9b8edad726b98e0cf72b1d3648c53047e55361e182e6397259c0a270 | 3,152 | [
-1
] |
3,153 | poisson.lisp | chunsj_TH/pd/poisson.lisp | (in-package :th)
(defgeneric score/poisson (data rate))
(defgeneric sample/poisson (rate &optional n))
(defun of-poisson-p (data rate) (and (of-plusp rate) (of-ge data 0)))
(defmethod score/poisson ((data number) (rate number))
(when (of-poisson-p data rate)
(let ((lfac ($lgammaf (+ 1 data))))
(- (* data... | 1,853 | Common Lisp | .lisp | 38 | 44.736842 | 69 | 0.609756 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 0eccc4c463aa1266feeea05016df6c9cb8057b40ba61827901e477823a9a8e09 | 3,153 | [
-1
] |
3,154 | categorical.lisp | chunsj_TH/pd/categorical.lisp | (in-package :th)
(defgeneric score/categorical (data probs))
(defgeneric sample/categorical (probs &optional n))
(defun of-categorical-p (data probs)
(let ((n ($count probs)))
(and (of-ie data 0 (- n 1)) (of-ie probs 0 1))))
(defmethod score/categorical ((data number) (probs tensor))
(when (of-categorical-p ... | 1,523 | Common Lisp | .lisp | 32 | 43.96875 | 63 | 0.649561 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 71ed248b4f38591de34559cf8e979c306f62e665ec73b0e98f5417ea562074a0 | 3,154 | [
-1
] |
3,155 | uniform.lisp | chunsj_TH/pd/uniform.lisp | (in-package :th)
(defgeneric score/uniform (data lower upper))
(defgeneric sample/uniform (lower upper &optional n))
(defun of-uniform-p (data lower upper) (and (> upper lower) (of-ie data lower upper)))
(defmethod score/uniform ((data number) (lower number) (upper number))
(when (of-uniform-p data lower upper)
... | 3,259 | Common Lisp | .lisp | 60 | 50.35 | 86 | 0.628419 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 9fe8be025ed352175358d9014a2fda3af5fade90027b77af866f4c7d4c3cf386 | 3,155 | [
-1
] |
3,156 | cauchy.lisp | chunsj_TH/pd/cauchy.lisp | (in-package :th)
(defgeneric score/cauchy (data location scale))
(defgeneric sample/cauchy (location scale &optional n))
(defun of-cauchy-p (scale) (of-plusp scale))
(defmethod score/cauchy ((data number) (location number) (scale number))
(when (of-cauchy-p scale)
(let ((lpi (log pi))
(ls (log scale)... | 4,778 | Common Lisp | .lisp | 100 | 39.08 | 85 | 0.527897 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 20124f0f09aa0805c15cf99d7451500ba4fa10becc56e62d5937bf2f2f36e820 | 3,156 | [
-1
] |
3,157 | exponential.lisp | chunsj_TH/pd/exponential.lisp | (in-package :th)
(defgeneric score/exponential (data rate))
(defgeneric sample/exponential (rate &optional n))
(defun of-exponential-p (data rate) (and (of-ge data 0) (of-plusp rate)))
(defmethod score/exponential ((data number) (rate number))
(when (of-exponential-p data rate)
(- (log rate) (* rate data))))
... | 1,404 | Common Lisp | .lisp | 28 | 46.785714 | 73 | 0.661054 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | d0db9d86b0063ebe7081612183d55b7141d23d9ca3cf48b4d753a142ea3a81a7 | 3,157 | [
-1
] |
3,158 | discrete-uniform.lisp | chunsj_TH/pd/discrete-uniform.lisp | (in-package :th)
(defgeneric score/discrete-uniform (data lower upper))
(defgeneric sample/discrete-uniform (lower upper &optional n))
(defun of-uniform-p (data lower upper) (and (> upper lower) (of-ie data lower upper)))
(defmethod score/discrete-uniform ((data number) (lower number) (upper number))
(when (of-uni... | 3,605 | Common Lisp | .lisp | 60 | 56.116667 | 86 | 0.639637 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 89d4a247fde7c685ac55b49588eba5fba9203249e2175dd9ed3f65c449ad1c9e | 3,158 | [
-1
] |
3,159 | binomial.lisp | chunsj_TH/pd/binomial.lisp | (in-package :th)
(defgeneric score/binomial (data p n))
(defgeneric sample/binomial (p nt &optional n))
(defun of-binomial-p (data p n) (and (of-ie data 0 n) (of-it p 0 1) (> n 0)))
(defun lbc (n k)
(let ((n1 ($add n 1))
(k1 ($add k 1))
(nk1 ($add ($sub n k) 1)))
($sub ($lgammaf n1)
(... | 2,221 | Common Lisp | .lisp | 52 | 36.807692 | 77 | 0.53012 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 09998beac736294a82cf742a9706e9948670c59560f30a872e8c078789552054 | 3,159 | [
-1
] |
3,160 | cs.lisp | chunsj_TH/pd/cs.lisp | (in-package :th)
(defgeneric of-lt (n v))
(defgeneric of-le (n v))
(defgeneric of-gt (n v))
(defgeneric of-ge (n v))
(defgeneric of-it (n min max))
(defgeneric of-ie (n min max))
(defgeneric of-ot (n min max))
(defgeneric of-oe (n min max))
(defmethod of-lt ((n number) v) (< n v))
(defmethod of-le ((n number) v) (<= ... | 1,307 | Common Lisp | .lisp | 28 | 45.535714 | 72 | 0.607059 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 390c380519af03f0abe2e086901a2373d29b43b5fd14c232090f87bb02efb5a5 | 3,160 | [
-1
] |
3,161 | bernoulli.lisp | chunsj_TH/pd/bernoulli.lisp | (in-package :th)
(defgeneric score/bernoulli (data p))
(defgeneric sample/bernoulli (p &optional n))
(defun of-bernoulli-p (data p)
(if ($tensorp data)
(and (= ($count data) ($+ ($sum ($eq data 0)) ($sum ($eq data 1))))
(of-it p 0 1))
(and (or (= data 0) (= data 1)) (of-it p 0 1))))
(defmeth... | 1,768 | Common Lisp | .lisp | 35 | 46.714286 | 79 | 0.58072 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | ae973f57f688fcbe2183a12d0a9184b4e8414cd323b301b52e2c3628044b3a20 | 3,161 | [
-1
] |
3,162 | implementation.lisp | chunsj_TH/private/implementation.lisp | (declaim (optimize (speed 3) (debug 1) (safety 0)))
(in-package :th)
(defmethod tensor-with-storage ((storage null) &optional (storage-offset 0) size stride)
(cond ((eq *default-tensor-class* 'tensor.float)
(let* ((tr (make-instance 'tensor.float))
(size (if (listp size) (storage.long size)... | 75,625 | Common Lisp | .lisp | 1,427 | 37.238262 | 100 | 0.531338 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 270b955bab75a3a0ae73ae594569eb89b1e65bfa440ccf902a149cbbc672c809 | 3,162 | [
-1
] |
3,163 | interface.lisp | chunsj_TH/private/interface.lisp | (declaim (optimize (speed 3) (debug 1) (safety 0)))
(in-package :th)
(defgeneric tensor-coerce (tensor value)
(:documentation "returns coerced value for given tensor"))
(defgeneric tensor-acoerce (tensor value)
(:documentation "returns coerced value for given tensor for accumulated type"))
(defgeneric tensor-ty... | 19,185 | Common Lisp | .lisp | 341 | 54.117302 | 101 | 0.772157 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | dccdcb86599d0972a2b21b69aa9181f7434d2ba2a425717059966839d675b021 | 3,163 | [
-1
] |
3,164 | cifar.lisp | chunsj_TH/db/cifar.lisp | (declaim (optimize (speed 3) (debug 0) (safety 0)))
(defpackage :th.db.cifar
(:use #:common-lisp
#:mu
#:th)
(:export #:read-cifar-10-data
#:read-cifar-100-data))
(in-package :th.db.cifar)
(defparameter +cifar-location+ ($concat (namestring (user-homedir-pathname)) ".th/datasets/cifar")... | 11,739 | Common Lisp | .lisp | 269 | 36.427509 | 99 | 0.578083 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 21bdac4ac48aee70b3b04e6428c9e566e5d7cf1690f1a6f693b88e06f88b51de | 3,164 | [
-1
] |
3,165 | mnist.lisp | chunsj_TH/db/mnist.lisp | (declaim (optimize (speed 3) (debug 1) (safety 0)))
(defpackage :th.db.mnist
(:use #:common-lisp
#:mu
#:th)
(:export #:read-mnist-data))
(in-package :th.db.mnist)
(defparameter +mnist-location+ ($concat (namestring (user-homedir-pathname)) ".th/datasets/mnist"))
(defun mfn (n &key (loc +mnist-lo... | 2,729 | Common Lisp | .lisp | 61 | 39.868852 | 99 | 0.570677 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 0dec4dd4ea8ed3ff4b046b03288275ff86cd25c9b73864151165123c2ca5bc4a | 3,165 | [
-1
] |
3,166 | imdb.lisp | chunsj_TH/db/imdb.lisp | (declaim (optimize (speed 3) (debug 0) (safety 0)))
(defpackage :th.db.imdb
(:use #:common-lisp
#:mu
#:th)
(:export #:read-imdb-data
#:read-imdb-data2))
(in-package :th.db.imdb)
(defparameter +imdb-location+ ($concat (namestring (user-homedir-pathname)) ".th/datasets/imdb"))
(defun im... | 1,355 | Common Lisp | .lisp | 35 | 34.914286 | 97 | 0.674561 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 4a6ad18b5e0e1e80ca34e8dce65cbc313b038cdd8b82875e576b1d031bb86ed6 | 3,166 | [
-1
] |
3,167 | fashion.lisp | chunsj_TH/db/fashion.lisp | (declaim (optimize (speed 3) (debug 1) (safety 0)))
(defpackage :th.db.fashion
(:use #:common-lisp
#:mu
#:th)
(:export #:read-fashion-data))
(in-package :th.db.fashion)
(defparameter +fashion-location+ ($concat (namestring (user-homedir-pathname))
".th/da... | 2,843 | Common Lisp | .lisp | 62 | 40.370968 | 97 | 0.573026 | chunsj/TH | 59 | 8 | 0 | GPL-3.0 | 9/19/2024, 11:26:04 AM (Europe/Amsterdam) | 02bf8b28dc8c420ab3036fd5c0861c86ecbaf163acb41490d9f4f5a88f4cdd26 | 3,167 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.