_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
e42ea2e32119992c48f1c8c15e57a032a73395d23db276cf95cc0c17dc8c1411
coq/coq
dep_info.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/5a5284d271baa3cda215154eda46090e1ddd6c45/tools/coqdep/lib/dep_info.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
966d7c078428f43ea286b8c039977fe28544230c0c7245e8d869eba4f66b3fbd
JackieMaHatesDogEyes/DreamOS
bootstrap.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;This program is distributed under the terms of the ;;; ;;;GNU General Public License. ;;; Copyright ( C ) 2010 ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;This file is meant to be loaded...
null
https://raw.githubusercontent.com/JackieMaHatesDogEyes/DreamOS/53d56a3ff263840d3a78142cf4431cbe4fc18509/src/bootstrap.scm
scheme
This program is distributed under the terms of the ;;; GNU General Public License. ;;; ; ; This file is meant to be loaded only once! ; ; Numeric Tower ;;; + - * = > >= round truncate floor R5RS LIBRARY AND OPTIONAL PROCEDURES ;;; EXTRA PROCEDURES ;;;
((lambda () (define %define define) (define %let #f) (define %letrec #f) (define %sym% (string->symbol "")) (set! quasiquote (macro (x) (%define quasiquote-nested (lambda (n x) (if (pair? x) (if (eq? (car x) 'quasiquote) (list list '(quote quasiquote) ...
a75ae44dda7d273c9ce6adc0d442d5de89ac4e0e01dfec68622453d58faaf830
oscoin/oscoin
JSON.hs
-- | This module exports functions that allow one to define generic ` ToJSON ` and ` FromJSON ` instances for values that are an instance of ` Serialise ` . -- -- @ data -- instance -- instance ToJSON where -- toJSON = serialiseToJSON -- -- instance FromJSON where -- p...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/src/Codec/Serialise/JSON.hs
haskell
| This module exports functions that allow one to define generic @ toJSON = serialiseToJSON instance FromJSON where parseJSON = deserialiseParseJSON @ This generic JSON serialisation scheme is unstructured. The value is encoded into a CBOR bytestring which is encoded as base64 which ...
` ToJSON ` and ` FromJSON ` instances for values that are an instance of ` Serialise ` . data instance instance ToJSON where module Codec.Serialise.JSON ( serialiseToJSON , deserialiseParseJSON ) where import Oscoin.Prelude import Codec.Serialise (Serialise,...
fb920c4334b12c993346837c3fde59fba6a76cc07a3780ffc11317800d2fcb2e
artyom-poptsov/guile-ics
text.scm
text.scm -- iCalendar TEXT ( RFC5545 , 3.3.10 ) type . Copyright ( C ) 2017 - 2022 Artyom V. Poptsov < > ;; ;; 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 Licens...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-ics/0a313ed199eea4f28655cce8370add2acbec1e82/modules/ics/type/text.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
text.scm -- iCalendar TEXT ( RFC5545 , 3.3.10 ) type . Copyright ( C ) 2017 - 2022 Artyom V. Poptsov < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
9fdb3979538dd15cf8415f34fa682cc37fe31c0a67d62545031d77b9ff9ea78b
input-output-hk/voting-tools
Gen.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE TupleSections # # LANGUAGE TypeApplications # | Module : Cardano . Catalyst . Test . DSL.Gen Description : Generate terms for the testing DSL . Maintainer : sevanspowell Stability : experimental Generators a...
null
https://raw.githubusercontent.com/input-output-hk/voting-tools/49dc7d90e203e6475f3adb20c7de75ccce2d4507/src/Cardano/Catalyst/Test/DSL/Gen.hs
haskell
# LANGUAGE GADTs # * Generators ** DSL Types | Generators for terms of the DSL. ** Cardano.Db Generators | Generators for "Cardano.Db"-specific types ** Other Hash Epoch number Slot number Epoch slot no Block no Previous block id Slot leader id Block size - Block time Tx count op cert op cert counter ...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # | Module : Cardano . Catalyst . Test . DSL.Gen Description : Generate terms for the testing DSL . Maintainer : sevanspowell Stability : experimental Generators and associated helpers f...
6b1734b2070f9f6252ffe2db3b07fae68abdef5f086268eb0e03a6487de25f58
facebookarchive/lex-pass
PrettyPrint.hs
{-# LANGUAGE DeriveDataTypeable #-} module PrettyPrint where import Control.Applicative import Data.Generics import Data.List.Split import Data.Tree data Bar = Bar Int deriving ( Data , Typeable ) data deriving ( Data , Typeable ) data FooD = Foo { foo1 : : Bar , foo2 : : } deriving ( Data , Typ...
null
https://raw.githubusercontent.com/facebookarchive/lex-pass/dcfa9560a95f2c1344e15493dabcc1645b1ca5e8/src/Test/PrettyPrint.hs
haskell
# LANGUAGE DeriveDataTypeable #
module PrettyPrint where import Control.Applicative import Data.Generics import Data.List.Split import Data.Tree data Bar = Bar Int deriving ( Data , Typeable ) data deriving ( Data , Typeable ) data FooD = Foo { foo1 : : Bar , foo2 : : } deriving ( Data , Typeable ) data Foo2D = Foo2 Bar Baz...
f884b9203344be06fc23d41c8c0fac011aeb4463a71ac15d6dd2216bec9b09fd
aarkerio/ZentaurLMS
notes.clj
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{questions_by_test(id: 5) {id question qtype explanation}}" }' :8888/graphql curl -X POST -H "Content-Type: application/graphql" --data '{questions_by_test(id: 5) {id question qtype explanation}}' :8888/graphql Ring defaults: {:params {:urlencode...
null
https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/resources/docs/notes.clj
clojure
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{questions_by_test(id: 5) {id question qtype explanation}}" }' :8888/graphql curl -X POST -H "Content-Type: application/graphql" --data '{questions_by_test(id: 5) {id question qtype explanation}}' :8888/graphql Ring defaults: {:params {:urlencode...
0480e8cab7b8b7175d94851fba84e248f4335a5a820674df814f634ca6846093
slipstream/SlipStreamServer
session_github_lifecycle_test.clj
(ns com.sixsq.slipstream.ssclj.resources.session-github-lifecycle-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest is use-fixtures]] [com.sixsq.slipstream.auth.external :as ex] [com.sixsq.slipstream.auth.github :as auth-github] [com.sixsq.slipstream.auth.utils.db :as db] ...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/session_github_lifecycle_test.clj
clojure
callback state reset between tests get session template so that session resources can be tested create the session template to use for these tests anonymous query should succeed but have no entries anonymous create must succeed (normal create and href create) create the session-github configuration to use for ...
(ns com.sixsq.slipstream.ssclj.resources.session-github-lifecycle-test (:require [clojure.data.json :as json] [clojure.test :refer [deftest is use-fixtures]] [com.sixsq.slipstream.auth.external :as ex] [com.sixsq.slipstream.auth.github :as auth-github] [com.sixsq.slipstream.auth.utils.db :as db] ...
08660da9709f9d062e2cf93bdd160fcf7bf038e868d224fa605604ea629955ab
cj1128/sicp-review
1.17.scm
(define (double x) (+ x x)) (define (halve x) (/ x 2)) (define (mul a b) (cond ((= b 1) a) ((even? b) (double (mul a (halve b)))) (else (+ a (mul a (- b 1)))))) (display (mul 2 100)) (newline) (display (mul 3 7))
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-1/1.2/1.17.scm
scheme
(define (double x) (+ x x)) (define (halve x) (/ x 2)) (define (mul a b) (cond ((= b 1) a) ((even? b) (double (mul a (halve b)))) (else (+ a (mul a (- b 1)))))) (display (mul 2 100)) (newline) (display (mul 3 7))
69b623d6756d17ea6ff1e77bbaadeecf81edf4c9783f98de8696b8ba85f5b9bd
ktakashi/sagittarius-scheme
test-ed448.scm
(define ed448-signer (make-eddsa-signer ed448-scheme)) (define ed448-verifier (make-eddsa-verifier ed448-scheme)) (define test-ed448 (make-test-eddsa Ed448 ed448-signer ed448-verifier)) (test-ed448 #x6c82a562cb808d10d632be89c8513ebf6c929f34ddfa8c9f63c9960ef6e348a3528c8a3fcc2f044e39a3fc5b94492f8f032e7549a20098f95b #...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/d068f29df5fefaf23700c62f7be1a68c08864060/ext/crypto/tests/test-ed448.scm
scheme
(define ed448-signer (make-eddsa-signer ed448-scheme)) (define ed448-verifier (make-eddsa-verifier ed448-scheme)) (define test-ed448 (make-test-eddsa Ed448 ed448-signer ed448-verifier)) (test-ed448 #x6c82a562cb808d10d632be89c8513ebf6c929f34ddfa8c9f63c9960ef6e348a3528c8a3fcc2f044e39a3fc5b94492f8f032e7549a20098f95b #...
4b3d75d1852aef260a7febd9d31e59ebc3b544a5b06e337152c63a5b22838a25
appleshan/cl-http
http-client-substrate-4-6.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*- Patch file for HTTP - CLIENT - SUBSTRATE version 4.6 Reason : Add the : CL - HTTP - CLIENT feature for code conditinalization . Written by JCMa , 12/17/00 04:26:18 while running on FUJI - VLM from FUJI:/usr / lib / sy...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/client/patch/http-client-substrate-4/http-client-substrate-4-6.lisp
lisp
Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*- DOMAIN - FIXES.LISP.33 ) , MAILBOX - FORMAT.LISP.24 ) , MAILER - FIXES.LISP.15 ) , Patch TCP hang on close when client drops connection. (from HTTP:LISPM;SERVER;TCP-PATCH-HANG-ON-CLOSE.LISP.10), FORMAT.LISP.20 ) , STATICE - PATCH.LISP.3 ) , ST...
Patch file for HTTP - CLIENT - SUBSTRATE version 4.6 Reason : Add the : CL - HTTP - CLIENT feature for code conditinalization . Written by JCMa , 12/17/00 04:26:18 while running on FUJI - VLM from FUJI:/usr / lib / symbolics / ComLink-39 - 8 - F - MIT-8 - 5.vlod with Open Genera 2.0 , Genera 8.5 , Documentati...
f83f362033748ce6fda1ab172301ce38bbd0c4390baf44c916c072284ec8680a
dalaing/little-languages
Int.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module STLC.Syntax.Int where import Data.Tagged import Term.Component.Int import STLC.Type int :: WithTmInt Type f a => Int -> Tagged TyInt (f a) int = Tagged . Term.Component.Int.int
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/classy/src/STLC/Syntax/Int.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module STLC.Syntax.Int where import Data.Tagged import Term.Component.Int import STLC.Type int :: WithTmInt Type f a => Int -> Tagged TyInt (f a) int = Tagged . Term.Component.Int.int
a89ac01d764e4124660330c9cd5c8c320793830da6f2b925dcd2cd14dd52a671
KaroshiBee/weevil
dap_initialize.ml
Initialization The Debug Adapter Protocol defines many features and this number is still growing , albeit slowly . However , the protocol is still at its first version because it was an explicit design goal to support new feature in a completely backward compatible way . Making this possible without version number...
null
https://raw.githubusercontent.com/KaroshiBee/weevil/1b166ba053062498c1ec05c885e04fba4ae7d831/lib/dapper/dap_initialize.ml
ocaml
Initialization The Debug Adapter Protocol defines many features and this number is still growing , albeit slowly . However , the protocol is still at its first version because it was an explicit design goal to support new feature in a completely backward compatible way . Making this possible without version number...
d9cb5c9d2449024b7b45a4f5904aed8ef7adad0a79a3d072744615d088c64238
jgm/hsb2hs
hsb2hs.hs
module Main where import Language.Haskell.Preprocessor import qualified Data.ByteString as B import System.Directory import System.Environment (getArgs) import Control.Arrow ((&&&), second) import Control.Applicative ((<$>)) import Control.Monad import System.FilePath import Data.Version (showVersion) import Paths_hsb...
null
https://raw.githubusercontent.com/jgm/hsb2hs/0783a947aaed223465b08aa30e5b3b1f7c9103b9/hsb2hs.hs
haskell
module Main where import Language.Haskell.Preprocessor import qualified Data.ByteString as B import System.Directory import System.Environment (getArgs) import Control.Arrow ((&&&), second) import Control.Applicative ((<$>)) import Control.Monad import System.FilePath import Data.Version (showVersion) import Paths_hsb...
49899104636e354fd462f08b1416673a843def11d3b0e7476ee7eded2af7f4e3
spell-music/csound-catalog
TheHeartbeat.hs
module Csound.Catalog.Wave.TheHeartbeat ( heartbeat, monoPluck, chorusel ) where import Csound.Base -- | Deep kick sound. heartbeat :: Sig heartbeat = phi 0.0024 f12 + phi 0.0078 f13 where phi dec ftab = oscili (linseg [1, xdur, dec, 1, dec]) 4 ftab f12 = sines2 [(10, 1), (16, 1.5), (22, 2), (23, 1....
null
https://raw.githubusercontent.com/spell-music/csound-catalog/2a4e12227bd6e27bc0eac05b3465e9a7f1f4bdbf/src/Csound/Catalog/Wave/TheHeartbeat.hs
haskell
| Deep kick sound. | | * dur - note duration * rise - rise time * dec - decay time * cps - frequency of the note
module Csound.Catalog.Wave.TheHeartbeat ( heartbeat, monoPluck, chorusel ) where import Csound.Base heartbeat :: Sig heartbeat = phi 0.0024 f12 + phi 0.0078 f13 where phi dec ftab = oscili (linseg [1, xdur, dec, 1, dec]) 4 ftab f12 = sines2 [(10, 1), (16, 1.5), (22, 2), (23, 1.5)] f13 = si...
89ff8fe072451bba9d5d7ca727624f762e90bb75a956849a370dcf80d0837826
kmi/irs
new.lisp
Mode : Lisp ; Package : The Open University (in-package "OCML") (in-ontology cobra)
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/cobra/new.lisp
lisp
Package :
The Open University (in-package "OCML") (in-ontology cobra)
586311dd8c34023d35dc3710fd05ace50379109f588952080b586ca96009de5d
franklindyer/cs357-ta-materials
hw1-skeleton.rkt
CS 357 , Spring 2023 ;; Homework #1 skeleton Problem 1.2 ;; Your answer here Problem 1.3 ;; Your answer here Problem 1.4 ;; Your answer here Problem 1.5 ;; Your answer here Problem 1.6 ;; Your answer here Problem 1.10 ;; Your answer here Problem 1.14 ;; Your answer here Problem 2.1 (define sec...
null
https://raw.githubusercontent.com/franklindyer/cs357-ta-materials/7f8745ad6bb29a9330004e420a048d8f7a055e23/scheme/skeletons/hw1-skeleton.rkt
racket
Homework #1 skeleton Your answer here Your answer here Your answer here Your answer here Your answer here Your answer here Your answer here Your answer here Problem 2.6 Your answer here Your answer here Your answer here Problem 2.15 Some test cases that will be used for grading: (juggle '(jump quick spo...
CS 357 , Spring 2023 Problem 1.2 Problem 1.3 Problem 1.4 Problem 1.5 Problem 1.6 Problem 1.10 Problem 1.14 Problem 2.1 (define second 0) Problem 2.3 Problem 2.4 (define juggle 0) Problem 2.7 Problem 2.10 (define last-item 0) (define member? 0) (define remove-1st 0) Problem 2.12...
93e4a6f8030f00098d8a0da164c3efa9c95ec84ead649f90a65f97a38aec527b
bobzhang/fan
location_ident.ml
module X = struct let x = 1 end let _ = X.x (* local variables: *) (* compile-command: "ocamlc -pp fan location_ident.ml" *) (* end: *)
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/testr/location_ident.ml
ocaml
local variables: compile-command: "ocamlc -pp fan location_ident.ml" end:
module X = struct let x = 1 end let _ = X.x
f3add5789084dc6db9d3d4891fc9adfe829958812a4da671a8ad76f1604dc009
vikram/lisplibraries
packages.lisp
;; -*- lisp -*- (in-package :cl-user) (defpackage :rfc2388-binary (:use :common-lisp) (:export #:parse-mime #:read-mime #:mime-part #:mime-part-p #:content #:content-type #:content-length #:content-charset #:headers #:get-header #:header-name #:header-value #:header-attrib...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/rfc2388-binary/source/packages.lisp
lisp
-*- lisp -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation an...
(in-package :cl-user) (defpackage :rfc2388-binary (:use :common-lisp) (:export #:parse-mime #:read-mime #:mime-part #:mime-part-p #:content #:content-type #:content-length #:content-charset #:headers #:get-header #:header-name #:header-value #:header-attributes #:get-he...
65d62372c3b669ae64864d9895aaec48bd08322a5f880e28f2891a2aaaf85152
andrewzhurov/brawl-haus
race.cljs
(ns brawl-haus.panels.race (:require [reagent.core :as r] [re-frame.core :as rf] [brawl-haus.panels :as panels] [brawl-haus.utils :refer [l <sub >evt <=sub defview view]] [cljs-time.core :as t] [cljs-time.coerce :as c] [cljs-time.format :as f] ...
null
https://raw.githubusercontent.com/andrewzhurov/brawl-haus/7f560c3dcee7b242fda545d87c102471fdb21888/src/cljs/brawl_haus/panels/race.cljs
clojure
(ns brawl-haus.panels.race (:require [reagent.core :as r] [re-frame.core :as rf] [brawl-haus.panels :as panels] [brawl-haus.utils :refer [l <sub >evt <=sub defview view]] [cljs-time.core :as t] [cljs-time.coerce :as c] [cljs-time.format :as f] ...
8adbfa31453095d6e8320e3139908da4ffdf2a1b4f095c3b4cd99f5eb14f1499
facebookarchive/duckling_old
finance.clj
( {} "$10" "10$" "deich dollair" (money 10 "$") ;"under $15" ;"no more than 15$" ;"no greater than 15$" " less than fifteen dollars " ( money 15 " $ " " < " ) "deich ceinteanna" (money 10 "cent") "$10,000" "10K$" "$10k" (money 10000 "$") "€10,000" "10K€" "€10k" (money 10000 "EUR") "USD1.23" (money 1.23 "USD") "...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/ga/corpus/finance.clj
clojure
"under $15" "no more than 15$" "no greater than 15$" unknown unit
( {} "$10" "10$" "deich dollair" (money 10 "$") " less than fifteen dollars " ( money 15 " $ " " < " ) "deich ceinteanna" (money 10 "cent") "$10,000" "10K$" "$10k" (money 10000 "$") "€10,000" "10K€" "€10k" (money 10000 "EUR") "USD1.23" (money 1.23 "USD") "2 dhollair agus 23 ceinteanna" "dhá dhollair 23 ceintean...
f1e342d3c613b938d1b5d5e7fa752b88b199e55cacf7ec730952a617fc17b096
commercialhaskell/stack
Main.hs
import StackTest main :: IO () main = do : Commenting this because we are supporting latest cabal -- version with this change. You can uncomment it when a newer cabal -- release is made. -- -format-changelog.html stackErr [ " --stack - yaml " , " stack-bad.yaml " , " build " , " --dry - run " ] -- stack...
null
https://raw.githubusercontent.com/commercialhaskell/stack/c20ff12abf2972fe8d33fb0a6ef4b6fe9ee757ec/test/integration/tests/4488-newer-cabal-version/Main.hs
haskell
version with this change. You can uncomment it when a newer cabal release is made. -format-changelog.html
import StackTest main :: IO () main = do : Commenting this because we are supporting latest cabal stackErr [ " --stack - yaml " , " stack-bad.yaml " , " build " , " --dry - run " ] stack ["--stack-yaml", "stack-good.yaml", "build", "--dry-run"]
9ac1c5a59c8d6c4b40d86db05fdd8477fc69b9ddc89839f2b513a61ccb7eb645
billstclair/trubanc-lisp
defcfun.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; defcfun.lisp --- Tests function definition and calling. ;;; Copyright ( C ) 2005 - 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , t...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cffi_0.10.4/tests/defcfun.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- defcfun.lisp --- Tests function definition and calling. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish,...
Copyright ( C ) 2005 - 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package #:c...
7ead209b795735845baa4b1aac0ad5e77457f14d24eabc7db32559ce2d57fff7
xapi-project/ocaml-opasswd
opasswd_test.ml
open Unix open OPasswd let tmp_shadow_file = Unix.getcwd () ^ "/dummy-shadow" let tmp_passwd_file = Unix.getcwd () ^ "/dummy-passwd" let test_name = ref "root" let chspwd_test name pass = let open Shadow in Printf.printf "Getting password for %s\n" name; let locked = lckpwdf () in Printf.printf "Lock acqu...
null
https://raw.githubusercontent.com/xapi-project/ocaml-opasswd/f7e608846d4f8a8b06343e97b662673897c73472/test/opasswd_test.ml
ocaml
print_endline @@ String.concat "\n" @@ List.map to_string db; print_endline @@ String.concat "\n" @@ List.map to_string db; Local Variables: indent-tabs-mode: nil End:
open Unix open OPasswd let tmp_shadow_file = Unix.getcwd () ^ "/dummy-shadow" let tmp_passwd_file = Unix.getcwd () ^ "/dummy-passwd" let test_name = ref "root" let chspwd_test name pass = let open Shadow in Printf.printf "Getting password for %s\n" name; let locked = lckpwdf () in Printf.printf "Lock acqu...
9fb821a7a853aa923c662b77a806f406a5e9d3732eb8bb2ca5bf679203297c50
mfikes/ilk
core.cljc
(ns ilk.core #?(:cljs (:require-macros [cljs.analyzer.macros]))) (defmacro inferred-type "Returns the inferred type tag for the supplied form." [form] `'~(cljs.analyzer/infer-tag &env (#?(:clj cljs.analyzer/no-warn :cljs cljs.analyzer.macros/no-warn) (cljs.analyzer/analyze &env form))))
null
https://raw.githubusercontent.com/mfikes/ilk/bb7f43df2ec64d8de3f8ff7035e871686653ef76/src/ilk/core.cljc
clojure
(ns ilk.core #?(:cljs (:require-macros [cljs.analyzer.macros]))) (defmacro inferred-type "Returns the inferred type tag for the supplied form." [form] `'~(cljs.analyzer/infer-tag &env (#?(:clj cljs.analyzer/no-warn :cljs cljs.analyzer.macros/no-warn) (cljs.analyzer/analyze &env form))))
d40dbe7fa0b420e76765cb7c800f652e31a7c6690c99ae57c3aba1de85673abc
janestreet/universe
rpc_direct_pipe.ml
open Core open Async module Sum_worker = struct module T = struct type 'worker functions = { sum : ('worker, int, string) Rpc_parallel.Function.Direct_pipe.t } module Worker_state = struct type init_arg = unit [@@deriving bin_io] type t = unit end module Connection_state = struct ...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/rpc_parallel/example/rpc_direct_pipe.ml
ocaml
open Core open Async module Sum_worker = struct module T = struct type 'worker functions = { sum : ('worker, int, string) Rpc_parallel.Function.Direct_pipe.t } module Worker_state = struct type init_arg = unit [@@deriving bin_io] type t = unit end module Connection_state = struct ...
371be50c697810cc8d0d886ef4ba4f66c19d474252b5cca7e046884138ed129a
rickeyski/slack-api
File.hs
# LANGUAGE OverloadedStrings , LambdaCase , TemplateHaskell # module Web.Slack.Types.File where import Data.Aeson import Data.Aeson.Types import Control.Applicative import Data.Text (Text) import qualified Data.Text as T import Data.Maybe import Control.Lens.TH import Web.Slack.Types.Id import Web.Slack.Types.Comment...
null
https://raw.githubusercontent.com/rickeyski/slack-api/5f6659e09bce19fe0ca9dfce8743bec7de518d77/src/Web/Slack/Types/File.hs
haskell
| Event information for when a file changes. Note, the Slack API a few ways.
# LANGUAGE OverloadedStrings , LambdaCase , TemplateHaskell # module Web.Slack.Types.File where import Data.Aeson import Data.Aeson.Types import Control.Applicative import Data.Text (Text) import qualified Data.Text as T import Data.Maybe import Control.Lens.TH import Web.Slack.Types.Id import Web.Slack.Types.Comment...
83f071e260d7108385d272a64f02609deaaf172ac2aedba65b5ac47cb3372c10
cky/guile
lexer.scm
Copyright ( C ) 2009 , 2010 Free Software Foundation , Inc. ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any ...
null
https://raw.githubusercontent.com/cky/guile/89ce9fb31b00f1f243fe6f2450db50372cc0b86d/module/language/elisp/lexer.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( C ) 2009 , 2010 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (language elisp lexer) ...
4af4cec1d98944e25c3cc8cf6948ddad5455626a3390fe5a36bcd3921140f9ed
jonschoning/pinboard
ApiTypes.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # -- | Module : Pinboard . Copyright : ( c ) , 2015 -- Maintainer : -- Stability : experiment...
null
https://raw.githubusercontent.com/jonschoning/pinboard/d6175e7966dd11fcd0fac9b90ea0db4988eb5410/src/Pinboard/ApiTypes.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # | Maintainer : Stability : experimental Portability : POSIX * Posts * Notes * Tags * Scalars prettyString :: String -> String prettyString s = case parseExp s of ParseOk x -> prettyPrint x ParseFailed{} -> s pretty :: Show a => a ->...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # Module : Pinboard . Copyright : ( c ) , 2015 module Pinboard.ApiTypes where import Data.Aeson import Data.Aeson.Types (Parser) import qualified Data.Aeson.KeyMap as ...
09e4dfac947502b2799b673b1fc88c65ce21a3271092eb76af4d020513a9ad6e
basho/basho_bench
basho_bench_measurement.erl
%% ------------------------------------------------------------------- %% %% basho_bench: Benchmarking Suite %% Copyright ( c ) 2009 - 2010 Basho Techonologies %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License...
null
https://raw.githubusercontent.com/basho/basho_bench/aa66398bb6a91645dbb97e91a236f3cdcd1f188f/src/basho_bench_measurement.erl
erlang
------------------------------------------------------------------- basho_bench: Benchmarking Suite Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the spe...
Copyright ( c ) 2009 - 2010 Basho Techonologies This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(basho_bench_measurement...
97057f0eeb46d605442fa4b9044687f0cc6705384449068599ed4724fa050ce6
wireapp/wire-server
Create.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- 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 Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/7f6a2903f2435736b9a498a853a48c3c5abdfb8d/services/galley/src/Galley/API/Create.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along You should have received a cop...
e45d431bbaec1510f0606ad1d914c9c5b4c75f9f96ac71ae998e1f49c491984d
bahulneel/om-datascript
project.clj
(defproject om-datascript "0.1.0" :description "Make om and datascript play nice" :url "-datascript" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo :comments "same as Clojure"} :dependencies [[org.clojure/clojure "1.7.0"] ...
null
https://raw.githubusercontent.com/bahulneel/om-datascript/d8359419434ff02b3eecd57c82e1fac7bc161c5e/project.clj
clojure
(defproject om-datascript "0.1.0" :description "Make om and datascript play nice" :url "-datascript" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo :comments "same as Clojure"} :dependencies [[org.clojure/clojure "1.7.0"] ...
d7fa40aecf4ee6c27e40e1c68dfb73530233848c0787ccd88124ccf75b1eaf52
ucsd-progsys/liquidhaskell
DataBase.hs
{-@ LIQUID "--expect-any-error" @-} {-@ LIQUID "--no-termination" @-} {-@ LIQUID "totality" @-} # OPTIONS_GHC -Wno - overlapping - patterns # module DataBase ( Table, Dict(..), (+=), P(..), values, empty, emptyTable, singleton, fromList, elem, union, diff, product, project, select, productD ) where import...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/benchmarks/icfp15/neg/DataBase.hs
haskell
@ LIQUID "--expect-any-error" @ @ LIQUID "--no-termination" @ @ LIQUID "totality" @ THE REST OF THIS FILE IS SAFE; just adding this to trigger an error to appease the "neg" gods. for example the ddom | x <- xs, y <- ys] product (x:xs) (y:ys) = [productD x y] -- [ productD x y | x <- xs, y <- ys] ORDERING IN LETS ...
# OPTIONS_GHC -Wno - overlapping - patterns # module DataBase ( Table, Dict(..), (+=), P(..), values, empty, emptyTable, singleton, fromList, elem, union, diff, product, project, select, productD ) where import qualified Data.Set as Set import Prelude hiding (product, union, filter, elem) @ : : @ si...
b666eb586cf46f4d7e88e068424a1ff4ecc296b89df3082f44b0fe1aa42b6643
slyrus/mcclim-old
presentation-history.lisp
;;; -*- Mode: Lisp; Package: GOATEE -*- ( c ) copyright 2004 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) an...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Goatee/presentation-history.lisp
lisp
-*- Mode: Lisp; Package: GOATEE -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License along...
( c ) copyright 2004 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GNU Library General Public Free Software Foundation , Inc...
79895df02b8e3dab9b50dc0d5ad4d6542119aff599ab11b3c39fc6b3155cb9dc
nominolo/lambdachine
Small0001.hs
# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples # -- RUN: %bc_vm_chk CHECK : @Result@ IND - > GHC.Types . module Test.Small0001 where import GHC.Prim import GHC.Types # NOINLINE g # g :: Int -> Int -> Bool g (I# n) (I# x) = isTrue# (n /=# x) test = g 6 4
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Test/Small0001.hs
haskell
RUN: %bc_vm_chk
# LANGUAGE NoImplicitPrelude , MagicHash , UnboxedTuples # CHECK : @Result@ IND - > GHC.Types . module Test.Small0001 where import GHC.Prim import GHC.Types # NOINLINE g # g :: Int -> Int -> Bool g (I# n) (I# x) = isTrue# (n /=# x) test = g 6 4
b23094db2cbceae461c7a5c13dd9695bd6166cf75a61cdebd28dddfc02bd7696
melange-re/melange
string_bound_get_test.ml
let v = "ghos" let u_a = v.[0] let u_b () = v.[-1] let u_c = "ghos".[0] let u_d () = "ghos".[-1] let u_e = Bytes.create 32 let u_f = Bytes.get u_e 0 let u_g () = Bytes.get u_e (-1)
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/string_bound_get_test.ml
ocaml
let v = "ghos" let u_a = v.[0] let u_b () = v.[-1] let u_c = "ghos".[0] let u_d () = "ghos".[-1] let u_e = Bytes.create 32 let u_f = Bytes.get u_e 0 let u_g () = Bytes.get u_e (-1)
469a1cae8890f39d1fec7b154040376b01837ee763578ea534e797135b5b7c91
heechul/crest-z3
ptranal.mli
* * Copyright ( c ) 2001 - 2002 , * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source code must retain the abov...
null
https://raw.githubusercontent.com/heechul/crest-z3/cfcebadddb5e9d69e9956644fc37b46f6c2a21a0/cil/src/ext/pta/ptranal.mli
ocaml
********************************************************************* Flags ****************************************...
* * Copyright ( c ) 2001 - 2002 , * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source code must retain the abov...
ae3a0227c027d4f88e4f737db7d9bd1dab8e0ef08bb81a33164962bbe4ada698
mirage/ca-certs
ca_certs.mli
val authenticator : ?crls:X509.CRL.t list -> ?allowed_hashes:Mirage_crypto.Hash.hash list -> unit -> (X509.Authenticator.t, [> `Msg of string ]) result * [ authenticator ~crls ~allowed_hashes ( ) ] detects the root CAs ( trust anchors ) in the operating system 's trust store using { ! trust_anchors } . It...
null
https://raw.githubusercontent.com/mirage/ca-certs/ed37d1fa92e8b9ab839eade01dd6bb0c65b26d80/lib/ca_certs.mli
ocaml
val authenticator : ?crls:X509.CRL.t list -> ?allowed_hashes:Mirage_crypto.Hash.hash list -> unit -> (X509.Authenticator.t, [> `Msg of string ]) result * [ authenticator ~crls ~allowed_hashes ( ) ] detects the root CAs ( trust anchors ) in the operating system 's trust store using { ! trust_anchors } . It...
8659bd755d57b88c280fc9f87211f3ebf75ec4ba121fd31f18aad5fc01002e57
AdRoll/rebar3_hank
ignore_all.erl
-module(ignore_all). -hank ignore.
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/5705de7e2d61f978f336eec9dbb4f60b226a4ed5/test/files/unused_ignores/ignore_all.erl
erlang
-module(ignore_all). -hank ignore.
036fef0ea150377634641344fc4b437cf1701f4ff4cec21ce87aeded33aab119
openmusic-project/OMChroma
add-1.lisp
;****************************************************************** ; CLASS ADD-1 ;****************************************************************** (in-package :om) ; LISP-DEFINED CLASSES SHOULD RESIDE IN THE LIBRARY'S PACKAGE AND ; NOT IN THE USER PACKAGE, WHICH CONTAINS ALL THE CLASSES ; GRAPHICALLY DE...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/cs-events/csound/classes/Basic/add-1.lisp
lisp
****************************************************************** CLASS ADD-1 ****************************************************************** LISP-DEFINED CLASSES SHOULD RESIDE IN THE LIBRARY'S PACKAGE AND NOT IN THE USER PACKAGE, WHICH CONTAINS ALL THE CLASSES GRAPHICALLY DEFINED INHERIT FROM CS-EV...
(in-package :om) (defclass! add-1 ( THE METHOD BELOW TRANSFORMS THEM INTO GLOBAL SLOTS ( " SHOW " UNCHEKED ) (source-code :initform (load-buffer-textfile (get-orc-source (get-orc "add-1")) 'textfile "supersede") :allocation :class ...
9ad458249aac922d85e830f903db56fb5ea2790a9f3020569540af48c1cc6a22
Kalimehtar/gtk-cffi
cairo.lisp
(in-package :gdk-cffi) (defcfun gdk-cairo-create :pointer (window pobject)) (defun cairo-create (window) (let* ((p (gdk-cairo-create window)) (context (make-instance 'cl-cairo2:context :pointer p))) (tg:finalize context #'(lambda () (cl-cairo2::cairo_destroy p))) context)) (defcfun gdk-cairo-set-s...
null
https://raw.githubusercontent.com/Kalimehtar/gtk-cffi/fbd8a40a2bbda29f81b1a95ed2530debfe2afe9b/gdk/cairo.lisp
lisp
(in-package :gdk-cffi) (defcfun gdk-cairo-create :pointer (window pobject)) (defun cairo-create (window) (let* ((p (gdk-cairo-create window)) (context (make-instance 'cl-cairo2:context :pointer p))) (tg:finalize context #'(lambda () (cl-cairo2::cairo_destroy p))) context)) (defcfun gdk-cairo-set-s...
3e512167386a3e8a6e06779239bfdf400d6482c9bf040a043096141ec4efe48a
Lysxia/test-monad-laws
Checkers.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Monad.Writer.Checkers where import Control.Monad.Writer import Control.Monad.State (StateT) import Test.QuickCheck (Gen, Property) import Test.QuickCheck.HigherOrder (CoArbitrary, ...
null
https://raw.githubusercontent.com/Lysxia/test-monad-laws/1cb9e116769771cb49fbd1614f50b05e120a2709/src/Test/Monad/Writer/Checkers.hs
haskell
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Monad.Writer.Checkers where import Control.Monad.Writer import Control.Monad.State (StateT) import Test.QuickCheck (Gen, Property) import Test.QuickCheck.HigherOrder (CoArbitrary, ...
063b03df778ba6d9a3c3d2819dee9d1fc71a971fbdbd05289d2a768673712170
agda/agda
ProblemRest.hs
module Agda.TypeChecking.Rules.LHS.ProblemRest where import Control.Monad import Control.Monad.Except import Data.Maybe import Agda.Syntax.Common import Agda.Syntax.Internal import Agda.Syntax.Internal.Pattern import qualified Agda.Syntax.Abstract as A import Agda.TypeChecking.Monad import Agda.TypeChecking.Pretty...
null
https://raw.githubusercontent.com/agda/agda/6142bde40cffb18239dac8d00fbe1266c5cf3c82/src/full/Agda/TypeChecking/Rules/LHS/ProblemRest.hs
haskell
| Rename the variables in a telescope using the names from a given pattern. If there are not at least as many patterns as entries as in the telescope, the names of the remaining entries in the telescope are unchanged. If there are too many patterns, there should be a type error later. telescope entries bey...
module Agda.TypeChecking.Rules.LHS.ProblemRest where import Control.Monad import Control.Monad.Except import Data.Maybe import Agda.Syntax.Common import Agda.Syntax.Internal import Agda.Syntax.Internal.Pattern import qualified Agda.Syntax.Abstract as A import Agda.TypeChecking.Monad import Agda.TypeChecking.Pretty...
a597ed678b0d2c4bb183c1c3acf9a8fc0db16b3dc21d54e0d70092adfa22dbac
smaccoun/servant-ts
Spec.hs
module Spec where import ServantTS.Convert import Control.Lens import Data.Maybe (fromMaybe) import Data.Proxy import APIs import Data.Text import ServantTS.Output.TSFunctions import Servant.API import Servant.Foreign (Foreign, GenerateList, Ha...
null
https://raw.githubusercontent.com/smaccoun/servant-ts/e615995e1e83e49e155aa996f93627a78084f4e9/lib/test/Spec.hs
haskell
module Spec where import ServantTS.Convert import Control.Lens import Data.Maybe (fromMaybe) import Data.Proxy import APIs import Data.Text import ServantTS.Output.TSFunctions import Servant.API import Servant.Foreign (Foreign, GenerateList, Ha...
b9ffd1a3bb2129f113213daaae6e7b7510588d24451fc6f79238beb758e09a42
bobzhang/ocaml-book
mlast.ml
-*- Mode : Tuareg ; -*- Version : $ I d : template.ml , v 0.0 2012/02/19 01:23:57 Version: $Id: template.ml,v 0.0 2012/02/19 01:23:57 bobzhang1988 Exp $ *) TYPE_CONV_PATH "Mlast" open Camlp4.PreCast open Printf open Sexplib open Sexplib.Std (** for std...
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/code/unify/mlast.ml
ocaml
* for stdlib * meta filter special treatment
-*- Mode : Tuareg ; -*- Version : $ I d : template.ml , v 0.0 2012/02/19 01:23:57 Version: $Id: template.ml,v 0.0 2012/02/19 01:23:57 bobzhang1988 Exp $ *) TYPE_CONV_PATH "Mlast" open Camlp4.PreCast open Printf open Sexplib module Loc = struct includ...
a749401822dd7b017ff03f99f08ba9b3976ccca7bcc9f6cae8860eb935bcb9c1
flora-pm/flora-server
PackageListHeader.hs
module FloraWeb.Components.PackageListHeader where import Data.Text (Text) import Data.Text.Display (display) import FloraWeb.Templates.Types import Lucid presentationHeader :: Text -- ^ Title of the listing. It can be a Category name, a search term -> Text -- ^ Subtitle; It can be a category description, or ...
null
https://raw.githubusercontent.com/flora-pm/flora-server/c214c0b5d5db71a8330eb69326284be5a4d5e858/src/web/FloraWeb/Components/PackageListHeader.hs
haskell
^ Title of the listing. It can be a Category name, a search term ^ Subtitle; It can be a category description, or being empty ^ Number of packages
module FloraWeb.Components.PackageListHeader where import Data.Text (Text) import Data.Text.Display (display) import FloraWeb.Templates.Types import Lucid presentationHeader :: Text -> Text -> Word -> FloraHTML presentationHeader title subtitle numberOfPackages = do div_ [class_ "divider"] $! do div_ [c...
21526dc42e9abaa92de82a32d60423b5c1b10ed11ad4d669d548d746206c26d0
zwizwa/erl_tools
bert_rpc.erl
-module(bert_rpc). -export([start_link/1, handle/2, call/5, call/6]). Ad - hoc tools for interacting with BERT RPC servers . Notes : %% - The other end sends {packet,4}, but why do we send raw ETF? %% Server ineterface. start_link(#{ spec := {_Host, _Port}} = Info) -> {ok, serv:start( {handler, ...
null
https://raw.githubusercontent.com/zwizwa/erl_tools/07645992e968c1456c9d0212f380afd1ffce4c1f/src/bert_rpc.erl
erlang
- The other end sends {packet,4}, but why do we send raw ETF? Server ineterface. log:info("bert_rpc: ~p~n", [Msg]), log:info("~p~n", [_Msg]), Makes it easier to use handle/2 as a delegate. log:info("error: ~p~n", [_Error]), blog:info("waiting ~p ms to reconnect~n", [Ms]), Perform just a call Close before parsi...
-module(bert_rpc). -export([start_link/1, handle/2, call/5, call/6]). Ad - hoc tools for interacting with BERT RPC servers . Notes : start_link(#{ spec := {_Host, _Port}} = Info) -> {ok, serv:start( {handler, fun() -> self() ! connect, Info end, fun wrap_bert_rpc:handle/2})}. ha...
46772cb3c727fe37b4bc8ba325197765c419047c14b3596797943b388cb18c24
appleby/99-lisp-problems
p09.lisp
;;;; (**) Pack consecutive duplicates of list elements into sublists. ;;;; If a list contains repeated elements they should be placed in separate sublists. ;;;; Example: ;;;; * (pack '(a a a a b c c a a d e e e e)) ;;;; ((A A A A) (B) (C C) (A A) (D) (E E E E)) (in-package :99-problems) (defun pack (lst) (labels ((...
null
https://raw.githubusercontent.com/appleby/99-lisp-problems/a12b2a585ac5af06f456f844d308bbada78e647c/p09.lisp
lisp
(**) Pack consecutive duplicates of list elements into sublists. If a list contains repeated elements they should be placed in separate sublists. Example: * (pack '(a a a a b c c a a d e e e e)) ((A A A A) (B) (C C) (A A) (D) (E E E E)) relies on (car '()) ==> '()
(in-package :99-problems) (defun pack (lst) (labels ((recur (lst acc) likewise ( cadr ' ( ) ) = = > ' ( ) (cond ((null lst) acc) ((equalp this next) (recur (cdr lst) (cons this acc))) (t (cons (cons this acc) (recur (cdr lst) '()))))))) (recur lst '()))) (define-test pack-test (assert-...
8482430bf370413fa6f7b6055b0495a4fc5021b78fdb2b89cf1e2466a329e969
VERIMAG-Polyhedra/VPL
Index.ml
(** This module type defines the type of indexes. An index is a plain vector of coefficients. It is given as a functor that depends on a type of coefficients. *) * This module defines the type of Scalar used as coefficients in Indexes module type Scalar = sig type t val z : t val u : t val negU: t val add : t -...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/lin/handelman/Index.ml
ocaml
* This module type defines the type of indexes. An index is a plain vector of coefficients. It is given as a functor that depends on a type of coefficients. * Functor of Index * Type of coefficients * Type of Index * [is_nonnegative ind] returns true if every element of index [ind] is nonnegative. * [mk l] build...
* This module defines the type of Scalar used as coefficients in Indexes module type Scalar = sig type t val z : t val u : t val negU: t val add : t -> t -> t val mul: t -> t -> t val to_string: t -> string val of_string: string -> t val le : t -> t -> bool val lt : t -> t -> bool val equal: t -> t -> bool ...
b78659eeb683d1d5bd91cbac1232bc412e8e50caf066540a9d06d4dc64ed8c4a
portkey-cloud/aws-clj-sdk
mediastore_data.clj
(ns portkey.aws.mediastore-data (:require [portkey.aws])) (def endpoints 'nil) (clojure.spec.alpha/def :portkey.aws.mediastore-data.delete-object-request/path (clojure.spec.alpha/and :portkey.aws.mediastore-data/path-naming)) (clojure.spec.alpha/def :portkey.aws.mediastore-data/delete-object-request (portkey.aws/json...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/mediastore_data.clj
clojure
(ns portkey.aws.mediastore-data (:require [portkey.aws])) (def endpoints 'nil) (clojure.spec.alpha/def :portkey.aws.mediastore-data.delete-object-request/path (clojure.spec.alpha/and :portkey.aws.mediastore-data/path-naming)) (clojure.spec.alpha/def :portkey.aws.mediastore-data/delete-object-request (portkey.aws/json...
71be87866c4697e7cc69b6e28e4bac8ea8d3979dfd2e72bc836c06f61234a148
KingoftheHomeless/in-other-words
BaseControl.hs
# LANGUAGE CPP , MagicHash # # OPTIONS_HADDOCK not - home # module Control.Effect.Type.Internal.BaseControl where import Data.Coerce import GHC.Exts (Proxy#, proxy#) import Control.Effect.Internal.Union import Control.Effect.Internal.Utils import Control.Effect.Internal.Itself import Control.Effect.Type.Optional impor...
null
https://raw.githubusercontent.com/KingoftheHomeless/in-other-words/9c864c81beb4fdf71d363b6962db5c90275c57ef/src/Control/Effect/Type/Internal/BaseControl.hs
haskell
base monad. of your own effects as a primitive if the power needed from direct access to the underlying monad can instead be provided by the relevant helper primitive effect. The reason why you'd want to do this is that helper primitive effects define any for your own effect. The helper primitive effects offere...
# LANGUAGE CPP , MagicHash # # OPTIONS_HADDOCK not - home # module Control.Effect.Type.Internal.BaseControl where import Data.Coerce import GHC.Exts (Proxy#, proxy#) import Control.Effect.Internal.Union import Control.Effect.Internal.Utils import Control.Effect.Internal.Itself import Control.Effect.Type.Optional impor...
7c6f578e2cf645125cb977da593fb15ea39c1d8d70de5f4f87b74bf494ced549
riemann/riemann-clojure-client
client.clj
(ns riemann.client "Network client for connecting to a Riemann server. Usage: (def c (tcp-client {:host \"monitoring.local\"})) (send-event c {:service \"fridge\" :state \"running\" :metric 2.0 :tags [\"joke\"]}) => #<com.riemann.riemann.client.MapPromise ......
null
https://raw.githubusercontent.com/riemann/riemann-clojure-client/82f2516fd56984cf145f86941acc2a8fdb13e6d1/src/riemann/client.clj
clojure
they will attempt to reconnect a dropped Transports Check options Create client Standard client Attempt to connect lazily. Client
(ns riemann.client "Network client for connecting to a Riemann server. Usage: (def c (tcp-client {:host \"monitoring.local\"})) (send-event c {:service \"fridge\" :state \"running\" :metric 2.0 :tags [\"joke\"]}) => #<com.riemann.riemann.client.MapPromise ......
2b4b3f48b3a7f49b9708530c76b031ff96a85e0bfe2fe906b8933675c06234e8
OCamlPro/scilint
ptset.mli
(**************************************************************************) (* *) copyright ( C ) (* *) (* This software is free software;...
null
https://raw.githubusercontent.com/OCamlPro/scilint/9d9ddd8e1630ddeae7f4f875bce62b2f65ec17d8/src/third_party/ptset.mli
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
copyright ( C ) modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking i $ I d : ptset.mli , v 1.10 2008 - 07 - 21 14:53:06 filliatr Exp $ i s Sets of integers implemented as trees . ...
99b891257b07e1cce6f76dabcfcf6da553ed0ccc1b956789f8f4948c90c4143e
locusmath/locus
morphism.clj
(ns locus.algebra.group.core.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.quiver.relation.binary.product :refer :all] [locus.set.logic.structure.proto...
null
https://raw.githubusercontent.com/locusmath/locus/12061072ccfe6a28f87eb8bd4489397dcf4b93d8/src/clojure/locus/algebra/group/core/morphism.clj
clojure
As groups are monoids with additional structure, the category of groups is equipped with an additional functor to Sets^(->) by its inversion function. So we provide a special class of group homomorphisms for dealing with extra functionality entailed by the category of groups. Constructors for group homomorphisms ...
(ns locus.algebra.group.core.morphism (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.quiver.relation.binary.product :refer :all] [locus.set.logic.structure.proto...
8b2d3e143f45aee4c70adb0f9be05560ff0fe684c9681d9d0ce1da5dac494d7b
mejgun/haskell-tdlib
RemoveRecentSticker.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.RemoveRecentSticker where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputFile as InputFile import qualified Utils as U -- | -- Removes a sticker from the list of recently used stickers @is_attached Pass tru...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/RemoveRecentSticker.hs
haskell
# LANGUAGE OverloadedStrings # | | Removes a sticker from the list of recently used stickers @is_attached Pass true to remove the sticker from the list of stickers recently attached to photo or video files; pass false to remove the sticker from the list of recently sent stickers @sticker Sticker file to delete | |
module TD.Query.RemoveRecentSticker where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputFile as InputFile import qualified Utils as U data RemoveRecentSticker = RemoveRecentSticker sticker :: Maybe InputFile.InputFile, is_attached :: Maybe Bool } de...
fb628d9829fa4e7bd5b2580b164911e505cb86dc602dde5097fd46aa3422f8fa
grin-compiler/ghc-wpc-sample-programs
Output.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # | Module : Text . Pandoc . Writers . Powerpoint . Output Copyright : Copyright ( C ) 2017 - 2020 License : GNU GPL , version 2 or above Maintainer : < > Stability : alpha Portability : portable Conv...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Writers/Powerpoint/Output.hs
haskell
# LANGUAGE OverloadedStrings # This populates the global ids map with images already in the template, so the ids won't be used by images introduced by the user. the difference between the number at the end of the slide file name and the rId number maps the slide number to the corresponding notes id number. If t...
# LANGUAGE PatternGuards # | Module : Text . Pandoc . Writers . Powerpoint . Output Copyright : Copyright ( C ) 2017 - 2020 License : GNU GPL , version 2 or above Maintainer : < > Stability : alpha Portability : portable Conversion of Presentation datatype ( d...
c950d320821e1fef39b9f13e409992c53286acd747ed5bec444012ce7a921ded
herbie-fp/rival
report.rkt
#lang racket (require math/bigfloat xml racket/date) (require biginterval) (require "../main.rkt") (require "format-mathematica.rkt") (struct idata (mpfi-error-hash rival-error-hash may-error-mpfi-good rival-samplable mpfi-samplable)) (define (get-mpfi-left mpfi) (bf-list->bf (first mpfi))) (define (get-mpfi-ri...
null
https://raw.githubusercontent.com/herbie-fp/rival/c21f8a1cee0bf9c7ab0c28b7da49e5c1fc90432f/infra/report.rkt
racket
#lang racket (require math/bigfloat xml racket/date) (require biginterval) (require "../main.rkt") (require "format-mathematica.rkt") (struct idata (mpfi-error-hash rival-error-hash may-error-mpfi-good rival-samplable mpfi-samplable)) (define (get-mpfi-left mpfi) (bf-list->bf (first mpfi))) (define (get-mpfi-ri...
b9e5a0df444da146442ec6349df41bf01cca62b19718e36dbf2eababdec0fed7
aantron/dream
promise.ml
let successful = ref 0 let failed = ref 0 let count_requests inner_handler request = try%lwt let%lwt response = inner_handler request in successful := !successful + 1; Lwt.return response with exn -> failed := !failed + 1; raise exn let () = Dream.run @@ Dream.logger @@ count_requests ...
null
https://raw.githubusercontent.com/aantron/dream/9bec26f837febae64e37a5eb39f7ef66914db4b1/example/5-promise/promise.ml
ocaml
let successful = ref 0 let failed = ref 0 let count_requests inner_handler request = try%lwt let%lwt response = inner_handler request in successful := !successful + 1; Lwt.return response with exn -> failed := !failed + 1; raise exn let () = Dream.run @@ Dream.logger @@ count_requests ...
1b28c8c69cfaac92f4c053b67b0902f5f9feb5de1c03a3e3dc8b6e7705ee8e59
WorksHub/client
views.cljc
(ns wh.company.jobs.views (:require #?(:cljs [wh.components.forms.views :refer [labelled-checkbox]]) [wh.company.jobs.db :as jobs] [wh.company.jobs.events :as events] [wh.company.jobs.subs :as subs] [wh.company.listing.views :refer [company-card]] [wh.compon...
null
https://raw.githubusercontent.com/WorksHub/client/d37c0bc0cd149a02fab6cd702ba6d23001e96405/common-pages/src/wh/company/jobs/views.cljc
clojure
(ns wh.company.jobs.views (:require #?(:cljs [wh.components.forms.views :refer [labelled-checkbox]]) [wh.company.jobs.db :as jobs] [wh.company.jobs.events :as events] [wh.company.jobs.subs :as subs] [wh.company.listing.views :refer [company-card]] [wh.compon...
51e632f66bd0f5a65595f4b1c4ae6e040617211cc94cb403546b50e9a44358c0
bytekid/mkbtt
termination.mli
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/termination/termination.mli
ocaml
** VALUES ************************************************************
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
716a6ecfe4c7bb546e422304a2bc25ea89a75fcc0eb93407709150b6bd00da99
balsoft/lambda-launcher
Wiki.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module LambdaLauncher.Plugins.Wiki where import LambdaLauncher.Types import LambdaLauncher.Plugins.Support import Control.Monad.IO.Class import Data.Aeson import Data.ByteString (ByteString) import Data.Default.Class import Data.Monoid ((<>)) import Dat...
null
https://raw.githubusercontent.com/balsoft/lambda-launcher/0f04c9d41a8ae64e7b28c68b7315a6c6e55765a8/src/LambdaLauncher/Plugins/Wiki.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # module LambdaLauncher.Plugins.Wiki where import LambdaLauncher.Types import LambdaLauncher.Plugins.Support import Control.Monad.IO.Class import Data.Aeson import Data.ByteString (ByteString) import Data.Default.Class import Data.Monoid ((<>)) import Data.Text (Text) import GHC.Generics i...
c5a0e1d6ccecb7b1e233b8715d5c06a04a90c24a14e36dca799d4ee9d2348c07
GregoryTravis/holfenstein
Physics.hs
module Physics ( physics ) where import Linear import Map import Math physics :: World -> V2 Double -> V2 Double -> V2 Double physics world oEye@(V2 ox oy) nEye@(V2 nx ny) = V2 cnx cny where (V2 ex ey) = floorV nEye nSolid = isSolid world ex ey lSolid = isSolid world (ex-1) ey rSolid = isSo...
null
https://raw.githubusercontent.com/GregoryTravis/holfenstein/fcb8743351700c701757dc13fb6defcde53be306/Physics.hs
haskell
module Physics ( physics ) where import Linear import Map import Math physics :: World -> V2 Double -> V2 Double -> V2 Double physics world oEye@(V2 ox oy) nEye@(V2 nx ny) = V2 cnx cny where (V2 ex ey) = floorV nEye nSolid = isSolid world ex ey lSolid = isSolid world (ex-1) ey rSolid = isSo...
2ed31ebe49bbd85429093e032685f2e3f0d729d0d0da0d8dcae4856bc4ab18b8
SNePS/SNePS2
nor.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : , v 1.2 2013/08/28 19:07:27 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file are subject t...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/nor.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations ...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : , v 1.2 2013/08/28 19:07:27 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " basis , WITHO...
1b01d42cc93b859ba29d526258e1796deac51b28c4298d316f36b824e1d3027a
bennn/trivial
define.rkt
#lang racket/base ;; Implement generic elaboration rules, ;; propagating prop. environments φ (provide (rename-out [-let let] [-let* let*] [-define define] [-set! set!])) ;; ----------------------------------------------------------------------------- (require (prefix-in tr- (only-in typed/rack...
null
https://raw.githubusercontent.com/bennn/trivial/c8fb9dcc377d1bf40ca167e34072bec90d2651e1/trivial/private/define.rkt
racket
Implement generic elaboration rules, propagating prop. environments φ ----------------------------------------------------------------------------- ============================================================================= - debug/fix 'class misuse of method (not in application) - plot-area.rkt - mines.r...
#lang racket/base (provide (rename-out [-let let] [-let* let*] [-define define] [-set! set!])) (require (prefix-in tr- (only-in typed/racket/base define let)) (for-syntax trivial/private/common typed/untyped-utils racket/base racket/syntax syntax/parse syntax/id-set ...
e48a84903038a2bc21d8da4dd2d7da50c2cdd198c14a6a088a92755d02f90763
rpav/spell-and-dagger
util.lisp
;;; Some of this may have been scraped from elsewhere (in-package :game) (defvar +time-units+ (coerce internal-time-units-per-second 'float)) (declaim (inline time-to-float)) (declaim (ftype (function (integer) float) time-to-float)) (defun time-to-float (time) (/ time +time-units+)) (defun current-time () (tim...
null
https://raw.githubusercontent.com/rpav/spell-and-dagger/0424416ff14a6758d27cc0f84c21bf85df024a7b/src/util.lisp
lisp
Some of this may have been scraped from elsewhere Box shortcut :say
(in-package :game) (defvar +time-units+ (coerce internal-time-units-per-second 'float)) (declaim (inline time-to-float)) (declaim (ftype (function (integer) float) time-to-float)) (defun time-to-float (time) (/ time +time-units+)) (defun current-time () (time-to-float (get-internal-real-time))) (defmacro with...
a474bdbf5b03edd504c748fddd628f4f4806c1e79f6e01bb0f121590dcd842fb
igrep/typesafe-precure
GoPrincess.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module ACME.PreCure.Textbook.GoPrincess where import ACME.PreCure.Types.TH import ACME.PreCure.Textbook.GoPrincess.Profiles {-# AN...
null
https://raw.githubusercontent.com/igrep/typesafe-precure/fc94f5f2c0ca8d8acc0b8eabe890a85bc305d7b3/src/ACME/PreCure/Textbook/GoPrincess.hs
haskell
# ANN module girls # # ANN module transformees # # ANN module transformations # # ANN module purifications # # ANN module nonItemPurifications #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module ACME.PreCure.Textbook.GoPrincess where import ACME.PreCure.Types.TH import ACME.PreCure.Textbook.GoPrincess.Profiles $(decl...
0406629ab2a7c1a298293d3dbb418f386c7ef8c83ccd9ce2d4e80dbb890d9c6f
ttuegel/loops
Bench.hs
module Main where import Criterion.Main import Data.Foldable import qualified Data.Vector.Unboxed as V import Prelude hiding (foldr) import Control.Monad.Loop.Unroll main :: IO () main = defaultMain [ bgroup "left" - The foldl benchmarks are for pure performance . " Loop 1 " - should perform ...
null
https://raw.githubusercontent.com/ttuegel/loops/45a04fac1245b053b7fe2ff9c5980883d5087b99/bench/Bench.hs
haskell
- The foldr benchmarks will show pretty poor performance - because foldr creates a new thunk for every iteration of the - loop. (This is common to foldr over all structures.) On the - other hand, the gains from unrolling will be much greater - than with foldl' because each subse...
module Main where import Criterion.Main import Data.Foldable import qualified Data.Vector.Unboxed as V import Prelude hiding (foldr) import Control.Monad.Loop.Unroll main :: IO () main = defaultMain [ bgroup "left" - The foldl benchmarks are for pure performance . " Loop 1 " - should perform ...
7829bb48576262ec860c0cc1677bdb7f0f30617a9f29a39c8e4152a1e30197ef
yallop/ocaml-ctypes
fts.ml
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes type fts_info = ...
null
https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/examples/fts/foreign/fts.ml
ocaml
| 9 -> FTS_INIT really a struct stat * fts_options would work well as a view FTSENT *fts_read(FTS *ftsp); FTSENT *fts_children(FTS *ftsp, int options); int fts_set(FTS *ftsp, FTSENT *f, int options); int fts_close(FTS *ftsp);
* Copyright ( c ) 2013 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2013 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes type fts_info = ...
ac6a9ae20280d5c39c9089a40f42bedbb459a421f6dd374cc12068f8ace3332f
xh4/web-toolkit
map-backtrace.lisp
(in-package #:trivial-backtrace) (defstruct frame func source-filename source-pos vars) (defstruct var name value) (defstruct pos-form-number number) (defmethod print-object ((pos-form-number pos-form-number) stream) (cond (*print-readably* (call-next-method)) (t (format stream "f~A" (...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/trivial-backtrace-20190710-git/dev/map-backtrace.lisp
lisp
XXX does not work
(in-package #:trivial-backtrace) (defstruct frame func source-filename source-pos vars) (defstruct var name value) (defstruct pos-form-number number) (defmethod print-object ((pos-form-number pos-form-number) stream) (cond (*print-readably* (call-next-method)) (t (format stream "f~A" (...
c3b61d1b4d99bd89d2cb8329bc2fc96d2dcce58dc905e0e7853302899d758281
serokell/fift-asm-dsl
Dictionary.hs
SPDX - FileCopyrightText : 2019 > -- SPDX - License - Identifier : MPL-2.0 # LANGUAGE InstanceSigs # # LANGUAGE NoApplicativeDo , RebindableSyntax # {-# OPTIONS_GHC -Wno-unused-do-bind #-} # LANGUAGE PolyKinds # module FiftAsm.Dictionary ( Dict , DSet , Size , newDict , ldDic...
null
https://raw.githubusercontent.com/serokell/fift-asm-dsl/d710e076d4212aa2cce4aa8bb15277d3b09c48af/src/FiftAsm/Dictionary.hs
haskell
# OPTIONS_GHC -Wno-unused-do-bind # Getter / Setter primitives but it seems to be unnecessary for our cases TODO It's bad idea to pass @Dict k v@ to action because the action can accedintally modify it. | Returns either @Just size@ or @Nothing@ if @size >= K@. if `size >= k`, let's replace a dict with empt one t...
SPDX - FileCopyrightText : 2019 > SPDX - License - Identifier : MPL-2.0 # LANGUAGE InstanceSigs # # LANGUAGE NoApplicativeDo , RebindableSyntax # # LANGUAGE PolyKinds # module FiftAsm.Dictionary ( Dict , DSet , Size , newDict , ldDict , stDict , dictGet ,...
c0361d46cc591c499ce43d698c2e70a38ccb94f316c09f46025aa125cad83fbf
philnguyen/soft-contract
utils.rkt
#lang racket/base (provide article random-between d6 d20 random-from random ) (require (only-in racket/list first) (only-in racket/file file->value) ) ;; ============================================================================= (define random (let ([r* (box '(2 10 24 3 0 2 10 45 2 2 2 2 49 3 1...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/dungeon/utils.rkt
racket
=============================================================================
#lang racket/base (provide article random-between d6 d20 random-from random ) (require (only-in racket/list first) (only-in racket/file file->value) ) (define random (let ([r* (box '(2 10 24 3 0 2 10 45 2 2 2 2 49 3 1 5 1 0 0 2 1 0 2 1 0 0 2 2 5 0 0 0 3 0 1 2 0 3 0 0 2 2 0 2 2 0 0 3 0 0 2 0 3 1 0 ...
75a92ef128cd65ff036230e1cf6090ecc33af4c8a7ac609609ce53272cabd6f3
eugeneia/athens
core.lisp
(in-package :cl-user) (defpackage cl-annot.core (:nicknames :annot.core) (:use :cl) (:export :annotation-real :annotation-arity :annotation-inline-p :annotation-form :annotation-form-p :%annotation)) (in-package :annot.core) (defun annotation-real (annot) ...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/cl-annot-20150608-git/src/main/core.lisp
lisp
(in-package :cl-user) (defpackage cl-annot.core (:nicknames :annot.core) (:use :cl) (:export :annotation-real :annotation-arity :annotation-inline-p :annotation-form :annotation-form-p :%annotation)) (in-package :annot.core) (defun annotation-real (annot) ...
d6a1eaf720f9739b6dafadae49cd75c384031d187f0240d45624895a9fcc6689
tsloughter/kuberl
kuberl_v1beta1_custom_resource_definition_list.erl
-module(kuberl_v1beta1_custom_resource_definition_list). -export([encode/1]). -export_type([kuberl_v1beta1_custom_resource_definition_list/0]). -type kuberl_v1beta1_custom_resource_definition_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_custom_resource_definition_list.erl
erlang
-module(kuberl_v1beta1_custom_resource_definition_list). -export([encode/1]). -export_type([kuberl_v1beta1_custom_resource_definition_list/0]). -type kuberl_v1beta1_custom_resource_definition_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v...
f15a78821c085336830c3c636e8743e27656e312bdfc3652e5b6cf2edd777a62
angavrilov/cl-gpu
driver-api.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; Copyright ( c ) 2010 by . ;;; ;;; See LICENCE for details. ;;; ;;; This file contains low-level lisp wrappers for the CUDA Driver API. ;;; (in-package :cl-gpu) (def (special-variable e) *cuda-debug* t "Enables a debugging-oriented operation mode for CUDA code.") ...
null
https://raw.githubusercontent.com/angavrilov/cl-gpu/1523ec3c42db904815f7276a776d354ec30c6b7b/cuda/driver-api.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; -*- See LICENCE for details. This file contains low-level lisp wrappers for the CUDA Driver API. Error handling Driver initialization Device count Device capabilities Reference lists; the weak ones must be shared with the copy used by the finalizer. A callback for post...
Copyright ( c ) 2010 by . (in-package :cl-gpu) (def (special-variable e) *cuda-debug* t "Enables a debugging-oriented operation mode for CUDA code.") (define-condition cuda-driver-error (error) ((method-name :initarg :method :reader method-name) (error-code :initarg :error :reader error-code)) (:report...
d00fbc644867389aa5ce0be98416315023926c7fb2f539d1f429161a6cd6b5c3
xsc/peripheral
lifecycle.clj
(ns peripheral.component.lifecycle (:require [com.stuartsierra.component :as component])) # # Component Class Consistency (defn assert-class-consistency "Make sure both components have the same class, otherwise throw Exception." [k component component'] (if component' (if (= (class component') (class...
null
https://raw.githubusercontent.com/xsc/peripheral/5eafb7d8fcb0afda1c81fa103a7467d486862203/src/peripheral/component/lifecycle.clj
clojure
shutting them down again ## Passive Lifecycle ## Active Lifecycle ## Lifecycle Run
(ns peripheral.component.lifecycle (:require [com.stuartsierra.component :as component])) # # Component Class Consistency (defn assert-class-consistency "Make sure both components have the same class, otherwise throw Exception." [k component component'] (if component' (if (= (class component') (class...
ceeb1b274d1d47a84cfda0092c961650c52f60ac4d5401d0f5a23c57df5ed39b
8c6794b6/haskell-sc-scratch
Type.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : unknown Representation of scsynth node tree . Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstab...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/hsc3-tree/src/lib/Sound/SC3/Tree/Type.hs
haskell
# LANGUAGE DeriveDataTypeable # * Types * Converter * Util ---------------------------------------------------------------------------- Types ---------------------------------------------------------------------------- # UNPACK # ^ Group node # UNPACK # ^ Synth node | Data type for synth param. ^ Double value...
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : unknown Representation of scsynth node tree . Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : unknown Representa...
0c146d0729880b247d13244178d44536c88864645dc5bcf188a60624c93f5766
kenkeiras/EPC
phash.erl
%%% @doc %%% pHash port interface. %%% @end -module(phash). -export([hash/1, start/0, stop/0]). -export([pHash/0]). % Machine endianness -define(ENDIANNESS, little). -define(PHASH_BINARY_DIRECTORY, "priv"). -define(PHASH_BINARY_FILE_NAME, "phash_port"). -define(PHASH_BINARY_PATH, filename:join(?PHASH_BINARY_DIRECTOR...
null
https://raw.githubusercontent.com/kenkeiras/EPC/1e903475e1e597fd602158df45c5805a764333bf/src/phash.erl
erlang
@doc pHash port interface. @end Machine endianness pHash port implementation Extract perception hash from the given image file data *NOT* an image url or 2D matrix or anything of the like, an 1D array representing a image file. Stop phash service pHash port registration Pad a list appending 0's until it reac...
-module(phash). -export([hash/1, start/0, stop/0]). -export([pHash/0]). -define(ENDIANNESS, little). -define(PHASH_BINARY_DIRECTORY, "priv"). -define(PHASH_BINARY_FILE_NAME, "phash_port"). -define(PHASH_BINARY_PATH, filename:join(?PHASH_BINARY_DIRECTORY, ?PHASH_BINARY_FILE_NA...
93094b0c341f47cd3901bf212fc0c7d820d5dc511b1663af40ce9e7f5b3aa8f9
johnlawrenceaspden/hobby-code
database.clj
(use 'clojure.contrib.sql) (def db {:classname "org.hsqldb.jdbcDriver" :subprotocol "hsqldb" :subname "file:post-db" }) (defn create-posts [] (create-table :posts [:key :int "IDENTITY" "PRIMARY KEY" ] [:text :varchar "NOT NULL" ])) (defn insert-post [text] "add a post and return the ke...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/database.clj
clojure
need doall, or connection is closed before sequence is realized. make a database if it doesn't already exist some operations
(use 'clojure.contrib.sql) (def db {:classname "org.hsqldb.jdbcDriver" :subprotocol "hsqldb" :subname "file:post-db" }) (defn create-posts [] (create-table :posts [:key :int "IDENTITY" "PRIMARY KEY" ] [:text :varchar "NOT NULL" ])) (defn insert-post [text] "add a post and return the ke...
8af2e7da21edbe3786aac58d80f9157a3973288fed82090a30191a048b2de4f1
clj-commons/etaoin
dev.clj
(ns etaoin.dev "Chrome devtools features" (:require [cheshire.core :as json] [clojure.string :as str] [etaoin.api :as api])) (defn- try-parse-int [line] (try (Integer/parseInt line) (catch Exception _e line))) (defn- parse-json [string] (json/parse-string string true)) (defn- par...
null
https://raw.githubusercontent.com/clj-commons/etaoin/66178f84b6a432cf6ada24b00fb280cbc569f9c7/src/etaoin/dev.clj
clojure
default
(ns etaoin.dev "Chrome devtools features" (:require [cheshire.core :as json] [clojure.string :as str] [etaoin.api :as api])) (defn- try-parse-int [line] (try (Integer/parseInt line) (catch Exception _e line))) (defn- parse-json [string] (json/parse-string string true)) (defn- par...
aefb43deb0ae49497662cafb35672ddc6b20384e69de37bed447508d2f578d56
LuisThiamNye/chic
font.clj
(ns chic.ui.font (:require [taoensso.encore :as enc] [chic.ui :as cui]) (:import (io.github.humbleui.skija TextLine Font Typeface) (io.github.humbleui.skija.shaper ShapingOptions))) (defn ^TextLine shape-line-default [font text] (.shapeLine cui/shaper text font ShapingOptions/DEFAULT)) (defn calc-si...
null
https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/src/chic/ui/font.clj
clojure
(ns chic.ui.font (:require [taoensso.encore :as enc] [chic.ui :as cui]) (:import (io.github.humbleui.skija TextLine Font Typeface) (io.github.humbleui.skija.shaper ShapingOptions))) (defn ^TextLine shape-line-default [font text] (.shapeLine cui/shaper text font ShapingOptions/DEFAULT)) (defn calc-si...
62b2b5018548a3cc521c7133bc22e1b3dfad75177b354ed819c64ca25447fe3a
pschachte/wybe
Transform.hs
File : Transform.hs Author : , Zed(Zijun ) -- Purpose : Transform LPVM after alias analysis Copyright : ( c ) 2018 - 2019 . All rights reserved . License : Licensed under terms of the MIT license . See the file -- : LICENSE in the root directory of this project. # LANGUAGE La...
null
https://raw.githubusercontent.com/pschachte/wybe/7914ff3bd3649fb22b3e6d884f46ef95f6effb0d/src/Transform.hs
haskell
Purpose : Transform LPVM after alias analysis : LICENSE in the root directory of this project. -------------------------------------------------------------- Transform mutate instructions with correct destructive flag This is the extra pass after found the alias analysis fixed point ------------------...
File : Transform.hs Author : , Zed(Zijun ) Copyright : ( c ) 2018 - 2019 . All rights reserved . License : Licensed under terms of the MIT license . See the file # LANGUAGE LambdaCase # module Transform (transformProc, generateSpeczVersionInProc, expandRequiredSpeczVersionsByMod...
ffcee5da29e177b7269f30b8f6545f3e3734a248e34bda67c4a1de7618f0a927
project-fifo/vmwebadm
list.cljs
(ns server.images.list (:use [server.utils :only [clj->js prn-js clj->json transform-keys prn log]]) (:require [server.vm :as vm] [cljs.nodejs :as node] [server.storage :as storage] [clojure.string :as c.s] [server.http :as http])) (def fs (node/require "fs")) (de...
null
https://raw.githubusercontent.com/project-fifo/vmwebadm/55d83bbc0ac6db8ea1d784c73d91bf4f228fa04a/src/server/images/list.cljs
clojure
(ns server.images.list (:use [server.utils :only [clj->js prn-js clj->json transform-keys prn log]]) (:require [server.vm :as vm] [cljs.nodejs :as node] [server.storage :as storage] [clojure.string :as c.s] [server.http :as http])) (def fs (node/require "fs")) (de...
064b559220bdd7efcd8fc923f31aaf2d369ec45e6d5d848df9fd10cc018d710e
reborg/clojure-essential-reference
1.clj
< 1 > < 2 > [(. p x) (. p y)] ;; [0 0] (set! (. p -x) 1) ; <3> (set! (. p -y) 2) [(. p x) (. p y)] [ 1 2 ]
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/MutationandSideEffects/set!/1.clj
clojure
[0 0] <3>
< 1 > < 2 > [(. p x) (. p y)] (set! (. p -y) 2) [(. p x) (. p y)] [ 1 2 ]
45c73c308e28548626277241ed6f4f70d4737766f5a7a2c853b9d45d0a392f92
aws-beam/aws-erlang
aws_outposts.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure , APIs , and tools to customer premises . %% By providing local access to Amazon Web Services managed infrastructur...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_outposts.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! applications on premises using the same programming interfaces as in resources for lower latency and local data processing needs. ==================================================================== API ==================================================================== ...
See -beam/aws-codegen for more details . @doc Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure , APIs , and tools to customer premises . By providing local access to Amazon Web Services managed infrastructure , Amazon Web Services Outposts enables custom...
98bde0e68eaf56b0e57f0c2277b2d39c52d775076cb907f30b491032b3def16d
mstksg/inCode
VecWrappedSingletons.hs
#!/usr/bin/env stack -- stack --install-ghc runghc --resolver nightly-2017-08-20 --package finite-typelits --package singletons-2.3.1 -- -Wall {-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # {-# LANGUAGE KindSignatures #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables ...
null
https://raw.githubusercontent.com/mstksg/inCode/e1f80a3dfd83eaa2b817dc922fd7f331cd1ece8a/code-samples/fixvec-2/VecWrappedSingletons.hs
haskell
stack --install-ghc runghc --resolver nightly-2017-08-20 --package finite-typelits --package singletons-2.3.1 -- -Wall # LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE RankNTypes # alternatively, via pattern matching:
#!/usr/bin/env stack # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # import Data.Finite import Data.Singletons import Data.Singletons.Decide import Data.Singletons.TypeLits import qualified Data.Vector as V data...
567f5894d6cf592adf1132abd635652508c5f37c85ddcd1b6692c631fb11b4ed
tdammers/migrant
Migrant.hs
module Database.Migrant ( Driver (..) , MigrationName , MigrationDirection , migrate , plan ) where import Database.Migrant.Driver.Class import Database.Migrant.MigrationName import Database.Migrant.Run
null
https://raw.githubusercontent.com/tdammers/migrant/2bcbd3fc2eae1290f7cba6bd4fc7cc69ac0d24f2/migrant-core/src/Database/Migrant.hs
haskell
module Database.Migrant ( Driver (..) , MigrationName , MigrationDirection , migrate , plan ) where import Database.Migrant.Driver.Class import Database.Migrant.MigrationName import Database.Migrant.Run
23d54877d4cc66218d0b8ea8e3e01d29df74453ee89490ed2cd2c0217b8fd998
ddmcdonald/sparser
content-output.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 2022 -- all rights reserved ;;; ;;; File: "content-output" ;;; Module: "objects/doc/" Version : January 2022 initiated 1/11/22 to organize printing content to files . ;; Modeled on scheme used in comlex output: model/sl...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/d4e86ad7f241de3a4d1f7680146693518ca4743d/Sparser/code/s/objects/doc/content-output.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "content-output" Module: "objects/doc/" Modeled on scheme used in comlex output: model/sl/score/. --------------------------------------------- requiring reading through the output of a large run in the REPL to find them. Intended for by-e...
copyright ( c ) 2022 -- all rights reserved Version : January 2022 initiated 1/11/22 to organize printing content to files . (in-package :sparser) First use is to preserve the uncategorized edge records without (defparameter *motif-configurations-stream* nil "Will be set to the open file stream w...
f6d289732a39d5d4054600c09831d69ee749e825069002771d84801b97363a26
mishun/tangles
Flypes.hs
# LANGUAGE UnboxedTuples # module Math.Topology.KnotTh.Tabulation.TangleFlypeClasses.Flypes ( minimumFlypeCode , additionalFlypeSymmetry ) where import qualified Data.Vector.Unboxed as UV import qualified Data.Vector.Unboxed.Mutable as UMV import Text.Printf import Math.Topology.KnotTh.Algebra.Dihedral.Dn ...
null
https://raw.githubusercontent.com/mishun/tangles/9af39dd48e3dcc5e3944f8d060c8769ff3d81d02/src/Math/Topology/KnotTh/Tabulation/TangleFlypeClasses/Flypes.hs
haskell
# LANGUAGE UnboxedTuples # module Math.Topology.KnotTh.Tabulation.TangleFlypeClasses.Flypes ( minimumFlypeCode , additionalFlypeSymmetry ) where import qualified Data.Vector.Unboxed as UV import qualified Data.Vector.Unboxed.Mutable as UMV import Text.Printf import Math.Topology.KnotTh.Algebra.Dihedral.Dn ...
7a6ecbad811896c59f8296e8a3e5a74a547e7c3f0a2569f30bcb6f26a2a847f0
mhuebert/re-db
websocket.cljc
(ns re-db.notebooks.tools.websocket "Small clojure(script) server(client) websocket API" (:require #?(:clj [org.httpkit.server :as http]) [applied-science.js-interop :as j] [re-db.sync.transit :as t] [re-db.sync :as sync])) (def default-options {:pack t/pack ...
null
https://raw.githubusercontent.com/mhuebert/re-db/de8325558610d7b31a1109ea3bc280b401159d2d/src/notebooks/re_db/notebooks/tools/websocket.cljc
clojure
A full-stack websocket API, which can
(ns re-db.notebooks.tools.websocket "Small clojure(script) server(client) websocket API" (:require #?(:clj [org.httpkit.server :as http]) [applied-science.js-interop :as j] [re-db.sync.transit :as t] [re-db.sync :as sync])) (def default-options {:pack t/pack ...
4af5aba606650189d7437815d6d50191c08c7556e3dbb75786939201587d49f3
eyedouble/couchdb
couchdb_doc.erl
%% @hidden -module(couchdb_doc). -author('Benoît Chesneau <>'). -include("couchdb.hrl"). -export([set_value/3, get_value/2, get_value/3, take_value/2, take_value/3, delete_value/2, extend/2, extend/3]). -export([get_id/1, get_rev/1, get_idrev/1, is_saved/1]). @spec get_id(Doc::json_obj ( ) ) - > b...
null
https://raw.githubusercontent.com/eyedouble/couchdb/39830e536e803dfb492bfdb8b3644839cdd7e356/src/legacy/in_use/couchdb_doc.erl
erlang
@hidden @doc get document id. @doc get document revision. @doc get a tuple containing docucment id and revision. @doc If document have been saved (revision is defined) return true, else, return false. ISAN: DROP THIS! @type key_val() = lis() | binary() function from erlang_couchdb it form json object it fro...
-module(couchdb_doc). -author('Benoît Chesneau <>'). -include("couchdb.hrl"). -export([set_value/3, get_value/2, get_value/3, take_value/2, take_value/3, delete_value/2, extend/2, extend/3]). -export([get_id/1, get_rev/1, get_idrev/1, is_saved/1]). @spec get_id(Doc::json_obj ( ) ) - > binary ( ) g...
c3895932a4ae02d8ee47d45840665eb47508b994201fb72bcc8fa22232cea7f1
erlang/sourcer
sourcer_layout.erl
%%% @doc Support the basic discovery of apps %%% and layout for the project. -module(sourcer_layout). -export([ detect_layouts/1, detect_layout/1 ]). -include("debug.hrl"). -include("sourcer_model.hrl"). -define(DEFAULT_REBAR_BUILD_DIR, "_build"). -define(DEFAULT_PROJECT_APP_DIRS, ["apps", "lib", "deps", "l...
null
https://raw.githubusercontent.com/erlang/sourcer/27ea9c63998b9e694eb7b654dd05b831b989e69e/apps/sourcer/src/sourcer_layout.erl
erlang
@doc Support the basic discovery of apps and layout for the project. Assume Dir is root of a project.
-module(sourcer_layout). -export([ detect_layouts/1, detect_layout/1 ]). -include("debug.hrl"). -include("sourcer_model.hrl"). -define(DEFAULT_REBAR_BUILD_DIR, "_build"). -define(DEFAULT_PROJECT_APP_DIRS, ["apps", "lib", "deps", "libs"]). -define(DEFAULT_REBAR_CHECKOUTS_DIR, "_checkouts"). -define(DEFAULT_TE...
b785d7a065337d04ed7d6c0fc6f624aebc6cd701ed9df19e49a94ab6c1804f96
darrenldl/ProVerif-ATP
parser.ml
type token = | COMMA | LPAREN | RPAREN | LBRACKET | RBRACKET | SEMI | COLON | IDENT of (Ptree.ident) | INT of (int) | RED | EQUIV | EQUIVEQ | EQUAL | FUN | EQUATION | QUERY | NOUNIF | SLASH | STAR | DOT | WEDGE | EOF | NOT | ELIMTRUE | DIFF | PREDICATE | REDUCTION ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/parser.ml
ocaml
COMMA LPAREN RPAREN LBRACKET RBRACKET SEMI COLON RED FUN EQUATION QUERY SLASH STAR WEDGE NOT PREDICATE REDUCTION DATA SET NAME TYPE FORALL IDENT INT Entry all Entry tall
type token = | COMMA | LPAREN | RPAREN | LBRACKET | RBRACKET | SEMI | COLON | IDENT of (Ptree.ident) | INT of (int) | RED | EQUIV | EQUIVEQ | EQUAL | FUN | EQUATION | QUERY | NOUNIF | SLASH | STAR | DOT | WEDGE | EOF | NOT | ELIMTRUE | DIFF | PREDICATE | REDUCTION ...
f9267e69d22db80efb909561784badbed5e4a47bc79a488780d6e912b22d1df5
mbj/stratosphere
Stratosphere.hs
-- | This is a library for creating AWS CloudFormation templates. -- CloudFormation is a system that creates AWS resources from declarative templates . One common criticism of CloudFormation is its use of JSON as the -- template specification language. Once you have a large number of templates, -- possibly includin...
null
https://raw.githubusercontent.com/mbj/stratosphere/7c462f2de4369a76df22d4b34b2f3a9e7754c731/src/Stratosphere.hs
haskell
| This is a library for creating AWS CloudFormation templates. template specification language. Once you have a large number of templates, possibly including cross-references among themselves, raw JSON templates become unwieldy, and it becomes harder to confidently modify them. Stratosphere alleviates this issue ...
CloudFormation is a system that creates AWS resources from declarative templates . One common criticism of CloudFormation is its use of JSON as the module Stratosphere ( module Exports , awsAccountId , awsNoValue , awsRegion , awsStackId , awsStackName ) where import Data.Function ...
73ccbe75cf6413bccf08ce44583eb22ad0a27d1653ceba6cc5043a9f0b890720
scalaris-team/scalaris
db_dht.erl
2009 - 2015 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software ...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/db_dht.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2009 - 2015 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @author < > @author < > -module(db_dht). -author(''). -author(''). -author(''). -vsn('$Id$'). -include("...
bdc76cda54178a0c90db9701dd401f6806803abdd912ded25f1a8de88f78fa96
EmileTrotignon/embedded_ocaml_templates
exemple.ml
(* <%# firstname lastname email birthdate phonenumber formations experiences %>*) (* (date_start, date_end, diploma, school) *) (* (date, title, company, location, description) *) let _john = "John" let = [ % eml { |<%-john% > < _ % i-23%>| } ] let john2 = [%eml {|<%-john%> ...
null
https://raw.githubusercontent.com/EmileTrotignon/embedded_ocaml_templates/2baf51d1b07db050fe535615018864e7e850ce38/exemples/exemple.ml
ocaml
<%# firstname lastname email birthdate phonenumber formations experiences %> (date_start, date_end, diploma, school) (date, title, company, location, description)
let _john = "John" let = [ % eml { |<%-john% > < _ % i-23%>| } ] let john2 = [%eml {|<%-john%> <_%i-23%>|}] *) let () = Templates.exemple " " " " 01/01/1970 " " 1234567890 " [ ( " 1994 " , " 1995 " , " Master of Science " , " University MacCollege " ...
2677c37d2be56c99a17d17ec62174f691b33a513a2bbe886a4edce8f2eb38096
ocaml-community/lambda-term
lTerm_draw.ml
* lTerm_draw.ml * ------------- * Copyright : ( c ) 2011 , < > * Copyright : ( c ) 2019 , DoYe < > * Licence : BSD3 * * This file is a part of Lambda - Term . * lTerm_draw.ml * ------------- * Copyright : (c) 2011, Jeremie Dimino <> * Copyright : (c) 2019, ZAN DoYe <> * Licence : ...
null
https://raw.githubusercontent.com/ocaml-community/lambda-term/8d323b24135a97e30f9a4d10baf93612dc871c1c/src/lTerm_draw.ml
ocaml
* lTerm_draw.ml * ------------- * Copyright : ( c ) 2011 , < > * Copyright : ( c ) 2019 , DoYe < > * Licence : BSD3 * * This file is a part of Lambda - Term . * lTerm_draw.ml * ------------- * Copyright : (c) 2011, Jeremie Dimino <> * Copyright : (c) 2019, ZAN DoYe <> * Licence : ...
ef83e0cb06c94a5dba479b190ea1af06ca9fc5d447ea1c59c5d0587bdd667725
antoniogarrote/levanzo
payload_test.clj
(ns levanzo.payload-test (:require [clojure.test :refer :all] [levanzo.payload :as payload] [levanzo.namespaces :as lns] [levanzo.spec.utils :as spec-utils] [clojure.spec.test :as stest])) (deftest context-test (spec-utils/check-symbol `payload/context) (with-bindi...
null
https://raw.githubusercontent.com/antoniogarrote/levanzo/53a8fa134099b3ad6310bfc3493cc1fb9eb38f2f/test/levanzo/payload_test.clj
clojure
(ns levanzo.payload-test (:require [clojure.test :refer :all] [levanzo.payload :as payload] [levanzo.namespaces :as lns] [levanzo.spec.utils :as spec-utils] [clojure.spec.test :as stest])) (deftest context-test (spec-utils/check-symbol `payload/context) (with-bindi...
9eda92df681c7919df85e1b606de62f435b46d9172de5b98ecbf817b736e6973
aria42/infer
linear_models_test.clj
(ns infer.linear-models-test (:use clojure.test) (:require [infer.io :as io]) (:use infer.matrix) (:use infer.measures) (:use infer.linear-models)) (def height (column-matrix [1.47 1.5 1.52 1.55 1.57 1.6 1.63 1.65 1.68 1.7 1.73 1.75 1.78 1.8 1.83])) (def weight (column-matrix [52.21 53.12 5...
null
https://raw.githubusercontent.com/aria42/infer/9849325a27770794b91415592a8706fd90777469/test/infer/linear_models_test.clj
clojure
(deftest lasso-test (let [X (io/csv->matrix "/home/bradford/infer/data/lars_x.csv") Y (io/csv->matrix "/home/bradford/infer/data/lars_y.csv") B (io/csv->matrix "/home/bradford/infer/data/lars_betas.csv") lambda (get-at (io/csv->matrix "/home/bradford/infer/data/lars_lambda.csv") 0 0) ourB (lasso Y ...
(ns infer.linear-models-test (:use clojure.test) (:require [infer.io :as io]) (:use infer.matrix) (:use infer.measures) (:use infer.linear-models)) (def height (column-matrix [1.47 1.5 1.52 1.55 1.57 1.6 1.63 1.65 1.68 1.7 1.73 1.75 1.78 1.8 1.83])) (def weight (column-matrix [52.21 53.12 5...
97d19ee7dd441a06917b92dbdf18104231b046416582d76f2d8f687f834d7e0f
Helium4Haskell/helium
UnifierCaseLeft.hs
test b = case b of True -> "hello" 0 -> "world"
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Heuristics/UnifierCaseLeft.hs
haskell
test b = case b of True -> "hello" 0 -> "world"
f20acfcebf2479a9f503ac12ee0974aff5e125b41bd12d007dc764a21feeb42a
pokepay/aws-sdk-lisp
sns.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (uiop:define-package #:aws-sdk/services/sns (:use) (:use-reexport #:aws-sdk/services/sns/api))
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/836b87df520391478a19462443342dc56f4b3f2c/services/sns.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/sns (:use) (:use-reexport #:aws-sdk/services/sns/api))