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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,735 | protocol.lisp | open-rsx_rsbag-cl/src/rsb/protocol.lisp | ;;;; protocol.lisp --- Protocol functions used in the rsb module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb)
;;; Connection setup protocol
(defgeneric events->bag (source dest
&rest args
... | 7,860 | Common Lisp | .lisp | 162 | 38.777778 | 82 | 0.672236 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | ca2617f3c24f5223659298b677ab4a291c40391508d6d5b4a8efa360710ffc58 | 37,735 | [
-1
] |
37,736 | bag-connection.lisp | open-rsx_rsbag-cl/src/rsb/bag-connection.lisp | ;;;; bag-connection.lisp --- A class for bag <-> RSB connections.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb)
;;; `composite-connection-mixin' class
(defclass composite-connection-mixin ()
((connections :initarg :conn... | 4,921 | Common Lisp | .lisp | 97 | 39.051546 | 80 | 0.617928 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 534430245b451b7b34572c988a628294b72272003d0ab2fa7ff179215426a71d | 37,736 | [
-1
] |
37,737 | conditions.lisp | open-rsx_rsbag-cl/src/rsb/conditions.lisp | ;;;; conditions.lisp --- Conditions used in the rsb module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb)
(define-condition connection-condition (rsbag-condition)
((connection :initarg :connection
:reader... | 1,047 | Common Lisp | .lisp | 26 | 35.038462 | 76 | 0.708251 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 77d5d65572d2eed0f3f2989213d6d2472f2ef08ae572390e2bc2ab720548111d | 37,737 | [
-1
] |
37,738 | macros.lisp | open-rsx_rsbag-cl/src/rsb/macros.lisp | ;;;; macros.lisp --- Macros provided by the rsb module.
;;;;
;;;; Copyright (C) 2012, 2013 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb)
(defmacro with-open-connection ((var connection-form) &body body)
"Execute BODY with VAR bound to the connection obje... | 2,379 | Common Lisp | .lisp | 55 | 26.945455 | 70 | 0.50431 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 2f5e4a9f186292c5b32512104d5b67b15b90cf4a94e45251bde2b01e936ef79b | 37,738 | [
-1
] |
37,739 | construction.lisp | open-rsx_rsbag-cl/src/rsb/construction.lisp | ;;;; construction.lisp --- Construction of channel <-> events connections.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb)
;;; RSB events -> bag
(defmethod events->bag ((source string)
(dest bag)
... | 3,764 | Common Lisp | .lisp | 82 | 27.219512 | 74 | 0.450831 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | cb49f1e91348c94ba01f1796a9c1338517fc252199865dfaf42b44b3467dc544 | 37,739 | [
-1
] |
37,740 | package.lisp | open-rsx_rsbag-cl/src/rsb/replay/package.lisp | ;;;; package.lisp --- Package definition for the rsb.replay module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:defpackage #:rsbag.rsb.replay
(:use
#:cl
#:alexandria
#:split-sequence
#:let-plus
#:iterate
#:more-conditions
... | 3,008 | Common Lisp | .lisp | 122 | 20.852459 | 67 | 0.696586 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 86a27e41da957d5d59e2ce79e05463a69d627b3ddbb1506e480d0c65b743fead | 37,740 | [
-1
] |
37,741 | fixed-rate.lisp | open-rsx_rsbag-cl/src/rsb/replay/fixed-rate.lisp | ;;;; fixed-rate.lisp --- A strategy for replaying events at a fixed rate.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; `fixed-rate' replay strategy class
(defclass fixed-rate (error-policy-mixin
... | 2,783 | Common Lisp | .lisp | 58 | 35.37931 | 73 | 0.579956 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 8ea71fded000bb20525034f17120c4950d49eb2b49c531150bbed24d8b2bb254 | 37,741 | [
-1
] |
37,742 | util.lisp | open-rsx_rsbag-cl/src/rsb/replay/util.lisp | ;;;; util.lisp --- Utilities used in the rsb.replay module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; Class `informer-inject'
(defclass informer-injector (channel-items)
((informer :initarg :informer
... | 2,214 | Common Lisp | .lisp | 52 | 33.75 | 74 | 0.625174 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | e36ce223b36b296877fd8240f70ce67e5c179de56422222caa3b25df2e61ef3e | 37,742 | [
-1
] |
37,743 | protocol.lisp | open-rsx_rsbag-cl/src/rsb/replay/protocol.lisp | ;;;; protocol.lisp --- Protocol functions of the rsb.replay module.
;;;;
;;;; Copyright (C) 2013, 2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; Replay protocol
(defgeneric replay (connection strategy &key progress)
(:documentation
"Re... | 6,967 | Common Lisp | .lisp | 153 | 37.581699 | 79 | 0.671981 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | e564722e951897cc741cb06eaecd3ee8ae75d89e9cf315691708b467bc2769f8 | 37,743 | [
-1
] |
37,744 | types.lisp | open-rsx_rsbag-cl/src/rsb/replay/types.lisp | ;;;; types.lisp --- types used in the rsb.replay module.
;;;;
;;;; Copyright (C) 2012-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; Bounds specifications
(deftype range-boundary/timestamp ()
"Specification of a boundary of a temporal ran... | 2,067 | Common Lisp | .lisp | 51 | 36.54902 | 74 | 0.750125 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | b1def51900e00127fdaa0084f7ea4c016fa1410697de64f48ed795a6691313f4 | 37,744 | [
-1
] |
37,745 | conditions.lisp | open-rsx_rsbag-cl/src/rsb/replay/conditions.lisp | ;;;; conditions.lisp --- Conditions used in the rsb.replay module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
(define-condition replay-error (connection-condition
chainable-conditi... | 2,338 | Common Lisp | .lisp | 55 | 32.654545 | 71 | 0.6086 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 223e490c70e0bfc53a9c796febbd5bb740046601bc1951a243405e564ca22c81 | 37,745 | [
-1
] |
37,746 | remote-controlled.lisp | open-rsx_rsbag-cl/src/rsb/replay/remote-controlled.lisp | ;;;; remote-controlled.lisp --- Strategy for RPC-controlled replay.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; Command queue protocol
(defgeneric enqueue (strategy command)
(:documentation
"Queue COMMAN... | 5,387 | Common Lisp | .lisp | 111 | 37.441441 | 116 | 0.62438 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 8b8489fe001e0520435da14b3e24e9af13201c623229119ffe152e2798b460f1 | 37,746 | [
-1
] |
37,747 | recorded-timing.lisp | open-rsx_rsbag-cl/src/rsb/replay/recorded-timing.lisp | ;;;; recorded-timing.lisp --- A strategy for replaying events with the recorded timing.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; `recorded-timing' replay strategy class
(defclass recorded-timing (error-pol... | 1,928 | Common Lisp | .lisp | 40 | 37.65 | 87 | 0.646965 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | bacac97cd98653516bad804853a15dc28585e9cdb6034a12be520901081a3a9c | 37,747 | [
-1
] |
37,748 | as-fast-as-possible.lisp | open-rsx_rsbag-cl/src/rsb/replay/as-fast-as-possible.lisp | ;;;; as-fast-as-possible.lisp --- A strategy for replaying events as fast as possible.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; `as-fast-as-possible' replay strategy class
(defclass as-fast-as-possible (er... | 892 | Common Lisp | .lisp | 20 | 36.15 | 86 | 0.652826 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 44f381dbdd077bd51dec68fc54b52356f86d6b3b8fa35540c59660f78ae71fe7 | 37,748 | [
-1
] |
37,749 | construction.lisp | open-rsx_rsbag-cl/src/rsb/replay/construction.lisp | ;;;; construction.lisp --- Construction of channel <-> events replay connections.
;;;;
;;;; Copyright (C) 2012-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; Multiple bag sources
;;; Relies on string-specialized method.
(defmethod bag->even... | 6,224 | Common Lisp | .lisp | 132 | 36.522727 | 82 | 0.569737 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | b3d3cfab51fc27e183e32030b987fb2c379aa521990ca3bd8c06a458aebb6910 | 37,749 | [
-1
] |
37,750 | bag-connections.lisp | open-rsx_rsbag-cl/src/rsb/replay/bag-connections.lisp | ;;;; bag-connections.lisp --- Classes for replay bag connections.
;;;;
;;;; Copyright (C) 2012-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.replay)
;;; `replay-connection-mixin' class
(defclass replay-connection-mixin ()
((strategy :initarg :strat... | 1,550 | Common Lisp | .lisp | 37 | 34.918919 | 75 | 0.672425 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 236475bd0d576762ea4682a80d2d919b1687ab356b15211262b2fb64d069dd0d | 37,750 | [
-1
] |
37,751 | package.lisp | open-rsx_rsbag-cl/src/rsb/recording/package.lisp | ;;;; package.lisp --- Package definition for the rsb.recording module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:defpackage #:rsbag.rsb.recording
(:use
#:cl
#:alexandria
#:let-plus
#:more-conditions
#:rsbag
#:rsbag.rsb)
... | 817 | Common Lisp | .lisp | 33 | 21.212121 | 70 | 0.700258 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | f6e00f006fbcb964e70e5beec505f926d128a41f9812107ad3552cfa28191229 | 37,751 | [
-1
] |
37,752 | protocol.lisp | open-rsx_rsbag-cl/src/rsb/recording/protocol.lisp | ;;;; protocol.lisp --- Protocol functions used in the rsb.recording module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.recording)
;;; Processing protocol
(defgeneric process-event (connection timestamp event)
(:docume... | 3,990 | Common Lisp | .lisp | 87 | 38.528736 | 79 | 0.68787 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 41138f96ea8ced488615917a7684b508732db924e19876267546107e5483dc0d | 37,752 | [
-1
] |
37,753 | channel-connections.lisp | open-rsx_rsbag-cl/src/rsb/recording/channel-connections.lisp | ;;;; channel-connections.lisp --- A class for recording channel connections.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.recording)
(defmethod process-event ((connection recording-bag-connection)
... | 3,641 | Common Lisp | .lisp | 70 | 43.457143 | 83 | 0.668541 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 3e5d6cbda34ed01d9366ccec1878affd89423ecb76f3b5a4ebc7c8d5bdb6352e | 37,753 | [
-1
] |
37,754 | conditions.lisp | open-rsx_rsbag-cl/src/rsb/recording/conditions.lisp | ;;;; conditions.lisp --- Conditions used in the rsb.recording module.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.recording)
(define-condition recording-error (connection-condition
chain... | 1,310 | Common Lisp | .lisp | 32 | 31.78125 | 71 | 0.618039 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 9dbe4fd20a55831765b29e81a849e89c29fc083cc467864a5c1f79c1b62d39c1 | 37,754 | [
-1
] |
37,755 | channel-strategies.lisp | open-rsx_rsbag-cl/src/rsb/recording/channel-strategies.lisp | ;;;; channel-strategies.lisp --- Strategy classes for allocating channels.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.recording)
;;; `ensure-channel-mixin'
(defclass ensure-channel-mixin ()
()
(:documentation
"Ad... | 7,745 | Common Lisp | .lisp | 154 | 37.863636 | 81 | 0.587247 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 6bf994e32b394cb5c112eb6f126c659c9c732d5bfa46c19e4a12f81b850a0b27 | 37,755 | [
-1
] |
37,756 | construction.lisp | open-rsx_rsbag-cl/src/rsb/recording/construction.lisp | ;;;; construction.lisp --- Construction of channel <-> events recording connections.
;;;;
;;;; Copyright (C) 2011-2017 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:in-package #:rsbag.rsb.recording)
;;; Recording with RSB listener source
(defmethod events->bag ((source rsb:liste... | 3,523 | Common Lisp | .lisp | 73 | 29.09589 | 88 | 0.459483 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | aa5f0031bfe1e7e1dcbdd2afc0c826c416060994d4605c37e681338d5284659f | 37,756 | [
-1
] |
37,757 | package.lisp | open-rsx_rsbag-cl/compat/0.5/src/transform/package.lisp | ;;; package.lisp --- Package definition for the transform module.
;;
;; Copyright (C) 2011-2018 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 1,423 | Common Lisp | .lisp | 46 | 28.543478 | 70 | 0.740146 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 26271985857ec9c6a3eb7dbbe2912e4028ed32fe72a3cb89f19dd61a5930411d | 37,757 | [
-1
] |
37,758 | protocol.lisp | open-rsx_rsbag-cl/compat/0.5/src/transform/protocol.lisp | ;;; protocol.lisp --- Protocol functions of the transform module.
;;
;; Copyright (C) 2011-2016 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 3,093 | Common Lisp | .lisp | 88 | 31.806818 | 70 | 0.696858 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 5791792e1f960946c8fe3b9e13a56a464872820cc8a92480dd74ae4e04fd65ab | 37,758 | [
-1
] |
37,759 | conditions.lisp | open-rsx_rsbag-cl/compat/0.5/src/transform/conditions.lisp | ;;; conditions.lisp --- Conditions used in the transform module.
;;
;; Copyright (C) 2011, 2012 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 2,762 | Common Lisp | .lisp | 71 | 35.690141 | 70 | 0.731299 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 113f23cd0c6380e104a4c35a0616971c3eb6df1df401c378f6c05e2bfa87b5b1 | 37,759 | [
-1
] |
37,760 | rsb-event.lisp | open-rsx_rsbag-cl/compat/0.5/src/transform/rsb-event.lisp | ;;; rsb-event.lisp --- (De)serialization of RSB events.
;;
;; Copyright (C) 2011, 2012, 2015, 2016 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; ... | 8,347 | Common Lisp | .lisp | 190 | 39.705263 | 81 | 0.695855 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 0809e587332869fb677797b9fc1397539a0586a2481b75b8082f65c0e951ad9d | 37,760 | [
-1
] |
37,761 | package.lisp | open-rsx_rsbag-cl/compat/0.7/src/transform/package.lisp | ;;; package.lisp --- Package definition for the transform module.
;;
;; Copyright (C) 2011-2018 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 1,571 | Common Lisp | .lisp | 53 | 27.056604 | 70 | 0.735586 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 17c04d5b4f44a02b9250e157ba1b3ad67223150600bccd20934c7d0314f58731 | 37,761 | [
-1
] |
37,762 | protocol.lisp | open-rsx_rsbag-cl/compat/0.7/src/transform/protocol.lisp | ;;; protocol.lisp --- Protocol functions of the transform module.
;;
;; Copyright (C) 2011-2016 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 3,055 | Common Lisp | .lisp | 86 | 32.5 | 70 | 0.713029 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | accaaef1c60b9f4cd5e99f6f270dfbe19ec2385c72553ab36af9332a3972112a | 37,762 | [
-1
] |
37,763 | conditions.lisp | open-rsx_rsbag-cl/compat/0.7/src/transform/conditions.lisp | ;;; conditions.lisp --- Conditions used in the transform module.
;;
;; Copyright (C) 2011, 2012 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 2,884 | Common Lisp | .lisp | 73 | 36 | 72 | 0.720698 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | fa5dadd857b318fbb4d98e27bfd1e31282bd5734563c03b30ea46ec1629d9e34 | 37,763 | [
-1
] |
37,764 | package.lisp | open-rsx_rsbag-cl/compat/0.8/src/transform/package.lisp | ;;; package.lisp --- Package definition for the transform module.
;;
;; Copyright (C) 2011-2018 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 1,584 | Common Lisp | .lisp | 54 | 26.703704 | 70 | 0.734868 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | e94f0ee5259a7c535e7ccf70750b41d69b27f6048a03d35b39eac6da0f967e9e | 37,764 | [
-1
] |
37,767 | package.lisp | open-rsx_rsbag-cl/compat/0.6/src/transform/package.lisp | ;;; package.lisp --- Package definition for the transform module.
;;
;; Copyright (C) 2011-2018 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 1,494 | Common Lisp | .lisp | 50 | 27.38 | 70 | 0.736072 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | fd5c8f2cd70fa0cc886dd5efd2ae4f3c4c86af6cbb1cc8c1365a2cbac9fa7da8 | 37,767 | [
-1
] |
37,768 | protocol.lisp | open-rsx_rsbag-cl/compat/0.6/src/transform/protocol.lisp | ;;; protocol.lisp --- Protocol functions of the transform module.
;;
;; Copyright (C) 2011-2016 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 3,225 | Common Lisp | .lisp | 92 | 31.75 | 70 | 0.701186 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 87fe6afb94df93d1f68414ca817629bec39f403445ca3c55ef3acc0447e842ec | 37,768 | [
-1
] |
37,770 | package.lisp | open-rsx_rsbag-cl/compat/0.4/src/transform/package.lisp | ;;; package.lisp --- Package definition for the transform module.
;;
;; Copyright (C) 2011-2018 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 1,242 | Common Lisp | .lisp | 38 | 30.657895 | 70 | 0.74 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | d1655d16ca8cb632fe3e76f553974702ff9c660c9c4aa668e1184f0d38b4ec66 | 37,770 | [
-1
] |
37,771 | protocol.lisp | open-rsx_rsbag-cl/compat/0.4/src/transform/protocol.lisp | ;;; protocol.lisp --- Protocol functions of the transform module.
;;
;; Copyright (C) 2011-2016 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; lat... | 1,603 | Common Lisp | .lisp | 42 | 36.452381 | 70 | 0.756774 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | f9eecacdf308389c6a97a2285cb3ac57d2c00c03224316f3d30cf455ca6acd06 | 37,771 | [
-1
] |
37,772 | rsb-event.lisp | open-rsx_rsbag-cl/compat/0.4/src/transform/rsb-event.lisp | ;;; rsb-event.lisp --- (De)serialization of RSB events.
;;
;; Copyright (C) 2011-2016 Jan Moringen
;;
;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
;;
;; This file may be licensed under the terms of the GNU Lesser General
;; Public License Version 3 (the ``LGPL''), or (at your option) any
;; later version... | 7,689 | Common Lisp | .lisp | 177 | 39.536723 | 81 | 0.703847 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 3ec61b17d8963deef34818cfab6a9bdca1dac8621ba712aadf47eaacce4c5fbb | 37,772 | [
-1
] |
37,773 | rsbag-builder.asd | open-rsx_rsbag-cl/rsbag-builder.asd | ;;;; rsbag-builder.asd --- Builder support for RSBag objects.
;;;;
;;;; Copyright (C) 2015, 2016, 2018 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:defpackage #:rsbag-builder-system
(:use
#:cl
#:asdf))
(cl:in-package #:rsbag-builder-system)
#.(progn
(load (merge-pat... | 2,190 | Common Lisp | .asd | 44 | 41.636364 | 96 | 0.583568 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | cd6a3af2e081c64ef2361e4140dec0598d9bebabec6692dc2c408378ec820565 | 37,773 | [
-1
] |
37,774 | rsbag-tidelog.asd | open-rsx_rsbag-cl/rsbag-tidelog.asd | ;;;; rsbag-tidelog.asd --- System definition for TIDELog backend of rsbag.
;;;;
;;;; Copyright (C) 2011-2018 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:defpackage #:rsbag-tidelog-system
(:use
#:cl
#:asdf))
(cl:in-package #:rsbag-tidelog-system)
#.(progn
(load (mer... | 2,791 | Common Lisp | .asd | 57 | 35.017544 | 87 | 0.49042 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 3caf3b8e85e64c74fcf273682621ee0837529d0bd0909ed096eafe526881a432 | 37,774 | [
-1
] |
37,775 | rsbag-elan.asd | open-rsx_rsbag-cl/rsbag-elan.asd | ;;;; rsbag-elan.asd --- System definition for ELAN backend of rsbag.
;;;;
;;;; Copyright (C) 2011-2018 Jan Moringen
;;;;
;;;; Author: Jan Moringen <jmoringe@techfak.uni-bielefeld.de>
(cl:defpackage #:rsbag-elan-system
(:use
#:cl
#:asdf))
(cl:in-package #:rsbag-elan-system)
#.(progn
(load (merge-pathnames... | 2,349 | Common Lisp | .asd | 49 | 37.469388 | 89 | 0.540245 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 7423dde4e5ee511044eb6183f7b6f967dd489c1da4046ee50fe53cd6a157551b | 37,775 | [
-1
] |
37,776 | sbclrc | open-rsx_rsbag-cl/sbclrc | (setf *terminal-io* (make-two-way-stream
(make-synonym-stream '*standard-input*)
(make-synonym-stream '*standard-output*)))
(defun load-system (system)
(let ((*compile-verbose* nil)
(*compile-print* nil)
(*load-verbose* nil)
(*load-print* nil))
(ql:quickload system :verbose nil :explai... | 341 | Common Lisp | .cl | 9 | 34.222222 | 65 | 0.661631 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | cfc8b19a176282a5ad922b1823fb89c84c3fc3e7b8f72c644e61faa2a55f3922 | 37,776 | [
-1
] |
37,777 | sbcl.cmake.in | open-rsx_rsbag-cl/sbcl.cmake.in | SET(ENV{CC} "@CMAKE_C_COMPILER@")
SET(ENV{SBCL_HOME} "@SBCL_HOME@")
SET(ENV{CL_SOURCE_REGISTRY} "@CL_SOURCE_REGISTRY@")
SET(ENV{ASDF_OUTPUT_TRANSLATIONS} "@ASDF_OUTPUT_TRANSLATIONS@")
EXECUTE_PROCESS(COMMAND "@SBCL_EXECUTABLE@"
@LIS... | 895 | Common Lisp | .cl | 18 | 32.555556 | 76 | 0.46347 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | d8510d9175777860e0e2be2cb692b356cf97430db3f4e2ba45862fbece64c6f1 | 37,777 | [
-1
] |
37,782 | lift-tidelog.config | open-rsx_rsbag-cl/lift-tidelog.config | ;;; Configuration for LIFT tests
;; Settings
(:print-length 10)
(:print-level 5)
(:print-test-case-names t)
;; Suites to run
(rsbag.backend.tidelog.test:backend-tidelog-root)
;; Report properties
(:report-property :title "rsbag-tidelog | Test Results")
(:report-property :relative-to rsbag-tidelog-... | 818 | Common Lisp | .l | 22 | 35.909091 | 61 | 0.718987 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 6ab93a9723d143e188ee7d22c0d90d91601b0062648a18f83fbbeef3e20491ac | 37,782 | [
-1
] |
37,786 | .travis.yml | open-rsx_rsbag-cl/.travis.yml | language: lisp
dist: xenial
env: PREFIX="$(pwd)/sbcl"
SBCL_HOME="$(pwd)/sbcl/lib/sbcl"
SBCL="$(pwd)/sbcl/bin/sbcl"
SBCL_OPTIONS="--noinform --no-userinit"
install:
- curl -L "${SBCL_DOWNLOAD_URL}" | tar -xj
- ( cd sbcl-* && INSTALL_ROOT="${PREFIX}" sh install.sh )
- curl -o cl "${CL_LAUNCH_DOWNLO... | 1,170 | Common Lisp | .l | 34 | 27.088235 | 85 | 0.583039 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 841c44e09f0a712bf54eaa9b53c11b1954f66ab99d6ee531eef80f65cc9796be | 37,786 | [
-1
] |
37,787 | lift-builder.config | open-rsx_rsbag-cl/lift-builder.config | ;;; Configuration for LIFT tests
;; Settings
(:print-length 100)
(:print-level 50)
(:print-test-case-names t)
;; Suites to run
(rsbag.builder.test:rsbag-builder-root)
;; Report properties
(:report-property :title "rsbag-builder | Test Results")
(:report-property :relative-to rsbag-builder-test)
(... | 810 | Common Lisp | .l | 22 | 35.545455 | 61 | 0.717391 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 0183799f678868e17c10ac74bddba7b828a669a8a750167fe6dbbc9e1cdb76fe | 37,787 | [
-1
] |
37,788 | lift-elan.config | open-rsx_rsbag-cl/lift-elan.config | ;;; Configuration for LIFT tests
;; Settings
(:print-length 10)
(:print-level 5)
(:print-test-case-names t)
;; Suites to run
(rsbag.backend.elan.test:backend-elan-root)
;; Report properties
(:report-property :title "rsbag-elan | Test Results")
(:report-property :relative-to rsbag-elan-test)
(:rep... | 800 | Common Lisp | .l | 22 | 35.090909 | 58 | 0.712435 | open-rsx/rsbag-cl | 0 | 0 | 2 | LGPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | f0c44a47e03da85a7d22f2a6600097ce00946425b1c2a637005c759d5dd2b187 | 37,788 | [
-1
] |
37,913 | 3d.l | giorgianb_lray-tracer/3d.l | (defpackage "3D"
(:use "COMMON-LISP")
(:export "3D-VECTOR" "3D-VECTOR-X" "3D-VECTOR-Y" "3D-VECTOR-Z"
"WITH-3D-VECTOR" "MAGNITUDE" "UNIT-VECTOR"
"ADD" "SUBTRACT" "MULTIPLY" "DIVIDE"
"DOT-PRODUCT" "CROSS-PRODUCT" "ANGLE"
"3D-POINT" "3D-POINT-X" "3D-POINT-Y" "3D-POINT-Z"
"WITH-3D-POINT" "DIS... | 6,975 | Common Lisp | .l | 198 | 30.510101 | 70 | 0.558109 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 8a26948688b7ef3816990c066b0b8f702457dd18292de7af39530b50bcc06fd7 | 37,913 | [
-1
] |
37,914 | ray-tracing.l | giorgianb_lray-tracer/ray-tracing.l | (defun sq (x) (* x x))
(defun mag (x y z)
(sqrt (+ (sq x) (sq y) (sq z))))
(defun unit-vector (x y z)
(let ((d (mag x y z)))
(values (/ x d) (/ y d) (/ z d))))
(defstruct (point (:conc-name nil))
x y z)
(defun distance (p1 p2)
(mag (- (x p1) (x p2))
(- (y p1) (y p2))
(- (z p1) (z p2))))
(... | 7,561 | Common Lisp | .l | 204 | 31.789216 | 101 | 0.513665 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | c6be12810b0dc99c8185abc9170f27bc1149bddec18c8b781c9f5c74f7f8e26e | 37,914 | [
-1
] |
37,915 | ray-tracing.lib | giorgianb_lray-tracer/ray-tracing.lib | #0Y_ #0Y |CHARSET|::|UTF-8|
(|SYSTEM|::|C-DEFUN| '|COMMON-LISP-USER|::|SQ|
(|SYSTEM|::|LAMBDA-LIST-TO-SIGNATURE| '(|COMMON-LISP-USER|::|X|)))
(|SYSTEM|::|C-DEFUN| '|COMMON-LISP-USER|::|MAG|
(|SYSTEM|::|LAMBDA-LIST-TO-SIGNATURE|
'(|COMMON-LISP-USER|::|X| |COMMON-LISP-USER|::|Y| |COMMON-LISP-USER|::|Z|)))
(|SYSTEM|::... | 52,847 | Common Lisp | .l | 1,036 | 47.396718 | 79 | 0.608635 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 58a0a68b5542b0c33e50b48c7656d116f112cf700c5855f287501867345475ee | 37,915 | [
-1
] |
37,916 | surface.l | giorgianb_lray-tracer/surface.l | (defpackage "SURFACE"
(:use "COMMON-LISP")
(:export "SURFACE" "WITH-SURFACE"))
(defstruct surface
color)
(defmacro with-surface (vars p &body body)
(if (/= (length vars) 1)
(error "Variable specification must specify 1 variables."))
(let ((p-sym (gensym)))
`(let* ((,p-sym ,p)
(,(first vars) (... | 361 | Common Lisp | .l | 12 | 26.25 | 65 | 0.62536 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | cbda95e0f2903f84be82e34cd4652879c2de04f0d2ff50d358c6e40ed0e8a9bd | 37,916 | [
-1
] |
37,917 | 3d-images.l | giorgianb_lray-tracer/3d-images.l | (defpackage "3D-IMAGES"
(:use "COMMON-LISP" "3D")
(:export "SURFACE" "SURFACE-COLOR" "SPHERE-IMAGE" "PLANE-IMAGE" "DEFOBJECT"
"DEFSPHERE" "DEFPLANE"))
(in-package 3d-images)
(defclass surface ()
((color :type integer :reader surface-color :initarg :color)))
(defclass sphere-image (sphere surface)
())
... | 1,116 | Common Lisp | .l | 40 | 21.5 | 77 | 0.547329 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 40bcf63ba3bac0ef2bbc7c6635aee032b65bd7be91fb9d1aa150e39eb727a817 | 37,917 | [
-1
] |
37,918 | ray-test.l | giorgianb_lray-tracer/ray-test.l | (defpackage "RAY-TEST"
(:use "COMMON-LISP" "RAY-TRACER" "3D-IMAGES" "3D")
(:export "RAY-TEST"))
(in-package ray-test)
(defun ray-test (&optional (res 1))
(declare (integer res))
(let (world
(eye (make-instance '3d-point
:x 0
:y 0
:z 200)))
(defsphere 0 -300 -1200 200 .8 world)
(defs... | 675 | Common Lisp | .l | 24 | 23.541667 | 61 | 0.561728 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 20447c6f14e8239cc4eff9fa5da4d73b72e518da70bc4c65741278e957452db7 | 37,918 | [
-1
] |
37,919 | image-plane.l | giorgianb_lray-tracer/image-plane.l | (defpackage "IMAGE-PLANE"
(:use "COMMON-LISP" "PLANE" "SURFACE")
(:export "IMAGE-PLANE" "WITH-IMAGE-PLANE"))
(defstruct (image-plane-base (:include plane)))
(defstruct (image-plane (:include surface)))
(defmacro with-image-plane (vars p &body body)
(if (/= (length vars) 4)
(error "Variable specification m... | 579 | Common Lisp | .l | 15 | 34.466667 | 65 | 0.622776 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | d35ba51e82706187371295113cf2e323fe823411990b89ec95ea3e36062bc1b6 | 37,919 | [
-1
] |
37,920 | 3d-point.l | giorgianb_lray-tracer/3d-point.l | (defpackage "3D-POINT"
(:use "COMMON-LISP")
(:export "3D-POINT" "3D-POINT-X" "3D-POINT-Y" "3D-POINT-Z"
"WITH-3D-POINT" "POINT-DISTANCE"))
(in-package 3d-point)
| 170 | Common Lisp | .l | 5 | 31 | 60 | 0.656442 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | a403f2ead87d58499cb80bac474fde1ab63b1b65cc1e96e68f37632c82b51c71 | 37,920 | [
-1
] |
37,921 | sphere.l | giorgianb_lray-tracer/sphere.l | (defpackage "SPHERE"
(:use "COMMON-LISP" "3D-VECTOR" "3D-POINT")
(:export "SPHERE" "WITH-SPHERE" "SPHERE-INTERSECT" "SPHERE-NORMAL"))
(defun sphere-intersect (s vp v)
(defun sphere-normal (s pt)
(defun on-sphere (s pt)
| 241 | Common Lisp | .l | 6 | 35.5 | 70 | 0.705069 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | a364161f162085d870600d336da1d5bf5d6c7ea3ba113d6cc357b842f77efbb0 | 37,921 | [
-1
] |
37,922 | image-sphere.l | giorgianb_lray-tracer/image-sphere.l | (defpackage "IMAGE-SPHERE"
(:use "COMMON-LISP" "SPHERE")
(:export "IMAGE-SPHERE"))
(defstruct image-sphere
(defstruct image-sphere (image-sphere (:include plane surface)))
(defmacro with-image-sphere (vars p &body body)
(if (/= (length vars) 3)
(error "Variable specification must specify 3 variables!"))
... | 523 | Common Lisp | .l | 14 | 33.357143 | 65 | 0.642998 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 7ab63c88038345de18477994bc73f6c1938ed74d279e6148e57f5b2b10b647cf | 37,922 | [
-1
] |
37,923 | ray-tracer.l | giorgianb_lray-tracer/ray-tracer.l | (defpackage "RAY-TRACER"
(:use "COMMON-LISP" "3D-IMAGES" "3D")
(:export "TRACER"))
(in-package ray-tracer)
(defun tracer (world eye pathname &optional (res 1))
(declare (list world) (3d-point eye) (integer res))
(with-open-file (p pathname :direction :output :if-exists :supersede)
(format p "P2 ~A ~A 255"... | 1,429 | Common Lisp | .l | 41 | 30.365854 | 72 | 0.582187 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 73cc0b06daaff58bf187607ec116ecaa117dfd74be5d62d1710cb12dd2495b36 | 37,923 | [
-1
] |
37,924 | planer-object.l | giorgianb_lray-tracer/planer-object.l | (defstruct planer-object
planes)
(defun vector-cross-product (x1r y1r z1r x2r y2r z2r)
(values (- (* y1r z2r) (* z1r y2r))
(- (* z1r x2r) (* x1r z2r))
(- (* x1r y2r) (* y1r x2r))))
(defun plane-normal-vector (p)
(
(defun plane-intersect (p pt xr yr zr)
(multiple-value-bind (xn yn zn) (vector-cross-pro... | 328 | Common Lisp | .l | 10 | 29.7 | 55 | 0.649518 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | e20b2889cbd514608a79aac37185cc447300179167331bf8a032ac2b09119f06 | 37,924 | [
-1
] |
37,925 | point.l | giorgianb_lray-tracer/rt/point.l | (defpackage "RT-POINT"
(:use "COMMON-LISP")
(:export "POINT"
"MAKE"
"NTH-COMPONENT"
"DIMENSIONS"
"WITH"
"*ORIGIN*"
"EQUIV"))
(in-package rt-point)
(defclass point ()
((components :type array :reader components :initarg :components)))
(defun make (points)
(declare (list points))
(ma... | 1,321 | Common Lisp | .l | 47 | 23.744681 | 90 | 0.58903 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 020ab3f1e65078facab584842042cb0b8e7fa13dc632b1d967e2e340f9af3771 | 37,925 | [
-1
] |
37,926 | vector.l | giorgianb_lray-tracer/rt/vector.l | ;(defpackage "RT-VEC"
; (:use "COMMON-LISP")
; (:require "RT-POINT")
; (:export "VEC"
; "MAKE-VEC"
; "VEC-NTH-COMPONENT"
; "VEC-DIMENSIONS"
; "WITH-VEC"))
;(in-package rt-vec)
(defclass vec ()
((point-1 :type rt-point:point :reader point-1 :initarg :point-1)
(point-2 :type rt-point:point :reader p... | 1,114 | Common Lisp | .l | 34 | 29.264706 | 76 | 0.609595 | giorgianb/lray-tracer | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:17 AM (Europe/Amsterdam) | 5e45d0749db27aad0aae1d5b7ccdd2853161531deb73f69d9c1b9f4f09e34ce9 | 37,926 | [
-1
] |
37,941 | minesweeper.lisp | phua_lisp-games/minesweeper.lisp | ;;; minesweeper.lisp --- Minesweeper
;; Author: Peter Hua
;; Version: $Revision: 1.0$
;; Keywords: $keywords
;; 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, or (at your op... | 10,407 | Common Lisp | .lisp | 234 | 38.200855 | 105 | 0.644379 | phua/lisp-games | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:25 AM (Europe/Amsterdam) | ee6c915bdc0988ec14720a061ed235eadeac587f2014a6a12e99479aea6a50ab | 37,941 | [
-1
] |
37,973 | db.lisp | shepherdjerred-homework_deductive-database/test/db.lisp | (setq db
'(
(T (dog fido))
(T (dog lassie))
((dog x1) (mammal x1))
((mammal x2) (wb x2))
((cat x3) (feline x3))
(T (cat felix))
((man x4) (mortal x4))
(T (man Socrates))
(T (man Plato))
((dog x5) (likes Pavlov x5))
((dog x6) (mortal x6))
((man x7) (mammal x7))
((fel... | 580 | Common Lisp | .lisp | 23 | 20.434783 | 40 | 0.530576 | shepherdjerred-homework/deductive-database | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:25 AM (Europe/Amsterdam) | e21a4cc556bce6a0f51edfbcff132adf0c29c23023ddbf9573f2c29d719265ec | 37,973 | [
-1
] |
37,974 | test.lisp | shepherdjerred-homework_deductive-database/test/test.lisp | rprogn
(load "../src/unify.lisp")
(load "../src/ddb.lisp")
(trace unify)
(trace ?)
(trace prove)
(trace query-bool)
(trace query-list))
; DB from Dr. Baird
(load "./db.lisp")
; DB for (mortal fido) test
(setq db '((T (dog fido))
((dog x1) (mortal x1))))
; DB for (likes y fido) test
(setq db ... | 1,491 | Common Lisp | .lisp | 90 | 12.111111 | 44 | 0.523297 | shepherdjerred-homework/deductive-database | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:25 AM (Europe/Amsterdam) | d9a1adc258673a77a3494b9714e414cdf5948d98cca5024eaee7bd3e35e2ac45 | 37,974 | [
-1
] |
37,975 | ddb.lisp | shepherdjerred-homework_deductive-database/src/ddb.lisp | ;;; Takes a term and applies a substitution to it
;;; sub is the form of (X . B) where X is the target and B is the replacement value
(defun apply-one-sub (term sub)
(let ((sub-key (car sub))
(sub-value (cdr sub)))
(if (eq term sub-key)
sub-value
(if (atom term)
term
(cons (ap... | 2,943 | Common Lisp | .lisp | 85 | 29.105882 | 105 | 0.611443 | shepherdjerred-homework/deductive-database | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:25 AM (Europe/Amsterdam) | 2d47328e09575ce3f128856717dfd6ac7b408949abee18e5644ea205c6d0643c | 37,975 | [
-1
] |
37,996 | C2M-class.lisp | JRSV_C2M/C2M-class.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Chord to Measure or C2M is a collection of methods that produce
;; musical material according to shuffling rules that determin the structure
;; pitch / rhythm / form
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | 17,250 | Common Lisp | .lisp | 468 | 31.933761 | 87 | 0.534246 | JRSV/C2M | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:25 AM (Europe/Amsterdam) | 476e1fdbfef4896d7889ea3a4401f51cb1e8fd14cae88291474be1b9ca281238 | 37,996 | [
-1
] |
38,014 | simulation.lisp | Jean-4k_2generals1problem/simulation.lisp | (defparameter verbeux? t)
(defclass général ()
((nom :initarg :nom
:initform (error "Veuillez spécifier un nom de général.")
:accessor nom)
(nb-envoyés :initarg :nb-envoyés
:initform 0
:accessor nb-envoyés)
(nb-reçus :initarg :nb-reçus
:initform 0
:accessor nb-reçus)
(heure-att... | 3,560 | Common Lisp | .lisp | 95 | 31.4 | 95 | 0.673225 | Jean-4k/2generals1problem | 0 | 1 | 0 | GPL-2.0 | 9/19/2024, 11:44:25 AM (Europe/Amsterdam) | 9d49e114f4289a11e45f69ea3134fa15250f34631f389316df8f68bd6bbe6012 | 38,014 | [
-1
] |
38,032 | dilemma.lsp | macropeter_Lisp-Trials/dilemma.lsp | ; Juli 2011
; Eigenes Konzept nach "Land of Lisp" Kapitel 9
; Neuaufnahme: Jänner 2013
(defvar *matrix* (list (list (cons 1 1) (cons 0 5))
(list (cons 5 0) (cons 3 3))))
(defparameter *erg-liste* nil) ;history zum Auswerten für die Teilnehmer
;das letzte Erebnis w... | 2,856 | Common Lisp | .l | 71 | 34.239437 | 81 | 0.608221 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 5345ac2ace6d4b5ba7e258cf42b1df2ac9da07a136cee9ad5d465af3341a2b0a | 38,032 | [
-1
] |
38,033 | bogo.lsp | macropeter_Lisp-Trials/bogo.lsp | ; BogoSort (oder StupidSort) nach www.blödsort.de
; März 2011
; Oktober 2011
(defun istSortiert (LL)
"Prüft nach, ob eine Liste sortiert ist"
(cond ((null (cdr LL)) T) ;nur noch ein Element in der Liste
(T (and (< (car LL)
(cadr LL))
(istSortiert (cdr LL))))))
(defu... | 1,744 | Common Lisp | .l | 43 | 33.139535 | 182 | 0.623565 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | b9449e629086fee8c9cd7472060a3e334406e009be0def32db1da409a53559b0 | 38,033 | [
-1
] |
38,034 | Kapitel2.lsp | macropeter_Lisp-Trials/Kapitel2.lsp | (let ((direction 'up))
(defun toggle-counter-direction ()
(setq direction
(if (eq direction 'up)
'down
'up)))
(defun counter-class ()
(let ((counter 0))
(lambda ()
(if (eq direction 'up)
(incf counter)
(decf counter))))))
| 303 | Common Lisp | .l | 12 | 17.5 | 36 | 0.503448 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | fa0cda4dc5ea323361c29c31b440cb407db7d537fc2e29431ade45665c50c418 | 38,034 | [
-1
] |
38,035 | neumann.lsp | macropeter_Lisp-Trials/neumann.lsp | ; Neumanngenerator (wieviele Bit hat eigentlich Integer bei Lisp?)
; Jänner 2011
; vgl. das baugleiche Haskellprogramm
; ganzzahlige Division
(defun div (x y)
(truncate (/ x y)))
; ganzzahlige Division, manuell gestrickt: ist aber bei großen Zahlen zu langsam!
(defun divi (x y)
(do ((z 0 (1+ z))
... | 1,978 | Common Lisp | .l | 58 | 24.724138 | 84 | 0.507825 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 0e8ac4a3e4e85c90fab241ca1dff6e2c08e03cea547830f8fc0a77f9c13b9473 | 38,035 | [
-1
] |
38,036 | ziegenp.lsp | macropeter_Lisp-Trials/ziegenp.lsp | ; Das Ziegenproblem als OOP-Beispiel
; Oktober 2014
(defclass tuer ()
((treffer :accessor treffer
:initform nil
:documentation "Ziege (nil) oder Auto")
(offen :accessor offen
:initform nil
:documentation "Tür geöffnet oder nicht (nil)")))
(setq *tueren* (make-array 3 :element-type 'tuer)) ;... | 721 | Common Lisp | .l | 18 | 35.722222 | 88 | 0.672464 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 6506f74795d679c21ba4fc73250b095dd70e672502321ec3bd985e8178807e21 | 38,036 | [
-1
] |
38,037 | irrfahrt.lsp | macropeter_Lisp-Trials/irrfahrt.lsp | ; Die klassische Irrfahrt
; März 2011
(defparameter *guthaben* 0)
(defun guthaben0 () (setq *guthaben* 0))
(defun einspiel ()
(if (= (random 2) 0)
(setq *guthaben* (1+ *guthaben*))
(setq *guthaben* (1- *guthaben*))))
(defun irrfahrt (n) ;fast deklarative Variante
(progn (guthaben0)
... | 1,091 | Common Lisp | .l | 27 | 32.148148 | 70 | 0.538023 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 773a1bbf03d3e3526b2a50599fa2cf79e9580c2c09d2c467dc82612b309b9c11 | 38,037 | [
-1
] |
38,038 | fibo.lsp | macropeter_Lisp-Trials/fibo.lsp | ;Fibonaccizahlen, verschiedene Varianten
;letzte Bearbeitung: April 2011
;klassisches, sehr ineffektives Verfahren:
(defun fibo (x)
(cond ((= x 0) 0)
((= x 1) 1)
(T (+ (fibo (- x 1)) (fibo (- x 2)))))
)
(defun fibolist (n erglist)
"Liste von n Fibonaccizahlen: Aufruf mit n und nil"
(cond... | 1,298 | Common Lisp | .l | 43 | 24.162791 | 59 | 0.50641 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 7b7898915c487493c66487cfe2da50b8ef939d0ae4efe2de3011c1e135447555 | 38,038 | [
-1
] |
38,039 | ls1.lsp | macropeter_Lisp-Trials/ls1.lsp | ; Dez-Jän 2013
; WebUntis-csv-Dateien mit Schülerlisten einlesen und
; als xml-Dateien wieder ausgeben
(defstruct schueler
name vorname klasse zweig faecher)
(setq *my-stream* "schueler.txt")
(defun str2text (txt) ; Trafo von Symbol in Text mit großem Anfangsbuchstaben
(string-capitalize (string-downcase (stri... | 2,095 | Common Lisp | .l | 41 | 46.04878 | 86 | 0.678325 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 3b81d66b7af4758081d399f105486942d4c4ca987a5f38c813d1e4d7a5985c62 | 38,039 | [
-1
] |
38,040 | bubble.lsp | macropeter_Lisp-Trials/bubble.lsp | ; BubbleSort-Variationen
; Mai 2010
;Innere Schleife: das größte Element wandert ans Ende
(defun bubblehelper (x2)
(cond ((null x2) nil) ;falls leer, nil zurück
((= (length x2) 1) x2) ;falls nur ein Element:als Liste zurück
(T (let ((x (first x2)) ;1.Element
(y (second... | 1,113 | Common Lisp | .l | 37 | 22.783784 | 74 | 0.490476 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | f39c52da5ff49caa1cab81c0dd4bc69c67bf958b6a83a1949a79e7a14c84f694 | 38,040 | [
-1
] |
38,041 | Jacobi.lsp | macropeter_Lisp-Trials/Jacobi.lsp | ;;Der Solovay-Strassen-Test für Primzahlen:
;;Ein MC-Verfahren!
(defun qTest (n x m)
"Test ob n ein qu Rest von x mod m ist"
(eq (mod (* n n) m) x))
(defun test2 (x m)
"gibt List aller quadratischen Rest von x mod m zurück"
(loop for i from 2 to (1- m)
when (qTest i x m)
collect i))
(defun ... | 583 | Common Lisp | .l | 24 | 19.041667 | 57 | 0.561694 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 174d5e01636687e024e872a700890524bd202f6c88110d27e03de0bf1e0ae271 | 38,041 | [
-1
] |
38,042 | nest.lsp | macropeter_Lisp-Trials/nest.lsp | (defun bsp (x)
(* 2 x))
(defun nest (f x n)
(cond ((eq n 0) (funcall f x))
(T (nest f (funcall f x) (1- n)))))
(defun nestlist (f x n)
(cond ((eq n 0) (funcall f x))
(T (nest f (funcall f x) (1- n))))) | 236 | Common Lisp | .l | 8 | 24.25 | 41 | 0.471366 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 230bd94a55f21ded751072d37e3af270174b3cfa43fe9a7eee7f7a2ea90be594 | 38,042 | [
-1
] |
38,043 | mksa.lsp | macropeter_Lisp-Trials/mksa.lsp | ;;;MKSA = Meter kg Sek Ampere
;;; Grunddeinheiten der Mechanik
;;; nach Krusenotto Anwendungsbeispiel 1
; Datenstruktur: (Wert Meter kg sec Ampere)
(defun u* (a b)
"Multiplikation im mksa-System"
(cons (* (car a) (car b))
(mapcar '+ (cdr a) (cdr b))))
(defun u+ (a b)
"Addition im mksa-System, nur bei
gleichen... | 474 | Common Lisp | .l | 17 | 24.235294 | 43 | 0.632743 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 746124c6d750d912b5370c63115491c871e0a71df0960b8df5be44447984a2c1 | 38,043 | [
-1
] |
38,044 | pi.lsp | macropeter_Lisp-Trials/pi.lsp | ;;;SICP 1.3.1
(defun pireihe (i n)
(if (> i n)
0
(+ (* (/ 1.0 i)
(/ 1.0 (+ i 2)))
(pireihe (+ i 4) n))))
(defun faltung (fkt i n)
(if (> i n)
0
(+ (funcall fkt i)
(faltung fkt (1+ i) n))))
(defun pi-term (n)
(* (/ 1.0 n)
(/ 1.0 (+ n 2))))
(defun falt-summe (fkt i naech... | 653 | Common Lisp | .l | 27 | 20.222222 | 51 | 0.470779 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | badd15cb60c9bdb732b38c364b56d850401e699333fc4998b37adca7476ebcc9 | 38,044 | [
-1
] |
38,045 | Bakermap0.lsp | macropeter_Lisp-Trials/Bakermap0.lsp | ;;;eindimensionale Bakermap
;;;dynamisches System, wie von Gisin vorgeschlagen
;; April 2021
; zeigt, dass CLisp standardmäßig mit 32bit-Realzahlen rechnet
;; rechnet man mit Brüchen, kann man die ganze Kapazität von Lisp präsentieren
(defun mod1 (x)
"modulo 1 rechnen"
(multiple-value-bind (ganz teil) (floor... | 1,545 | Common Lisp | .l | 63 | 20.174603 | 83 | 0.554795 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | f4c360747a2ede6536800a8567bcf9b1d6f137fd6dce4754df773d6f0c441299 | 38,045 | [
-1
] |
38,046 | cd.lsp | macropeter_Lisp-Trials/cd.lsp | ;CD-Datenbankprojekt nach Seibel "PCL"
;Dezember 2010
(defvar *db* nil)
(defun make-cd (titel artist rating ripped)
(list :titel titel
:artist artist
:rating rating
:ripped ripped))
(defun add-record (cd)
(push cd *db*))
(defun dump-db ()
(dolist (cd *db*)
(format t "~{~a... | 1,264 | Common Lisp | .l | 37 | 28.891892 | 94 | 0.622626 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | ad0d9f164c1d6d1e344af40aac0675c83a321eb9d871d733b21a871b6f768d94 | 38,046 | [
-1
] |
38,047 | insert.lsp | macropeter_Lisp-Trials/insert.lsp | ;InsertionSort
;vgl die Haskellvariante
;Mai 2010
(defun sorthelper (glist x) ;x in eine geordnete Liste einfügen
(cond ((null glist)(list x))
(T (let ((k (car glist)))
(cond ((< x k)(cons x glist))
(T (cons k
(sorthel... | 751 | Common Lisp | .l | 22 | 25.136364 | 73 | 0.528276 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | a41c79bbfac132a23b2ae7ca2a4dfd4b7241146b64270c2a0d0e4b94d59509d4 | 38,047 | [
-1
] |
38,048 | poker.lsp | macropeter_Lisp-Trials/poker.lsp | ; Pokertest für Zufallszahlen (0,1-Liste)
; Dez 2010
(defun hpoker (x liste nr)
(if (null liste)
nr
(if (= x (car liste))
(hpoker (car liste) (cdr liste) nr)
(hpoker (car liste) (cdr liste) (+ nr 1)))))
(defun pokertest (liste)
(if (not (null list... | 857 | Common Lisp | .l | 22 | 29.318182 | 82 | 0.550847 | macropeter/Lisp-Trials | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | eb0c42ae27015b2b2c945089db75e4e8a084e16e4768af3ee7de1b4f29ff9886 | 38,048 | [
-1
] |
38,081 | Unificacion.lsp | ceskmcfran_USALprojects-Unification-Algorithm/Unificacion.lsp | ;Ejemplo de como ejecutar:
;
; (setf clausula2 '(p (A) (B)))
; (setf clausula1 '(p (? x) (? x)))
; (setf solucion (unificar clausula1 clausula2))
; (print '(La solucion es))
; (print solucion)
(setf false 'False)
(setf nada 'Nada)
(defun isAtom(var)
(cond ((atom var) T)
((eq (first var) '?) T)
... | 3,885 | Common Lisp | .l | 129 | 19.51938 | 114 | 0.492003 | ceskmcfran/USALprojects-Unification-Algorithm | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | db07af2b67ed3ce72fdffccdf8a843c45baac5411e618e13861128e23fdd3ef0 | 38,081 | [
-1
] |
38,098 | listagem_de_funcoes.lsp | tictackode_My-firsts-Commom-Lisp-Codes/listagem_de_funcoes.lsp |
; funcoes matematicas
(defun inc(x) (+ x 1))
(defun dec(x) (- x 1))
(defun media(x y) (/ (+ x y) 2))
; nao esta funcionando corrigir!
(defun par-impar(x)
(if(evenp(x))
(format_t "par")
(format_t "impar")))
; funcao one-of para selecionar um item aleatorio em uma lista (excelente!!)
(defun one-of(set)
(list... | 710 | Common Lisp | .l | 19 | 35 | 76 | 0.710682 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 839d5c985885ad0eb24e526ce1928b8afd7a39afc52b8f9bb02620aa155fc48e | 38,098 | [
-1
] |
38,099 | japones.lsp | tictackode_My-firsts-Commom-Lisp-Codes/japones.lsp | (defun one-of(set)
(list (random-elt set)))
(defun random-elt(choices)
(elt choices (random (length choices))))
(defun is-in-list(x)(cond((member x lista)(format t"esta na lista"))
( t ( format t"não esta na lista"))))
(setq lista '( aai amor kotoba palavra hohoemi sorriso ... | 2,317 | Common Lisp | .l | 42 | 41.809524 | 105 | 0.522527 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 716da464b51641179589fba369dce671d801d3046e11b46928c113711861b512 | 38,099 | [
-1
] |
38,100 | Lista2PythonBrasil.lsp~ | tictackode_My-firsts-Commom-Lisp-Codes/Lista2PythonBrasil.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))
((<... | 11,425 | Common Lisp | .l | 167 | 54.45509 | 119 | 0.559872 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | acdcada61bbc4356fd6825157a650d464916ea1cd521d9ed0bae11ff9d4c052d | 38,100 | [
-1
] |
38,101 | Lista2PythonBrasil~ | tictackode_My-firsts-Commom-Lisp-Codes/Lista2PythonBrasil~ | ; 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))
((<... | 623 | Common Lisp | .l | 9 | 60.777778 | 99 | 0.620295 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | ead36d8fa5d5f786e9e337ee4fffc4580cb12962ceac52c2aab39844725cb7be | 38,101 | [
-1
] |
38,102 | lista_de_exercicios.lsp~ | tictackode_My-firsts-Commom-Lisp-Codes/lista_de_exercicios.lsp~ | (defun head(x)(car x))
(defun tail(x)(last x))
(defun enigma (x)
( cond ((endp x) t)
(t (and (first x)
(enigma (rest x)) ))))
| 151 | Common Lisp | .l | 6 | 20 | 30 | 0.503497 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 62b10331d5d7204793f55ad5e31013e19ac162e0d8235697deca5c7d795bb425 | 38,102 | [
-1
] |
38,103 | Baralho~ | tictackode_My-firsts-Commom-Lisp-Codes/Baralho~ | (defun one-of(set)
(list (random-elt set)))
(defun random-elt(choices)
(elt choices (random (length choices))))
(defvar valor '(dois tres quatro cinco seis sete oito nome dez valete dama rei as))
(defvar naipe '(paus copas espadas ouro))
(defun card()(list(one-of valor)(one-of naipe)))
| 294 | Common Lisp | .l | 7 | 40 | 83 | 0.728873 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 63dd9513312313a137bcef7a07c940ff9baec1348efe8c41847e73aa2f518175 | 38,103 | [
-1
] |
38,104 | Lista2PythonBrasil.lsp | tictackode_My-firsts-Commom-Lisp-Codes/Lista2PythonBrasil.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))
((<... | 12,371 | Common Lisp | .l | 180 | 55.5 | 119 | 0.572768 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 68b121cc819409c352e029f53946fe7e505000875eceac009e0870fd687b5bbd | 38,104 | [
-1
] |
38,105 | lista1PythonBrasil.lsp~ | tictackode_My-firsts-Commom-Lisp-Codes/lista1PythonBrasil.lsp~ |
; 1-
(defun ola-mundo()(format t"Olá Mundo!"))
; 2-
(defun numero()(format t "Digite um numero")(setq n (read))(format t"O numero digitado foi ~D~%"n))
;3-Faça um Programa que peça dois números e imprima a soma.
(defun soma()(format t"Digite o primeiro numero: ")(setq num1 (read))
(format t"Digi... | 8,797 | Common Lisp | .l | 110 | 71.3 | 354 | 0.643592 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 96e9d891c8b8893b003a3b5a4789620607b746ea7a50e5b5e6814e97bf911a5f | 38,105 | [
-1
] |
38,106 | lista_de_exercicios.lsp | tictackode_My-firsts-Commom-Lisp-Codes/lista_de_exercicios.lsp | (defun head(x)(car x))
(defun tail(x)(last x))
; o exercicio é: o que faz esta funcao?
(defun enigma (x)
( cond ((endp x) t)
(t (and (first x)
(enigma (rest x)) ))))
;LISTP takes any Lisp data-item, and returns T if it is a list, and NIL otherwise.
;ENDP which takes a list, and returns T if th... | 691 | Common Lisp | .l | 15 | 43.4 | 170 | 0.692878 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 455d499314ae6a85fc1212f470f64336b17ea588e7428da59eef73873a17e31a | 38,106 | [
-1
] |
38,107 | media-alunos | tictackode_My-firsts-Commom-Lisp-Codes/media-alunos | (defun media (x y)(/ (+ x y) 2.0))
(defun resultado(x y)
(if (>= (media x y) 5)(format t"aprovado")
(format t"reprovado")))
(defun notas
(progn (x y)
(format t"digite a primeira nota") (setq x (read))
(format t"digite a segunda nota") (setq y (read)))
(resultado x y))
| 286 | Common Lisp | .l | 9 | 29 | 51 | 0.618182 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | a1456335587ba220ae55df31b911b775d48d8af3eb3583f5af9712378ebf3d02 | 38,107 | [
-1
] |
38,108 | lista3PythonBrasil.lsp | tictackode_My-firsts-Commom-Lisp-Codes/lista3PythonBrasil.lsp |
;1-Faça um programa que peça uma nota, entre zero e dez.
;Mostre uma mensagem caso o valor seja inválido e continue
;pedindo até que o usuário informe um valor válido.
; exemplo loop (loop for x in '(a b c d e f) do (print x))
((setq aux nil)(setq nota -1)(while aux ((read nota)(cond((> nota 0) and (< nota 10.1))... | 343 | Common Lisp | .l | 5 | 65.8 | 104 | 0.690909 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 4b57226a2d9bbdb6f45ce1675b6781d4e7a613267488ff53f2497db6b00e2244 | 38,108 | [
-1
] |
38,109 | guessGame#1.lsp | tictackode_My-firsts-Commom-Lisp-Codes/guessGame#1.lsp | (setf num 80)
(defun try(x)(cond(< x num) ("numero muito grande")
(> x num) ("numero muito pequeno")
(= x num) ("Certa Resposta!")))
| 170 | Common Lisp | .l | 4 | 32.25 | 52 | 0.49697 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 03fbdfb90347ad683508568c8b0dc80f9a18dffe865ef37f0ec4d120c23e0aad | 38,109 | [
-1
] |
38,110 | GradeFit.lsp | tictackode_My-firsts-Commom-Lisp-Codes/GradeFit.lsp |
; recebe uma nota inicial e uma nova nota, calcula a proporçãoo e a aplica
; a uma lista de notas, gerando como saída a lista de notas na nova
; proporção
(defun %P(x y) (/ (/ (* y 100.0) x) 100.0))
(defun auxGradeFit(p list )(mapcar '(lambda(x)(* x p)) list))
(defun gradeFit(n1 n2 lista)(auxGradeFit (%P n1 n2) li... | 344 | Common Lisp | .l | 6 | 52.666667 | 74 | 0.693038 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 751f8bc92401a9a5a6d135a7ab8125fefdf3012042553bea58e11406c6050c40 | 38,110 | [
-1
] |
38,111 | GuessGame.lsp | tictackode_My-firsts-Commom-Lisp-Codes/GuessGame.lsp |
(setf max 99)
(setf min 1)
(defun sorteia() (+ (random max) 1))
| 67 | Common Lisp | .l | 3 | 20.333333 | 36 | 0.639344 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 46c663baada2bea2804523a1146cfde679cc902ea57624665fbff4dc0dd7ef42 | 38,111 | [
-1
] |
38,112 | japones.lsp~ | tictackode_My-firsts-Commom-Lisp-Codes/japones.lsp~ | (defun one-of(set)
(list (random-elt set)))
(defun random-elt(choices)
(elt choices (random (length choices))))
(defun is-in-list(x)(cond((member x lista)(format t"esta na lista"))
( t ( format t"não esta na lista"))))
(setq lista '( aai amor kotoba palavra hohoemi sorriso ... | 1,257 | Common Lisp | .l | 23 | 45.043478 | 89 | 0.585306 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 9f31298da5c484509b201c2cf6d674ee6b477502b706e8ac730e8b3379177bbf | 38,112 | [
-1
] |
38,113 | media_aluno.lsp~ | tictackode_My-firsts-Commom-Lisp-Codes/media_aluno.lsp~ | (defun nota()(print"Digite a primeira nota: ")(setf nota1 (read))
(print"Digite a segunda nota: ")(setf nota2 (read))
(list '(a media é )(/ (+ nota1 nota2) 2.0))) | 169 | Common Lisp | .l | 3 | 53.333333 | 66 | 0.628743 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 1f45bb9f46535684275434e171f825820f6c31ae031ee0b71ad47089abd6752d | 38,113 | [
-1
] |
38,114 | Baralho.lsp | tictackode_My-firsts-Commom-Lisp-Codes/Baralho.lsp | (defun one-of(set)
(list (random-elt set)))
(defun random-elt(choices)
(elt choices (random (length choices))))
(setf valor '(dois tres quatro cinco seis sete oito nome dez valete dama rei as))
(setf naipe '(paus copas espadas ouro))
(defun card()(list(one-of valor)(one-of naipe)))
(defun poker-hand()(list(one-... | 459 | Common Lisp | .l | 8 | 55.375 | 167 | 0.718121 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 219065e6f01829f542dddec86d9b77d0c77e8c0f10275a04e17bba10bd176b44 | 38,114 | [
-1
] |
38,115 | media_aluno.lsp | tictackode_My-firsts-Commom-Lisp-Codes/media_aluno.lsp | (defun media(x y)(/ (+ x y) 2.0))
(defun nota()(print"Digite a primeira nota: ")(setf nota1 (read))
(print"Digite a segunda nota: ")(setf nota2 (read))
(list '(a media é )(/ (+ nota1 nota2) 2.0)))
(defun le-dados-aluno()(print"Nome: ")
(setf nome (read))(print"Nota 1: ")(setf nota1 (read))
(print"Nota ... | 454 | Common Lisp | .l | 8 | 53.25 | 107 | 0.605856 | tictackode/My-firsts-Commom-Lisp-Codes | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:44:33 AM (Europe/Amsterdam) | 08f7d5176580cf4dd3099efe2e6b65402ec17b16faff9fa69b82b454a843d095 | 38,115 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.