_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
0342e6eed5c274a8396998143e00f9f0c8c8b307bad6aec2a55c82482ea9070e
myuon/refluxive
ClickCounterButton.hs
{-# LANGUAGE OverloadedStrings #-} module ClickCounterButton where import qualified SDL as SDL import qualified SDL.Primitive as SDLP import SDL.Vect import Control.Lens hiding (view) import Control.Monad import Control.Monad.State import Data.Ix (inRange) import qualified Data.Text as T import qualified Data.Refluxiv...
null
https://raw.githubusercontent.com/myuon/refluxive/611f891ccefa5d0289d15b11060e14a5e9e91a12/example/ClickCounterButton.hs
haskell
# LANGUAGE OverloadedStrings #
module ClickCounterButton where import qualified SDL as SDL import qualified SDL.Primitive as SDLP import SDL.Vect import Control.Lens hiding (view) import Control.Monad import Control.Monad.State import Data.Ix (inRange) import qualified Data.Text as T import qualified Data.Refluxive.UI.Button as Button import Graphi...
35d36e97efa432efc0b66e8f2d4dacfdc35ccef053663562e1b6caa4dd2112de
russmatney/org-crud
parse.clj
(ns org-crud.parse (:require [clojure.walk :as walk] [clojure.string :as string] [clojure.java.io :as io] [babashka.fs :as fs] #_[organum.core :as organum.core] [org-crud.node :as node])) (defn classify-line "Classify a line for dispatch to handle-line multimethod." [ln] (let [headline-re ...
null
https://raw.githubusercontent.com/russmatney/org-crud/11069d59925461601718c4bb4c29f74126093891/src/org_crud/parse.clj
clojure
node constructors handle line 'nesting' an ordered, flattened list of parsed org nodes set any parent ids set a nested parent name reduce over the level-diff or ctx-stack remove top from stack add top-of-stack to parent items update the item with the parent/stack context replace parent in stack with updated...
(ns org-crud.parse (:require [clojure.walk :as walk] [clojure.string :as string] [clojure.java.io :as io] [babashka.fs :as fs] #_[organum.core :as organum.core] [org-crud.node :as node])) (defn classify-line "Classify a line for dispatch to handle-line multimethod." [ln] (let [headline-re ...
a4229b28c15c57c22c4f07e52cc66ab9631734d5a3548e8baea3dd267b9b86e7
c-cube/maki
maki_yojson.mli
(* This file is free software. See file "license" for more details. *) * { 1 Simple wrapper for Yojson } type 'a or_error = 'a Maki.or_error (** Yojson.Safe *) type json = Yojson.Safe.json val hash : json Maki.Hash.t (** Taking json as hash *) val codec : json Maki.Codec.t (** Encoding/Decoding json to strings *)...
null
https://raw.githubusercontent.com/c-cube/maki/7067602c3b1206a92abfd221bc8950f30bb75b73/src/json/maki_yojson.mli
ocaml
This file is free software. See file "license" for more details. * Yojson.Safe * Taking json as hash * Encoding/Decoding json to strings
* { 1 Simple wrapper for Yojson } type 'a or_error = 'a Maki.or_error type json = Yojson.Safe.json val hash : json Maki.Hash.t val codec : json Maki.Codec.t val make : to_yojson:('a -> json) -> of_yojson:(json -> 'a or_error) -> string -> 'a Maki.Codec.t val make_exn : to_yojson:('a -> json) -> of_y...
e63cc713b172a88485be519a55b0bb89d51c94cd9cf9b06f29b87d83b965d0f4
abailly/aws-lambda-haskell
main.hs
module Main where import System.IO main :: IO () main = do ln <- getLine putStrLn $ "Got: " ++ ln
null
https://raw.githubusercontent.com/abailly/aws-lambda-haskell/df9afb7498500c2282515752f905a6e05bba9658/example-src/main.hs
haskell
module Main where import System.IO main :: IO () main = do ln <- getLine putStrLn $ "Got: " ++ ln
a28b0b11c16ca697900a91173e1b36a5be3e9efe931a2accdf84b6717e3ebf1a
alinpopa/qerl
qerl_stomp_protocol.erl
-module(qerl_stomp_protocol). -export([is_eof/1, parse/1]). -define(LF, 10). -define(NULL, 0). %% %% @doc Check if the passedin binary contains %% an end of frame character (NULL). %% -spec is_eof(BinData :: binary()) -> true | false. is_eof(BinData) -> Parsers = [fun(ParsedData) -> qerl_stomp_...
null
https://raw.githubusercontent.com/alinpopa/qerl/4c10c4617eea14d451101775a1feb20fb3709f9d/src/qerl_stomp_protocol.erl
erlang
@doc Check if the passedin binary contains an end of frame character (NULL). @doc Parse the incoming binary Frame and returns domain specific data. Debug/helper commands, that are not part of STOMP specs.
-module(qerl_stomp_protocol). -export([is_eof/1, parse/1]). -define(LF, 10). -define(NULL, 0). -spec is_eof(BinData :: binary()) -> true | false. is_eof(BinData) -> Parsers = [fun(ParsedData) -> qerl_stomp_utils:drop(cr, ParsedData) end, fun drop_invalid_beginning_...
6c829292aa48e1ca85ae35e9c3556406e346b49eaeeb7a516c024ca6ba7c6cf9
green-labs/honeysql-mysql
mysql_test.clj
(ns honey.sql.my.mysql-test (:require [clojure.test :refer [deftest run-tests is testing]] [honey.sql :as sql] [honey.sql.helpers :as h] [honey.sql.my.format] [honey.sql.my.helpers :as mh])) (deftest insert-ignore-into-test (testing "INSERT IGNORE INTO sql generation...
null
https://raw.githubusercontent.com/green-labs/honeysql-mysql/5d5cf3cbb59af7fa7bcccba745ff3cb7b68c89d3/test/honey/sql/my/mysql_test.clj
clojure
(ns honey.sql.my.mysql-test (:require [clojure.test :refer [deftest run-tests is testing]] [honey.sql :as sql] [honey.sql.helpers :as h] [honey.sql.my.format] [honey.sql.my.helpers :as mh])) (deftest insert-ignore-into-test (testing "INSERT IGNORE INTO sql generation...
dc3f47a72ac2bf5f65cbf7ed2e9cb8ecb0be3f08afe340690f4cd21d3721b9bf
tweag/servant-template
InMemoryContentRepository.hs
module InMemoryContentRepository where import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Except (ExceptT) import Data.Map.Lazy (Map, elems, filter, insert) import Data.UUID.V4 (nextRandom) import GHC.Conc (TVar, atomically, readTVar, writeTVar) import Hasql.Session (QueryError) import Tagger.Content (C...
null
https://raw.githubusercontent.com/tweag/servant-template/e12503efd484b27c483d165c01458f832a495f28/spec/InMemoryContentRepository.hs
haskell
module InMemoryContentRepository where import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Except (ExceptT) import Data.Map.Lazy (Map, elems, filter, insert) import Data.UUID.V4 (nextRandom) import GHC.Conc (TVar, atomically, readTVar, writeTVar) import Hasql.Session (QueryError) import Tagger.Content (C...
7f9d0a24b9404aef2401cc0d0c10fa70af28279cf504a9ff12523f3e144ebb3a
timothypratley/leaderboardx
shortest_path_visualize.cljs
(ns algopop.leaderboardx.graph.shortest-path-visualize (:require [reagent.core :as reagent] [clojure.set :as set] [clojure.string :as string] [algopop.leaderboardx.graph.graph :as graph] [cljs.pprint :as pprint])) (defonce vis (reagent/atom nil)) ;; TODO: add a clas...
null
https://raw.githubusercontent.com/timothypratley/leaderboardx/ad1719b3bb49fb7ab495ed833f1a451ebb3aec4d/src/algopop/leaderboardx/graph/shortest_path_visualize.cljs
clojure
TODO: add a class to nodes? TODO: switch to loom TODO: don't use pprint
(ns algopop.leaderboardx.graph.shortest-path-visualize (:require [reagent.core :as reagent] [clojure.set :as set] [clojure.string :as string] [algopop.leaderboardx.graph.graph :as graph] [cljs.pprint :as pprint])) (defonce vis (reagent/atom nil)) (def colors {:red...
a9b3bd28942709227c70dc6f868185b82682806f747c1bb468bdde7daa14fad9
JacquesCarette/Drasil
Core.hs
-- | Noun phrases are used to hold terms with knowledge of proper capitalization and pluralization. module Language.Drasil.NounPhrase.Core ( -- * Types CapitalizationRule(..), NP(..), PluralForm, PluralRule(..)) where import Language.Drasil.Sentence (Sentence) -- | Synonym for 'Sentence' typically used for plur...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/92dddf7a545ba5029f99ad5c5eddcd8dad56a2d8/code/drasil-lang/lib/Language/Drasil/NounPhrase/Core.hs
haskell
| Noun phrases are used to hold terms with knowledge of proper capitalization and pluralization. * Types | Synonym for 'Sentence' typically used for plural forms. These might change. | Capitalization rules. ^ Replace the noun phrase with the given 'Sentence'. Used for custom capitalization. | Pluralization rule...
module Language.Drasil.NounPhrase.Core ( CapitalizationRule(..), NP(..), PluralForm, PluralRule(..)) where import Language.Drasil.Sentence (Sentence) data CapitalizationRule = ^ Capitalize the first letter of the first word only . ^ Capitalize the first letter of each word . data PluralRule = | For nou...
1ef556712f416df2711f7832c599c6d0915fa9871571c69687f575e723d61c66
karimarttila/clojure
users_test.clj
(ns simpleserver.userdb.users-test (:require [clojure.test :refer :all] [clojure.tools.logging :as log] [environ.core :as environ] [simpleserver.userdb.users-factory :as ss-users-factory] [simpleserver.userdb.users-service-interface :as ss-users-svc] [simple...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/clj-ring-cljs-reagent-demo/simple-server/test/simpleserver/userdb/users_test.clj
clojure
(ns simpleserver.userdb.users-test (:require [clojure.test :refer :all] [clojure.tools.logging :as log] [environ.core :as environ] [simpleserver.userdb.users-factory :as ss-users-factory] [simpleserver.userdb.users-service-interface :as ss-users-svc] [simple...
3b12c0241346fb874cee097976a8700152fafae2e1f2ace2d02bb8cc64685ae6
ghc/ghc
Validity.hs
# LANGUAGE DerivingStrategies # # OPTIONS_GHC -Wno - incomplete - record - updates # # OPTIONS_GHC -Wno - incomplete - uni - patterns # ( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow...
null
https://raw.githubusercontent.com/ghc/ghc/496607fdb77baf12e2fe263104ba5d0d700eee3b/compiler/GHC/Tc/Validity.hs
haskell
friends: Solve the constraints eagerly because an ambiguous type can cause a cascade of further errors. Since the free tyvars are skolemised, we can safely use tcSimplifyTop See Note [Ambiguity check and deep subsumption] See Note [When we don't check for ambiguity] | Check whether the type signature contains c...
# LANGUAGE DerivingStrategies # # OPTIONS_GHC -Wno - incomplete - record - updates # # OPTIONS_GHC -Wno - incomplete - uni - patterns # ( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow...
96d442945af82aceaa4e48a9ce6cf90db5695477bafee70a4b39f1ffbfa7add0
ChrisPenner/rasa
VimSpec.hs
module Rasa.Ext.VimSpec where import Test.Hspec spec :: Spec spec = return ()
null
https://raw.githubusercontent.com/ChrisPenner/rasa/a2680324849088ee92f063fab091de21c4c2c086/rasa-ext-vim/test/Rasa/Ext/VimSpec.hs
haskell
module Rasa.Ext.VimSpec where import Test.Hspec spec :: Spec spec = return ()
42940dccc269a6d1d9f3bf0b6f8f3be070c36219f360250abf48a87cd7984148
circleci/mongofinil
test_helpers.clj
(ns mongofinil.test-helpers) ;;; Not helpers for tests, test for helpers
null
https://raw.githubusercontent.com/circleci/mongofinil/bceedb4f0d7d49934410131be8e29ba3c21ad3ad/test/mongofinil/test_helpers.clj
clojure
Not helpers for tests, test for helpers
(ns mongofinil.test-helpers)
a9c13a5d6e9fab432152696af70f377ff19c73a99778c7737821cecde0c9b86e
AccelerateHS/accelerate-llvm
Link.hs
{-# LANGUAGE CPP #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # -- | -- Module : Data.Array.Accelerate.LLVM.Native.Compile.Link Copyright : [ 2014 .. 2017 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimen...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm-native/icebox/Data/Array/Accelerate/LLVM/Native/Compile/Link.hs
haskell
# LANGUAGE CPP # | Module : Data.Array.Accelerate.LLVM.Native.Compile.Link License : BSD3 Stability : experimental llvm-hs accelerate standard library | Return function pointers to all of the global function definitions in the given executable module. | Extract the names of the funct...
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # Copyright : [ 2014 .. 2017 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.LLVM.Native.Compile.Link where import LLVM.AST import LLVM.AST.Global ...
44cbb454443d3f86180b5d4cebbd661a182588839d6bf22ece54cc1f2f8f13cc
Ekatereana/CommonLispWorks
fullouterjoin.lisp
(defun find_rows_all (table col_id value) (let ((len)) (simple-table:with-rows (table row) (setq len (length row)) (if (funcall (get_operation "=" value) value (aref row col_id)) (return-from find_rows_all row ) ) ) (return-from find_rows_a...
null
https://raw.githubusercontent.com/Ekatereana/CommonLispWorks/13111f7c45ec4d672dfdf3689ba22554d5c60727/fullouterjoin.lisp
lisp
(defun find_rows_all (table col_id value) (let ((len)) (simple-table:with-rows (table row) (setq len (length row)) (if (funcall (get_operation "=" value) value (aref row col_id)) (return-from find_rows_all row ) ) ) (return-from find_rows_a...
718cbc9e99dc1dc5bcea447f5dc110b346487c7836e9824b4495f449d4a9447d
RBornat/jape
cxtprovisos.ml
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . 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 ver...
null
https://raw.githubusercontent.com/RBornat/jape/afe9f207e89e965636b43ef8fad38fd1f69737ae/distrib/camlengine/cxtprovisos.ml
ocaml
this function used by rewrite, which is manipulating the provisosig intelligently
Copyright ( C ) 2003 - 19 This file is part of the proof engine , which is part of . 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 ver...
15a4b2549d248e37f014cdaa48528268350cc04075f97a7951da1b1cfa5f2d7f
maximedenes/native-coq
mod_typing.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/kernel/mod_typing.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** This module provides the main funct...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Created by , Aug 2002 as ...
4f1901dfa8d397d8db48050e68b2c06b702ee25007e0cec5d6cf33d65f1b338b
NorfairKing/tickler
InstanceSpec.hs
# LANGUAGE TypeApplications # module Tickler.API.Account.InstanceSpec ( spec, ) where import Test.Syd.Validity.Aeson import TestImport import Tickler.API.Account import Tickler.API.Account.Gen () spec :: Spec spec = do genValidSpec @AccountInfo jsonSpec @AccountInfo genValidSpec @AccountSettings jsonSpec...
null
https://raw.githubusercontent.com/NorfairKing/tickler/49f10fd0c55d9702dd7bd0116557ddcde9cc3ce0/tickler-api-gen/test/Tickler/API/Account/InstanceSpec.hs
haskell
# LANGUAGE TypeApplications # module Tickler.API.Account.InstanceSpec ( spec, ) where import Test.Syd.Validity.Aeson import TestImport import Tickler.API.Account import Tickler.API.Account.Gen () spec :: Spec spec = do genValidSpec @AccountInfo jsonSpec @AccountInfo genValidSpec @AccountSettings jsonSpec...
cf119ac8a3c1b762f9078041c2bff32cdd1b0a80124be144cdcb3130369d3cb2
GlideAngle/flare-timing
Forbes.hs
# OPTIONS_GHC -fno - warn - missing - signatures # module Ellipsoid.Vincenty.Forbes (units) where import Test.Tasty (TestTree, TestName, testGroup) import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.Units () import Flight.Distance (QTaskDistance) import Flight.Zone (Zone(...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite-forbes/Ellipsoid/Vincenty/Forbes.hs
haskell
# OPTIONS_GHC -fno - warn - missing - signatures # module Ellipsoid.Vincenty.Forbes (units) where import Test.Tasty (TestTree, TestName, testGroup) import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.Units () import Flight.Distance (QTaskDistance) import Flight.Zone (Zone(...
0f4c6e0d45bf8c19e9abd95ed08fb8bb8ed831a2ab9743cd4db880dc21db84b4
vikram/lisplibraries
address.lisp
(in-package :weblocks-demo-popover) ;;; Address (defclass address () ((street :initform nil :accessor address-street :initarg :street) (city :initform nil :accessor address-city :initarg :city) (state :initform nil :accessor address-state :type (or us-state null) :initarg :state))) ;;; F...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/weblocks-stable/contrib/yarek/examples/weblocks-demo-popover/src/model/address.lisp
lisp
Address Form View
(in-package :weblocks-demo-popover) (defclass address () ((street :initform nil :accessor address-street :initarg :street) (city :initform nil :accessor address-city :initarg :city) (state :initform nil :accessor address-state :type (or us-state null) :initarg :state))) (defview address-...
191de37d81c042ef490e62f744e579b17a3bb1b41b29d2458c4f00a8db7c4c28
valderman/haste-compiler
CodeGen.hs
# LANGUAGE TupleSections , PatternGuards , CPP , OverloadedStrings # module Haste.CodeGen (generate) where -- Misc. stuff import Control.Monad import Data.Int import Data.Bits import Data.Word import Data.Char import Data.List (partition, foldl') import Data.Maybe (isJust) import qualified Data.ByteString.Char8 as BS i...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/src/Haste/CodeGen.hs
haskell
Misc. stuff AST stuff General Haste stuff TODO: perhaps do dependency-based linking for externals as well? | Generate JS AST for bindings. | Check for builtins that should generate inlined code. At this point only w2i and i2w. Don't create unboxed tuples with a single element. | Trace the given expression, i...
# LANGUAGE TupleSections , PatternGuards , CPP , OverloadedStrings # module Haste.CodeGen (generate) where import Control.Monad import Data.Int import Data.Bits import Data.Word import Data.Char import Data.List (partition, foldl') import Data.Maybe (isJust) import qualified Data.ByteString.Char8 as BS import qualified...
6697f7ffa0d8821a5cf0b5fbc348d9c8ec551682f1a5866139f01655cb5b5354
zeniuseducation/poly-euler
4clojure.clj
(ns euler.practice.4clojure) # 28 (defn f28 [col] (if (empty? col) '() (if (coll? (first col)) (cons (first (first col)) (f28 (rest col))) (if (coll? (first (rest col))) (cons (first (rest col)) (f28 (rest col))) (cons (first col) (f28 (rest col)))))))
null
https://raw.githubusercontent.com/zeniuseducation/poly-euler/734fdcf1ddd096a8730600b684bf7398d071d499/clein/src/practice/4clojure.clj
clojure
(ns euler.practice.4clojure) # 28 (defn f28 [col] (if (empty? col) '() (if (coll? (first col)) (cons (first (first col)) (f28 (rest col))) (if (coll? (first (rest col))) (cons (first (rest col)) (f28 (rest col))) (cons (first col) (f28 (rest col)))))))
66e582ae4d42efdd1ad8d435fba7ea74d6018d8a67433a947a8bd9f2ea1aee57
aloiscochard/codec-jvm
Instr.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Codec.JVM.ASM.Code.Instr where import Control.Monad.Trans.RWS import Data.ByteString (ByteString) import Data.IntMap.Strict (IntMap) import Data.Monoid ((<>)) import qualified Data.ByteString as BS import qualified Data.IntMap.Strict as IntMap import Codec.JVM.ASM.Code....
null
https://raw.githubusercontent.com/aloiscochard/codec-jvm/2e5b73a3eb35620ae49216c8c12f0bec82bcbe26/src/Codec/JVM/ASM/Code/Instr.hs
haskell
packI16 packI16 op goto <> packI16 $ length ok op goto <> pack16 $ length ko
# LANGUAGE GeneralizedNewtypeDeriving # module Codec.JVM.ASM.Code.Instr where import Control.Monad.Trans.RWS import Data.ByteString (ByteString) import Data.IntMap.Strict (IntMap) import Data.Monoid ((<>)) import qualified Data.ByteString as BS import qualified Data.IntMap.Strict as IntMap import Codec.JVM.ASM.Code....
92d0f557e86eec646b915304dc8ed7ad91ea00b298ce292eccd0b2bd7e5e9c81
zachjs/sv2v
StructConst.hs
sv2v - Author : < > - - High - level elaboration for struct constant accesses - - This greatly simplifies designs with long sequences of struct parameters - which extend and reference one another , as seen in BlackParrot . - Author: Zachary Snow <> - - High-level elaboration for struct cons...
null
https://raw.githubusercontent.com/zachjs/sv2v/086eb78688606050cc301a6ab2766196350b6073/src/Convert/StructConst.hs
haskell
track struct type parameters track and resolve struct constants extract the pattern items, including for simple aliases elaborate constant field accesses lookup value in struct constant
sv2v - Author : < > - - High - level elaboration for struct constant accesses - - This greatly simplifies designs with long sequences of struct parameters - which extend and reference one another , as seen in BlackParrot . - Author: Zachary Snow <> - - High-level elaboration for struct cons...
bec3e314b8c0d556fdaadfee1b2fff836e0d895cbd89893645bbf9acbb5bab4e
jjmeyer0/gt
dump.mli
(** *) val dump_lexer : Grammar.Grammar.grammar -> unit (** *) val dump_syntax : Grammar.Grammar.grammar -> unit (** *) val dump_parser : Grammar.Grammar.grammar -> unit (** *) val dump_main : Grammar.Grammar.grammar -> unit (** *) val dump_util : Grammar.Grammar.grammar -> unit (** Creates a make file for needed ...
null
https://raw.githubusercontent.com/jjmeyer0/gt/c0c7febc2e3fd532d44617f663b224cc0b9c7cf2/src/dump.mli
ocaml
* * * * * * Creates a make file for needed for the generated parser.
val dump_lexer : Grammar.Grammar.grammar -> unit val dump_syntax : Grammar.Grammar.grammar -> unit val dump_parser : Grammar.Grammar.grammar -> unit val dump_main : Grammar.Grammar.grammar -> unit val dump_util : Grammar.Grammar.grammar -> unit val dump_Makefile : Grammar.Grammar.grammar -> unit
b44a58e88b25aa505ac5036b80e95f697a31022dbaec84df8470906bf1e99702
barrucadu/irc-conduit
Lens.hs
-- | Module : Network . IRC.Conduit Copyright : ( c ) 2017 License : MIT Maintainer : < > -- Stability : experimental -- Portability : portable -- -- 'Lens'es and 'Prism's. module Network.IRC.Conduit.Lens where import Data.ByteString (ByteString) import D...
null
https://raw.githubusercontent.com/barrucadu/irc-conduit/dd17043a5d4fa194806b5cce7c108744fe756a87/Network/IRC/Conduit/Lens.hs
haskell
| Stability : experimental Portability : portable 'Lens'es and 'Prism's. * Lenses for 'Event' | 'Lens' for '_raw'. | 'Lens' for '_source'. | 'Lens' for '_message'. * Prisms for 'Source' | 'Prism' for 'User' # INLINE _User # | 'Prism' for 'Channel' | 'Prism' for 'Server' # INLINE _Server # * Prisms for '...
Module : Network . IRC.Conduit Copyright : ( c ) 2017 License : MIT Maintainer : < > module Network.IRC.Conduit.Lens where import Data.ByteString (ByteString) import Data.Profunctor (Choice(right'), ...
5e7e1c52880cc2390346edae012260b72351a5a74aee220e1852f1f7755b55e1
TyOverby/mono
bonsai_partial_render_table_example.mli
open! Core open! Bonsai_web module Row = Row val component : ?filter:(key:string -> data:Row.t -> bool) Bonsai.Value.t -> Row.t String.Map.t Value.t -> Vdom.Node.t Computation.t
null
https://raw.githubusercontent.com/TyOverby/mono/9f361de248f67441dd1486419ba19044b6fa4fad/app/bonsai-examples/partial_render_table/src/bonsai_partial_render_table_example.mli
ocaml
open! Core open! Bonsai_web module Row = Row val component : ?filter:(key:string -> data:Row.t -> bool) Bonsai.Value.t -> Row.t String.Map.t Value.t -> Vdom.Node.t Computation.t
bf0d2040d7de48a6dff65e586fbc633214ac6fd3ec9d1fc91555b39be5094514
kyleburton/clj-lfsr
project.clj
(defproject com.github.kyleburton/clj-lfsr "1.3.5-SNAPSHOT" :description "LFSR Library" :url "-lfsr" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo :comments "Same a...
null
https://raw.githubusercontent.com/kyleburton/clj-lfsr/3d37d7116ad8ae565cb9e771659a98a608a4574b/project.clj
clojure
(defproject com.github.kyleburton/clj-lfsr "1.3.5-SNAPSHOT" :description "LFSR Library" :url "-lfsr" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo :comments "Same a...
078a0728aebaf8f52da04cf4429d677c61ff33a642df987bda87f6a61c7e49ce
fukamachi/clozure-cl
ffi-solarisx8632.lisp
;;; Copyright 2009 Clozure Associates This file is part of Clozure CL . ;;; Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the file " LICENSE " . The LLGPL consists of a preamble and the LGPL , which is distributed with ...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/lib/ffi-solarisx8632.lisp
lisp
Copyright 2009 Clozure Associates Where these conflict, the preamble takes precedence. The LLGPL is also available online at
This file is part of Clozure CL . Clozure CL is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL and distributed with Clozure CL as the file " LICENSE " . The LLGPL consists of a preamble and the LGPL , which is distributed with Clozure CL as the file " LGPL " . Clozur...
e2a0847790b6dfa66509b2405a85d2637b1bcf8604be2d631822266d22295831
wfnuser/sicp-solutions
e4-2.scm
(define (eval exp env) (cond ((self-evaluating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((assignment? exp) (eval-assignment exp env)) ((definition? exp) (eval-definition exp env)) ((if? exp) (eval...
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch4/e4-2.scm
scheme
b) ((procedure-call? exp) (apply (eval (operator exp) env) (list-of-values (operands exp) env)))
(define (eval exp env) (cond ((self-evaluating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((assignment? exp) (eval-assignment exp env)) ((definition? exp) (eval-definition exp env)) ((if? exp) (eval...
24e15dfe19780d87825a1c2b6b9aa58fa9523f024909b2bf9b20818885b9b98a
KestrelInstitute/Specware
simple-rules.lisp
-*- Mode : LISP ; Package : Specware ; Base : 10 ; Syntax : Common - Lisp -*- (defpackage :SpecCalc (:use :COMMON-LISP-USER)) (defpackage :LM (:use :COMMON-LISP-USER)) (in-package :Parser4) ;;; ======================================================================== ;;; Simple names are just unstructured stri...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/Languages/MetaSlang/CodeGen/Handwritten/Lisp/OLD/simple-rules.lisp
lisp
Package : Specware ; Base : 10 ; Syntax : Common - Lisp -*- ======================================================================== Simple names are just unstructured strings -- no packages, qualifiers, etc. They could appear in pretty much any language. ========================================================...
(defpackage :SpecCalc (:use :COMMON-LISP-USER)) (defpackage :LM (:use :COMMON-LISP-USER)) (in-package :Parser4) (define-lm-parser-rule :Simple_Id (:tuple (1 :Symbol)) (common-lisp::symbol-name (quote 1))) (define-lm-parser-rule :SImple_Name (:tuple (1 :Symbol)) (common-lisp::symbol-name (quote 1...
41cfde557dda5479b3bf770991e56f348d03606fd85347359215045b2437662f
amnh/PCG
Graph.hs
------------------------------------------------------------------------------ -- | -- Module : Bio.PhyloGraphPrime.PhylogeneticDAG Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Containing the mast...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/core/data-structures/src/Bio/Graph.hs
haskell
---------------------------------------------------------------------------- | Module : Bio.PhyloGraphPrime.PhylogeneticDAG License : BSD-style Maintainer : Stability : provisional Portability : portable Containing the master command for unifying all input types: tree, metadata, and sequence ...
Copyright : ( c ) 2015 - 2021 Ward Wheeler # LANGUAGE FlexibleContexts # module Bio.Graph ( CharacterResult , CharacterDAG , CharacterNode , DecoratedCharacterResult , DecoratedCharacterNode , EdgeAnnotation , FinalDecorationDAG , FinalCharacterNode , FinalCharacterSequence , FinalMetadata ...
b383051ef45a58554f0aedefbd429a897b7b1115edad2949ad09f3849a7e7e8f
technomancy/leiningen
classpath.clj
(ns leiningen.core.test.classpath (:use [clojure.test] [leiningen.core.classpath]) (:require [clojure.java.io :as io] [clojure.stacktrace :as stacktrace] [leiningen.core.user :as user] [leiningen.core.main :as main] [leiningen.test.helper :as lthelper] ...
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/leiningen-core/test/leiningen/core/test/classpath.clj
clojure
Can't have user-level profiles interfering! can't recur from finally can't recur from finally
(ns leiningen.core.test.classpath (:use [clojure.test] [leiningen.core.classpath]) (:require [clojure.java.io :as io] [clojure.stacktrace :as stacktrace] [leiningen.core.user :as user] [leiningen.core.main :as main] [leiningen.test.helper :as lthelper] ...
348d0074b7c89d72740ad9093dceaae5bec8b8b6be20d170bc23820e37057240
tqtezos/stablecoin
Contract.hs
SPDX - FileCopyrightText : 2021 Oxhead Alpha SPDX - License - Identifier : MIT module Stablecoin.Client.Contract ( InitialStorageOptions(..) ) where import Lorentz.Contracts.Stablecoin (Expiry) import Morley.Tezos.Address.Alias (ContractAddressOrAlias, SomeAddressOrAlias) import Stablecoin.Client.Parser (Cont...
null
https://raw.githubusercontent.com/tqtezos/stablecoin/48012781d6c2d46d4cb8f0508a8ca1576481a561/haskell/src/Stablecoin/Client/Contract.hs
haskell
| The options needed to create the data for the contract's initial storage.
SPDX - FileCopyrightText : 2021 Oxhead Alpha SPDX - License - Identifier : MIT module Stablecoin.Client.Contract ( InitialStorageOptions(..) ) where import Lorentz.Contracts.Stablecoin (Expiry) import Morley.Tezos.Address.Alias (ContractAddressOrAlias, SomeAddressOrAlias) import Stablecoin.Client.Parser (Cont...
f4d7cdc1c92c7b107547a0a2d172c4c24b480815d46ecdc247e57654d205f7ca
CryptoKami/cryptokami-core
Consumer.hs
# LANGUAGE AllowAmbiguousTypes # | Consumer of data computed by LRC . module Pos.Lrc.Consumer ( LrcConsumer (..) , lrcConsumerFromComponent , lrcConsumerFromComponentSimple ) where import Universum import Pos.Core (BlockVersionData, Coin, CoinPortion, EpochIndex, ap...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/lrc/Pos/Lrc/Consumer.hs
haskell
If you want to compute richmen, you should add such client to LRC framework ^ Function which computes threshold taking total stake in the system as an argument. ^ Function which defines necessity of richmen computation ^ Callback which will be called when richmen computed ^ Whether delegated stake should be consi...
# LANGUAGE AllowAmbiguousTypes # | Consumer of data computed by LRC . module Pos.Lrc.Consumer ( LrcConsumer (..) , lrcConsumerFromComponent , lrcConsumerFromComponentSimple ) where import Universum import Pos.Core (BlockVersionData, Coin, CoinPortion, EpochIndex, ap...
a8dc9dabd9b5078d7e5e9f84f5e0492a86e5d395f95decfc0dde58794ae6fd86
eudoxia0/trivial-ssh
streams.lisp
(in-package :libssh2) ;; clos facade: for blocking streams!! ;; (defun throw-last-error (session) (multiple-value-bind (message code) (session-last-error session) (error 'ssh-generic-error :message message :code code))) (defmacro with-last-error ((session error-type) &rest args)...
null
https://raw.githubusercontent.com/eudoxia0/trivial-ssh/b0e85a465aec2dc899f69bbf6b4e3bff3cd90103/libssh2/streams.lisp
lisp
clos facade: for blocking streams!! ;; Search for new line in cached tail Save substring or whole vector if any If newline found - save position and return concatenated string If not - try to catch next portion Return last cached data If string passed, then flush previous buffer if any If no room in internal bu...
(in-package :libssh2) (defun throw-last-error (session) (multiple-value-bind (message code) (session-last-error session) (error 'ssh-generic-error :message message :code code))) (defmacro with-last-error ((session error-type) &rest args) `(multiple-value-bind (message code) ...
c3350f96fed84e1649e96cae03af06aaffe5ed92e510404c64347aa46947d5ac
slipstream/SlipStreamServer
user_params_exec.clj
(ns com.sixsq.slipstream.ssclj.resources.user-params-exec (:require [com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud] [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.spec.user-params-template-exec] [com.sixsq.slipstream.ssclj.resources....
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/user_params_exec.clj
clojure
multimethods for validation transform template into user params esource initialization: no schema for this parent resource
(ns com.sixsq.slipstream.ssclj.resources.user-params-exec (:require [com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud] [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.spec.user-params-template-exec] [com.sixsq.slipstream.ssclj.resources....
84819298b535af8b69409475befa04215d110e9cf5b89572534ad02d00b51942
lfkdsk/SICP-Magical-Book
adder.rkt
半加器 全加器 (define (half-adder a b s c) (let ((d (make-wire)) (e (make-wire))) (or-gate a b d) (and-gate a b c) (inverter-gate c e) (and-gate d e s) 'ok)) (define (full-adder a b c-in sum c-out) (let ((s (make-wire)) (c1 (make-wire)) (c2 (make-wire))) (half-adder b c-...
null
https://raw.githubusercontent.com/lfkdsk/SICP-Magical-Book/4f4d4822ed27834ded7c782d9874c73a6d3378d0/code/simula/adder.rkt
racket
半加器 全加器 (define (half-adder a b s c) (let ((d (make-wire)) (e (make-wire))) (or-gate a b d) (and-gate a b c) (inverter-gate c e) (and-gate d e s) 'ok)) (define (full-adder a b c-in sum c-out) (let ((s (make-wire)) (c1 (make-wire)) (c2 (make-wire))) (half-adder b c-...
c417adc26f8bda0d218d8a90d892c07ca8cb7285539e0667de4ffadc4e6e3a4f
ocsigen/ocaml-eliom
plug2.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/lib-dynlink-bytecode/plug2.ml
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2007 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the external stub2: unit -> unit = "stub2" let f x = print_string "This is Plug2.f\n"; x + 2 let () = Regist...
b713d4831ff4c1767f2a33dfd22e89de1faf0e4456d3fd4b6c8398412e257d59
jellelicht/guix
hash.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 ...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/hash.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix hash) #:use-module (guix gcrypt) #:use-module (rnrs bytevectors) #...
f87342e6bc6197dc7a006e79315c7c19fa51cb6d177f7de00950707b5e299112
juxt/jig
util.clj
Copyright © 2013 , JUXT LTD . All Rights Reserved . ;; ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/juxt/jig/3997887e5a56faadb1b48eccecbc7034b3d31e41/console/src/jig/console/util.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. ...
Copyright © 2013 , JUXT LTD . All Rights Reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns jig.console.util) (defn emit-element [e] (if (instance? String e) (print e) (do (print (str "<" (name (:tag e)))) (when (:attrs e) (doseq [attr (:attrs e)] (print (str " " (name (key attr)) ...
38292ecaa6db5a7d2d557661120b8eb6da7858e5e0fa5cf7169fb8c62b9c9ed7
facebook/flow
immQueue.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/9758ad3411ea5809ad49230d2678f4c9299945e2/src/hack_forked/utils/collections/immQueue.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
d109820fafa5c59fdbaba80c15b7a0517aff4b44e6a1e34d42da90b823b47410
vbrankov/hdf5-ocaml
h5.mli
open Bigarray open Hdf5_raw (** Escape slash characters in the given string with '\-'. *) val escape : string -> string (** Unescape slash characters in the given string with '\-'. *) val unescape : string -> string (** Sets the default deflate to be used when writing data. *) val set_default_deflate : int -> unit ...
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/caml/h5.mli
ocaml
* Escape slash characters in the given string with '\-'. * Unescape slash characters in the given string with '\-'. * Sets the default deflate to be used when writing data. * Returns the default deflate used when writing data. * Creates the named file and returns the root group. * Opens the named file for reading ...
open Bigarray open Hdf5_raw val escape : string -> string val unescape : string -> string val set_default_deflate : int -> unit val default_deflate : unit -> int * Sets whether the create HDF5 files are split by default . See [ open _ ] . val set_default_split : bool -> unit * Returns whether the created HDF5 f...
f541162da3d8ac5714dec7adb0dc46105b0198dc20d1158a130164b90c6e1df7
mariari/Misc-Lisp-Scripts
algorithms.lisp
;; split this out into multiple files plz (eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload '(serapeum babel select cl-intbytes bit-smasher cl-utilities array-utils fiveam))) (defpackage #:misc.algorithms (:documentation "Various Algorithms") (:use #:cl #:serapeum) (:export :blake2)) (in-p...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/f4be0cb461c20fc76af0001ebbdc082f48fd8b19/algorithms.lisp
lisp
split this out into multiple files plz Blake 2 derivation why does the wiki article have so much for mutation This is my slow version. I'm not sure how much the extra conversions really cost us, but I assume quite a bit the amount padded why so mutative ☹ longest function, think why this is correct, matches ...
(eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload '(serapeum babel select cl-intbytes bit-smasher cl-utilities array-utils fiveam))) (defpackage #:misc.algorithms (:documentation "Various Algorithms") (:use #:cl #:serapeum) (:export :blake2)) (in-package :misc.algorithms) ( ( sqrt 2 )...
495c5658c0fc626e957f533a8645ea871656079214d8ef82fd39d0785d52d1cc
binaryage/clearcut
runner.cljs
(ns clearcut.runner (:require-macros [clearcut.runner :refer [ansi-enabled?]]) (:require [cljs.test :as test :refer-macros [run-tests] :refer [report]] [clearcut.main])) ; taken from (def ANSI-CODES {:reset "[0m" :bright "[1m" :blink-slow "[5m" :underline ...
null
https://raw.githubusercontent.com/binaryage/clearcut/7f44705cd8743f8679199cb78a215487eb411ed4/test/src/runner/clearcut/runner.cljs
clojure
taken from -- entry point ------------------------------------------------------------------------------------------------------------
(ns clearcut.runner (:require-macros [clearcut.runner :refer [ansi-enabled?]]) (:require [cljs.test :as test :refer-macros [run-tests] :refer [report]] [clearcut.main])) (def ANSI-CODES {:reset "[0m" :bright "[1m" :blink-slow "[5m" :underline "[4m" :u...
c61ad55f30248d9933cde6421eca2566715b2bc44c4b60b39e28e9aa1e4c4a8f
logseq/bb-tasks
cached_db.clj
(ns logseq.bb-tasks.nbb.cached-db "Handles bb side of cached-db functionality" (:require [babashka.fs :as fs] [babashka.process :refer [shell]])) (defn ensure-latest-cached-db "Writes a new cached db if any of the graph's files have changed" ;; :depends fn are weirdly pass their dependent's args so...
null
https://raw.githubusercontent.com/logseq/bb-tasks/7e97bed949ef2f53df7bef3abfb4684b61608df8/src/logseq/bb_tasks/nbb/cached_db.clj
clojure
:depends fn are weirdly pass their dependent's args so allow anything through
(ns logseq.bb-tasks.nbb.cached-db "Handles bb side of cached-db functionality" (:require [babashka.fs :as fs] [babashka.process :refer [shell]])) (defn ensure-latest-cached-db "Writes a new cached db if any of the graph's files have changed" [& _args] (when-let [files (seq (fs/modified-since (fs/...
3cba00bf12c893e90725e47f3391cc896a2758d7e5347043ba38f87ada929a99
jrh13/hol-light
UniversalPropCartProd.ml
( c ) Copyright , 2013 Distributed under the same license as HOL Light (* *) Definitions of FunctionSpace and FunctionComposition . A proof that the Cartesian pro...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/RichterHilbertAxiomGeometry/UniversalPropCartProd.ml
ocaml
( c ) Copyright , 2013 Distributed under the same license as HOL Light Definitions of FunctionSpace and FunctionComposition . A proof that the Cartesian product satisfies the universal property that given functions α ∈ M → A and β ...
6dc751656f525e91bdadc3c451840d8b2733c932044ee49c7e61f22bfcdbcae3
rurban/clisp
must-package.lisp
Copyright ( C ) 2002 - 2004 , < > ;; ALL RIGHTS RESERVED. ;; $ I d : must - package.lisp , v 1.12 2004/08/09 02:49:54 yuji Exp $ ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; * Redistributions of s...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/sacla-tests/must-package.lisp
lisp
ALL RIGHTS RESERVED. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributi...
Copyright ( C ) 2002 - 2004 , < > $ I d : must - package.lisp , v 1.12 2004/08/09 02:49:54 yuji Exp $ " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIAB...
862c3af00349ba3cca088b0a4975ecc2f732a649c6e2ee508cf3a8344a27133f
wilkerlucio/oge
core.cljs
(ns com.wsscode.oge.core (:require [fulcro.client.data-fetch :as fetch] [fulcro.client.mutations :as mutations] [fulcro-css.css :as css] [com.wsscode.pathom.core :as p] [com.wsscode.pathom.profile :as p.profile] [com.wsscode.pathom.connect :as p.connect] ...
null
https://raw.githubusercontent.com/wilkerlucio/oge/ef25e1f52ff2d9983714ee3c073534c84c3153c4/src/com/wsscode/oge/core.cljs
clojure
(ns com.wsscode.oge.core (:require [fulcro.client.data-fetch :as fetch] [fulcro.client.mutations :as mutations] [fulcro-css.css :as css] [com.wsscode.pathom.core :as p] [com.wsscode.pathom.profile :as p.profile] [com.wsscode.pathom.connect :as p.connect] ...
2beb13fc23ce202ea1b50d02482aef04fc80edb949d8acfcb5277be2962f3443
mojombo/yaws
yaws_api.erl
%%---------------------------------------------------------------------- %%% File : yaws_api.erl Author : < > %%% Purpose : Created : 24 Jan 2002 by < > %%%---------------------------------------------------------------------- -module(yaws_api). -author(''). %% -compile(export_all). -include("../inc...
null
https://raw.githubusercontent.com/mojombo/yaws/f75fde80f1e35a87335f21d0983e3285eb665f17/src/yaws_api.erl
erlang
---------------------------------------------------------------------- File : yaws_api.erl Purpose : ---------------------------------------------------------------------- -compile(export_all). these are a bunch of function that are useful inside yaws scripts parse the command line query data parse url encod...
Author : < > Created : 24 Jan 2002 by < > -module(yaws_api). -author(''). -include("../include/yaws.hrl"). -include("../include/yaws_api.hrl"). -include("yaws_debug.hrl"). -export([parse_query/1, parse_post/1, parse_multipart_post/1, parse_multipart/2]). -export([code_to_phrase/1, ssi/2, redirect/1...
1529a54b374a1acdf77134cc3c666770020a699c83c6c2d52c8fa95399ea1a76
smarkets/smk_erlang_sdk
smk_sup.erl
-module(smk_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Args, Type, Restart), {I, {I, start_link, Args}, Restart, 5000, Type, [I]}). %% ================================================...
null
https://raw.githubusercontent.com/smarkets/smk_erlang_sdk/f56ba38201a8d3bc6e2621a402e16f486f8acf09/src/smk_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(smk_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Args, Type, Restart), {I, {I, start_link, Args}, Restart, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Cache = case application:get_env(smk, cach...
b1fd90184a4dda1ac286073b218fba7a73ac6c23c0058eac6e05053d103bb608
manuel-serrano/bigloo
util.scm
;; ---------------------------------------------------------------------- ;; ;; FICHIER : util.scm ;; DATE DE CREATION : Thu Jun 29 15:11:17 1995 ; ; DERNIERE MODIFICATION : Thu Jun 29 15:12:47 1995 ; ; ;; ------...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Lalr/util.scm
scheme
---------------------------------------------------------------------- ;; FICHIER : util.scm ;; ; ; ---------------------------------------------------------------------- ;; ; ---------------------------------------------------------------------- ;; Quelques f...
(module __lalr_util (import __error __param) (use __type __bigloo __tvector __structure __tvector __bexit __bignum __object __thread __rgc __bit __r4_numbers_6_5 __r4_numbers_6_5_fixnum __r4_numbers_6_5_flonum __r4_numbers_6_5_flonum_dtoa _...
6da461d1b40c6a872308962ff7a47aac685d1fce369c2060ea4223febf4bf13a
athos/Pinpointer
runner.cljs
(ns pinpointer.runner (:require [doo.runner :refer-macros [doo-tests]] pinpointer.core-test pinpointer.formatter-test pinpointer.trace-test)) (doo-tests 'pinpointer.trace-test 'pinpointer.formatter-test 'pinpointer.core-test)
null
https://raw.githubusercontent.com/athos/Pinpointer/30ddfb2afb467423370960973202e44fa4e956eb/test/cljs/pinpointer/runner.cljs
clojure
(ns pinpointer.runner (:require [doo.runner :refer-macros [doo-tests]] pinpointer.core-test pinpointer.formatter-test pinpointer.trace-test)) (doo-tests 'pinpointer.trace-test 'pinpointer.formatter-test 'pinpointer.core-test)
187cb6aaf6d1fd2f98ae252e97081bfb17bfa48a2093676d09ac2bedf2ee2ae9
cram2/cram
tests.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :it.bese.fiveam) (in-suite :it.bese.fiveam) (def-suite test-suite :description "Suite for tests which should fail.") (defmacro with-test-results ((results test-name) &body body) `(let ((,results (with-*test-dribble* nil (run ',test-name)))) ,@body)) ...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/fiveam/src/t/tests.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- Test the checks non top level checks Test dependencies dependencies with symbol No failure here, because it means the test was run. test for-all
(in-package :it.bese.fiveam) (in-suite :it.bese.fiveam) (def-suite test-suite :description "Suite for tests which should fail.") (defmacro with-test-results ((results test-name) &body body) `(let ((,results (with-*test-dribble* nil (run ',test-name)))) ,@body)) (def-fixture null-fixture () `(progn ,@(&bod...
72ae3f15251dcfb799c95e3aaef039e571d2d3eade9c0381d1de3f1787c86d95
pjones/openid-connect
Provider.hs
{-| Copyright: This file is part of the package openid-connect. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at: -connect No part of this package, including this file, may be copied, modified, propagated, or distributed except accord...
null
https://raw.githubusercontent.com/pjones/openid-connect/23b03940613a1b0a633747b5fecaf61b3fbd8a09/src/OpenID/Connect/Client/Provider.hs
haskell
| Copyright: This file is part of the package openid-connect. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at: -connect No part of this package, including this file, may be copied, modified, propagated, or distributed except accordin...
module OpenID.Connect.Client.Provider ( ProviderDiscoveryURI , discovery , keysFromDiscovery , Provider(..) , discoveryAndKeys , DiscoveryError(..) * Discovery document , Discovery(..) , URI(..) , uriToText ) where import Control.Exception (Exception) import Control.Monad.Except (ExceptT...
2facd50d7748dd49317890d5111cbb39f9c833da424249e4942b2d971700596e
JacquesCarette/Drasil
Classes.hs
module GOOL.Drasil.Classes (Pair(..)) where class Pair p where pfst :: p x y a -> x a psnd :: p x y b -> y b pair :: x a -> y a -> p x y a
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/92dddf7a545ba5029f99ad5c5eddcd8dad56a2d8/code/drasil-gool/lib/GOOL/Drasil/Classes.hs
haskell
module GOOL.Drasil.Classes (Pair(..)) where class Pair p where pfst :: p x y a -> x a psnd :: p x y b -> y b pair :: x a -> y a -> p x y a
817cd3e6bd93065902d173e0ecc3138085ed5cb3c0392753c2eecc96ec1256b5
haskell/bytestring
Builder.hs
# LANGUAGE MagicHash # {-# LANGUAGE BangPatterns #-} # LANGUAGE Trustworthy # # OPTIONS_GHC -fno - warn - unused - imports -fno - warn - orphans # | Copyright : ( c ) 2010 ( c ) 2010 - 2011 License : BSD3 - style ( see LICENSE ) Maintainer : < > Portability : GHC ' Bui...
null
https://raw.githubusercontent.com/haskell/bytestring/6e3f1770d27a736ccb84cd30963e2943213a4c3a/Data/ByteString/Builder.hs
haskell
# LANGUAGE BangPatterns # add this import to the ones above add this import to the ones above * The Builder type * Executing Builders | Internally, 'Builder's are buffer-filling functions. They are executed by a /driver/ that provides them with an actual buffer to fill. Once called with a buffer, a 'Builder' fi...
# LANGUAGE MagicHash # # LANGUAGE Trustworthy # # OPTIONS_GHC -fno - warn - unused - imports -fno - warn - orphans # | Copyright : ( c ) 2010 ( c ) 2010 - 2011 License : BSD3 - style ( see LICENSE ) Maintainer : < > Portability : GHC ' Builder 's are used to efficientl...
08f05d2275d5d02abaede23ee8eb47fdfffa75d3ca487c134f352a716fee1fa9
sbcl/sbcl
mlf.impure-cload.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (defstruct fool x)) (eval-when (:compile-toplevel) (defmethod make-load-form ((self fool) &optional env) (declare (ignore env)) `(make-fool :x ,(fool-x self))) (defparameter *crashy* t) (defmethod print-object ((self fool) stream) (if *crashy* ...
null
https://raw.githubusercontent.com/sbcl/sbcl/38be0a3022246bf8bb4bfa5c162170e710bc4145/tests/mlf.impure-cload.lisp
lisp
We used to try to "name" everything dumped. just in case it was going to signal print-not-readable. Now we don't print-object at all.
(eval-when (:compile-toplevel :load-toplevel :execute) (defstruct fool x)) (eval-when (:compile-toplevel) (defmethod make-load-form ((self fool) &optional env) (declare (ignore env)) `(make-fool :x ,(fool-x self))) (defparameter *crashy* t) (defmethod print-object ((self fool) stream) (if *crashy* ...
fa7efb2e0081242e19986f7cc818fb4c51801ae66ec83ce64bf67dede5a26d39
brendanhay/gogol
Group.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-securitycenter/gen/Gogol/SecurityCenter/Organizations/Sources/Findings/Group.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Filters an organization or source\'s findings and groups them by their specified properties. To group across all sources provide a @-@ as the source id. Example: \/v1p1beta1\/organizations\/{organization_id}\/sources\/-\/findings ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
5c6a1ee4c91279e5afd16095182d7c290e38ebf5ee05b94bb2dc95cbdbe30005
exoscale/tools.project
project.clj
(ns exoscale.tools.project "All functions in this modules are meant to be used with -T. They will trigger invocation of exoscale.tools.project functions with the same name or tasks with same id. If we can infer that we are in a multi-module setup at the root we will invoke the corresponding task, if not we ...
null
https://raw.githubusercontent.com/exoscale/tools.project/b183fa74febb3f5f4daeb0c732a3817bf09e0f33/src/exoscale/tools/project.clj
clojure
module aware commands Tasks go below
(ns exoscale.tools.project "All functions in this modules are meant to be used with -T. They will trigger invocation of exoscale.tools.project functions with the same name or tasks with same id. If we can infer that we are in a multi-module setup at the root we will invoke the corresponding task, if not we ...
8c5dd87786e36298d0bbea3f49c79ce5a3007b588799028de07f266a8a9bcbc5
bondy-io/bondy
bondy_error.erl
%% ============================================================================= %% bondy_error.erl - %% Copyright ( c ) 2016 - 2022 Leapsight . 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. %% ...
null
https://raw.githubusercontent.com/bondy-io/bondy/570cea3c79714e6db0d1ce64169eb43e2c94c54d/apps/bondy/src/bondy_error.erl
erlang
============================================================================= bondy_error.erl - 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 COND...
Copyright ( c ) 2016 - 2022 Leapsight . 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(bondy_error). -include_lib("wamp/include/wamp.hrl"). -include("bondy.hrl"). -include("http_api.hrl")....
37708355dbede94056cf876d6d2ddabb4612c89e4e1070f8637a3a065c8a67ca
namenu/bootcamp-maze
rendition.cljs
(ns maze.ui.rendition (:require ["p5" :as p5] ["tone" :as Tone] [maze.core :as m] [maze.ui.state :refer [*state controls]])) (def cell-size 20) (def wall-width 3) (def padding 3) (def styles [:normal :outline :light :heavy]) ;; Tone.js (defn make-synth [oscillator] (let [synt...
null
https://raw.githubusercontent.com/namenu/bootcamp-maze/0558ba6b624bc0b6a5312415972398401396c4cf/src/maze/ui/rendition.cljs
clojure
Tone.js p5.js
(ns maze.ui.rendition (:require ["p5" :as p5] ["tone" :as Tone] [maze.core :as m] [maze.ui.state :refer [*state controls]])) (def cell-size 20) (def wall-width 3) (def padding 3) (def styles [:normal :outline :light :heavy]) (defn make-synth [oscillator] (let [synth (Tone/Syn...
0b74043dea4324398c063016b923867989688c66244a44f7179abc27bd03703f
hakaru-dev/hakaru
ConstantPropagation.hs
# LANGUAGE CPP # {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Rank2Types ...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Language/Hakaru/Evaluation/ConstantPropagation.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE Rank2Types # # OPTIONS_GHC -Wall -fwarn-tabs # -------------------------------------------------------------- 2016.04.02 | Module : Language.Hakaru.Evalu...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # Copyright : Copyright ( c ...
78188dc2ee574ddbc9c81cdfeed61e817e6e022ae5a0002a7d55ab036a0f8fba
clojure-interop/google-cloud-clients
ProductSearchClient$ListProductsInProductSetPagedResponse.clj
(ns com.google.cloud.vision.v1.ProductSearchClient$ListProductsInProductSetPagedResponse (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1 ProductSearchClient$ListProductsInProductSetPagedResponse])) (defn *create-async "context - `com.google.api.gax.rpc.PageContext` future-...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1/ProductSearchClient%24ListProductsInProductSetPagedResponse.clj
clojure
(ns com.google.cloud.vision.v1.ProductSearchClient$ListProductsInProductSetPagedResponse (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1 ProductSearchClient$ListProductsInProductSetPagedResponse])) (defn *create-async "context - `com.google.api.gax.rpc.PageContext` future-...
76404e0513d3405658949a9a61f4ce61cc70295e6990dc4763f62443c974fabe
cedlemo/OCaml-GI-ctypes-bindings-generator
Style_properties_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Style_properties_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Style_properties_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Style_properties_private"
08265dbb7290eb1fc0c59581b23c0a93a3ede7e82767f1aff227c0e9f0c532a7
jorinvo/prometheus-pushgateway-cleaner
prometheus_pushgateway_cleaner_test.clj
(ns prometheus-pushgateway-cleaner-test (:require [clojure.test :refer [deftest is]] [clj-http.lite.client :as http] [prometheus-pushgateway-cleaner :as p]) (:import (java.net URI))) (defn metric-response [] {:headers {"server" "nginx/1.17.4" "date" "Wed, 26 Feb 2020 10:11:56...
null
https://raw.githubusercontent.com/jorinvo/prometheus-pushgateway-cleaner/c19c7cb5a7c1d79c602c19af5a70d17f89ced520/test/prometheus_pushgateway_cleaner_test.clj
clojure
(ns prometheus-pushgateway-cleaner-test (:require [clojure.test :refer [deftest is]] [clj-http.lite.client :as http] [prometheus-pushgateway-cleaner :as p]) (:import (java.net URI))) (defn metric-response [] {:headers {"server" "nginx/1.17.4" "date" "Wed, 26 Feb 2020 10:11:56...
00fdee1e857de12f4f85713c301aad24b28dec08bcf867b5fa0179e93bfa93b7
alanz/ghc-exactprint
ffi1.hs
# LANGUAGE UnboxedSums , UnboxedTuples , MagicHash # module Lib where import GHC.Prim Ca n't unboxed tuples and sums to FFI , we should fail appropriately . foreign import ccall "f1" f1 :: (# Int | Int #) -> IO Int foreign import ccall "f2" f2 :: (# (# Int, Int #) | (# Float#, Float# #) #) -> IO Int foreign impor...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc86/ffi1.hs
haskell
# LANGUAGE UnboxedSums , UnboxedTuples , MagicHash # module Lib where import GHC.Prim Ca n't unboxed tuples and sums to FFI , we should fail appropriately . foreign import ccall "f1" f1 :: (# Int | Int #) -> IO Int foreign import ccall "f2" f2 :: (# (# Int, Int #) | (# Float#, Float# #) #) -> IO Int foreign impor...
ed2c17dd7a0608c77b77b1d8e26d92f22cd3cd601d49f61845a4965c7268548c
incoherentsoftware/defect-process
Types.hs
module Window.Graphics.DrawCall.Types ( DrawCall , DrawCallInternal(..) ) where import qualified SDL.Raw import Util import Window.Graphics.Util type DrawCall = IO () data DrawCallInternal = DrawCallInternal { _draw :: DrawCall , _cameraPos :: Pos2 , _cameraOffset :: Pos2 , _c...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Window/Graphics/DrawCall/Types.hs
haskell
module Window.Graphics.DrawCall.Types ( DrawCall , DrawCallInternal(..) ) where import qualified SDL.Raw import Util import Window.Graphics.Util type DrawCall = IO () data DrawCallInternal = DrawCallInternal { _draw :: DrawCall , _cameraPos :: Pos2 , _cameraOffset :: Pos2 , _c...
6ae219e16ed9f4d28862f86214d22531ddf2cac098bd95cf57f9f745d90b1b64
rabbitmq/rabbitmq-common
rabbit_error_logger_handler.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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_error_logger_handler). -behaviour...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-common/67c4397ffa9f51d87f994aa4db4a68e8e95326ab/src/rabbit_error_logger_handler.erl
erlang
API gen_event callbacks =================================================================== API =================================================================== -------------------------------------------------------------------- @doc Creates an event manager @end -------------------------------------------...
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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_error_logger_handler). -behaviour(gen_e...
a7a9d6a899347cc60c3ed836278fa0621ccb46888dc483b3ac19844892ea607a
charlieg/Sparser
add.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(CTI-source LISP) -*- copyright ( c ) 1991 Content Technologies Inc. -- all rights reserved ;;; ;;; File: "add" Module : " model forms;sl : whos news : acts : " version : March 1991 (in-package :CTI-source) (define-job-event 'add-position 'job-even...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/model/sl/Who's-News/acts/cases/add.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(CTI-source LISP) -*- File: "add"
copyright ( c ) 1991 Content Technologies Inc. -- all rights reserved Module : " model forms;sl : whos news : acts : " version : March 1991 (in-package :CTI-source) (define-job-event 'add-position 'job-event/pers!__!title :infinitive "add" :tensed/singular "adds" :past-participle ...
275d85d956d1761f4622a5043ae4419208f3b8581c103898481555cb0ddfadd5
yogsototh/learn_haskell
monad.hs
-- Pure import Control.Monad import Data.List replace x y z | z == x = y | otherwise = z maybeRead :: Read a => String -> Maybe a maybeRead s = case reads s of [(x,"")] -> Just x _ -> Nothing listFromString :: String -> Maybe [Int] listFromString line = maybeRead...
null
https://raw.githubusercontent.com/yogsototh/learn_haskell/baf89572bec70a0181550c9926a2a4379e2d1e15/03_Hell/monad.hs
haskell
Pure Impure
import Control.Monad import Data.List replace x y z | z == x = y | otherwise = z maybeRead :: Read a => String -> Maybe a maybeRead s = case reads s of [(x,"")] -> Just x _ -> Nothing listFromString :: String -> Maybe [Int] listFromString line = maybeRead $ "[" +...
a9011ae2634c323d077fe1c3d63f6466aac4a4810f4b9400c2b2fd0120acb134
Bogdanp/racket-kafka
group.rkt
#lang racket/base (require racket/contract racket/port (prefix-in consumer: "../protocol-consumer.bnf") "authorized-operation.rkt" "core.rkt") (provide (contract-out [Group-topics (-> Group? (listof string?))] [GroupMember-topics (-> GroupMember? (listof string?))] [GroupMem...
null
https://raw.githubusercontent.com/Bogdanp/racket-kafka/11efaf49ccdb8228a12e6f73b53bc2af6a9dc0c4/kafka-lib/private/serde/group.rkt
racket
#lang racket/base (require racket/contract racket/port (prefix-in consumer: "../protocol-consumer.bnf") "authorized-operation.rkt" "core.rkt") (provide (contract-out [Group-topics (-> Group? (listof string?))] [GroupMember-topics (-> GroupMember? (listof string?))] [GroupMem...
cdc0252dca1402d7d531f3bd8680d1afc3c1dd9af59270b838f31bd388058bd3
dinosaure/bob
connect.ml
let rec blocking_connect fd sockaddr = try Unix.connect fd sockaddr; Ok () with | Unix.Unix_error (Unix.EINTR, _, _) -> blocking_connect fd sockaddr | Unix.Unix_error (Unix.EACCES, _, _) -> ( match sockaddr with | Unix.ADDR_UNIX _ -> Error `Permission_denied | Unix.ADDR_INET _ -> Error...
null
https://raw.githubusercontent.com/dinosaure/bob/31bdac1e523dc553a708ab614696b81393d6bd30/bin/connect.ml
ocaml
let rec blocking_connect fd sockaddr = try Unix.connect fd sockaddr; Ok () with | Unix.Unix_error (Unix.EINTR, _, _) -> blocking_connect fd sockaddr | Unix.Unix_error (Unix.EACCES, _, _) -> ( match sockaddr with | Unix.ADDR_UNIX _ -> Error `Permission_denied | Unix.ADDR_INET _ -> Error...
f4d3041f476d03eddcd44abc34ba55eccba23cf6e8827a946d7d85f9607f00f0
emilypi/group-theory
Cancellative.hs
{-# language DefaultSignatures #-} # language Safe # -- | -- Module : Control.Applicative.Cancellative Copyright : ( c ) 2020 -- License : BSD-style -- Maintainer : < > , < > -- -- Stability : stable -- Portability : non-portable -- This module contains definitions f...
null
https://raw.githubusercontent.com/emilypi/group-theory/9f49d8f6277cc2cda1c5c7f5142cacbd0bc07762/src/Control/Applicative/Cancellative.hs
haskell
# language DefaultSignatures # | Module : Control.Applicative.Cancellative License : BSD-style Stability : stable Portability : non-portable along with the relevant combinators. * Cancellative $setup >>> :set -XPackageImports >>> import Data.Word >>> :set -XTypeApplications >>> :set -XFl...
# language Safe # Copyright : ( c ) 2020 Maintainer : < > , < > This module contains definitions for ' Cancellative ' functors module Control.Applicative.Cancellative Cancellative(..) * * Cancellative combinators , cancel1 , annihilate ) where import Control.Applicative impor...
2b79a93d69fd0c5f3bed30970010b7387cf3c7735000efec1d46bd3704f685d5
raviksharma/bartosz-basics-of-haskell
ex2_span.hs
-- Write a parser that splits a string into a list of words using space characters as separators (use function isSpace). import Data.Char import Prelude hiding (Word) type Word = String sentence :: String -> [Word] sentence "" = [] sentence str = let (w, str') = word str in w : sentence str' -- retur...
null
https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/08-parser/ex2_span.hs
haskell
Write a parser that splits a string into a list of words using space characters as separators (use function isSpace). returns a word and the rest of input
import Data.Char import Prelude hiding (Word) type Word = String sentence :: String -> [Word] sentence "" = [] sentence str = let (w, str') = word str in w : sentence str' word :: String -> (Word, String) word str = let (w, str') = span (not . isSpace) str (_, str'') = span isSpace st...
744e965b185d11554c237882581203bd21aac8b7c3f2d7e244206571f5d3d793
futurice/haskell-mega-repo
Contacts.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # module Futurice.App.Contacts (defaultMain) where import Control.Concurrent.STM (TVar, at...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/contacts-api/src/Futurice/App/Contacts.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # Contacts modules Action returning the contact list Periodically try to fetch new data
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # module Futurice.App.Contacts (defaultMain) where import Control.Concurrent.STM (TVar, atomically, newTVarIO, readTVarIO, writeTVar) import Futurice.Integrations import Futurice.Periocron import Futurice.Pr...
182b94546430b18340fd332f734cf40e5325ab007166afd187b6c15817126b3e
nikita-volkov/hasql-transaction
Sessions.hs
module Hasql.Transaction.Sessions ( transaction, unpreparedTransaction, -- * Transaction settings C.Mode (..), C.IsolationLevel (..), ) where import Data.Bool import qualified Hasql.Session as B import qualified Hasql.Transaction.Config as C import qualified Hasql.Transaction.Private.Transaction a...
null
https://raw.githubusercontent.com/nikita-volkov/hasql-transaction/d4bcbb5bdb361b828717962bab085f95b5feb60d/library/Hasql/Transaction/Sessions.hs
haskell
* Transaction settings | Execute the transaction using the provided isolation level and mode. | Execute the transaction using the provided isolation level and mode, and specifying that the generated BEGIN, COMMIT and ABORT statements should not be prepared. Helps with transaction pooling due to its incompatibil...
module Hasql.Transaction.Sessions ( transaction, unpreparedTransaction, C.Mode (..), C.IsolationLevel (..), ) where import Data.Bool import qualified Hasql.Session as B import qualified Hasql.Transaction.Config as C import qualified Hasql.Transaction.Private.Transaction as A # INLINE transaction # tr...
a5f658b7d6d991ad2ed0f558bbd7b1f5ec26ef4f97b2673db52696081b295d04
nuprl/gradual-typing-performance
search.rkt
#lang racket/base (require setup/dirs net/sendurl net/uri-codec net/url racket/string) (provide perform-search send-main-page) (define search-dir "search/") ;; Almost nothing to do here -- the real work is done in the browser, ;; using javascript. (define (send-main-page #:sub [s...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/help/search.rkt
racket
Almost nothing to do here -- the real work is done in the browser, using javascript. This is an example of changing this code to use the online manuals. Normally, it's better to set `doc-open-url` in "etc/config.rktd", but as a last resort, you can change `send-main-page` to compute a URL. This may be useful in c...
#lang racket/base (require setup/dirs net/sendurl net/uri-codec net/url racket/string) (provide perform-search send-main-page) (define search-dir "search/") (define (send-main-page #:sub [sub "index.html"] #:fragment [fragment #f] #:query [query #f] ...
83cce026a292e6d2ed83faa20fbfabf408f7b9e9d0ac248c6c0de2aa329c53e8
matthewhammer/ceal
cealtv_gtk.ml
< > LablGtk : -u.ac.jp/~garrigue/soft/olabl/lablgtk.html Based on code examples from : Matthew Hammer <> LablGtk: -u.ac.jp/~garrigue/soft/olabl/lablgtk.html Based on code examples from: /~shoh/ocaml/lablgtk2/lablgtk2-tutorial/ *) open Tv_signal_util open Tv_...
null
https://raw.githubusercontent.com/matthewhammer/ceal/cc67ef1ad336649b2362c39faaccdd08ba59d728/src/tv/cealtv_gtk.ml
ocaml
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Yuck. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Store the path. Move the cursor. Scroll the window. - - - - - - - - - - - - - - ...
< > LablGtk : -u.ac.jp/~garrigue/soft/olabl/lablgtk.html Based on code examples from : Matthew Hammer <> LablGtk: -u.ac.jp/~garrigue/soft/olabl/lablgtk.html Based on code examples from: /~shoh/ocaml/lablgtk2/lablgtk2-tutorial/ *) open Tv_signal_util open Tv_...
fa8222a69c601660e5e2628e9f6e1e3bd09cac4ce4bf94bdc0ed943613d5700a
ekmett/ad
Forward.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Rank2Types #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_HADDOCK not - home # ---------------------------------------------------...
null
https://raw.githubusercontent.com/ekmett/ad/6454d35d1aa6e2af04db9e549146c9cfe8d8bd3b/src/Numeric/AD/Internal/Forward.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveDataTypeable # # LANGUAGE Rank2Types # --------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental Unsafe and often partial combinators intended for internal usage. Handle with care. ----...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_HADDOCK not - home # Copyright : ( c ) 2010 - 2021 Portability : GHC only module Numeric.AD.Internal.Forward ( Forward(..) , primal , tangent , ...
1363520bcebb9bf6b52983afa2068d34af4f237197d6290fcb768349de713b7f
dbuenzli/vg
glyphs.ml
--------------------------------------------------------------------------- Copyright ( c ) 2013 The vg programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/vg/2d0cd56636a17280fe938ecaafc6402383dca1f3/db/glyphs.ml
ocaml
* Test images for glyphs. Font info for the string "Revolt!" as found in Open_sans.extra_bold.
--------------------------------------------------------------------------- Copyright ( c ) 2013 The vg programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
a62c0f36338221ae4a1a8e125af1c57e780f3de0f89d2f0764a52b288dfdd8c5
klakplok/goji
goji_config.ml
(****************************************************************************) GOJI ( JavaScript Interface Generator for OCaml ) This file is published under the CeCILL licence ( C ) 2013 (*********************...
null
https://raw.githubusercontent.com/klakplok/goji/78da18fafdd32910fc85f334210c9cd3aae2f974/goji_lib/goji_config.ml
ocaml
************************************************************************** ************************************************************************** * Used by {!Goji_messages.warning} to filter warning. The more important the warning, the lower its level. Any warning equal to or above this level will be displa...
GOJI ( JavaScript Interface Generator for OCaml ) This file is published under the CeCILL licence ( C ) 2013 * Used by { ! } to filter debug messages . The more important the debug message , the lower i...
760e6a44983492be3807325b9bae4e8ccc56b36f3cddab90f8c317a3050e5cd7
xapi-project/xen-api
tasks.ml
* Copyright ( C ) 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 file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/0d0d2a8e387fada76d03a1d3db3645e210d29992/ocaml/xapi-client/tasks.ml
ocaml
Return once none of the tasks have a `pending status. If any records indicate that a task is no longer pending, remove that task from the set. cancel is not immediate, give it a reasonable chance to take effect
* Copyright ( C ) 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 file LI...
453b0c7210694f41b2741001018280fb45ac60fc5aa8440a1bca1398f024cb03
stumpwm/stumpwm-contrib
package.lisp
package.lisp (defpackage #:command-history (:use :cl :stumpwm) (:export :*command-history-file* :*start-hook* :*quit-hook*))
null
https://raw.githubusercontent.com/stumpwm/stumpwm-contrib/a7dc1c663d04e6c73a4772c8a6ad56a34381096a/util/command-history/package.lisp
lisp
package.lisp (defpackage #:command-history (:use :cl :stumpwm) (:export :*command-history-file* :*start-hook* :*quit-hook*))
6865077686bfcbc1f0e1a3c08b447ece47bda98caff5e894d3aff5cda3cbae1b
janestreet/merlin-jst
typetexp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_413/typing/typetexp.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Misc open Parsetree open Typedtree open Types open Ctype exception Already_bound t...
9989a725af8cb788d2bcc436c10d0a68655b855b2f8212a9bfb0b68d34120a1f
erlang/rebar3
cf.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2015 , Project - FiFo UG %%% @doc %%% Printing library for coloured console output, extends the format strings by adding ~ ! ( ) ~ # ( background ) and ~ _ ( underline ) %%% terminal colours. %%% @end Created : 22 Sep...
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/vendor/cf/src/cf.erl
erlang
------------------------------------------------------------------- @doc Printing library for coloured console output, extends the format terminal colours. @end ------------------------------------------------------------------- API exports ==================================================================== API ...
@author < > ( C ) 2015 , Project - FiFo UG strings by adding ~ ! ( ) ~ # ( background ) and ~ _ ( underline ) Created : 22 Sep 2015 by < > -module(cf). -export([format/1, format/2]). -export([print/1, print/2]). print(Fmt, Args) -> io:format(cfmt(Fmt), Args). @doc Formates a coloured string...
7a79f774cfbb850011bb14820439d31ba69721a42c0738691f175cadcc6f00f0
nasa/Common-Metadata-Repository
cmr_v3.clj
(ns ^:system cmr.opendap.tests.system.app.ous.params.cmr-v3 "Note: this namespace is exclusively for system tests; all tests defined here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as requ...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/service-bridge/test/cmr/opendap/tests/system/app/ous/params/cmr_v3.clj
clojure
all tests defined
(ns ^:system cmr.opendap.tests.system.app.ous.params.cmr-v3 here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as request] [cmr.opendap.testing.system :as test-system] [cmr.opendap.test...
60b70d260b9e37bb91a96e512c8cb1d0b77f97b984adc2ac6c274a747806834c
onedata/op-worker
storage_sync_info.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%%-------------------------------------------------------------------- %%% @doc %%% This module contains implementation of hel...
null
https://raw.githubusercontent.com/onedata/op-worker/b0e4045090b180f28c79d40b9b334d7411ec3ca5/src/modules/datastore/models/storage/import/storage_sync_info.erl
erlang
------------------------------------------------------------------- -------------------------------------------------------------------- @doc This module contains implementation of helper model used by storage import. It is used to store information required to determine whether there were changes introduced to fil...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . It stores last synchronized and timestamp of stat operation which was performed to read the synced . Each batch ( where batch is identified by an integer BatchKey = Offset div BatchSize ) ...
23055f7cd159191e13ea41677ef5b7a1db01febf60c6c02b3b428798eaf07f28
hiposfer/kamal
graph.clj
(ns hiposfer.kamal.router.graph "functions to transform a Datascript representation to an Int-Map for super-fast lookups and Dijkstra routing" (:require [datascript.core :as data] [clojure.data.int-map :as i] [hiposfer.kamal.router.util.fastq :as fastq] [hiposfer.kamal.router....
null
https://raw.githubusercontent.com/hiposfer/kamal/f0295b05060489e979b6cc57f9e120abd2a98da8/src/hiposfer/kamal/router/graph.clj
clojure
A node of a graph with a corresponding position using the World Geodesic System. This implementation only accepts edges (bidirectional)
(ns hiposfer.kamal.router.graph "functions to transform a Datascript representation to an Int-Map for super-fast lookups and Dijkstra routing" (:require [datascript.core :as data] [clojure.data.int-map :as i] [hiposfer.kamal.router.util.fastq :as fastq] [hiposfer.kamal.router....
1f5cb6506ab8a6775bae2b7cf4f9b9080dc98192494f4d54be33e6d5a29c7545
realark/vert
kinematic-object.lisp
(in-package :recurse.vert) ;;;; kinematic object @export (defclass kinematic-object (game-object) ((velocity :initform (vector2)) (acceleration :initform (vector2)) (original-position :initform (vector3))) (:documentation "Game-Object with velocity and acceleration.")) @export (defmethod velocity-x ((kinem...
null
https://raw.githubusercontent.com/realark/vert/4cb88545abc60f1fba4a8604ce85e70cbd4764a2/src/physics/kinematic-object.lisp
lisp
kinematic object linear motion neither axis is "responsible" for the collision. Kill all velocity/acceleration find closest non-colliding point and move object to it (let ((original-position (vector3 0.0 0.0 0.0))) (declare (dynamic-extent original-position))) A == all objects in partition N == all moved ob...
(in-package :recurse.vert) @export (defclass kinematic-object (game-object) ((velocity :initform (vector2)) (acceleration :initform (vector2)) (original-position :initform (vector3))) (:documentation "Game-Object with velocity and acceleration.")) @export (defmethod velocity-x ((kinematic-object kinematic-...
9adfde2b6d363091ee2f0cbd7c074d530ee5428db03116962505236b05d2d976
datacraft-dsc/starfish-clj
test_core.clj
(ns starfish.test-core (:require [clojure.test :refer [is are testing deftest run-all-tests]] [starfish.core :as sf :refer :all]) (:import (sg.dex.starfish.impl.remote RemoteAccount) (sg.dex.starfish.impl.memory MemoryAgent))) (deftest did-test (testing "DID" (testing "from Asset" ...
null
https://raw.githubusercontent.com/datacraft-dsc/starfish-clj/d199c0f7c96f5dd6941507556bc3070396eb3a04/src/test/clojure/starfish/test_core.clj
clojure
=================================== Utility functions, coercion etc. "7fffffffffffffff" ERROR with Long 9223372036854775807 Long/MAX_VALUE ERROR with Long in int->hex =================================== Hash digest keccak => Generated metadata - `default-medatadata` - must be equivalent to the one returned by th...
(ns starfish.test-core (:require [clojure.test :refer [is are testing deftest run-all-tests]] [starfish.core :as sf :refer :all]) (:import (sg.dex.starfish.impl.remote RemoteAccount) (sg.dex.starfish.impl.memory MemoryAgent))) (deftest did-test (testing "DID" (testing "from Asset" ...
1e1ff05939e1169816612e28640a8474f2255b082a2a3a0133c75841469e5f09
softlab-ntua/bencherl
soda_deterministic_integration_test.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca 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 ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/mock-simulators/soda-test/src/soda_deterministic_integration_test.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Integration test for the soda deterministic example case. See also: - class_SodaVendingMachine.erl - class...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
719ac3ad55674fca6a2014e7c45c700f793de0561b680b707724d4be3ef6dc09
shamazmazum/wavelet-audio
history.lisp
(in-package :wavelet-audio) (declaim (optimize (speed 3))) (defstruct (history (:constructor make-history%)) array (pos 0 :type non-negative-fixnum) (count 0 :type non-negative-fixnum) (sum 0 :type non-negative-fixnum)) (defun make-history (size) (make-history% :array (make-array size :eleme...
null
https://raw.githubusercontent.com/shamazmazum/wavelet-audio/199d78a5bce86e1cbf098e7d47627e0b676b049d/src/history.lisp
lisp
(in-package :wavelet-audio) (declaim (optimize (speed 3))) (defstruct (history (:constructor make-history%)) array (pos 0 :type non-negative-fixnum) (count 0 :type non-negative-fixnum) (sum 0 :type non-negative-fixnum)) (defun make-history (size) (make-history% :array (make-array size :eleme...
51a4f78ab672e56738771ecd4b1b266726cda942905e69f25a7aa8ad423d7783
thelema/ocaml-community
int32.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/stdlib/int32.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * 32 - bit integers . This module...
ac33abd9c86cc746c77532e00932b6674523b880022d9a5ee5a2e2d732c9ad63
rowangithub/DOrder
ed_graph.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/external/ocamlgraph/editor/ed_graph.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking This fi...
5f56c5c3f751ffd19fd85324898dc053c6a0ac087e916a55d5f80df7f8b97e51
cmsc430/www
interp.rkt
#lang racket (provide interp interp-env interp-prim1) (require "ast.rkt" "env.rkt" "interp-prims.rkt") type Answer = Value | ' err ;; type Value = ;; | Integer ;; | Boolean ;; | Character ;; | Eof ;; | Void ;; | '() ;; | (cons Value Value) ;; | (box Value) type REnv = ( ( List I d Value ) ) ;...
null
https://raw.githubusercontent.com/cmsc430/www/0809867532b8ef516029ac38093a145db5b424ea/langs/hustle/interp.rkt
racket
type Value = | Integer | Boolean | Character | Eof | Void | '() | (cons Value Value) | (box Value) Expr -> Answer
#lang racket (provide interp interp-env interp-prim1) (require "ast.rkt" "env.rkt" "interp-prims.rkt") type Answer = Value | ' err type REnv = ( ( List I d Value ) ) (define (interp e) (interp-env e '())) Answer (define (interp-env e r) (match e [(Int i) i] [(Bool b) b] ...
a05b3dc6ae306556472f7fde3b40d6ed7ea6ded34fafe9e6c42d7a5a29541784
garycrawford/lein-life
project.clj
(defproject life/lein-template "0.0.1" :description "Lein template for generating dockerised Clojure sites and apis" :url "-life" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true :dependencies [[camel-snake-kebab "0.3.1" :exclusions [org.clojure/clojure]] ...
null
https://raw.githubusercontent.com/garycrawford/lein-life/d55f3636950b58b02399ab32eb1f6d81ecfce823/project.clj
clojure
(defproject life/lein-template "0.0.1" :description "Lein template for generating dockerised Clojure sites and apis" :url "-life" :license {:name "Eclipse Public License" :url "-v10.html"} :eval-in-leiningen true :dependencies [[camel-snake-kebab "0.3.1" :exclusions [org.clojure/clojure]] ...
f1d6fa62bf783d441b91f04359fb45ca75cff5b828145296c55178d7c2962716
tfausak/strive
Aliases.hs
-- | Aliases for common types. module Strive.Aliases ( ActivityId, ApplicationId, ApplicationSecret, AthleteId, AuthorizationCode, ClubId, EffortId, ElapsedTime, Extension, GearId, Latitude, Longitude, Name, RedirectUri, Result, SegmentId, StartTime, ...
null
https://raw.githubusercontent.com/tfausak/strive/8bd61df4b2723301273b11589c5f237b42e934dc/source/library/Strive/Aliases.hs
haskell
| Aliases for common types.
module Strive.Aliases ( ActivityId, ApplicationId, ApplicationSecret, AthleteId, AuthorizationCode, ClubId, EffortId, ElapsedTime, Extension, GearId, Latitude, Longitude, Name, RedirectUri, Result, SegmentId, StartTime, StreamId, UploadId, ) wh...
0c2105f0bf1d4564b31e3881b31f4f32d9aa9822890db2475eaa80936ecc93a7
ocaml-flambda/ocaml-jst
topeval.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/toplevel/native/topeval.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Misc open Parsetree open Types open Typedtree open Outcometree open Topcommon let impl...
d2b208674853bd442ac77ea6dc71f47028044d44b2eefea241995a64be4d4466
ashinn/chibi-scheme
define-values.scm
(define-syntax define-values (syntax-rules () ((define-values () expr) (define dummy (call-with-values (lambda () expr) (lambda args #f)))) ((define-values (var) expr) (define var expr)) ((define-values (var0 var1 ... varn) expr) (begin (define var0 (call-wi...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/8b27ce97265e5028c61b2386a86a2c43c1cfba0d/lib/scheme/define-values.scm
scheme
(define-syntax define-values (syntax-rules () ((define-values () expr) (define dummy (call-with-values (lambda () expr) (lambda args #f)))) ((define-values (var) expr) (define var expr)) ((define-values (var0 var1 ... varn) expr) (begin (define var0 (call-wi...