_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
142eab694b1da173e088b190fee364f0c130bb39119048c7eed89e9e4dbabf52
KestrelInstitute/Specware
ImpureIO.lisp
(defpackage :IO-Spec) (defpackage :ImpureIO) (in-package :ImpureIO) ;; We want to avoid writing code that depends on the Lisp representation of Specware terms so we have 4 instances of open May need state in the IO monad to record ;; what streams are open and to close them when one leaves the monad. (defun op...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/Library/Structures/Data/Monad/Handwritten/Lisp/ImpureIO.lisp
lisp
We want to avoid writing code that depends what streams are open and to close them when one leaves the monad. writes to a closed stream. Correction. Maybe stream-error.
(defpackage :IO-Spec) (defpackage :ImpureIO) (in-package :ImpureIO) on the Lisp representation of Specware terms so we have 4 instances of open May need state in the IO monad to record (defun openFileRead (name) (handler-case (mkOk (open name)) (file-error (condition) (handle-open-error name condition)...
996f584fb27cc1754adf0f8568571465f26a3c2f8c74e7b7b268427179900a56
fragnix/fragnix
Network.HTTP2.Encode.hs
{-# LANGUAGE Haskell2010 #-} {-# LINE 1 "Network/HTTP2/Encode.hs" #-} # LANGUAGE RecordWildCards # module Network.HTTP2.Encode ( encodeFrame , encodeFrameChunks , encodeFrameHeader , encodeFrameHeaderBuf , encodeFramePayload , EncodeInfo(..) , encodeInfo ) where import Data.Bits (shiftR, (.&.)) impo...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Network.HTTP2.Encode.hs
haskell
# LANGUAGE Haskell2010 # # LINE 1 "Network/HTTP2/Encode.hs" # -------------------------------------------------------------- | Auxiliary information for frame encoding. | Flags to be set in a frame header | Stream id to be set in a frame header | Padding if any. In the case where this value is set but the priority ...
# LANGUAGE RecordWildCards # module Network.HTTP2.Encode ( encodeFrame , encodeFrameChunks , encodeFrameHeader , encodeFrameHeaderBuf , encodeFramePayload , EncodeInfo(..) , encodeInfo ) where import Data.Bits (shiftR, (.&.)) import qualified Data.ByteString as BS import Data.ByteString.Internal (By...
022384d3c0a8256db299f99fe3e0b8104f98c8628f2aa72d3662aef4ef7f6d6b
brainly/flood
flood_session_utils.erl
-module(flood_session_utils). -author(''). -export([json_match/2, json_subst/2, combine/2, sio_type/1, sio_opcode/1, get_value/2, get_value/3, get_value/4]). -include("socketio.hrl"). %% Some helper functions: json_match(Subject, Pattern) -> case catch json_do_match(Subject, Pattern) of nomatch -> nomatc...
null
https://raw.githubusercontent.com/brainly/flood/0ee7f436d3ca5e9b89e608e60ca3486ecd3689c4/src/flood_session_utils.erl
erlang
Some helper functions: Helper functions: NOTE Can't just match against [] since it might be an actual JSON array.
-module(flood_session_utils). -author(''). -export([json_match/2, json_subst/2, combine/2, sio_type/1, sio_opcode/1, get_value/2, get_value/3, get_value/4]). -include("socketio.hrl"). json_match(Subject, Pattern) -> case catch json_do_match(Subject, Pattern) of nomatch -> nomatch; Matches -> {mat...
dbb3a209028b2d6a58bd02f0462e876f6b3792791f0aaae07d4c72be3fdfbc94
bsaleil/lc
nboyer.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultbak/m5rponly/nboyer.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks File: nboyer.sch ...
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst) `(vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make-vector ,...
29b62b4aca8c4fbaa404785d13a3150fc9d2c29d05445b00eb3cfcbe731a29eb
tommaisey/aeon
rossler.help.scm
(hear (mul (rossler ar 4 0.08) 0.1))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/chaos/rossler.help.scm
scheme
(hear (mul (rossler ar 4 0.08) 0.1))
881f85856461060e13504873b3421118f30727473e79de96143352b453097a6e
alesaccoia/festival_flinger
utt1.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Centre for Speech Technology Research ; ; University of Edinburgh , UK ; ; ;;; ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/testsuite/data/utt1.scm
scheme
;; ; ; Copyright (c) 1996,1997 ;; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this softwar...
(set! utt1 (Utterance Text "hello, this example has three syllables.")) (utt.synth utt1) (format t "num syllables: %d\n" (length (utt.features utt1 'Syllable '(name)))) (set! segs (utt.relation.items utt1 'Segment)) (set! s1 (item.relation.parent (nth 2 segs) 'SylStructure)) (set! s2 (item.relation.parent (nth 3 se...
b213f9bf6acac7939aab6a4ba179bce66a083d12c9b786dfc13e9dc0c6af6d4b
thoughtbot/distance-of-time
DistanceSpec.hs
module Data.Time.DistanceSpec ( main , spec ) where import qualified Data.Time as T import Data.Time.Distance import Test.Hspec import Test.Hspec.QuickCheck import Test.QuickCheck instance Arbitrary T.Day where arbitrary = T.fromGregorian <$> cho...
null
https://raw.githubusercontent.com/thoughtbot/distance-of-time/9cbf32c861e54a38e82e7bf60b9247dedf4c8069/test/Data/Time/DistanceSpec.hs
haskell
module Data.Time.DistanceSpec ( main , spec ) where import qualified Data.Time as T import Data.Time.Distance import Test.Hspec import Test.Hspec.QuickCheck import Test.QuickCheck instance Arbitrary T.Day where arbitrary = T.fromGregorian <$> cho...
92b8f832ab368508f2c59e2e80923d9060a45302956f95621541144829af7a55
mx-psi/libreim-quantum
Deutsch.hs
# LANGUAGE MonoLocalBinds # Title : Deutsch - Jozsa algorithm Author : Title: Deutsch-Jozsa algorithm Author: Pablo Baeyens -} module Deutsch( deutschJozsa ,getType ) where import Oracle (Oracle, shape, circuit) import Quipper import QuipperLib.Simulation -- | The type of an oracle data OracleType = ...
null
https://raw.githubusercontent.com/mx-psi/libreim-quantum/6e0a66ec44f75c3d4032c4643248ab1b8ea92d5a/deutsch/Deutsch.hs
haskell
| The type of an oracle ^ A balanced oracle ^ A constant oracle | Implements the Deustch algorithm. (see generalized version at `deustchJozsa`) Apply Hadamard gates to each qubit Apply oracle Apply Hadamard gate again to x Measure and discard | Implements the Deustch-Jozsa algorithm. Apply Hadamard gates to ...
# LANGUAGE MonoLocalBinds # Title : Deutsch - Jozsa algorithm Author : Title: Deutsch-Jozsa algorithm Author: Pablo Baeyens -} module Deutsch( deutschJozsa ,getType ) where import Oracle (Oracle, shape, circuit) import Quipper import QuipperLib.Simulation data OracleType = deriving (Eq, Show) Gi...
5b03914942a514d1f13e7bdb682e0290f81fdc9cf78406190877e37f5fa1b419
jordwalke/rehp
js_of_ocaml_lwt.ml
Js_of_ocaml library * / * Copyright ( C ) 2017 Hugo Heuzard * * This program 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 , with linking exception ; * either version 2.1 of the...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/lwt/js_of_ocaml_lwt.ml
ocaml
Js_of_ocaml library * / * Copyright ( C ) 2017 Hugo Heuzard * * This program 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 , with linking exception ; * either version 2.1 of the...
a6c0e4359d96d516d340b568aeb2908f8430c2b1dd334a98d92b02d85cd3231a
HumbleUI/HumbleUI
tree.clj
(ns examples.tree (:require [io.github.humbleui.core :as core] [io.github.humbleui.paint :as paint] [io.github.humbleui.ui :as ui])) (defn random-green [] (let [r (+ 32 (rand-int 32)) g (+ 192 (rand-int 32)) b (+ 32 (rand-int 32))] (unchecked-int (bit-or (unchecked-i...
null
https://raw.githubusercontent.com/HumbleUI/HumbleUI/937a7232fe4f00a781970c7bd6fb853d9a82a939/dev/examples/tree.clj
clojure
TODO real timer
(ns examples.tree (:require [io.github.humbleui.core :as core] [io.github.humbleui.paint :as paint] [io.github.humbleui.ui :as ui])) (defn random-green [] (let [r (+ 32 (rand-int 32)) g (+ 192 (rand-int 32)) b (+ 32 (rand-int 32))] (unchecked-int (bit-or (unchecked-i...
f8fe6b95f82e57b60b9d230f07c441c70a0c21c0a27821583d95274cfd254122
mworrell/s3filez
s3filez_app.erl
@doc Main app code . Ensure the httpc profiles are present , start the %% supervisor for the queued jobs. @author 2013 - 2020 Copyright 2013 - 2020 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may ob...
null
https://raw.githubusercontent.com/mworrell/s3filez/4db89f324175ab5f13c628cfa7dc0bc51e2a1fcc/src/s3filez_app.erl
erlang
supervisor for the queued jobs. 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...
@doc Main app code . Ensure the httpc profiles are present , start the @author 2013 - 2020 Copyright 2013 - 2020 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(s3filez_app). -behaviour(application)....
69ca9f9cb4218d3c0295ac21f9eaf5e5f38e911aaf724011a9600b49c8eb6c3a
tfausak/patrol
BreadcrumbType.hs
module Patrol.Type.BreadcrumbType where import qualified Data.Aeson as Aeson data BreadcrumbType = Default | Http | Navigation deriving (Eq, Show) instance Aeson.ToJSON BreadcrumbType where toJSON breadcrumbType = Aeson.toJSON $ case breadcrumbType of Default -> "default" Http -> "http" Navigat...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/library/Patrol/Type/BreadcrumbType.hs
haskell
module Patrol.Type.BreadcrumbType where import qualified Data.Aeson as Aeson data BreadcrumbType = Default | Http | Navigation deriving (Eq, Show) instance Aeson.ToJSON BreadcrumbType where toJSON breadcrumbType = Aeson.toJSON $ case breadcrumbType of Default -> "default" Http -> "http" Navigat...
97919b397e2e69c8b3b97bd111fce76c59b40a71c728a7a0a2b40b00f2f0ca76
nikita-volkov/rerebase
Product.hs
module Data.Functor.Product ( module Rebase.Data.Functor.Product ) where import Rebase.Data.Functor.Product
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Functor/Product.hs
haskell
module Data.Functor.Product ( module Rebase.Data.Functor.Product ) where import Rebase.Data.Functor.Product
6861c1aa982c565306618e70acd55b38574723c72b06fedb3d3e90158b529886
EFanZh/EOPL-Exercises
exercise-5.40-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-5.40.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (check-equal? (run "zero?...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-5.40-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-5.40.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (check-equal? (run "zero?...
e77315c370a45819d57eb01ccd6d60d048b8be3fb38036c0bf68d746fe990111
thosmos/riverdb
workspaces.cljs
(ns riverdb.workspaces (:require [nubank.workspaces.core :as ws] [riverdb.demo-ws])) (defonce init (ws/mount))
null
https://raw.githubusercontent.com/thosmos/riverdb/b47f01a938da26298ee7924c8b2b3a2be5371927/src/workspaces/riverdb/workspaces.cljs
clojure
(ns riverdb.workspaces (:require [nubank.workspaces.core :as ws] [riverdb.demo-ws])) (defonce init (ws/mount))
f53831815de7698bf6ea17263301ae317f775d281a0a3c467c9a33bf8ec9c0b9
Elzair/nazghul
traps_2.scm
;; ---------------------------------------------------------------------------- ;; Level 2 of the Thief's Ladder ;; ---------------------------------------------------------------------------- (mk-dungeon-room 'p_traps_2 "The Choice" (list "xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx " "xx ,, ,, ,, ,...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/traps_2.scm
scheme
---------------------------------------------------------------------------- Level 2 of the Thief's Ladder ---------------------------------------------------------------------------- secret path through wall ladders "down" that link to each other monster generators doors true ladder down
(mk-dungeon-room 'p_traps_2 "The Choice" (list "xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx " "xx ,, ,, ,, ,, ,, ,, ,, xx xx xx ,, ,, ,, ,, ,, ,, ,, xx " "xx ,, ,, ,, ,, ,, ,, ,, xx xx xx ,, ,, ,, ,, ,, ,, ,, xx " "xx ,, ,, ,, ,, ,, ,, ,, xx xx xx ,, ,, ,, ,, ,, ,, ,, xx " "xx ,, ,, ,, ,, ,, ,,...
883e9aa33a3d705e182bb891950b9b2fa2bad7e36d2ce62c6dec8a98411d0d41
kraison/cl-neo4j
main.lisp
(in-package :cl-neo4j.tests) (defun run-all-tests () (run! 'cl-neo4j)) (def-suite cl-neo4j)
null
https://raw.githubusercontent.com/kraison/cl-neo4j/f74c835d81b5c41581ae8f80959a6a186413efc8/test/main.lisp
lisp
(in-package :cl-neo4j.tests) (defun run-all-tests () (run! 'cl-neo4j)) (def-suite cl-neo4j)
6ed9ce2c7ce5e6c5dbd9e3eadb0cd582210f3a85b443f4d0c3300c5dea41377f
liquidz/misaki
2013-03-03-post3.html.clj
; @layout post @title The quick brown fox ; @tag tag2 tag3 (def MAX 50) (defn int->html-color [max-num n] (let [x (int (/ (* 255 n) max-num)) s (Integer/toHexString (- 255 x)) s (if (next s) s (str "0" s))] (str "#" s s s))) (defn make-paragraph [n s] [:p {:style (str "font-size: ...
null
https://raw.githubusercontent.com/liquidz/misaki/b8104e632058e3b3da4487513d10e666e5914ec9/samples/blog/template/posts/2013-03-03-post3.html.clj
clojure
@layout post @tag tag2 tag3
@title The quick brown fox (def MAX 50) (defn int->html-color [max-num n] (let [x (int (/ (* 255 n) max-num)) s (Integer/toHexString (- 255 x)) s (if (next s) s (str "0" s))] (str "#" s s s))) (defn make-paragraph [n s] [:p {:style (str "font-size: " n "px; color: " (int->html-color MA...
916fce984f3e352d0b4946ed8bf17ed1c416587476c6ed36170923d0f0c7c087
nathanaelbayle/programming-language
CalculatorExternalPrimitivesAST.hs
-- | AST for variable based integer calculator with open ended set of primitive functions. -- -- Author Magne Haveraaen Since 2020 - 03 - 19 module CalculatorExternalPrimitivesAST where ----------------------- -- | Expressions for a calculator with variables. -- The calculator supports integer literals Lit, -- an ...
null
https://raw.githubusercontent.com/nathanaelbayle/programming-language/4ee0c0c2aa34ee1cb6fa6d7c37f28bc2bfee25bd/INF222%20Pamphlets/INF222%20-%20Pamphlet%206/CalculatorExternalPrimitivesAST.hs
haskell
| AST for variable based integer calculator with open ended set of primitive functions. Author Magne Haveraaen --------------------- | Expressions for a calculator with variables. The calculator supports integer literals Lit, an open ended set of primitive functions Fun, and | Statement for declaring (setting) a...
Since 2020 - 03 - 19 module CalculatorExternalPrimitivesAST where an open ended set of variables Var . data CalcExprAST = Lit Integer | Fun String [CalcExprAST] | Var String deriving (Eq, Read, Show) data CalcStmtAST = SetVar String CalcExprAST | AssVar String CalcExprAST deriving (Eq, Read, Show...
d8be28fc0e12da6750b0adcca7276faa84e96d842d508ed44df5b372de31c982
samrushing/irken-compiler
t_base64.scm
;; -*- Mode: Irken -*- (include "lib/basis.scm") (include "lib/map.scm") (include "lib/codecs/base64.scm") (define t0 "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable genera...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_base64.scm
scheme
-*- Mode: Irken -*- test u26->ch test ch->u26 test u26->b64 test b64->u26 test ch->u26->b64 test b64->u26->ch from the wikipedia page
(include "lib/basis.scm") (include "lib/map.scm") (include "lib/codecs/base64.scm") (define t0 "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exce...
693a3b13300012b6ef690d1d24500bf4e1e735350092ffb9933da01628090f9e
life0fun/clojure-idiom
mockstub.clj
(ns mockstub.core (:use clojure.test)) ; to upper fn (defn to-upper [s] (.toUpperCase (str s))) ; test to upper fn with a set of is assertion (deftest test-to-upcase (is (= "RATHORE" (to-upper "rathore"))) (is (= "1" (to-upper 1))) (is (= "AMIT" (to-upper "AMIT")))) ; or use are assertion (deftest test-t...
null
https://raw.githubusercontent.com/life0fun/clojure-idiom/481b297eeabea917a68b492b1fb78b8151408507/mockstub.clj
clojure
to upper fn test to upper fn with a set of is assertion or use are assertion a mock records the fact that it was called with a specific set of args so we can verify api is called properly later from mock log. dynamic binding for test driven stub take a list of pairs of [fn-name mock-form] and dynamic binding moc...
(ns mockstub.core (:use clojure.test)) (defn to-upper [s] (.toUpperCase (str s))) (deftest test-to-upcase (is (= "RATHORE" (to-upper "rathore"))) (is (= "1" (to-upper 1))) (is (= "AMIT" (to-upper "AMIT")))) (deftest test-to-upcase (are [l u] (= u (to-upper l)) "RATHORE" "RATHORE" "1" "1" "am...
5a8fef81406a472f3789e972741273be627b9fd85c41b2df68fd51e75dccfbeb
danidiaz/foldl-transduce
ByteString.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ViewPatterns # # LANGUAGE GeneralizedNewtypeDeriving # -- | -- -- Pour handles into folds, -- write to handles using folds. module Control.Foldl.Transduce.ByteString ( -- * Reading from handles drainHandle , ChunkSize , chunkSize , chunkSizeDefa...
null
https://raw.githubusercontent.com/danidiaz/foldl-transduce/0d9aec28433f5184e36949b6e651c990e291420c/src/Control/Foldl/Transduce/ByteString.hs
haskell
# LANGUAGE RankNTypes # | Pour handles into folds, write to handles using folds. * Reading from handles * Writing to handles | Feed a fold with bytes read from a 'Handle'. | Maximum chunk size ^ max chunk size adapted from foldM in Pipes.Prelude
# LANGUAGE ViewPatterns # # LANGUAGE GeneralizedNewtypeDeriving # module Control.Foldl.Transduce.ByteString ( drainHandle , ChunkSize , chunkSize , chunkSizeDefault , toHandle , toHandleBuilder ) where import qualified Control.Foldl as L import Control.Foldl.Transduce impo...
21d27633564eaf8f8786b50d6d2910f5bed04a2b146cfed935363db9dc61cf23
camfort/camfort
CheckFrontend.hs
Copyright 2016 , , , , 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 distribute...
null
https://raw.githubusercontent.com/camfort/camfort/3421e85f6fbbcaa6503a266b3fae029a09d2ff24/src/Camfort/Specification/Stencils/CheckFrontend.hs
haskell
* Stencil checking ** Validation Results ** Helpers TODO: Replace instances of this with logging of errors and warnings Ensures correct ordering of results. | Represents only the check results for invalid stencils. | Represents only the check results that resulted in warnings. Nothing if there are no invalid c...
Copyright 2016 , , , , 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 distribute...
24e87c9094d302f4addf666dbc446c0725d94d3823fd83348b4d6b3c5a7a94d2
clojure-emacs/refactor-nrepl
ns_parser.clj
(ns refactor-nrepl.ns.ns-parser "Extracts a list of imports or libspecs from an ns form. A libspec looks like this: {:ns my-ns :as my-alias :refer [referred symbols here] ; or :all :rename {:rename :spec} :only [only these symbols] ;; rest are cljs specific :refer-macros [referred macros here...
null
https://raw.githubusercontent.com/clojure-emacs/refactor-nrepl/90898755daa293ec917642a34fd1c01476c3a3da/src/refactor_nrepl/ns/ns_parser.clj
clojure
or :all rest are cljs specific drop :import
(ns refactor-nrepl.ns.ns-parser "Extracts a list of imports or libspecs from an ns form. A libspec looks like this: {:ns my-ns :as my-alias :rename {:rename :spec} :only [only these symbols] :refer-macros [referred macros here] :require-macros true}" (:require [clojure.java.io :as io] [c...
8bb4532f343fecb745c3fb9c945b460dc9ec25d367d3d7caa2dbdcb3e47deb66
Helium4Haskell/helium
AsPatternBinding2.hs
a@(b, c) = (2, 3) main = (a, b, c)
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/AsPatternBinding2.hs
haskell
a@(b, c) = (2, 3) main = (a, b, c)
0ac2b7a2ff1f5b779287a53685d79383a0aca2644de1395413637eabb58c347d
shayan-najd/NativeMetaprogramming
holes.hs
module Holes where f = _ g :: Int -> Char g x = _ h = _ ++ "a" z :: [a] -> [a] z y = const y _
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_compile/holes.hs
haskell
module Holes where f = _ g :: Int -> Char g x = _ h = _ ++ "a" z :: [a] -> [a] z y = const y _
8c5b8a599faa8d722cac06132d794a8071f6671a23efed053e4fc0b77a8da173
robert-strandh/SICL
make-instance-defmethods.lisp
(cl:in-package #:sicl-clos) (defmethod make-instance ((class symbol) &rest initargs) (apply #'make-instance (find-class class) initargs)) The HyperSpec only recognizes methods on MAKE - INSTANCE specialized ;;; to SYMBOL and STANDARD-CLASS. However, the AMOP clearly says that ENSURE - GENERIC - FUNCTION calls ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/2963ccf7a189a6bafeef959e55614f4a18e474ea/Code/CLOS/make-instance-defmethods.lisp
lisp
to SYMBOL and STANDARD-CLASS. However, the AMOP clearly says is to specialize the method on MAKE-INSTANCE to some superclass function to instantiate the generic function class, in violation of the AMOP. which is the most special superclass of STANDARD-CLASS and that the method is specialized to CLASS. So for ...
(cl:in-package #:sicl-clos) (defmethod make-instance ((class symbol) &rest initargs) (apply #'make-instance (find-class class) initargs)) The HyperSpec only recognizes methods on MAKE - INSTANCE specialized that ENSURE - GENERIC - FUNCTION calls MAKE - INSTANCE , and the default class that is instantiated is ...
79766b91a086786eda9588d910424d491a555b8da91a1ac35c8f9cab55e832f2
UBTECH-Walker/WalkerSimulationFor2020WAIC
_package_EndpointState.lisp
(cl:in-package ubt_core_msgs-msg) (cl:export '(HEADER-VAL HEADER POSE-VAL POSE TWIST-VAL TWIST WRENCH-VAL WRENCH ))
null
https://raw.githubusercontent.com/UBTECH-Walker/WalkerSimulationFor2020WAIC/7cdb21dabb8423994ba3f6021bc7934290d5faa9/walker_WAIC_16.04_v1.2_20200616/walker_install/share/common-lisp/ros/ubt_core_msgs/msg/_package_EndpointState.lisp
lisp
(cl:in-package ubt_core_msgs-msg) (cl:export '(HEADER-VAL HEADER POSE-VAL POSE TWIST-VAL TWIST WRENCH-VAL WRENCH ))
50663fb4ac0751e69cfd61ca493695651e58f556f4f2e2c8b5779e94b94be4d0
soegaard/racket-cas
info.rkt
#lang info (define collection "racket-cas") (define deps '("base" "racket" "math-lib" "scribble-lib" "rackunit-lib")) (define build-deps '("base" "racket" "math-lib" "scribble-lib" "rackunit-lib" "racket-doc" "at-exp-lib"))
null
https://raw.githubusercontent.com/soegaard/racket-cas/dfa875554249fdac6c48b4d292dfc4da93e1f1fd/racket-cas/info.rkt
racket
#lang info (define collection "racket-cas") (define deps '("base" "racket" "math-lib" "scribble-lib" "rackunit-lib")) (define build-deps '("base" "racket" "math-lib" "scribble-lib" "rackunit-lib" "racket-doc" "at-exp-lib"))
e1e0c0fc346502561ee801ed9f5c8fd289f783403ca24981a09f7c489e3a3782
conjure-cp/conjure
Parts.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.Parts where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified Data.HashMap.Strict as M -...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/Parts.hs
haskell
aeson unordered-containers vector
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.Parts where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpParts x = OpParts x deriving (Eq, Ord, Show, Data, Functor, Traversable, Foldable, Typeable, ...
919f3ca0780d4979f8f62914ce3a7b19fdc5442ec84ecdd9329858d09464585d
adrieng/pulsar
word.ml
This file is part of Pulsar , a temporal functional language . * Copyright ( C ) 2017 * * This program is free software : you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation , either version 3 of the License , or ...
null
https://raw.githubusercontent.com/adrieng/pulsar/c3901388659d9c7978b04dce0815e3ff9aea1a0c/warp/word.ml
ocaml
This file is part of Pulsar , a temporal functional language . * Copyright ( C ) 2017 * * This program is free software : you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation , either version 3 of the License , or ...
7c4439668f3e3e280e1c89c72b1c788e84304c91862af4955214429fe564765d
OctopiChalmers/haski
C.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # module Haski.Backend.C where import Text.PrettyPrint.HughesPJClass (Pretty(..)) import Haski.OBC import qualified Haski.OBC as OBC import Haski.Type import Haski.Util import Haski.Core (Var, RecEnumerable) import Haski.Backend import Haski.Enum import qu...
null
https://raw.githubusercontent.com/OctopiChalmers/haski/97835d6d90d0c82d29864db03955db0aaaf08c67/src/Haski/Backend/C.hs
haskell
components of the function HACK: because the C library doesn't allow empty function body types components of the function types converts a list of fields to a struct definition HACK: because the C library doesn't allow empty structs x -> f classname_reset(self->objname)
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # module Haski.Backend.C where import Text.PrettyPrint.HughesPJClass (Pretty(..)) import Haski.OBC import qualified Haski.OBC as OBC import Haski.Type import Haski.Util import Haski.Core (Var, RecEnumerable) import Haski.Backend import Haski.Enum import qu...
d6285bea5df88e48b042fb58820ae2e9a62a3ef840a8c87269d4232044533916
jacekschae/learn-datomic-course-files
datomic_cloud.clj
(ns cheffy.components.datomic-cloud (:require [datomic.client.api :as d] [cheffy.components.datomic :as datomic] [integrant.core :as ig])) (defmethod ig/init-key ::db [_ config] (println "\nStarted DB") (let [db-name (select-keys config [:db-name]) client (d/client (select-keys ...
null
https://raw.githubusercontent.com/jacekschae/learn-datomic-course-files/be20cd3f77c70fac33c95f3231f0ccdf41525f67/increments/63-squuid/src/main/cheffy/components/datomic_cloud.clj
clojure
is this required? or will calling create-db with the same name just return true?
(ns cheffy.components.datomic-cloud (:require [datomic.client.api :as d] [cheffy.components.datomic :as datomic] [integrant.core :as ig])) (defmethod ig/init-key ::db [_ config] (println "\nStarted DB") (let [db-name (select-keys config [:db-name]) client (d/client (select-keys ...
131b61a87df0d0fd47065073bb1714cf0f3322698b3ab48e18e8bda0898476d0
Mainframe-Archive/switchboard
switchboard_util.erl
%%------------------------------------------------------------------------------ %% 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 above c...
null
https://raw.githubusercontent.com/Mainframe-Archive/switchboard/37b66a53265e1a51b10aa76fcc3e622b8c2c261c/src/switchboard_util.erl
erlang
------------------------------------------------------------------------------ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: list of conditions and the following disclaimer. this list of conditi...
1 . Redistributions of source code must retain the above copyright notice , this 2 . Redistributions in binary form must reproduce the above copyright notice , 3 . Neither the name of the copyright holder nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS ...
979e9af604d96626600dce3af86f5b0a094a741709276696c297f954015b9ac1
theodormoroianu/SecondYearCourses
LambdaChurch_20210415171255.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415171255.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
2bda82726d3ddb45cd33680ab6fbd377b7ef739cfcde2736b61b16412879b0a1
clojure/core.async
ioc_macros_test.clj
(ns clojure.core.async.ioc-macros-test (:refer-clojure :exclude [map into reduce transduce merge take partition partition-by]) (:require [clojure.core.async.impl.runtime :as ioc] [clojure.core.async :refer :all :as async] [clojure.set :as set] [clojure...
null
https://raw.githubusercontent.com/clojure/core.async/572d58eb550d3e52515d4ea73644512dc6f45c1a/src/test/clojure/clojure/core/async/ioc_macros_test.clj
clojure
swap bindings don't spam stderr restore The park/park-run/park-runner api is similar to the pause counterpart above, but it actually parks the state machine so you can test parking and unparking machines in different environments. run the machine on another thread without any existing binding frames. the test i...
(ns clojure.core.async.ioc-macros-test (:refer-clojure :exclude [map into reduce transduce merge take partition partition-by]) (:require [clojure.core.async.impl.runtime :as ioc] [clojure.core.async :refer :all :as async] [clojure.set :as set] [clojure...
e14c287893675c2e8395e13b0056d2b83f48ec4fb506835d17fa7081e22a6d2e
exercism/common-lisp
hello-world-test.lisp
;; Ensures that hello-world.lisp and the testing library are always loaded (eval-when (:compile-toplevel :load-toplevel :execute) (load "hello-world") (quicklisp-client:quickload :fiveam)) ;; Defines the testing package with symbols from hello-world and FiveAM in scope ;; The `run-tests` function is exported for u...
null
https://raw.githubusercontent.com/exercism/common-lisp/f3cdf6cf7e607138d1bb4d26c57999d4364af243/exercises/practice/hello-world/hello-world-test.lisp
lisp
Ensures that hello-world.lisp and the testing library are always loaded Defines the testing package with symbols from hello-world and FiveAM in scope The `run-tests` function is exported for use by both the user and test-runner Enter the testing package Define and enter a new FiveAM test-suite
(eval-when (:compile-toplevel :load-toplevel :execute) (load "hello-world") (quicklisp-client:quickload :fiveam)) (defpackage :hello-world-test (:use :cl :fiveam) (:export :run-tests)) (in-package :hello-world-test) (def-suite* hello-world-suite) (test say-hi! (is (equal "Hello, World!" (hello-world:hello))...
0f28b844dbe98f5ddf058eaaa318ddb8849b0555cec67e7014a5526e4a4f2cca
the-dr-lazy/cascade
Orphans.hs
| Module : Cascade . Api . Orphans Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Modul...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/src/Cascade/Api/Orphans.hs
haskell
| Module : Cascade . Api . Orphans Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Modul...
45b54951d6d249265003c827f0086e746c2f3540c3f13fbd6b2f8497acfe8b41
stil4m/project-typo
core.cljs
(ns electron.core) (def app (js/require "app")) (def browser-window (js/require "browser-window")) (def crash-reporter (js/require "crash-reporter")) (def main-window (atom nil)) (defn init-browser [] (reset! main-window (browser-window. (clj->js {:titleBarStyle "hidden-inset" ...
null
https://raw.githubusercontent.com/stil4m/project-typo/4e343934175f429c8b7870814d569f776203d461/client/electron_src/electron/core.cljs
clojure
Path is relative to the compiled js file (main.js in our case) Do not quit app on OS X when all windows are closed Re-initialize the app when dock item is clicked
(ns electron.core) (def app (js/require "app")) (def browser-window (js/require "browser-window")) (def crash-reporter (js/require "crash-reporter")) (def main-window (atom nil)) (defn init-browser [] (reset! main-window (browser-window. (clj->js {:titleBarStyle "hidden-inset" ...
1794dd657f32aa39fcdee30ab1c720a1a8d7b867244020205706cbb5d9490940
unnohideyuki/bunny
sample231.hs
data Hoge a = Fuga | Hoge a meq :: (Eq t) => (Hoge t) -> (Hoge t) -> Bool Fuga `meq` Fuga = True Hoge x `meq` Hoge y = x == y _ `meq` _ = False main = print $ Fuga `meq` Hoge 5
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample231.hs
haskell
data Hoge a = Fuga | Hoge a meq :: (Eq t) => (Hoge t) -> (Hoge t) -> Bool Fuga `meq` Fuga = True Hoge x `meq` Hoge y = x == y _ `meq` _ = False main = print $ Fuga `meq` Hoge 5
a8836d6ccb3b8484f5bc2e4c71f1c1e82426bd423d1d05eac0a4c2fc8481e2b5
lisp/de.setf.xml
schema.lisp
20100512T225839Z00 ;;; from #<doc-node #x228F018E> (common-lisp:in-package "#")
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/namespaces/www-isi-edu/webscripter/person-o-daml/schema.lisp
lisp
from #<doc-node #x228F018E>
20100512T225839Z00 (common-lisp:in-package "#")
d924fb89da649a49a3d06cb79465470a17b6436db6af2b70a4403e5811b109e4
glaebhoerl/simplecompiler
LLVM.hs
-- we want to use `functionDefaults` and `globalVariableDefaults` and so on without warnings ( maybe it would be better if split these out into their own types so the record updates -- would not be incomplete, but ¯\_(ツ)_/¯) # OPTIONS_GHC -Wno - incomplete - record - updates # module LLVM (translateFunctions, Mod...
null
https://raw.githubusercontent.com/glaebhoerl/simplecompiler/a207ceca64147be99d9ca52fc18624e03e19376a/src/LLVM.hs
haskell
we want to use `functionDefaults` and `globalVariableDefaults` and so on without warnings would not be incomplete, but ¯\_(ツ)_/¯) ------------------------------------------------------------------------------------------------ TRANSLATION NOTE the name "start" is significant (to `runTwoPass`) TODO: remainder vs. m...
( maybe it would be better if split these out into their own types so the record updates # OPTIONS_GHC -Wno - incomplete - record - updates # module LLVM (translateFunctions, Module) where import MyPrelude import Data.List (transpose) import qualified Data.Char import qualified Data.Map.Strict as Map import ...
414e72665960aea263d7d53256a868f343ad2b1b4613ee40728915c5641d0411
returntocorp/semgrep
Gensym.mli
(* This module allows the generation of fresh types for unique identifiers. Such identifiers generated by `mk` are guaranteed to be distinct from each other.*) module MkId () : sig (* abstract type! *) type t [@@deriving show, eq, ord, hash] val mk : unit -> t val to_int : t -> int (* `unsafe_default`...
null
https://raw.githubusercontent.com/returntocorp/semgrep/e0d996ed1e4d76d0dafd34aec96bde3b718ac05e/libs/commons/Gensym.mli
ocaml
This module allows the generation of fresh types for unique identifiers. Such identifiers generated by `mk` are guaranteed to be distinct from each other. abstract type! `unsafe_default` is distinct from all generated IDs, but not from other `unsafe_default`s. This will reset the internal counter use...
module MkId () : sig type t [@@deriving show, eq, ord, hash] val mk : unit -> t val to_int : t -> int val unsafe_default : t val unsafe_reset_counter : unit -> unit end
e98068185613bf030c6161ae5ed9c90816228735ac2bcdeadec3f782ec080fe9
bluddy/rails
segment.mli
type id [@@deriving yojson] module Map : sig type t [@@deriving yojson] val make : unit -> t val get_id : t -> id val incr_train: t -> id -> unit val decr_train: t -> id -> unit end
null
https://raw.githubusercontent.com/bluddy/rails/20e753887bc6db4b4bd087a1b78584f5b53b45ad/bin/backend/segment.mli
ocaml
type id [@@deriving yojson] module Map : sig type t [@@deriving yojson] val make : unit -> t val get_id : t -> id val incr_train: t -> id -> unit val decr_train: t -> id -> unit end
108e7b4a2a643dd467994834f050851185bc972e0d4e9a6c15bf33217f3c8eca
ddssff/refact-global-hse
ScanM.hs
| RWS monad for scanning haskell modules parsed by . # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Refactor.ScanM RWS monad to scan a text file ScanM , locFilename , point , comments , useComments , remaining , scanModule , keep , keepAll , skip ...
null
https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/src/Refactor/ScanM.hs
haskell
import Debug.Trace (trace) (Annotated(ann), Module(..)) | A monad that scans a parsed module and has a writer monad to collect the text of an updated version of the module. The current position in the full text The text remaining after _point The comments remaining after _point , ("srcLine", "lo...
| RWS monad for scanning haskell modules parsed by . # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Refactor.ScanM RWS monad to scan a text file ScanM , locFilename , point , comments , useComments , remaining , scanModule , keep , keepAll , skip ...
efaa19b78a94afd01c87816a7c95ffc68f73470f859a1ccb96db5cecc354476a
fourmolu/fourmolu
Fixity.hs
# LANGUAGE CPP # # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE TemplateHaskell # -- | Definitions for fixity analysis. module Ormolu.Fixity ( OpName, pattern OpName, unOpName, occOpName, FixityDirection (..), FixityI...
null
https://raw.githubusercontent.com/fourmolu/fourmolu/f47860f01cb3cac3b973c5df6ecbae48bbb4c295/src/Ormolu/Fixity.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Definitions for fixity analysis. pass in the encoded fixity DB at runtime by storing the pointer and length of the bytes in an environment variable. Hackage does not reflect their high popularity. See #issuecomment-986609572. "base" is not is this list, bec...
# LANGUAGE CPP # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE TemplateHaskell # module Ormolu.Fixity ( OpName, pattern OpName, unOpName, occOpName, FixityDirection (..), FixityInfo (..), FixityMap, LazyFixityMap, lookupFixity, HackageInfo (..), defaultStrate...
81ebcb897de04361d8ae532dd79dd12125317a73f76a54069df98f6ac3a848fc
plumatic/grab-bag
text_metrics.cljs
(ns tubes.text-metrics (:require [tubes.core :as tubes] [dommy.core :as dommy])) (defn actual-text-width [el txt] (dommy/set-html! el txt) (.-offsetWidth el)) (def rel-errors (atom [0.0 0])) (defn ^:export relative-error [] (let [[s n] @rel-errors] (str (/ s n) " " n))) (defprotocol PTextMeasurer ...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/tubes/src/tubes/text_metrics.cljs
clojure
slightly shitty if there is no break in whole line, or if we already broke without a break.
(ns tubes.text-metrics (:require [tubes.core :as tubes] [dommy.core :as dommy])) (defn actual-text-width [el txt] (dommy/set-html! el txt) (.-offsetWidth el)) (def rel-errors (atom [0.0 0])) (defn ^:export relative-error [] (let [[s n] @rel-errors] (str (/ s n) " " n))) (defprotocol PTextMeasurer ...
0a1a39e3fc63e70f035fd17702d9d67b0ffcf1e6880be1faa67b496774cdbfe5
vvvvalvalval/scope-capture
repl.clj
(ns sc.lab.cljs.repl (:require [cljs.repl :as repl] [cljs.repl.rhino :as rhino])) (def env (rhino/repl-env)) (repl/repl env)
null
https://raw.githubusercontent.com/vvvvalvalval/scope-capture/1214ff41459c41df57ef55b3fdf01d965ad611b2/lab/sc/lab/cljs/repl.clj
clojure
(ns sc.lab.cljs.repl (:require [cljs.repl :as repl] [cljs.repl.rhino :as rhino])) (def env (rhino/repl-env)) (repl/repl env)
a9ec3b41d73eb5c66484e0d5d4d3f5e1f1a02e2e5884b443d0de5eab6888c83f
batebobo/fp1819
8-take.rkt
#lang racket (require rackunit) (require rackunit/text-ui) (provide take) Търсим функция , елемента на . (define (take n lst) (if (= n 0) '() (cons (car lst) (take (- n 1) (cdr lst))))) (define tests (test-suite "Take tests" (check-equal? (take 2 '(1 2 3)) '(1 2)) (check-equal? (ta...
null
https://raw.githubusercontent.com/batebobo/fp1819/2061b7e62a1a9ade3a5fff9753f9fe0da5684275/scheme/4/solutions/8-take.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) (provide take) Търсим функция , елемента на . (define (take n lst) (if (= n 0) '() (cons (car lst) (take (- n 1) (cdr lst))))) (define tests (test-suite "Take tests" (check-equal? (take 2 '(1 2 3)) '(1 2)) (check-equal? (ta...
82a88691ae29e3af2d2a9fc8a6d1ec62a538e7477c8bd79834b1d2653537a741
twosigma/waiter
token_watch.clj
(ns waiter.token-watch (:require [clojure.core.async :as async] [clojure.data :as data] [clojure.string :as str] [clojure.tools.logging :as log] [clojure.walk :as walk] [metrics.counters :as counters] [metrics.meters :as meters] [metr...
null
https://raw.githubusercontent.com/twosigma/waiter/7d985f4e5642e0e6efd26830b7b139db21a05251/waiter/src/waiter/token_watch.clj
clojure
There is no change detected, so no event to be reported If index-entry retrieved from kv-store exists then treat as UPDATE (includes token creation and soft deletion) index-entry doesn't exist then treat as DELETE calculate reference update events and emit them to the watch channels update the reference-type->ref...
(ns waiter.token-watch (:require [clojure.core.async :as async] [clojure.data :as data] [clojure.string :as str] [clojure.tools.logging :as log] [clojure.walk :as walk] [metrics.counters :as counters] [metrics.meters :as meters] [metr...
993baa6101a31ac38d38ce346231d785cdf070d11930786d7709fcf2d03cae08
clojure-interop/aws-api
project.clj
(defproject clojure-interop/com.amazonaws.services.storagegateway "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.storagegateway" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :sour...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.storagegateway/project.clj
clojure
(defproject clojure-interop/com.amazonaws.services.storagegateway "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.storagegateway" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :sour...
fc3f9384d389afa7ae1f7fd4a885f975ac7deb5b0c25889fa147556926d24176
haskell-CI/haskell-ci
SourceRepo.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE StandaloneDeriving #-} # LANGUAGE UndecidableInstances # | Originally Distribution . Client . SourceRepo module Cabal.S...
null
https://raw.githubusercontent.com/haskell-CI/haskell-ci/0ced97ba21a174b342320e07c5f5724832f0708c/cabal-install-parsers/src/Cabal/SourceRepo.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE StandaloneDeriving # * Aliases * Functions * Grammar | @source-repository-package@ definition | @since 0.2.1 | Read from @cabal.project@ -------------------------------------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # | Originally Distribution . Client . SourceRepo module Cabal.SourceRepo ( * SourceRepo SourceRepositoryPackage (..), SourceRepoList, SourceRepoMaybe, SourceRepoProxy, srpHoist, srpToProxy,...
0dbe1d38e7f06eede6ca41e6fd3eaeb20ef92ecf1f0384564c89c71cdc2e40a8
tomlokhorst/AwesomePrelude
FreeVariables.hs
# LANGUAGE TypeOperators # module Compiler.FreeVariables ( FreeVarA (..) , ExpressionFV , annotateExpression , DefinitionFV , DefinitionsFV , annotateDefinitions , dump ) where import Compiler.Generics import Compiler.Expression import Control.Arrow hiding (app) import Data.List (intercalate) import Data.Set hiding (...
null
https://raw.githubusercontent.com/tomlokhorst/AwesomePrelude/c06fc73e1489aecdd3556b0395d427065245efee/src/Compiler/FreeVariables.hs
haskell
traversal function helpers
# LANGUAGE TypeOperators # module Compiler.FreeVariables ( FreeVarA (..) , ExpressionFV , annotateExpression , DefinitionFV , DefinitionsFV , annotateDefinitions , dump ) where import Compiler.Generics import Compiler.Expression import Control.Arrow hiding (app) import Data.List (intercalate) import Data.Set hiding (...
a3ae4a2f624acf29c010053be810b626926e6c43dad59d5c05958a433c3e1208
nasa/Common-Metadata-Repository
project.clj
(defproject nasa-cmr/cmr-transmit-lib "0.1.0-SNAPSHOT" :description "The Transmit Library is responsible for defining the common transmit libraries that invoke services within the CMR projects." :url "-Metadata-Repository/tree/master/transmit-lib" :exclusions [[commons-codec/commons-codec] ...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/156c6c27911148eb424bfe1e0fa756e5a7146eab/transmit-lib/project.clj
clojure
This profile is used for linting and static analysis. To run for this all projects at the same time, use the same command but from the top- level directory. The following profile is overriden on the build server or in the user's ~/.lein/profiles.clj file. refer to tests.edn for test configuration Linting aliases...
(defproject nasa-cmr/cmr-transmit-lib "0.1.0-SNAPSHOT" :description "The Transmit Library is responsible for defining the common transmit libraries that invoke services within the CMR projects." :url "-Metadata-Repository/tree/master/transmit-lib" :exclusions [[commons-codec/commons-codec] ...
21f255240de0e35054971ae19e06460646a6c97858f5a59433cd39617b05990e
spurious/sagittarius-scheme-mirror
user.scm
-*- mode : scheme ; coding : utf-8 ; -*- (import (rnrs) (rnrs eval) (clos user) (clos core) (sagittarius object) (sagittarius control) (srfi :26 cut) (srfi :64 testing)) (test-begin "CLOS user APIs test") (define-class <person> () ((name :init-keyword :name) (age :init-keyword :age))) (let ((sam (mak...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/clos/user.scm
scheme
coding : utf-8 ; -*- qualifier tests eql specializer redefinition test save original <x> and <y> defined above create some more instances set several methods Create and save the instances with the original classes this is not supported but will be ignored during creation so keep it like this for now let-m...
(import (rnrs) (rnrs eval) (clos user) (clos core) (sagittarius object) (sagittarius control) (srfi :26 cut) (srfi :64 testing)) (test-begin "CLOS user APIs test") (define-class <person> () ((name :init-keyword :name) (age :init-keyword :age))) (let ((sam (make <person> :name "Sam" :age 30))) (test-a...
4a7d69b2ee2b5d70d43237e7283546616dd0b1feed3496601c3684bf210ef87f
spectrum-finance/cardano-dex-contracts
DepositGen.hs
module Gen.DepositGen where import Hedgehog import Gen.Models import PlutusLedgerApi.V2 import PlutusLedgerApi.V1.Value import PlutusTx.Builtins.Internal import qualified ErgoDex.Contracts.Proxy.Deposit as D import qualified Data.ByteString as BS import qualified Data.ByteString.Base16 as Hex import qualified Dat...
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-contracts/491e48b4ff1f261d3bc53e76371e4f07ba696a89/cardano-dex-contracts-onchain/test/Gen/DepositGen.hs
haskell
module Gen.DepositGen where import Hedgehog import Gen.Models import PlutusLedgerApi.V2 import PlutusLedgerApi.V1.Value import PlutusTx.Builtins.Internal import qualified ErgoDex.Contracts.Proxy.Deposit as D import qualified Data.ByteString as BS import qualified Data.ByteString.Base16 as Hex import qualified Dat...
a45b617ada0a79d4634772a3981a08c40fd7a4f1084ec8f9509d2c50bd88f23e
Frozenlock/wacnet
devices.cljs
(ns wacnet.explorer.devices (:require [reagent.core :as r] [cljs.reader :as reader] [ajax.core :refer [GET POST]] [wacnet.utils :as u] [wacnet.templates.common :as common] [wacnet.explorer.objects :as wo] [goog.string :as gstring] ...
null
https://raw.githubusercontent.com/Frozenlock/wacnet/69947dc02c91ae160c759a0abe97d4f472e9a876/src/cljs/wacnet/explorer/devices.cljs
clojure
======================================================= ================== Devices overview =================== ======================================================= The main devices list. In this column, we show the device ID and the device name. The user can then click on a device to see its objects in details. ...
(ns wacnet.explorer.devices (:require [reagent.core :as r] [cljs.reader :as reader] [ajax.core :refer [GET POST]] [wacnet.utils :as u] [wacnet.templates.common :as common] [wacnet.explorer.objects :as wo] [goog.string :as gstring] ...
cd6db441a18c5cd4e792aec80bacb0331ef35f29d58f0c01fbc495113a2aa47f
TrustInSoft/tis-interpreter
export_why3.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/qed/src/export_why3.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
3c033e895ba89ef5a541ed52c95494abb03939fbf75966174be96008e81720df
Netflix/PigPen
runtime.clj
;; ;; Copyright 2015 Netflix , Inc. ;; 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 writ...
null
https://raw.githubusercontent.com/Netflix/PigPen/18d461d9b2ee6c1bb7eee7324889d32757fc7513/pigpen-cascading/src/main/clojure/pigpen/cascading/runtime.clj
clojure
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 speci...
Copyright 2015 Netflix , Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns pigpen.cascading.runtime (:import (java.util List) (org.apache.hadoop.io BytesWritable) (cascading.operation OperationCall FunctionCall BufferCall Aggr...
a07a27d57e408aac6fe6b6bcba451251cd9ff01fe60ace32d14ef66f4b9d1a69
racket/drracket
snips.rkt
#lang racket/base (require "private/drracket-test-util.rkt" racket/class racket/runtime-path racket/file racket/gui/base) (define-runtime-path snip "snip") (fire-up-drracket-and-run-tests (λ () (define drs (wait-for-drracket-frame)) (define tmpdir (make-temporary-file "dr...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket-test/tests/drracket/snips.rkt
racket
skip subdirectories
#lang racket/base (require "private/drracket-test-util.rkt" racket/class racket/runtime-path racket/file racket/gui/base) (define-runtime-path snip "snip") (fire-up-drracket-and-run-tests (λ () (define drs (wait-for-drracket-frame)) (define tmpdir (make-temporary-file "dr...
82ab9c6ca5b3012203f0cd9696b7502e8f6ed7dca6bdce103c6c80d14c5df604
Frama-C/Frama-C-snapshot
studia_gui.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/studia/studia_gui.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
448545cce05d4fcf40a0a00d75146471fd741862b27369e948de8c3308018bdc
ocaml-multicore/tezos
prevalidator_filters.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Nomadic Development . < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/lib_shell/prevalidator_filters.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Nomadic Development . < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER...
3a117f7ef2e0dc427c7609c3bb8760026c15f868387bfb9469b017a053586df5
helium/blockchain-node
bn_blocks.erl
-module(bn_blocks). -include("bn_jsonrpc.hrl"). -behavior(bn_jsonrpc_handler). -export([handle_rpc/2]). handle_rpc(<<"block_height">>, _Params) -> bn_txns:follower_height(); handle_rpc(<<"block_get">>, {Param}) -> HeightOrHash = case ?jsonrpc_get_param(<<"height">>, Param, false) of fals...
null
https://raw.githubusercontent.com/helium/blockchain-node/cc93faa198c99d9110cceebdc7996b350bac8eab/src/bn_blocks.erl
erlang
-module(bn_blocks). -include("bn_jsonrpc.hrl"). -behavior(bn_jsonrpc_handler). -export([handle_rpc/2]). handle_rpc(<<"block_height">>, _Params) -> bn_txns:follower_height(); handle_rpc(<<"block_get">>, {Param}) -> HeightOrHash = case ?jsonrpc_get_param(<<"height">>, Param, false) of fals...
5088cdbef262a6f3ea91b5e7fbef7f76c958c8c7d8d4c4525c646838d34e333b
Eonblast/Scalaxis
rt_SUITE.erl
2010 - 2011 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 di...
null
https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/test/rt_SUITE.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...
2010 - 2011 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 < > -module(rt_SUITE). -author(''). -vsn('$Id$'). -compile(export_all). -include("unittest.hrl"). -include("scalaris.hr...
22121cc470f8105c6169cbb62df794083d8fa5502deac7443bdbdc22585b0499
Et7f3/ocalc
lexer.mli
val est_entier : string -> int -> bool val est_entier10 : string -> bool val est_entier_base : string -> bool val est_variable : string -> bool val est_addition_soustraction : string -> bool val est_multiplication_division : string -> bool
null
https://raw.githubusercontent.com/Et7f3/ocalc/667da625676829307fc59542906ed2075fe818bd/src/noyau/lexer.mli
ocaml
val est_entier : string -> int -> bool val est_entier10 : string -> bool val est_entier_base : string -> bool val est_variable : string -> bool val est_addition_soustraction : string -> bool val est_multiplication_division : string -> bool
bc5a1f0b18d2b8ff9caecaa4c62a4017dfc2d32e32a0050d484f8c2a98dbc66f
camsaul/methodical
common.clj
(ns methodical.impl.dispatcher.common "Utility functions for implementing Dispatchers.") (defn prefers? "True if `x` or one of its ancestors is preferred over `y` or one of its ancestors." [hierarchy prefs x y] (or ;; direct preference for x over y (contains? (get prefs x) y) direct preference for x ov...
null
https://raw.githubusercontent.com/camsaul/methodical/de05a43afe93d6732f8630b16dc512302703a30c/src/methodical/impl/dispatcher/common.clj
clojure
direct preference for x over y
(ns methodical.impl.dispatcher.common "Utility functions for implementing Dispatchers.") (defn prefers? "True if `x` or one of its ancestors is preferred over `y` or one of its ancestors." [hierarchy prefs x y] (or (contains? (get prefs x) y) direct preference for x over one of y 's parents ( or ancestors...
16bab16a0cde44dc097d5a29784933746c9794ea7f2c9fabe5d38fe36a0fea15
cbaggers/cepl
uniforms.lisp
(in-package :cepl.pipelines) ;;;-------------------------------------------------------------- ;;; UNIFORMS ;;; ;;;----------;;; (defn-inline uniform-sampler ((location (signed-byte 32)) (image-unit (signed-byte 32))) (values) (declare (optimize (speed 3) (safety 1) (debug 0) ...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/pipelines/uniforms.lisp
lisp
-------------------------------------------------------------- UNIFORMS ;;; ----------;;; [TODO] HANDLE DOUBLES
(in-package :cepl.pipelines) (defn-inline uniform-sampler ((location (signed-byte 32)) (image-unit (signed-byte 32))) (values) (declare (optimize (speed 3) (safety 1) (debug 0) (compilation-speed 0)) (profile t)) #+sbcl(declare (sb-ext:muffle-condi...
a3e2e41ce4511eb9d2b0b361342851f948d040c8ac2abc3a4b750e8ee2c0248d
reasonml-old/BetterErrors
type_MismatchTypeArguments_1.ml
type bread = | Coconut of string let morning = Coconut
null
https://raw.githubusercontent.com/reasonml-old/BetterErrors/d439b92bfe377689c38fded5d8aa2b151133f25d/tests/type_MismatchTypeArguments/type_MismatchTypeArguments_1.ml
ocaml
type bread = | Coconut of string let morning = Coconut
ec61592aad9ffb7c6c1a9973bcb03cc97336e6f58f0801571988e68b1370ff1d
LambdaHack/LambdaHack
File.hs
-- | Saving/loading to files, with serialization and compression. module Game.LambdaHack.Common.File ( encodeEOF, strictDecodeEOF , tryCreateDir, doesFileExist, tryWriteFile, readFile, renameFile ) where import Prelude () #ifdef USE_JSFILE import Game.LambdaHack.Common.JSFile #else import Game.LambdaHack.Common...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/3c741b9eb99b032cfa9313462eb356e0ec306f42/engine-src/Game/LambdaHack/Common/File.hs
haskell
| Saving/loading to files, with serialization and compression.
module Game.LambdaHack.Common.File ( encodeEOF, strictDecodeEOF , tryCreateDir, doesFileExist, tryWriteFile, readFile, renameFile ) where import Prelude () #ifdef USE_JSFILE import Game.LambdaHack.Common.JSFile #else import Game.LambdaHack.Common.HSFile #endif
09c19786dde1e7f6e9d17250735284d1e6cb613c22d67e6f939cca3807e4b8d3
jeroanan/rkt-coreutils
arch.rkt
#lang s-exp "util/program/repl-program.rkt" Copyright 2020 ; See COPYING for details (provide arch) (require "libc/utsname.rkt") (define arch (λ () (displayln (uname-machine))))
null
https://raw.githubusercontent.com/jeroanan/rkt-coreutils/571629d1e2562c557ba258b31ce454add2e93dd9/src/repl/arch.rkt
racket
See COPYING for details
#lang s-exp "util/program/repl-program.rkt" Copyright 2020 (provide arch) (require "libc/utsname.rkt") (define arch (λ () (displayln (uname-machine))))
70720ebe658d5ebdbc80b1b928743addd3e85849c34ac139849fa29452601482
tfeb/tfeb-lisp-hax
trace-macroexpand.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; File - trace-macroexpand.lisp ;; Description - Macroexpansion tracing Author - ( tfb at kingston.local ) Created On - Fri Dec 13 11:35:01 2019 ;; Status - Unknown ;; ;; $Format:(@:%H)$ ;...
null
https://raw.githubusercontent.com/tfeb/tfeb-lisp-hax/27fd40e55b06826b18f6e6e8122ccb3107b1dfd8/trace-macroexpand.lisp
lisp
-*- Mode: Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; File - trace-macroexpand.lisp Description - Macroexpansion tracing Status - Unknown $Format:(@:%H)$ and may be used for any purpose whatsoever by anyone. It has no warranty whatsoever. I would appreciate acknowledgement if you use it ...
Author - ( tfb at kingston.local ) Created On - Fri Dec 13 11:35:01 2019 trace-macroexpand.lisp is copyright 2019 - 2021 by me , , (eval-when (:load-toplevel :compile-toplevel :execute) (let ((function (and (find-package :org.tfeb.hax.trace-macroexpand) (find-symbo...
c5837f543c7c7124c0a69b9082a99a50ed0374061e300044a6dfc2849cc8c571
ucsd-progsys/liquidhaskell
DoubleLit.hs
{-@ LIQUID "--expect-any-error" @-} module DoubleLit where {-@ inline absD @-} absD :: Double -> Double absD z = if z >= 0 then z else (0 - z) @ inline absI @ absI :: Int -> Int absI z = if z >= 0 then z else (0 - z) @ zoing : : { v : Double | v = 3.14 } @ zoing :: Double zoing = absD (4.15 - 6.29)
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/reflect/neg/DoubleLit.hs
haskell
@ LIQUID "--expect-any-error" @ @ inline absD @
module DoubleLit where absD :: Double -> Double absD z = if z >= 0 then z else (0 - z) @ inline absI @ absI :: Int -> Int absI z = if z >= 0 then z else (0 - z) @ zoing : : { v : Double | v = 3.14 } @ zoing :: Double zoing = absD (4.15 - 6.29)
250e2b2f10a10ff5a09390cd42e650e185f6eafb7d58d7239a1ff428cf2862d0
NorfairKing/yamlparse-applicative
Explain.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module YamlParse.Applicative.Explain where import Data.Text (Text) import qualified Data.Text as T import Data.Validity import Data.Validity.Text () imp...
null
https://raw.githubusercontent.com/NorfairKing/yamlparse-applicative/4432baf411cfa23e68e2325a0380d154cee84691/yamlparse-applicative/src/YamlParse/Applicative/Explain.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # A schema for a parser. This is used to produce documentation for what/how the parser parses. Required Default value Schema of the value We'll take this to mean 'and' | Use a parser to produce a schema that describes it for documentation. Nothing means that nothing ev...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module YamlParse.Applicative.Explain where import Data.Text (Text) import qualified Data.Text as T import Data.Validity import Data.Validity.Text () import GHC.Generics (Generic) import YamlParse.Applica...
9cf836370a1b8f3d757cc9ca41d5b965d160aa5c25b35312ef0993b9327c5445
tfausak/monadoc-5
RouterSpec.hs
module Monadoc.Server.RouterSpec where import Monadoc.Prelude import qualified Monadoc.Server.Router as Router import qualified Monadoc.Type.Config as Config import qualified Monadoc.Type.Route as Route import Test.Hspec spec :: Spec spec = describe "Monadoc.Server.Router" <| do describe "parseRoute" <| do it...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/Monadoc/Server/RouterSpec.hs
haskell
module Monadoc.Server.RouterSpec where import Monadoc.Prelude import qualified Monadoc.Server.Router as Router import qualified Monadoc.Type.Config as Config import qualified Monadoc.Type.Route as Route import Test.Hspec spec :: Spec spec = describe "Monadoc.Server.Router" <| do describe "parseRoute" <| do it...
4eb4c25c55eae9ef5e2c4d2e16533664ce01a026476447a552911f399215ff6e
gildor478/ounit
testOUnitBracket.ml
(**************************************************************************) The OUnit library (* *) Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright...
null
https://raw.githubusercontent.com/gildor478/ounit/faf4936b17507406c7592186dcaa3f25c6fc138a/test/libtest/testOUnitBracket.ml
ocaml
************************************************************************ Permission is hereby grante...
The OUnit library Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright ( C ) 2010 OCamlCore SARL Copyright ( C ) 2013 The package OUnit is cop...
d0174287d1b226c2d51b3884021d0a8e58efe3bd2b47ed75c7c2543dad56bf7b
manuel-serrano/hop
constants.scm
;*=====================================================================*/ * serrano / prgm / project / hop/3.1.x / scheme2js / constants.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/constants.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop/3.1.x / scheme2js / constants.scm * / * Author : * / * Creation : 2007 - 11 * / * Last change : We d Apr 6 07:05:05 2016 ( serrano ) * / * Cop...
2f13bae55512493e483b116f199716bc45f134bbaa54940d2929d8a93bf4f84e
art-w/sherlocode
index.ml
module Ngrams = Db.Ngrams module Int_set = Db.Int_set let max_lines_per_shard = 1_000_000 let string_drop_prefix ~prefix str = let n = String.length prefix in if String.length str < n then str else if String.sub str 0 n <> prefix then str else String.sub str n (String.length str - n) type t = { prefix ...
null
https://raw.githubusercontent.com/art-w/sherlocode/b3dc5abc1a4f6e7810017fe2cb3a41663ffa05f8/index/index.ml
ocaml
module Ngrams = Db.Ngrams module Int_set = Db.Int_set let max_lines_per_shard = 1_000_000 let string_drop_prefix ~prefix str = let n = String.length prefix in if String.length str < n then str else if String.sub str 0 n <> prefix then str else String.sub str n (String.length str - n) type t = { prefix ...
519d5e8d41389de6707d42560b7cafb03f37b46415ae0adde3c5ed7351b7f7d4
hrvolapeter/security-log
Nginx.hs
{-# LANGUAGE OverloadedStrings #-} module Input.File.Nginx ( Input.File.Nginx.parse ) where import Data.Log import Data.Text.Lazy (Text) import qualified Data.Text.Lazy as TL import Text.Parsec import Text.Parsec.String parse :: Text -> [Log] parse a = map (\...
null
https://raw.githubusercontent.com/hrvolapeter/security-log/3434c18934ac3698a90f90c20b6fd3ba4761ebeb/src/Input/File/Nginx.hs
haskell
# LANGUAGE OverloadedStrings # name
module Input.File.Nginx ( Input.File.Nginx.parse ) where import Data.Log import Data.Text.Lazy (Text) import qualified Data.Text.Lazy as TL import Text.Parsec import Text.Parsec.String parse :: Text -> [Log] parse a = map (\x -> Log {request = T...
da911e76b1a0c553f26c992aec69aa63cd2d2cf38f24396ebcc39cd9dc931715
lambe-lang/nethra
t05_checker_pair.ml
open Nethra.Lang.Ast.Term.Construct open Nethra.Lang.Ast.Proof open Nethra.Lang.Ast.Hypothesis.Construct open Nethra.Lang.Ast.Hypothesis.Access open Nethra.Lang.System.Type module Theory = struct let type_in_type = true end module rec TypeChecker : Specs.Checker = Checker.Impl (Theory) (Infer.Impl (Theory) (TypeC...
null
https://raw.githubusercontent.com/lambe-lang/nethra/8d9e584e08ad5850eb8d66006d57c78ebac66564/test/nethra/lang/system/s03_typer/t05_checker_pair.ml
ocaml
open Nethra.Lang.Ast.Term.Construct open Nethra.Lang.Ast.Proof open Nethra.Lang.Ast.Hypothesis.Construct open Nethra.Lang.Ast.Hypothesis.Access open Nethra.Lang.System.Type module Theory = struct let type_in_type = true end module rec TypeChecker : Specs.Checker = Checker.Impl (Theory) (Infer.Impl (Theory) (TypeC...
8f4b58241a264e21a7e2bff075fcdbebdb27cbeec5ee3495230e204274be5d6e
VictorNicollet/Ohm
template.mli
Jogging is © 2011 type ('arg,'ctx) template type ('arg,'ctx) t = ('arg,'ctx) template val to_html : ('arg,View.Context.box) t -> 'arg -> I18n.t -> View.Context.box View.t val to_text : ('arg,View.Context.text) t -> 'arg -> I18n.t -> View.Context.text View.t module type JS_HTML_TEMPLATE_DEF = sig type t va...
null
https://raw.githubusercontent.com/VictorNicollet/Ohm/ca90c162f6c49927c893114491f29d44aaf71feb/src/template.mli
ocaml
Jogging is © 2011 type ('arg,'ctx) template type ('arg,'ctx) t = ('arg,'ctx) template val to_html : ('arg,View.Context.box) t -> 'arg -> I18n.t -> View.Context.box View.t val to_text : ('arg,View.Context.text) t -> 'arg -> I18n.t -> View.Context.text View.t module type JS_HTML_TEMPLATE_DEF = sig type t va...
1e5a9fec7ef5d01b0acd5f881bf36103fc3cd3aa531bcd709ff0b85431e678ef
mauny/the-functional-approach-to-programming
binary_trees_parser.ml
#directory "../Util";; #open "prelude";; #open "lexer";; #open "binary_trees";; #infix "o";; let ident_max_length = 48;; let ident_buf = make_string ident_max_length ` `;; let int_parser = let rec parser = function [< 'INT n >] -> n in parser;; let parse_int s = int_parser (lexer (stream_of_string s));; let...
null
https://raw.githubusercontent.com/mauny/the-functional-approach-to-programming/1ec8bed5d33d3a67bbd67d09afb3f5c3c8978838/cl-75/Arbres/binary_trees_parser.ml
ocaml
#directory "../Util";; #open "prelude";; #open "lexer";; #open "binary_trees";; #infix "o";; let ident_max_length = 48;; let ident_buf = make_string ident_max_length ` `;; let int_parser = let rec parser = function [< 'INT n >] -> n in parser;; let parse_int s = int_parser (lexer (stream_of_string s));; let...
9f8e48ef894de35c99c747db3899eb96c1fd3ee573efc8418379f4fec856e304
hidaris/thinking-dumps
environments.rkt
(module environments (lib "eopl.ss" "eopl") (require "data-structures.rkt") (provide init-env empty-env extend-env apply-env) ;;;;;;;;;;;;;;;; initial environment ;;;;;;;;;;;;;;;; ;; init-env : () -> Env usage : ( init - env ) = [ i=1 , v=5 , x=10 ] ;; (init-env) builds an environment in which i is bound ...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-11/explicit-refs/environments.rkt
racket
initial environment ;;;;;;;;;;;;;;;; init-env : () -> Env (init-env) builds an environment in which i is bound to the environment constructors and observers ;;;;;;;;;;;;;;;; location : Sym * Listof(Sym) -> Maybe(Int) else (location sym syms) = #f
(module environments (lib "eopl.ss" "eopl") (require "data-structures.rkt") (provide init-env empty-env extend-env apply-env) usage : ( init - env ) = [ i=1 , v=5 , x=10 ] expressed value 1 , v is bound to the expressed value 5 , and x is bound to the expressed value 10 . Page : 69 (define init-env ...
374f1c5b01410bf80cf1d5896d1be7552dd50c9f3a098de4bd02e1cab2752a8f
exoscale/clojure-kubernetes-client
v1beta1_aggregation_rule.clj
(ns clojure-kubernetes-client.specs.v1beta1-aggregation-rule (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-label-selector :refer :all] ) (:import (java.io File))) (declare v1beta1-aggregation-rule-data v1beta1-aggregation...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_aggregation_rule.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta1-aggregation-rule (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-label-selector :refer :all] ) (:import (java.io File))) (declare v1beta1-aggregation-rule-data v1beta1-aggregation...
f5ebe5d9c7a6d77ab164b37018609ee91d1001f5795f11b3202dbad30defdf7e
scrintal/heroicons-reagent
beaker.cljs
(ns com.scrintal.heroicons.mini.beaker) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M8.5 3.528v4.644c0 .729-.29 1.428-.805 1.944l-1.217 1.216a8.75 8.75 0 013.55.621l.50...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/beaker.cljs
clojure
(ns com.scrintal.heroicons.mini.beaker) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M8.5 3.528v4.644c0 .729-.29 1.428-.805 1.944l-1.217 1.216a8.75 8.75 0 013.55.621l.50...
a7104d61d54dbc211cf97d7fbe19ec2c834f30c3661b90e7d780dab3441f1b33
fortytools/holumbus
HackagePackage.hs
module Hayoo.HackagePackage where import Data.List import Hayoo.PackageInfo import Hayoo.URIConfig import Holumbus.Crawler.Html import Text.XML.HXT.Core import Text.Regex.XMLSchema.String -- ------------------------------------------------------------ h...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Hayoo/HayooIndexer/Hayoo/HackagePackage.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ all the get arrows must be deterministic else hayooGetPkgInfo fails, which is an error and remove trailing ":" if there is any ":" checkPackageName take all stuff between "h1" and next "h2" ...
module Hayoo.HackagePackage where import Data.List import Hayoo.PackageInfo import Hayoo.URIConfig import Holumbus.Crawler.Html import Text.XML.HXT.Core import Text.Regex.XMLSchema.String hayooGetPkgInfo :: IOSArrow XmlTree PackageInfo h...
32be42956704ef798d783827c7199df2ddf5469a2c38bdbd9a986e3bf994c894
hkuplg/fcore
ClosureFNew.hs
# Language RankNTypes , FlexibleInstances # # OPTIONS_GHC -Wall # | Module : ClosureFNew Description : Abstract syntax and pretty printer for ClosureFNew . Copyright : ( c ) 2014—2015 The F2J Project Developers ( given in AUTHORS.txt ) License : BSD3 Maintainer : < > , < > ...
null
https://raw.githubusercontent.com/hkuplg/fcore/e27b6dec5bfd319edb8c3e90d94a993bcc7b4c95/backend/archive/ClosureFNew.hs
haskell
Closure F syntax FIXME: This is probably wrong, because it would group pi and lambda together join TODO: better choice Free variable substitution Pretty Printing TODO: fix pretty printing with the propagated names To be modified. Remove useless parens. To be modified. Remove useless parens.
# Language RankNTypes , FlexibleInstances # # OPTIONS_GHC -Wall # | Module : ClosureFNew Description : Abstract syntax and pretty printer for ClosureFNew . Copyright : ( c ) 2014—2015 The F2J Project Developers ( given in AUTHORS.txt ) License : BSD3 Maintainer : < > , < > ...
9030f276cdd76ae46abac251948e768e4f824de957948a973d9ae00e1075bc84
haskell/cabal
all.test.hs
import Test.Cabal.Prelude main = cabalTest $ withSourceCopy $ do cwd <- fmap testCurrentDir getTestEnv cabal "v2-sdist" ["all"] shouldExist $ cwd </> "dist-newstyle/sdist/a-0.1.tar.gz" shouldExist $ cwd </> "dist-newstyle/sdist/b-0.1.tar.gz"
null
https://raw.githubusercontent.com/haskell/cabal/00a2351789a460700a2567eb5ecc42cca0af913f/cabal-testsuite/PackageTests/NewSdist/MultiTarget/all.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest $ withSourceCopy $ do cwd <- fmap testCurrentDir getTestEnv cabal "v2-sdist" ["all"] shouldExist $ cwd </> "dist-newstyle/sdist/a-0.1.tar.gz" shouldExist $ cwd </> "dist-newstyle/sdist/b-0.1.tar.gz"
1f3902dc82cc5982cb610c1d03c3baed26613f8352cc1178dbb7435db3cec573
MrElendig/dotfiles-alice
xmonad.hs
------------------------------------------------------------------------------- xmonad.hs for xmonad - darcs Author : ' Mr. ' < mrelendig AT har - ikkje DOT net > ------------------------------------------------------------------------------- -- Compiler flags -- # LANGUAGE NoMonomorphismRestriction # -- Import...
null
https://raw.githubusercontent.com/MrElendig/dotfiles-alice/ab65a2b951e80aec6950c80b620a85c7d144adab/.xmonad/xmonad.hs
haskell
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Compiler flags -- Imports -- stuff actions hooks layouts ----------------------------------------------------------------------------- Main -- --------------...
xmonad.hs for xmonad - darcs Author : ' Mr. ' < mrelendig AT har - ikkje DOT net > # LANGUAGE NoMonomorphismRestriction # import XMonad import qualified XMonad.StackSet as W import qualified Data.Map as M import System.Exit import XMonad.Util.Run (safeSpawn) import Graphics.X11.ExtraTypes.XF86 import XMonad.Ac...
6a08243e44815e2ee8560982aa1069c7f5b0ad2a77215d096de40575043ece9e
pgourlain/vscode_erlang
vscode_jsone.erl
%%% @doc JSON encoding module @private %%% @end %%% Copyright ( c ) 2013 - 2016 , < > %%% %%% The MIT License %%% %%% Permission is hereby granted, free of charge, to any person obtaining a copy %%% of this software and associated documentation files (the "Software"), to deal in the Software without restrictio...
null
https://raw.githubusercontent.com/pgourlain/vscode_erlang/0af7641f1f4bcfb587094154d9c18a02fdb437e6/apps/erlangbridge/src/vscode_jsone.erl
erlang
@doc JSON encoding module @end The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the...
@private Copyright ( c ) 2013 - 2016 , < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY...
43b10c522cef86bd2d2dcc6a780a257477b15bcc7c9bb6463610e47765a0de34
jaspervdj/advent-of-code
01.hs
{-# LANGUAGE BangPatterns #-} import Data.Char (digitToInt) import qualified Data.Vector as V captcha :: (Int -> Int) -> V.Vector Int -> Int captcha f vec = V.sum $ V.ifilter (\idx0 x -> let !idx1 = f idx0 `mod` V.length vec in x == vec V.! idx1) vec main :: IO () main = do in...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/bdc9628d1495d4e7fdbd9cea2739b929f733e751/2017/01.hs
haskell
# LANGUAGE BangPatterns #
import Data.Char (digitToInt) import qualified Data.Vector as V captcha :: (Int -> Int) -> V.Vector Int -> Int captcha f vec = V.sum $ V.ifilter (\idx0 x -> let !idx1 = f idx0 `mod` V.length vec in x == vec V.! idx1) vec main :: IO () main = do input <- V.map digitToInt . V.fr...
8c3aba03f3d9ccd51a3861a2c7ac3444b38ef462b2f442d91c7e3ae2f6265c96
exoscale/clojure-kubernetes-client
v1_topology_selector_term.clj
(ns clojure-kubernetes-client.specs.v1-topology-selector-term (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-topology-selector-label-requirement :refer :all] ) (:import (java.io File))) (declare v1-topology-selector-term-d...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_topology_selector_term.clj
clojure
(ns clojure-kubernetes-client.specs.v1-topology-selector-term (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-topology-selector-label-requirement :refer :all] ) (:import (java.io File))) (declare v1-topology-selector-term-d...
dcd20dd62290cc9f1df2e8af90d9c4dfd160dc439ef300e9c0bb9a6c7ff8be40
xapi-project/xcp-rrdd
reporter_interdomain.ml
* Copyright ( C ) 2013 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking described in fi...
null
https://raw.githubusercontent.com/xapi-project/xcp-rrdd/f810004ae88d308043b73365a959562302b1d4b5/lib/plugin/reporter_interdomain.ml
ocaml
* Copyright ( C ) 2013 Citrix Systems Inc. * * This program 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 ; version 2.1 only . with the special * exception on linking described in fi...
076210c6702cad77bb8fdf53e66f9b51c6e4e9a5cade01e8bc6332605b59f9ca
gedge-platform/gedge-platform
rabbit_mirror_queue_mode.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2010 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mirror_queue_mode). -behaviour(ra...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/rabbit_mirror_queue_mode.erl
erlang
Called whenever we think we might need to change nodes for a mirrored queue. Note that this is called from a variety of will be pure-functional. Takes: parameters set in the policy, current master, current mirrors, current synchronised mirrors, all nodes to consider Returns: tup...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2010 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mirror_queue_mode). -behaviour(rabbit_r...
3b1cd4f665159432ab2bfc02227970f2802aeeee9a5ce4ccae524aca16c27928
alexkehayias/chocolatier
server.clj
(ns chocolatier.server (:require [compojure.core :refer :all] [compojure.route :as route] [ring.middleware.resource :refer [wrap-resource]] [ring.middleware.keyword-params :refer [wrap-keyword-params]] [ring.util.response :as response])) (defroutes app-routes (GET "/...
null
https://raw.githubusercontent.com/alexkehayias/chocolatier/6b77c1dbf10ef7ff83d0b5a2ebb9fda39edcde5a/src/clj/chocolatier/server.clj
clojure
(ns chocolatier.server (:require [compojure.core :refer :all] [compojure.route :as route] [ring.middleware.resource :refer [wrap-resource]] [ring.middleware.keyword-params :refer [wrap-keyword-params]] [ring.util.response :as response])) (defroutes app-routes (GET "/...
754bf45a92a222af7655e2eb8a5a19d9d536b61f72bd2f2af8f1cb1626f60d1f
ddmcdonald/sparser
processes.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 2014 - 2019 -- all rights reserved ;;; ;;; File: "processes" Module : " : kinds : " version : February 2019 Broken out from upper - model and added long definitions 3/31/14 . 9/24/14 Moved event above perdurant as a ...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/0f5ecedd572bc054725ee0d3b23f390c336b7b0f/Sparser/code/s/grammar/model/core/kinds/processes.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "processes" we get the variables presently on event without (yet) saying something about perdurants -- that will take some more thought and engender more changes later. Cleaned up some wording too. manner to event. 1/28/2015 added variable for ge...
copyright ( c ) 2014 - 2019 -- all rights reserved Module : " : kinds : " version : February 2019 Broken out from upper - model and added long definitions 3/31/14 . 9/24/14 Moved event above perdurant as a hack to ensure that 10/27/14 added circumstance to event variables . 1/11/15 added 1/1...
41b6eebed660d1ff9a74bb53beddcb33a931d0e14ac717626a207768c7870fcb
johnwhitington/ocamli
f.ml
let rec pairs f a = function h::h'::t -> pairs f (f h h'::a) (h'::t) | _ -> List.rev a let x = pairs ( + ) [] [1; 2; 3; 4]
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/ocamli2/example/f.ml
ocaml
let rec pairs f a = function h::h'::t -> pairs f (f h h'::a) (h'::t) | _ -> List.rev a let x = pairs ( + ) [] [1; 2; 3; 4]
8e97754381a71b5c716cda3f434cdaf5e940b03ae23cfe64f3a52c41b253bd51
schell/odin
Animation.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # module Odin.Engine.GUI.Animation where import Control.Monad.IO.Class (MonadIO (..)) import Control.Varying import Data.Functor.Identity (Identity (..)) --------------------------------------------------------------...
null
https://raw.githubusercontent.com/schell/odin/97ae1610a7abd19aa150bc7dfc132082d88ca9ea/odin-engine/src/Odin/Engine/GUI/Animation.hs
haskell
# LANGUAGE FlexibleContexts # ------------------------------------------------------------------------------
# LANGUAGE MultiParamTypeClasses # module Odin.Engine.GUI.Animation where import Control.Monad.IO.Class (MonadIO (..)) import Control.Varying import Data.Functor.Identity (Identity (..)) import Odin.Engine import Odin.Engine.Slots newtype Anime b = Anime { unAnime ::...
eeb7d3e8849871f2da58ec79df83bd25c42b9c2963c7040340596741c2cbc9d7
zippy/anansi
email_controller.clj
(ns #^{:author "Eric Harris-Braun" :doc "Email Controller receptor"} anansi.streamscapes.channels.email-controller (:use [anansi.ceptr] [anansi.receptor.scape] [anansi.streamscapes.streamscapes] [anansi.streamscapes.channel] [anansi.streamscapes.channels.email-bridge-in :only ...
null
https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/src/anansi/streamscapes/channels/email_controller.clj
clojure
THIS IS WAY CHEATING!! The controller needs to send this as a signal, not call it as a clojure function.
(ns #^{:author "Eric Harris-Braun" :doc "Email Controller receptor"} anansi.streamscapes.channels.email-controller (:use [anansi.ceptr] [anansi.receptor.scape] [anansi.streamscapes.streamscapes] [anansi.streamscapes.channel] [anansi.streamscapes.channels.email-bridge-in :only ...
0f1c40669cb775dd5c40fbe5f1d42ba9e7eeed3680900d74c6a26b5a0b804994
emqx/emqx
emqx_pmon.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/src/emqx_pmon.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 ...
Copyright ( c ) 2017 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_pmon). -compile({no_auto_import, [monitor/3, demonitor/1, demonitor/2]}). -export...
20fa9f3f1d072473235f512a57ce1654920a87d10d24a12a29dd40c32bb3afe4
TrustInSoft/tis-kernel
Slicing.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/slicing/Slicing.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...