_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
04dbec6575d8770a96603d2821f7969d52e9c9bafdfdacce30e130994596963f
backtracking/mlpost
demo.ml
open Mlpost open Num open Box let fig = let b = hbox ~padding:(bp 20.) ~pos:`Bot [ circle (tex "A"); vbox [ round_rect (tex "B"); tex "\\LaTeX" ] ] in let b = round_rect ~stroke:(Some Color.red) b in draw (vbox [ b; b; b ]) let () = Metapost.emit "fig" fig let triple x = [ x; x; x ] let nine x = t...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/papers/jfla2009/demo.ml
ocaml
open Mlpost open Num open Box let fig = let b = hbox ~padding:(bp 20.) ~pos:`Bot [ circle (tex "A"); vbox [ round_rect (tex "B"); tex "\\LaTeX" ] ] in let b = round_rect ~stroke:(Some Color.red) b in draw (vbox [ b; b; b ]) let () = Metapost.emit "fig" fig let triple x = [ x; x; x ] let nine x = t...
088fd9e9c8c97c8b8a2c5eef5a4f7cb283e9371c5eb8ef851151ca014ccc949e
schwering/golog
SimpleDriver.hs
# LANGUAGE TypeFamilies , EmptyDataDecls # # OPTIONS_GHC -fno - warn - missing - signatures # # OPTIONS_GHC -fno - warn - type - defaults # | A re - implementation of SCR 's demo driver . -- Left out clutching. module TORCS.SimpleDriver where --import Debug.Trace import Text.Printf import TORCS.CarControl import TO...
null
https://raw.githubusercontent.com/schwering/golog/e5a0dba9598d616762271b5bef9fd51a53c1f829/torcs-agent/src/TORCS/SimpleDriver.hs
haskell
Left out clutching. import Debug.Trace _ <- printf (kred ++ "time = %.2f " ++ "pos = %.2f " ++ "angle = %.2f " ++ "vX = %.2f " ++ "track[-5] = %.2f s = %.2f m " ++ "track[0] = %.2f s = %.2f m " ++ "track[5] = %.2f s = %.2f m...
# LANGUAGE TypeFamilies , EmptyDataDecls # # OPTIONS_GHC -fno - warn - missing - signatures # # OPTIONS_GHC -fno - warn - type - defaults # | A re - implementation of SCR 's demo driver . module TORCS.SimpleDriver where import Text.Printf import TORCS.CarControl import TORCS.CarState import TORCS.Client import TORC...
5d6832a0f994ce1370ffcfe010df2be3c3aeac1491fccc7d895adb9a551b753e
jellelicht/guix
telephony.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 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...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/telephony.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 © 2014 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 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 (gnu packages telepho...
92d760728c4a1b4f02efbde169eae95e9b6312be1272fbd81c1cdaf142023ceb
tfausak/rattletrap
UnknownActor.hs
module Rattletrap.Exception.UnknownActor where import qualified Control.Exception as Exception newtype UnknownActor = UnknownActor Word deriving (Eq, Show) instance Exception.Exception UnknownActor
null
https://raw.githubusercontent.com/tfausak/rattletrap/4d6e3cc0aa0f45beaf189255943f0d824c80a7df/src/lib/Rattletrap/Exception/UnknownActor.hs
haskell
module Rattletrap.Exception.UnknownActor where import qualified Control.Exception as Exception newtype UnknownActor = UnknownActor Word deriving (Eq, Show) instance Exception.Exception UnknownActor
b0a9f5aa69f7e984897ec591a89ca1400a8d1445ff0c815c04eae2a424141163
HunterYIboHu/htdp2-solution
25.1-bundle-undergoing.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname 25.1-bundle-undergoing) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t const...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter5/Section25-non-standard-recursion/25.1-bundle-undergoing.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of 1String] N -> [List-of String] bundles chunks of s into strings of length n. [List-of X] N -> [List-of X] [List-of X] N -> [List-of X]
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname 25.1-bundle-undergoing) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (check-expect (bundle (explode "abcde...
19dc6dd5102b855bdbd4bd2c5be095d240326e79eb5e0d5f8e2c71dec3d48b59
ekmett/ekmett.github.com
Rope.hs
module Data.Rope ( -- * Size Rope , length -- :: Rope -> Int , null -- :: Rope -> Bool -- * Slicing , Breakable(..) , splitAt -- :: Int -> Rope -> (Rope, Rope) , take -- :: Int -> Rope -> Rope , drop -- :: Int -> Rope -> Rope -- * Walking -- ** construc...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/rope/Data/Rope.hs
haskell
* Size :: Rope -> Int :: Rope -> Bool * Slicing :: Int -> Rope -> (Rope, Rope) :: Int -> Rope -> Rope :: Int -> Rope -> Rope * Walking ** construction :: Rope :: ByteString -> Rope :: [ByteString] -> Rope :: L.ByteString -> Rope :: [Word8] -> Rope :: Word8 -> Rope :: String -> Rope * Deconstructing 'Ro...
module Data.Rope ( Rope , Breakable(..) , Reducer(..) : : , Unpackable(..) ) where import Prelude hiding (null,head,length,drop,take,splitAt, last) import Data.Rope.Util.Reducer (Reducer(..)) import Data.Rope.Internal ( Rope , empty , length , null , fromChunks , f...
f1906de22318a628a163501b4f28eaf5d9874f8c5ceea2c65237e44df56169f3
Frama-C/Frama-C-snapshot
Metrics.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/metrics/Metrics.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
30ca4b9c6534b0a41ae985b7ab43a26a9f3fb70d1360c3d3dafef4bfaaafa21a
WorksHub/client
db.cljs
(ns wh.login.twitter-callback.db (:require [cljs.spec.alpha :as s])) (s/def ::error (s/nilable map?)) (s/def ::callback-status #{:sent :fail :success}) (s/def ::sub-db (s/keys :opt-un [::error ::callback-status])) (def default-db {:error nil}) (defn already-connected? [error] (= "twitter-connected-to-another-acco...
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/client/src/wh/login/twitter_callback/db.cljs
clojure
(ns wh.login.twitter-callback.db (:require [cljs.spec.alpha :as s])) (s/def ::error (s/nilable map?)) (s/def ::callback-status #{:sent :fail :success}) (s/def ::sub-db (s/keys :opt-un [::error ::callback-status])) (def default-db {:error nil}) (defn already-connected? [error] (= "twitter-connected-to-another-acco...
1891da46241003f0ded87270f1b88e00e365d54fe6035b975c252e845589594d
tweag/gazelle_cabal
Rules.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # module CabalScan.Rules where import qualified Text.JSON as Json import Data.List.NonEmpty (NonEmpty((:|))) | Information about rules to give to -- --...
null
https://raw.githubusercontent.com/tweag/gazelle_cabal/10fed9170241f984e7b0d68bf95692c271e3a9e0/cabalscan/src/CabalScan/Rules.hs
haskell
# LANGUAGE OverloadedStrings # > RuleInfo > { kind = "haskell_library" > , name = "foo" > , extraLibraries = ["libsodium"] > , ghcOpts = ["-Werror", "-Wall"] > , tools = [ToolName "tasty-discover" "tasty-discover"] > } > , srcs = > , 'src/PackageA/Other/B.hs' > , 'src/PackageA/O...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # OPTIONS_GHC -fno - warn - orphans # module CabalScan.Rules where import qualified Text.JSON as Json import Data.List.NonEmpty (NonEmpty((:|))) | Information about rules to give to > , importData = ImportData > ...
97b02cd9a98e49a50bdb14699d532d0f6920fdf1d31bd33e373a0bfd6ceae936
haskell-tools/haskell-tools
InTypeSig.hs
# LANGUAGE MagicHash # module InTypeSig where -- non-exhaustive f# :: a -> a {-* MagicHash *-} f# = id {-* MagicHash *-} where asd# :: b -> b {-* MagicHash *-} asd# = id {-* MagicHash *-} class C a where g# :: a -> a {-* MagicHash *-}
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/test/ExtensionOrganizerTest/MagicHashTest/Name/InTypeSig.hs
haskell
non-exhaustive * MagicHash * * MagicHash * * MagicHash * * MagicHash * * MagicHash *
# LANGUAGE MagicHash # module InTypeSig where class C a where
bc45f1c825493c15474cc41d63084926753a845b1eb536113da4c02c6229fd7e
rollacaster/sketches
text_snake.cljs
(ns sketches.rac-sketches.text-snake (:require [quil.core :as q :include-macros true] [quil.middleware :as md])) (def x-offset 15) (def step 15) (def path-count 11) (def height 300) (def speed 3) (defn setup [] (q/text-align :center) (q/text-size 30) (->> "HELLO!" (repeat 19) (apply ...
null
https://raw.githubusercontent.com/rollacaster/sketches/c4c8ee52e536a7511da27f81fda04aa35b5d1a90/src/sketches/rac_sketches/text_snake.cljs
clojure
(ns sketches.rac-sketches.text-snake (:require [quil.core :as q :include-macros true] [quil.middleware :as md])) (def x-offset 15) (def step 15) (def path-count 11) (def height 300) (def speed 3) (defn setup [] (q/text-align :center) (q/text-size 30) (->> "HELLO!" (repeat 19) (apply ...
dd2572824133879b9baf8132601daad4d03fe686aaa00e34e183556eb3ffc4d7
HugoPeters1024/hs-sleuth
Read.hs
-- | -- Module : Data.Text.Internal.Read Copyright : ( c ) 2014 -- -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- -- Common internal functions for reading textual data. module Data.Text.Internal.Read ( IReader , IParser(..) , T(..) , d...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/91aa2806ea71b7a26add3801383b3133200971a5/test-project/text-nofusion/src/Data/Text/Internal/Read.hs
haskell
| Module : Data.Text.Internal.Read License : BSD-style Maintainer : Stability : experimental Common internal functions for reading textual data. # INLINE (>>=) # > fail msg = P $ \_ -> Left msg But given the code compiles fine with a post-MFP GHC 8.6+ we don't need one just yet.
Copyright : ( c ) 2014 Portability : GHC module Data.Text.Internal.Read ( IReader , IParser(..) , T(..) , digitToInt , hexDigitToInt , perhaps ) where import Control.Applicative as App (Applicative(..)) import Control.Arrow (first) import Control.Monad (ap) import Data.Char (...
3297580ccccca80990402c9d1fe2232ab82285cb74f088d6a1ca32309d009107
triffon/fp-2022-23
03.last.rkt
#lang racket (require rackunit rackunit/text-ui) # # # Зад 3 списъка ` l ` . (define (last l) 'тук) (define l1 '(1 2 3 4 5 6 7 8)) (define l2 '(0 (12 13) (21 22))) (run-tests (test-suite "last tests" (check-eq? (last '(5)) 5) (check-eq? (last l1) 8) (check-equal? ...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/56690db370b1c838170e56a4d83bc5ed55d7a785/exercises/cs2/04.scheme.lists/03.last.rkt
racket
#lang racket (require rackunit rackunit/text-ui) # # # Зад 3 списъка ` l ` . (define (last l) 'тук) (define l1 '(1 2 3 4 5 6 7 8)) (define l2 '(0 (12 13) (21 22))) (run-tests (test-suite "last tests" (check-eq? (last '(5)) 5) (check-eq? (last l1) 8) (check-equal? ...
0568f17981de35f6c1275f01e67b5dc364eefadbbbacaa590312f436c18a2653
clj-dasha/dasha
infoq.clj
(ns dasha.widgets.infoq (:require [org.httpkit.client :as http] [hiccup.core :as hc] [dasha.widgets.util :refer [icon]] [clojure.xml :as cx])) (def url "") (defn parse [s] (-> s .getBytes java.io.ByteArrayInputStream. cx/parse)) (defn find-tag-content [tg nd]...
null
https://raw.githubusercontent.com/clj-dasha/dasha/13508b5d75cabce5a6dff9545054f7ef40731717/src/dasha/widgets/infoq.clj
clojure
(ns dasha.widgets.infoq (:require [org.httpkit.client :as http] [hiccup.core :as hc] [dasha.widgets.util :refer [icon]] [clojure.xml :as cx])) (def url "") (defn parse [s] (-> s .getBytes java.io.ByteArrayInputStream. cx/parse)) (defn find-tag-content [tg nd]...
131ed65992e1d9a1ad4e8215e63232311f2c304f597b5412efcbd74804072d78
wz1000/hie-lsp
Time.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # #ifdef USE_TEMPLATE_HASKELL #...
null
https://raw.githubusercontent.com/wz1000/hie-lsp/dbb3caa97c0acbff0e4fd86fc46eeea748f65e89/reflex-0.6.1/src/Reflex/Time.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveTraversable # | Module: Description: Clocks, timers, and other time-related functions. | Metadata associated with a timer "tick" ^ UTC time immediately after the last tick. ^ Number of time periods or ticks since the start of the timer ^ Amount of time that has...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # #ifdef USE_TEMPLATE_HASKELL # LANGUAGE TemplateHaskell # #endif Reflex . Time module Reflex.Time...
a8d9601762cdc406973d3956b2d62ae566aa239bddc384c9d24c60732e3225fd
shentufoundation/deepsea
EVM.ml
open AST open Datatypes open Integers type evm = | Coq_evm_stop | Coq_evm_add | Coq_evm_mul | Coq_evm_sub | Coq_evm_div | Coq_evm_sdiv | Coq_evm_mod | Coq_evm_smod | Coq_evm_addmod | Coq_evm_mulmod | Coq_evm_exp | Coq_evm_signextend | Coq_evm_lt | Coq_evm_gt | Coq_evm_slt | Coq_evm_sgt | Coq_evm_eq | Coq_evm_iszero | ...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/EVM.ml
ocaml
open AST open Datatypes open Integers type evm = | Coq_evm_stop | Coq_evm_add | Coq_evm_mul | Coq_evm_sub | Coq_evm_div | Coq_evm_sdiv | Coq_evm_mod | Coq_evm_smod | Coq_evm_addmod | Coq_evm_mulmod | Coq_evm_exp | Coq_evm_signextend | Coq_evm_lt | Coq_evm_gt | Coq_evm_slt | Coq_evm_sgt | Coq_evm_eq | Coq_evm_iszero | ...
565587406bc446f2856a6907fb1072ecb4475ed3a63acfc57fa873432c6eb4f4
juxt-site/site
form_based_auth_test.clj
Copyright © 2022 , JUXT LTD . (ns juxt.site.form-based-auth-test (:require [clojure.test :refer [deftest is use-fixtures]] [malli.core :as malli] [juxt.site.repl :as repl] [juxt.site.test-helpers.login :as login] [juxt.test.util :refer [*handler* system-xt-fixture handler-fixture install-resourc...
null
https://raw.githubusercontent.com/juxt-site/site/e929ed46b5aad8a1a90a8495bed60760db9543e4/test/juxt/site/form_based_auth_test.clj
clojure
Copyright © 2022 , JUXT LTD . (ns juxt.site.form-based-auth-test (:require [clojure.test :refer [deftest is use-fixtures]] [malli.core :as malli] [juxt.site.repl :as repl] [juxt.site.test-helpers.login :as login] [juxt.test.util :refer [*handler* system-xt-fixture handler-fixture install-resourc...
527009e0994c4765600ca78549ffbe657b2454286788eeac33a31c88694edc0a
haslab/HAAP
Template.hs
HAAP : Haskell Automated Assessment Platform This module provides basic tmeplating functionality . HAAP: Haskell Automated Assessment Platform This module provides basic tmeplating functionality. -} # LANGUAGE DeriveGeneric , ScopedTypeVariables , ViewPatterns # module HAAP.Template where import HAAP...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/src/HAAP/Template.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
HAAP : Haskell Automated Assessment Platform This module provides basic tmeplating functionality . HAAP: Haskell Automated Assessment Platform This module provides basic tmeplating functionality. -} # LANGUAGE DeriveGeneric , ScopedTypeVariables , ViewPatterns # module HAAP.Template where import HAAP...
7d5626e404244c9715c20cfb8b72453916b0e14bd6fe3548fe436134482ffaba
amosr/folderol
Network.hs
# LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # module Network where -- data S a = IO a -- Synchronous dataflow: -- (+) :: S (Int, Int) -> S Int -- split and join -- Pull combinator: -- zip :: (S a, S b) -> S (a, b) -- join -- Another possibility: data S' a = (a -> IO ()) -> IO () data Pull2 i1 i2 o = ...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/sketch/Network.hs
haskell
data S a = IO a Synchronous dataflow: (+) :: S (Int, Int) -> S Int split and join Pull combinator: zip :: (S a, S b) -> S (a, b) join Another possibility: zip :: (Either (a -> Push-like (co-pull?): unzip :: S (a, b) -> S (Either a b) split Flowchart? ? :: Either (S a) (S b) -> Either (S c) (S d) split a...
# LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # module Network where data S' a = (a -> IO ()) -> IO () data Pull2 i1 i2 o = Out o (Pull2 i1 i2 o) | In1 (i1 -> Pull2 i1 i2 o) | In2 (i2 -> Pull2 i1 i2 o) class Network n where type Stream n :: * -> * type Stream2 n :: * -> * -> * class Network n =...
093171a25893b92ec80f5b0f167d6c162485d7bf51b779d331fcd0d82045fac5
SanderSpies/ocaml-gist
file_cache.ml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/merlin_lite/src/utils/file_cache.ml
ocaml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
cf29b55240bad9aecd17d692deaf6abce614f71e51abcd3425af5ab0f5717e42
fimad/prometheus-haskell
Metric.hs
# language GeneralizedNewtypeDeriving # module Prometheus.Metric ( Metric (..) , Sample (..) , SampleGroup (..) , SampleType (..) ) where import Prometheus.Info import Prometheus.Label import Control.DeepSeq import qualified Data.ByteString as BS import Data.Text (Text) | The type of a sample . This co...
null
https://raw.githubusercontent.com/fimad/prometheus-haskell/4e2c2f1da1f891e9de3ce5a5260ae92882a9f35e/prometheus-client/src/Prometheus/Metric.hs
haskell
| A single value recorded at a moment in time. The sample type contains the name of the sample, a list of labels and their values, and the value encoded | A Sample group is a list of samples that is tagged with meta data including the name, help string, and type of the sample. | A metric represents a single value ...
# language GeneralizedNewtypeDeriving # module Prometheus.Metric ( Metric (..) , Sample (..) , SampleGroup (..) , SampleType (..) ) where import Prometheus.Info import Prometheus.Label import Control.DeepSeq import qualified Data.ByteString as BS import Data.Text (Text) | The type of a sample . This co...
ed5a21fda5f17f77e3b98d178bb20a52c1d31a6b9cac9bc3c3031ed6740a8a63
baumandm/monglorious
project.clj
(defproject monglorious "0.8.0" :author "Dave Bauman" :description "Query MongoDB using strings!" :url "" :license {:name "Eclipse Public License" :url "-v10.html" :distribution :repo} :dependencies [[org.clojure/clojure "1.8.0"] [instaparse "1.4.9"] ...
null
https://raw.githubusercontent.com/baumandm/monglorious/5078f14f3b997f856d3bd319f9651e5beba707ee/project.clj
clojure
(defproject monglorious "0.8.0" :author "Dave Bauman" :description "Query MongoDB using strings!" :url "" :license {:name "Eclipse Public License" :url "-v10.html" :distribution :repo} :dependencies [[org.clojure/clojure "1.8.0"] [instaparse "1.4.9"] ...
135f71b807bf68b39f6c9c6a900a7c1c2f356b1840997ab4575257d10947dacd
juspay/atlas
DriverLocation.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/driver-offer-bpp/src/Domain/Types/DriverLocation.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
3c42dc4685227208f7f23486b606c7b0da028c2d62b98456825f7d4fe84dc60c
samrushing/irken-compiler
t_match4.scm
(datatype list (:nil) (:cons 'a (list 'a))) (define (error) (%exit #f #u) ) (define thing (list:nil) -> (error) (list:cons x _) -> x ) (thing '(1 2 3))
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_match4.scm
scheme
(datatype list (:nil) (:cons 'a (list 'a))) (define (error) (%exit #f #u) ) (define thing (list:nil) -> (error) (list:cons x _) -> x ) (thing '(1 2 3))
072a84634ca67ea7d1ee6d8ff5956044c64a0f0eb7f52ce8f28d3dfa8a789a3d
racket/macro-debugger
show-dependencies.rkt
#lang racket/base (require racket/cmdline racket/match racket/pretty raco/command-name syntax/modresolve "private/util.rkt") (provide get-dependencies show-dependencies main) A Table is hash[resolved - module - path = > ( listof mpi - list ) ] (define (...
null
https://raw.githubusercontent.com/racket/macro-debugger/d4e2325e6d8eced81badf315048ff54f515110d5/macro-debugger-text-lib/macro-debugger/analysis/show-dependencies.rkt
racket
Table hack to not record initial list (unless inter-dependencies) resolve-module-path-index* : mpi file-path -> resolved-module-path obviously, we don't care that much about performance in this case ==== For example, raco show-dependencies -bc mzscheme shows the additional modules used to implement mzscheme ...
#lang racket/base (require racket/cmdline racket/match racket/pretty raco/command-name syntax/modresolve "private/util.rkt") (provide get-dependencies show-dependencies main) A Table is hash[resolved - module - path = > ( listof mpi - list ) ] (define (...
3a77b4fce13db98e1b39eaddd0c5ba5beb0f9272e6cf00ba2d6c603ca9e564e3
uw-unsat/leanette-popl22-artifact
alanon_arkansas_16.rkt
#lang rosette (require (only-in racket/runtime-path define-runtime-path)) (require "../dom.rkt") (require "../websynth.rkt") (require "../websynthlib.rkt") (define-runtime-path html (build-path ".." "html/alanon_arkansas.html")) (define dom (read-DOMNode html)) (define-tags (tags dom)) (define max_zpath_depth (depth ...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/websynth/test/alanon_arkansas_16.rkt
racket
Record 0 fields Record 1 fields Record 2 fields Record 3 fields Record 4 fields Record 5 fields Record 6 fields Record 7 fields Record 8 fields Record 9 fields Record 10 fields Record 11 fields Record 12 fields Record 13 fields Record 14 fields Record 15 fields Cross-record Mask Record 0 zpath asserts...
#lang rosette (require (only-in racket/runtime-path define-runtime-path)) (require "../dom.rkt") (require "../websynth.rkt") (require "../websynthlib.rkt") (define-runtime-path html (build-path ".." "html/alanon_arkansas.html")) (define dom (read-DOMNode html)) (define-tags (tags dom)) (define max_zpath_depth (depth ...
7e8b4ab29e28807b6aa1b216fed389cd9d5e7f80309c3711ef89f5f55dd76e0c
ymyzk/lambda-dti
syntax.ml
open Utils.Error (** Identifier used for names of variables. *) type id = string (** Module used to implement environment and type environment. *) module Environment = Map.Make ( struct type t = id let compare (x : id) y = compare x y end ) type binop = Plus | Minus | Mult | Div | Mod | Eq | Neq | Lt |...
null
https://raw.githubusercontent.com/ymyzk/lambda-dti/f476c0094832cbaaa336dc1bc86babfb8b652f14/lib/syntax.ml
ocaml
* Identifier used for names of variables. * Module used to implement environment and type environment. * Returns true if the given argument is a ground type. Othewise returns false. Set of type variables used for let polymorphism * Module for a set of type variables. * Returns a set of free type variables in a gi...
open Utils.Error type id = string module Environment = Map.Make ( struct type t = id let compare (x : id) y = compare x y end ) type binop = Plus | Minus | Mult | Div | Mod | Eq | Neq | Lt | Lte | Gt | Gte type ty = | TyDyn | TyVar of tyvar | TyInt | TyBool | TyUnit | TyFun of ty * ty and ...
4c77ccbd5bb680406e1260929b79406861be1475ee373f75bfc198cddf8a7118
chaoxu/fancy-walks
63.hs
import Data.List list :: [Integer] list = nub $ sort [nk | k <- [1..1000], n <- [1..9], let nk = n^k, length (show nk) == k] problem_63 = length list main = print problem_63
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/63.hs
haskell
import Data.List list :: [Integer] list = nub $ sort [nk | k <- [1..1000], n <- [1..9], let nk = n^k, length (show nk) == k] problem_63 = length list main = print problem_63
d9428194066fb06e147dad1021183bb80b60a6aa147f934b046bd0b6eb244fb0
WhatsApp/erlt
match.erl
-file("dev/src/match.erlt", 1). -module(match). -eqwalizer_unchecked([{f3, 2}, {id, 1}]). -export([id/1, f1/0, f2/0, f3/2, f6/2, f7/2, f8/2, f9/2, f10/0, f11/1, f12/1, f13/2, f14/1]). id(X) -> X. -spec f1() ...
null
https://raw.githubusercontent.com/WhatsApp/erlt/616a4adc628ca8754112e659701e57f1cd7fecd1/tests/dev/ir-spec/match.erl
erlang
-file("dev/src/match.erlt", 1). -module(match). -eqwalizer_unchecked([{f3, 2}, {id, 1}]). -export([id/1, f1/0, f2/0, f3/2, f6/2, f7/2, f8/2, f9/2, f10/0, f11/1, f12/1, f13/2, f14/1]). id(X) -> X. -spec f1() ...
faa846172bf06a6b45d8640cdec389437ac15bff1c5122d3efc57487c893e790
lamdu/momentu
Search.hs
# LANGUAGE TemplateHaskell , DerivingVia , ConstraintKinds # module GUI.Momentu.Widgets.Menu.Search ( emptyPickEventMap , Menu.resultsIdPrefix , ResultsContext(..), rSearchTerm, rResultIdPrefix , basicSearchTermEdit , defaultEmptyStrings , addPickFirstResultEvent , addSearchTermBgColor, ad...
null
https://raw.githubusercontent.com/lamdu/momentu/b287a15f0467176628b0eedf8c70907723a51e69/src/GUI/Momentu/Widgets/Menu/Search.hs
haskell
| Context necessary for creation of menu items for a search. | Whether search term is allowed in each search term context: | Basic search term edit: * no bg color --> use addSearchTermBgColor to add it * no empty colors --> use addSearchTermEmptyColors to add it > use addPickFirstResultEvent to add it W...
# LANGUAGE TemplateHaskell , DerivingVia , ConstraintKinds # module GUI.Momentu.Widgets.Menu.Search ( emptyPickEventMap , Menu.resultsIdPrefix , ResultsContext(..), rSearchTerm, rResultIdPrefix , basicSearchTermEdit , defaultEmptyStrings , addPickFirstResultEvent , addSearchTermBgColor, ad...
473c9d113b1fa9d52e88c7950d6bd8db580831f85e8b8f7baeb03512ef018d28
static-analysis-engineering/codehawk
cHSumTypeSerializer.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/f2891d9120d5a776ea9ac1feec7bf98cce335e12/CodeHawk/CH/chutil/cHSumTypeSerializer.ml
ocaml
* Serialization of sum types Converter that can be used when only a few types have additional data, which can be encoded into and decoded from the strin
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
eea28addc8198637ee6d6ad08fead7a4e5c0c8d38e8029b228be45564d0d19ea
lispnik/cl-http
attlist-declaration.lisp
;;; -*- mode: LISP; package: "XML-PARSER"; -*- " <DOCUMENTATION> <DESCRIPTION> parsing and construction of attribute declarations </DESCRIPTION> <COPYRIGHT HREF='defsystem.lisp|root().descendant(1,COPYRIGHT)'/> <CHRONOLOGY> <DELTA><DATE>19971217</DATE> read-typed-processing-instruction reads parameters ra...
null
https://raw.githubusercontent.com/lispnik/cl-http/84391892d88c505aed705762a153eb65befb6409/contrib/janderson/xml-1999-05-03/attlist-declaration.lisp
lisp
-*- mode: LISP; package: "XML-PARSER"; -*- parsing element-name {att-name type (value | (keyword value) | keyword)}* augment error message for context at least the name, type/domain and default spec printing model operations
" <DOCUMENTATION> <DESCRIPTION> parsing and construction of attribute declarations </DESCRIPTION> <COPYRIGHT HREF='defsystem.lisp|root().descendant(1,COPYRIGHT)'/> <CHRONOLOGY> <DELTA><DATE>19971217</DATE> read-typed-processing-instruction reads parameters rather than attributes </DELTA> <DELTA><DATE...
63e889e7590a45cf98cbb46518146e88b415f9a51400a9b6bc28b4a3f75972d3
crategus/cl-cffi-gtk
gtk.gesture-long-press.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.gesture-long-press.lisp ;;; ;;; The documentation of this file is taken from the GTK 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp bin...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/gtk/gtk.gesture-long-press.lisp
lisp
---------------------------------------------------------------------------- gtk.gesture-long-press.lisp The documentation of this file is taken from the GTK 3 Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the...
Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2019 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for use GNU Lesser General Public Li...
4af69361b4f9ef7f2421bfe2ed0e69713569110dff45c1c8711113666f8b053c
namin/metamk
refl-tests.scm
(load "mk2.scm") (load "meta.scm") (load "ex-ndfa.scm") (load "refl.scm") (load "test-check.scm") (define ndfa-program-obj (run* (q) (fresh (a b) (== q (list '<- a b)) (ndfa-pclause a b)))) (test-check "refl-ndfa-program-obj" ndfa-program-obj '((<- (accept _.0) ((initial _.1) (accept2 _.0 _.1))...
null
https://raw.githubusercontent.com/namin/metamk/8a6084888c87444a84f18cf6e470456837b75cfc/refl-tests.scm
scheme
not testing
(load "mk2.scm") (load "meta.scm") (load "ex-ndfa.scm") (load "refl.scm") (load "test-check.scm") (define ndfa-program-obj (run* (q) (fresh (a b) (== q (list '<- a b)) (ndfa-pclause a b)))) (test-check "refl-ndfa-program-obj" ndfa-program-obj '((<- (accept _.0) ((initial _.1) (accept2 _.0 _.1))...
6587bc27c4e2a63ab9577049843634282fe874f6d0af1cf13602e56418cfb9ee
ranjitjhala/sprite-lang
Types.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveFunctor #-} module Language.Sprite.L1.Types where import qualified Language.Fixpoint.Horn.Types as H import qualified Language.Fixpoint.Types as F import qualified Language.Sprite.Common.UX as UX import Language.Sprite.Common.Misc im...
null
https://raw.githubusercontent.com/ranjitjhala/sprite-lang/bebfa8a8de6d558853145cbed8c511daa9bda3c7/src/Language/Sprite/L1/Types.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveFunctor # | Basic types -------------------------------------------------------------- | Refined Types ------------------------------------------------------------ Int{r} x:s -> t | Primitive Constants ------------------------------------------------------ | T...
module Language.Sprite.L1.Types where import qualified Language.Fixpoint.Horn.Types as H import qualified Language.Fixpoint.Types as F import qualified Language.Sprite.Common.UX as UX import Language.Sprite.Common.Misc import Language.Sprite.Common data Base = TInt deriving (E...
0db5c128ff5e8ed10ea65b37947f7b6801e870468ee2fa93c31c992b3cbb108d
gregr/icfp2017-artifact-auas7pp
challenge-1.scm
(load "mk/test-check.scm") (load "evalo-standard.scm") (test 'first-love (run 1 (q) (evalo q '(I love you))) '(('(I love you)))) (printf "Generating 99000 expressions that evaluate to '(I love you).\n") (printf "Give it a minute or so.\n") (time (test 'love-in-99000-ways (run 99000 (q) (evalo q '(I love you...
null
https://raw.githubusercontent.com/gregr/icfp2017-artifact-auas7pp/98de885bd1cb9eef53c8ac3d85720b56122ca541/src/challenge-1.scm
scheme
(load "mk/test-check.scm") (load "evalo-standard.scm") (test 'first-love (run 1 (q) (evalo q '(I love you))) '(('(I love you)))) (printf "Generating 99000 expressions that evaluate to '(I love you).\n") (printf "Give it a minute or so.\n") (time (test 'love-in-99000-ways (run 99000 (q) (evalo q '(I love you...
34ee8b2bbb4f952124108fba69806e14b4de472b24363601c0991b77b66fe6a6
input-output-hk/project-icarus-importer
GenesisHash.hs
{-# LANGUAGE Rank2Types #-} module Pos.Core.Configuration.GenesisHash ( HasGenesisHash , withGenesisHash , GenesisHash (..) , genesisHash ) where import Data.Coerce (coerce) import Data.Reflection (Given (..), give) import Pos.Binary.Class (Raw) import...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/core/src/Pos/Core/Configuration/GenesisHash.hs
haskell
# LANGUAGE Rank2Types #
module Pos.Core.Configuration.GenesisHash ( HasGenesisHash , withGenesisHash , GenesisHash (..) , genesisHash ) where import Data.Coerce (coerce) import Data.Reflection (Given (..), give) import Pos.Binary.Class (Raw) import Pos.Crypto.Hashin...
065b649f1cce8f6b25e95382f530ba70b82ba8aa6f16f1474bf0e950c8ecc165
PacktWorkshops/The-Clojure-Workshop
project.clj
(defproject coffee-app "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] [expectations "2.1.10"]] :plugins [[lein-expectations "0.0...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter10/Exercise10.02/coffee-app/project.clj
clojure
(defproject coffee-app "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.0"] [expectations "2.1.10"]] :plugins [[lein-expectations "0.0...
181e946926548a6bbd5d925deed1509863ce297320877fe5e2c1e2328eefecb2
eglaysher/rldev
iMap.mli
$ I d : iMap.mli , v 1.3 2003/06/18 15:11:07 yori Exp $ Copyright 2003 . distributed with LGPL type +'a t = (int * int * 'a) AvlTree.tree type key = int val empty : 'a t val is_empty : 'a t -> bool val add : ?eq:('a -> 'a -> bool) -> int -> 'a -> 'a t -> 'a t val add_range : ?eq:('a -> 'a -> bool) -> in...
null
https://raw.githubusercontent.com/eglaysher/rldev/e59103b165e1c20bd940942405b2eee767933c96/src/common/iMap.mli
ocaml
$ I d : iMap.mli , v 1.3 2003/06/18 15:11:07 yori Exp $ Copyright 2003 . distributed with LGPL type +'a t = (int * int * 'a) AvlTree.tree type key = int val empty : 'a t val is_empty : 'a t -> bool val add : ?eq:('a -> 'a -> bool) -> int -> 'a -> 'a t -> 'a t val add_range : ?eq:('a -> 'a -> bool) -> in...
ab63a3d5514a890a0053a3b440560a0b38149454cce0a3bee85058ee9f87c2f6
poroh/ersip_proxy
erproxy_sup.erl
%%%------------------------------------------------------------------- %% @doc erproxy top level supervisor. %% @end %%%------------------------------------------------------------------- -module(erproxy_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -defin...
null
https://raw.githubusercontent.com/poroh/ersip_proxy/8a67e676e255c07a63b88b970ef82ed4762debcb/apps/erproxy/src/erproxy_sup.erl
erlang
------------------------------------------------------------------- @doc erproxy top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ===============================...
-module(erproxy_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> SupFlags = #{ strategy => one...
b4c9e9d463077973987ceda9b17fc3fa61452c3d50bbbbbdf69acf6e98a4c0d5
NorfairKing/tickler
Gen.hs
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - dodgy - exports # # OPTIONS_GHC -fno - warn - orphans # module Tickler.API.Gen ( module Tickler.API.Gen, module Tickler.API.Account.Gen, module Tickler.API.Admin.Gen, module Tickler.API.Protected.Gen, ) where import Import import Tickler.API i...
null
https://raw.githubusercontent.com/NorfairKing/tickler/1b0c05dc1d32847596bd3ffe4f93d094e1f6382a/tickler-api-gen/src/Tickler/API/Gen.hs
haskell
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - dodgy - exports # # OPTIONS_GHC -fno - warn - orphans # module Tickler.API.Gen ( module Tickler.API.Gen, module Tickler.API.Account.Gen, module Tickler.API.Admin.Gen, module Tickler.API.Protected.Gen, ) where import Import import Tickler.API i...
3159a804b303c58dae5bab20ed8afb58a796294c9f4c2cfd558c5fa8391a25ee
janestreet/ecaml
process.ml
open! Core open! Async_kernel open! Import module Q = struct include Q let call_process = "call-process" |> Symbol.intern let call_process_region = "call-process-region" |> Symbol.intern let closed = "closed" |> Symbol.intern let connect = "connect" |> Symbol.intern let exit_ = "exit" |> Symbol.intern l...
null
https://raw.githubusercontent.com/janestreet/ecaml/25a5a2972b3a94f5529a46363b37670a6c1de195/src/process.ml
ocaml
Ignoring stderr in the OK case. Stderr will be printed by [call_exn] in the error case.
open! Core open! Async_kernel open! Import module Q = struct include Q let call_process = "call-process" |> Symbol.intern let call_process_region = "call-process-region" |> Symbol.intern let closed = "closed" |> Symbol.intern let connect = "connect" |> Symbol.intern let exit_ = "exit" |> Symbol.intern l...
d698e3d8e8f43b9e7a97353909aac5950e991a9a62c68007021426d3b77f47e2
projectcs13/sensor-cloud
triggers_tests.erl
@author < > %% [www.csproj13.student.it.uu.se] %% @version 1.0 [ Copyright information ] %% %% @doc == triggers_tests == %% This module contains several tests to test the functionallity %% in the module triggers which is done by calling the webbmachine. %% %% @end -module(triggers_tests). -include_lib("eun...
null
https://raw.githubusercontent.com/projectcs13/sensor-cloud/0302bd74b2e62fddbd832fb4c7a27b9c62852b90/test/triggers_tests.erl
erlang
[www.csproj13.student.it.uu.se] @version 1.0 @doc == triggers_tests == This module contains several tests to test the functionallity in the module triggers which is done by calling the webbmachine. @end @doc Function: inti_test/0 Purpose: Used to start the inets to be able to do HTTP requests Returns: ok | ...
@author < > [ Copyright information ] -module(triggers_tests). -include_lib("eunit/include/eunit.hrl"). -include("debug.hrl"). -include_lib("amqp_client.hrl"). -export([post_data_user_vstream/0]). -define(WEBMACHINE_URL, api_help:get_webmachine_url()). -define(ES_URL, api_help:get_elastic_search_url()). -...
f473550529efdf9e243d9fd2394538e4dbfc4af7feed0e5057421d884942ea5b
mstksg/advent-of-code-2021
Common.hs
# LANGUAGE CPP # # LANGUAGE NoDeriveAnyClass # {-# LANGUAGE QuantifiedConstraints #-} {-# LANGUAGE TypeFamilies #-} # OPTIONS_GHC -Wno - orphans # {-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-} -- | Module ...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2021/6accdd66666fc9382f1ce0593127e11e81a3f5b1/src/AOC/Common.hs
haskell
# LANGUAGE QuantifiedConstraints # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # | License : BSD3 Stability : experimental Portability : non-portable Common functions for solutions * Loops and searches * Lists * Simple type util , getDown ...
# LANGUAGE CPP # # LANGUAGE NoDeriveAnyClass # # OPTIONS_GHC -Wno - orphans # Module : AOC.Common Copyright : ( c ) 2019 Maintainer : module AOC.Common ( trace' , iterateMaybe , loopMaybe , loopMaybeM , loopEither ...
19e66581eb8a4c8dbb83da1a1fc9c3cffcd77985e737e84707cb7150b20c924b
jbracker/supermonad
Constrained.hs
# LANGUAGE CPP # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ConstraintKinds #-} -- for 'Bind' class. {-# LANGUAGE TypeFamilies #-} -- for 'Bind' class. # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # # LANGUAGE UndecidableInstances # # LANGUAGE TypeOperators # #if MIN_VERSION...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/src/Control/Super/Monad/Constrained.hs
haskell
# LANGUAGE ConstraintKinds # for 'Bind' class. # LANGUAGE TypeFamilies # for 'Bind' class. Some of the constraints may be unnecessary, but they are intentional. This is especially true for the 'Fail' instances. | Definition of supermonads that support constrained monads. * Supermonads * Super-Ap...
# LANGUAGE CPP # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # # LANGUAGE UndecidableInstances # # LANGUAGE TypeOperators # #if MIN_VERSION_GLASGOW_HASKELL(8,0,0,0) # OPTIONS_GHC -fno - warn - redundant - constraints # #endif module Control.Super.Monad.Constra...
e297d6c7cc09b599809d6643de4720a2e4f409ef8352608bd502a59e23848ec1
omelkonian/AlgoRhythm
Score.hs
module Export.Score (writeToLilypondFile, splitDurations, musicToLilypond) where import Control.Arrow ((>>>)) import Data.Maybe import qualified Data.Music.Lilypond as Ly import qualified Data.Music.Lilypond.Dynamics as LyD import Music import Text.Pretty...
null
https://raw.githubusercontent.com/omelkonian/AlgoRhythm/fdc1ccbae0b3d8a7635b24d37716123aba2d6c11/AlgoRhythm/src/Export/Score.hs
haskell
| Write 'Music' to Lilypond file. 'Data.Music.Lilypond.Pitch' | Convert a 'Rational' to it's corresponding 'Data.Music.Lilypond.Duration' the same dynamics and articulation | Find a match in a structure which maps list of keys to elements
module Export.Score (writeToLilypondFile, splitDurations, musicToLilypond) where import Control.Arrow ((>>>)) import Data.Maybe import qualified Data.Music.Lilypond as Ly import qualified Data.Music.Lilypond.Dynamics as LyD import Music import Text.Pretty...
4f702a3176affd9ccbfa101c1964b41b58685e9e1ded4e2db3606d075158c2fa
kraison/vivace-graph-v2
conditions.lisp
(in-package #:vivace-graph-v2) (define-condition prolog-error (error) ((reason :initarg :reason)) (:report (lambda (error stream) (with-slots (reason) error (format stream "Prolog error: ~A." reason))))) (define-condition serialization-error (error) ((instance :initarg :instance) (reason :inita...
null
https://raw.githubusercontent.com/kraison/vivace-graph-v2/f5fcc60caa1e5b33ac3f618311e8876a94508818/conditions.lisp
lisp
(in-package #:vivace-graph-v2) (define-condition prolog-error (error) ((reason :initarg :reason)) (:report (lambda (error stream) (with-slots (reason) error (format stream "Prolog error: ~A." reason))))) (define-condition serialization-error (error) ((instance :initarg :instance) (reason :inita...
c4f57441eb7ab516740e7e96ebb5e6525bf129e75655ebcb5280f78c90113724
johnlawrenceaspden/hobby-code
bidirectionalmap.clj
;; I wanted a bidirectional map, to take unique userids to usernames Clojure does n't have an appropriate data structure . ;; In fact I want it to be slightly asymmetrical. I want to be able to ;; add new userids, and change the usernames associated with existing ;; userids, but I don't want to be able to change th...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/bidirectionalmap.clj
clojure
I wanted a bidirectional map, to take unique userids to usernames In fact I want it to be slightly asymmetrical. I want to be able to add new userids, and change the usernames associated with existing userids, but I don't want to be able to change the userids of existing values. I want assoc to change the values ...
Clojure does n't have an appropriate data structure . We can make an appropriate table out of two ordinary maps (def empty-bidirectional-map [{}{}]) ordinarily , but never to allow two keys to point to the same value (defn assoc-unique [[forwardmap backmap] userid name] (if (nil? (backmap name)) (let ...
a596943d1c88742e67c8d690b59985eb5a0a507e2443281a66b0ac2be70fb6b0
fredlund/McErlang
ltl2buchi.erl
Copyright ( c ) 2009 , %% 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...
null
https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/Ltl2Buchi/src/ltl2buchi.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2009 , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR @author < > @copyright 2009 , < a href=" / m / profile / dimitra / publications / forte02.pdf " > From States to Transition...
abdefcfb49bbfd72911e3b336f0dd3471ea0200aba2c5eb0950a46e7b696e582
mirage/bechamel
analyze.ml
module OLS = struct module Ci95 = struct 95 % confidence interval type t = { r : float; l : float } let pp ppf x = Fmt.pf ppf "@[<hov>%f to %f@]" x.r x.l let bad = { r = neg_infinity; l = neg_infinity } end Linear regression inputs let make_lr_inputs ~responder ~predictors m = let responder_...
null
https://raw.githubusercontent.com/mirage/bechamel/8e1a3e64c6723d1d9b2081aeb06d725024f88012/lib/analyze.ml
ocaml
returns [a, b] such that [f(x) = a*x + b] minimize the distance between [sum(fun (x -> (f(x) - v(x))^2)] Couldn't extract a model, just return crude affine adjustment
module OLS = struct module Ci95 = struct 95 % confidence interval type t = { r : float; l : float } let pp ppf x = Fmt.pf ppf "@[<hov>%f to %f@]" x.r x.l let bad = { r = neg_infinity; l = neg_infinity } end Linear regression inputs let make_lr_inputs ~responder ~predictors m = let responder_...
ce46fc5907a1a7843cca56a31e909813ed4c63091dd03b83a6c55209773a8f01
clojurecup2014/parade-route
metadata.clj
Copyright ( c ) . 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 bound by ; ...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test_clojure/metadata.clj
clojure
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 bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . Authors : , Frantisek Sodomka (ns clojure.test-clojure.metadata (:use clojure.test [clojure.test-helper :only (eval-in-temp-ns)]) (:require [clojure.set :as set])) (def public-namespaces '[clojure.core clojure.pprint clojure.set clojure.sta...
a9834978d356c849c363aada14130b51671e7f7bb123549f57676c3cf195c682
annenkov/unmix
unmix.rkt
#lang racket This file is used to run Unmix under Racket . (require "x-match.rkt" "xmenu.rkt" ) (for-each (lambda (x) (display x) (newline)) '("" "UNMIX 4.0 (December 2013) for Racket" "(based on UNMIX 3.0: /)" " Sergei A.Romanenko, Keldysh Institute of Applied Mathematics," " Russian Aca...
null
https://raw.githubusercontent.com/annenkov/unmix/e156fb706e52994f86029ac512a79c737d7ee0d8/unmix.rkt
racket
#lang racket This file is used to run Unmix under Racket . (require "x-match.rkt" "xmenu.rkt" ) (for-each (lambda (x) (display x) (newline)) '("" "UNMIX 4.0 (December 2013) for Racket" "(based on UNMIX 3.0: /)" " Sergei A.Romanenko, Keldysh Institute of Applied Mathematics," " Russian Aca...
c2a611877741d3f24388c7cec5f27e3450d3af2e88ff5282667b58e7acef01ff
dakrone/itsy
core_test.clj
(ns itsy.core-test (:use clojure.test itsy.core)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/dakrone/itsy/4f591dec8b9152634499916245b77cb8f0b71eb4/test/itsy/core_test.clj
clojure
(ns itsy.core-test (:use clojure.test itsy.core)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
69a61e94d9082b208fa2ceef353123d8b585f7f61b4d2a77d0b27fc53d8812a5
ekmett/hask
Eq.hs
# LANGUAGE PolyKinds # # LANGUAGE InstanceSigs # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Hask.Eq where import Data.Type.Equality ((:~:)(..)) import Hask.Core type family (==) :: i -> i -> j type instance (==) = (~) -- @k -> k -> Co...
null
https://raw.githubusercontent.com/ekmett/hask/54ea964af8e0c1673ac2699492f4c07d977cb3c8/old/src/Hask/Eq.hs
haskell
@k -> k -> Constraint@ @k -> k -> *@
# LANGUAGE PolyKinds # # LANGUAGE InstanceSigs # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Hask.Eq where import Data.Type.Equality ((:~:)(..)) import Hask.Core type family (==) :: i -> i -> j class hom ~ Hom => Subst (hom :: j -> j ->...
1591bc5ec14d9f9fb76661ee3e5114b455282c41034289a807cc47ccee1a264b
sneeuwballen/benchpress
Proof_checker.ml
open Common type name = string type t = { name: name; cmd: string; (* take $proof_file and $problem *) valid: string; invalid: string; } let pp out self = let open Misc.Pp in let {name; cmd; valid; invalid} = self in Fmt.fprintf out "(@[<hv1>proof-checker%a%a%a%a@])" (pp_f "name" pp_str) name...
null
https://raw.githubusercontent.com/sneeuwballen/benchpress/180692844c7680d391fb97ea348084fe9b143ea1/src/core/Proof_checker.ml
ocaml
take $proof_file and $problem
open Common type name = string type t = { name: name; valid: string; invalid: string; } let pp out self = let open Misc.Pp in let {name; cmd; valid; invalid} = self in Fmt.fprintf out "(@[<hv1>proof-checker%a%a%a%a@])" (pp_f "name" pp_str) name (pp_f "cmd" pp_str) cmd (pp_f "valid" pp_r...
b9c64a0f1f39aae29b091c4d0bb9ac0d410794b51fadea9977baa29afa0b22c9
appleshan/cl-http
http-base-client-51-6.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*- Patch file for HTTP - BASE - CLIENT version 51.6 Reason : Function ( CLOS : METHOD HTTP : COPY - FILE ( URL : HTTP - URL CL : PATHNAME ) ): update for ;;; proper transfer decoding, handling CRLF, and prefering content-t...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/client/patch/http-base-client-51/http-base-client-51-6.lisp
lisp
Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : t -*- proper transfer decoding, handling CRLF, and prefering content-type as a source for copy-mode Function HTTP::%PUT-URL: tune up. DOMAIN - FIXES.LISP.33 ) , MAILBOX - FORMAT.LISP.24 ) , MAILER - FIXES.LISP.15 ) , Patch TCP hang on close when...
Patch file for HTTP - BASE - CLIENT version 51.6 Reason : Function ( CLOS : METHOD HTTP : COPY - FILE ( URL : HTTP - URL CL : PATHNAME ) ): update for Written by JCMa , 10/08/03 21:30:42 while running on FUJI - VLM from FUJI:/usr / lib / symbolics / ComLink-39 - 8 - F - MIT-8 - 5 - inc1.vlod with Open Gener...
b15f1c99578147ab119ba9417298b11f6a34dd0b870704ca2e2e4aad9a263634
ijvcms/chuanqi_dev
mysql_auth.erl
%%%------------------------------------------------------------------- %%% File : mysql_auth.erl Author : < > . : MySQL client authentication functions . Created : 4 Aug 2005 by < > %%% Note : All MySQL code was written by , originally %%% in the file mysql.erl - I just moved it he...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/system/db/mysql/mysql_auth.erl
erlang
------------------------------------------------------------------- File : mysql_auth.erl in the file mysql.erl - I just moved it here. See the file COPYING ------------------------------------------------------------------- -------------------------------------------------------------------- -------...
Author : < > . : MySQL client authentication functions . Created : 4 Aug 2005 by < > Note : All MySQL code was written by , originally Copyright ( c ) 2001 - 2004 Kungliga Tekniska Högskolan -module(mysql_auth). External exports ( should only be used by the ' mysql_conn ' module ) -export(...
d7df284114c1252e66e5e4d77aea8d22d75247a484aec5d4bacf86f90819433e
schell/editor
Buffer.hs
module Graphics.Rendering.Buffer where import Editor.Buffer.Types import Graphics.Text.Renderer | Renders a buffer into its BufferRenderCache renderBuffer :: Buffer -> TextRenderer -> Buffer renderBuffer buffer renderer = do let (BufferAcc _ (vs,uvs) _)
null
https://raw.githubusercontent.com/schell/editor/0f0d2eb67df19e8285c6aaeeeca96bff3110f68d/src/Graphics/Rendering/Buffer.hs
haskell
module Graphics.Rendering.Buffer where import Editor.Buffer.Types import Graphics.Text.Renderer | Renders a buffer into its BufferRenderCache renderBuffer :: Buffer -> TextRenderer -> Buffer renderBuffer buffer renderer = do let (BufferAcc _ (vs,uvs) _)
3c29a006c1f8e877f06bdf3edf955b8e2e29bd9173749201892e34749150b310
static-analysis-engineering/codehawk
jCHNumericInfo.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHNumericInfo.ml
ocaml
chutil jchlib jchpre it is an empty collection it could have been changed fields that, at some point, had an equal value with the * value of this variable * range of values for the var included in the range of value for each field * if the variable is a length of a then these are the fields f...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
4b6c24f6ba551fee5d3529b1d941fd4aa6e984a60ea8ee509e90d188c08bdb5f
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PaymentIntentNextActionKonbiniLawson.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema PaymentIntentNextActionKonbiniLawson module StripeAPI.Types.PaymentIntentNex...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PaymentIntentNextActionKonbiniLawson.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Defines the object schema located at @components.schemas.payment_intent_next_action_konbini_lawson@ in the specification. | confirmation_number: The confirmation number. Constraints: | payment_code: The payment code. Constraints: | 'paymentIntentNextAct...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema PaymentIntentNextActionKonbiniLawson module StripeAPI.Types.PaymentIntentNextActionKonbiniLawson where import qualified Control.Monad.Fail...
22273c45a06672f04164cf38b98edeb648184d196bbfc9759c6b5f717536a55b
melisgl/mgl
test-rnn.lisp
(in-package :mgl-test) (defun make-sum-sign-instance () (let ((length (1+ (random 10))) (sum 0)) (loop for i below length collect (let ((x (1- (* 2 (random 2))))) (incf sum x) (when (< x 0) (setq sum x)) (list x (...
null
https://raw.githubusercontent.com/melisgl/mgl/27a2552632a6a9330c1a133e519e676d9c6ca714/test/test-rnn.lisp
lisp
We have a batch of sum-sign instances from MAKE-SUM-SIGN-INSTANCE time step (i.e. at the same index) in the sum-sign instances.
(in-package :mgl-test) (defun make-sum-sign-instance () (let ((length (1+ (random 10))) (sum 0)) (loop for i below length collect (let ((x (1- (* 2 (random 2))))) (incf sum x) (when (< x 0) (setq sum x)) (list x (...
4a79fa1e150fc46cd73c6fc76b1a5596d12902972ad132f309572530d6e34896
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
UsageRecord.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema UsageRecord module StripeAPI.Types.UsageRecord where import qualified Contr...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/UsageRecord.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # Usage records allow you to report customer usage and metrics to Stripe for metered billing of subscription prices. Related guide: [Metered Billing](https:\/\/stripe.com\/docs\/billing\/subscriptions\/metered-billing). | id: Unique identifier for the object. ...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema UsageRecord module StripeAPI.Types.UsageRecord where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data...
2b0a148f86592e6519c9eab3dce64762a8d8c5c6729cb652f9df749f6e4ad4b0
tud-fop/vanda-haskell
XRSNGrams.hs
# OPTIONS_GHC -fno - warn - incomplete - record - updates # ----------------------------------------------------------------------------- -- | Copyright : ( c ) Technische Universität Dresden 2018 -- License : BSD-style -- -- Stability : unknown -- Portability : portable -------------------------------...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/executable/VandaCLI/XRSNGrams.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Stability : unknown Portability : portable ---------------------------------------------------------------------------
# OPTIONS_GHC -fno - warn - incomplete - record - updates # Copyright : ( c ) Technische Universität Dresden 2018 module VandaCLI.XRSNGrams ( main , mainArgs , cmdArgs , Args() ) where import Codec.Compression.GZip ( compress ) import qualified Data.Array as A import qualified Data.Binary as B imp...
9c90093c77831dc75170b502d5e61218762248247886c8258c0c880b3e52d608
Kaleb47/Haskell-Plutus-journal
curriedpartiallyapplied.hs
import Data.List (nub, sort, transpose, inits, tails) --you can selectively import functions import Data . List hiding ( nub ) you 're importing all functions accept the nub -- import qualified Data.Map as M Now , to reference Data . Map 's filter function , we just use M.filter import qualified Data.Map as M im...
null
https://raw.githubusercontent.com/Kaleb47/Haskell-Plutus-journal/974ea970e0d469de909e22d00d5ed12b6065db44/curriedpartiallyapplied.hs
haskell
you can selectively import functions import qualified Data.Map as M
import Data . List hiding ( nub ) you 're importing all functions accept the nub Now , to reference Data . Map 's filter function , we just use M.filter import qualified Data.Map as M import qualified Data.Set qualified imports need as , so call data . numUniques :: (Eq a) => [a] -> Int numUniques = length . ...
3bfb75bb1e12710a40cb47a5621f4e77b23f0213a5ccd0968279a2d9b13c93a5
input-output-hk/ouroboros-network
Direct.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # {-# LANGUAGE KindSignatures #-} # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # module Ouroboros.Network.Protocol.LocalTxSubmission.Direct (direct) where import Ouroboros.Network.Protocol.LocalTxSubmission.Client ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2793b6993c8f6ed158f432055fa4ef581acdb661/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxSubmission/Direct.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE KindSignatures #
# LANGUAGE GADTs # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # module Ouroboros.Network.Protocol.LocalTxSubmission.Direct (direct) where import Ouroboros.Network.Protocol.LocalTxSubmission.Client import Ouroboros.Network.Protocol.LocalTxSubmission.Server dir...
cb066c99ed3564f92a04a39ee87cdc5bf174beb3c93ac35ac10777996e45d7a2
cram2/cram
dot.lisp
Regression test DOT for GSLL , automatically generated ;; Copyright 2009 , 2011 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fou...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/dot.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test DOT for GSLL , automatically generated Copyright 2009 , 2011 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a co...
4855d4cfe12674ca8c9050e8463caf153b2fe0cdbe2356a51446d228e8c9fc2a
elaforge/karya
ParseArgs.hs
Copyright 2018 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Parse the command line and load files. module App.ParseArgs (parse_args) where import qualified Control.Monad.Trans as Trans import qualified Data.Text as Text import qualified Cmd....
null
https://raw.githubusercontent.com/elaforge/karya/1b80c40ca0876d093a5ba3cb1469355f84a9a0a2/App/ParseArgs.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Parse the command line and load files. | By default, this winds up in 'App.StaticConfig.setup_cmd'. Load a template.
Copyright 2018 module App.ParseArgs (parse_args) where import qualified Control.Monad.Trans as Trans import qualified Data.Text as Text import qualified Cmd.Cmd as Cmd import qualified Cmd.Create as Create import qualified Cmd.Load.Midi as Load.Midi import qualified Cmd.Save as Save import qualified Cmd.SaveGit a...
87fb049eec13522ff918b29bbea5c7ba453d3c380035ac4dac3da4b97c21ea9b
avsm/eeww
waiters.ml
type 'a waiter = { finished : bool Atomic.t; enqueue : ('a, exn) result -> unit; } type 'a t = 'a waiter Lwt_dllist.t let create = Lwt_dllist.create let add_waiter_protected ~mutex t cb = let w = Lwt_dllist.add_l cb t in Hook.Node_with_mutex (w, mutex) let add_waiter t cb = let w = Lwt_dllist.add_l cb t i...
null
https://raw.githubusercontent.com/avsm/eeww/ab64c5391b67fb3f5b1d3de5e0a5a5cb4c80207b/lib/eio/lib_eio/core/waiters.ml
ocaml
Wake a waiter with the result. Returns [false] if the waiter got cancelled while we were trying to wake it. [cancel] gets called and we enqueue an error Returns a result if the wait succeeds, or raises if cancelled.
type 'a waiter = { finished : bool Atomic.t; enqueue : ('a, exn) result -> unit; } type 'a t = 'a waiter Lwt_dllist.t let create = Lwt_dllist.create let add_waiter_protected ~mutex t cb = let w = Lwt_dllist.add_l cb t in Hook.Node_with_mutex (w, mutex) let add_waiter t cb = let w = Lwt_dllist.add_l cb t i...
ba3ee2f694fa6e8d4b455de72c4756df7ef067de3331e7f46f0f32e8545e9302
ragkousism/Guix-on-Hurd
certs.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > Copyright © 2015 < > Copyright © 2016 < > ;;; ;;; 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 Fr...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/certs.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 © 2015 < > Copyright © 2015 < > Copyright © 2016 < > 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 (gnu packages certs) #:use-module ((guix lic...
ca755975983bd4904c4ab1d111feb8640a270e10d51587fc318060f2c9ca47b2
haskell-numerics/random-fu
Random.hs
-- |Flexible modeling and sampling of random variables. -- -- The central abstraction in this library is the concept of a random -- variable. It is not fully formalized in the standard measure-theoretic -- language, but rather is informally defined as a \"thing you can get random -- values out of\". Different random ...
null
https://raw.githubusercontent.com/haskell-numerics/random-fu/18a6ba6b29c7ca3b3ff34ea6ca0eca910da72726/random-fu/src/Data/Random.hs
haskell
|Flexible modeling and sampling of random variables. The central abstraction in this library is the concept of a random variable. It is not fully formalized in the standard measure-theoretic language, but rather is informally defined as a \"thing you can get random values out of\". Different random variables ma...
be defined in a monadic / \"imperative\ " style that amounts to manipulating types GHCi may list for the functions ) by the functions in " Data . Random . Sample " . random variables defined in " Data . Random . Internal . Primitives " . This basis rather than these basis variables . " Data . Random . Sourc...
0e1f8c7a8f3cce0de90495b8d11efc75e42a6cfd426145c75c49d4a33d7a69fc
helium/erlang-libp2p
libp2p_swarm_server.erl
-module(libp2p_swarm_server). -behavior(gen_server). -record(state, { tid :: ets:tab(), sig_fun :: libp2p_crypto:sig_fun(), ecdh_fun :: libp2p_crypto:ecdh_fun(), pid_gc_monitor = make_ref() :: reference(), monitors=#{} :: #{pid() => {reference(), atom()}} }). ...
null
https://raw.githubusercontent.com/helium/erlang-libp2p/3d81f62ba1c036e417237fb4e9e1ac6cddd8d3f2/src/libp2p_swarm_server.erl
erlang
gen_server Add tcp and p2p as a default transports Register the default connection handler no client side registration Response from an identify triggered by `register_session. Store the session in config and tell the peerbook about the session change as well as the new identify record. not be able to...
-module(libp2p_swarm_server). -behavior(gen_server). -record(state, { tid :: ets:tab(), sig_fun :: libp2p_crypto:sig_fun(), ecdh_fun :: libp2p_crypto:ecdh_fun(), pid_gc_monitor = make_ref() :: reference(), monitors=#{} :: #{pid() => {reference(), atom()}} }). ...
13119d153b18f34f5dadf69a7b7fe917de53be112a530beb1ca7cddc084c898a
bhaskara/programmable-reinforcement-learning
q-learning-alg.lisp
(defpackage q-learning-alg (:documentation " Package q-learning-alg (aka ql-alg). Defines <q-learning-alg>, an abstract class representing any object that maintains and updates an estimate of a Q-function given a stream of samples. Subclasses implement algorithms like Q-learning and prioritized sweeping. Subcl...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/learning/q-learning-alg.lisp
lisp
Class definition
(defpackage q-learning-alg (:documentation " Package q-learning-alg (aka ql-alg). Defines <q-learning-alg>, an abstract class representing any object that maintains and updates an estimate of a Q-function given a stream of samples. Subclasses implement algorithms like Q-learning and prioritized sweeping. Subcl...
b5ecb697ec64dcc236a6ebce1e1d36637e9c64e84976d4ca33046a645b2d345d
roelvandijk/numerals
AFR.hs
| [ @ISO639 - 1@ ] af [ @ISO639 - 2@ ] afr [ @ISO639 - 3@ ] afr [ @Native name@ ] Afrikaans [ @English name@ ] Afrikaans [@ISO639-1@] af [@ISO639-2@] afr [@ISO639-3@] afr [@Native name@] Afrikaans [@English name@] Afrikaans -} module Text...
null
https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src/Text/Numeral/Language/AFR.hs
haskell
* Language entry * Conversions * Structure * Bounds ------------------------------------------------------------------------------ Imports ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ AF --------------...
| [ @ISO639 - 1@ ] af [ @ISO639 - 2@ ] afr [ @ISO639 - 3@ ] afr [ @Native name@ ] Afrikaans [ @English name@ ] Afrikaans [@ISO639-1@] af [@ISO639-2@] afr [@ISO639-3@] afr [@Native name@] Afrikaans [@English name@] Afrikaans -} module Text...
38b6d774d30d773db3d7d75b04ead6c56f32677ad6add79d0147d8aa80522c37
cl-axon/shop2
run.lisp
(in-package :common-lisp-user) (asdf:load-system "shop2") (format t "*** Assume SHOP2 has been loaded ***~%~%") (load (merge-pathnames "../../../solution-converter" *load-truename*)) (load (merge-pathnames "../zenotravelSimpleTime.lisp" *load-truename*)) (in-package :shop2-user) (defparameter *thisfile* (or *comp...
null
https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/IPC-2002/ZenoTravel/SimpleTime/easy_probs/run.lisp
lisp
(in-package :common-lisp-user) (asdf:load-system "shop2") (format t "*** Assume SHOP2 has been loaded ***~%~%") (load (merge-pathnames "../../../solution-converter" *load-truename*)) (load (merge-pathnames "../zenotravelSimpleTime.lisp" *load-truename*)) (in-package :shop2-user) (defparameter *thisfile* (or *comp...
bc417639f9174bcd6629e4fc3ab8f71ec666a0a50b3cebbba76834b6e4956f72
TerrorJack/ghc-alter
Utils.hs
module System.CPUTime.Utils ( -- * Integer conversions | These types have no ' Integral ' instances in the report -- so we must do this ourselves. cClockToInteger , cTimeToInteger , csuSecondsToInteger ) where import Foreign.C.Types cClockToInteger :: CClock -> Integer cClockToInteger (...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/System/CPUTime/Utils.hs
haskell
* Integer conversions so we must do this ourselves.
module System.CPUTime.Utils | These types have no ' Integral ' instances in the report cClockToInteger , cTimeToInteger , csuSecondsToInteger ) where import Foreign.C.Types cClockToInteger :: CClock -> Integer cClockToInteger (CClock n) = fromIntegral n cTimeToInteger :: CTime -> Integer cTimeTo...
a1d9a1ed143545d19b9ef3cfa6f08ae431fb323b0741ae1d1161ac25c2dac7f2
vbrankov/hdf5-ocaml
type.ml
open Bigarray module Bigstring = struct type t = (char, int8_unsigned_elt, c_layout) Array1.t external of_string : string -> t = "hdf5_caml_struct_bigstring_of_string" external to_string : t -> string = "hdf5_caml_struct_bigstring_to_string" let of_array1 a = if a.{Array1.dim a - 1} <> '\000' then ...
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/caml/type.ml
ocaml
open Bigarray module Bigstring = struct type t = (char, int8_unsigned_elt, c_layout) Array1.t external of_string : string -> t = "hdf5_caml_struct_bigstring_of_string" external to_string : t -> string = "hdf5_caml_struct_bigstring_to_string" let of_array1 a = if a.{Array1.dim a - 1} <> '\000' then ...
1a7302bc127fa6a63ea70580bc6e03be1ffc487462c6dba7f67662d2fba68c28
acl2/acl2
top@useless-runes.lsp
(DM::PRIMEP1396153487) (DM::PRIMEP1374541391 (29 1 (:REWRITE DEFAULT-CDR)) (20 9 (:REWRITE EQUAL-OF-BOOLEANS-CHEAP)) (18 1 (:REWRITE CONSP-FROM-LEN-CHEAP)) (12 4 (:REWRITE <-OF-IF-ARG2)) (10 8 (:REWRITE NOT-EQUAL-WHEN-LESS)) (9 9 (:TYPE-PRESCRIPTION BOOLEANP)) (9 9 (:REWRITE REWRITE-BV-EQUALITY-WHEN-SIZES-DONT-M...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/ethereum/.sys/top%40useless-runes.lsp
lisp
(DM::PRIMEP1396153487) (DM::PRIMEP1374541391 (29 1 (:REWRITE DEFAULT-CDR)) (20 9 (:REWRITE EQUAL-OF-BOOLEANS-CHEAP)) (18 1 (:REWRITE CONSP-FROM-LEN-CHEAP)) (12 4 (:REWRITE <-OF-IF-ARG2)) (10 8 (:REWRITE NOT-EQUAL-WHEN-LESS)) (9 9 (:TYPE-PRESCRIPTION BOOLEANP)) (9 9 (:REWRITE REWRITE-BV-EQUALITY-WHEN-SIZES-DONT-M...
54772ac8ce9ed10edfd3c762df8020361efee0fec0835154d7d251c7ae7f0642
alexanderjamesking/spy
project.clj
(defproject tortue/spy "2.15.0-SNAPSHOT" :description "Spy - a Clojure and ClojureScript library for stubs, spies and mocks" :url "" :license {:name "MIT License" :url "" :year 2022 :key "mit"} :plugins [[lein-cloverage "1.2.2"]] :profiles {:provided {:dependencies [[org.cl...
null
https://raw.githubusercontent.com/alexanderjamesking/spy/42dd12e90d175c7867bd985f84cf3fddead6ab5a/project.clj
clojure
(defproject tortue/spy "2.15.0-SNAPSHOT" :description "Spy - a Clojure and ClojureScript library for stubs, spies and mocks" :url "" :license {:name "MIT License" :url "" :year 2022 :key "mit"} :plugins [[lein-cloverage "1.2.2"]] :profiles {:provided {:dependencies [[org.cl...
5d65b2065be7b954c1a9be1728cbcd62aaea99379abe8506ce8c247dc206ae0b
morpheusgraphql/morpheus-graphql
NamedResolverFun.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # ...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/13d7eaf283df13b2860092f44c73a954a0f09683/morpheus-graphql-server/src/Data/Morpheus/Server/Deriving/Kinded/NamedResolverFun.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE PolyKinds # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE UndecidableInstances # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.S...
a2e573feb13603b739722b8aae8c50911aa56e145bf83ded5f23c5ac0f7ed9c4
eugeneia/erlangen
agent.lisp
Asynchronous agents ( similar to Erlang processes ) . (in-package :erlangen.agent) (defstruct (agent (:constructor make-agent%)) "*Syntax:* _agent_::= _structure_ | _keyword_ | _string_ *Description:* An _agent_ can either be an _agent structure_, a _keyword_ denoting a registered _agent_ or a _str...
null
https://raw.githubusercontent.com/eugeneia/erlangen/204166b33833c49841617bbc6ecfaf4dd77cf6d8/agent.lisp
lisp
*agent* will be rebound by the “real” agents, but for the initial processes SEND, and RECEIVE as if they were agents. See AGENT below. agent's mailbox. Kill links. Message monitors. Agent exits normally. Agent is killed with reason. Handler for when agent signals a SERIOUS-CONDITION. is invoked automatically. ...
Asynchronous agents ( similar to Erlang processes ) . (in-package :erlangen.agent) (defstruct (agent (:constructor make-agent%)) "*Syntax:* _agent_::= _structure_ | _keyword_ | _string_ *Description:* An _agent_ can either be an _agent structure_, a _keyword_ denoting a registered _agent_ or a _str...
7d67e1a269f6939ee5c840d0c7f251466de6357b1d15e7cc05f22ddbbaf78460
samply/blaze
spec.clj
(ns blaze.interaction.update.spec (:require [blaze.executors :as ex] [clojure.spec.alpha :as s])) (s/def :blaze.interaction.update/executor ex/executor?)
null
https://raw.githubusercontent.com/samply/blaze/e84c106b5ca235600c20ba74fe8a2295eb18f350/modules/interaction/src/blaze/interaction/update/spec.clj
clojure
(ns blaze.interaction.update.spec (:require [blaze.executors :as ex] [clojure.spec.alpha :as s])) (s/def :blaze.interaction.update/executor ex/executor?)
640e9ea9a8a8ae3772789ee188c5c859a92e1d594bc47ffab83e5d96ed65c4d3
melisgl/try
test-trial.lisp
(in-package :try-test) (deftest test-trial () (test-trial/var-and-name) (test-trial/return) (test-with-test/nlx) (test-with-test/declaration) (test-with-test/restarts) (test-deftest) (test-visible-restarts) (test-registry) (test-set-try-debug) (test-edge-cases)) Here and elsewhere , there are ...
null
https://raw.githubusercontent.com/melisgl/try/a37c61f8b81d4bdf38f559bca54eef3868bb87a1/test/test-trial.lisp
lisp
WITH-SILENT-IMPLICIT-TRY). Wrapped in extra trial. No way to return values through the wrapper trial. ERROR with a non-ERROR condition ends up in the debugger too. Arguably, this tests a shortcoming: there is no way to detect whether WITH-TEST unwinds due to an error or the unwinding caused by the error ...
(in-package :try-test) (deftest test-trial () (test-trial/var-and-name) (test-trial/return) (test-with-test/nlx) (test-with-test/declaration) (test-with-test/restarts) (test-deftest) (test-visible-restarts) (test-registry) (test-set-try-debug) (test-edge-cases)) Here and elsewhere , there are ...
d657c2022d919065e02dd5980d5c6b642d245e65d31005c55da3304917beaf3b
mathematical-systems/clml
encodings.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; encodings.lisp --- Character encodings and mappings. ;;; Copyright ( C ) 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in ...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/addons/babel/src/encodings.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- encodings.lisp --- Character encodings and mappings. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
Copyright ( C ) 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package #:babel-en...
f1fd3732d6dd30573e79b4b6bec4a0ab0e33a0876316e76cc78514c07b182d51
shayan-najd/NativeMetaprogramming
Main.hs
module Main (main) where import Control.Monad import Data.Function import Data.List import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe import Data.Set (Set) import qualified Data.Set as Set import System.Environment import System.Exit import System.FilePath main :: IO () main = do args <- getArg...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/utils/dll-split/Main.hs
haskell
Given: Produce:
module Main (main) where import Control.Monad import Data.Function import Data.List import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe import Data.Set (Set) import qualified Data.Set as Set import System.Environment import System.Exit import System.FilePath main :: IO () main = do args <- getArg...
5cc40e10388be971e44559744d82e0cc17259d2ad53fb73b3c7c92c9ea63f0a3
janestreet/merlin-jst
numbers.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_flambda/utils/numbers.mli
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the module Int : sig include Identifiable.S with type t = int * [ ze...
f6fe227036ca9e83461016b915ea6d1e595a9b406aca4dace697f604f1da2fce
aphyr/clj-antlr
coerce.clj
(ns clj-antlr.coerce (:require [clj-antlr.common :as c]) (:import (org.antlr.v4.runtime.tree ParseTree) (org.antlr.v4.runtime AltLabelTextProvider CommonTokenStream Parser ParserRuleContext ...
null
https://raw.githubusercontent.com/aphyr/clj-antlr/d82f80e4d63341d4e04c81dc01a23321e2a2fc21/src/clj_antlr/coerce.clj
clojure
"Coerces trees to hiccup-style structures." ParserRuleContext (doall (map #(sexpr % p) (c/children t)))))) If there was a recognition error, we'll wrap the node in an ::error and drop the exception in the metadata. (if (instance? ParserRuleContext t) (->> (mapv #(sexpr % p) (c/childre...
(ns clj-antlr.coerce (:require [clj-antlr.common :as c]) (:import (org.antlr.v4.runtime.tree ParseTree) (org.antlr.v4.runtime AltLabelTextProvider CommonTokenStream Parser ParserRuleContext ...
7f01f650d5e8c5a58adce7ded46048f7ea26f5f9ced8dcc9d226eab32effeeea
efcasado/behaviours2
bhv2_pt.erl
%%%======================================================================== %%% File: bhv2_pt.erl %%% Parse transform that automatically injects sound callback defaults %%% when no user-provided implementations are found in the module %%% implementing the behaviour. %%% %%% Author : < > Date : February , 20...
null
https://raw.githubusercontent.com/efcasado/behaviours2/95190c212d0c28a89a62b451005e211c71176c7f/src/bhv2_pt.erl
erlang
======================================================================== File: bhv2_pt.erl when no user-provided implementations are found in the module implementing the behaviour. -- LICENSE ------------------------------------------------------------- Permission is hereby granted, free of charge, to any per...
Parse transform that automatically injects sound callback defaults Author : < > Date : February , 2015 The MIT License ( MIT ) Copyright ( c ) 2015 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permi...
1f1376511a9825234b6791822294f0bfd35cebca833406be1cb86913310c3863
ndmitchell/hoogle
Tags.hs
# LANGUAGE ViewPatterns , TupleSections , ScopedTypeVariables , DeriveDataTypeable , PatternGuards , GADTs # module Output.Tags(writeTags, completionTags, applyTags) where import Data.Bifunctor import Data.Function import Data.List.Extra import Data.Tuple.Extra import Data.Maybe import Foreign.Storable.Tuple() import...
null
https://raw.githubusercontent.com/ndmitchell/hoogle/25b2872929e3fccd5bbcdef026cec63ce365647e/src/Output/Tags.hs
haskell
------------------------------------------------------------------- DATA TYPE matches (a,b) if i >= a && i <= b list of packages, sorted by popularity, lowercase, interspersed with \0 list of modules, sorted by popularity, not unique, lowercase, interspersed with \0 list of categories, sorted by name, interspersed...
# LANGUAGE ViewPatterns , TupleSections , ScopedTypeVariables , DeriveDataTypeable , PatternGuards , GADTs # module Output.Tags(writeTags, completionTags, applyTags) where import Data.Bifunctor import Data.Function import Data.List.Extra import Data.Tuple.Extra import Data.Maybe import Foreign.Storable.Tuple() import...
4b0463d47d5b4f1da5dd5d8d0474248c8320ae907f5111dd05f1dcb3cd2970d8
ocharles/netwire-classics
ForeignChunk.hs
# LINE 1 " " # module ForeignChunk where # LINE 2 " " # # LINE 4 " " # # LINE 5 " " # import Data.Word import Foreign import Foreign.C.Types data FChunk = FChunk { chunkAllocated :: CInt, chunkBuf :: Ptr Word8, chunkLen :: Word32, chunkVol :: Word8 } instance Storable FChunk where sizeOf _ = ((24)) # LINE 1...
null
https://raw.githubusercontent.com/ocharles/netwire-classics/458aeb3f784c67ae5af1e56c49c22e3eee45e364/asteroids/ForeignChunk.hs
haskell
# LINE 1 " " # module ForeignChunk where # LINE 2 " " # # LINE 4 " " # # LINE 5 " " # import Data.Word import Foreign import Foreign.C.Types data FChunk = FChunk { chunkAllocated :: CInt, chunkBuf :: Ptr Word8, chunkLen :: Word32, chunkVol :: Word8 } instance Storable FChunk where sizeOf _ = ((24)) # LINE 1...
f08589471d2ead3ac48a91ec4b4736afb1950fb3ea3fdbc64516de7c2b1fab7e
tgetgood/ubik
topology.clj
(ns ubik.topology (:require [clojure.pprint :refer [pprint]] [ubik.codebase :as codebase] [ubik.server :as server] [ubik.process :as process] [ubik.util :as util])) (defn set-topology! [t]) (defn current-topology []) (def topology-signal (process/signal ::topology)) ...
null
https://raw.githubusercontent.com/tgetgood/ubik/a87a5a4dfc5e1fef5a0af35c7fbb4427d0cf8b7c/src/ubik/topology.clj
clojure
Another bit of programmer convenience sprinkled haphazardly about.
(ns ubik.topology (:require [clojure.pprint :refer [pprint]] [ubik.codebase :as codebase] [ubik.server :as server] [ubik.process :as process] [ubik.util :as util])) (defn set-topology! [t]) (defn current-topology []) (def topology-signal (process/signal ::topology)) ...
84d4924057c9c08b94f7881abc5b06436ea9f0a2fa87b692894314f68ff37638
lsevero/abclj
data_readers.clj
{abclj/cl-int abclj.core/cl-int abclj/cl-double abclj.core/cl-double abclj/cl-ratio abclj.core/cl-ratio abclj/cl-string abclj.core/cl-string abclj/cl-complex abclj.core/cl-complex abclj/cl-pathname abclj.core/cl-pathname }
null
https://raw.githubusercontent.com/lsevero/abclj/9f5a10aa98789a94f550b13d07e57b4fcefccfab/src/data_readers.clj
clojure
{abclj/cl-int abclj.core/cl-int abclj/cl-double abclj.core/cl-double abclj/cl-ratio abclj.core/cl-ratio abclj/cl-string abclj.core/cl-string abclj/cl-complex abclj.core/cl-complex abclj/cl-pathname abclj.core/cl-pathname }
c3c064859df2a64f29613a29ab1523e45ff1a6a3e107c4bb68b168e48bae9d38
karamellpelle/grid
SegmentArray.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/Grid/GridWorld/SegmentArray.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # m...
14cdffcd1f8c7ab025df2bba6cf2063f9014eca872d1a8c01ab32f4bdb9dfb0f
dwayne/eopl3
interpreter.rkt
#lang eopl (require "./env.rkt") (require "./parser.rkt") (require "./screen.rkt") (require "./store.rkt") (provide ;; Expressed Values num-val bool-val ;; Interpreter run) (define (run s) (initialize-screen!) (initialize-store!) (let ([init-env (extend-env 'i (newref (num-val 1)) ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/04-ch4/interpreters/racket/STATEMENTS-4.24/interpreter.rkt
racket
Expressed Values Interpreter Procedure ADT Values ExpVal = Int + Bool + Proc
#lang eopl (require "./env.rkt") (require "./parser.rkt") (require "./screen.rkt") (require "./store.rkt") (provide num-val bool-val run) (define (run s) (initialize-screen!) (initialize-store!) (let ([init-env (extend-env 'i (newref (num-val 1)) (extend-env ...
af7716d96fd54e72960c0be7faba7509a4ca62140e02ae68c7ba7931f012cb7b
kmi/irs
code.lisp
(in-package user) (defun test (x y) (+ x y)) (def-irs-corba-interface test_ontology ;;this is the ontology name test ;;this is the method name ((x "long") (y "long") ) "long" test ;;this is the lisp function )
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/publisher/services/test/code.lisp
lisp
this is the ontology name this is the method name this is the lisp function
(in-package user) (defun test (x y) (+ x y)) ((x "long") (y "long") ) "long" )
c130ce958743ffbcbb810c63ca553bbdbe7212791d5488b7144ac99e2f61310f
GNOME/gimp-tiny-fu
camo.scm
; ; ; ( ) At ECS Dept , University of Southampton , England . ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ; (at your option) any later version. ...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/camo.scm
scheme
This program is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICUL...
( ) At ECS Dept , University of Southampton , England . it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define (script-fu-camo-pattern inSize inGrain inColor1 inColor2 inColor3 inSmooth inFlatten) (let* ( (t...
c36bd1c896797b86bd7ea249f923a3593bcd4903dfcda9d5376839a520e3d5f3
triffon/fp-2019-20
08--reverse.rkt
#lang racket (require rackunit rackunit/text-ui) # # # Задача 8 Напишете функция ` ( reverse L ) ` , ; която връща списък от елементите на `L` в обратен ред. (define (reverse L) (void)) (define l1 '(1 2 3 4 5 6 7 8)) (define l2 '(0 (12 13) (21 22))) (run-tests (test-suite "reverse tests" (check-...
null
https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/exercises/computer-science-2/04--lists/08--reverse.rkt
racket
която връща списък от елементите на `L` в обратен ред.
#lang racket (require rackunit rackunit/text-ui) # # # Задача 8 Напишете функция ` ( reverse L ) ` , (define (reverse L) (void)) (define l1 '(1 2 3 4 5 6 7 8)) (define l2 '(0 (12 13) (21 22))) (run-tests (test-suite "reverse tests" (check-equal? (reverse '()) '()) ...
a0280713afc3468103562585121dec9f1a646dde8ce544087df41d1920316984
fulcrologic/fulcro-rad
js_joda_base.cljs
(ns com.fulcrologic.rad.type-support.js-joda-base "Things like js-joda/timezone require that a GLOBAL JSJoda exist before they are required. This file simply makes that happen." (:require ["@js-joda/core" :as js-joda])) (set! js/JSJoda js-joda)
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad/d2a40fdd7ca6ee0ec5fdb3897d5764bb6c5f7800/src/main/com/fulcrologic/rad/type_support/js_joda_base.cljs
clojure
(ns com.fulcrologic.rad.type-support.js-joda-base "Things like js-joda/timezone require that a GLOBAL JSJoda exist before they are required. This file simply makes that happen." (:require ["@js-joda/core" :as js-joda])) (set! js/JSJoda js-joda)
af27024fb43e2b78b2c7c282dd6dd3d8c5bfa3fd09f195847c38a772a90a50c4
alevy/postgresql-orm
Association.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # module Database.PostgreSQL.ORM.Association ( Association(..), assocProject, assocWhere, findAssoc -- * ...
null
https://raw.githubusercontent.com/alevy/postgresql-orm/9316db2f226c512036c2b72983020f6bdefd41bd/src/Database/PostgreSQL/ORM/Association.hs
haskell
# LANGUAGE OverloadedStrings # * Associations based on parent-child relationships ** Operations on join tables ** Semi-internal join table functions * Nested and chained associations | A data structure representing a relationship between a model @a@ query. * You want to look up a bunch of @(a ':.' b)@s, filter...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # module Database.PostgreSQL.ORM.Association ( Association(..), assocProject, assocWhere, findAssoc , GDBRefInfo(..), DBRefInfo, defaultDBRefI...
23acb8e4b4e7f57f33301957b865ac25d1acc0beb05a719ec7e63593f0d2bae7
lemmih/lhc
Shadow.hs
module Shadow where x x = \x -> \x -> \x -> x
null
https://raw.githubusercontent.com/lemmih/lhc/53bfa57b9b7275b7737dcf9dd620533d0261be66/haskell-crux/tests/Shadow.hs
haskell
module Shadow where x x = \x -> \x -> \x -> x
7ffcf223ce4b9fcccc57e31a7b3c35ebb69d665147fb5e7608eea7e21e45f559
scmlab/gcl
WP.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # module GCL.WP (WP, TM, sweep) where import Control.Monad.Except ( MonadError(throwError) , runExcept ...
null
https://raw.githubusercontent.com/scmlab/gcl/cadeff706b678e558100f3c3b172055486e6043a/src/GCL/WP.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ignore Proofs after the Postcondition tying the knots
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # module GCL.WP (WP, TM, sweep) where import Control.Monad.Except ( MonadError(throwError) , runExcept ) import ...