_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
d3094a968f21e0496081126a26b223ced84e6eac60285970f305dd9b4770d9a8
rm-hull/project-euler
euler020.clj
;; EULER #020 ;; ========== n ! means n x ( n x 1 ) x ... x 3 x 2 x 1 For example , 10 ! = 10 x 9 x ... x 3 x 2 x 1 = 3628800 , and the sum of the digits in the number 10 ! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27 . Find the sum of the digits in the number 100 ! ;; (ns euler020 (:use [util.misc])) (defn solve [n] ...
null
https://raw.githubusercontent.com/rm-hull/project-euler/04e689e87a1844cfd83229bb4628051e3ac6a325/src/euler020.clj
clojure
EULER #020 ==========
n ! means n x ( n x 1 ) x ... x 3 x 2 x 1 For example , 10 ! = 10 x 9 x ... x 3 x 2 x 1 = 3628800 , and the sum of the digits in the number 10 ! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27 . Find the sum of the digits in the number 100 ! (ns euler020 (:use [util.misc])) (defn solve [n] (->> (nth factorial-seq n) ...
d00731daf96fb8591803e2de91044cc6df5eb2dd4ccc63d68b53a00105046745
BoeingX/haskell-programming-from-first-principles
FixingDividedBySpec.hs
module Recursion.ChapterExercises.FixingDividedBySpec where import Test.Hspec import Test.QuickCheck import Recursion.ChapterExercises.FixingDividedBy spec :: Spec spec = do describe "Test div'" $ do it "should behave the same as div when y /= 0" $ property $ \x y -> y /= 0 ==> div' x y == Res...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/test/Recursion/ChapterExercises/FixingDividedBySpec.hs
haskell
module Recursion.ChapterExercises.FixingDividedBySpec where import Test.Hspec import Test.QuickCheck import Recursion.ChapterExercises.FixingDividedBy spec :: Spec spec = do describe "Test div'" $ do it "should behave the same as div when y /= 0" $ property $ \x y -> y /= 0 ==> div' x y == Res...
1331367929a683a94826544bccb560780071a5be768ea86fe82137a297638498
morpheusgraphql/morpheus-graphql
WrappedType.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # module Feature.Inference.WrappedType ( api, ) where import Data.Morpheus.Server (interpreter) import Data.Morpheus.Server.Resolvers ( constRes, ) import Data.M...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/0d7ec120df4ea3b1e030f64ed9820a8a66de7d6a/morpheus-graphql-server/test/Feature/Inference/WrappedType.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # module Feature.Inference.WrappedType ( api, ) where import Data.Morpheus.Server (interpreter) import Data.Morpheus.Server.Resolvers ( constRes, ) import Data.Morpheus.Server.Types ( GQLRequest, GQLResponse, GQLType (...
9a4e2a2d99c6102dbe67dbda4577d16bc32d0e4b3c9600cd139559382af31a9d
karamellpelle/grid
GridData.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/GridData.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 module Game.Grid.GridData ( #ifdef GRID_STYL...
d0bd073e3b0882e065ec7c8458fa1c3079bef37093a0711daa2f10d2694e4b39
racket/typed-racket
with-types.rkt
#lang racket/base (require "../utils/utils.rkt" "../base-env/base-types-extra.rkt" (except-in "../base-env/prims.rkt" with-handlers λ lambda define) "../env/type-name-env.rkt" "../env/type-alias-env.rkt" "../env/global-env.rkt" "parse-type.rkt" "type-contr...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-lib/typed-racket/private/with-types.rkt
racket
do we report multiple errors this parameter is just for printing types this is a parameter to avoid dependency issues reinitialize disappeared uses for error reporting we can treat the lifted definitions as top-level forms because they are only definitions and not forms that have special top-level meaning to TR...
#lang racket/base (require "../utils/utils.rkt" "../base-env/base-types-extra.rkt" (except-in "../base-env/prims.rkt" with-handlers λ lambda define) "../env/type-name-env.rkt" "../env/type-alias-env.rkt" "../env/global-env.rkt" "parse-type.rkt" "type-contr...
8b9f6b1465756394eb1ea43313dd0f67a4efd0139493b88d2f658560cad4a0b7
fukamachi/rove
reporter.lisp
(defpackage #:rove/utils/reporter (:use #:cl #:rove/core/stats #:rove/core/assertion #:rove/core/result #:rove/misc/stream #:rove/misc/color) (:export #:format-failure-tests)) (in-package #:rove/utils/reporter) (defun format-failure-tests (stream passed-tests failed-tests pe...
null
https://raw.githubusercontent.com/fukamachi/rove/861dd0528914cf5ed91f7a63cf1081ba58df3788/utils/reporter.lisp
lisp
(defpackage #:rove/utils/reporter (:use #:cl #:rove/core/stats #:rove/core/assertion #:rove/core/result #:rove/misc/stream #:rove/misc/color) (:export #:format-failure-tests)) (in-package #:rove/utils/reporter) (defun format-failure-tests (stream passed-tests failed-tests pe...
7303ff7c9f15931ff288acbf4578508924ddebf1238ed51d65fb5cf4e2829757
typelead/eta
tcfail068.hs
-- !! Make sure that state threads don't escape ! ! ( example from at York ) -- module ShouldFail where import GHC.Arr import Control.Monad.ST ( runST ) type IndTree s t = STArray s (Int,Int) t itgen :: Constructed a => (Int,Int) -> a -> IndTree s a itgen n x = runST ( newSTArray ((1,1),n) x) it...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/fail/tcfail068.hs
haskell
!! Make sure that state threads don't escape stuff from Auxiliary: copied here (partain) const :: a -> b -> a const k x = k id :: a -> a id x = x pair :: (Constructed a, Constructed b) => a -> b -> (a,b)
! ! ( example from at York ) module ShouldFail where import GHC.Arr import Control.Monad.ST ( runST ) type IndTree s t = STArray s (Int,Int) t itgen :: Constructed a => (Int,Int) -> a -> IndTree s a itgen n x = runST ( newSTArray ((1,1),n) x) itiap :: Constructed a => (Int,Int) -> (a->a) -> IndT...
fd598c4bc5c2cb46c150d6426d9963f11362a5567a57b9e8a87e0bd1a79d0546
Vincibean/real-world-haskell
ex05.hs
-- Write a function that computes the mean of a list, i.e. the sum of all elements in the list divided by its length. -- (You may need to use the fromIntegral function to convert the length of the list from an integer into a floating-point number.) mean [] = 0 mean xs = total / count where total = sum xs co...
null
https://raw.githubusercontent.com/Vincibean/real-world-haskell/705a1e75eca318fa71d1bb44c16c7c7e2912f8cc/ch03/ex05.hs
haskell
Write a function that computes the mean of a list, i.e. the sum of all elements in the list divided by its length. (You may need to use the fromIntegral function to convert the length of the list from an integer into a floating-point number.)
mean [] = 0 mean xs = total / count where total = sum xs count = fromIntegral (length xs)
406e8f855a6841910f06c4a2b3c313029ca44e8e2f8186ed9d3532c2686a3d3c
cskau/nlpwp
Tagging.hs
module NLPWP.Tagging ( Tag(..), Token(..), TrainingInstance(..), toTrainingInstance ) where type Token = String type Tag = String data TrainingInstance = TrainingInstance Token Tag deri...
null
https://raw.githubusercontent.com/cskau/nlpwp/3c10c4d4abfb6c222926160f8dce4f0b43a4f8ce/hs/NLPWP/Tagging.hs
haskell
module NLPWP.Tagging ( Tag(..), Token(..), TrainingInstance(..), toTrainingInstance ) where type Token = String type Tag = String data TrainingInstance = TrainingInstance Token Tag deri...
2c95270c9993ff8c5fd2ea8858221eaf39d1b023ac4aa52076c30b4236cd9914
carl-eastlund/dracula
keywords.rkt
#lang racket/base (require racket/stxparam (for-syntax racket/base "syntax-meta.rkt")) (provide fun sig con include import export include-book) (define-syntax-parameter fun (expand-keyword "not valid outside interface")) (define-syntax-parameter sig (expand-keyword "not valid outsi...
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/modular/keywords.rkt
racket
#lang racket/base (require racket/stxparam (for-syntax racket/base "syntax-meta.rkt")) (provide fun sig con include import export include-book) (define-syntax-parameter fun (expand-keyword "not valid outside interface")) (define-syntax-parameter sig (expand-keyword "not valid outsi...
22f921ea1c51ede232f9561aa271160f903fa9a3337c450ebe40f0bb7b0cf1b6
2600hz/kazoo
wg_util.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz %%% @doc This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_telemetry/src/wg_util.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- ------------------------------------------------------------------------------ @doc return cluster_id, anonymized if configured. @end ---------------...
( C ) 2012 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(wg_util). -export([activation_ts/0 ,cluster_id/0 ,days_remaining/0 ]). -include(...
f10a76a30aba92e42385c4ea81c98bc5a09bdcae6ca82a68ff29eaa2fe9488ef
couchbase/chronicle
chronicle_agent_sup.erl
@author Couchbase < > 2021 Couchbase , Inc. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/couchbase/chronicle/2d373c0a49c12964b056c8fe9a5d0e3e3a8cfe18/src/chronicle_agent_sup.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
@author Couchbase < > 2021 Couchbase , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(chronicle_agent_sup). -behavior(supervisor). -include("chronicle.hrl"). -export([start_link/0]). -export([init/1]). ...
271d0bcb422391b21d983cbd7ec650807d8e8d43388653abb7f24dc051b1ec15
awkward-squad/hasql-interpolate
OneColumn.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # module Hasql.Interpolate.Internal.OneColumn ( OneColumn (..), ) where import GHC.Generics (Generic) import qualified Hasql.Decoders as D import Hasql.Interpolate.Internal.Decoder newtype OneColumn a = OneColumn { getOneColumn :: a } deriving stock ...
null
https://raw.githubusercontent.com/awkward-squad/hasql-interpolate/8691d65dbbb8e61f7e58adb87a40a9fe6a61e8b1/lib/Hasql/Interpolate/Internal/OneColumn.hs
haskell
| Parse a single column row
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # module Hasql.Interpolate.Internal.OneColumn ( OneColumn (..), ) where import GHC.Generics (Generic) import qualified Hasql.Decoders as D import Hasql.Interpolate.Internal.Decoder newtype OneColumn a = OneColumn { getOneColumn :: a } deriving stock ...
7bfd7516a50d93d8e56544e4fcf37d7a44cdaaa189ff30c2a557da9e77441b9f
nikodemus/ec2
security-group.lisp
;;; Security group support. Copyright ( c ) 2010 Saffron Technology ( www.saffrontech.com ) ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;; restriction, includin...
null
https://raw.githubusercontent.com/nikodemus/ec2/5a48b57b7f2d65e51af57c08f8e4a61346eed81d/security-group.lisp
lisp
Security group support. 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, distribute, sublicense, and/or sell Software is furnished to do so, sub...
Copyright ( c ) 2010 Saffron Technology ( www.saffrontech.com ) files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANT...
5107300c2a2c6fc2416ab7fa3f0602905c88aaed201156da36f172be0d3a0070
cl-axon/shop2
pfile10.lisp
(in-package :shop2-user) (defproblem pfile10 DEPOT ( ;;; ;;; facts ;;; (DEPOT DEPOT0) (DEPOT DEPOT1) (DEPOT DEPOT2) (DISTRIBUTOR DISTRIBUTOR0) (DISTRIBUTOR DISTRIBUTOR1) (DISTRIBUTOR DISTRIBUTOR2) (TRUCK TRUCK0) (TRUCK TRUCK1) (TRUCK TRUCK2) (TRUCK TRUCK3) (PAL...
null
https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/depots/pfile10.lisp
lisp
facts initial states goals
(in-package :shop2-user) (defproblem pfile10 DEPOT ( (DEPOT DEPOT0) (DEPOT DEPOT1) (DEPOT DEPOT2) (DISTRIBUTOR DISTRIBUTOR0) (DISTRIBUTOR DISTRIBUTOR1) (DISTRIBUTOR DISTRIBUTOR2) (TRUCK TRUCK0) (TRUCK TRUCK1) (TRUCK TRUCK2) (TRUCK TRUCK3) (PALLET PALLET0) (PALLET PALLET...
1f67ebeb4b52a428653083b090263fc0cecdef18999fee0bc1196d31aff03226
sondresl/AdventOfCode
Day24.hs
module Day24 where import Lib (parseAsciiMap, Point, ordNub, findBounds, ordinalNeighbours) import Advent.Coord (down, up, right, left) import Linear (V2(..)) import Data.List.Extra (find) import Data.Map (Map) import qualified Data.Map as Map type Grove = Map Point Blizzard data Blizzard = Wall | Blizzard [Point] ...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/741ca8c7eca345ac8218135e3dbeb0af1633f691/2022/Haskell/src/Day24.hs
haskell
module Day24 where import Lib (parseAsciiMap, Point, ordNub, findBounds, ordinalNeighbours) import Advent.Coord (down, up, right, left) import Linear (V2(..)) import Data.List.Extra (find) import Data.Map (Map) import qualified Data.Map as Map type Grove = Map Point Blizzard data Blizzard = Wall | Blizzard [Point] ...
219a0bc3592d4ec41ab4baaefecfe2c5a9de60ef7048f0b4ab7243783c176af4
kappamodeler/kappa
cbng.ml
22/02/2007 Static analysis of BNG systems pour PlectiX (* Intermediar code *) cbng open Pb_sig open Data_structures open Tools open Config_complx open Cbng_sig open Error_handler let error i x (*t*) y = unsafe (Some x) (Some "Complx") (Some "cbng.ml") None (*(Some t)*) ...
null
https://raw.githubusercontent.com/kappamodeler/kappa/de63d1857898b1fc3b7f112f1027768b851ce14d/complx_rep/frontend/cbng.ml
ocaml
Intermediar code t (Some t) t (Some t) (H(i',ig'),true):: (H(i',ig'),true):: ::(H(i1',ig1),true)::(H(i2',ig2),true) (H(i',ig),true):: let prehash r ir = let sol = prehash r ir in let _ = print_prehash sol in sol we copy each specie data for each instance of this specie in the rule
22/02/2007 Static analysis of BNG systems pour PlectiX cbng open Pb_sig open Data_structures open Tools open Config_complx open Cbng_sig open Error_handler unsafe (Some x) (Some "Complx") (Some "cbng.ml") (Some (string_of_int i)) y unsafe_frozen (Some x) ...
2e1ec295f5261cab90c56f4ed79bd9c9d3745880ece9c4cb83dfe5a8e5fe924d
tonyg/kali-scheme
package-undef.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . ; The entry point for all this. (define (link! template package noise?) (if noise? (noting-undefined-variables package (lambda () (really-link! template package))) (rea...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/bcomp/package-undef.scm
scheme
The entry point for all this. GET-LOCATION returns a location to be stored away in a template. If the wanted meta-type, which is either `value-type' or `usual-variable-type' (for SET!), matches that in the binding, then we just return the binding's location after noting that we are doing so. If the type doesn't...
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . (define (link! template package noise?) (if noise? (noting-undefined-variables package (lambda () (really-link! template package))) (really-link! template package))) (...
71fc59a7e1ab148ef2bfadca9cee12bfc2e853a21a669456c0ba258ce819dd36
freizl/dive-into-haskell
NatureTransformation.hs
{-# LANGUAGE RankNTypes #-} module NatureTransformation where type Nat f g = forall a. f a -> g a maybeToList :: Nat Maybe [] maybeToList Nothing = [] maybeToList (Just a) = [a] This ` a+1 ` will not work , not allowed -- because compile know nothing about `a` -- degenerateMtl : : Maybe [ ] -- degenerateMtl N...
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/readings/haskell-book/16/NatureTransformation.hs
haskell
# LANGUAGE RankNTypes # because compile know nothing about `a` degenerateMtl Nothing = [] degenerateMtl (Just a) = [a + 1] This works as it adds more context for `a`.
module NatureTransformation where type Nat f g = forall a. f a -> g a maybeToList :: Nat Maybe [] maybeToList Nothing = [] maybeToList (Just a) = [a] This ` a+1 ` will not work , not allowed degenerateMtl : : Maybe [ ] type Nat2 f g a = f a -> g a degenerateMtl :: Num a => Nat2 Maybe [] a degenerateMtl Noth...
0b0c02ec7ca567112c0f1aecfa7fd6c31fd7e618c7c0dfb5489bb1c25f8b4b85
venantius/pyro
element_test.clj
(ns pyro.stacktrace.element-test (:require [clojure.test :refer :all] [pyro.stacktrace.element :as element])) (deftest is-read-eval-print-element?-works (is (some? (element/is-read-eval-print-element? "clojure.main$repl$read_eval_print__6625"))) (is (nil? (element/is-read-eval-print-ele...
null
https://raw.githubusercontent.com/venantius/pyro/8f71aa054f7d54d38be090c3a78b4843e4e6b0ca/test/pyro/stacktrace/element_test.clj
clojure
(ns pyro.stacktrace.element-test (:require [clojure.test :refer :all] [pyro.stacktrace.element :as element])) (deftest is-read-eval-print-element?-works (is (some? (element/is-read-eval-print-element? "clojure.main$repl$read_eval_print__6625"))) (is (nil? (element/is-read-eval-print-ele...
7805ada885ec9776b814e50aa1de4e619ec35fab2ff9a2b2eba2041b6978b2cc
fukamachi/psychiq
connection.lisp
(in-package :cl-user) (defpackage psychiq-test.connection (:use #:cl #:prove #:psychiq.connection)) (in-package :psychiq-test.connection) (plan 2) (subtest "connect, disconnect & reconnect" (let ((conn (connect :host "localhost" :port 6379))) (is-type conn 'connection "CONNECT ret...
null
https://raw.githubusercontent.com/fukamachi/psychiq/602fbb51d4c871de5909ec0c5a159652f4ae9ad3/t/core/connection.lisp
lisp
(in-package :cl-user) (defpackage psychiq-test.connection (:use #:cl #:prove #:psychiq.connection)) (in-package :psychiq-test.connection) (plan 2) (subtest "connect, disconnect & reconnect" (let ((conn (connect :host "localhost" :port 6379))) (is-type conn 'connection "CONNECT ret...
e1ebbfb7a128fa10840f25e1da1528ab78e5761189d6440c1dd9a6dca9c5cceb
mbattyani/cl-typesetting
hyphenation-fp.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- $ I d : , v 1.1.1.1 2003/04/30 09:16:04 fabrice.popineau Exp $ New implementation of TeX algorithms in Common Lisp by See file LICENSE.TXT for the license terms . ;;; email: ;;; snail: Fabrice Popineau ;;; 2 rue E. Belin ;;;...
null
https://raw.githubusercontent.com/mbattyani/cl-typesetting/86eba981fc4254addebecf765578ec350d6e3b75/hyphenation-fp.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- email: snail: Fabrice Popineau 2 rue E. Belin F-57070 Metz France www: /~popineau/ An hyphenation object is able to return the list of hyphenation points for any word according to the language it has been built for This will hold the lambda functi...
$ I d : , v 1.1.1.1 2003/04/30 09:16:04 fabrice.popineau Exp $ New implementation of TeX algorithms in Common Lisp by See file LICENSE.TXT for the license terms . (defpackage :cl-typesetting-hyphen (:use common-lisp) (:nicknames :cl-tt-hyph) (:export #:language-defined-p #:define-langua...
2c752ce54f17dc97bd23c5c0b0c04541d3b86493cbc4ce1e2e5e45281373cde9
Clojure2D/clojure2d-examples
hittable.clj
(ns rt4.in-one-weekend.ch10c.hittable (:require [fastmath.core :as m] [fastmath.vector :as v] [rt4.in-one-weekend.ch10c.interval :as interval])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol HittableProto (hit [object r ray...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch10c/hittable.clj
clojure
(ns rt4.in-one-weekend.ch10c.hittable (:require [fastmath.core :as m] [fastmath.vector :as v] [rt4.in-one-weekend.ch10c.interval :as interval])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol HittableProto (hit [object r ray...
115cf2b95d73eb7e548707386d1d2dad936c73703620f8f67d153f834cabaebd
coast-framework/coast
transact_test.clj
(ns coast.db.transact-test (:require [coast.db.transact :as transact] [coast.db.schema] [clojure.test :refer [deftest testing is]])) (deftest sql-vec (testing "upsert" (with-redefs [coast.db.schema/fetch (fn [] {:idents #{:member/id :member/name :member/email}})] (is (= ["insert i...
null
https://raw.githubusercontent.com/coast-framework/coast/f31c74c7a875207a717a407e52c6449a53da2c69/test/coast/db/transact_test.clj
clojure
(ns coast.db.transact-test (:require [coast.db.transact :as transact] [coast.db.schema] [clojure.test :refer [deftest testing is]])) (deftest sql-vec (testing "upsert" (with-redefs [coast.db.schema/fetch (fn [] {:idents #{:member/id :member/name :member/email}})] (is (= ["insert i...
db54851af5e001140851273ae7b32837fb07961292682942b51f6fe52f1284c2
scravy/simplex
Util.hs
{-# LANGUAGE Haskell2010 #-} module Simplex.Util ( when', ifElse, tail', tail'', skipOneSpace, (~=), (~~), (^=), units, removeIfExists, isLeft, isRight, getModificationTime', exec) where import Text.Regex import Data.Maybe import Control.Exception import Control.Monad import Data.Time import System.D...
null
https://raw.githubusercontent.com/scravy/simplex/520e17ab5838c45c73c6a3c1601d4c7a386044b4/src/Simplex/Util.hs
haskell
# LANGUAGE Haskell2010 # regex operators control flow convenience functions for list processing | like @tail@, but returns the empty list for the empty list. | same as `tail' . tail'` file handling process execution either utilities
module Simplex.Util ( when', ifElse, tail', tail'', skipOneSpace, (~=), (~~), (^=), units, removeIfExists, isLeft, isRight, getModificationTime', exec) where import Text.Regex import Data.Maybe import Control.Exception import Control.Monad import Data.Time import System.Directory import System.Exit i...
efda72bc3274a60c455c88ec21708325071ce525451cc89e122a1714b5c98b79
DougHamil/threeagent
context_test.cljs
(ns threeagent.virtual-scene.context-test (:require [cljs.test :refer-macros [deftest is testing]] [threeagent.virtual-scene.util :refer [find-node-by-id]] [threeagent.impl.virtual-scene :as vscene] [threeagent.core :as th])) (deftest context-test (let [root-fn (fn [] ...
null
https://raw.githubusercontent.com/DougHamil/threeagent/8f8b158bcbbf484b41d6f4a87436ce6f81ca7c04/src/test/threeagent/virtual_scene/context_test.cljs
clojure
(ns threeagent.virtual-scene.context-test (:require [cljs.test :refer-macros [deftest is testing]] [threeagent.virtual-scene.util :refer [find-node-by-id]] [threeagent.impl.virtual-scene :as vscene] [threeagent.core :as th])) (deftest context-test (let [root-fn (fn [] ...
1d1e053ae3dfab015ffc2dfc3c31ca644ba9164d2c865d7337f58e2304183a31
argp/bap
batCharParser.mli
* CharParser - Parsing character strings * Copyright ( C ) 2008 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at yo...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batCharParser.mli
ocaml
*Offset on the line (starting at 0) *Line number (starting at 0) * Create a source from a latin-1 character string. * Create a source from a latin-1 character. *Apply a parser to a string. *Accept any value not in a list As [ParserCo.none_of], just with improved error message. *Accept any value not a given char A...
* CharParser - Parsing character strings * Copyright ( C ) 2008 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at yo...
a8707a8f67c79718ce98f195e30459f6306c0f43412eb9e8365f0d72aa732f64
cloverage/cloverage
console.clj
(ns cloverage.report.console (:gen-class) (:require [clojure.string :as cs] [cloverage.report :refer [file-stats total-stats]])) (def ansi (let [esc \u001b reset "[0m" tbl {:red "[31m" :yellow "[33m" :green "[32m" :bright "[1m"}] (fn [code text] ...
null
https://raw.githubusercontent.com/cloverage/cloverage/dba7d72547748cf494f2bbc784b8a70ed8d9901f/cloverage/src/cloverage/report/console.clj
clojure
(ns cloverage.report.console (:gen-class) (:require [clojure.string :as cs] [cloverage.report :refer [file-stats total-stats]])) (def ansi (let [esc \u001b reset "[0m" tbl {:red "[31m" :yellow "[33m" :green "[32m" :bright "[1m"}] (fn [code text] ...
da74549bef7cb11da9909b12ca226f46869ccc731380defd920a4fd151b9cdba
tomsmalley/semantic-reflex
Button.hs
# LANGUAGE TemplateHaskell # module Reflex.Dom.SemanticUI.Button ( -- * Normal buttons button, button' , ButtonType (..) , ButtonConfig (..) , buttonConfig_color , buttonConfig_size , buttonConfig_emphasis , buttonConfig_positive , buttonConfig_social , buttonConfig_floated , buttonConfig_di...
null
https://raw.githubusercontent.com/tomsmalley/semantic-reflex/5a973390fae1facbc4351b75ea59210d6756b8e5/semantic-reflex/src/Reflex/Dom/SemanticUI/Button.hs
haskell
* Normal buttons * Labeled buttons * Conditionals * Animated button config * Groups of buttons | HTML tags that can be used for buttons | Change success to positive and error to negative, since button does not support success/error types
# LANGUAGE TemplateHaskell # module Reflex.Dom.SemanticUI.Button ( button, button' , ButtonType (..) , ButtonConfig (..) , buttonConfig_color , buttonConfig_size , buttonConfig_emphasis , buttonConfig_positive , buttonConfig_social , buttonConfig_floated , buttonConfig_disabled , buttonConfi...
a0b74c9e47d6cc90b9c2e0dc161d3ff41f0a2101b459bcea414c8708402efaf6
crategus/cl-cffi-gtk
rtest-gtk-progress-bar.lisp
(def-suite gtk-progress-bar :in gtk-suite) (in-suite gtk-progress-bar) ;;; --- Types and Values ------------------------------------------------------- ;;; GtkProgressBar (test gtk-progress-bar-class ;; Type check (is (g-type-is-object "GtkProgressBar")) ;; Check the registered name (is (eq 'gtk-progress...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-gtk-progress-bar.lisp
lisp
--- Types and Values ------------------------------------------------------- GtkProgressBar Type check Check the registered name Check the type initializer Check the parent Check the children Check the interfaces Check the class properties Check the style properties. Check the class definition --- Prope...
(def-suite gtk-progress-bar :in gtk-suite) (in-suite gtk-progress-bar) (test gtk-progress-bar-class (is (g-type-is-object "GtkProgressBar")) (is (eq 'gtk-progress-bar (registered-object-type-by-name "GtkProgressBar"))) (is (eq (gtype "GtkProgressBar") (gtype (foreign-funcall "gtk_progress_b...
820d42f110fe8328ad730418b352303c6ba0433c200e9b183fd87e8b5ea11a13
gojek/ziggurat
consumer_driver.clj
(ns ziggurat.kafka-consumer.consumer-driver (:require [mount.core :refer [defstate]] [ziggurat.kafka-consumer.consumer :as ct] [ziggurat.kafka-consumer.consumer-handler :as ch] [ziggurat.config :refer [ziggurat-config]] [clojure.tools.logging :as log] [ziggu...
null
https://raw.githubusercontent.com/gojek/ziggurat/7b95b3060a251b7c31815366a805e9822a332e0b/src/ziggurat/kafka_consumer/consumer_driver.clj
clojure
(ns ziggurat.kafka-consumer.consumer-driver (:require [mount.core :refer [defstate]] [ziggurat.kafka-consumer.consumer :as ct] [ziggurat.kafka-consumer.consumer-handler :as ch] [ziggurat.config :refer [ziggurat-config]] [clojure.tools.logging :as log] [ziggu...
8a0f4c4c105ca381d9b19934c65b0cbe3df1857f9a9d71c25aad19439523c917
erlyvideo/publisher
rtmpt.erl
@author < > [ ] 2010 @doc RTMPT interface . Used from web - server . RTMPT protocol is a tunneling protocol for RTMP . Technically it is implemented in following way : Flash client connects to HTTP server several times a second and sends POST /idle requests with session i d , given in ...
null
https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/rtmp/src/rtmpt.erl
erlang
If server needs to send data to client, it buffers these bytes somewhere, associated with session id. Usually you may not bother about POST /close request, because I have never seen it. @reference See <a href="" target="_top"></a> for more information. @end erlang-rtmp is free software: you can redistribute it...
@author < > [ ] 2010 @doc RTMPT interface . Used from web - server . RTMPT protocol is a tunneling protocol for RTMP . Technically it is implemented in following way : Flash client connects to HTTP server several times a second and sends POST /idle requests with session i d , given in ...
c4f9a467c5e74106dcf51bb0a629f7b76549eb5e876ffd3c98b6ae5687bd0964
brianium/clean-todos
core.cljs
(ns todos.delivery.web.core (:require [reagent.core :as reagent] [re-frame.core :as rf] [bidi.bidi :as b] [goog.events :as events] [todos.delivery.web.db] [todos.delivery.web.events] [todos.delivery.web.subs] [todos.delivery.web.views...
null
https://raw.githubusercontent.com/brianium/clean-todos/fca2320fe3bca052787c4ace479ce69d23d58a12/src/todos/delivery/web/core.cljs
clojure
(ns todos.delivery.web.core (:require [reagent.core :as reagent] [re-frame.core :as rf] [bidi.bidi :as b] [goog.events :as events] [todos.delivery.web.db] [todos.delivery.web.events] [todos.delivery.web.subs] [todos.delivery.web.views...
10e61b4ec8e09dddebe0811f7dce87008df0ee1d58c7f7e4d29d73681500d75f
thoughtpolice/claap
Test.hs
-- | -- Module : AAP.Sim.Test Copyright : ( c ) 2016 License : BSD3 - style ( see LICENSE.txt ) -- -- Maintainer : -- Stability : experimental Portability : non - portable ( GHC extensions ) -- -- Entry point for all the simulation tool tests. -- module AAP.Sim.Test ( runDisassemblerTests -- ...
null
https://raw.githubusercontent.com/thoughtpolice/claap/4944b6c4ad6aff4097f8ef66231ce7d7a59f5ee7/src/aap/AAP/Sim/Test.hs
haskell
| Module : AAP.Sim.Test Maintainer : Stability : experimental Entry point for all the simulation tool tests. :: IO () | Run all tests for the disassembler.
Copyright : ( c ) 2016 License : BSD3 - style ( see LICENSE.txt ) Portability : non - portable ( GHC extensions ) module AAP.Sim.Test ) where import Prelude import AAP.Sim.Test.Disassembler as Disassembler runDisassemblerTests :: IO () runDisassemblerTests = mapM_ Disassembler.checkFile [ "src/t/d...
2e4d87d5d9d77e4ad60266021c686498eef54560ff093621f4294fb3fa756c65
robert-strandh/SICL
lambda-list.lisp
(cl:in-package #:cleavir-code-utilities) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Lambda list utilities. ;;; There is much to say about lambda lists. ;;; There are 10 different types of lambda lists and they vary both ;;; with respect to syntax and semantics. It gets pretty me...
null
https://raw.githubusercontent.com/robert-strandh/SICL/5b486e59cc0836b7650a6ad8cc0c8c2ac35b40f9/Code/Cleavir/Code-utilities/lambda-list.lisp
lisp
Lambda list utilities. There is much to say about lambda lists. with respect to syntax and semantics. It gets pretty messy in fact. Lambda lists admit something known as "lambda list keywords". They are not keywords in the normal sense of the word (i.e., the COMMON-LISP package that happen to have names tha...
(cl:in-package #:cleavir-code-utilities) There are 10 different types of lambda lists and they vary both symbols in the : KEYWORD package ) , but just ordinary symbols in the ` & ' character ( ampersand ) . LAMBDA - LIST - KEYWORDS . However , there is no way to determine what & allow - other - keys , & a...
7973181e7e0182af7566bc5a574ff5388a5ccba2aa1189de7ea04551b5dac38f
jordwalke/rehp
ocaml_compiler.ml
Js_of_ocaml compiler * / * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your option ) any l...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/lib/ocaml_compiler.ml
ocaml
The next number The table of already numbered objects Extensions utilities used only for jsoo Used for computing a hash of all the identifiers in a debugevent, * to compute hashes, and detect the need for recompilation. We must * exclude parts of the idents that are proned to change without original * s...
Js_of_ocaml compiler * / * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your option ) any l...
5ffa2e10ac9f5ba61d5f7ead641c259991eee1d33c60587fe30e89baed9efd02
lagenorhynque/clj-rest-api-and-cljs-spa-example
todo.clj
(ns todo-api.handler.todo (:require [ataraxy.response :as response] [integrant.core :as ig] [todo-api.boundary.db.todo :as db.todo])) (defmethod ig/init-key ::list-todos [_ {:keys [db]}] (fn [_] [::response/ok (db.todo/find-todos db)])) (defmethod ig/init-key ::create-todo [_ {:keys [d...
null
https://raw.githubusercontent.com/lagenorhynque/clj-rest-api-and-cljs-spa-example/d3932f89490ecdc6cae14098e91b5f4bffa07ecb/todo-api/src/todo_api/handler/todo.clj
clojure
(ns todo-api.handler.todo (:require [ataraxy.response :as response] [integrant.core :as ig] [todo-api.boundary.db.todo :as db.todo])) (defmethod ig/init-key ::list-todos [_ {:keys [db]}] (fn [_] [::response/ok (db.todo/find-todos db)])) (defmethod ig/init-key ::create-todo [_ {:keys [d...
c78560621be53a5c6e8f6b7340c2e5d4a00d7a6c0edcff705365dc5af0aa60de
ghc/ghc
Deriv.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 -} # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} # LANGUAGE TypeFamilies # # OPTIONS_GHC -Wno - incomplete ...
null
https://raw.githubusercontent.com/ghc/ghc/aed1974e92366ab8e117734f308505684f70cddf/compiler/GHC/Tc/Deriv.hs
haskell
# LANGUAGE MultiWayIf # | Handles @deriving@ clauses on @data@ declarations. In this case ds_theta is the list of all the sets of The inference process is to reduce this to a by the programmer; it is ds_theta or at least the thinned or at least the thinned | Stuff needed to process a...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1998 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 -} # LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # # OPTIONS_GHC -Wno - incomplete - uni - patterns # module G...
5d5f78fd33241eafd44492bd42247243d2223fee707b066e3e37c8071ae60006
ghc/ghc
Ghc.hs
# LANGUAGE ScopedTypeVariables # module Settings.Builders.Ghc (ghcBuilderArgs, haddockGhcArgs) where import Hadrian.Haskell.Cabal import Hadrian.Haskell.Cabal.Type import Flavour import Packages import Settings.Builders.Common import Settings.Warnings import qualified Context as Context import Rules.Libffi (libffiNa...
null
https://raw.githubusercontent.com/ghc/ghc/7c813d0688f03c782d3c3a93a8369a48b7e74c8d/hadrian/src/Settings/Builders/Ghc.hs
haskell
TODO: this is here because this -I needs to come before the others. Otherwise this would go in Settings.Packages. genapply bakes in the next stage's headers to bake in the target config at build time. See Note [Genapply target as host for RTS macros]. N.B. Target.trackArgument ignores this argument from the inp...
# LANGUAGE ScopedTypeVariables # module Settings.Builders.Ghc (ghcBuilderArgs, haddockGhcArgs) where import Hadrian.Haskell.Cabal import Hadrian.Haskell.Cabal.Type import Flavour import Packages import Settings.Builders.Common import Settings.Warnings import qualified Context as Context import Rules.Libffi (libffiNa...
8a8c6e9bdd9a68ab057c460a23063c015ace00bde55c2d710e929b0eaef540b7
exercism/babashka
word_count_test.clj
(ns word-count-test (:require [clojure.test :refer [deftest is]] word-count)) (deftest count-one-word (is (= {"word" 1} (word-count/word-count "word")))) (deftest count-one-of-each (is (= {"one" 1 "of" 1 "each" 1} (word-count/word-count "one of each")))) (deftest count-multiple-oc...
null
https://raw.githubusercontent.com/exercism/babashka/7375f1938ff95b242320313eaeedb8eca31a1b5b/exercises/practice/word-count/test/word_count_test.clj
clojure
(ns word-count-test (:require [clojure.test :refer [deftest is]] word-count)) (deftest count-one-word (is (= {"word" 1} (word-count/word-count "word")))) (deftest count-one-of-each (is (= {"one" 1 "of" 1 "each" 1} (word-count/word-count "one of each")))) (deftest count-multiple-oc...
6beeb769ffa50d176271cff813c61568007619350b6c63597127280df6db2f65
minio/minio-hs
XmlGenerator.hs
-- MinIO Haskell SDK , ( C ) 2017 MinIO , Inc. -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, softw...
null
https://raw.githubusercontent.com/minio/minio-hs/d59f45fec4481313cfb5fafd635558ce385e7422/src/Network/Minio/XmlGenerator.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
MinIO Haskell SDK , ( C ) 2017 MinIO , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Network.Minio.XmlGenerator ( mkCreateBucketConfig, mkCompleteMultipartUploadRequest, mkPutNotificationRequest, ...
e480b72b3c5f692b5f183d3a4b803057d627436e437fe369583b0c1d1e597739
realworldocaml/book
import.ml
open! Core module Attr = Ansi_kernel.Attr let list_sum l ~f = List.sum (module Int) l ~f let list_max ~f lst = List.fold lst ~init:0 ~f:(fun a b -> max a (f b))
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/textutils/ascii_table/kernel/import.ml
ocaml
open! Core module Attr = Ansi_kernel.Attr let list_sum l ~f = List.sum (module Int) l ~f let list_max ~f lst = List.fold lst ~init:0 ~f:(fun a b -> max a (f b))
4145767dbba591b6b3e585cbaf093f1d2fafb13723ff69c6e07e8b687418bfac
logseq/logseq
util.cljs
(ns logseq.graph-parser.util "Util fns shared between graph-parser and rest of app. Util fns only rely on clojure standard libraries." (:require [cljs.reader :as reader] [clojure.edn :as edn] [clojure.string :as string] [clojure.walk :as walk] [logseq.graph-parser.l...
null
https://raw.githubusercontent.com/logseq/logseq/b78c689458953dbbcf8fd93f09523508aa9040a1/deps/graph-parser/src/logseq/graph_parser/util.cljs
clojure
(?i) for case-insensitive mode default -parser/src/logseq/graph_parser/extract.cljc#L32 Keep for backward compatibility ;; Rule of dir-ver 0 Source: -parser/src/logseq/graph_parser/extract.cljc#L35 logseq.graph-parser.util (parsing only) frontend.handler.conversion (both)
(ns logseq.graph-parser.util "Util fns shared between graph-parser and rest of app. Util fns only rely on clojure standard libraries." (:require [cljs.reader :as reader] [clojure.edn :as edn] [clojure.string :as string] [clojure.walk :as walk] [logseq.graph-parser.l...
699c7382d5a554c71c93f3cd83e807a8cb590e7224b23ea37e87aa86fb664831
khibino/haskell-relational-record
QueryExampleO.hs
{-# OPTIONS_GHC -fsimpl-tick-factor=200 #-} # LANGUAGE MonadComprehensions # # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , DataKinds , DeriveGeneric # # LANGUAGE OverloadedLabels # # LANGUAGE TemplateHaskell # module QueryExampleO where import GHC.Generics (Generic) import Data.Functor.Pro...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/examples/HDBC/PostgreSQL/example/1/QueryExampleO.hs
haskell
# OPTIONS_GHC -fsimpl-tick-factor=200 # Direct join style Nested monad Aggregation bad line Relation making placeholder Placeholder propagation - operator (!) forces Pi type, but function apply does not force PI type. Window funcions g ! Group.id' Composed Key Composed value
# LANGUAGE MonadComprehensions # # LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , DataKinds , DeriveGeneric # # LANGUAGE OverloadedLabels # # LANGUAGE TemplateHaskell # module QueryExampleO where import GHC.Generics (Generic) import Data.Functor.ProductIsomorphic import Database.Record impor...
5547c5e5b39498d6d0c4312e4bb1e0137c5cd3cec7ea0b663e7ed937ec860ba6
nedap/formatting-stack
sample_data.clj
(ns unit.formatting-stack.formatters.cljfmt.impl.sample-data (:refer-clojure :exclude [do])) (defmacro foo {:style/indent 0} []) (defmacro do {:style/indent 7} [])
null
https://raw.githubusercontent.com/nedap/formatting-stack/c43e74d5409e9338f208457bb8928ce437381a3f/test/unit/formatting_stack/formatters/cljfmt/impl/sample_data.clj
clojure
(ns unit.formatting-stack.formatters.cljfmt.impl.sample-data (:refer-clojure :exclude [do])) (defmacro foo {:style/indent 0} []) (defmacro do {:style/indent 7} [])
b4362f87862c124339f9957ea095e827e00aaafa7d6e0ed751614bee0a97ac1a
heraldry/heraldicon
font.cljs
(ns heraldicon.font (:require [heraldicon.options :as options])) (def default :prince-valiant) (def font-data [["Berthold Baskerville" :berthold-baskerville "/berthold-baskerville/BaskervilleBE-Regular.otf"] ["BlackChancery" :black-chancery "/black-chancery/BLKCHCRY.TTF"] ["Cardinal" :cardinal "/cardinal...
null
https://raw.githubusercontent.com/heraldry/heraldicon/7bf4dd4149e1f69c9e4f9a0b6b826f73f532a01d/src/heraldicon/font.cljs
clojure
(ns heraldicon.font (:require [heraldicon.options :as options])) (def default :prince-valiant) (def font-data [["Berthold Baskerville" :berthold-baskerville "/berthold-baskerville/BaskervilleBE-Regular.otf"] ["BlackChancery" :black-chancery "/black-chancery/BLKCHCRY.TTF"] ["Cardinal" :cardinal "/cardinal...
f7c6dabc84a25f383e5425f338476e93533b9c0a702c954c19db89820566abc0
weavejester/integrant
baz.clj
(ns integrant.test.baz) (def message "baz")
null
https://raw.githubusercontent.com/weavejester/integrant/b4f77b0fe9618c5d65bf2cafd27510e8e6ba7cdd/test/integrant/test/baz.clj
clojure
(ns integrant.test.baz) (def message "baz")
adc16d9adcfe57924ae2f60bf1e7b8ef67ef50742e961f0b99b747212455368f
nixeagle/nisp
links.lisp
(in-package :nisp.i) (define-simple-command link (handler-case (network-tree::next-node) (error (condition) (network-tree::next-node (apply #'format nil "nil ~A:~A" (multiple-value-list (network-tree::first-command-word (remaining-parameters)))))))) (defmethod handle-command ((tre...
null
https://raw.githubusercontent.com/nixeagle/nisp/680b40b3b9ea4c33db0455ac73cbe3756afdbb1e/irc-bot/commands/links.lisp
lisp
END
(in-package :nisp.i) (define-simple-command link (handler-case (network-tree::next-node) (error (condition) (network-tree::next-node (apply #'format nil "nil ~A:~A" (multiple-value-list (network-tree::first-command-word (remaining-parameters)))))))) (defmethod handle-command ((tre...
5158ce34338cacdec45e2a2846067ec42690a8066e7d65a3d5860873c1158b7d
areina/elfeed-cljsrn
local_storage.cljs
(ns elfeed-cljsrn.local-storage (:require [cljs.reader :as reader])) (def storage (.-AsyncStorage (js/require "react-native"))) (def storage-key "elfeed-cljs:db") (defn load ([on-success] (load on-success nil)) ([on-success on-error] (-> storage (.getItem storage-key) (.then (fn [data] ...
null
https://raw.githubusercontent.com/areina/elfeed-cljsrn/4dea27f785d24a16da05c0ab2ac0c6a6f23360f1/src/elfeed_cljsrn/local_storage.cljs
clojure
(ns elfeed-cljsrn.local-storage (:require [cljs.reader :as reader])) (def storage (.-AsyncStorage (js/require "react-native"))) (def storage-key "elfeed-cljs:db") (defn load ([on-success] (load on-success nil)) ([on-success on-error] (-> storage (.getItem storage-key) (.then (fn [data] ...
214eb888946152b6953b6c3eebb380da542b31f9f4c1778f10f32b62c5ae65c2
JoelSanchez/ventas
currency.clj
(ns ventas.entities.currency (:require [clojure.spec.alpha :as spec] [ventas.database.entity :as entity] [ventas.database.generators :as generators] [ventas.entities.i18n :as entities.i18n])) (spec/def :currency/name ::entities.i18n/ref) (spec/def :currency/plural-name ::entities.i18n/ref) (spec/def :cur...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/clj/ventas/entities/currency.clj
clojure
(ns ventas.entities.currency (:require [clojure.spec.alpha :as spec] [ventas.database.entity :as entity] [ventas.database.generators :as generators] [ventas.entities.i18n :as entities.i18n])) (spec/def :currency/name ::entities.i18n/ref) (spec/def :currency/plural-name ::entities.i18n/ref) (spec/def :cur...
96152f1ea7c3f6cd638830a9d7b8141ca5158c7ed405d73169f1bee92a64a246
janestreet/core
source_code_position0.mli
open! Import include module type of struct include Base.Source_code_position end type t = Base.Source_code_position.t = { pos_fname : string ; pos_lnum : int ; pos_bol : int ; pos_cnum : int } [@@deriving bin_io, compare, fields, hash, sexp] module Stable : sig module V1 : sig type nonrec t = t [@@...
null
https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/src/source_code_position0.mli
ocaml
open! Import include module type of struct include Base.Source_code_position end type t = Base.Source_code_position.t = { pos_fname : string ; pos_lnum : int ; pos_bol : int ; pos_cnum : int } [@@deriving bin_io, compare, fields, hash, sexp] module Stable : sig module V1 : sig type nonrec t = t [@@...
e918e0e1d26a64127e09d18bdd93e3e8e2d045459093debde526f19cb1d73bb8
chef/chef-server
bksw_io.erl
Copyright Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agr...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/bookshelf/src/bksw_io.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Use _%_ prefix since this can...
Copyright Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(bksw_io). -expor...
ed47b51baefcde4a99353e3082a9548995dad48277fb0b74b82ad4d867ea4de3
synduce/Synduce
nested_minmax_noe.ml
* @synduce --no - lifting -NB -n 50 type list = | Elt of int | Cons of int * list type nested_list = | Line of list | NCons of list * nested_list type cnlist = | Sglt of list | Cat of cnlist * cnlist let rec clist_to_list = function | Sglt a -> Line a | Cat (x, y) -> dec y x and dec l1 = function ...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/constraints/ensures/nested_minmax_noe.ml
ocaml
* @synduce --no - lifting -NB -n 50 type list = | Elt of int | Cons of int * list type nested_list = | Line of list | NCons of list * nested_list type cnlist = | Sglt of list | Cat of cnlist * cnlist let rec clist_to_list = function | Sglt a -> Line a | Cat (x, y) -> dec y x and dec l1 = function ...
4c4bbfe6c721fff22f9806fbdac1634febf9a2839b6d9077f9f01634b6644e3b
ChrisKuklewicz/SafeSemaphore
SSemInternals.hs
# LANGUAGE CPP , StandaloneDeriving , DeriveDataTypeable # ----------------------------------------------------------------------------- -- | -- Module : Control.Concurrent.STM.SSemInternals Copyright : ( c ) , 2012 -- License : BSD-style -- -- Maintainer : -- Stability : experimental -- Por...
null
https://raw.githubusercontent.com/ChrisKuklewicz/SafeSemaphore/c05e7aaea6dfcf1713a0c8eb3214cb832c9356f3/src/Control/Concurrent/STM/SSemInternals.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Concurrent.STM.SSemInternals License : BSD-style Maintainer : Stability : experimental Portability : non-portable (concurrency) Very simple quantity semaphore. Declared here so that private constru...
# LANGUAGE CPP , StandaloneDeriving , DeriveDataTypeable # Copyright : ( c ) , 2012 can be shared in both STM and IO APIs but hidden from user . module Control.Concurrent.STM.SSemInternals(SSem(SSem)) where import Control.Concurrent.STM.TVar(TVar) Typeable(typeOf),TyCon , mkTyCon , mkTyConApp ) #if __G...
3f02587f3dcf0ae7a18a0e18f571f08f538ba6c53ac67abbe130effc46b9ce86
finnishtransportagency/harja
tyomaakokous_raportti_test.clj
(ns harja.palvelin.raportointi.tyomaakokous-raportti-test (:require [clojure.test :refer :all] [harja.palvelin.komponentit.tietokanta :as tietokanta] [harja.palvelin.palvelut.urakat :refer :all] [harja.testi :refer :all] [taoensso.timbre :as log] [com.stuart...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/0a61960ff80c642326d794e82b2c064b052235ae/test/clj/harja/palvelin/raportointi/tyomaakokous_raportti_test.clj
clojure
(ns harja.palvelin.raportointi.tyomaakokous-raportti-test (:require [clojure.test :refer :all] [harja.palvelin.komponentit.tietokanta :as tietokanta] [harja.palvelin.palvelut.urakat :refer :all] [harja.testi :refer :all] [taoensso.timbre :as log] [com.stuart...
aabdaffef27cf75edfb41a88867039bc6c2cfc82f40d33b3b0234d54c0588b35
haskell-tls/hs-tls
Internal.hs
{-# OPTIONS_HADDOCK hide #-} -- | -- Module : Network.TLS.Internal -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unknown -- module Network.TLS.Internal ( module Network.TLS.Struct , module Network.TLS.Struct13 , module Network.TLS.Packet , module ...
null
https://raw.githubusercontent.com/haskell-tls/hs-tls/31e95f40b75b541c9817b6b56c363e74c2f3b57d/core/Network/TLS/Internal.hs
haskell
# OPTIONS_HADDOCK hide # | Module : Network.TLS.Internal License : BSD-style Stability : experimental Portability : unknown
Maintainer : < > module Network.TLS.Internal ( module Network.TLS.Struct , module Network.TLS.Struct13 , module Network.TLS.Packet , module Network.TLS.Packet13 , module Network.TLS.Receiving , module Network.TLS.Sending , module Network.TLS.Wire , sendPacket , recvPacket ...
d713ecf4c687551df22ad38752458f49c76ea0c5440798144f814a6e817eaba6
clojerl/clojerl
clojerl.Boolean.erl
-module('clojerl.Boolean'). -behavior('clojerl.IHash'). -behavior('clojerl.IStringable'). -export([hash/1]). -export([str/1]). -export_type([type/0]). -type type() :: boolean(). %%------------------------------------------------------------------------------ Protocols %%-------------------------------------------...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/clojerl.Boolean.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-module('clojerl.Boolean'). -behavior('clojerl.IHash'). -behavior('clojerl.IStringable'). -export([hash/1]). -export([str/1]). -export_type([type/0]). -type type() :: boolean(). Protocols hash(true) -> erlang:phash2(true); hash(false) -> erlang:phash2(false). str(true) -> <<"true">>; str(false) -> <<"false">>...
b3361a27f46c037525901359df898f4f568f55d819bfed25f9c859d3455eb323
fdopen/ppx_cstubs
c_compile.ml
module List = CCListLabels let uniq l = List.uniq ~eq:CCString.equal l let pkgs () = uniq ("ctypes" :: !Options.findlib_pkgs) let get_include_dirs_cross () = let args = uniq ("ctypes" :: !Options.findlib_pkgs) in let args = "query" :: "-recursive" :: args in let args = match !Options.toolchain with | N...
null
https://raw.githubusercontent.com/fdopen/ppx_cstubs/638b019ab5eb0d8a187710d00414a1d2536e249c/src/internal/c_compile.ml
ocaml
module List = CCListLabels let uniq l = List.uniq ~eq:CCString.equal l let pkgs () = uniq ("ctypes" :: !Options.findlib_pkgs) let get_include_dirs_cross () = let args = uniq ("ctypes" :: !Options.findlib_pkgs) in let args = "query" :: "-recursive" :: args in let args = match !Options.toolchain with | N...
8cba5e7e5f00a9fe528a8debea59a3262f08ce3df7463db323ac1f4985db1725
racket/plot
parameter-group.rkt
#lang racket/base (require (for-syntax racket/base racket/syntax syntax/parse racket/list) racket/list) (provide define-parameter-group parameterize/group parameterize*/group) (begin-for-syntax (struct parameter-group (ids) #:transparent #...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/common/parameter-group.rkt
racket
Corresponds to parameterize Corresponds to parameterize*
#lang racket/base (require (for-syntax racket/base racket/syntax syntax/parse racket/list) racket/list) (provide define-parameter-group parameterize/group parameterize*/group) (begin-for-syntax (struct parameter-group (ids) #:transparent #...
0e523b2314c0e1a4ae1ca5d1773e3b9fd1854f47805a543b4ab95e3fe71e9b14
uber/queryparser
Concrete.hs
Copyright ( c ) 2017 Uber Technologies , Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights -- to use, copy, modify, mer...
null
https://raw.githubusercontent.com/uber/queryparser/4a0bc08260651741a24ecee10c641c2d00ea127e/src/Database/Sql/Util/Eval/Concrete.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
3f1e785d224777f07000004753cd74d37671958b7b9eb5c1151522bd15cdcda6
quil/quil-examples
mouse_wheel.clj
(ns quil-sketches.mouse-wheel (:require [quil.core :refer :all] [quil.helpers.drawing :refer [line-join-points]] [quil.helpers.calc :refer [mul-add]])) (def radius 100) (defn setup [] (background 255) (set-state! :zoom (atom 1)) (stroke 0)) (defn draw [] (background 255) (translat...
null
https://raw.githubusercontent.com/quil/quil-examples/9ff9d5578d93682af29d9a080b917a19f8deafc8/src/quil_sketches/mouse_wheel.clj
clojure
(ns quil-sketches.mouse-wheel (:require [quil.core :refer :all] [quil.helpers.drawing :refer [line-join-points]] [quil.helpers.calc :refer [mul-add]])) (def radius 100) (defn setup [] (background 255) (set-state! :zoom (atom 1)) (stroke 0)) (defn draw [] (background 255) (translat...
5236b114b1d4eaa224530032a31731aaf3ee0b0758893ce2c6569922b504b183
cosmos72/hyperluminal-mem
swap-bytes.lisp
;; -*- lisp -*- ;; This file is part of Hyperluminal-mem. Copyright ( c ) 2013 - 2015 ;; ;; This library is free software: you can redistribute it and/or modify it under the terms of the Lisp Lesser General Public License ;; (), known as the LLGPL. ;; ;; This library is distributed in the hope that it will be us...
null
https://raw.githubusercontent.com/cosmos72/hyperluminal-mem/29c23361260e3a94fb1e09f3fdeab469b035504d/lang/swap-bytes.lisp
lisp
-*- lisp -*- This file is part of Hyperluminal-mem. This library is free software: you can redistribute it and/or (), known as the LLGPL. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PU...
Copyright ( c ) 2013 - 2015 modify it under the terms of the Lisp Lesser General Public License (in-package :hyperluminal-mem-lang) #+clisp (progn (declaim (inline swap-bytes/2)) (defun swap-bytes/2 (n) (declare (type (unsigned-byte 16) n)) (logior (ash (logand #x00FF n) 8) (ash ...
8677b0ef07c1058d762e41b8195451a6a18af411c72f6e5f657a6cbb760a1edd
expipiplus1/vulkan
ImageAspectFlagBits.hs
{-# language CPP #-} -- No documentation found for Chapter "ImageAspectFlagBits" module Vulkan.Core10.Enums.ImageAspectFlagBits ( ImageAspectFlags , ImageAspectFlagBits( IMAGE_ASPECT_COLOR_BIT , IMAGE_A...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core10/Enums/ImageAspectFlagBits.hs
haskell
# language CPP # No documentation found for Chapter "ImageAspectFlagBits" | VkImageAspectFlagBits - Bitmask specifying which aspects of an image are included in a view = See Also <-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>, 'ImageAspectFlags', | 'IMAGE_ASPECT_COLOR_BIT' specifies the color asp...
module Vulkan.Core10.Enums.ImageAspectFlagBits ( ImageAspectFlags , ImageAspectFlagBits( IMAGE_ASPECT_COLOR_BIT , IMAGE_ASPECT_DEPTH_BIT ...
027ed3ef2b47881a2bf5cf6ea7a0aa263a267bc3a55926f077b1aab8545fdac0
emc2/clash-riscv
Instr16.hs
Copyright ( c ) 2017 . All rights reserved . -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: 1 . Redistributions of source code must retain the above copyright -- notice, this list of conditions and the...
null
https://raw.githubusercontent.com/emc2/clash-riscv/e7404e5f9ff6b1eb22274bf7daa34bbd2768f2a3/src/RISCV/ISA/Formats/Instr16.hs
haskell
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation and/or other mate...
Copyright ( c ) 2017 . All rights reserved . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of the author nor the names of any contributors THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTO...
60c2f8e7e07a1f1c27fcd3421c24253db13dc6634936a5a3b7197ee091551b35
bintracker/bintracker
md-helpers.scm
;; This file is part of the libmdal library. Copyright ( c ) utz / irrlicht project 2018 - 2020 ;; See LICENSE for license details. ;;; Auxiliary functions used by other libmdal modules (module md-helpers * (import scheme (chicken base) (chicken condition) (chicken string) (only (chicken bitwise) bitwise-and ...
null
https://raw.githubusercontent.com/bintracker/bintracker/7408be140ccdde316e65eae873e976ce9b1f8571/libmdal/md-helpers.scm
scheme
This file is part of the libmdal library. See LICENSE for license details. Auxiliary functions used by other libmdal modules --------------------------------------------------------------------------- --------------------------------------------------------------------------- Standard matrix transposition. not g...
Copyright ( c ) utz / irrlicht project 2018 - 2020 (module md-helpers * (import scheme (chicken base) (chicken condition) (chicken string) (only (chicken bitwise) bitwise-and arithmetic-shift) srfi-1 srfi-13 srfi-69 typed-records) MDAL : UTILITIES (define (transpose matrix) (apply map list mat...
b1dd52347523e297128fec5b852c4e8107cab30ec516c0eeb55e79ac4965cd2a
BekaValentine/SimpleFP
Parens.hs
{-# OPTIONS -Wall #-} # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Parens where class ParenLoc a where type Loc a parenLoc :: a -> [Loc a] class ParenRec a where parenRec :: a -> String parenthesize :: (ParenLoc a, Eq (Loc a), ParenRec a) => Maybe (Loc a) -...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP/3cff456be9f0b99509e5cbe809be1055009b32df/src/Parens.hs
haskell
# OPTIONS -Wall #
# LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Parens where class ParenLoc a where type Loc a parenLoc :: a -> [Loc a] class ParenRec a where parenRec :: a -> String parenthesize :: (ParenLoc a, Eq (Loc a), ParenRec a) => Maybe (Loc a) -> a -> String parenthe...
5711af406d360f71c95001b53dfc58725236e4151093ac6e758c5e650ce2c928
larcenists/larceny
locals6.scm
(macro my-while (lambda (test . body) `(locals (loop) (label loop (with-win (jmp short loop) (seq ,test (begin ,@body))))))) (text (label loop (nop) (my-while (< eax 10) (pop ebx) (add eax ebx))) (my-while (> ecx 1000) (pop ebx) (sub ecx ebx)) (jmp s...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims/locals6.scm
scheme
loop: 00000006 5B pop ebx 00000013 5B pop ebx
(macro my-while (lambda (test . body) `(locals (loop) (label loop (with-win (jmp short loop) (seq ,test (begin ,@body))))))) (text (label loop (nop) (my-while (< eax 10) (pop ebx) (add eax ebx))) (my-while (> ecx 1000) (pop ebx) (sub ecx ebx)) (jmp s...
5f3a55bf9d9f7d4f7a9d5d212c1ab2452e436cd2a723d47198a47a6dea52d0aa
tfausak/monadoc-5
GhcSpec.hs
module Monadoc.Utility.GhcSpec where import qualified Data.Either as Either import qualified GHC.LanguageExtensions.Type as Ext import Monadoc.Prelude import qualified Monadoc.Utility.Ghc as Ghc import Test.Hspec spec :: Spec spec = describe "Monadoc.Utility.Ghc" <| do describe "parse" <| do it "parses an emp...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/Monadoc/Utility/GhcSpec.hs
haskell
module Monadoc.Utility.GhcSpec where import qualified Data.Either as Either import qualified GHC.LanguageExtensions.Type as Ext import Monadoc.Prelude import qualified Monadoc.Utility.Ghc as Ghc import Test.Hspec spec :: Spec spec = describe "Monadoc.Utility.Ghc" <| do describe "parse" <| do it "parses an emp...
6a3a9ee108e7bc0f98f38c54a0dc816cea60a33bb377a21f2b0108d21f960b50
sharplispers/ironclad
mac.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; macs.lisp -- common functions for message authentication codes (in-package :crypto) (defclass mac () ()) (defun macp (sym) (get sym '%make-mac)) (defun list-all-macs () (loop for symbol being each external-symbol of (find-package :ironclad) if (macp s...
null
https://raw.githubusercontent.com/sharplispers/ironclad/6cc4da8554558ee2e89ea38802bbf6d83100d4ea/src/macs/mac.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- macs.lisp -- common functions for message authentication codes
(in-package :crypto) (defclass mac () ()) (defun macp (sym) (get sym '%make-mac)) (defun list-all-macs () (loop for symbol being each external-symbol of (find-package :ironclad) if (macp symbol) collect (intern (symbol-name symbol) :keyword) into macs finally (return (sort macs #'stri...
b598ba57b6eec8d199e50415334d46cdaa824e63964f716405a504917b12669d
scrintal/heroicons-reagent
presentation_chart_bar.cljs
(ns com.scrintal.heroicons.mini.presentation-chart-bar) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M1 2.75A.75.75 0 011.75 2h16.5a.75.75 0 010 1.5H18v8.75A2.75 2.75 0 ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/presentation_chart_bar.cljs
clojure
(ns com.scrintal.heroicons.mini.presentation-chart-bar) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M1 2.75A.75.75 0 011.75 2h16.5a.75.75 0 010 1.5H18v8.75A2.75 2.75 0 ...
aaae131bd74dff1dcbff76d88e6d23c8b229718cd0d0d868979028ebb8cc8b74
rizo/snowflake-os
camlinternalMod.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cri...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/libraries/stdlib/camlinternalMod.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2004 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : camlinternalMod.mli , v 1.1 2...
83b822b767a71f857474df7091ce07a518c39e35c6372a3d3aea1fdc8f65083a
re-ops/re-cog
openssl.clj
(ns re-cog.resources.openssl "Openssl cert generation utilities" (:require [re-cog.common.functions :refer (require-functions)] [re-cog.common.constants :refer (require-constants)] [re-cog.common.resources :refer (run!-)] [re-cog.common.defs :refer (def-serial)])) (require-functions) (require-constants...
null
https://raw.githubusercontent.com/re-ops/re-cog/d755a61ee745835d34a6252f4535771c84b9114a/src/re_cog/resources/openssl.clj
clojure
(ns re-cog.resources.openssl "Openssl cert generation utilities" (:require [re-cog.common.functions :refer (require-functions)] [re-cog.common.constants :refer (require-constants)] [re-cog.common.resources :refer (run!-)] [re-cog.common.defs :refer (def-serial)])) (require-functions) (require-constants...
aba40a17e6621c099e9636ced9eb1481318819c572c507fe15a7c7951cbcad7e
jaseemabid/mit-scheme
takl.scm
(declare (usual-integrations)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; File: takl.sch Description : TAKL benchmark from the tests Author : ; Created: 12-Apr-85 Modified : 12 - Apr-85 10:07:00 ( ) 22 - Jul-87 ( ) ; Language...
null
https://raw.githubusercontent.com/jaseemabid/mit-scheme/d30da6b2c103e34b6e0805bd5cbefeb9501382c1/v8/src/bench/takl.scm
scheme
File: takl.sch Created: 12-Apr-85 Language: Scheme Status: Public Domain
(declare (usual-integrations)) Description : TAKL benchmark from the tests Author : Modified : 12 - Apr-85 10:07:00 ( ) 22 - Jul-87 ( ) TAKL -- The TAKeuchi function using lists as counters . (define (listn n) (if (not (= 0 n)) (cons n (listn (- n 1))) '()...
643f7042e7c10780fea84ceec457c1dc124092a67ef07e19ab8ff3d3c88dcd3f
yueyoum/make-proxy
parse_http.erl
%%%------------------------------------------------------------------- @author ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 14 . Oct 2016 上午11:51 %%%------------------------------------------------------------------- -module(parse_http). -author("wang"). -include_lib("eunit/include/eunit.hrl"). -i...
null
https://raw.githubusercontent.com/yueyoum/make-proxy/7f52591b9066cec57a1a8e701f6b3e9ed4f8f0ea/test/parse_http.erl
erlang
------------------------------------------------------------------- @doc @end -------------------------------------------------------------------
@author ( C ) 2016 , < COMPANY > Created : 14 . Oct 2016 上午11:51 -module(parse_http). -author("wang"). -include_lib("eunit/include/eunit.hrl"). -include("mp_http_request.hrl"). parse_1_test() -> Data = <<"GET HTTP/1.1\r\n\r\n">>, {_, Req} = mp_client_http:parse_http_request(Data), ?assertEqual(R...
4a3c9fdef31dc544a021fa6bea4d953ceae09d7dac315d460b75e886eacfb8f2
tnelson/Forge
disj-all-core.rkt
#lang forge/core (set-option! 'verbose 0) ( set - option ! ' verbose 10 ) (sig Node) (relation edges (Node Node)) (pred oneVarall (all ([n0 Node]) (in n0 (join Node edges)))) (pred oneVarallDisj (all #:disj ([n0 Node]) (in n0 (join Node edges)))) (test oneall #:preds [(iff oneVarall oneVarallDisj)] #:expect theorem...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/tests/forge-core/formulas/disj-all-core.rkt
racket
#lang forge/core (set-option! 'verbose 0) ( set - option ! ' verbose 10 ) (sig Node) (relation edges (Node Node)) (pred oneVarall (all ([n0 Node]) (in n0 (join Node edges)))) (pred oneVarallDisj (all #:disj ([n0 Node]) (in n0 (join Node edges)))) (test oneall #:preds [(iff oneVarall oneVarallDisj)] #:expect theorem...
c572e193b60d096e3d12540299128663a939ba200fbda4d4d8179eb65154166e
reflectionalist/S9fES
bitwise-ops.scm
Scheme 9 from Empty Space , Function Library By , 2009,2012 ; Placed in the Public Domain ; ( bitwise - clear ... ) = = > integer ( bitwise - and ... ) = = > integer ( bitwise - and - c2 ... ) = = > integer ( bitwise-1 ... ) = = > integer ; (bitwise-a...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/bitwise-ops.scm
scheme
Placed in the Public Domain (bitwise-and-c1 integer1 integer2 ...) ==> integer (bitwise-not-xor integer1 integer2 ...) ==> integer (bitwise-c2 integer1 integer2 ...) ==> integer (bitwise-or-c2 integer1 integer2 ...) ==> integer (bitwise-or-c1 integer1 integer2 ...) ==> int...
Scheme 9 from Empty Space , Function Library By , 2009,2012 ( bitwise - clear ... ) = = > integer ( bitwise - and ... ) = = > integer ( bitwise - and - c2 ... ) = = > integer ( bitwise-1 ... ) = = > integer ( bitwise-2 ... ) = = > in...
5bce8fd6d3548acbbf9e720abced2e7322599cd6fd5db9dc0efe0e8e2f7bdb47
goncalotomas/FMKe
fmke_json.erl
%% This module acts as a library for encoding FMKe entities into JSON objects, used in the HTTP API. -module(fmke_json). -include("fmke.hrl"). -include("fmke_kv.hrl"). -export([encode/1, decode/2]). -spec encode(Object :: app_record()) -> jsx:json_term(). encode(Object = #pharmacy{}) -> PharmacyId = Object#pharm...
null
https://raw.githubusercontent.com/goncalotomas/FMKe/654d3211ef57d841540e58033a397ce0f3dee0f7/src/fmke_json.erl
erlang
This module acts as a library for encoding FMKe entities into JSON objects, used in the HTTP API.
-module(fmke_json). -include("fmke.hrl"). -include("fmke_kv.hrl"). -export([encode/1, decode/2]). -spec encode(Object :: app_record()) -> jsx:json_term(). encode(Object = #pharmacy{}) -> PharmacyId = Object#pharmacy.id, PharmacyName = Object#pharmacy.name, PharmacyAddress = Object#pharmacy.address, P...
7a9a2d6df3a6daf6adc1ed306b135140170b11ca098f100a1a3c60507cc6962b
travelping/ergw
ergw_app.erl
Copyright 2021 , Travelping GmbH < > %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(ergw_app). -com...
null
https://raw.githubusercontent.com/travelping/ergw/1b6cc3ee89eea4cf9df1d7de612744f0a850dfd9/apps/ergw/src/ergw_app.erl
erlang
This program is free software; you can redistribute it and/or Application callbacks =================================================================== Application callbacks =================================================================== =================================================================== =======...
Copyright 2021 , Travelping GmbH < > modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module(ergw_app). -compile({parse_transform, cut}). -compile({parse_transform, do}). -...
cbba0806e7ad731fe9e5d8d7868f3bede3e2504be7a01ddf3451bf60f0a8d2e3
stoeffel/tasty-test-reporter
Color.hs
module Test.Console.Color ( red, magenta, black, blue, yellow, green, grey, underlined, Colored (Colors, NoColors), Style, Styled (..), unlines, style, styled, unstyled, ) where import Data.Function (on) import Data.Sequence (Seq) import qualified Data.Sequen...
null
https://raw.githubusercontent.com/stoeffel/tasty-test-reporter/d38dc1fcbe1d63a3634f50e57648aeefe9b960ea/src/Test/Console/Color.hs
haskell
module Test.Console.Color ( red, magenta, black, blue, yellow, green, grey, underlined, Colored (Colors, NoColors), Style, Styled (..), unlines, style, styled, unstyled, ) where import Data.Function (on) import Data.Sequence (Seq) import qualified Data.Sequen...
3e5700a4fee6f70f1df04f95a758b6b7ea042572c0cc0fd6f2c0fdfa15e513cd
backtracking/mlpost
mPprint.ml
(**************************************************************************) (* *) Copyright ( C ) Johannes Kanig , , and (* *) (* This software is f...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/src/mPprint.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) Johannes Kanig , , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking open Format open Misc open Concrete_types open Types module C = Compiled_types module M = Matrix let e...
f13fbf62b34f3c92efc635ee385c636437cbf03d48ecc4509b37db657a1de5e6
ocaml-flambda/flambda-backend
compenv.ml
(**************************************************************************) (* *) (* OCaml *) (* *) Fabr...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/b56f75153bf58046bfa1eebd9d76e41026bfc3e0/ocaml/driver/compenv.ml
ocaml
************************************************************************ OCaml ...
Fabrice Le Fessant , EPI Gallium , INRIA Paris - Rocquencourt Copyright 2013 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Clflags exception Exit_with_status of int let output_prefix name = let oname = ...
7f9fa703b1086e9c7f11c57fd91e710510834c814948dacc79409e3422ad368d
bitblaze-fuzzball/fuzzball
granular_memory.mli
Copyright ( C ) BitBlaze , 2009 - 2010 . All rights reserved . Copyright (C) BitBlaze, 2009-2010. All rights reserved. *) module GranularMemoryFunctor : functor (D : Exec_domain.DOMAIN) -> sig val split64 : D.t -> (D.t * D.t) val split32 : D.t -> (D.t * D.t) val split16 : D.t -> (D.t * D.t) val endi...
null
https://raw.githubusercontent.com/bitblaze-fuzzball/fuzzball/b9a617b45e68fa732f1357fedc08a2a10f87a62c/execution/granular_memory.mli
ocaml
Copyright ( C ) BitBlaze , 2009 - 2010 . All rights reserved . Copyright (C) BitBlaze, 2009-2010. All rights reserved. *) module GranularMemoryFunctor : functor (D : Exec_domain.DOMAIN) -> sig val split64 : D.t -> (D.t * D.t) val split32 : D.t -> (D.t * D.t) val split16 : D.t -> (D.t * D.t) val endi...
dba2bb13049c4fa8f0558986f2aece927d3cee14d260f6d85d02c18ab3654179
IBM/wcs-ocaml
context.ml
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
null
https://raw.githubusercontent.com/IBM/wcs-ocaml/b237b7057f44caa09d36e466be015e2bc3173dd5/wcs-lib/context.ml
ocaml
* Context utilities.
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
8804cbfd05cfac79beea03396dcb7f8150302ec8f47345f4f7859a3fb34d3ae8
ksaaskil/functional-programming-examples
Lib.hs
module Lib ( someFunc ) where someFunc :: IO () someFunc = putStrLn "Hello from Haskell!" a = 5 + 4
null
https://raw.githubusercontent.com/ksaaskil/functional-programming-examples/cbeb90f200d42e4a464dfb02fa5d7424bc12dd00/learn-you-a-haskell/src/Lib.hs
haskell
module Lib ( someFunc ) where someFunc :: IO () someFunc = putStrLn "Hello from Haskell!" a = 5 + 4
f8e31bda3a67dacbc163453340ba061ff752d0ee9e3882a905b259c3729ad3f7
jkoppel/ecta
Pretty.hs
# LANGUAGE UndecidableInstances # module Data.Text.Extended.Pretty ( Pretty(..) ) where import Data.Text ( Text ) import qualified Data.Text as Text ---------------------------------------------------------------------- class Pretty a where pretty :: a -> Text instance {-# OVERLAPPABLE #-} (Show ...
null
https://raw.githubusercontent.com/jkoppel/ecta/865cf95fea1c875c2732991db6415d963c5d6189/src/Data/Text/Extended/Pretty.hs
haskell
-------------------------------------------------------------------- # OVERLAPPABLE #
# LANGUAGE UndecidableInstances # module Data.Text.Extended.Pretty ( Pretty(..) ) where import Data.Text ( Text ) import qualified Data.Text as Text class Pretty a where pretty :: a -> Text pretty = Text.pack . show
f6c8921fa7eede859e097b85e1573c7219bbb5978693368f658d4862d6119abc
amnh/poy5
tabus.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/tabus.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
49ecd41512b936fc972ef1abec73e36b42f38905fa9fe574089a51ef10eca723
pfdietz/ansi-test
declaim.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 21 07:44:07 2005 ;;;; Contains: Tests of DECLAIM (deftest declaim.1 (progn (declaim) nil) nil) (deftest declaim.2 (progn (eval `(declaim (optimize))) nil) nil) (deftest declaim.3 (progn (eval `(declaim (inline))) nil) nil) (deftest declaim....
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/eval-and-compile/declaim.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of DECLAIM
Author : Created : Sat May 21 07:44:07 2005 (deftest declaim.1 (progn (declaim) nil) nil) (deftest declaim.2 (progn (eval `(declaim (optimize))) nil) nil) (deftest declaim.3 (progn (eval `(declaim (inline))) nil) nil) (deftest declaim.4 (progn (eval `(declaim (notinline))) nil) nil) (d...
120335bb0cd9da12c8ae84628500490a76f286364409b3dfbe03429ae7e7ab45
haskell/haskell-ide-engine
HooglePluginSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module HooglePluginSpec where import Control.Monad import Control.Monad.IO.Class import Data.Maybe import Haskell.Ide.Engine.MonadTypes import Haskell.Ide.Engine.Support.Hoogle import Hoogl...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/test/unit/HooglePluginSpec.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- -- --------------------------------- ---------------------------------
# LANGUAGE ScopedTypeVariables # module HooglePluginSpec where import Control.Monad import Control.Monad.IO.Class import Data.Maybe import Haskell.Ide.Engine.MonadTypes import Haskell.Ide.Engine.Support.Hoogle import Hoogle import System.Directory i...
1e6037a9733eabe93bd517f3232a2004c868bd942054e5e9adce0416930e8c80
OCamlPro/ocaml-solidity
solidity_type_conv.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro & Origin Labs (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/ocaml-solidity/b628fd0200f648eb8bca73fe81efd9cec820e26f/src/solidity-typechecker/solidity_type_conv.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro & Origin Labs Public License version 2.1 , with the special exception on linking open Solidity_common open Solidity_checker_TYPES open Solidity_exceptions let error = type_error let is_storage = function | LMemory -> false | LStorage (_b) -...
9cfe381032852069e7ceb6a66c90735956d732fcc4eaa3f05de1ad1b49675083
pepeiborra/narradar
Lattice.hs
# LANGUAGE FlexibleInstances , UndecidableInstances , OverlappingInstances # module Lattice where import Control.Monad (liftM2) import Data.Maybe import Data.List import Control.Exception (assert) infixl 4 === infixr 5 \/ infixr 5 /\ class Eq a => Lattice a where bottom, top :: a meet,join :: a -> a -> a lt ...
null
https://raw.githubusercontent.com/pepeiborra/narradar/bc53dcad9aee480ab3424a75239bac67e4794456/src/Lattice.hs
haskell
* These are approximate (incorrect) versions of meet/join which only work with linear orderings meet :: Lattice a => a -> a -> a meet x y | x == bottom = x | y == bottom = y | otherwise = case comp x `lt` y = Just (all (`elem` y) x) glb [x] = x ------------------------- properties of Lattices -----------...
# LANGUAGE FlexibleInstances , UndecidableInstances , OverlappingInstances # module Lattice where import Control.Monad (liftM2) import Data.Maybe import Data.List import Control.Exception (assert) infixl 4 === infixr 5 \/ infixr 5 /\ class Eq a => Lattice a where bottom, top :: a meet,join :: a -> a -> a lt ...
bfec8e29436d9dda7390d0c9e6ef219129624a5db4eaf0ea255569d0e6d339bc
cyverse-archive/DiscoveryEnvironmentBackend
c187_2014042901.clj
(ns facepalm.c187-2014042901 (:use [korma.core]) (:import [java.util UUID])) (def ^:private version "The destination database version." "1.8.7:20140429.01") (defn- add-sha1-column [] (println "\t* adding the sha1 column to the tree_urls table") (exec-raw "ALTER TABLE tree_urls ADD COLUMN sha1 VARCHAR...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/databases/de-database-schema/src/main/conversions/v1.8.7/c187_2014042901.clj
clojure
(ns facepalm.c187-2014042901 (:use [korma.core]) (:import [java.util UUID])) (def ^:private version "The destination database version." "1.8.7:20140429.01") (defn- add-sha1-column [] (println "\t* adding the sha1 column to the tree_urls table") (exec-raw "ALTER TABLE tree_urls ADD COLUMN sha1 VARCHAR...
4d76c9c1ebf3c878959741077bbdf3ab44de4539023e6c6f4687dd0b08f61a48
wtfleming/clojurescript-examples
core.cljs
(ns ajax-closure.core (:require [goog.events :as events] [goog.events.EventType :as EventType] [goog.dom :as dom]) (:import goog.Uri goog.net.Jsonp)) (def search-url "=") (def home-html (str "<h1>Search Wikipedia:</h1>" "<section>" " <input id=\"query\" placehol...
null
https://raw.githubusercontent.com/wtfleming/clojurescript-examples/6f878f431a2cba405b6ae715199f776a19dda6f7/ajax-closure/src/cljs/ajax_closure/core.cljs
clojure
(ns ajax-closure.core (:require [goog.events :as events] [goog.events.EventType :as EventType] [goog.dom :as dom]) (:import goog.Uri goog.net.Jsonp)) (def search-url "=") (def home-html (str "<h1>Search Wikipedia:</h1>" "<section>" " <input id=\"query\" placehol...
8a431fefb89097458e49877d6c6469a1f5e2ccb8b9ef735823cc3d4b0407cc2b
jordanthayer/ocaml-search
anytime_speedy.ml
* @author jtd7 @since 2010 - 05 - 20 Continued speedy search @author jtd7 @since 2010-05-20 Continued speedy search *) open Anytime_greedy let make_iface sface = let def_log = Limit.make_default_logger (fun n -> n.f) (wrap sface.Search_interface.get_sol_length) in Search_i...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/anytime/anytime_speedy.ml
ocaml
must have g=0 as base for others, and f<others to prevent re-opening
* @author jtd7 @since 2010 - 05 - 20 Continued speedy search @author jtd7 @since 2010-05-20 Continued speedy search *) open Anytime_greedy let make_iface sface = let def_log = Limit.make_default_logger (fun n -> n.f) (wrap sface.Search_interface.get_sol_length) in Search_i...
af382958ad0839aecfae3d65f757cbd32c773d1ba16b2e011fdda91d006e92f1
ghc/testsuite
TH_where.hs
# LANGUAGE TemplateHaskell # module Main where import Language.Haskell.TH main = do {d <- runQ $ [| let { foo = bar where bar = 3 } in foo |]; print d}
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/th/TH_where.hs
haskell
# LANGUAGE TemplateHaskell # module Main where import Language.Haskell.TH main = do {d <- runQ $ [| let { foo = bar where bar = 3 } in foo |]; print d}
db1b93274b21c3a3a6754b40130c53b062657049ca2597b563af3153071729d4
pgj/mirage-kfreebsd
exception.ml
let main () = Lwt.fail Not_found
null
https://raw.githubusercontent.com/pgj/mirage-kfreebsd/0ff5b2cd7ab0975e3f2ee1bd89f8e5dbf028b102/packages/mirage-test/regress/basic/exception.ml
ocaml
let main () = Lwt.fail Not_found
24c2c86eb4ac44fe607f4f00185b34d4640d419ef4ad67be762b5ecc545ddf0a
adamwalker/clash-utils
ScramblerSpec.hs
module ScramblerSpec where import qualified Clash.Prelude as Clash import Clash.Prelude (Signal, Vec(..), BitVector, Index, Signed, Unsigned, SFixed, Bit, SNat(..), simulate, simulate_lazy, listToVecTH, KnownNat, pack, unpack, (++#), mealy, mux, bundle, unbundle, HiddenCloc...
null
https://raw.githubusercontent.com/adamwalker/clash-utils/afd304588d68666c13c7f889505fb590536dd296/tests/ScramblerSpec.hs
haskell
module ScramblerSpec where import qualified Clash.Prelude as Clash import Clash.Prelude (Signal, Vec(..), BitVector, Index, Signed, Unsigned, SFixed, Bit, SNat(..), simulate, simulate_lazy, listToVecTH, KnownNat, pack, unpack, (++#), mealy, mux, bundle, unbundle, HiddenCloc...
496bbc2c25e2441ecc9f25f08d2c929ece3e30fb56e83b1daa318f519b8dd9b8
input-output-hk/ouroboros-network
Test.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Ouroboros.Network.Protocol.Lo...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2793b6993c8f6ed158f432055fa4ef581acdb661/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxMonitor/Test.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # Codec Properties Protocol Executions without going via the 'Peer'. representation, but without going via a channel. This test converts the pipelined server peer to a non-pipelined peer before connecting it with the client. ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Ouroboros.Network.Protocol.LocalTxMonitor.Test (tests) where import Codec.Serialise (Serialise) import qua...
80d64f92a95fd321a962e29c47cc5c883d469d1a1170821167aa6fc34737d275
rtoy/cmucl
irix-os.lisp
;;; -*- Mode: Lisp; Package: Lisp; Log: code.log -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/code/irix-...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/code/irix-os.lisp
lisp
-*- Mode: Lisp; Package: Lisp; Log: code.log -*- ********************************************************************** ********************************************************************** OS-INIT -- interface. Other OS dependent initializations. Return system time, user time and number of page fau...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/code/irix-os.lisp $") OS interface functions for CMU CL under IRIX . (in-package "SYSTEM") (use-package "EXTENSIONS") (intl:textdomain "cmucl") ...
1913eb5f1f18d9c6c3c98f008d4a75eb0c05324308692dade4584ac50132600b
stritzinger/opcua
opcua_connection.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% @doc The abstraction of the connection state. %%% %%% It is own by the client process or the server protocol handler, %%% and it is passed alongside any state to most of the calls. %%% %%% %%% WARNING: %%% - When passed to a different...
null
https://raw.githubusercontent.com/stritzinger/opcua/a9802f829f80e6961871653f4d3c932f9496ba99/src/opcua_connection.erl
erlang
@doc The abstraction of the connection state. It is own by the client process or the server protocol handler, and it is passed alongside any state to most of the calls. WARNING: - When passed to a different process, the opcua_keychain:shareable/1 function must be called. This will make the keychain read-o...
-module(opcua_connection). -include_lib("kernel/include/logger.hrl"). -include("opcua.hrl"). -include("opcua_internal.hrl"). -export([new/6]). -export([merge/2]). -export([endpoint_url/1]). -export([security_policy/1]). -export([security_mode/1]). -export([set_security_policy/2]). -export([set_security_mode/2]). ...
070dd2e8b7a4ca99839157cabc8771adcdee14c9d3c773918de74a7f2d1d7644
ppaml-op3/insomnia
Config.hs
module Insomnia.Main.Config where import qualified System.IO as IO data InsomniaMainConfig = InsomniaMainConfig { ismCfgDebugOut :: IO.Handle -- ^ handle to use for debug output , ismCfgErrorOut :: IO.Handle -- ^ handle to use for error output , ismCfgFinalProductOut :: Maybe IO.Handle -- ^ where to save the la...
null
https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Insomnia/Main/Config.hs
haskell
^ handle to use for debug output ^ handle to use for error output ^ where to save the last produced result.
module Insomnia.Main.Config where import qualified System.IO as IO data InsomniaMainConfig = InsomniaMainConfig { ^ if True , run the FOmega code , ow just it . } defaultConfig :: InsomniaMainConfig defaultConfig = InsomniaMainConfig { ismCfgDebugOut = IO.stdout , ismCfgErrorOut = IO.stderr , ismCfgFinalP...