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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,116 | personagem-arma.lsp | tictackode_My-firsts-Commom-Lisp-Codes/personagem-arma.lsp | ;declara um par personagem-arma
(defparameter x1 '(arqueiro (arco)))
(defun arma(lista)(last lista))
(defun perso(lista)(first lista)) | 135 | Common Lisp | .l | 4 | 32.75 | 36 | 0.763359 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 9c48ea7bd29e146659831a6440728cfb71a253754461f323809fa018dcdabb56 | 38,116 | [
-1
] |
38,117 | lista1PythonBrasil.lsp | tictackode_My-firsts-Commom-Lisp-Codes/lista1PythonBrasil.lsp | ; Lista 1 do site Python brasil - Regson
; 1-Faça um Programa que mostre a mensagem "Alo mundo" na tela.
(defun ola-mundo()(format t"Olá Mundo!"))
; 2-Faça um Programa que peça um número e então mostre a mensagem O número informado foi [número].
(defun numero()(format t "Digite um numero")(setq n (read))(format t"O ... | 9,416 | Common Lisp | .l | 124 | 68.330645 | 285 | 0.64805 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 0155a70117833b9c01efa16f282bb52b170879c9b1bc5ef37e2a30d799a70f8b | 38,117 | [
-1
] |
38,118 | video1.lsp | tictackode_My-firsts-Commom-Lisp-Codes/video1.lsp | ;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
; primeiro video... dizer video nao aula... -- mostrar link pra baixar emacs
; listProcessing , lista principal estrutura de da... | 929 | Common Lisp | .l | 22 | 39.818182 | 137 | 0.681507 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 445285d10d70e09bc03409ac88e7dcc106c6a59e3e72c459205f188db70e85c8 | 38,118 | [
-1
] |
38,119 | retangulo.lsp~ | tictackode_My-firsts-Commom-Lisp-Codes/retangulo.lsp~ | (defun retangulo()(print"Digite o lado a do retangulo: ")(setf ladoA (read))
(print"Digite o segundo lado do retangulo: ")(setf ladoB (read))(print"O perimetro é: ")(+(* ladoA 2)(* ladoB 2))
(print"A area é: ")(* ladoA ladoB))
| 231 | Common Lisp | .l | 3 | 74.666667 | 115 | 0.662281 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 40339d9f435a5edd88df207a341e2177a0413172432e9fdeb7d5d802f3f271d4 | 38,119 | [
-1
] |
38,120 | Lista2_PythonBrasil.lsp | tictackode_My-firsts-Commom-Lisp-Codes/Lista2_PythonBrasil.lsp | ; Lista 2 Python Brasil - Regson
;1-Faça um Programa que peça dois números e imprima o maior deles.
(defun maior()(format t"Digite um numero: ")(setq n1 (read))
(format t"Digite outro numero: ")(setq n2 (read))
(cond ((> n1 n2)(format t"O maior numero é ~F~%" n1))
((<... | 2,965 | Common Lisp | .l | 44 | 51.931818 | 103 | 0.533544 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | b054597ba2596ef3f5c0e2e25e5ff6b5f72e417c9f124544ce59096cf1485d28 | 38,120 | [
-1
] |
38,121 | retangulo.lsp | tictackode_My-firsts-Commom-Lisp-Codes/retangulo.lsp | (defun retangulo()(print"Digite o lado a do retangulo: ")(setf ladoA (read))
(print"Digite o segundo lado do retangulo: ")(setf ladoB (read))(setf per (+ (* ladoA 2) (* ladoB 2)))(format t"O perimetro é: ~D~%"per)
(setf area (* ladoA ladoB))(format t"A area é: ~D"area))
| 275 | Common Lisp | .l | 3 | 89.333333 | 138 | 0.658088 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 7f8cfb613ca35d546c98186de65e112abada5c45d96f14fd468234d7678ab135 | 38,121 | [
-1
] |
38,157 | dataset.lisp | ThinCharm_artificial-intelligence/src/dataset.lisp | (defclass dataset ()
(:documentation "The base class of dataset handling."))
| 79 | Common Lisp | .lisp | 2 | 37.5 | 57 | 0.74026 | ThinCharm/artificial-intelligence | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | a5df97b3f1392e0154bee74a9bb733581c052b45a684d1f7fefb6c5b1db89088 | 38,157 | [
-1
] |
38,159 | .travis.yml | ThinCharm_artificial-intelligence/.travis.yml | language: common-lisp
sudo: required
install:
- curl -L https://raw.githubusercontent.com/snmsts/roswell/release/scripts/install-for-ci.sh | sh
script:
- ros -s prove -e '(or (prove:run :quri-test) (uiop:quit -1))'
| 223 | Common Lisp | .l | 6 | 34.833333 | 101 | 0.718894 | ThinCharm/artificial-intelligence | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | e67078a0c5f9ac1dafe85f4f2f6a20eaf90b4941bad39079eeeb4c2c72b638d9 | 38,159 | [
-1
] |
38,175 | app.lisp | mohe2015_schule/app.lisp |
(quicklisp-client:quickload :schule)
(defpackage schule.app
(:use :cl)
(:import-from :lack.builder :builder)
(:import-from :ppcre :scan :regex-replace)
(:import-from :schule.web :*web*)
(:import-from :schule.config :config :productionp :*static-directory*))
(in-package :schule.app)
(builder
(if (producti... | 626 | Common Lisp | .lisp | 23 | 22.913043 | 74 | 0.640133 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | b9f808858f4c6766fa5f42cf366a35c004e30bfd8338da9bd06a355dd0adce52 | 38,175 | [
-1
] |
38,176 | math.lisp | mohe2015_schule/js/math.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./utils.lisp" "all" "one" "clearChildren")
(export
(defun render-math ()
(chain (all ".formula")
(for-each (lambda () (chain -math-live (render-math-in-element this)))))
(on ("summernote.init" (one "article") event)
(chain (one ".formula") (attr "contenteditable" f)))))... | 587 | Common Lisp | .lisp | 17 | 29.294118 | 76 | 0.577739 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 5f37ace75ec73bf5df00704bd7b7874b7c7966e4b4b9c01c094d5e4e6262fffb | 38,176 | [
-1
] |
38,177 | get-url-parameter.lisp | mohe2015_schule/js/get-url-parameter.lisp |
(i "./utils.lisp" "all" "one" "clearChildren")
(export
(defun get-url-parameter (param)
(let* ((page-url (chain window location search (substring 1)))
(url-variables (chain page-url (split "&"))))
(loop for parameter-name in url-variables
do (setf parameter-name (chain parameter-name (spli... | 997 | Common Lisp | .lisp | 15 | 24.133333 | 89 | 0.266599 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 3f245a9c7fea51f3ab1fa6bc1e1984f1fe3dec080a8c0d41e475c30106e5889b | 38,177 | [
-1
] |
38,178 | root.lisp | mohe2015_schule/js/root.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./state-machine.lisp" "replaceState")
(i "./utils.lisp" "all" "one" "clearChildren")
(defroute "/"
(remove-class (all ".edit-button") "disabled")
(replace-state "/wiki/Hauptseite"))
| 219 | Common Lisp | .lisp | 6 | 34.166667 | 50 | 0.635071 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | b602c1ea47b7065f45894e0caed6e4ef69ef3708d744d9169bd4254d232ddddc | 38,178 | [
-1
] |
38,179 | editor.lisp | mohe2015_schule/js/editor.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./editor-lib.lisp")
(i "./math.lisp" "revertMath")
(i "./read-cookie.lisp" "readCookie")
(i "./state-machine.lisp" "pushState")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(on ("click" (one "#publish-changes") event)
... | 2,061 | Common Lisp | .lisp | 43 | 40.953488 | 138 | 0.606256 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 198b622e909c3970dcdec895b9b4a96c9a68b70638c20f38a3daa8d15a69ded6 | 38,179 | [
-1
] |
38,180 | login.lisp | mohe2015_schule/js/login.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./get-url-parameter.lisp" "getUrlParameter")
(i "./read-cookie.lisp" "readCookie")
(i "./state-machine.lisp" "replaceState")
(i "./show-tab.lisp" "showTab")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./fetch.lisp" "checkStatus" "json" "html" "handleFetchError" "handleLoginError")
... | 2,507 | Common Lisp | .lisp | 51 | 42.196078 | 146 | 0.620563 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 064e14dacab25db9c716dcbefd286ebb77cec22850521d4e1e69fb4e751babcc | 38,180 | [
-1
] |
38,181 | logout.lisp | mohe2015_schule/js/logout.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "./show-tab.lisp" "showTab")
(i "./read-cookie.lisp" "readCookie")
(i "./state-machine.lisp" "replaceState")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(defroute "/logout"
(add-class (all ".edit-button") "disabled")... | 717 | Common Lisp | .lisp | 19 | 33.631579 | 72 | 0.62446 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 06936811cce1efa614258d44e16dbd1ad23ddf2b1841f875e6af53d098044790 | 38,181 | [
-1
] |
38,182 | fetch.lisp | mohe2015_schule/js/fetch.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./state-machine.lisp" "pushState")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./show-tab.lisp" "showTab")
;; TODO clean up
(export
(defun handle-fetch-error (error)
;; TODO switch
(let ((status (chain error response status)))
(if (= status 401)
(progn
... | 4,038 | Common Lisp | .lisp | 104 | 29.115385 | 160 | 0.561878 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | a0e8e11b6a2c8dcf00c6af4e1bd74c378446018b23a9f4727874f80e9731f6ea | 38,182 | [
-1
] |
38,183 | index.lisp | mohe2015_schule/js/index.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./contact/index.lisp" "handleContact")
(i "./wiki/page.lisp" "handleWikiPage")
(i "./search.lisp" "handleSearchQuery" "handleSearch")
(i "./quiz.lisp" "handleQuizIdResults" "handleQuizIdPlayIndex"
"handleQuizIdPlay" "handleQuizIdEdit" "handleQuizCreate")
(i "./logout.lisp" "handleLogout... | 3,034 | Common Lisp | .lisp | 69 | 35.246377 | 87 | 0.589986 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 31e34531fefa293d10e11efdc1830e7f975eb3bd0c3c212056948585eca69a5d | 38,183 | [
-1
] |
38,184 | utils.lisp | mohe2015_schule/js/utils.lisp | (var __-p-s_-m-v_-r-e-g)
(setf (chain -Array prototype hide)
(lambda ()
(chain this
(for-each
(lambda (element)
(hide element))))
this))
(setf (chain -Array prototype remove)
(lambda ()
(chain this
(for-each
... | 1,762 | Common Lisp | .lisp | 55 | 22.545455 | 105 | 0.542084 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 5ea3d411058c5947b48ff9cd646a70ee630feda1fc00fc0a474fef689d11aa42 | 38,184 | [
-1
] |
38,185 | template.lisp | mohe2015_schule/js/template.lisp | (i "./utils.lisp" "all" "one" "clearChildren")
(var __-p-s_-m-v_-r-e-g)
(export
(defun get-template (id)
(chain document
(import-node (chain document (get-element-by-id id) content) t))))
| 197 | Common Lisp | .lisp | 6 | 30.333333 | 70 | 0.647368 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 6e4427fb117162fdd4b8b33ad75e596fb1fb065e8ca50ffd1dd37eab7de468a2 | 38,185 | [
-1
] |
38,186 | categories.lisp | mohe2015_schule/js/categories.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./show-tab.lisp" "showTab")
(i "./read-cookie.lisp" "readCookie")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./template.lisp" "getTemplate")
(on ("submit" (one "#form-settings") event)
(chain event (prevent-default))
(let ((template (get-template "template-category")))
... | 1,589 | Common Lisp | .lisp | 32 | 39.8125 | 94 | 0.543464 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 13f775c80ebea5a98ae1a3a399d74ea1530e66d74438b891ee8b36c83064ba62 | 38,186 | [
-1
] |
38,187 | articles.lisp | mohe2015_schule/js/articles.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./show-tab.lisp" "showTab")
(i "./utils.lisp" "all" "one" "clearChildren")
(defroute "/articles" (show-tab "#loading")
(get "/api/articles" t
(chain data (sort (lambda (a b) (chain a (locale-compare b)))))
(chain (one "#articles-list") (html ""))
(loop for page in ... | 677 | Common Lisp | .lisp | 14 | 39.5 | 72 | 0.542424 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 64f64d63a14e684e9c8f0f210873daf3236cf720e2730f337e0832b25ea1c80c | 38,187 | [
-1
] |
38,188 | sw.lisp | mohe2015_schule/js/sw.lisp | (var static-cache-name "static-cache-v1")
(var dynamic-cache-name "dynamic-cache-v1")
(var urls-to-cache
([]
"/"
"/popper.js"
"/bootstrap.css"
"/all.css"
"/index.css"
"/bootstrap.js"
"/js/index.lisp"
"/js/state-machine.lisp"
"/js/editor-lib.lisp"
"/js/u... | 4,521 | Common Lisp | .lisp | 114 | 22.763158 | 118 | 0.430521 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | adb42d110cbf859bc1ab0863eecd1af75b2ca51c5cf51e09c070253c8c64e0ce | 38,188 | [
-1
] |
38,189 | quiz.lisp | mohe2015_schule/js/quiz.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./utils.lisp" "all" "one" "clearChildren")
(defroute "/quiz/create" (show-tab "#loading")
(post "/api/quiz/create" (create '_csrf_token (read-cookie "_csrf_token")) t
(push-state (concatenate 'string "/quiz/" data "/edit"))))
(defroute "/quiz/:id/edit" (show-tab "#edit-quiz"))
(de... | 9,018 | Common Lisp | .lisp | 156 | 34.692308 | 99 | 0.433303 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 9e4bf1379a36ba7fa5b594c6a7c547f0825cb15f87fbc33fdde369adda2a0f5e | 38,189 | [
-1
] |
38,190 | image-viewer.lisp | mohe2015_schule/js/image-viewer.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "./utils.lisp" "all" "one" "clearChildren")
(on ("click" (one "body") event :dynamic-selector "article[contenteditable=false] img")
(if (null (chain document fullscreen-element))
(chain event target (request-fullscreen))
(chain document (exit-fullscreen))))
| 303 | Common Lisp | .lisp | 6 | 46.666667 | 87 | 0.676871 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 66dbc5fcfb47f8550dc0062841da1138852f82f79c4ff8a050cfd0883b644753 | 38,190 | [
-1
] |
38,191 | create.lisp | mohe2015_schule/js/create.lisp | (var __-p-s_-m-v_-r-e-g)
(i "/js/state-machine.lisp" "pushState")
(i "/js/editor.lisp" "showEditor")
(i "/js/show-tab.lisp" "showTab")
(i "/js/utils.lisp" "all" "one" "clearChildren")
(i "/js/state-machine.lisp" "enterState")
(defroute "/wiki/:name/create"
;; TODO clean up - here are lots of useless lines of cod... | 1,047 | Common Lisp | .lisp | 24 | 39.458333 | 78 | 0.646712 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 356ea382a6e14b4c7c2043d17a0997f4f782f702ef6413bf64ea46b273cf3484 | 38,191 | [
-1
] |
38,192 | show-tab.lisp | mohe2015_schule/js/show-tab.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "./utils.lisp" "all" "one" "clearChildren")
(export
(defun show-tab (id)
;; temp1.filter(function (tab) { return tab.id != "edit-quiz" })
(chain (all ".my-tab")
(filter
(lambda (tab)
(not (= (chain tab id) id))))
(hide))
(show (one id)... | 324 | Common Lisp | .lisp | 11 | 23.272727 | 67 | 0.503226 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 8533148abe96902d2043c66c201c7ff55b23594a8e98cfab6a0b32549cec64b7 | 38,192 | [
-1
] |
38,193 | read-cookie.lisp | mohe2015_schule/js/read-cookie.lisp | (i "./utils.lisp" "all" "one" "clearChildren")
(export
(defun read-cookie (name)
(let ((name-eq (concatenate 'string name "="))
(ca (chain document cookie (split ";"))))
(loop for c in ca
do (if (chain c (trim) (starts-with name-eq))
(return
(chain c (trim) (su... | 359 | Common Lisp | .lisp | 9 | 32.333333 | 74 | 0.555874 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 079c0efc5302967b06f86847652731c713792c479fda0fba8c966dd30313e5b4 | 38,193 | [
-1
] |
38,194 | history.lisp | mohe2015_schule/js/history.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "./state-machine.lisp" "pushState")
(i "./show-tab.lisp" "showTab")
(i "./math.lisp" "renderMath")
(i "./fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./template.lisp" "getTemplate")
(on ("click" (one "#show-history") event)... | 6,185 | Common Lisp | .lisp | 117 | 35.324786 | 159 | 0.482349 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 19dce9ade046d8bc985727204e9f977fc9d4eac222c094aeaf75bb604784f47d | 38,194 | [
-1
] |
38,195 | search.lisp | mohe2015_schule/js/search.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./show-tab.lisp" "showTab")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "/js/template.lisp" "getTemplate")
(i "/js/fetch.lisp" "checkStatus" "json" "handleFetchErrorShow" "cacheThenNetwork")
(on ("input" (one "#search-query") event)
(chain (one "#button-search") (click)))
(defr... | 2,093 | Common Lisp | .lisp | 40 | 45.2 | 101 | 0.612115 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 5f2f18359ac47bb089a0368df3973da68223d8e3b7291840685544a47e6bc2b5 | 38,195 | [
-1
] |
38,196 | state-machine.lisp | mohe2015_schule/js/state-machine.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./utils.lisp" "all" "one" "clearChildren")
(i "./template.lisp" "getTemplate")
(i "./fetch.lisp" "checkStatus" "json" "handleFetchError")
(i "./show-tab.lisp" "showTab")
(export
(defun update-state ()
(setf (chain window last-url) (chain window location pathname))
(if (undefined (c... | 4,388 | Common Lisp | .lisp | 96 | 39.708333 | 144 | 0.653729 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | f0b0d46c229170113440c60d2b64bf94d8d155bb5f81fb3a30dcf1f0193fc7c0 | 38,196 | [
-1
] |
38,197 | editor-lib.lisp | mohe2015_schule/js/editor-lib.lisp | (var __-p-s_-m-v_-r-e-g)
(i "./file-upload.lisp" "sendFile")
(i "./categories.lisp")
(i "./fetch.lisp" "cacheThenNetwork")
(i "./utils.lisp" "all" "one" "clearChildren")
(import-default "/mathlive.js" "MathLive")
(defun save-range ()
(chain document (get-elements-by-tag-name "article") 0 (focus))
(setf (chain wi... | 15,837 | Common Lisp | .lisp | 318 | 41.36478 | 415 | 0.602481 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 5ad8693e149cac078721a228449676acc03a39d3b8d8090eb433910a762abc77 | 38,197 | [
-1
] |
38,198 | file-upload.lisp | mohe2015_schule/js/file-upload.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "./read-cookie.lisp" "readCookie")
(i "./utils.lisp" "all" "one" "clearChildren")
(i "/js/fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(export
(defun send-file (file)
(setf (disabled (one "#update-image")) t)
(let ((data (new (-form-data))))
(chain data (append ... | 1,299 | Common Lisp | .lisp | 36 | 26.277778 | 167 | 0.514286 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 7dc21af22d91c2ca7181760c532e0c0b8897c89d15c3018ac5fd1b50029f20cc | 38,198 | [
-1
] |
38,199 | id.lisp | mohe2015_schule/js/schedule/id.lisp | (var __-p-s_-m-v_-r-e-g)
(i "/js/show-tab.lisp" "showTab")
(i "/js/fetch.lisp" "checkStatus" "json" "html" "handleFetchError"
"cacheThenNetwork")
(i "/js/utils.lisp" "all" "one" "clearChildren")
(i "/js/template.lisp" "getTemplate")
(i "/js/read-cookie.lisp" "readCookie")
(i "/js/state-machine.lisp" "pushState")
(... | 7,499 | Common Lisp | .lisp | 127 | 47.543307 | 321 | 0.587412 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | d9bec190f0cd5ed99b0ee25f236fcb356c90ea0b7775649c7cdc6b04122ff84b | 38,199 | [
-1
] |
38,200 | index.lisp | mohe2015_schule/js/substitution-schedule/index.lisp | (var __-p-s_-m-v_-r-e-g)
(i "/js/show-tab.lisp" "showTab")
(i "/js/fetch.lisp" "checkStatus" "json" "html" "handleFetchError" "cacheThenNetwork")
(i "/js/utils.lisp" "all" "one" "clearChildren")
(i "/js/template.lisp" "getTemplate")
(i "/js/read-cookie.lisp" "readCookie")
(i "/js/state-machine.lisp" "pushState")
(def... | 5,936 | Common Lisp | .lisp | 139 | 35.633094 | 150 | 0.640401 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | c7c830070715a4969605250b9b061616dcfdbd84be3ad97a5e26934fb040fe83 | 38,200 | [
-1
] |
38,201 | page.lisp | mohe2015_schule/js/wiki/page.lisp | (var __-p-s_-m-v_-r-e-g)
(i "../template.lisp" "getTemplate")
(i "../show-tab.lisp" "showTab")
(i "../math.lisp" "renderMath")
(i "../image-viewer.lisp")
(i "../fetch.lisp" "checkStatus" "json" "handleFetchErrorShow" "cacheThenNetwork")
(i "../utils.lisp" "all" "one" "clearChildren")
(i "../state-machine.lisp" "enterS... | 1,176 | Common Lisp | .lisp | 26 | 41.807692 | 82 | 0.667832 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 94269a918367264face2052f6f1ad40accc774c3f2026af1d14a0b5cf9380ca8 | 38,201 | [
-1
] |
38,202 | edit.lisp | mohe2015_schule/js/wiki/page/edit.lisp | (var __-p-s_-m-v_-r-e-g)
(i "/js/show-tab.lisp" "showTab")
(i "/js/math.lisp" "renderMath")
(i "/js/editor.lisp" "showEditor" "hideEditor")
(i "/js/utils.lisp" "all" "one" "clearChildren")
(i "/js/fetch.lisp" "checkStatus" "json" "handleFetchErrorShow" "cacheThenNetwork")
(i "/js/template.lisp" "getTemplate")
(i "/js/... | 1,620 | Common Lisp | .lisp | 35 | 42.657143 | 106 | 0.676172 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | e5c52b3395ea91ed554c02cb8782c906904d6ab708ea0a9dd8de8e51a6a0b084 | 38,202 | [
-1
] |
38,203 | index.lisp | mohe2015_schule/js/settings/index.lisp | (var __-p-s_-m-v_-r-e-g)
(i "/js/show-tab.lisp" "showTab")
(i "/js/read-cookie.lisp" "readCookie")
(i "/js/fetch.lisp" "cacheThenNetwork" "checkStatus" "json" "html" "handleFetchError")
(i "/js/template.lisp" "getTemplate")
(i "/js/utils.lisp" "all" "one" "clearChildren")
(i "/js/state-machine.lisp" "enterState" "push... | 8,212 | Common Lisp | .lisp | 177 | 37.983051 | 147 | 0.609683 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | b747dd5e93c3685ee12f19d5bcb32b6110d25f4c4ca79e950b54b5a7f2539714 | 38,203 | [
-1
] |
38,204 | index.lisp | mohe2015_schule/js/student-courses/index.lisp | (var __-p-s_-m-v_-r-e-g)
(i "../show-tab.lisp" "showTab")
(i "../read-cookie.lisp" "readCookie")
(i "../fetch.lisp" "cacheThenNetwork" "checkStatus" "json" "html"
"handleFetchError")
(i "../template.lisp" "getTemplate")
(i "../utils.lisp" "all" "one" "clearChildren")
(defun render ()
(show-tab "#loading")
(cha... | 3,490 | Common Lisp | .lisp | 70 | 36.985714 | 83 | 0.543351 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | dfa51e2eff9f6c0e852ea706ca57c8883f164ab41b3945fff97cf25972b2079b | 38,204 | [
-1
] |
38,205 | index.lisp | mohe2015_schule/js/courses/index.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "../show-tab.lisp" "showTab")
(i "../read-cookie.lisp" "readCookie")
(i "../fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(i "../template.lisp" "getTemplate")
(i "../utils.lisp" "all" "one" "clearChildren")
(defroute "/courses" (show-tab "#list-courses")
(chain (fetch "/api/... | 969 | Common Lisp | .lisp | 22 | 35.954545 | 79 | 0.573996 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 2501d2357de90c3b9a0ff7da6334d75af76370eaf0e1c39707549040a35c7fad | 38,205 | [
-1
] |
38,206 | index.lisp | mohe2015_schule/js/schedules/index.lisp |
(var __-p-s_-m-v_-r-e-g)
(i "../show-tab.lisp" "showTab")
(i "../read-cookie.lisp" "readCookie")
(i "../fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(i "../template.lisp" "getTemplate")
(i "../utils.lisp" "all" "one" "clearChildren")
(defroute "/schedules" (show-tab "#list-schedules")
(chain (fetch "... | 1,257 | Common Lisp | .lisp | 27 | 35.851852 | 81 | 0.550489 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | eb74af38d9a3d098ef700e18292a1fa2062d2df47960da1cff7c3ff1f7649725 | 38,206 | [
-1
] |
38,207 | new.lisp | mohe2015_schule/js/schedules/new.lisp | (var __-p-s_-m-v_-r-e-g)
(i "../show-tab.lisp" "showTab")
(i "../read-cookie.lisp" "readCookie")
(i "../fetch.lisp" "checkStatus" "json" "html" "handleFetchError")
(i "../state-machine.lisp" "pushState")
(i "../utils.lisp" "all" "one" "clearChildren")
(defroute "/schedules/new"
(show-tab "#create-schedule-tab"))
... | 842 | Common Lisp | .lisp | 20 | 36.85 | 74 | 0.611722 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 1b72c114ce80a5b03a57c6e07413c64a4eb90065d097bdd6e43e511acaeeb1ab | 38,207 | [
-1
] |
38,208 | default-handler.lisp | mohe2015_schule/src/default-handler.lisp | (in-package :schule.web)
(defparameter *static-files* (make-hash-table :test #'equal))
(loop for file in (directory (concatenate 'string (namestring *application-root*) "/static/**/*.*")) do
(setf (gethash file *static-files*) file))
(defroute ("/.*" :regexp t :method :get) ()
(basic-headers)
(let ((path (m... | 691 | Common Lisp | .lisp | 13 | 46.461538 | 112 | 0.641481 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | ff119552c80a023a69055b00d7611d68692ddfbd70c4d0adf1b29619113648d0 | 38,208 | [
-1
] |
38,209 | vertretungsplan.lisp | mohe2015_schule/src/vertretungsplan.lisp | (defpackage schule.vertretungsplan
(:use :cl :schule.pdf :schule.libc :local-time :str :schule.web)
(:export :get-schedule :parse-vertretungsplan :substitution-schedules :update))
(in-package :schule.vertretungsplan)
(defclass substitution-schedules ()
((schedules
:initform (make-hash-table)
:accessor su... | 12,780 | Common Lisp | .lisp | 262 | 40.69084 | 188 | 0.649632 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | d0486e4dd53baf05af9c3d78efadeea6d3aa0c32adc19d48dda8ed30046d2fb9 | 38,209 | [
-1
] |
38,210 | db.lisp | mohe2015_schule/src/db.lisp | (in-package :schule.db)
(defun connection-settings (&optional (db :maindb))
(cdr (assoc db (config :databases))))
(defun db (&optional (db :maindb))
(apply #'connect-cached (connection-settings db)))
(defmacro with-connection (conn &body body)
`(let ((*connection* ,conn))
,@body))
(defclass schedule ()
... | 6,365 | Common Lisp | .lisp | 128 | 46.28125 | 148 | 0.73358 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 338f0aef8d64bdeb17c7f6f2c26407c160b9512745838e7cd590f0e2aa5a294a | 38,210 | [
-1
] |
38,211 | student-courses.lisp | mohe2015_schule/src/student-courses.lisp | (in-package :schule.web)
(my-defroute :get "/api/student-courses" (:admin :user) () "application/json"
(if (user-grade user)
(progn
(describe user)
(let* ((query (dbi.driver:prepare *connection* "SELECT student_course.* FROM student_course, course, course_revision WHERE student_course.course_id =... | 1,363 | Common Lisp | .lisp | 22 | 51.954545 | 279 | 0.608371 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 92e4ca8112767693c32c838081618a3ea61b4282a7a6e27ff180906108af727c | 38,211 | [
-1
] |
38,212 | package.lisp | mohe2015_schule/src/package.lisp | (defpackage schule.argon2
(:use :cl :cffi :ironclad)
(:export :hash :verify))
(defpackage schule.sanitize
(:use :cl :sanitize)
(:export :*sanitize-schule*))
(defpackage schule.tsquery-converter
(:use :cl :str)
(:export :tsquery-convert))
(defpackage schule.parenscript
(:use :cl :parenscript :ppcre :iro... | 3,593 | Common Lisp | .lisp | 122 | 20.434426 | 76 | 0.587879 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | b40bc18339e41f07913a80220c76c5ee59108720627691a5e980d8c3b9e4d2a2 | 38,212 | [
-1
] |
38,213 | libc.lisp | mohe2015_schule/src/libc.lisp | (defpackage schule.libc
(:use :cl :cffi)
(:export :strptime))
(in-package :schule.libc)
(define-foreign-library libc
(:unix (:or "libc.so.6" "libc.so"))
(:t (:default "libc")))
(use-foreign-library libc)
(defcstruct tm
(tm-sec :int)
(tm-min :int)
(tm-hour :int)
(tm-mday :int)
(tm-mon :int)
(tm-y... | 1,626 | Common Lisp | .lisp | 53 | 25.981132 | 143 | 0.632287 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 1e3cb98875635019f881fe41dd62e10783e647d8a9c3d3c3be17cdd27f078347 | 38,213 | [
-1
] |
38,214 | argon2.lisp | mohe2015_schule/src/argon2.lisp | (in-package :schule.argon2)
(define-foreign-library libargon2
(:unix (:or "libargon2.so.1" "libargon2.so"))
(:t (:default "libargon2")))
(use-foreign-library libargon2)
(defctype size :unsigned-int)
(defcenum argon2_errorcodes
(:argon2_ok 0)
(:argon2_output_ptr_null -1)
(:argon2_output_too_short -2)
(:a... | 2,718 | Common Lisp | .lisp | 83 | 29.457831 | 139 | 0.695006 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | e931afe88026615f21b624671fedbe2ffceef182a4991266fe936803a45e0d1d | 38,214 | [
-1
] |
38,215 | index.lisp | mohe2015_schule/src/index.lisp | (in-package :schule.web)
(defun get-html ()
`(:html :lang "en"
(:head (:meta :charset "utf-8")
(:meta :name "viewport" :content
"width=device-width, initial-scale=1, shrink-to-fit=no")
(:link :rel "stylesheet" :href "/bootstrap.css")
(:link :rel "stylesheet" :href "/all.css")
(:lin... | 16,515 | Common Lisp | .lisp | 294 | 43.840136 | 127 | 0.5468 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 306aae88f7dd13784fc6d57716f9ee2ada5c29eef0792ab3ad11cc4f311424fe | 38,215 | [
-1
] |
38,216 | show-dependencies.lisp | mohe2015_schule/src/show-dependencies.lisp | (defun get-graph ()
`((:parenscript-file "js/read-cookie" :depends-on ("js/utils"))
(:parenscript-file "js/editor" :depends-on ("js/editor-lib" "js/math" "js/read-cookie" "js/state-machine" "js/utils" "js/fetch"))
(:parenscript-file "js/fetch" :depends-on ("js/state-machine" "js/utils" "js/show-tab"))
(:p... | 4,152 | Common Lisp | .lisp | 42 | 94.285714 | 444 | 0.67251 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 651fab53e816374b91c1cc5cd809eea685f4663deb84c501eb6cee2caf0636e9 | 38,216 | [
-1
] |
38,217 | schedule.lisp | mohe2015_schule/src/schedule.lisp | (in-package :schule.web)
(my-defroute :post "/api/teachers" (:admin :user) (|name| |initial|) "text/html"
(dbi:with-transaction *connection*
(let* ((teacher (create-dao 'teacher))
(revision (create-dao 'teacher-revision :author user :teacher teacher :name |name| :initial |initial|)))
(format nil... | 9,088 | Common Lisp | .lisp | 155 | 48.445161 | 170 | 0.614625 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 77c4ffdbe8b5265a70a34129e838c0f85e1a3a2024ecad275a16a7d9db249e6f | 38,217 | [
-1
] |
38,218 | web-push.lisp | mohe2015_schule/src/web-push.lisp | (defpackage schule.web-push
(:use :cl :cffi)
(:export send-push))
(in-package :schule.web-push)
(define-foreign-library libwebpush
(:unix (:or "libwebpush.so.1" "libwebpush.so"))
(:t (:default "libwebpush")))
(use-foreign-library libwebpush)
(defcfun "send_notification" :uint32
(p256dh :pointer)
(auth :p... | 788 | Common Lisp | .lisp | 21 | 30.428571 | 81 | 0.642202 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | a60bd8c3de654108f3b2f41f286835df5f8e4fb5bf8da7f811526b6e7cc93448 | 38,218 | [
-1
] |
38,219 | main.lisp | mohe2015_schule/src/main.lisp | (in-package :cl-user)
(defpackage schule
(:use :cl :cl-fsnotify :cl-fad)
(:import-from :schule.config :config)
(:import-from :clack :clackup)
(:export :start :stop :development))
(in-package :schule)
(defvar *appfile-path*
(asdf/system:system-relative-pathname :schule #P"app.lisp"))
(defvar *handler* nil)... | 1,795 | Common Lisp | .lisp | 43 | 35.325581 | 110 | 0.643349 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | e394ac2818ca3c968527648d2607997f919a56f97414bbec4c1f86ba4837b555 | 38,219 | [
-1
] |
38,220 | parenscript.lisp | mohe2015_schule/src/parenscript.lisp | (in-package :schule.parenscript)
(defparameter *js-target-version* "1.8.5")
(defpsmacro defroute (route &body body)
`(progn
(export
(defun ,(make-symbol (concatenate 'string "handle-" (subseq (regex-replace-all "/[:\\.]?" route "-") 1))) (path)
(var results nil)
(when (var results (cha... | 4,070 | Common Lisp | .lisp | 98 | 36.326531 | 179 | 0.646701 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 25ac22ddfdf76741f16c5362f04f187a4d437f6c7ef3a4953485c9a1e465ecdf | 38,220 | [
-1
] |
38,221 | config.lisp | mohe2015_schule/src/config.lisp | (in-package :schule.config)
(setf (config-env-var) "APP_ENV")
(defparameter *application-root*
(asdf/system:system-source-directory :schule))
(defparameter *static-directory*
(merge-pathnames #P"static/" *application-root*))
(defparameter *template-directory*
(merge-pathnames #P"templates/" *application-root*... | 927 | Common Lisp | .lisp | 21 | 41.809524 | 71 | 0.73991 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 11f5dafed88008f763400f20422939a814187564c61e1c5db3bf235cf4a2c9ff | 38,221 | [
-1
] |
38,222 | pdf.lisp | mohe2015_schule/src/pdf.lisp | (defpackage schule.pdf
(:use :cl :pdf :deflate :flexi-streams :queues :log4cl)
(:export :parse :read-line-part :read-newline :line-length :current-line :extractor-lines :read-new-page))
(in-package :schule.pdf)
(defclass pdf-text-extractor (fare-mop:SIMPLE-PRINT-OBJECT-MIXIN)
((pages
:initarg :pages
:in... | 8,621 | Common Lisp | .lisp | 211 | 33.227488 | 127 | 0.598593 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 608ce2d92da7570b82eb9b79534e7558e7701960fa17997cedd5c4d2cc3dad3d | 38,222 | [
-1
] |
38,223 | fix-code.lisp | mohe2015_schule/src/fix-code.lisp | ;; sed -r -i 's/[(]chain (.*) [(]modal "hide"[)][)]/(hide-modal \1)/g' *.lisp
(ql:quickload :trivia)
(use-package :trivia)
(match '(chain (one "#test") (modal "hide"))
((list 'chain a (list 'modal "hide"))
(list 'hide-modal a)))
(defun fix-code (code)
(let ((result (match code
((list 'chain a... | 965 | Common Lisp | .lisp | 23 | 35.043478 | 86 | 0.559829 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | faabf283f1c2424c22bee4362fec32dd5197274432d15526bd2af049e396e577 | 38,223 | [
-1
] |
38,224 | tsquery-converter.lisp | mohe2015_schule/src/tsquery-converter.lisp | (in-package :schule.tsquery-converter)
(defun handle-quoted (query) (concat "(" (join " <-> " (split " " query)) ")"))
(defun handle-unquoted (query) (concat "(" (join " & " (split " " query)) ")"))
(defun tsquery-convert-part (query add-wildcard)
(setf query (split #\" query))
(if add-wildcard
(setf (car ... | 1,009 | Common Lisp | .lisp | 26 | 31.884615 | 79 | 0.561798 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | cdd8dae0b860fac0dcdda286d805aea0722be0002729a275a5eced4e3be45990 | 38,224 | [
-1
] |
38,225 | sanitize.lisp | mohe2015_schule/src/sanitize.lisp | (in-package :schule.sanitize)
(define-sanitize-mode *sanitize-schule*
:elements ("h1" "h2" "h3" "h4" "h5" "h6" "p" "strike" "sub" "b" "u" "i" "sup" "table"
"tbody" "tr" "td" "ul" "a" "br" "ol" "li" "img" "iframe" "span" "figure"
"figcaption")
:add-attributes (("a" ("rel" . "noopener n... | 793 | Common Lisp | .lisp | 22 | 31.409091 | 88 | 0.53455 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 16b2b34e3557cd1d64964daac2a273b7439e88e63d83ac838e66e0a43cc795b1 | 38,225 | [
-1
] |
38,226 | session.lisp | mohe2015_schule/src/session.lisp | (in-package :cl-user)
(defpackage schule.session
(:use :cl))
(in-package :schule.session)
(defmethod session-verify ((request request))
(let ((*connection*
(dbi:connect-cached :sqlite3 :database-name *database-path*))
(session-identifier
(cookie-in (session-cookie-name *acceptor*) reque... | 2,311 | Common Lisp | .lisp | 48 | 43.875 | 79 | 0.712007 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 365a85745d6853acd20e67bf8bb32090cb7aab7bfda5a83d95153ccfbc877154 | 38,226 | [
-1
] |
38,227 | settings.lisp | mohe2015_schule/src/settings.lisp | (in-package :schule.web)
(my-defroute :post "/api/settings" (:admin :user) (|grade|) "text/html"
(setf (user-grade user) (find-dao 'schedule :id (parse-integer |grade|)))
(save-dao user) "")
(my-defroute :get "/api/settings" (:admin :user) nil "text/html"
(encode-json-to-string (user-grade user)))
| 304 | Common Lisp | .lisp | 6 | 48.833333 | 74 | 0.682432 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 32e1d48ba5f774fcf6e25523b9569d5eb076a3797c0371a9ab9889de1dae5e07 | 38,227 | [
-1
] |
38,228 | web.lisp | mohe2015_schule/src/web.lisp | (in-package :schule.web)
(declaim (optimize (debug 3)))
(defclass <web> (<app>) ())
(defvar *web* (make-instance '<web>))
(clear-routing-rules *web*)
(defmacro with-user (&body body)
`(if (gethash :user *session*)
(let ((user (find-dao 'user :id (gethash :user *session*))))
,@body)
(throw-... | 14,908 | Common Lisp | .lisp | 284 | 44.411972 | 616 | 0.621586 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 42574f31edbf2c9a037f12442fb53a169293e2b1706e321cbf174b52c37c748b | 38,228 | [
-1
] |
38,229 | helpers.lisp | mohe2015_schule/src/html/helpers.lisp | (in-package :schule.web)
(defun modal (base-id title footer body)
`(:div :class "modal fade" :id ,(concatenate 'string "modal-" base-id)
:tabindex "-1" :role "dialog" :aria-hidden "true"
(:div :class "modal-dialog modal-dialog-centered" :role "document"
(:div :class "modal-content"
(:... | 2,327 | Common Lisp | .lisp | 38 | 55.184211 | 244 | 0.661397 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 2a297720760e7d350e564120c391f7f9edf19e58815522f006d8a4160ff10bdf | 38,229 | [
-1
] |
38,230 | index.lisp | mohe2015_schule/src/html/schedule/index.lisp | (in-package :schule.web)
(defun schedule-tab (day)
`(:div :class "tab-pane fade" :id ,day :role "tabpanel" :aria-labeledby
,(concatenate 'string day "-tab")
(:table :class "table table-hover table-bordered table-dark table-sm"
(:thead (:tr (:th :scope "col" "#") (:th :scope "col" "")))
(:tbody
... | 3,876 | Common Lisp | .lisp | 73 | 40.178082 | 99 | 0.531892 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | fa96034d96eff98ae07e487998dde5e518110519d9e2935e4e55ebd589f87864 | 38,230 | [
-1
] |
38,231 | index.lisp | mohe2015_schule/src/html/substitution-schedule/index.lisp | (in-package :schule.web)
(defun template-substitution-schedule ()
`(,(tab "substitution-schedule"
`(:a :id "settings-enable-notifications" :type "button" :class "btn btn-primary norefresh disabled" "Benachrichtigungen aktivieren")
`(:div :id "substitution-schedule-content"))
(:template
:id "te... | 635 | Common Lisp | .lisp | 15 | 36.533333 | 138 | 0.66559 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | a3ace119079b7e449675446e914f19878eedcbd1c6b0f0a1840e6d6b65766732 | 38,231 | [
-1
] |
38,232 | index.lisp | mohe2015_schule/src/html/contact/index.lisp | (in-package :schule.web)
(defun contact-html ()
(tab "tab-contact"
`(:h2 :class "text-center" "Kontakt")
`(:address
(:strong "Moritz Hedtke") (:br)
"Email: " (:a :href "mailto:Moritz.Hedtke@t-online.de" :target "_blank" "Moritz.Hedtke@t-online.de") (:br)
"Telegram: " (:a :hre... | 649 | Common Lisp | .lisp | 12 | 46.416667 | 115 | 0.558176 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 6f12baf1c8fe0cdec9a395ab27a9af1171bae4c8d5653c10e60a513a4e1ec0eb | 38,232 | [
-1
] |
38,233 | index.lisp | mohe2015_schule/src/html/settings/index.lisp | (in-package :schule.web)
(defun html-settings ()
`((:template :id "settings-student-course-html"
(:div :class "custom-control custom-checkbox"
(:input :type "checkbox" :class
"custom-control-input student-course-checkbox" :id "settings-course-n")
(:label :class "custom-control... | 3,349 | Common Lisp | .lisp | 57 | 49.245614 | 113 | 0.607742 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 7ed355ffdcd7956eb23ba902447398e3fa69c85a9d7f94ff04d4c34574138e49 | 38,233 | [
-1
] |
38,234 | index.lisp | mohe2015_schule/src/html/user-courses/index.lisp | (in-package :schule.web)
(defun html-user-courses ()
`((:template :id "student-courses-list-html"
(:li
(:a :type "button" :class "btn btn-primary button-student-course-delete"
"-")
(:span :class "student-courses-list-subject")))
,(tab "list-student-courses"
`(:h... | 939 | Common Lisp | .lisp | 20 | 38.3 | 82 | 0.581878 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 79a062e21adcc07d6b67c1a7dda3dbf2f9e73f0a2bfce7bd546275ff64a676cd | 38,234 | [
-1
] |
38,235 | schule.lisp | mohe2015_schule/tests/schule.lisp | (in-package :cl-user)
(defpackage schule-test
(:use :cl :schule :prove))
(in-package :schule-test)
;; (prove:run :schule-test)
(plan nil)
(finalize)
| 154 | Common Lisp | .lisp | 7 | 20.285714 | 28 | 0.715278 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | eb3dedcd67f831cb602d3e0cc553b8632983497aae696dd3b20487609f605926 | 38,235 | [
-1
] |
38,236 | schule.asd | mohe2015_schule/schule.asd | (defsystem "schule"
:version "0.1.0"
:author "Moritz Hedtke"
:license ""
:defsystem-depends-on (:paren-files)
:depends-on (:clack
:lack
:caveman2
:envy
:cl-ppcre
:uiop
:cl-fsnotify
:fare-mop
:mito
... | 6,586 | Common Lisp | .asd | 99 | 58.10101 | 443 | 0.632517 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 6217cb241f2247f370a5f5dfe77f73c715b253abaa345445b2bb8cc89ab09579 | 38,236 | [
-1
] |
38,237 | schule-test.asd | mohe2015_schule/schule-test.asd | (defsystem "schule-test"
:defsystem-depends-on ("prove-asdf")
:author "Moritz Hedtke"
:license ""
:depends-on ("schule"
"prove")
:components ((:module "tests"
:components
((:test-file "schule"))))
:description "Test system for schule"
:perform (test-op (op c)... | 368 | Common Lisp | .asd | 11 | 26.909091 | 73 | 0.602241 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 35179a82fcd83eed5661798fb3e7280ebdfd2ad2294f467425ca4e90af67c990 | 38,237 | [
-1
] |
38,240 | .gitmodules | mohe2015_schule/.gitmodules | [submodule "cl-sanitize"]
path = cl-sanitize
url = https://github.com/mohe2015/cl-sanitize.git
[submodule "mathlive"]
path = mathlive
url = https://github.com/arnog/mathlive.git
[submodule "lack"]
path = lack
url = https://github.com/mohe2015/lack.git
[submodule "parenscript"]
path = parenscript
url = https://g... | 1,342 | Common Lisp | .l | 39 | 32.74359 | 50 | 0.778972 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 4759fe209d71c1e242ab05647369cd9929a5204294bf13688e465750254391f0 | 38,240 | [
-1
] |
38,241 | schema.sql | mohe2015_schule/schema.sql | CREATE TABLE "schedule" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"grade" VARCHAR(64) NOT NULL,
"created_at" TIMESTAMP,
"updated_at" TIMESTAMP,
UNIQUE ("grade")
);
CREATE TABLE "user" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"name" VARCHAR(64) NOT NULL,
"group" VARCHAR(64) NOT NULL,
... | 4,099 | Common Lisp | .l | 137 | 25.875912 | 66 | 0.690241 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 319a2c61d273bfc344b24e588f477275513e560c50f6a48010b79cb411f87ba5 | 38,241 | [
-1
] |
38,277 | Cargo.toml | mohe2015_schule/dependencies/rust-web-push/Cargo.toml | [package]
name = "web-push-interface"
version = "0.1.0"
authors = ["mohe2015 <Moritz.Hedtke@t-online.de>"]
edition = "2018"
[lib]
name = "webpush"
crate-type = ["dylib"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
web-push = "*"
tokio = "*"
futures ... | 337 | Common Lisp | .l | 14 | 22.857143 | 96 | 0.7 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | aa4c099768e59440227beb10ddb043e9fa5aa1b1146b517e7faafdf6171ad950 | 38,277 | [
-1
] |
38,278 | Cargo.lock | mohe2015_schule/dependencies/rust-web-push/Cargo.lock | # This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "arrayvec"
version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "a... | 64,220 | Common Lisp | .l | 1,212 | 51.591584 | 170 | 0.758537 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | beec2952f08276d9f1eb08a422500e612609d03ee5e22cdbd711eb55022e8e06 | 38,278 | [
-1
] |
38,279 | 20190818175429.up.sql | mohe2015_schule/migrations/20190818175429.up.sql | ALTER TABLE "schedule_data" RENAME TO "schedule_data1077";
CREATE TABLE "schedule_data" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"weekday" INTEGER NOT NULL,
"hour" INTEGER NOT NULL,
"week_modulo" INTEGER NOT NULL,
"course_id" INTEGER NOT NULL,
"room" VARCHAR(32) NOT NULL,
"created_at" TIMES... | 823 | Common Lisp | .l | 19 | 39.578947 | 238 | 0.690299 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 00df6c14d12369cd4f58696b5dae305c911c3dd3c3bec112171049e2b291a97c | 38,279 | [
-1
] |
38,280 | 20190814143420.up.sql | mohe2015_schule/migrations/20190814143420.up.sql | CREATE TABLE "web_push" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"user_id" INTEGER NOT NULL,
"p256dh" VARCHAR(128) NOT NULL,
"auth" VARCHAR(32) NOT NULL,
"endpoint" VARCHAR(1024) NOT NULL,
"created_at" TIMESTAMP,
"updated_at" TIMESTAMP,
UNIQUE ("user_id", "p256dh", "auth", "endpoint")
)... | 322 | Common Lisp | .l | 10 | 28 | 52 | 0.657051 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | ac2be4ca9843f906eefa33be65ce0ea13dc951e5d6cdc45de7ef715792ecfac4 | 38,280 | [
-1
] |
38,308 | blank.yml | mohe2015_schule/.github/workflows/blank.yml | name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
| 311 | Common Lisp | .l | 13 | 18.461538 | 43 | 0.631034 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 15894e1045c6e8cea00b84da3c7fb4c3e96132dc1af62925eb40033a6c18a660 | 38,308 | [
-1
] |
38,310 | mathlive.js | mohe2015_schule/static/mathlive.js | const t=0,e=1,i=2,s=3,a=4,o=5,n=6,r=7,l=8,c=9,h=10,d=11,p=12;function m(t,e){e=e||0;const i=t.charCodeAt(e);if(55296<=i&&i<=56319&&e<t.length-1){const s=i,a=t.charCodeAt(e+1);return 56320<=a&&a<=57343?1024*(s-55296)+(a-56320)+65536:s}if(56320<=i&&i<=57343&&e>=1){const s=t.charCodeAt(e-1),a=i;return 55296<=s&&s<=56319?1... | 419,419 | Common Lisp | .l | 1 | 419,418 | 419,418 | 0.640435 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | f31587fa2923823225dbb9479042401bf8ac8023a062a0de7c3f151d89fa2131 | 38,310 | [
-1
] |
38,311 | all.css | mohe2015_schule/static/all.css | .fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1... | 53,592 | Common Lisp | .l | 1 | 53,592 | 53,592 | 0.744813 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | d2b00653c0565884b44790ae3c98244554233ad8872b2bef22db2dab1b26bb0c | 38,311 | [
-1
] |
38,312 | mathlive.core.css | mohe2015_schule/static/mathlive.core.css | .ML__mathlive{line-height:0;direction:ltr;text-align:left;text-indent:0;text-rendering:auto;font-style:normal;font-size-adjust:none;letter-spacing:normal;word-wrap:normal;word-spacing:normal;white-space:nowrap;display:inline-block;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user... | 4,037 | Common Lisp | .l | 1 | 4,037 | 4,037 | 0.760961 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 8a19b5f67e8b28a837d4d82cc4d5c19cc6dbfb4783f8999fef80155807fe0811 | 38,312 | [
-1
] |
38,313 | mathlive.css | mohe2015_schule/static/mathlive.css | @font-face{font-family:KaTeX_AMS;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff");font-weight:400;font-style:normal;font-display:"swap"}@font-face{font-family:KaTeX_Caligraphic;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-... | 47,456 | Common Lisp | .l | 1 | 47,456 | 47,456 | 0.78026 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 94b8881252da61fa18bdfef24f4b200d9badbe0b9a125fd0fef54ba92e988b77 | 38,313 | [
-1
] |
38,314 | visual-diff.js | mohe2015_schule/static/visual-diff.js | /* Copyright (c) 2012 The Network Inc. and contributors
https://github.com/tnwinc/htmldiff.js licensed under the MIT License https://github.com/tnwinc/htmldiff.js/blob/master/LICENSE */
var Match, calculate_operations, consecutive_where, create_index, diff, find_match, find_matching_blocks, html_to_tokens, is_end_of_ta... | 12,499 | Common Lisp | .l | 343 | 31.349854 | 276 | 0.628906 | mohe2015/schule | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 88090d21dcddbd38822ca9d8301d1a85920a5aaf0d5003de3e5c48e1ebc7d811 | 38,314 | [
-1
] |
38,329 | healed-lisp.lisp | komputikisto_HEALED-LISP/healed-lisp.lisp | (load "~/quicklisp/setup.lisp")
(ql:quickload "optima")
(ql:quickload "cl-ansi-text")
(ql:quickload "alexandria")
(use-package :optima)
(use-package :cl-ansi-text)
(defparameter *trace-time-flag* t)
(setq trace-flag 'on)
(defun signed-numeric-string-p (str)
(cond ((string= str "") nil)
((or (string= ... | 53,256 | Common Lisp | .lisp | 1,054 | 36.720114 | 116 | 0.50569 | komputikisto/HEALED-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | cde76683c4e715f2d776009ddb53e3b83c64bd34193e9e8872a063f4856bfcbd | 38,329 | [
-1
] |
38,346 | lexical-analizer.lisp | PaperMonoid_common-lisp-exercises/lexical-analizer.lisp | (require "cl-ppcre")
(defun is-variable? (string)
(cl-ppcre:scan "^[A-Za-z][A-Za-z0-9]*$" string))
(defun is-number? (string)
(cl-ppcre:scan "^([\+\-])?[0-9]+(.[0-9]+)?((e|E)([\+\-])?[0-9]+)?$" string))
(defun is-email? (string)
(cl-ppcre:scan "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$" string))
(defun... | 888 | Common Lisp | .lisp | 20 | 41.45 | 101 | 0.577726 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 653874dde4d7a7d4583ff889855df8852bb534dd1514368084086ba0b7900afb | 38,346 | [
-1
] |
38,347 | random.lisp | PaperMonoid_common-lisp-exercises/random.lisp | (defvar *x* 1.0)
(defun multiplicative-congruential-random
(&optional (a 125.0) (m 255.0))
(progn
(setq *x* (* (mod (* a *x*) m) 1.0))
(/ *x* m)))
(loop repeat 10
do (print (multiplicative-congruential-random 3.0 255.0)))
| 240 | Common Lisp | .lisp | 8 | 26.75 | 60 | 0.613043 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | e6581de1cd810e9380a18f4ecd3e6417c659f33d61c0952bceea3867ee1a0f68 | 38,347 | [
-1
] |
38,348 | rock-paper-scissors.lisp | PaperMonoid_common-lisp-exercises/rock-paper-scissors.lisp | (require "cl-ppcre")
(defun continue? (string)
(cl-ppcre:scan "(?i)(y|ye|yes)" string))
(defun parse-move (string)
(cond ((cl-ppcre:scan "(?i)(r|rock)" string) 'ROCK)
((cl-ppcre:scan "(?i)(p|paper)" string) 'PAPER)
(t 'SCISSORS)))
(defun get-ai-move ()
(let ((pick (random 3)))
(cond ((= pick 1) 'ROCK)
... | 1,055 | Common Lisp | .lisp | 32 | 29.15625 | 63 | 0.582104 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | b1c7cbf794d35d4a4f8a3805ec07758e31ff411ecee5bcb5bf627e3202dacaef | 38,348 | [
-1
] |
38,349 | monte-carlo.lisp | PaperMonoid_common-lisp-exercises/monte-carlo.lisp | (defun U ()
(random 1.0))
(defun avg (X &optional (n 1))
(let ((sum 0.0))
(loop repeat n
do (incf sum (funcall X)))
(/ sum n)))
(defun inside-circle? ()
(cond
((<= (+ (expt (- (* (U) 2) 1) 2) (expt (- (* (U) 2) 1) 2)) 1) 1)
(t 0)))
(defun e-pi (&optional (n 1))
(* (avg #'inside-circle? n) ... | 764 | Common Lisp | .lisp | 32 | 20.40625 | 68 | 0.493075 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | de6185c3e4e21caacf9eae0fcd16cd609c0813f2149233bfe52bf231c77e3b68 | 38,349 | [
-1
] |
38,350 | fizz-buzz.lisp | PaperMonoid_common-lisp-exercises/fizz-buzz.lisp | (defun fizz-buzz (n)
(let ((divisible-by-3 (= 0 (mod n 3)))
(divisible-by-5 (= 0 (mod n 5))))
(cond
((and divisible-by-3 divisible-by-5) '(FIZZ BUZZ))
(divisible-by-3 'FIZZ)
(divisible-by-5 'BUZZ)
(t n))))
| 237 | Common Lisp | .lisp | 8 | 24.75 | 56 | 0.550218 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | f8743af1f974d63ae51839dc98e90705a13fa4481286911f0e70ca1b8e8ecca2 | 38,350 | [
-1
] |
38,351 | fibonacci.lisp | PaperMonoid_common-lisp-exercises/fibonacci.lisp | (defun fibonacci (n)
(if (<= n 2)
1
(+ (fibonacci (- n 1)) (fibonacci (- n 2)))))
| 96 | Common Lisp | .lisp | 4 | 19.5 | 51 | 0.456522 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 8e828770acc164146c074e3f18b566728e0f7d5db0380c17c253f7e187778c74 | 38,351 | [
-1
] |
38,352 | let.lisp | PaperMonoid_common-lisp-exercises/let.lisp | (defun foo (x)
(format t "Parameter: ~a~%" x)
(let ((x 2))
(format t "Outer LET: ~a~%" x)
(let ((x 3))
(format t "Inner LET: ~a~%" x))
(format t "Outer LET: ~a~%" x))
(format t "Parameter: ~a~%" x))
| 223 | Common Lisp | .lisp | 8 | 23.875 | 37 | 0.493023 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | a2cdc7820bde9355d76e3f393faf735fd6f83269b400e79fa5a759b31cc73395 | 38,352 | [
-1
] |
38,353 | clos.lisp | PaperMonoid_common-lisp-exercises/clos.lisp | (defclass Box ()
((length :reader get-length :writer set-length)
(breadth :reader get-breadth :writer set-breadth)
(height :reader get-height :writer set-height)))
(make-instance 'Box)
(defclass Point ()
(x y z))
| 225 | Common Lisp | .lisp | 7 | 29.428571 | 52 | 0.708333 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 687c325c00f739271aee62b69c926a21f4ac6a6811dfc34a6b9a5922dc34ca9a | 38,353 | [
-1
] |
38,354 | prime.lisp | PaperMonoid_common-lisp-exercises/prime.lisp | (defun is-prime (n)
(let ((result t))
(loop for i from 2 to (- n 1) do
(setq result (and result (not (= 0 (mod n i))))))
result))
| 146 | Common Lisp | .lisp | 5 | 25 | 55 | 0.539007 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 59e48574b87321740aed3eae8c808835342e610ed057142512a2c98259b70e55 | 38,354 | [
-1
] |
38,355 | macro.lisp | PaperMonoid_common-lisp-exercises/macro.lisp | (defmacro setTo10(n)
(setq n 10)
(print n))
(setq x 25)
(print x)
(setTo10 x)
| 83 | Common Lisp | .lisp | 6 | 12 | 20 | 0.657895 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 6bf59b8be61612b136b7a2c48e769407733c6db0bd6a38956e42df7beb779ac0 | 38,355 | [
-1
] |
38,356 | loop.lisp | PaperMonoid_common-lisp-exercises/loop.lisp | (loop for i in '(ichi ni san)
do (print i))
(loop for x from 1 to 100
for y = (* x 2)
collect y)
(loop for (a b) in '((x 1) (y 2) (z 3))
collect (list b a) )
(loop repeat 10
do (format t "ok"))
(dolist (item '(ichi ni san))
(print item))
| 274 | Common Lisp | .lisp | 11 | 20.636364 | 39 | 0.540541 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 7311b3375354d56701148216dd0e9e537bde680cfffff28ff18fc4f5e22be968 | 38,356 | [
-1
] |
38,357 | factorization.lisp | PaperMonoid_common-lisp-exercises/factorization.lisp | (defun factorize (n)
(let ((limit n))
(loop for i from 2 to limit
do (if (zerop (mod n i))
(return i)
(setq limit (floor (/ n i)))))))
(factorize (* 15485863 32452843))
| 197 | Common Lisp | .lisp | 7 | 23.142857 | 39 | 0.560847 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 5f0a54808fa02934a42e0483ad4098c41bd645a0433503654de2f4dc350c97ef | 38,357 | [
-1
] |
38,358 | regex.lisp | PaperMonoid_common-lisp-exercises/regex.lisp | (require "cl-ppcre")
(defun continue? (string)
(cl-ppcre:scan "(?i)(y|ye|yes)" string))
(defun is-variable? (string)
(cl-ppcre:scan "^[A-Za-z][A-Za-z0-9]*$" string))
(defun is-number? (string)
(cl-ppcre:scan "^([\+\-])?[0-9]+(.[0-9]+)?((e|E)([\+\-])?[0-9]+)?$" string))
(defun classify-lexeme (string)
(cond ... | 676 | Common Lisp | .lisp | 19 | 32.421053 | 78 | 0.592025 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | d0c0481a26449623744221a4b87c21e27c126244446cdc9e4a0c7cbd64a3df2e | 38,358 | [
-1
] |
38,359 | factorial.lisp | PaperMonoid_common-lisp-exercises/factorial.lisp | (defun factorial (n)
(if (> n 1) (* n (factorial (- n 1))) 1))
(defun factorial-loop (n)
(let ((result 1))
(dotimes (i n) (setq result (* result (+ i 1))))
result))
| 178 | Common Lisp | .lisp | 6 | 26.5 | 52 | 0.549708 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | af3b6543d37d82ad569ecc57c28960a352ad7fa37ad794b16b09704314c3c781 | 38,359 | [
-1
] |
38,360 | binary-search.lisp | PaperMonoid_common-lisp-exercises/binary-search.lisp | (defun binary-search (lst elt)
(cond ((null lst) nil)
((= (car lst) elt) t)
((< elt (car lst)) (binary-search (car (cdr lst)) elt))
((> elt (car lst)) (binary-search (car (cdr (cdr lst))) elt))))
| 222 | Common Lisp | .lisp | 5 | 38.2 | 71 | 0.534562 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 4dea3a8e95fed87b1dc008606673eeeef10b543bba389e1ebd1360fd0cc86569 | 38,360 | [
73652
] |
38,361 | defparameter.lisp | PaperMonoid_common-lisp-exercises/defparameter.lisp | (defparameter *p* 1)
(constantp '*p*)
(setq *p* 2)
(defparameter *p* 3)
*p*
| 76 | Common Lisp | .lisp | 5 | 14.2 | 20 | 0.633803 | PaperMonoid/common-lisp-exercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:42 AM (Europe/Amsterdam) | 73036a34aaf5ebe67e590107902e1ecb9ecc32988be77a2fb7e50bc84afc8639 | 38,361 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.