_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
35c0746a058dac82cd067a7acc626cf5c33d23ab96a136ebe5d560e0ad9fe9b6
mchakravarty/lets-program
Game.hs
-- Compile this with 'ghc -o Game Game.hs' and run it with './Game'. import Data.List import Graphics.Gloss.Game -- Window size width = 600 height = 400 -- A sprite representing our character slimeSprite = scale 0.5 0.5 (bmp "Slime.bmp") slimeWidth = fst (snd (boundingBox slimeSprite)) slimeHeight = snd (snd (bou...
null
https://raw.githubusercontent.com/mchakravarty/lets-program/f0b636fd2f2b7db77b70c5208cad53c9fa493f44/step5/Game.hs
haskell
Compile this with 'ghc -o Game Game.hs' and run it with './Game'. Window size A sprite representing our character Additional sprites for a simple animation Our game world consists of both the location and the vertical velocity of our character, the state of the character animation as well as a list of all current...
import Data.List import Graphics.Gloss.Game width = 600 height = 400 slimeSprite = scale 0.5 0.5 (bmp "Slime.bmp") slimeWidth = fst (snd (boundingBox slimeSprite)) slimeHeight = snd (snd (boundingBox slimeSprite)) slimeSprite2 = scale 0.5 0.5 (bmp "Slime2.bmp") slimeSprite3 = scale 0.5 0.5 (bmp "Slime3.bmp") sli...
a40e45099c336d0a391055f65d0485a46c9124c3663d1651621260c27dc680c4
electric-sql/vaxine
vx_test_utils.erl
-module(vx_test_utils). -export([init_multi_dc/4, start_node/4, init_clean_node/2, init_clean_node/3, init_testsuite/0, port/3, node_modifier/1 ]). -export([ an_connect/0, an_connect/1, an_start_tx/1, an_commit_tx/2, an_disconnect/1, ...
null
https://raw.githubusercontent.com/electric-sql/vaxine/7803f96e28203fff08ef7973257225897df1e552/apps/vx_server/test/vx_test_utils.erl
erlang
code path for compiled dependencies load application to allow for configuring the environment before starting get remote working dir of node DATA DIRS LOGGING Configuration add additional logging handlers to ensure easy access to remote node logs for each logging level set the logger configuration set primary ...
-module(vx_test_utils). -export([init_multi_dc/4, start_node/4, init_clean_node/2, init_clean_node/3, init_testsuite/0, port/3, node_modifier/1 ]). -export([ an_connect/0, an_connect/1, an_start_tx/1, an_commit_tx/2, an_disconnect/1, ...
9b1f89d8e833fa9cc5b1cfc6a326dccf6fc37868815060d474c366df2940fbd4
marcoheisig/adventofcode
day-07.lisp
(defpackage :adventofcode-2020-day-7 (:use :cl)) (in-package :adventofcode-2020-day-7)
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2020/day-07/day-07.lisp
lisp
(defpackage :adventofcode-2020-day-7 (:use :cl)) (in-package :adventofcode-2020-day-7)
937f9fc50f8ed52120cffcdd7758c7837bad42866571e9c8b0e6a9151f34804b
GrammaticalFramework/gf-core
Signal.hs
{-# OPTIONS -cpp #-} ---------------------------------------------------------------------- -- | -- Module : GF.System.Signal Maintainer : -- Stability : (stability) -- Portability : (portability) -- > CVS $ Date : 2005/11/11 11:12:50 $ -- > CVS $Author: bringert $ > CVS $ Revision : 1.3 $ -- Import...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/9b4f2dd18b64b770aaebfa1885085e8e3447f119/src/compiler/GF/System/Signal.hs
haskell
# OPTIONS -cpp # -------------------------------------------------------------------- | Module : GF.System.Signal Stability : (stability) Portability : (portability) > CVS $Author: bringert $ ---------------------------------------------------------------------------
Maintainer : > CVS $ Date : 2005/11/11 11:12:50 $ > CVS $ Revision : 1.3 $ Import the right singal handling module . module GF.System.Signal (runInterruptibly,blockInterrupt) where #ifdef USE_INTERRUPT import GF.System.UseSignal (runInterruptibly,blockInterrupt) #else import GF.System.NoSignal (runInt...
61b5f47cdddadd94aa5c6210ab77dcc9f647d2617e17d6c2e5ffcf0fcbf95799
nikita-volkov/rebase
Unsafe.hs
module Rebase.Control.Monad.ST.Unsafe ( module Control.Monad.ST.Unsafe ) where import Control.Monad.ST.Unsafe
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Monad/ST/Unsafe.hs
haskell
module Rebase.Control.Monad.ST.Unsafe ( module Control.Monad.ST.Unsafe ) where import Control.Monad.ST.Unsafe
305b104a5f244fe1f4d6f3ca28a5ec54366b92d72e78da156c7bec00c94f898b
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Temperature.CA.Tests ( tests ) where import Data.String import Prelude import Test.Tasty ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Temperature/CA/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Temperature.CA.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Temperature.CA.Corpus import Duckling.Dimensions.Types import Duckling.Testing.Asserts tests :: TestTree tests = testGroup "CA Tests" [ mak...
f64c81f6b146f9f92a5d289217d8ca8af11edacf4af0af6fb8cb0e65ddf38230
zudov/haskell-comark
CMark.hs
{-# LANGUAGE LambdaCase #-} # LANGUAGE RecordWildCards # module Comark.TestUtils.CMark ( module CMark , nodeToDoc , nodeToBlock , nodeToInline ) where import Control.Monad (mfilter) import Data.Monoid import qualified Data.Sequence as Seq import Data.Text (Tex...
null
https://raw.githubusercontent.com/zudov/haskell-comark/b84cf1d5623008673402da3a5353bdc5891d3a75/comark-testutils/src/Comark/TestUtils/CMark.hs
haskell
# LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards # module Comark.TestUtils.CMark ( module CMark , nodeToDoc , nodeToBlock , nodeToInline ) where import Control.Monad (mfilter) import Data.Monoid import qualified Data.Sequence as Seq import Data.Text (Text) import qualified Data.Text ...
5b48fda9e8db92e845a3b7ac6e4babd637d45014019bcaf30a7a66515187870a
mfikes/tach
tach.clj
(ns leiningen.tach (:require [clojure.string :as string] [clojure.java.shell :as shell] [leiningen.core.main :as main] [leiningen.core.classpath :as classpath])) (def exit-code-failed-test 1) (defn clojurescript-jar? [jar-name] (boolean (re-matches #".*/clojurescript-.*\.jar" jar-name))) (defn ...
null
https://raw.githubusercontent.com/mfikes/tach/ea756b58d33c173076dbc1a1bc3cf940a771461b/src/leiningen/tach.clj
clojure
(ns leiningen.tach (:require [clojure.string :as string] [clojure.java.shell :as shell] [leiningen.core.main :as main] [leiningen.core.classpath :as classpath])) (def exit-code-failed-test 1) (defn clojurescript-jar? [jar-name] (boolean (re-matches #".*/clojurescript-.*\.jar" jar-name))) (defn ...
9cd377b4e32d16a3efb5d597a7710f257a74cd5b4a1102183c17975528fcfd96
basho/riak_cs
riak_cs_list_objects_ets_cache_sup.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , 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 . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/src/riak_cs_list_objects_ets_cache_sup.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 permiss...
Copyright ( c ) 2007 - 2013 Basho Technologies , 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 ...
04c75e515241adba5bb7595d771b4ba3404fc916338dee5bb839e012fab576dc
jwiegley/notes
Types.hs
mergeUpdateMaps :: (These a a -> Maybe a) -> Map Prelude.FilePath a -> Map Prelude.FilePath a -> Map Prelude.FilePath a mergeUpdateMaps f = (M.mapMaybe f .) . align mergeSourceUpdateMaps :: Map Prelude.FilePath UpdateSource -> Map Prelude.FilePath U...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/6260796/Types.hs
haskell
mergeUpdateMaps :: (These a a -> Maybe a) -> Map Prelude.FilePath a -> Map Prelude.FilePath a -> Map Prelude.FilePath a mergeUpdateMaps f = (M.mapMaybe f .) . align mergeSourceUpdateMaps :: Map Prelude.FilePath UpdateSource -> Map Prelude.FilePath U...
063bf4eff33302bd677e83244848422ab3a4b2e9f78ee36e029bb5e497de2e8b
racket/typed-racket
optional-shallow-id-2.rkt
#lang typed/racket/base/shallow ;; basic optional -> shallow (module uuu racket/base (provide bad-sym) (define bad-sym #f)) (module opt typed/racket/base/optional (provide get-sym) (require/typed (submod ".." uuu) (bad-sym Symbol)) (: get-sym (-> Symbol)) (define (get-sym) bad-sym)) (require 'op...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/optional/optional-shallow-id-2.rkt
racket
basic optional -> shallow
#lang typed/racket/base/shallow (module uuu racket/base (provide bad-sym) (define bad-sym #f)) (module opt typed/racket/base/optional (provide get-sym) (require/typed (submod ".." uuu) (bad-sym Symbol)) (: get-sym (-> Symbol)) (define (get-sym) bad-sym)) (require 'opt typed/rackunit) (check-exn...
8c477e31312b322a0dd76b4626cc6688f073d4518a7be113af409e35d4f8a23d
uhc/uhc
Bits.hs
# LANGUAGE NoImplicitPrelude , CPP # # OPTIONS_GHC -XNoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Bits Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintai...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/ehclib/uhcbase/Data/Bits.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Bits License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable This module defines bitwise operations for signed and unsigned integers. I...
# LANGUAGE NoImplicitPrelude , CPP # # OPTIONS_GHC -XNoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 ' Integer ' types are available from this module , and instances for module Data.Bits ( Bits( ) instance Bits Int instance Bits Integer ) where #if defined(__GLASGOW_HASKELL__...
6815819bfd5ac7f636152d50d17e4421485b34a0f3546ee71e45e155c876b249
the-dr-lazy/cascade
Applicative.hs
| Module : Cascade . Control . Applicative Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! !...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-prelude/src/Cascade/Control/Applicative.hs
haskell
| Module : Cascade . Control . Applicative Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! !...
ebaf2b1ec12f2aba842012de8d1fa225e917fb059bbe2793e7c042414c485652
foreverbell/project-euler-solutions
205.hs
import Data.Array.Unboxed import Data.Array.ST import Control.Monad (guard, forM_, when) import Control.Monad.ST import Text.Printf dynamic :: Int -> Int -> [(Int, Int)] dynamic times dice = assocs $ rec times dice init where cnt = times * dice init = listArray (0, cnt) (1 : (repeat 0)) rec :: Int -> Int ...
null
https://raw.githubusercontent.com/foreverbell/project-euler-solutions/c0bf2746aafce9be510892814e2d03e20738bf2b/src/205.hs
haskell
import Data.Array.Unboxed import Data.Array.ST import Control.Monad (guard, forM_, when) import Control.Monad.ST import Text.Printf dynamic :: Int -> Int -> [(Int, Int)] dynamic times dice = assocs $ rec times dice init where cnt = times * dice init = listArray (0, cnt) (1 : (repeat 0)) rec :: Int -> Int ...
2c9931f5cfa3d4a057de1a735749786a1c9e2e20659eb9046c3eeff9a6f75081
reborg/reclojure
reversible.clj
(ns reclojure.lang.protocols.counted (:refer-clojure :exclude [rseq])) (defprotocol Reversible (rseq [this]))
null
https://raw.githubusercontent.com/reborg/reclojure/c8aae4cc384d59262569cbc9c332e08619f292ef/src/reclojure/lang/protocols/reversible.clj
clojure
(ns reclojure.lang.protocols.counted (:refer-clojure :exclude [rseq])) (defprotocol Reversible (rseq [this]))
d05892f7fa79b00f0d9d4ac72808436f681f7a2fa3f9f79f6671c083cc83b45c
ofmooseandmen/Aeromess
F16.hs
-- | ICAO Field Type 16 - Destination aerodrome and total estimated -- elapsed time, destination alternate aerodrome(s). module Data.Icao.F16 ( Data(ades, totalEet, altn1, altn2) , adesParser , parser ) where import Data.Aeromess.Parser import Data.Icao.Location import Data.Icao.Time | Field Type ...
null
https://raw.githubusercontent.com/ofmooseandmen/Aeromess/765f3ea10073993e43c71b6b6955b9f0d234a4ef/src/Data/Icao/F16.hs
haskell
| elapsed time, destination alternate aerodrome(s). | ADES parser.
ICAO Field Type 16 - Destination aerodrome and total estimated module Data.Icao.F16 ( Data(ades, totalEet, altn1, altn2) , adesParser , parser ) where import Data.Aeromess.Parser import Data.Icao.Location import Data.Icao.Time | Field Type 16 data . data Data = Data { ades :: Aerodrome , t...
0d426f8445c70340ee3c9af78e372980a619fd2df115cd0132c3e6c316c1fd6a
DestyNova/advent_of_code_2021
Part2.hs
module Main where import Text.Parsec import Data.List (intercalate, nub, transpose) import qualified Data.Map as M import Data.Map ((!)) type Coord = (Int,Int) type Grid = M.Map Coord Int main = do txt <- readFile "input.txt" let (Right inp) = parse parser "" txt let g = transpose inp print $ run g gridToMa...
null
https://raw.githubusercontent.com/DestyNova/advent_of_code_2021/f0fea3f81ead9d7d703b266a8b960f5f2bc5a658/day11/Part2.hs
haskell
module Main where import Text.Parsec import Data.List (intercalate, nub, transpose) import qualified Data.Map as M import Data.Map ((!)) type Coord = (Int,Int) type Grid = M.Map Coord Int main = do txt <- readFile "input.txt" let (Right inp) = parse parser "" txt let g = transpose inp print $ run g gridToMa...
a59067d454d8a2617ff5e61ceb728635e3e38748b5e237e2c1c0c09d6574fa35
nasa/Common-Metadata-Repository
ascii.clj
(ns ^:system cmr.opendap.tests.system.app.sizing.ascii "Note: this namespace is exclusively for system tests; all tests defined here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as request] ...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/service-bridge/test/cmr/opendap/tests/system/app/sizing/ascii.clj
clojure
all tests defined XXX Currently not working; see CMR-5268
(ns ^:system cmr.opendap.tests.system.app.sizing.ascii here will use one or more system test fixtures. Definition used for system tests: * #System_testing" (:require [clojure.test :refer :all] [cmr.http.kit.request :as request] [cmr.opendap.testing.system :as test-system] [cmr.opendap.testing.u...
4d5b0b25da8d8151804e214d4ad5ccd2d635bb3bbb6304fb518ef0db9c900ea6
orx/ocaml-orx
resource.ml
include Orx_gen.Resource let add_storage group storage first = add_storage (string_of_group group) storage first let remove_storage group storage = remove_storage (Option.map string_of_group group) storage let sync group = sync (Option.map string_of_group group)
null
https://raw.githubusercontent.com/orx/ocaml-orx/ce3be01870b04a1498dbb24bbe4ad0f13d36615c/src/lib/resource.ml
ocaml
include Orx_gen.Resource let add_storage group storage first = add_storage (string_of_group group) storage first let remove_storage group storage = remove_storage (Option.map string_of_group group) storage let sync group = sync (Option.map string_of_group group)
4427865d2b18ba9b03fcfe5f940462d97630e9d437be476e5f08be9447b25ebe
bsansouci/bsb-native
camlinternalMod.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Cri...
null
https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/stdlib/camlinternalMod.ml
ocaml
********************************************************************* OCaml ...
, 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 type shape = | Function | Lazy | ...
356e39ba97d925b1a646d07715dae6e5756dc7096a75f830a53ad9808cb9978a
jackrusher/sparkledriver
cookies.clj
(ns sparkledriver.cookies (:require [sparkledriver.browser :as brwsr])) (defn browser-cookies->map "Convert `browser`'s current cookies into the map format used by clj-http. This returns cookies from all domains, but cookie names that are set on multiple domains will only be returned once." [browser] (reduce ...
null
https://raw.githubusercontent.com/jackrusher/sparkledriver/375885dcad85e37ae2e0d624bc005016ada2982e/src/sparkledriver/cookies.clj
clojure
(ns sparkledriver.cookies (:require [sparkledriver.browser :as brwsr])) (defn browser-cookies->map "Convert `browser`'s current cookies into the map format used by clj-http. This returns cookies from all domains, but cookie names that are set on multiple domains will only be returned once." [browser] (reduce ...
c1edb9ebb4ba7edf8de1945e3c7164a45fb48f7a7b5ca5c425a5713f400a6883
terezka/cherry-core
List.hs
| Module : List Description : Work with lists . License : BSD 3 Maintainer : Stability : experimental Portability : POSIX Module : List Description : Work with lists. License : BSD 3 Maintainer : Stability : experimental Portability : POSIX -} module List ( -- * Creat...
null
https://raw.githubusercontent.com/terezka/cherry-core/d9bd446e226fc9b04783532969fa670211a150c6/src/List.hs
haskell
* Create * Transform * Utilities * Combine * Sort | A list. CREATE TRANSFORM | Apply a function to every element of a list. > map sqrt [1,4,9] == [1,2,3] > > map not [True,False,True] == [False,True,False] So `map func [ a, b, c ]` is the same as `[ func a, func b, func c ]` Note: This function is i...
| Module : List Description : Work with lists . License : BSD 3 Maintainer : Stability : experimental Portability : POSIX Module : List Description : Work with lists. License : BSD 3 Maintainer : Stability : experimental Portability : POSIX -} module List List, sing...
e4738d3ef4d85c47ab507524b29a23bb80fcd70140eede9f4591edfeef8a3f0b
jyh/metaprl
itt_int_test.ml
extends Itt_struct extends Itt_int_ext extends Itt_int_arith extends Itt_supinf extends Itt_omega extends Itt_nat open Lm_debug open Lm_printf open Lm_num open Basic_tactics open Itt_struct open Itt_int_base open Itt_int_ext open Itt_int_arith open Itt_supinf open Itt_omega let debug_test_arith = create_debug (**...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/tests/itt_int_test.ml
ocaml
extends Itt_struct extends Itt_int_ext extends Itt_int_arith extends Itt_supinf extends Itt_omega extends Itt_nat open Lm_debug open Lm_printf open Lm_num open Basic_tactics open Itt_struct open Itt_int_base open Itt_int_ext open Itt_int_arith open Itt_supinf open Itt_omega let debug_test_arith = { debug_name ...
9c2fdeddeef05d65196be12da1cb24a9abed0cba1c82327a8e82235ab8e34856
mdunnio/coinbase-pro
Authenticated.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} module CoinbasePro.Authenticated ( accounts , account , accountHistory , accountHolds , listOrders , getOrder , getClientOrder , placeOrder , placeOrderBody , cancelOrder , cancelAll , fills ...
null
https://raw.githubusercontent.com/mdunnio/coinbase-pro/8016dbd7413b43ea4597eb0cb36cc01f7a18c1b4/src/lib/CoinbasePro/Authenticated.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # | /#accounts | /#get-an-account | /#get-account-history | /#get-holds | /#list-orders | /#get-an-order | /#get-an-order | /#place-a-new-order | /#place-a-new-order Use the underlying post body record | /#cancel-an-order | /#cancel-all | /#fills ...
# LANGUAGE DataKinds # module CoinbasePro.Authenticated ( accounts , account , accountHistory , accountHolds , listOrders , getOrder , getClientOrder , placeOrder , placeOrderBody , cancelOrder , cancelAll , fills , fees , trailingVolume , limits , deposits , withdrawals , ...
546d7c88c3d53bbc9565217d5d9206c3ab178fc1f410555c8f35c4db85bc81a3
nyu-acsys/drift
inductive1-2.ml
let rec loop x i = if i < 0 then x else if x < 1 then loop (x - 1) (i - 1) else if x > 2 then loop x (i - 1) else loop (3 - x) (i - 1) let main_p (n:int) = assert (loop 1 n >= 0) let main (w:unit) = let _ = main_p 4 in let _ = for i = 1 to 1000000 do main ( Random.in...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/r_type/first/inductive1-2.ml
ocaml
let rec loop x i = if i < 0 then x else if x < 1 then loop (x - 1) (i - 1) else if x > 2 then loop x (i - 1) else loop (3 - x) (i - 1) let main_p (n:int) = assert (loop 1 n >= 0) let main (w:unit) = let _ = main_p 4 in let _ = for i = 1 to 1000000 do main ( Random.in...
ff11e5ddd20b2d7a7c7b30bc3d6c12042f17d15308d320135450f9b23aa64b1c
aesiniath/unbeliever
System.hs
# OPTIONS_GHC -Wno - dodgy - exports # {-# OPTIONS_GHC -Wno-unused-imports #-} # OPTIONS_HADDOCK not - home # | Common elements from the rest of the ecosystem . This is mostly about re - exports . There are numerous types and functions that are more or less assumed to be in scope when you 're doing much of an...
null
https://raw.githubusercontent.com/aesiniath/unbeliever/a315a894c580b72ca32b3157518c6ba4653d9381/core-program/lib/Core/System.hs
haskell
# OPTIONS_GHC -Wno-unused-imports # * Base libraries | Re-exports from foundational libraries supplied by the compiler runtime, or from re-implementations of those areas. * External dependencies | These are typically special cases or custom re-implementations of things which are maintained either by ourselves o...
# OPTIONS_GHC -Wno - dodgy - exports # # OPTIONS_HADDOCK not - home # | Common elements from the rest of the ecosystem . This is mostly about re - exports . There are numerous types and functions that are more or less assumed to be in scope when you 're doing much of anything in Haskell ; this module is a c...
0e122c0e2a5440bbf72ffa1099c25a07fdacfcf409b65fe9f75f2ca4b6b68c59
hbr/albatross
process.ml
open Js_of_ocaml open Js class type stream = object method fd: int readonly_prop end class type process = object method argv: (js_string t) js_array t readonly_prop method cwd: js_string t meth method exit: int -> 'a meth method nextTick: (unit -> unit) callback -> unit meth method stdin: ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/fmlib/node/process.ml
ocaml
open Js_of_ocaml open Js class type stream = object method fd: int readonly_prop end class type process = object method argv: (js_string t) js_array t readonly_prop method cwd: js_string t meth method exit: int -> 'a meth method nextTick: (unit -> unit) callback -> unit meth method stdin: ...
1fd5af2e09d9c65419ee22eed307ca2af3731c5d3a1ea73ec6c13366ab6f2348
snmsts/cl-langserver
clisp.lisp
;;;; -*- indent-tabs-mode: nil -*- SLYNK support for CLISP . Copyright ( C ) 2003 , 2004 , ;;;; 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 (...
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/backend/impls/clisp.lisp
lisp
-*- indent-tabs-mode: nil -*- This program is free software; you can redistribute it and/or either version 2 of This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General P...
SLYNK support for CLISP . Copyright ( C ) 2003 , 2004 , modify it under the terms of the GNU General Public License as the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public Software Foundation , Inc. , 59 Temple Place - Suite 330 , Boston ...
079c080bddf49b5ea1f7ad47dca23c0e776bcbf4ccc0574d990c22090bb56816
antifuchs/autobench
deflate.lisp
;;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: png; -*- ;;;; ------------------------------------------------------------------------------------------ ;;;; Title: The DEFLATE Compression (rfc1951) Created : Thu Apr 24 22:12:58 1997 Author : < > ;;;; -------------------------------------------------...
null
https://raw.githubusercontent.com/antifuchs/autobench/acc14ee2a8899cb630aa8dd02f3ffd7f5858ce28/cl-bench/files/deflate.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: png; -*- ------------------------------------------------------------------------------------------ Title: The DEFLATE Compression (rfc1951) ------------------------------------------------------------------------------------------ Note: This implementation is inhe...
Created : Thu Apr 24 22:12:58 1997 Author : < > ( c ) copyright 1997,1998 by (in-package :cl-bench.deflate) (defvar +length-encoding+ '#((0 3) (0 4) (0 5) (0 6) (0 7) (0 8) (0 9) (0 10) (1 11) (1 13) (1 15) (1 17) (...
d1f32104b49ba83349c87cd54c7be6735392bf6d26ee88ed3df8d351341af61f
ocaml-flambda/flambda-backend
cmm_builtins.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/5052e900ecd11529be548d4c5b5b1ead6e1895c3/backend/cmm_builtins.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Cmm val extcall : dbg:Debuginfo.t -> returns:bool -> alloc:bool -> is_c_builtin:bool -> t...
b82937d0c79f538399615fbd79f13fdc09d0fa01ddaf8395c2a780a352675a85
yi-editor/yi
Modes.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PackageImports #-} {-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Yi.Modes -- License : GPL-2 -- Maintainer : -- Stability : experimental -- Portability : portable -- Definitions for the bulk of modes shipped with . module Yi.Modes (cMo...
null
https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/yi-misc-modes/src/Yi/Modes.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE PackageImports # # OPTIONS_HADDOCK show-extensions # | Module : Yi.Modes License : GPL-2 Maintainer : Stability : experimental Portability : portable pepa is a subset of srmc
Definitions for the bulk of modes shipped with . module Yi.Modes (cMode, objectiveCMode, cppMode, cabalMode, clojureMode, srmcMode, ocamlMode, ottMode, gnuMakeMode, perlMode, pythonMode, javaMode, jsonMode, anyExtension, svnCommitMode, whitespaceMode, ...
5d40b5ec6da407f753c10740adf0d1a7aa58221a357a701120059213659d93c6
montelibero-org/veche
UserSpec.hs
# LANGUAGE BlockArguments # # LANGUAGE DisambiguateRecordFields # # LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Handler.UserSpec (spec) where import TestImport import Data.Text qualified as Text import Stellar.Horizon.Client qualified as Stellar import Mod...
null
https://raw.githubusercontent.com/montelibero-org/veche/d2792748bbc703f42a9792a7b212dc6ea41881b3/veche-web/test/Handler/UserSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE BlockArguments # # LANGUAGE DisambiguateRecordFields # # LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # module Handler.UserSpec (spec) where import TestImport import Data.Text qualified as Text import Stellar.Horizon.Client qualified as Stellar import Model.User (User (User)) import Model....
83d12347a3fa2b73668e9f648f3d29d9bafd2fb6086f5fc29a03f24852628f4d
bitblaze-fuzzball/fuzzball
vine_stpvc.mli
type ctx type revctx val typ_to_stp : Stpvc.vc -> Vine.typ -> Stpvc.typ val empty_ctx : unit -> ctx val new_ctx : Stpvc.vc -> Vine.decl list -> ctx val rev_ctx : ctx -> revctx val vine_var_to_stp : Stpvc.vc -> ctx -> Vine.var -> Stpvc.exp val vine_to_stp : Stpvc.vc -> ctx -> Vine.exp -> Stpvc.exp val stp_to_type : Stp...
null
https://raw.githubusercontent.com/bitblaze-fuzzball/fuzzball/b9a617b45e68fa732f1357fedc08a2a10f87a62c/ocaml/vine_stpvc.mli
ocaml
type ctx type revctx val typ_to_stp : Stpvc.vc -> Vine.typ -> Stpvc.typ val empty_ctx : unit -> ctx val new_ctx : Stpvc.vc -> Vine.decl list -> ctx val rev_ctx : ctx -> revctx val vine_var_to_stp : Stpvc.vc -> ctx -> Vine.var -> Stpvc.exp val vine_to_stp : Stpvc.vc -> ctx -> Vine.exp -> Stpvc.exp val stp_to_type : Stp...
43e5a08b05459bc59046507fd5a1df78072e0be0ef3bdb69807e4cb09e6dca52
ocaml-multicore/parallel-programming-in-multicore-ocaml
fibonacci_domains.ml
let num_domains = try int_of_string Sys.argv.(1) with _ -> 1 let n = try int_of_string Sys.argv.(2) with _ -> 40 let rec fib n = if n < 2 then 1 else fib (n-1) + fib (n-2) let rec fib_par n d = if d <= 1 then fib n else let a = fib_par (n-1) (d-1) in let b = Domain.spawn (fun _ -> fib_par (n-2) (d-1))...
null
https://raw.githubusercontent.com/ocaml-multicore/parallel-programming-in-multicore-ocaml/2f95616234907bc0fb95f32bcc49c9b1f9c83d5a/code/task/fibonacci_domains.ml
ocaml
let num_domains = try int_of_string Sys.argv.(1) with _ -> 1 let n = try int_of_string Sys.argv.(2) with _ -> 40 let rec fib n = if n < 2 then 1 else fib (n-1) + fib (n-2) let rec fib_par n d = if d <= 1 then fib n else let a = fib_par (n-1) (d-1) in let b = Domain.spawn (fun _ -> fib_par (n-2) (d-1))...
aa8953211852088b687dc18a3ec4c7b5f68882e323c26560cb914610e65592bd
nebularis/systest
systest_cleaner.erl
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ---------------------------------------------------------------------------- %% Copyright ( c ) 2005 - 2012 Nebularis . %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this ...
null
https://raw.githubusercontent.com/nebularis/systest/fbef181fd0203137f9f6ca6a471c75ca180ec375/src/systest_cleaner.erl
erlang
ex: ts=4 sw=4 et ---------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), deal to use, copy, modify, merge, publish, distribute, sublicense, and/o...
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- Copyright ( c ) 2005 - 2012 Nebularis . 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 ...
befcd36ffb479ee321fac8f449926c536392cf1dcf1819221f4d03c65cdfcac2
cl-axon/cl-aima
mdp-agent.lisp
A simple policy agent for Markov decision processes ( MDPs ) . (defun make-mdp-agent (&key body name mdp program (algorithm 'value-iteration-policy)) "An MDP agent constructs a policy from the MDP once, and then uses that policy repeatedly to take action. The ALGORITHM keyword specif...
null
https://raw.githubusercontent.com/cl-axon/cl-aima/1e6915fa9f3e5f2c6fd75952d674ebec53558d04/uncertainty/agents/mdp-agent.lisp
lisp
don't confuse it with the
A simple policy agent for Markov decision processes ( MDPs ) . (defun make-mdp-agent (&key body name mdp program (algorithm 'value-iteration-policy)) "An MDP agent constructs a policy from the MDP once, and then uses that policy repeatedly to take action. The ALGORITHM keyword specif...
4176a4a340595f215da9e456c4b348a09c41431fffec8fb70937b9fcf508eb21
simplex-chat/simplex-chat
M20220715_groups_chat_item_id.hs
# LANGUAGE QuasiQuotes # module Simplex.Chat.Migrations.M20220715_groups_chat_item_id where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) m20220715_groups_chat_item_id :: Query m20220715_groups_chat_item_id = [sql| ALTER TABLE groups ADD COLUMN chat_item_id INTEGER DEFAULT NULL REFER...
null
https://raw.githubusercontent.com/simplex-chat/simplex-chat/7dcde32680d05468efca6de245a21677915b9f98/src/Simplex/Chat/Migrations/M20220715_groups_chat_item_id.hs
haskell
# LANGUAGE QuasiQuotes # module Simplex.Chat.Migrations.M20220715_groups_chat_item_id where import Database.SQLite.Simple (Query) import Database.SQLite.Simple.QQ (sql) m20220715_groups_chat_item_id :: Query m20220715_groups_chat_item_id = [sql| ALTER TABLE groups ADD COLUMN chat_item_id INTEGER DEFAULT NULL REFER...
972eee9e284549d647eccad8aae35fe0cb479609fde39822eaf3f08ce11a54e2
symbiont-io/detsys-testkit
Atomics.hs
# LANGUAGE ForeignFunctionInterface # # LANGUAGE CApiFFI # module Journal.Internal.Atomics where import Data.Coerce (coerce) import Foreign import Foreign.C.Types import Journal.Internal.Utils (int2Int64) ------------------------------------------------------------------------ foreign import ccall unsafe "stdatomi...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/9d835cf5ad1290dea0144aec4e60245b2a893824/src/journal/src/Journal/Internal/Atomics.hs
haskell
---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- # CTYPE "atomic_llong" #
# LANGUAGE ForeignFunctionInterface # # LANGUAGE CApiFFI # module Journal.Internal.Atomics where import Data.Coerce (coerce) import Foreign import Foreign.C.Types import Journal.Internal.Utils (int2Int64) foreign import ccall unsafe "stdatomic.h __atomic_fetch_add_1" c_atomic_fetch_add_word_1 :: Ptr Word8 -> Wor...
250fdeda601aeb5df8cd038fa11ce0c765a1bea8342df0d68df98b36088e21f8
mlang/chessIO
ECO.hs
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveLift #-} {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWi...
null
https://raw.githubusercontent.com/mlang/chessIO/3ea2e165fda33fadb56a706d9f07b1b239986c08/src/Game/Chess/Internal/ECO.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE DeriveLift # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # | A Chess Opening | Encyclopedia of Chess Openings being used to identify che...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Game.Chess.Internal.ECO where import Control.DeepSeq (NFData) import Control.Monad.IO.Class (MonadIO (..)) import Data.Bifunctor ...
403dcc0d462dce30b6a6901ee41c0b58b27f71a41d69a8bd801de04ebfb527c3
solita/mnt-teet
map_features.cljs
(ns teet.map.map-features "Defines rendering styles for map features " (:require [clojure.string :as str] [ol.style.Style] [ol.style.Icon] [ol.style.Stroke] [ol.style.Fill] [ol.render.Feature] [ol.style.Circle] [teet.theme.theme-col...
null
https://raw.githubusercontent.com/solita/mnt-teet/40d9ffc31b95225f2e4713b70904314c1c862e6c/app/frontend/src/cljs/teet/map/map_features.cljs
clojure
draw the map pin draw the center white circle in the pin Show project road geometry line Draw electricity lightning arrow symbol A green transparent circle icon (js/console.log "heritage feature: " (.getType (.getGeometry _feature))) Show a circle indicating feature position Stroke the linestring :lineCap "butt"
(ns teet.map.map-features "Defines rendering styles for map features " (:require [clojure.string :as str] [ol.style.Style] [ol.style.Icon] [ol.style.Stroke] [ol.style.Fill] [ol.render.Feature] [ol.style.Circle] [teet.theme.theme-col...
595a3050146907c88ab01f4e94660e88537dde2b266040e600745dbaa9bfc25a
sky-big/RabbitMQ
rabbit_tracing_traces.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WA...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-tracing/src/rabbit_tracing_traces.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. -------------------------------------------------------------------- RabbitM...
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. ...
f0afa5b844a129ca715bc61a37fe789ce15d754ace79f806329dc3966c7d2563
ocaml/oasis
OASISHostPath.mli
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISHostPath.mli
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
72c55397520ce3158f57abed2da160c25dc5f58aee8692d94ba4d813dc052b98
ucsd-progsys/nate
liveness.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/asmcomp/liveness.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : , v 1.15 2007/01/29 12:10:50...
e5308d9e54b63b0ac2e71970059fe207a83e198b138555a03cc427a27f2280e3
janestreet/bonsai
compose_message.mli
open! Core open! Async_kernel open! Bonsai_web val component : send_message:(string -> unit Effect.t) Value.t -> Vdom.Node.t Computation.t
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/examples/rpc_chat/client/src/compose_message.mli
ocaml
open! Core open! Async_kernel open! Bonsai_web val component : send_message:(string -> unit Effect.t) Value.t -> Vdom.Node.t Computation.t
41d362c8aeaa587db93af4ba4d4a5f46b9f0fc1ce57ad657024213a25ad03007
screenshotbot/screenshotbot-oss
test-access-checks.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; 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 /. (uiop:define-package :screenshotbot/github/test-access-checks (:use #:cl #:...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/f798e99c634c65cc90097cd17c31ed493fe4f3c2/src/screenshotbot/github/test-access-checks.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. java
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 /. (uiop:define-package :screenshotbot/github/test-access-checks (:use #:cl #:fiveam #:screenshotbot/github/access-checks ...
c5e2571ec9755873d8969235e6c71fd460480b0a1dc8aaf576987d443a85edf0
wireapp/wire-server
RichField_user.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/c428355b7683b7b7722ea544eba314fc843ad8fa/libs/wire-api/test/golden/Test/Wire/API/Golden/Generated/RichField_user.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Test.Wire.API.Golden.Gene...
465b375a2a37a9b47444cde4c9edbc10ea18428a7709cbfce542c5e2949e11f8
RichiH/git-annex
SimpleProtocol.hs
Simple line - based protocols . - - Copyright 2013 - 2016 < > - - License : BSD-2 - clause - - Copyright 2013-2016 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Utility.SimpleProtocol ( Sendable(..), Receivable(..), pa...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Utility/SimpleProtocol.hs
haskell
Messages that can be sent. Messages that can be received. the value. Parsing the parameters of messages. Using the right parseN ensures - that the string is split into exactly the requested number of words, - which allows the last parameter of a message to contain arbitrary - whitespace, etc, without needing any...
Simple line - based protocols . - - Copyright 2013 - 2016 < > - - License : BSD-2 - clause - - Copyright 2013-2016 Joey Hess <> - - License: BSD-2-clause -} # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Utility.SimpleProtocol ( Sendable(..), Receivable(..), pa...
7cae32219cafab53d01943d9f4d3b1e231d8cc133c367500abacd6900c3d6941
ocsigen/eliom
eliom_client_base.shared.ml
type ('a, 'b) server_function_service = ( unit , 'a , Eliom_service.post , Eliom_service.non_att , Eliom_service.co , Eliom_service.non_ext , Eliom_service.reg , [`WithoutSuffix] , unit , [`One of 'a Eliom_parameter.ocaml] Eliom_parameter.param_name , 'b Eliom_service.ocaml ) Eliom_service.t
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_client_base.shared.ml
ocaml
type ('a, 'b) server_function_service = ( unit , 'a , Eliom_service.post , Eliom_service.non_att , Eliom_service.co , Eliom_service.non_ext , Eliom_service.reg , [`WithoutSuffix] , unit , [`One of 'a Eliom_parameter.ocaml] Eliom_parameter.param_name , 'b Eliom_service.ocaml ) Eliom_service.t
f7b090b657f625eca979916114fc0ebca9d2c5924963e198e1708d7ff0d685ac
OCamlPro/ez_api
ezFetch.ml
(**************************************************************************) (* *) Copyright 2018 - 2022 OCamlPro (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/5253f7dd8936e923290aa969ee43ebd3dc6fce2d/src/request/js/fetch/ezFetch.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2018 - 2022 OCamlPro GNU Lesser General Public License version 2.1 , with the special open EzRequest open Ezjs_fetch let log ?(meth="GET") url = function | None -> () | Some msg -> Ezjs_min.log_str ("[>" ^ msg ^ " " ^ meth ^ " " ^ url ^ "]") let ha...
2b03caa95d955c3776c028f21a355b4f06152dfd85cd53827f212dd31d0a62b8
mbutterick/quad
markdown.rkt
#lang debug racket/base (require racket/list racket/match quadwriter/core "tags.rkt" "lang-helper.rkt") (provide (all-defined-out) #%app #%top #%datum #%top-interaction require (all-from-out "tags.rkt")) (define (doc-proc exprs) (define strs (match exprs ...
null
https://raw.githubusercontent.com/mbutterick/quad/395447f35c2fb9fc7b6199ed185850906d80811d/quadwriter/markdown.rkt
racket
single nonbreaking space, so something prints markdown parser returns list of paragraphs
#lang debug racket/base (require racket/list racket/match quadwriter/core "tags.rkt" "lang-helper.rkt") (provide (all-defined-out) #%app #%top #%datum #%top-interaction require (all-from-out "tags.rkt")) (define (doc-proc exprs) (define strs (match exprs ...
2c5e5551e6cdf96346082bd59adeffea2ec69ed7d5c0f12378ec6e286063f5a2
iambrj/imin
interp-Rany-prime.rkt
#lang racket (require "interp-Rvec-prime.rkt") (require "interp-Rfun-prime.rkt") (require "interp-Rlambda-prime.rkt") (require "interp-Rany.rkt") (require "utilities.rkt") (require (prefix-in runtime-config: "runtime-config.rkt")) (provide interp-Rany-prime interp-Rany-prime-class interp-Rany-prime-mixin) (define (int...
null
https://raw.githubusercontent.com/iambrj/imin/baf9e829c2aa85b69a2e86bfba320969ddf05f95/interp-Rany-prime.rkt
racket
#lang racket (require "interp-Rvec-prime.rkt") (require "interp-Rfun-prime.rkt") (require "interp-Rlambda-prime.rkt") (require "interp-Rany.rkt") (require "utilities.rkt") (require (prefix-in runtime-config: "runtime-config.rkt")) (provide interp-Rany-prime interp-Rany-prime-class interp-Rany-prime-mixin) (define (int...
2332562a2f0c99e6667b95208a82e134218b29829aefa89eedf8478eb765f28a
weavejester/compojure
project.clj
(defproject compojure "1.7.0" :description "A concise routing library for Ring" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/tools.macro "0.1.5"] [clout "2.2.1"] [medley...
null
https://raw.githubusercontent.com/weavejester/compojure/cd9536e11f24c075ec670c2abc4b0405be60c57e/project.clj
clojure
(defproject compojure "1.7.0" :description "A concise routing library for Ring" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/tools.macro "0.1.5"] [clout "2.2.1"] [medley...
555cb1771bd12af71b2fa251a84d6e8a23a870bba36291d74914060c096d4ca5
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
SourceReceiverFlow.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema SourceReceiverFlow module StripeAPI.Types.SourceReceiverFlow where import q...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/SourceReceiverFlow.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | address: The address of the receiver source. This is the value that should be communicated to the customer to send their funds to. Constraints: | amount_charged: The total amount that was moved to your balance. This is almost always equal to the amount charg...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema SourceReceiverFlow module StripeAPI.Types.SourceReceiverFlow where import qualified Control.Monad.Fail import qualified Data.Aeson import ...
bef6e474b5451a482703f124e6e8f592ea6f4ff09ac7572582ff048e00ba50d4
couchbase/couchdb
mochiweb_util.erl
@author < > 2007 Mochi Media , Inc. @doc Utilities for parsing and quoting . -module(mochiweb_util). -author(''). -export([join/2, quote_plus/1, urlencode/1, parse_qs/1, unquote/1]). -export([path_split/1]). -export([urlsplit/1, urlsplit_path/1, urlunsplit/1, urlunsplit_path/1]). -export([guess_mime/1, pars...
null
https://raw.githubusercontent.com/couchbase/couchdb/8a75fd2faa89f95158de1776354ceccf3e762753/src/mochiweb/mochiweb_util.erl
erlang
$\% $\. @doc Inspired by Python 2.5's str.partition: partition("foo", "/") = {"foo", "", ""}. @doc Return the reduced version of a relative path or undefined if it is not safe. safe relative paths can be joined with an absolute path and will result in a subdirectory of the absolute path. Safe path...
@author < > 2007 Mochi Media , Inc. @doc Utilities for parsing and quoting . -module(mochiweb_util). -author(''). -export([join/2, quote_plus/1, urlencode/1, parse_qs/1, unquote/1]). -export([path_split/1]). -export([urlsplit/1, urlsplit_path/1, urlunsplit/1, urlunsplit_path/1]). -export([guess_mime/1, pars...
c890dc8bae6f30ecdcc1ffa5e1ab283ca91e8d78be704ea0293dac7cf9379f71
CSCfi/rems
entitlements.clj
(ns rems.db.entitlements "Creating and fetching entitlements." (:require [clj-http.client :as http] [clj-time.core :as time] [clojure.set :refer [union]] [clojure.tools.logging :as log] [mount.core :as mount] [rems.common.application-util :as application-u...
null
https://raw.githubusercontent.com/CSCfi/rems/af65570a5e5a6102aec4dc85d07d0f6fbb60c18d/src/clj/rems/db/entitlements.clj
clojure
technically these could be grouped per user & api-key TODO: let's move this :entitlements-target (v1) at some point to :entitlement-post (v2) TODO argh adding these everywhere sucks hardcoded for now TODO should ideally come from the command time performance improvement: filter events which may affect entitlement...
(ns rems.db.entitlements "Creating and fetching entitlements." (:require [clj-http.client :as http] [clj-time.core :as time] [clojure.set :refer [union]] [clojure.tools.logging :as log] [mount.core :as mount] [rems.common.application-util :as application-u...
98da3e3c01ff0212e0e5caa8d27fc81e218dec36aa2426c4ac8401d64fbb5653
typeable/octopod
WorkingOverrides.hs
module Data.WorkingOverrides ( WorkingOverrides, WorkingOverrideKey' (..), getConfigValueText, WorkingOverrideKey, WorkingOverrideKeyType (..), destructWorkingOverrides, constructWorkingOverrides, ConfigValue (..), CustomKey (..), CustomConfigValue (..), WorkingConfigTree, ...
null
https://raw.githubusercontent.com/typeable/octopod/379c6ea69286dffb202c7904af72d05d9b9f46d6/octopod-frontend/src/Data/WorkingOverrides.hs
haskell
| The id of the predicate used for caching
module Data.WorkingOverrides ( WorkingOverrides, WorkingOverrideKey' (..), getConfigValueText, WorkingOverrideKey, WorkingOverrideKeyType (..), destructWorkingOverrides, constructWorkingOverrides, ConfigValue (..), CustomKey (..), CustomConfigValue (..), WorkingConfigTree, ...
9148ec22e2b459926da32419b6d489388e92fdeabd2faff262d8e72a7ef5d92b
graninas/Functional-Design-and-Architecture
Runtime.hs
module Andromeda.Hardware.Impl.Runtime ( ) where
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/5046a3b9cd1d0ef90054c99933c846dc5068c7ad/Second-Edition-Manning-Publications/BookSamples/CH04/Section4p2/src/Andromeda/Hardware/Impl/Runtime.hs
haskell
module Andromeda.Hardware.Impl.Runtime ( ) where
a5f284a9be985c74d53c1f9b76f47e349376c9a58016651af8107e2611cfcf38
diffusionkinetics/open
Setup.hs
{-# LANGUAGE OverloadedStrings #-} module Dampf.Postgres.Setup where import Control.Lens import Control.Monad import Control.Monad.Catch (MonadThrow, throwM) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.List import qualified Data.Text as T im...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/dampf/lib/Dampf/Postgres/Setup.hs
haskell
# LANGUAGE OverloadedStrings #
module Dampf.Postgres.Setup where import Control.Lens import Control.Monad import Control.Monad.Catch (MonadThrow, throwM) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.List import qualified Data.Text as T import Database.PostgreSQL....
9a1da30600e092e951c830b959bbc322acc3e6111237ff37a299d8edcb441893
winny-/aoc
day12.rkt
#lang debug racket (require racket/hash) (define/contract (small? cave) (symbol? . -> . boolean?) (define s (symbol->string cave)) (string=? s (string-downcase s))) (define (read2 ip) (match (read-line ip) [(? eof-object? e) e] [(regexp "([A-Za-z]+)-([A-Za-z]+)" (list _ start end)) (cons (string->sym...
null
https://raw.githubusercontent.com/winny-/aoc/4cb005eb370d355b7a092094e431cda1e5a652a1/2021/day12/day12.rkt
racket
Omit some edges and vertices that do not make sense. Local Variables: compile-command: "racket day12.rkt < sample.txt" End:
#lang debug racket (require racket/hash) (define/contract (small? cave) (symbol? . -> . boolean?) (define s (symbol->string cave)) (string=? s (string-downcase s))) (define (read2 ip) (match (read-line ip) [(? eof-object? e) e] [(regexp "([A-Za-z]+)-([A-Za-z]+)" (list _ start end)) (cons (string->sym...
3eff13387fe40954bda87ba67625f92d229af3ffaece5af33e0452c61518eb22
james-iohk/plutus-scripts
NFTMint.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordW...
null
https://raw.githubusercontent.com/james-iohk/plutus-scripts/d504776f14be3d127837702068e5b5c3a1b935eb/src/NFTMint.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # doesn't need more than the TxOutRef # ...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module NFTMint ( printRedeemer, serialisedScript, scriptSBS, script, writeSerialisedSc...
fc575c6b4a3b6ccb110e8729f914782b849a7a41dffaa81588f6cbfeb7805be2
discus-lang/ddc
DaConDiscus.hs
module DDC.Core.Discus.Prim.DaConDiscus ( typeDaConDiscus , readDaConDiscus) where import DDC.Core.Discus.Prim.Base import DDC.Core.Discus.Prim.TyConDiscus import DDC.Type.Exp.Simple import DDC.Data.Pretty import Control.DeepSeq import Data.Char import Data.List instance NFData DaConDiscus where rnf...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-discus/DDC/Core/Discus/Prim/DaConDiscus.hs
haskell
| Read the name of a baked-in data constructor. | Yield the type of a baked-in data constructor.
module DDC.Core.Discus.Prim.DaConDiscus ( typeDaConDiscus , readDaConDiscus) where import DDC.Core.Discus.Prim.Base import DDC.Core.Discus.Prim.TyConDiscus import DDC.Type.Exp.Simple import DDC.Data.Pretty import Control.DeepSeq import Data.Char import Data.List instance NFData DaConDiscus where rnf...
290f602dca200dfb16f6d090baed71a3ede832fddeb1154498867608d5398bb3
flexsurfer/re-frisk
protocols.cljs
(ns ^{:mranderson/inlined true} re-frisk.inlined-deps.reagent.v1v0v0.reagent.impl.protocols) (defprotocol Compiler (get-id [this]) (as-element [this x]) (make-element [this argv component jsprops first-child]))
null
https://raw.githubusercontent.com/flexsurfer/re-frisk/638d820c84e23be79b8c52f8f136a611d942443f/re-frisk/src/re_frisk/inlined_deps/reagent/v1v0v0/reagent/impl/protocols.cljs
clojure
(ns ^{:mranderson/inlined true} re-frisk.inlined-deps.reagent.v1v0v0.reagent.impl.protocols) (defprotocol Compiler (get-id [this]) (as-element [this x]) (make-element [this argv component jsprops first-child]))
9b37688a2b0d812d5b43d4f26eb9b62aa48b39a06c37f7b0e8e5a142d9f91084
haskell-works/oops
Oops.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE BlockArguments # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE EmptyCase #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE ...
null
https://raw.githubusercontent.com/haskell-works/oops/3c44ed1f82c7f36f171656c1745977e82f7f0ce4/src/Control/Monad/Oops.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeOperators ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE BlockArguments # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE InstanceSigs # # LANGUAGE LambdaCase # # LANGUAGE PolyKinds # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilyDepe...
f48d923d3d9f2bdb99fd41f233b6036b37a52c9f1f2e355435bedfa229e61755
cmsc430/www
interp.rkt
#lang racket (provide interp) (require "ast.rkt" "interp-prim.rkt") ;; Expr -> Integer (define (interp e) (match e [(Int i) i] [(Prim1 p e) (interp-prim1 p (interp e))] [(IfZero e1 e2 e3) (if (zero? (interp e1)) (interp e2) (interp e3))]))
null
https://raw.githubusercontent.com/cmsc430/www/0809867532b8ef516029ac38093a145db5b424ea/langs/con/interp.rkt
racket
Expr -> Integer
#lang racket (provide interp) (require "ast.rkt" "interp-prim.rkt") (define (interp e) (match e [(Int i) i] [(Prim1 p e) (interp-prim1 p (interp e))] [(IfZero e1 e2 e3) (if (zero? (interp e1)) (interp e2) (interp e3))]))
1465063ae907c9f25ba1f5e054b979718eaf002a1ac7075b118f8d91c35edbb0
FrankC01/clasew
examples5.clj
(ns ^{:author "Frank V. Castellucci" :doc "clasew example 5 - Apple Numbers Examples"} clasew.examples5 (:require [clasew.spreads :as cs] [clasew.numbers :as an] [clojure.pprint :refer :all]) ) ;;; Setup for the example (def p pprint) Demonstrate using Excel as a data store ;...
null
https://raw.githubusercontent.com/FrankC01/clasew/1e5a444bccd4f34c68a1e5d1ec2121a36fd8c959/dev/src/clasew/examples5.clj
clojure
Setup for the example ---------------- BASIC CALLING --------------------------------------------- (p sample1) (p (an/clasew-numbers-call! sample1)) Handler Chaining - Create, put values, get first row, save, quit (p sample2) (p sample2a) (p (an/clasew-numbers-call! sample2a)) Demo - Open, Read, Quit Demo pushing ...
(ns ^{:author "Frank V. Castellucci" :doc "clasew example 5 - Apple Numbers Examples"} clasew.examples5 (:require [clasew.spreads :as cs] [clasew.numbers :as an] [clojure.pprint :refer :all]) ) (def p pprint) Demonstrate using Excel as a data store (def sample1 (cs/clasew-s...
4cfb54c15acb390ed7a62e039a25ce770ffcf6733a1b0c292bcd2f2464c893fd
eamsden/pushbasedFRP
Main.hs
# LANGUAGE TypeOperators # module Main where import FRP.TimeFlies.SignalFunctions import Graphics.Gloss.Data.Picture import Graphics.Gloss.Interface.IO.Game import Prelude hiding (filter) import Stopwatch (timeTracker) import World (WorldSVIn, WorldSVOut, GlossEvent (..), playSF) input :: WorldSVIn :~> SVEvent () inp...
null
https://raw.githubusercontent.com/eamsden/pushbasedFRP/1d6afd7aa2e45f44b9daa4a2265338747a6aa443/Code/gloss-demo/src/Main.hs
haskell
# LANGUAGE TypeOperators # module Main where import FRP.TimeFlies.SignalFunctions import Graphics.Gloss.Data.Picture import Graphics.Gloss.Interface.IO.Game import Prelude hiding (filter) import Stopwatch (timeTracker) import World (WorldSVIn, WorldSVOut, GlossEvent (..), playSF) input :: WorldSVIn :~> SVEvent () inp...
5cc0242161fcb689417a164b0988f5cfe164890ff070ae9f2ffeac2fac3bc04b
babashka/babashka
features.clj
(ns babashka.impl.features {:no-doc true}) ;; included by default (def yaml? (not= "false" (System/getenv "BABASHKA_FEATURE_YAML"))) (def xml? (not= "false" (System/getenv "BABASHKA_FEATURE_XML"))) (def csv? (not= "false" (System/getenv "BABASHKA_FEATURE_CSV"))) (def transit? (...
null
https://raw.githubusercontent.com/babashka/babashka/41dcc9239a15d95f055dfc0d8af33242c1a12e4f/src/babashka/impl/features.clj
clojure
included by default excluded by default
(ns babashka.impl.features {:no-doc true}) (def yaml? (not= "false" (System/getenv "BABASHKA_FEATURE_YAML"))) (def xml? (not= "false" (System/getenv "BABASHKA_FEATURE_XML"))) (def csv? (not= "false" (System/getenv "BABASHKA_FEATURE_CSV"))) (def transit? (not= "false" (System/ge...
06b4fc0102b6531b5309826f56fbc4b0c2ec8e68013abd7794bc288b7496b4f5
alexkazik/qrcode
TextEncoding.hs
# LANGUAGE NoImplicitPrelude # module Codec.QRCode.Data.TextEncoding ( TextEncoding(..) ) where data TextEncoding = Iso8859_1 -- ^ Generate segment out of a ISO-8859-1 text, if the text contains chars -- which aren't in the charset the result will be a failure. | Utf8WithoutECI -- ^ Use an UTF-8...
null
https://raw.githubusercontent.com/alexkazik/qrcode/7ee12de893c856a968dc1397602a7f81f8ea2c68/qrcode-core/src/Codec/QRCode/Data/TextEncoding.hs
haskell
^ Generate segment out of a ISO-8859-1 text, if the text contains chars which aren't in the charset the result will be a failure. ^ Use an UTF-8 encoded text. The reader must do a detection and conversion. __Please check the readers which should be used if they support this.__ readers support this. _...
# LANGUAGE NoImplicitPrelude # module Codec.QRCode.Data.TextEncoding ( TextEncoding(..) ) where data TextEncoding = Iso8859_1 | Utf8WithoutECI | Utf8WithECI ^ This is the correct way to encode UTF-8 , but it 's reported that not all | Iso8859_1OrUtf8WithoutECI | Iso8859_1OrUtf8WithECI
144ef4c4803fabe819cbd2a76448c9c24f8a19088446dcf30f42628c4a425f30
coq/coq
util.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/coq/coq/0973e012d615c0722d483cd5d814bde90c76d7d3/tools/dune_rule_gen/util.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the From OCaml 's > = 4.10 let list_concat_map f l = let rec aux f acc = function | [] -> List.rev ...
ed98d77a0d95c19bfcfbe2b1e8aa43801d7b5e04be28b7a8ee1050f4ef9fa1cc
viercc/kitchen-sink-hs
Bag.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE TupleSections # | \"Bag\ " or \"multiset\ " data structure . module Data.Bag( Bag(), -- * Basic queries null, size, uniqueLength, count, isSubsetOf, isProperSubsetOf, -- * Construction empty, singleton, -- * Single-item operation insert, delete, pullOut, *...
null
https://raw.githubusercontent.com/viercc/kitchen-sink-hs/c3a8b9e3f93f4eced21945a7fd7e47200191a645/data-bag/src/Data/Bag.hs
haskell
# LANGUAGE BangPatterns # * Basic queries * Construction * Single-item operation * Conversion * Queries | O(1) | Number of an item in a bag. Count is 0 if the item doesn't exist in the bag. Count is always nonnegative. * Construction | /O(log(n))/ Delete a item from a bag if exists. Decreases count of t...
# LANGUAGE TupleSections # | \"Bag\ " or \"multiset\ " data structure . module Data.Bag( Bag(), null, size, uniqueLength, count, isSubsetOf, isProperSubsetOf, empty, singleton, insert, delete, pullOut, * Combine two bags append, union, intersection, difference, cartesianProduct, fromFreqs, toFre...
7744708849ef9c91580dfe1fc81dc983a2ca87d783e8c414e72fc362622a063a
billstclair/trubanc-lisp
uffi-compat.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; uffi-compat.lisp --- UFFI compatibility layer for CFFI . ;;; Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2005 - 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated docume...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cffi_0.10.4/uffi-compat/uffi-compat.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- 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 copies furnished to...
uffi-compat.lisp --- UFFI compatibility layer for CFFI . Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2005 - 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of t...
d824da69ad7c48daa5a3200de46985a0586489e4d8f9d4b8016e4c94d39e2f57
iokasimov/pandora
Jet.hs
# LANGUAGE UndecidableInstances # module Pandora.Paradigm.Primary.Transformer.Jet where import Pandora.Pattern.Category ((<------)) import Pandora.Pattern.Functor.Covariant (Covariant ((<-|-), (<-|--), (<-|-|-), (<-|-))) import Pandora.Pattern.Functor.Traversable (Traversable ((<-/-)), (<-/-/-)) import Pandora.Paradig...
null
https://raw.githubusercontent.com/iokasimov/pandora/2a573f4478ed7425a673954a790f64bda3c2574f/Pandora/Paradigm/Primary/Transformer/Jet.hs
haskell
----)) ), (<-|-|-), (<-|-))) )) ---- f x ---- f <-|-|- xs f x <-*-- (f <-/-/- xs)
# LANGUAGE UndecidableInstances # module Pandora.Paradigm.Primary.Transformer.Jet where import Pandora.Pattern.Functor.Traversable (Traversable ((<-/-)), (<-/-/-)) data Jet t a = Jet a (Jet t (t a)) instance Covariant (->) (->) t => Covariant (->) (->) (Jet t) where f <-|- Jet x xs = Jet instance Traversable (->) ...
c9cad622e22a88aa9a87e683f6441e08cbf255ca5a047784befbe12b194d8dc1
bcc32/projecteuler-ocaml
geometry.ml
open! Core open! Import let is_pythagorean_triple a b c = (a * a) + (b * b) = c * c let iter_all_pythagorean_triples ~with_hypotenuse_less_than:max_hypot ~f = for m = 2 to Number_theory.Int.isqrt max_hypot + 1 do let m'2 = m * m in for n = 1 to m - 1 do if Number_theory.Int.gcd m n = 1 && (m mod 2 = 0...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/src/geometry.ml
ocaml
open! Core open! Import let is_pythagorean_triple a b c = (a * a) + (b * b) = c * c let iter_all_pythagorean_triples ~with_hypotenuse_less_than:max_hypot ~f = for m = 2 to Number_theory.Int.isqrt max_hypot + 1 do let m'2 = m * m in for n = 1 to m - 1 do if Number_theory.Int.gcd m n = 1 && (m mod 2 = 0...
e4660b4c83596b03ea669e17b07b6c353d0c7c9ea4911850716f84759189ba4f
cedlemo/OCaml-GI-ctypes-bindings-generator
Font_selection_dialog.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_font_selection_dialog_new" (string @-> returning (ptr Widget.t_typ)) let get_cancel_button = foreign "gtk_font_selection_dialog_get_cancel_button" (t_typ @-> returning (ptr Widget.t_typ)) let get_font_name = foreig...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Font_selection_dialog.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_font_selection_dialog_new" (string @-> returning (ptr Widget.t_typ)) let get_cancel_button = foreign "gtk_font_selection_dialog_get_cancel_button" (t_typ @-> returning (ptr Widget.t_typ)) let get_font_name = foreig...
388c96afbdf5ed6f5242bc39b9ac67905ae1c8d050fa19a4de8605c0efcb4419
mfoemmel/erlang-otp
corba_request.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1998 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/orber/src/corba_request.erl
erlang
-------------------------------------------------------------------- %CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. S...
Copyright Ericsson AB 1998 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " This file contains an corba request se...
25fa93f29cca3e40f1ee622f3d31287cce8e4676788b196baaae9f6a2faf689c
evturn/haskellbook
14.07-using-quickcheck.hs
import Data.List (sort) import Test.QuickCheck ----------------------------------------------------------------------------- 1 . half :: Fractional a => a -> a half x = x / 2 halfIdentity :: Fractional a => a -> a halfIdentity = (*2) . half prop_halfIdentity :: Double -> Bool prop_halfIde...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/14/14.07-using-quickcheck.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- ----------------...
import Data.List (sort) import Test.QuickCheck 1 . half :: Fractional a => a -> a half x = x / 2 halfIdentity :: Fractional a => a -> a halfIdentity = (*2) . half prop_halfIdentity :: Double -> Bool prop_halfIdentity x = halfIdentity x == x 2 . listOrdered :: (Ord a) => [a] -> Bool lis...
775700384d2e24b4e15ec756a42eb1c3d622e733af5b5d4775be8cbd462e6270
ghcjs/ghcjs
Compat.hs
# LANGUAGE CPP , GeneralizedNewtypeDeriving , OverloadedStrings # compatibility with older GHC compatibility with older GHC -} module Compiler.Compat ( PackageKey , packageKeyString , modulePackageKey , stringToPackageKey ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/src/Compiler/Compat.hs
haskell
we do not support version tags since support for them has been broken for a long time anyway
# LANGUAGE CPP , GeneralizedNewtypeDeriving , OverloadedStrings # compatibility with older GHC compatibility with older GHC -} module Compiler.Compat ( PackageKey , packageKeyString , modulePackageKey , stringToPackageKey ...
fc7ae4873a2e0368e5e83cc5f96791b3cfdb15c0b844ebbd466a040ce36056a3
soegaard/pyffi
python.rkt
#lang racket/base (require "structs.rkt" "python-attributes.rkt" "python-builtins.rkt" "python-bytes.rkt" "python-c-api.rkt" "python-define-delayed.rkt" "python-dict.rkt" "python-environment.rkt" "python-evaluation.rkt" "python-functions.r...
null
https://raw.githubusercontent.com/soegaard/pyffi/3c7abdd6463399105f1e4236cd7bfc269e6b2f38/pyffi-lib/pyffi/python.rkt
racket
the values are wrapped in an obj struct below The procedures run and run* return cpointers. Modules: builtins, main Automatic conversion: run, run* When `run` and `run*`returns NULL (represented as #f in Racket), We must fetch and normalize the exception, exception value and the traceback. everything went fi...
#lang racket/base (require "structs.rkt" "python-attributes.rkt" "python-builtins.rkt" "python-bytes.rkt" "python-c-api.rkt" "python-define-delayed.rkt" "python-dict.rkt" "python-environment.rkt" "python-evaluation.rkt" "python-functions.r...
26345eed759d726f7df279a418f297f398dbb61256dd6d6b3f2d93579b520577
MrEbbinghaus/fulcro-material-ui-wrapper
card.cljc
(ns ^:deprecated material-ui.surfaces.card (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] #?@(:cljs [["@mui/material/Card" :default Card] ["@mui/material/CardContent" :default CardContent] ["@mui/material/CardActions" :default CardActions] ...
null
https://raw.githubusercontent.com/MrEbbinghaus/fulcro-material-ui-wrapper/058f1dd4b85542914f92f48a4010ea9ad497e48f/src/material_ui/surfaces/card.cljc
clojure
(ns ^:deprecated material-ui.surfaces.card (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] #?@(:cljs [["@mui/material/Card" :default Card] ["@mui/material/CardContent" :default CardContent] ["@mui/material/CardActions" :default CardActions] ...
3cf0022fd467f435b6e22437a22c1191c56a274fd88c93cdc5f142975b653b6f
walmartlabs/lacinia-pedestal
internal.clj
Copyright ( c ) 2020 - present Walmart , 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, software dist...
null
https://raw.githubusercontent.com/walmartlabs/lacinia-pedestal/1db186bc35404093a533c66b550b4891271b9401/src/com/walmartlabs/lacinia/pedestal/internal.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2020 - present Walmart , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns ^:no-doc com.walmartlabs.lacinia.pedestal.internal "Internal utilities not part of the public API." (:require [clojure...
4be21f721fcfc7e7b0153227aabbac2f9ddc74a01a23dad8952eea7f78c153b7
coq/coq
global.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/f09a8e92bcf3104707ec985c086276c9f76c44e3/library/global.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
6bf56b4ab14fc20966cba50cc1d72302ddf41fc623fcb34ecaf8881590530385
metabase/metabase
field.cljc
(ns metabase.lib.field (:require [metabase.lib.dispatch :as lib.dispatch] [metabase.lib.metadata :as lib.metadata] [metabase.lib.options :as lib.options] [metabase.lib.schema.ref :as lib.schema.ref] [metabase.lib.temporal-bucket :as lib.temporal-bucket] [metabase.lib.util :as lib.util] [metabase....
null
https://raw.githubusercontent.com/metabase/metabase/02e9aa420ef910138b9b5e05f74c96e31286bcf2/src/metabase/lib/field.cljc
clojure
TODO -- I think maybe this logic should actually be part of [[metabase.lib.metadata]] -- [[metabase.lib.field-metadata]] should be the one doing this nonsense resolve field from the current stage resolve field from the previous stage (if one exists) resolve field from Database metadata be visible from the curren...
(ns metabase.lib.field (:require [metabase.lib.dispatch :as lib.dispatch] [metabase.lib.metadata :as lib.metadata] [metabase.lib.options :as lib.options] [metabase.lib.schema.ref :as lib.schema.ref] [metabase.lib.temporal-bucket :as lib.temporal-bucket] [metabase.lib.util :as lib.util] [metabase....
270e0dbf17380d2cbc8a0430824230dbc4e426a17103ab8cd7c0969b9423d288
chrovis/cljam
util.clj
(ns cljam.io.vcf.util (:require [clojure.string :as cstr] [proton.core :as p])) (definline dot-or-nil? "Checks if given string is equal to \".\" or nil." [^String s] `(or (nil? ~s) (empty? ~s) (and (= 1 (.length ~s)) (= \. (.charAt ~s 0))))) (defn- value-parser "Returns...
null
https://raw.githubusercontent.com/chrovis/cljam/cbaff3c1caafb03d87fd49b8bf7a64853065a1eb/src/cljam/io/vcf/util.clj
clojure
pre-seq [ or ] chr pos [ or ] post-seq
(ns cljam.io.vcf.util (:require [clojure.string :as cstr] [proton.core :as p])) (definline dot-or-nil? "Checks if given string is equal to \".\" or nil." [^String s] `(or (nil? ~s) (empty? ~s) (and (= 1 (.length ~s)) (= \. (.charAt ~s 0))))) (defn- value-parser "Returns...
80382f3de93543c9289638d84e1f0c452cdf0962644ec4f66220ec526923fee2
edbutler/nonograms-rule-synthesis
symbolic.rkt
#lang rosette/safe ; all the routines for creating symbolic nonograms objects ; (basically, everything except programs) (provide symbolic-segments symbolic-deduction symbolic-solution-segments/concrete-hints symbolic-line-transition symbolic-line solve-with-symbolic-deduction) (require (only-in racket ...
null
https://raw.githubusercontent.com/edbutler/nonograms-rule-synthesis/16f8dacb17bd77c9d927ab9fa0b8c1678dc68088/src/nonograms/symbolic.rkt
racket
all the routines for creating symbolic nonograms objects (basically, everything except programs) create a set of symbolic solution segments for a concrete line, with assertions that the segments are consistent with a solution for that line. useful for either solving lines or generating solved lines. use fold inst...
#lang rosette/safe (provide symbolic-segments symbolic-deduction symbolic-solution-segments/concrete-hints symbolic-line-transition symbolic-line solve-with-symbolic-deduction) (require (only-in racket match-define error values parameterize hash-copy) rosette/lib/angelic "rules.rkt" "action.rkt" ...
9dbc41239adca5a50530b6fac172c1907fa0a779db0ad8cb0bf3977dd5253a54
emqx/emqx
emqx_bridge_mqtt_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/2fa4e8e21afe50eae598bb20a3eb95ef158a5098/apps/emqx_bridge/test/emqx_bridge_mqtt_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or im...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_bridge_mqtt_SUITE). -compile(nowarn_export_all). -compile(export_all). -import(em...
d4c85e9b7f4b424fe316be21e9cb3e2aa7a0cbd3fc31122272ec98d8a6b21020
rtoy/ansi-cl-tests
adjustable-array-p.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Jan 20 21:25:22 2003 ;;;; Contains: Tests for ADJUSTABLE-ARRAY-P (in-package :cl-test) (deftest adjustable-array-p.1 (notnot (adjustable-array-p (make-array '(5) :adjustable t))) t) (deftest adjustable-array-p.2 (notnot (adjustable-array-p (make-array n...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/adjustable-array-p.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for ADJUSTABLE-ARRAY-P Error tests
Author : Created : Mon Jan 20 21:25:22 2003 (in-package :cl-test) (deftest adjustable-array-p.1 (notnot (adjustable-array-p (make-array '(5) :adjustable t))) t) (deftest adjustable-array-p.2 (notnot (adjustable-array-p (make-array nil :adjustable t))) t) (deftest adjustable-array-p.3 (notnot (a...
f439306a35b97dce870fda3b04e550a020b90ca26503c34726436da964edf6c5
janestreet/hardcaml
test_bits_intf.ml
(** Test routines for the various vector calculations in [Bits.Comb] **) open! Import (** Test function called to check a result and provide an error message. In expect tests, this is a thin wrapper around [Expect_test_helpers_core.require]. In long-running regression tests in ../regression, this prints to ...
null
https://raw.githubusercontent.com/janestreet/hardcaml/15727795c2bf922dd852cc0cd895a4ed1d9527e5/test/lib/test_bits_intf.ml
ocaml
* Test routines for the various vector calculations in [Bits.Comb] * * Test function called to check a result and provide an error message. In expect tests, this is a thin wrapper around [Expect_test_helpers_core.require]. In long-running regression tests in ../regression, this prints to a log. * default is ...
open! Import module type Require = sig val require : Source_code_position.t -> bool -> error_message:Sexp.t Lazy.t -> unit end module type Test_ = sig type config * [ test ] tests each primitive in [ config.prims ] [ config.iterations ] times , stopping iteration for a particular primitive at the first ...
1a059905685773b93f2962096260f909edb515b8c001dd971a75b3e754b039f6
facundoolano/advenjure
verbs.cljc
(ns advenjure.verbs #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]])) (:require [clojure.set] [clojure.string :as str] #?(:cljs [goog.string :as gstring]) #?(:clj [clojure.core.async :refer [<! go]] :cljs [cljs.core.async :refer [<!]]) [a...
null
https://raw.githubusercontent.com/facundoolano/advenjure/2f05fdae9439ab8830753cc5ef378be66b7db6ef/src/advenjure/verbs.cljc
clojure
FUNCTIONS TO BUILD VERBS hackishly getting __prevalue so we can get the room kw from the precondition VERB HANDLER DEFINITIONS it's not a direction name, maybe it's a room name it's not a direction name, maybe it's a room name this feels kinda ugly: (def help (make-say-verb (clojure.string/join "\n " [(_ "You...
(ns advenjure.verbs #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]])) (:require [clojure.set] [clojure.string :as str] #?(:cljs [goog.string :as gstring]) #?(:clj [clojure.core.async :refer [<! go]] :cljs [cljs.core.async :refer [<!]]) [a...
7e5c1f7f45e1ba49dbe07ca936fbdca6fae7ab1885bd9dfedc7937be535e3526
cac-t-u-s/om-sharp
preferences-window.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/80f9537368471d0e6e4accdc9fff01ed277b879e/src/visual-language/windows/preferences-window.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
File author : (in-package :om) DIFFERENT TYPEs OF PReFERENCE ITEMS (defmethod make-preference-item (type pref-item) (let* ((curr-value (pref-item-value pref-item)) (font (om-def-font :normal))) (om-make-view 'click-and-edit-text :text (format nil " ~A" curr-value) ...
cb9fdc8a25cf2a707d9bb9917224e87d1ec970fb0100e9d28a092a00319e6742
alexanderwasey/stupid-computer
Sum.hs
module Sum where import Prelude hiding (sum) sum :: Num a => [a] -> a sum (x:xs) = x + sum xs sum [] = 0
null
https://raw.githubusercontent.com/alexanderwasey/stupid-computer/a485d2f33a4b8d58128a74b9003b9eadffe42702/examples/Sum.hs
haskell
module Sum where import Prelude hiding (sum) sum :: Num a => [a] -> a sum (x:xs) = x + sum xs sum [] = 0
c1bcb7944d0aa138ad33bc6208eeba946fc41061c6d626b0f28b99efb608518f
GaloisInc/daedalus
Operators.hs
module Daedalus.Interp.Operators where import GHC.Float(double2Float) import Daedalus.PP import Daedalus.Panic(panic) import Daedalus.Value import Daedalus.Interp.Env import Daedalus.Interp.Type import Daedalus.Interp.Error import Daedalus.Type.AST hiding (Value, BDCon(..), BDField(..)) evalLiteral :: Env -> Type...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/src/Daedalus/Interp/Operators.hs
haskell
module Daedalus.Interp.Operators where import GHC.Float(double2Float) import Daedalus.PP import Daedalus.Panic(panic) import Daedalus.Value import Daedalus.Interp.Env import Daedalus.Interp.Type import Daedalus.Interp.Error import Daedalus.Type.AST hiding (Value, BDCon(..), BDField(..)) evalLiteral :: Env -> Type...
33ac6641b9d51582524c7b3baf9eaa272386dba4da69b66570a3d237f5c32855
erlware/relx
check_undefined_test_sup.erl
%%%------------------------------------------------------------------- %% @doc check_undefined_test top level supervisor. %% @end %%%------------------------------------------------------------------- -module(check_undefined_test_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SER...
null
https://raw.githubusercontent.com/erlware/relx/16a7972f7679778d9d7f40228b1a20351f1077bd/shelltests/check_undefined_test/apps/check_undefined_test/src/check_undefined_test_sup.erl
erlang
------------------------------------------------------------------- @doc check_undefined_test top level supervisor. @end ------------------------------------------------------------------- sup_flags() = #{strategy => strategy(), % optional intensity => non_neg_integer(), % optional optional...
-module(check_undefined_test_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> SupFlags = #{strategy => one_for_all, intensity => 0, period...
ab09263acfb1dcd2e70590b5c5c13c2dcae8f728b0f73978f01e930e88517ce7
well-typed/large-records
R040.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif # LANGUAGE OverloadedLabels # module Experiment.SR_GetEvens.Sized.R040 where import SuperRecord (Rec) import qualified SuperRecord as SR import Bench.EvensOfSize.Ev...
null
https://raw.githubusercontent.com/well-typed/large-records/78d0966e4871847e2c17a0aa821bacf38bdf96bc/large-records-benchmarks/bench/superrecord/Experiment/SR_GetEvens/Sized/R040.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings # 00 .. 09
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif # LANGUAGE OverloadedLabels # module Experiment.SR_GetEvens.Sized.R040 where import SuperRecord (Rec) import qualified SuperRecord as SR import Bench.EvensOfSize.Evens040 import Common.RowOfSize.Row040 getEvens :: Rec ExampleRow -> Evens getEvens r = Evens { ...
9764414e84e195a980098bedacd93744cb44f1f617710be99b69a36f648c9afb
nibbula/yew
chart.lisp
;;; chart.lisp - Draw charts . ;;; (defpackage :chart (:documentation "Draw charts.") (:use :cl :dlib :collections :char-util :table :terminal :keymap :inator :terminal-inator) (:export #:chart #:bar-chart #:horizontal-bar #:vertical-bar #:do-bars #:draw-chart #:make-chart-from #:make-...
null
https://raw.githubusercontent.com/nibbula/yew/c9c216b713e1d0e74c6d43a061344c1e4008d1ca/tools/chart.lisp
lisp
@@@ Specialize for output device? This is only for terminals. @@@ What should we do? @@@ support alists or plists Chart viewer (,(meta-char #\i) . table-info) (#\escape . *chart-viewer-escape-keymap*) (defgeneric sort-chart (inator) (:documentation "Sort the chart.") (:method ((i chart-viewer)) (...
chart.lisp - Draw charts . (defpackage :chart (:documentation "Draw charts.") (:use :cl :dlib :collections :char-util :table :terminal :keymap :inator :terminal-inator) (:export #:chart #:bar-chart #:horizontal-bar #:vertical-bar #:do-bars #:draw-chart #:make-chart-from #:make-chart-fr...
270ecca80b9f7948d5c5a52e9e97c1304984d3f373ad96e924bc188519d523b6
artyom-poptsov/guile-png
IEND.scm
;;; IEND.scm -- IEND chunk. Copyright ( C ) 2022 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any later version. ;; ;;...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-png/c7cc54fea67649d560da8c68782fd22fae32aede/modules/png/core/chunk/IEND.scm
scheme
IEND.scm -- IEND chunk. This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( C ) 2022 < > 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 PNG image final chunk ( IEND ) . The IEND chunk must appear last . ...
6a3d3e956a94c1bcf89dc798c71dd04a79bdafadd2f9a53ffca4f2d5a147041d
kronkltd/jiksnu
ciste.clj
{:environment :development :logger "jiksnu.logger" :modules [ "jiksnu.core" "jiksnu.modules.command" "jiksnu.modules.http" "jiksnu.modules.web" ] :services [ "ciste.services.http-kit" "ciste.services.nrepl" "jiksnu.plugins.goo...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/resources/ciste.clj
clojure
{:environment :development :logger "jiksnu.logger" :modules [ "jiksnu.core" "jiksnu.modules.command" "jiksnu.modules.http" "jiksnu.modules.web" ] :services [ "ciste.services.http-kit" "ciste.services.nrepl" "jiksnu.plugins.goo...
5dd21f8080792e5ccec7fc7c831d71f901cb5d581c2774f75e4877f26cdb8ce9
dyzsr/ocaml-selectml
array.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/stdlib/array.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Array operations . The labeled version of this module can be used as described in the { !...
d5a9c61dd071037bc0efdd4940629fa80257bbfd3f483950b0204861ee824155
vicampo/riposte
equals.rkt
#lang racket/base (require racket/match racket/hash (file "common.rkt")) (define (foo/bar req) (response/jsexpr (hash 'hey #f))) (define (post:foo/bar req) (match (cons (request->jsexpr req) (get-request-header req #"accept")) [(cons (? void?) _) (response/empty #:code 4...
null
https://raw.githubusercontent.com/vicampo/riposte/0a71e54539cb40b574f84674769792444691a8cf/examples/equals.rkt
racket
#lang racket/base (require racket/match racket/hash (file "common.rkt")) (define (foo/bar req) (response/jsexpr (hash 'hey #f))) (define (post:foo/bar req) (match (cons (request->jsexpr req) (get-request-header req #"accept")) [(cons (? void?) _) (response/empty #:code 4...
998351c597ea7abf57df40f9cb91a64cdd1f7e8f3c0993d05c0c667b6e1331c9
UU-ComputerScience/uhc
ForeignPtr.hs
# EXCLUDE_IF_TARGET js # {-# EXCLUDE_IF_TARGET cr #-} module ForeignPtr (module Foreign.ForeignPtr) where import Foreign.ForeignPtr
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/haskell98/ForeignPtr.hs
haskell
# EXCLUDE_IF_TARGET cr #
# EXCLUDE_IF_TARGET js # module ForeignPtr (module Foreign.ForeignPtr) where import Foreign.ForeignPtr
b08d63cf3424e5d37f13e0e2492b3f44adeab2cf04cb73afed46815ce924cc36
spawnfest/eep49ers
openssl_server_cert_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2019 - 2019 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/test/openssl_server_cert_SUITE.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 2019 - 2019 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(openssl_server_cert_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("public_key/include/pu...