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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29,768 | s7-db.lsp | daugfernandes_lispdb/s7-db.lsp | ; $Id$
;;; s7-db
;;
;; Db
;;
;; http://en.wikipedia.org/wiki/Relational_algebra
;;
;; ----------------------------------------------------------------------
;;
;; Copyright (C) 2010 David Fernandes
;; <david.paiva.fernandes@gmail.com>
;;
;; This program is free software: you can redistr... | 7,867 | Common Lisp | .l | 242 | 29.553719 | 77 | 0.549283 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 48b219978130e85bbf1949cdc9fce1abe0d15918467a6dbe4ad00d0b9b9643eb | 29,768 | [
-1
] |
29,769 | s7-xml-neater.lsp | daugfernandes_lispdb/s7-xml-neater.lsp | ;;; s7-xml-neater.lsp
;;
;; XML neater
;;
;; $Id$
;; ----------------------------------------------------------------------
;;
;; Copyright (C) 2010 David Fernandes
;; <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the t... | 12,264 | Common Lisp | .l | 458 | 22.344978 | 128 | 0.554547 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | aae388f2ddaac1583db6a453fb88af812e711ba7e3864d1d7fa87e27978d2d6b | 29,769 | [
-1
] |
29,770 | s7-xml.lsp | daugfernandes_lispdb/s7-xml.lsp | ;;; s7-xml.lsp
;;
;; XML parser
;;
;; ----------------------------------------------------------------------
;;
;; Copyright (C) 2010 David Fernandes
;; <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Gen... | 31,816 | Common Lisp | .l | 687 | 41.112082 | 161 | 0.656012 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 3d91ef7cae8961fb4882fbb8db1f7fc9b7ec2c596241bc6ab3bfbf56876a91d6 | 29,770 | [
-1
] |
29,771 | xml-parser.graphml | daugfernandes_lispdb/xml-parser.graphml | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://ww... | 67,094 | Common Lisp | .l | 872 | 66.511468 | 394 | 0.646492 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 5355ec126633cfba1595722c28e9e7e23336229c9db4e12f9c3353c2c129e366 | 29,771 | [
-1
] |
29,772 | file.lsp | daugfernandes_lispdb/file.lsp | ;;; cat file contents line by line
;; - filename: <self-describing>
;; - returns: file content
;; Copyright (C) 2010 David Fernandes
;; <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Gener... | 1,210 | Common Lisp | .l | 30 | 36.4 | 74 | 0.65785 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 8b1733f983c9f189add0c7c9df118e58b1356703c58269795dcf434d3d4bee6f | 29,772 | [
-1
] |
29,773 | s7-markup-parser.lsp | daugfernandes_lispdb/s7-markup-parser.lsp | ;;; s7-markup-parser
;;
;; ----------------------------------------------------------------------
;;
;; Copyright (C) 2010 David Fernandes
;; <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General ... | 28,318 | Common Lisp | .l | 534 | 47.56367 | 1,119 | 0.685655 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 057560dda47ad9f7e1941281546cf8ec7a82e41e8cbb1e4f6d41015ba2535226 | 29,773 | [
-1
] |
29,774 | s7-polinomios.lsp | daugfernandes_lispdb/s7-polinomios.lsp | ;;; s7-polinomios.lsp
;;
;; Copyright (C) 2010 David Fernandes
;; <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either vers... | 2,705 | Common Lisp | .l | 81 | 28.074074 | 78 | 0.660494 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | c9c4869243d521a682fa1f89ec612dbe2a17445cc14e9d2d9d0d4b583ed78fd7 | 29,774 | [
-1
] |
29,775 | crc.lsp | daugfernandes_lispdb/crc.lsp | ;; Copyright (C) 2010 David Fernandes
;; <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at... | 1,325 | Common Lisp | .l | 39 | 30.897436 | 90 | 0.648944 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | bd616e9b6c7a2d67d339862e207806764049e66df31e89afda2eda7a1f51de0a | 29,775 | [
-1
] |
29,776 | bin.lsp | daugfernandes_lispdb/bin.lsp | ;; Copyright (C) 2010 David Fernandes
;; c <daugfernandes@aim.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;... | 3,492 | Common Lisp | .l | 108 | 24.509259 | 93 | 0.452338 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 6aecb61c646613a7846b335adc546a85c4adc5cca261521da566ff162cd80e6c | 29,776 | [
-1
] |
29,777 | oslusiadas.txt | daugfernandes_lispdb/oslusiadas.txt | *
1
As armas e os barões assinalados,
Que da ocidental praia Lusitana,
Por mares nunca de antes navegados,
Passaram ainda além da Taprobana,
Em perigos e guerras esforçados,
Mais do que prometia a força humana,
E entre gente remota edificaram
Novo Reino, que tanto sublimaram;
2
E também as memórias glori... | 340,347 | Common Lisp | .l | 9,942 | 30.904446 | 49 | 0.775816 | daugfernandes/lispdb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 908bf194824bb8531dc099125f1eddf8751287b2a613491444efe325ca54d05a | 29,777 | [
-1
] |
29,839 | init.lisp | Momus_stumpwm_d/init.lisp | ;; This is the master init file for StumpWM.
;; Someday in the future it will house nothing but very basic config and links to other files.
(in-package :stumpwm)
;;First task is try to set the "Windows Key" as the prefix key.
;; The winkey must first be set to F20 or some such in
(set-prefix-key (kbd "C-F12"))
;;... | 430 | Common Lisp | .lisp | 8 | 52 | 94 | 0.736211 | Momus/stumpwm.d | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:22 AM (Europe/Amsterdam) | 0874930c210e4f505fc60ea17499a1e45277824f0ad69c28490571b84ed44a5a | 29,839 | [
-1
] |
29,856 | package.lisp | kiskami_llgs-engine-cl/package.lisp | ;;;; llgs-engine-cl - llgs-engine Common Lisp interface lib
;;;; Copyright (c) 2013 Kalman Kiss, Zalaegerszeg Hungary
;;;; All rights reserved.
;;;; kiskami@freemail.hu
;;;;
;;;; package.lisp
(in-package :cl-user)
(defpackage #:llgs-engine-cl
(:use #:cl #:cffi)
(:export :load-llgsengine :close-llgsengine
:ren... | 2,791 | Common Lisp | .lisp | 54 | 47.240741 | 90 | 0.799269 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | f7a415ae9ca8bde067f2a782727f4f10c08e5b0ee159470358026a1d8c5a4c22 | 29,856 | [
-1
] |
29,857 | llgs-engine-cl.lisp | kiskami_llgs-engine-cl/llgs-engine-cl.lisp | ;;;; llgs-engine-cl.lisp
(in-package #:llgs-engine-cl)
(defun load-llgsengine (debug)
"LLGS Engine DLL load"
(if (not debug)
(cffi:define-foreign-library llgs-engine
(:unix "llgs-engine.so")
(t (:default "llgs-engine")))
(cffi:define-foreign-library llgs-engine
(:unix "llgs-engine-debug.so")
(t (... | 6,977 | Common Lisp | .lisp | 149 | 44.536913 | 157 | 0.741512 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 36d490784a73eedc6eeeece91e2996e337e087a29edd72cbcdfeaaf9c44611c7 | 29,857 | [
-1
] |
29,858 | billboard.lisp | kiskami_llgs-engine-cl/billboard.lisp | ;;;; billlboard.lisp
(in-package #:llgs-engine-cl)
;LLGSENGINE_API void *r_createbillboardset();
(cffi:defcfun ("r_createbillboardset" billboardset-create) :pointer)
;LLGSENGINE_API void r_clearbillboardset(void *ptr);
(cffi:defcfun ("r_clearbillboardset" billboardset-clear) :void (ptr :pointer))
;LLGSENG... | 3,268 | Common Lisp | .lisp | 44 | 71.045455 | 141 | 0.754705 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | ccafd78fe945aaf69f7644782a6bac70bb2c14bb439b7fa4cfc34e9f4247d640 | 29,858 | [
-1
] |
29,859 | partsys.lisp | kiskami_llgs-engine-cl/partsys.lisp | ;;;; partsys.lisp
(in-package #:llgs-engine-cl)
;LLGSENGINE_API void *r_createpartsys(char *name, char *templ);
(cffi:defcfun ("r_createpartsys" partsys-create) :pointer
(name :string) (templ :string))
;LLGSENGINE_API void r_destroypartsys(void *partsysptr);
(cffi:defcfun ("r_destroypartsys" partsys-dest... | 717 | Common Lisp | .lisp | 14 | 47.928571 | 73 | 0.750361 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 548cb07ff4f15e6f56ffbf5425bf605f6cc7bbeda58f2a6a9856bff343afbb1e | 29,859 | [
-1
] |
29,860 | mesh.lisp | kiskami_llgs-engine-cl/mesh.lisp | ;;;; mesh.lisp
(in-package #:llgs-engine-cl)
;LLGSENGINE_API void *r_loadmesh(char *name, char *meshname);
(cffi:defcfun "r_loadmesh" :pointer
(name :string) (meshname :string))
(defun mesh-load (name meshname)
(r-loadmesh name meshname))
;LLGSENGINE_API void r_destroymesh(void *entityptr);
(cffi:d... | 915 | Common Lisp | .lisp | 22 | 38.136364 | 73 | 0.744292 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | bc7c60aa8ceadaf5a33197ddd5bb1719117c89d19430a522a5d99cf77a32c04e | 29,860 | [
-1
] |
29,861 | input.lisp | kiskami_llgs-engine-cl/input.lisp | ;;;; input.lisp
(in-package #:llgs-engine-cl)
; void i_init();
(cffi:defcfun "i_init" :void)
(defun input-init ()
(i-init))
; void i_shutdown();
(cffi:defcfun "i_shutdown" :void)
(defun input-shutdown ()
(i-shutdown))
; void i_captureinput();
(cffi:defcfun "i_captureinput" :void)
(defun... | 1,533 | Common Lisp | .lisp | 53 | 25.45283 | 67 | 0.661538 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | a6574b8da49c3cd32657eefa085dbcde4f501379e4b0c8143aa600f340b23b25 | 29,861 | [
-1
] |
29,862 | light.lisp | kiskami_llgs-engine-cl/light.lisp | ;;;; light.lisp
(in-package #:llgs-engine-cl)
;LLGSENGINE_API void *r_createlight(char *name);
(cffi:defcfun ("r_createlight" render-createlight) :pointer (name :string))
;LLGSENGINE_API void r_destroylight(void *lightptr);
(cffi:defcfun ("r_destroylight" render-destroylight) :void (lightptr :pointer))
;... | 1,335 | Common Lisp | .lisp | 21 | 60.238095 | 90 | 0.731481 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | a5c4847ec29da722c1bb9dd6a0d08e37fe878228e1f7db1c0351f436b2b57c37 | 29,862 | [
-1
] |
29,863 | colldet.lisp | kiskami_llgs-engine-cl/colldet.lisp | ;;;; colldet.lisp
(in-package #:llgs-engine-cl)
;LLGSENGINE_API void c_init();
(cffi:defcfun ("c_init" colldet-init) :void)
;LLGSENGINE_API void c_shutdown();
(cffi:defcfun ("c_shutdown" colldet-shutdown) :void)
;LLGSENGINE_API void c_setdebugdrawmode(int mode);
(cffi:defcfun ("c_setdebugdrawmode" col... | 2,705 | Common Lisp | .lisp | 41 | 62.780488 | 141 | 0.742021 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 371183a10eac76465fd771b06b0f4d328ca88d5174500811bee8b70a9c9d032e | 29,863 | [
-1
] |
29,864 | scenenode.lisp | kiskami_llgs-engine-cl/scenenode.lisp | ;;;; scenenode.lisp
(in-package #:llgs-engine-cl)
;LLGSENGINE_API void *r_createscenenode(char *name);
(cffi:defcfun ("r_createscenenode" render-createscenenode) :pointer
(name :string))
;LLGSENGINE_API void *r_getrootscenenode();
(cffi:defcfun ("r_getrootscenenode" render-rootscenenode) :pointer)
;LLG... | 4,930 | Common Lisp | .lisp | 80 | 58.3375 | 107 | 0.764927 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | c896de198e288eb59ddd642d8073a2d2c97d90fc61cbba42b0a9c328ed9aab7f | 29,864 | [
-1
] |
29,865 | llgs-engine-cl.asd | kiskami_llgs-engine-cl/llgs-engine-cl.asd | ;;;; llgs-engine-cl.asd
(asdf:defsystem #:llgs-engine-cl
; :serial t
:description "llgs-engine-cl is the Common Lisp interface to llgs-engine."
:author "Kalman Kiss <kiskami@freemail.hu>"
:version "0.0.1"
:license "GPL2"
:depends-on (#:cffi)
:components ((:file "package")
(:file "input" :depends-o... | 795 | Common Lisp | .asd | 19 | 34.947368 | 87 | 0.591731 | kiskami/llgs-engine-cl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | a0d91851426221d3f70734704bf8f4223947bde07e46c9c84d9d5d737c0a3bc7 | 29,865 | [
-1
] |
29,894 | lisp.lsp | minopret_welisp/lisp.lsp | ( (lambda (assoc caar cadar caddr cadr cdar evcon evlis null pairlis apply eval)
(caar '(( ((()) ()) )) )
)
'(label assoc (lambda (x a) (cond
((null a) '())
((eq (caar a) x) (car a))
('t (assoc x (cdr a))) ))) ; assoc
'(lambda (x) (car (car x))) ; caar
'(lambda (x)... | 1,714 | Common Lisp | .l | 41 | 33.414634 | 100 | 0.448503 | minopret/welisp | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | bc83d139085c87463f0d5901c3ca40379b1fb15feaa22af433041e326613d047 | 29,894 | [
-1
] |
29,895 | fold.lsp | minopret_welisp/fold.lsp | (
(lambda (foldr foldl a b) (foldl '(lambda (c d) (cons c (d))) '() '(a b)))
'(label foldr (lambda (f z u) (cond
((atom u) z)
('t (f (car u) (foldr f z (cdr u)))) )))
'(lambda (f z u) (
(label outer (lambda (f z u r) (cond
((atom u) (
(label inner (lambd... | 587 | Common Lisp | .l | 17 | 24.647059 | 78 | 0.388007 | minopret/welisp | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | fd7889e9bda426e6a0b673d3e57c2a021a51a7febea201a8588ce6016723eeda | 29,895 | [
-1
] |
29,896 | add3.lsp | minopret_welisp/add3.lsp | ( (lambda (ddcr32 decr32 incr32 noop32 iicr32 add32 cadr null add3r
rappend reverse normalize3 add3)
(add3 '(+ - 0 -) '(+ + - +)) ) ; 17 + 34 = 51 = (+ - 0 - 0)
'(lambda (x) (cond
((eq x '0) '(- +))
((eq x '-) '(- 0))
('t '(0 -)) )) ; ddcr32
'(lambda (x) (cond
... | 1,934 | Common Lisp | .l | 52 | 27.692308 | 87 | 0.382022 | minopret/welisp | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | dbccf4270bbde11860003d3e8e4f967d1c52f0b6659711ddac48099f1e8d792a | 29,896 | [
-1
] |
29,897 | smallstep.lsp | minopret_welisp/smallstep.lsp | ; An expression x may be a variable name v, that is, an identifier;
; a lambda expression ('Lambda v x), where v is a variable name and
; x is an expression;
; or a pair of expressions (x y) that represents applying the first
; to the second.
;
; An environment is a list of pairs.
;
; Each pair in an environment consis... | 8,875 | Common Lisp | .l | 184 | 34.548913 | 119 | 0.472515 | minopret/welisp | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 558e7a8e679457e6d282087df644f46880b20963b853fa065c911e11f2d8e6e5 | 29,897 | [
-1
] |
29,916 | make-exe.lisp | kiskami_firstrl/make-exe.lisp | ;;; firstrl
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later ... | 1,230 | Common Lisp | .lisp | 29 | 39.758621 | 81 | 0.731318 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | e3ca4d7bba2e7acadb0dba674fb514ac63d507c5ea70ac31e426b29f907efa39 | 29,916 | [
-1
] |
29,917 | package.lisp | kiskami_firstrl/package.lisp | ;;;; package.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later ... | 981 | Common Lisp | .lisp | 25 | 37.92 | 76 | 0.75 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 10491ce400cbd2f829de5808c81e73cc2e0c1ead22a54b168a96f69712473c25 | 29,917 | [
-1
] |
29,918 | player.lisp | kiskami_firstrl/player.lisp | ;;; player.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any la... | 9,981 | Common Lisp | .lisp | 257 | 32.758755 | 114 | 0.61656 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 7831dd22b5c500f38ed6d2d2d56e24b5a73b0db7398672284952f5d753db5d8b | 29,918 | [
-1
] |
29,919 | dungen.lisp | kiskami_firstrl/dungen.lisp | ;;;; dungen.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any l... | 9,664 | Common Lisp | .lisp | 271 | 29.808118 | 100 | 0.591935 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | ba43b1ebd59aed49d624379adf027914e95f666b67c97a59a0761fa7501cd8fb | 29,919 | [
-1
] |
29,920 | items.lisp | kiskami_firstrl/items.lisp | ;;; items.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any lat... | 2,248 | Common Lisp | .lisp | 66 | 28.181818 | 77 | 0.610037 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | f15201a9673e4ffe136737775503db848f4f64b7218df140146896db15ad3f1d | 29,920 | [
-1
] |
29,921 | data.lisp | kiskami_firstrl/data.lisp | ;;; data.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later vers... | 10,761 | Common Lisp | .lisp | 270 | 35.166667 | 352 | 0.509364 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 1142fce551141ed71dc8ea350f91df215db334cf3eaf0460cc38d4189e068379 | 29,921 | [
-1
] |
29,922 | utils.lisp | kiskami_firstrl/utils.lisp | ;;; utils.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any lat... | 3,522 | Common Lisp | .lisp | 86 | 35.488372 | 95 | 0.63466 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | e367cf187dec6b83252331456971538f8955860091ef93e419b7e7db663528ad | 29,922 | [
-1
] |
29,923 | msgwindow.lisp | kiskami_firstrl/msgwindow.lisp | ;;; msgwindow.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any... | 1,341 | Common Lisp | .lisp | 30 | 42.1 | 77 | 0.71604 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | cf1d068677be37e91f8cc1851c19f643e5cf5d256f226d88aa333affe95b503c | 29,923 | [
-1
] |
29,924 | console.lisp | kiskami_firstrl/console.lisp | ;;; console.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any l... | 6,465 | Common Lisp | .lisp | 156 | 36.49359 | 103 | 0.651653 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 30a562c065d1cd1dbf312c8fadc2809ab73e0b407ca84adc314d8560059e31fe | 29,924 | [
-1
] |
29,925 | monster.lisp | kiskami_firstrl/monster.lisp | ;;; monster.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any l... | 4,230 | Common Lisp | .lisp | 118 | 30.322034 | 95 | 0.63208 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | da57333f0bab1ed96aae682afc12e9b805416181cd1a4deee288835380047a1e | 29,925 | [
-1
] |
29,926 | common.lisp | kiskami_firstrl/common.lisp | ;;; common.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any la... | 2,805 | Common Lisp | .lisp | 57 | 46.789474 | 77 | 0.755507 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 20e2995fc7491c897740ba1c9360dffd1050124b8be5860e63bdb284a4b2e9cb | 29,926 | [
-1
] |
29,927 | firstrl.lisp | kiskami_firstrl/firstrl.lisp | ;;;; firstrl.lisp
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later ... | 12,460 | Common Lisp | .lisp | 344 | 31.909884 | 95 | 0.651663 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 3cee43b4138ac095367a898289c914f154b1613abaaab91fee5d400f1fa9bcd9 | 29,927 | [
-1
] |
29,928 | firstrl.asd | kiskami_firstrl/firstrl.asd | ;;;; firstrl.asd
;; Copyright (c) 2014 Kalman Kiss, Zalaegerszeg Hungary
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2 of the License, or
;; (at your option) any later v... | 2,191 | Common Lisp | .asd | 51 | 37.980392 | 78 | 0.648712 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | ac84a05ba1e9cad605ff8d513dba24258205d83b91af035c3dc1d87a903baaba | 29,928 | [
-1
] |
29,943 | milestones.org | kiskami_firstrl/doc/milestones.org | * firstrl milestones file
** Todos
*** Core framework
**** DONE sdl-builder integration
**** DONE main loop
**** DONE basic console input, output
**** TODO Level display
**** TODO Player stat display
**** TODO Messages display
*** Game data
**** TODO dungeon features data
**** TODO player data
**** TO... | 1,836 | Common Lisp | .l | 71 | 23.633803 | 71 | 0.641026 | kiskami/firstrl | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:30 AM (Europe/Amsterdam) | 7333b1360a2bcd4bbfb27ebca8c795745b5d4372c2910ad6af7e3bd1e3fa2747 | 29,943 | [
-1
] |
29,958 | rm.lisp | blasut_lispnix/rm.lisp | (defun main (filename)
(handler-case (progn
(delete-file filename))
(sb-int:simple-file-error (e) (print "The file doesnt exist"))))
| 157 | Common Lisp | .lisp | 4 | 32.25 | 68 | 0.620915 | blasut/lispnix | 0 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:38:38 AM (Europe/Amsterdam) | 738840cafe88f9b0f56980cc4eadb2b5a59776ddf6550938bebdd07aebb5b37a | 29,958 | [
-1
] |
29,975 | diss-counter.lisp | sonologico_diss-counter/diss-counter.lisp | ;;; A dissonant counterpoint algorithm implementation in Common Lisp
;;; Copyright (C) 2015 Raphael Santos, http://www.raphaelss.com
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU Affero General Public License as published
;;; by the Free Software Foundati... | 6,634 | Common Lisp | .lisp | 150 | 38.226667 | 80 | 0.645146 | sonologico/diss-counter | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:38:38 AM (Europe/Amsterdam) | bbf6915306caea70d2c3e83863ac241d01edb00fd5a4743816b56139a670f805 | 29,975 | [
-1
] |
29,976 | diss-counter.asd | sonologico_diss-counter/diss-counter.asd | ;;; A dissonant counterpoint algorithm implementation in Common Lisp
;;; Copyright (C) 2015 Raphael Santos, http://www.raphaelss.com
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU Affero General Public License as published
;;; by the Free Software Foundati... | 1,072 | Common Lisp | .asd | 22 | 47.181818 | 76 | 0.755725 | sonologico/diss-counter | 0 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:38:38 AM (Europe/Amsterdam) | 9043768887b92efbabbcd15430481d07ea34b64798d835dd1adfdba65aef0bdd | 29,976 | [
-1
] |
29,993 | fun.lisp | benjamin-james_lisps/fun.lisp | (defun primep (n &optional (d 2))
(or (>= d n)
(and (/= (rem n d) 0)
(primep n (+ d 1)))))
(defun factorial (n)
(if (> n 1)
(* n (factorial (- n 1)))
n))
(defun next-prime (n)
(loop for x from n when (primep x) return x))
(defmacro do-primes ((var start end) &body body)
`(do ((,var (next-... | 495 | Common Lisp | .lisp | 16 | 27.125 | 58 | 0.546218 | benjamin-james/lisps | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | cd7a70f917dd09bdefd2451ac6cd590787884e417ebb184947dfd07cd3efa625 | 29,993 | [
-1
] |
30,010 | Maze.lisp | mike325_Lisp-Maze/Maze.lisp | (require 'cl-opengl)
(require 'cl-glu)
(require 'cl-glut)
(require 'lispbuilder-sdl)
(defvar posX -0.9)
(defvar posY -0.9)
(defvar auxiliar 0.0)
(defvar opcion 0)
(defvar bandera 0)
(defvar respuesta #\0)
(defvar paredX (make-hash-table))
(defvar paredY (make-hash-table))
(defvar grabado 0)
(defvar resolver)
(defvar ... | 14,633 | Common Lisp | .lisp | 382 | 28.774869 | 87 | 0.469252 | mike325/Lisp-Maze | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | dffc9d850e2f17e4504e2a706bab5eba990fab2265128fd13d1545c9bdb497eb | 30,010 | [
-1
] |
30,027 | package.lisp | mobius-eng_mobius-num/src/package.lisp | (in-package cl-user)
;; TODO: maybe should add cl-slice?
(defpackage #:mobius.numeric
(:use #:cl
#:mobius.numeric.utils
#:criteria
#:linop
#:bicgstab
#:mobius.numeric.fsolve
#:mv
#:ode
#:mobius.numeric.crank-nicolson)
(:import-from #:cl-num-utils #:nu... | 1,840 | Common Lisp | .lisp | 79 | 18.936709 | 58 | 0.570455 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 5633974b631f9f0fe22beb6f78a526bbd1ea34f93062ec7a5782083ea835d243 | 30,027 | [
-1
] |
30,028 | crank-nicolson.lisp | mobius-eng_mobius-num/src/ode/crank-nicolson.lisp | (in-package mobius.numeric.crank-nicolson)
(defun direct-step (u0 f0 f1 h dest)
"Direct full step using Crank-Nicolson formula"
(declare (type double-float h))
(e=+! (e=*! (e+! dest f0 f1) (* 0.5d0 h)) u0))
(defvar *crank-nicolson-solver-criteria*
(make-criteria
:converged (list #'(lambda (x y)
... | 8,359 | Common Lisp | .lisp | 159 | 36.289308 | 88 | 0.504768 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 9150251a8802efa9b5ee696ef66c249d6e90eb8b4b722e767881fbf942649b6a | 30,028 | [
-1
] |
30,029 | package.lisp | mobius-eng_mobius-num/src/ode/package.lisp | (in-package cl-user)
(defpackage #:mobius.numeric.ode
(:nicknames #:numeric-ode)
(:use #:cl #:numeric-control #:optima #:numeric-fixed-point #:numeric-linear-base)
(:import-from #:mobius.utils #:%)
(:export #:ode-state #:ode-state-time #:ode-state-value #:ode-state-rate
#:ode-state-init-rate
... | 2,615 | Common Lisp | .lisp | 63 | 35.666667 | 85 | 0.533595 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 5f5a5728a82755025cd35b731b73ed3ca7866d1f1d1a435597a20bb2b5f2fda1 | 30,029 | [
-1
] |
30,030 | rk45.lisp | mobius-eng_mobius-num/src/ode/rk45.lisp | (in-package numeric-rk45)
(defclass ode-state ()
((ode-state-time
:initarg :time
:accessor ode-state-time)
(ode-state-value
:initarg :value
:accessor ode-state-value)))
(defun make-ode-state (time value)
(make-instance 'ode-state :time time :value value))
(defclass runge-kutta ()
((runge-ku... | 2,548 | Common Lisp | .lisp | 52 | 38.346154 | 114 | 0.4833 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | df59fc36793f35f8e11b086b17678aba5fd8907262bd0b820399be9a014f8f74 | 30,030 | [
-1
] |
30,031 | runge-kutta.lisp | mobius-eng_mobius-num/src/ode/runge-kutta.lisp | (in-package numeric-runge-kutta)
;; * Runge-Kutta methods
;; ** Tableau
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun make-tableau (&rest args &key a b c c*)
(cond ((null a) (error "Must provide A"))
((null b) (error "Must provide B"))
((null c) (error "Must provide C"))
... | 6,925 | Common Lisp | .lisp | 162 | 32.987654 | 93 | 0.542997 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 8db4224857b970d4afd6f9dd510b653afba0292fc066deeb8175268e7fcd77e8 | 30,031 | [
-1
] |
30,032 | ode.lisp | mobius-eng_mobius-num/src/ode/ode.lisp | (in-package mobius.numeric.ode)
;; * General functionality for ODE solution
;; ** ODE solution state
(defclass ode-state ()
((ode-state-time
:initarg :time
:accessor ode-state-time)
(ode-state-value
:initarg :value
:accessor ode-state-value)
(ode-state-rate
:initarg :rate
:accessor ode... | 14,241 | Common Lisp | .lisp | 303 | 36.029703 | 90 | 0.598875 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 6bd1c91726f6cbc86987bc137a499bda150b959630aa4a6176dda193c17f0134 | 30,032 | [
-1
] |
30,033 | ode-old.lisp | mobius-eng_mobius-num/src/ode/ode-old.lisp | (in-package mobius.numeric.ode)
(defstruct ode-state
"Current state of ODE system"
time value rate)
(defun ode-state (time value rate)
(make-ode-state :time time :value value :rate rate))
(defun duplicate-ode-state (ode-state)
(make-ode-state :time (ode-state-time ode-state)
:value (duplica... | 8,530 | Common Lisp | .lisp | 173 | 37.242775 | 87 | 0.587471 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 7be6087caa4cfe21e7503856a2a1e317d94a4bd939374912777e5fc8f28c2237 | 30,033 | [
-1
] |
30,034 | trapezoid.lisp | mobius-eng_mobius-num/src/ode/trapezoid.lisp | (in-package numeric-trapezoid)
(defclass ode-trap ()
((ode-trap-constant
:initarg :constant
:reader ode-trap-constant
:documentation
"Constant part of discretization:
n 1 n n
C = - x - - f(t , x )
2
")
(ode-trap-next-value
:initarg :next-value
:reader... | 5,524 | Common Lisp | .lisp | 132 | 33.227273 | 97 | 0.596315 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 5e0f3d7263491c18e197d0ecc87ca54b8f444035bafdf2c0bf638925d20cafc4 | 30,034 | [
-1
] |
30,035 | package.lisp | mobius-eng_mobius-num/src/linear/package.lisp | (in-package cl-user)
(defpackage #:mobius.numeric.linear-base
(:nicknames #:numeric-linear-base)
(:use #:cl #:optima #:numeric-helpers)
(:export #:vector-length-mismatch
#:vector-length-mismatch-length1
#:vector-length-mismatch-length2
#:make-double-float-vector #:make-vector #:v... | 1,419 | Common Lisp | .lisp | 37 | 29.72973 | 79 | 0.605797 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 982b6a878a54e73eb88d760aa390dd003b2e1bc02590fda640ddb3b199811bda | 30,035 | [
-1
] |
30,036 | bicg-stab.lisp | mobius-eng_mobius-num/src/linear/bicg-stab.lisp |
(in-package mobius.numeric.bicg-stab)
;; * BiCGStab method implementation
;; ** Value: state of BiCGStab algorithm
(defclass bicg-stab-value ()
((bicg-rho :initform 1.0d0 :accessor bicg-rho)
(bicg-alpha :initform 1.0d0 :accessor bicg-alpha)
(bicg-omega :initform 1.0d0 :accessor bicg-omega)
(bicg-v :initarg... | 10,284 | Common Lisp | .lisp | 273 | 30.794872 | 89 | 0.595026 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 26c37da04f5ebb7421aa21bd402ba1795176cb6cb6a0436e8904f7c9c9b41688 | 30,036 | [
-1
] |
30,037 | base.lisp | mobius-eng_mobius-num/src/linear/base.lisp | (in-package mobius.numeric.linear-base)
;; * General vector operations
;; ** Conditions
(define-condition vector-length-mismatch (error)
((vector-length-mismatch-length1 :initarg :length1
:reader vector-length-mismatch-length1)
(vector-length-mismatch-length2 :initarg :length2
... | 12,432 | Common Lisp | .lisp | 312 | 32.615385 | 89 | 0.590958 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 5697c664dbca444f91de0d10293e713a4c4b7073f37b8635bbf0f2253050d0c3 | 30,037 | [
-1
] |
30,038 | symbolic.lisp | mobius-eng_mobius-num/src/ad/symbolic.lisp | (in-package mobius.numeric.symbolic)
;; * Symbolic extension
;; ** Unary numerical operations
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun make-unary-symbolic (tag num-fun)
"Lift unary number function NUM-FUN into symbolic by adding TAG
when applied to a symbolic argument"
(lambda (x)
(... | 13,564 | Common Lisp | .lisp | 325 | 31.501538 | 91 | 0.512914 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | ce1de6b06c2deeb348d31d331bed6abc27e4d9baa293e81d979909fcd6407ca3 | 30,038 | [
-1
] |
30,039 | package.lisp | mobius-eng_mobius-num/src/ad/package.lisp | (in-package cl-user)
(defpackage #:mobius.numeric.symbolic
(:nicknames #:numeric-symbolic #:sym)
(:shadow #:+ #:- #:* #:/
#:sin #:cos #:tan #:asin #:acos #:atan
#:exp #:expt #:log #:sqrt
#:sinh #:cosh #:tanh
#:= #:< #:> #:<= #:>=
#:zerop #:plusp #:minusp)
(:... | 1,957 | Common Lisp | .lisp | 51 | 30.882353 | 75 | 0.429022 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 26b36ce417cd78dd7c6aa7fa434f3d1ac281e6d2a31e93be303faeb0f5cb472e | 30,039 | [
-1
] |
30,040 | ad.lisp | mobius-eng_mobius-num/src/ad/ad.lisp | (in-package mobius.numeric.ad)
;; * Automatic Differentiation
;; ** Some book-keeping
(defvar *e* 0
"Keeps track of what was differentiated")
;; ** Dual numbers
(defclass dual-number ()
((epsilon
:initarg :epsilon
:reader epsilon
:documentation "Book-keeping parameter")
(primal
:initarg :primal... | 17,348 | Common Lisp | .lisp | 402 | 32.363184 | 93 | 0.538658 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | c706f1fdd7c77941e1e9577c46a07a8013219a92307739903732d737351d2acc | 30,040 | [
-1
] |
30,041 | helpers.lisp | mobius-eng_mobius-num/src/base/helpers.lisp | (in-package numeric-helpers)
(defun almost-zero-p (number &optional (tolerance default-precision))
"Returns T if a number x is almost zero: |x| ~= 0"
(declare (type double-float number tolerance)
(optimize (speed 3) (debug 1) (safety 1)))
(< (abs number) tolerance))
(defun quad-extremum (a b)
"Retu... | 3,887 | Common Lisp | .lisp | 110 | 27.609091 | 69 | 0.468442 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 718b48f08b9d8177b50b3bbbf506b3dad0861e568f1df50c3f533029301c5cb1 | 30,041 | [
-1
] |
30,042 | package.lisp | mobius-eng_mobius-num/src/base/package.lisp | (in-package cl-user)
(defpackage #:mobius.numeric.constants
(:nicknames #:numeric-constants)
(:use #:cl)
(:export #:+infinity
#:-infinity
#:default-precision)
(:documentation
"Basic mathematical and physical constants"))
(defpackage #:mobius.numeric.helpers
(:nicknames #:numeric-hel... | 2,183 | Common Lisp | .lisp | 72 | 22.763889 | 69 | 0.59905 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 6283e421e5dbd3754ef5c34cb4db6ed9c3359f5535a227ad1325c672fd5dabef | 30,042 | [
-1
] |
30,043 | control.lisp | mobius-eng_mobius-num/src/base/control.lisp | (in-package numeric-control)
;; * Computation control
;; ** Control protocol
(defgeneric apply-control (control value)
(:documentation
"Apply CONTROL to a VALUE. CONTROL must return ITERATOR"))
(defgeneric init-control (control init-value)
(:documentation
"Initialize CONTROL using INIT-VALUE. Useful for sta... | 10,216 | Common Lisp | .lisp | 247 | 36.194332 | 87 | 0.70728 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 2ef1b8aeb848839b98e9c8dac7215936e82a65a6649e0f6eea1017d979f7dc1d | 30,043 | [
-1
] |
30,044 | iterator.lisp | mobius-eng_mobius-num/src/base/iterator.lisp | (in-package mobius.numeric.iterator)
(defclass iterator ()
((status :initarg :status
:accessor status
:documentation "Iterator status: :continue :finished or :failed")
(value :initarg :value
:accessor value
:documentation "Iterator value"))
(:documentation "Computation ... | 3,361 | Common Lisp | .lisp | 84 | 34.964286 | 76 | 0.704455 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 3d224aea4877b69882a0e59a5a9c59194c2561d3b9b123f9d043acb8b0891659 | 30,044 | [
-1
] |
30,045 | constants.lisp | mobius-eng_mobius-num/src/base/constants.lisp | (in-package mobius.numeric.constants)
;; (defconstant not-a-number gsl:+nan+
;; "Floating point NaN")
(defconstant +infinity
#+sbcl sb-ext:double-float-positive-infinity
#+clozure 1d++0
"Floating point +inf")
(defconstant -infinity
#+sbcl sb-ext:double-float-negative-infinity
#+clozure -1d++0
"Floating... | 656 | Common Lisp | .lisp | 18 | 34.333333 | 60 | 0.742089 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 0fb31ca6daf6fd525f6a0c29eb7cbce35782b62273bde52a325d777a451d9995 | 30,045 | [
-1
] |
30,046 | fixed-point.lisp | mobius-eng_mobius-num/src/base/fixed-point.lisp | (in-package mobius.numeric.fixed-point)
(defun iterate (control y0 &optional pre-treat)
"Iteratively apply CONTROL to iterator Y0 until it finishes"
(init-control pre-treat y0)
(let ((iterator0 (apply-control pre-treat y0)))
(init-control control iterator0)
(loop for y = iterator0 then (apply-control con... | 707 | Common Lisp | .lisp | 17 | 37.941176 | 67 | 0.736919 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 3773c4273bf8ed0f6915f387d50b63269a94afa891dec1a6a4636dfd79ac2fa7 | 30,046 | [
-1
] |
30,047 | nonlinear.lisp | mobius-eng_mobius-num/src/nonlinear/nonlinear.lisp | (in-package numeric-nonlinear)
(defclass nonlinear-value ()
((nonlinear-value-x
:initarg :x
:accessor nonlinear-value-x
:documentation
"Value x for nonlinear problem")
(nonlinear-value-f
:initarg :f
:accessor nonlinear-value-f
:documentation
"Value f(x) for nonlinear problem"))
(... | 2,957 | Common Lisp | .lisp | 61 | 45.196721 | 80 | 0.765603 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 04d91f437ceef698dd219cdf32aa6636880f28d7235d987daa06717f68e698d9 | 30,047 | [
-1
] |
30,048 | package.lisp | mobius-eng_mobius-num/src/nonlinear/package.lisp | (in-package cl-user)
(defpackage #:mobius.numeric.nonlinear
(:nicknames #:numeric-nonlinear)
(:use #:cl #:optima #:numeric-linear-base)
(:export #:nonlinear-value
#:nonlinear-value-x #:nonlinear-value-f
#:nonlinear-value-residual
#:nonlinear-value-square-residual
#:ini... | 2,130 | Common Lisp | .lisp | 63 | 26.063492 | 80 | 0.612215 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | eeb8f33f90d8024cb8ff1ed1eb4a0d87abf9f9be0a121fe8ed7995678639429a | 30,048 | [
-1
] |
30,049 | linsearch.lisp | mobius-eng_mobius-num/src/nonlinear/linsearch.lisp | (in-package numeric-linsearch)
;; * Line search algorithm
;; ** Line search state representation
(defclass linsearch-value ()
((linsearch-value-lambda1
:initarg :lambda1
:type double-float
:accessor linsearch-value-lambda1
:documentation "Last lambda approximation")
(linsearch-value-lambda2
:... | 7,265 | Common Lisp | .lisp | 198 | 28.040404 | 77 | 0.612262 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 6478e035758659b85e1d1ee4efc50c4169e50278b1f56e9afa7d07380f89311f | 30,049 | [
-1
] |
30,050 | newton.lisp | mobius-eng_mobius-num/src/nonlinear/newton.lisp | (in-package #:numeric-newton)
;; * Newton's method
;; ** Value representation
(defclass newton-value ()
((newton-value-approximation
:initarg :approximation
:reader newton-value-approximation
:type nonlinear-value
:documentation
"Representation of the current approximation: a pair of (X F)
where ... | 6,432 | Common Lisp | .lisp | 157 | 32.738854 | 92 | 0.631916 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 3b3b55edb82518cd81ac52822b79f2c4e9cb5f66295a820ef1f672bee5cd60ca | 30,050 | [
-1
] |
30,051 | package.lisp | mobius-eng_mobius-num/src/quadrature/package.lisp | (in-package cl-user)
(defpackage #:mobius-num.fsolve
(:use #:cl #:mobius-num.newton-raphson #:mobius-num.linear-operations))
(defpackage #:mobius-num
(:use #:cl))
| 170 | Common Lisp | .lisp | 5 | 31.6 | 73 | 0.716049 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | ee605b73893e6847f6831550a4ed3664c2f35f5c197c4bf5d01547affc752e50 | 30,051 | [
-1
] |
30,052 | symbolic.lisp | mobius-eng_mobius-num/tests/symbolic.lisp | (in-package num-tests-symbolic)
(def-suite symbolic-tests)
(in-suite symbolic-tests)
(test test-symbolic-functions
"Tests the application of common functions to symbolic arguments"
(is (equalp (sin 'x) '(:sin x)))
(is (equalp (cos 'x) '(:cos x)))
(is (equalp (tan 'x) '(:tan x)))
(is (equalp (log 'x 10) '(:... | 2,205 | Common Lisp | .lisp | 63 | 28.968254 | 67 | 0.509142 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | bd7822b525856b6012bc64037e57ef2e16af175ce715c1d56558bf5fe689692e | 30,052 | [
-1
] |
30,053 | nonlinear.lisp | mobius-eng_mobius-num/tests/nonlinear.lisp | (in-package mobius.numeric.tests.nonlinear)
(def-suite nonlinear-suite)
(in-suite nonlinear-suite)
(test nonlinear-linsearch
"Line search for equation
1/3
x = 0
starting from x = 1"
(let ((g (lambda (x)
(let ((y (* 0.5d0 (expt (expt (- 1.0d0 (* 3.0d0 x)) 2)
... | 9,441 | Common Lisp | .lisp | 195 | 38.061538 | 117 | 0.457537 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 0082cda5c62491d006611043a4ac867c58d40a77666154c0e32d66db62eab7c3 | 30,053 | [
-1
] |
30,054 | package.lisp | mobius-eng_mobius-num/tests/package.lisp | (in-package cl-user)
(defpackage #:mobius.numeric.tests.symbolic
(:nicknames #:num-tests-symbolic)
(:use #:cl #:fiveam #:numeric-symbolic #:numeric-helpers)
(:shadowing-import-from
#:numeric-symbolic
#:+ #:- #:* #:/
#:= #:< #:> #:<= #:>=
#:zerop #:plusp #:minusp
#:sin #:cos #:tan #:asin #:acos #:a... | 1,944 | Common Lisp | .lisp | 53 | 32.773585 | 84 | 0.616693 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | fe577c4ff4ecacb5a1dce428c5a5cb8d4ee022864d02613628d12e1e80409789 | 30,054 | [
-1
] |
30,055 | ad.lisp | mobius-eng_mobius-num/tests/ad.lisp | (in-package num-tests-ad)
(def-suite ad-tests
:description "Test suite for AD module")
(in-suite ad-tests)
(test test-diff-scalar-function
"Tests the derivative of the scalar function"
(flet ((scalar-f (x)
(+ (* x (sin (expt x 2))) (* 3 (exp x)) (tan x)))
(d-scalar-f (x)
(+ (si... | 3,534 | Common Lisp | .lisp | 93 | 26.483871 | 68 | 0.414577 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 1ea011bf13ea85c1b428c09fc847efe10740f233e624476808524cc6207544ab | 30,055 | [
-1
] |
30,056 | ode.lisp | mobius-eng_mobius-num/tests/ode.lisp | (in-package num-tests-ode)
(def-suite ode-tests)
(in-suite ode-tests)
(test ode-rk45ck
"Solve ODE
D[y] (t) = - y(t)
using Embedded Runge-Kutta-45 method (Cash-Karp)
for t <- (0, 1)"
(let (time
ylist
(time-list (loop for i from 1 upto 10 collect (* i 0.1d0)))
(rk45ck (runge-kutta rk45c... | 2,520 | Common Lisp | .lisp | 59 | 29.898305 | 89 | 0.49145 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 0aafa37e1805c8de9d41056e2c0b74bdae947a4e7d238986ec2d8aa9cf03f62a | 30,056 | [
-1
] |
30,057 | base.lisp | mobius-eng_mobius-num/tests/base.lisp | (in-package mobius.numeric.tests.base)
(def-suite base-suite
:description "MOBIUS-NUM base functionality")
(in-suite base-suite)
(test utils
"Tests constants from MOBIUS.NUMERIC.CONSTANTS"
(is (numberp +infinity))
(is (> +infinity most-positive-double-float))
(is (num= 0.0d0 (/ +infinity)))
(is (number... | 1,402 | Common Lisp | .lisp | 39 | 29.179487 | 66 | 0.618625 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 3553dd1430e40e9947fd71959fa345d1c05e6680e3b19e58d08123c5c91c60fa | 30,057 | [
-1
] |
30,058 | linear.lisp | mobius-eng_mobius-num/tests/linear.lisp | (in-package mobius.numeric.tests.linear)
(def-suite linear-suite
:description "Testing all the functions from LINEAR modules")
(in-suite linear-suite)
(test linear-bicg
(let ((size 100))
(let ((A (make-array (list size size) :element-type 'double-float))
(b (make-vector size 'double-float))
... | 10,581 | Common Lisp | .lisp | 209 | 38.578947 | 89 | 0.47223 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 82b11e4b614f70a2fce8c08a3871ef1db1959b774f5404beab36a66b498235cb | 30,058 | [
-1
] |
30,059 | mobius-num.asd | mobius-eng_mobius-num/mobius-num.asd | (asdf:defsystem #:mobius-num
:serial t
:description "Some numerical algorithms"
:author "Alexey Cherkaev <Alexey.Cherkaev@gmail.com>"
:license "LGPLv.3"
:version "0.0.1"
:depends-on (#:mobius-utils #:alexandria #:optima #:closer-mop)
:components ((:module
"src"
:serial t
... | 2,173 | Common Lisp | .asd | 47 | 17.489362 | 66 | 0.268109 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 9de98fa790a0b46b4e128665540a38694e83d2dfa4c25f3c91dbf8d621c223f1 | 30,059 | [
-1
] |
30,060 | mobius-num-tests.asd | mobius-eng_mobius-num/mobius-num-tests.asd | (asdf:defsystem #:mobius-num-tests
:serial t
:description "Test for MOBIUS-NUM system"
:author "Alexey Cherkaev <Alexey.Cherkaev@gmail.com>"
:license "LGPLv.3"
:version "0.0.1"
:depends-on (#:mobius-utils #:alexandria #:optima #:fiveam
#:mobius-num #:cl-num-utils)
:components... | 661 | Common Lisp | .asd | 17 | 23.941176 | 60 | 0.451863 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 6411e39fa978bfd4a573eb14617bd981995efe301fc718b59a4cca11c243042a | 30,060 | [
-1
] |
30,094 | crank-nicolson.org | mobius-eng_mobius-num/doc/crank-nicolson.org | #+TITLE: Generalised Crank-Nicolson method
* Simple Crank-Nicolson method to solve ODE
ODE in question is
\[
M\cdot\frac{du}{dt} = S\cdot u + f(u)
\]
where $M$ and $S$ are mass and stiffness (linear) operators
respectively.
Crank-Nicolson (CN)discretization:
\[
\left(\frac{1}{\Delta t}M-\frac{1}{2}S\right)u^{n+1}=
\l... | 11,892 | Common Lisp | .l | 265 | 43.113208 | 90 | 0.732104 | mobius-eng/mobius-num | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 94702606e34c9e2aa77dcbbe6e4e8d63d2efd368d921e7bc4f221b4bfdbaf06a | 30,094 | [
-1
] |
30,109 | package.lisp | mobius-eng_mobius-utils/src/package.lisp | (in-package cl-user)
(defpackage :mobius.utils
(:use #:cl
#:alexandria
#:optima
#:optima.core
#:optima.extra)
(:export :fn
:abbrev
:mvbind
:dsbind
:with-vector-items
:let1
:if-aref
:destructuring-array
... | 2,754 | Common Lisp | .lisp | 119 | 12.831933 | 49 | 0.441993 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | c759ce48e42b8818e6fe809338fdce186f7d6d6daffbf0dbd9e0f27edfecd316 | 30,109 | [
-1
] |
30,110 | alist.lisp | mobius-eng_mobius-utils/src/alist.lisp | (defun aget (alist key)
(if-let (p (assoc key alist))
(values (cdr p) T)
(values nil nil)))
(defun (setf aget) (new-value alist key)
(if-let (p (assoc key alist))
(setf (cdr p) new-value)
(progn
(setf alist (cons (cons key new-value) alist))
new-value)))
(defun mapalist (fun alist &res... | 819 | Common Lisp | .lisp | 23 | 24.130435 | 68 | 0.484237 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 29c88ac2ecb3409017bfa38a87b0499da9dcbd8b349b0aaded4b9c8684401076 | 30,110 | [
-1
] |
30,111 | transducers.lisp | mobius-eng_mobius-utils/src/transducers.lisp | ;;; Clojure's transducers
;;; FOLDED : class representing a folded value
;;; FOLD : Generic FOLD over collections.
;;; TRANSDUCE : transduce and FOLD the items of the collection
;;; LAST-ITEM : selects the last item of the collection (as determined
;;; by FOLD for this collection)
;;; FMAP : MAP transducer ... | 5,245 | Common Lisp | .lisp | 146 | 28.910959 | 110 | 0.60532 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 385ff9d0b6204490febe6eeaceb99379c86bb4faf8745a6b354d168e6a53f328 | 30,111 | [
-1
] |
30,112 | keyindex.lisp | mobius-eng_mobius-utils/src/keyindex.lisp | (in-package cl-user)
(defpackage #:keyindex
(:use #:cl
#:alexandria
#:mobius.utils)
(:export #:make-indexed-keys
#:key-index
#:index-key))
(in-package keyindex)
(defclass indexed-keys ()
((keys :initarg :keys :reader ik-keys)
(indices :initarg :indices :reader ik-indice... | 1,040 | Common Lisp | .lisp | 26 | 33.384615 | 84 | 0.632572 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | b57cb13b972cfb382bfe8d97f588d14bbf334c8275fe3bb43f8d5273262155c0 | 30,112 | [
-1
] |
30,113 | utils.lisp | mobius-eng_mobius-utils/src/utils.lisp | ;;;; -*- Mode: Lisp; -*-
;;; General utilities package
;;; FN : from OnLisp - function constructor
;;; combines a number of function in different ways
;;; For example: (FN (LIST (COMPOSE 1+ (LAMBDA (X) (* X 2))) 1-))
;;; will build the function that constructs the list [(2x+1), (x-1)],
;;; where x i... | 12,684 | Common Lisp | .lisp | 292 | 34.020548 | 110 | 0.55804 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 5be2d061242e9c29ba26959fe30a9dfe39b0f77484df802c394224f08d4faffa | 30,113 | [
-1
] |
30,114 | list-utils.lisp | mobius-eng_mobius-utils/src/list-utils.lisp | ;;; Extra list utilities
;;; SPLIT-TO-CHUNKS : split list to parts of specified length and with
;;; spesified step
;;; INTERLEAVE : interleaves two or more lists
;;; FREQUENCIES : computes alist of each item frequences in original
;;; list
;;; LAST1 : depricated
;;; SINGLE : OnLisp - Che... | 7,100 | Common Lisp | .lisp | 186 | 33.365591 | 73 | 0.615955 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 59351ee4188d0bd55ddd0f6a54b2e4ccf2be7c5115e1ca9979b324db2f23ee48 | 30,114 | [
-1
] |
30,115 | generator.lisp | mobius-eng_mobius-utils/src/generator.lisp | ;;; GENERATOR is similar to LAZYSEQ, but it
;;; does not keep the whole sequence of values,
;;; instead it produces values one by one
;;; This is a persisten implementation of GENERATOR
;;;
;;; GENERATOR : representation
;;; GENERATOR-SEED : current value of generator
;;; ITERATION-GENERATOR : generator producing x, f(... | 2,110 | Common Lisp | .lisp | 49 | 36.857143 | 78 | 0.655794 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 9b62371386e028c4414f0082fdf3c5610485a8bef1cb656e74ba2886fcb04d29 | 30,115 | [
-1
] |
30,116 | lazyseq.lisp | mobius-eng_mobius-utils/src/lazyseq.lisp | ;;; Effectively, STREAMs
;;; but CL reserves STREAM to use with I/O
;;; EMPTY-LAZYSEQ : empty lazy sequence
;;; LAZYSEQ-EMPTY?
;;; LAZYSEQ-CONS, LAZYSEQ-CAR, LAZYSEQ-CDR : constructor and selectors
;;; LIST->LAZYSEQ, LAZYSEQ->LIST : converters from/to list
;;; LAZYSEQ : easy constructor
;;; LAZYSEQ-ITERATE : lazyli con... | 2,326 | Common Lisp | .lisp | 56 | 37.410714 | 81 | 0.671403 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 2f07789014e83c13f30325f148da059a68fb95df8e28270a0ac730b03f4132fa | 30,116 | [
-1
] |
30,117 | plist.lisp | mobius-eng_mobius-utils/src/plist.lisp | ;;; Expand PLIST structure
;;; MAPPLIST : MAP over PLIST, treating Key and Value as one entity
;;; MAPPL : Simialar to MAPC - map for side effects
;;; PLIST-KEYS : extracts keys of the plist
;;; PLIST-VALUES : extracts values of the plist
;;; KEYS-ARE-SYMBOLS : check if every even entry is a symbol
;;; PLISTP : checks ... | 2,524 | Common Lisp | .lisp | 65 | 33.569231 | 74 | 0.658228 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | b943dd04c833671cd92ad6a7893831bb22d8c97154b4ee0a097bd8f3a3af1b51 | 30,117 | [
-1
] |
30,118 | mobius-utils.asd | mobius-eng_mobius-utils/mobius-utils.asd | (asdf:defsystem #:mobius-utils
:serial t
:description "Utility functions and extensions"
:author "Alexey Cherkaev <Alexey.Cherkaev@gmail.com>"
:license "LGPLv3"
:version "0.1.0"
:depends-on (:alexandria :optima)
:components ((:module
"src"
:serial t
:compone... | 635 | Common Lisp | .asd | 17 | 22.411765 | 55 | 0.450567 | mobius-eng/mobius-utils | 0 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | b97c100d985082b23810a3da761c4937115afcb9e4ee4b76565d7477b5053111 | 30,118 | [
-1
] |
30,144 | threading-macros.lisp | horellana_cl-threading-macros/src/threading-macros.lisp | (in-package :cl-user)
(defpackage threading-macros
(:use :cl)
(:export :->)
(:export :->>)
(:export :-<>))
(in-package :threading-macros)
(defun deep-search (thing list)
(cond
((null list) nil)
((listp (car list)) (or (deep-search thing (car list))
(deep-search thing (cdr list))))
((equal ... | 1,081 | Common Lisp | .lisp | 33 | 29.151515 | 83 | 0.573755 | horellana/cl-threading-macros | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | e576ff41092c4d0d18ad2c20ee0e1c1c038f38271a8e25dfa387562ba7484aca | 30,144 | [
-1
] |
30,145 | threading-macros.lisp | horellana_cl-threading-macros/t/threading-macros.lisp | (in-package :cl-user)
(defpackage threading-macros-test
(:use :cl
:threading-macros
:prove))
(in-package :threading-macros-test)
;; NOTE: To run this test file, execute `(asdf:test-system :threading-macros)' in your Lisp.
(plan 2)
(is (-> 5 (+ 2) (+ 3) (+ 4))
14)
(is (-<> 1 1+)
(-<> 1 (1+ <>)))
... | 439 | Common Lisp | .lisp | 18 | 21.444444 | 92 | 0.527845 | horellana/cl-threading-macros | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 72c9349d6914f82d8b0d027a8eb54e0b3bdd8c30439ab454e2de0b8b02fa251d | 30,145 | [
-1
] |
30,146 | threading-macros.asd | horellana_cl-threading-macros/threading-macros.asd | #|
This file is a part of threading-macros project.
Copyright (c) 2014 Hector Orellana (hofm92@gmail.com)
|#
#|
Author: Hector Orellana (hofm92@gmail.com)
|#
(in-package :cl-user)
(defpackage threading-macros-asd
(:use :cl :asdf))
(in-package :threading-macros-asd)
(defsystem threading-macros
:version "0.1... | 1,123 | Common Lisp | .asd | 33 | 24.818182 | 74 | 0.567617 | horellana/cl-threading-macros | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | e609dee75c76aa83f2269a4e6a32aa578a5959c64fb91a261f71bf80204c3f7c | 30,146 | [
-1
] |
30,147 | threading-macros-test.asd | horellana_cl-threading-macros/threading-macros-test.asd | #|
This file is a part of threading-macros project.
Copyright (c) 2014 Hector Orellana (hofm92@gmail.com)
|#
(in-package :cl-user)
(defpackage threading-macros-test-asd
(:use :cl :asdf))
(in-package :threading-macros-test-asd)
(defsystem threading-macros-test
:author "Hector Orellana"
:license "GPL3"
:dep... | 676 | Common Lisp | .asd | 20 | 27.4 | 80 | 0.630934 | horellana/cl-threading-macros | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 9cb6fe22ccb811a56d4387e8c69b9b93cfe9d6dd1d754eddbee1e44d5e8710aa | 30,147 | [
-1
] |
30,165 | test-decode.lisp | ivankocienski_xpng/test/test-decode.lisp |
#|
This is another way of testing the decoder for various types of
file format
To run
; [load xpng first if it is not already in asdf load path]
(load "test-decode")
(test-decode:run)
|#
(defpackage :test-decode
(:use :cl :xpng))
(in-package :test-decode)
(defun test-load-channels (from should-have-channe... | 1,432 | Common Lisp | .lisp | 41 | 30.902439 | 86 | 0.680617 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | a7620f791064f9c58500aaedd8e678050b0389f1bf9971bffa06e2b132bfff3c | 30,165 | [
-1
] |
30,166 | test.lisp | ivankocienski_xpng/test/test.lisp | (defpackage #:xpng-test
(:use #:common-lisp #:lisp-unit #:xpng)
(:export #:*pngsuite-pathname*))
(in-package #:xpng-test)
;; ASDF:SYSTEM-RELATIVE-PATHNAME only exists in very recent versions
;; of ASDF, so we'll do it this way.
(defparameter *pngsuite-pathname*
#+asdf (merge-pathnames "PngSuite/"
(truenam... | 3,987 | Common Lisp | .lisp | 110 | 31.445455 | 77 | 0.626328 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | af987fc84bb5301f3b5b8237c688d7ce13dffe85a1fc075fc90216d997fd943c | 30,166 | [
-1
] |
30,167 | gl-demo.lisp | ivankocienski_xpng/demo/gl-demo.lisp | (in-package :cl-user)
(defpackage :xpng-gl-demo
(:use :cl :cl-opengl :xpng :xpng-gl :cl-glfw3)
(:export :demo))
(in-package :xpng-gl-demo)
(defparameter *txt-grass* nil)
(defparameter *txt-balls* nil)
(defparameter *balls* nil)
(defstruct ball
(xpos 0)
(ypos 0)
(yinc 0)
(texture nil))
(defun render ()
... | 3,611 | Common Lisp | .lisp | 98 | 31.785714 | 78 | 0.626301 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 05c024f5faaa0c0e620b95f770b1a6788423898d774ab869199d9d3266ed178c | 30,167 | [
-1
] |
30,168 | gl.lisp | ivankocienski_xpng/src/gl.lisp | (in-package :cl-user)
(defpackage :xpng-gl
(:use :cl :cl-opengl :xpng)
(:export :load-file-to-texture))
(in-package :xpng-gl)
(defun convert-to-rgb (image)
(let ((it (image-type image)))
(if (eq it :rgb)
image
;; conversion must happen
(let* ((pixel-count (* (image-width image) (image-height image)))
... | 4,220 | Common Lisp | .lisp | 103 | 35.009709 | 82 | 0.612073 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | acbc5ebfb34b92e54347d815109616d710869b9577adf853e535e646b5e26559 | 30,168 | [
-1
] |
30,169 | package.lisp | ivankocienski_xpng/src/package.lisp | ;;;; -*- Mode: Lisp; -*-
(defpackage #:xpng
(:documentation "Read and write PNG (Portable Network Graphics) files.")
(:use #:common-lisp #:cffi)
(:shadow #:make-shareable-byte-vector
#+(or allegro clisp) #:with-pointer-to-vector-data)
(:export #:image
#:image-type
#:image-width
#:image-heig... | 472 | Common Lisp | .lisp | 18 | 21.444444 | 74 | 0.628959 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | e92580a6e8ef4b7467731549ea19bf3c2df2c42c5692dcdb50c375c65cd0c9e2 | 30,169 | [
-1
] |
30,170 | image.lisp | ivankocienski_xpng/src/image.lisp | (in-package #:xpng)
(defstruct color
(red 0)
(green 0)
(blue 0)
(alpha 0))
(defstruct image
type ; identifies type for user
width ; pixels
height ; pixels
;;depth ; 8 or 16 bit
palette ; [(RGBA) (RGBA) ...]
pixels)
(defun image-pixel-size (image)
"Number of bytes in a pixel... | 550 | Common Lisp | .lisp | 22 | 20.818182 | 53 | 0.54023 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | a6219aa9f4e1c136b84db2855c215c55f8d9b935fc88174c4b368de26f9da075 | 30,170 | [
-1
] |
30,171 | decode.lisp | ivankocienski_xpng/src/decode.lisp |
(in-package :xpng)
(defun read-image-header (png info image)
(with-foreign-pointer (width (foreign-type-size :uint32))
(with-foreign-pointer (height (foreign-type-size :uint32))
(with-foreign-pointer (bit-depth (foreign-type-size :int))
(with-foreign-pointer (color-type (foreign-... | 2,992 | Common Lisp | .lisp | 78 | 32.141026 | 72 | 0.634068 | ivankocienski/xpng | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:38:46 AM (Europe/Amsterdam) | 43a6726253131dc1073444b7b3321d90454d94ad13d62c679172e05cd774ed13 | 30,171 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.