_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
fa2a54d693cd33f9d306da993c98f9db7ea7a79b52030027e192b64214bdb617
ogaml/ogaml
sprite.ml
open OgamlMath exception Sprite_error of string type t = { texture : Texture.Texture2D.t ; subrect : OgamlMath.FloatRect.t ; mutable size : Vector2f.t ; mutable position : Vector2f.t ; mutable origin : Vector2f.t ; mutable rotation : float ; mutable scale : Vector2f.t; mutable color : Color...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/graphics/2d/sprite.ml
ocaml
Applies transformations to a point Position offset Scale Rotation
open OgamlMath exception Sprite_error of string type t = { texture : Texture.Texture2D.t ; subrect : OgamlMath.FloatRect.t ; mutable size : Vector2f.t ; mutable position : Vector2f.t ; mutable origin : Vector2f.t ; mutable rotation : float ; mutable scale : Vector2f.t; mutable color : Color...
ef976fa9f1be2c6f2154a48d85fc87faa5be275bb19a4b80a8857d74f0eb2484
lspector/Clojush
valiant.clj
;============== NOTE NOTE NOTE ================= This file has note been updated for Clojush 2.0 , and will likely not work ;============== NOTE NOTE NOTE ================= (ns clojush.problems.boolean.valiant (:use [clojush.pushgp.pushgp] [clojush.pushstate] [clojush.random] [clojush.inte...
null
https://raw.githubusercontent.com/lspector/Clojush/685b991535607cf942ae1500557171a0739982c3/src/clojush/problems/boolean/valiant.clj
clojure
============== NOTE NOTE NOTE ================= ============== NOTE NOTE NOTE ================= ugly way to define all of the input instructions, since I haven't fully grokked Clojure macros this gives the instructions: (registered-for-type "input") (rp (:program individual)) (println "output" output "answer" answer...
This file has note been updated for Clojush 2.0 , and will likely not work (ns clojush.problems.boolean.valiant (:use [clojush.pushgp.pushgp] [clojush.pushstate] [clojush.random] [clojush.interpreter] [clojure.math.numeric-tower])) 1000 ) 500 ) 5000 ) (def input-indices (vec (...
93a28bc02f89da1d8d2782602c9bdc79ec608a6ae63f06242888ee08ec304db9
clojurewerkz/ogre
vertex_test.clj
(ns clojurewerkz.ogre.suite.vertex-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat reverse shuffle sort]) (:require [clojurewerkz.ogre.core :refer :all]) (:import (org.apache.tinkerpop.gremlin.structure Direction) (org.apa...
null
https://raw.githubusercontent.com/clojurewerkz/ogre/cfc5648881d509a55f8a951e01d7b2a166e71d17/test/clojure/clojurewerkz/ogre/suite/vertex_test.clj
clojure
(ns clojurewerkz.ogre.suite.vertex-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat reverse shuffle sort]) (:require [clojurewerkz.ogre.core :refer :all]) (:import (org.apache.tinkerpop.gremlin.structure Direction) (org.apa...
416719113fba7d83541118859255915565b67f05c7cf93a2220325b14bed05ba
valderman/haste-compiler
Internals.hs
# LANGUAGE CPP , MagicHash , UnboxedTuples , NoImplicitPrelude , GHCForeignImportPrim # GHCForeignImportPrim #-} {-# OPTIONS_HADDOCK hide #-} Fast integer logarithms to base 2 . -- integerLog2# and wordLog2# are of general usefulness, -- the others are only needed for a fast implementatio...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/ghc-7.10/integer-gmp/GHC/Integer/Logarithms/Internals.hs
haskell
# OPTIONS_HADDOCK hide # integerLog2# and wordLog2# are of general usefulness, the others are only needed for a fast implementation of fromRational. Since they are needed in GHC.Float, we must expose this module, but it should not show up in the docs. TODO: fix roundingMode! When larger word sizes become common,...
# LANGUAGE CPP , MagicHash , UnboxedTuples , NoImplicitPrelude , GHCForeignImportPrim # GHCForeignImportPrim #-} Fast integer logarithms to base 2 . module GHC.Integer.Logarithms.Internals ( integerLog2# , integerLog2IsPowerOf2# , wordLog2# , roundingMode# ) where i...
57aa5bfd84d01116ed5ec83a219dfc3c5abfdf3177caa0e3a2da784b95505df0
rizo/snowflake-os
oprint.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) Proje...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/typing/oprint.mli
ocaml
********************************************************************* Objective Caml ...
Projet Cristal , INRIA Rocquencourt Copyright 2002 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 . $ Id$ open Format open Out...
ef1f8a7aa2f426f287db60f9c576cd128a85ba97b287bf9d0b62f055a970f6b4
dhil/hx
repl.ml
Read - Eval - Print loop let ps1 = "hx> " let evaluate ctxt _code = ctxt let execute_directive _oc _ctxt _d _payload = () module Directive = struct type t = Directive of string * string | UnknownDirective of string | Code of string | Noop let directives = [ ("?", (fun _bs -> ...
null
https://raw.githubusercontent.com/dhil/hx/23974728253ce107ef7fa63c6305d1f527ba9377/driver/repl.ml
ocaml
Read - Eval - Print loop let ps1 = "hx> " let evaluate ctxt _code = ctxt let execute_directive _oc _ctxt _d _payload = () module Directive = struct type t = Directive of string * string | UnknownDirective of string | Code of string | Noop let directives = [ ("?", (fun _bs -> ...
ea9933b154a9b9b5c054d7a0a00c606fb90775b2494459d15c4212740c91dbc5
pascal-knodel/haskell-craft
E'5'28.hs
-- -- -- ----------------- Exercise 5.28 . ----------------- -- -- -- module E'5'28 where import E'5'27 ( Book , Person , Database , books ) borrowers :: Database -> Book -> [Person] borrowers database book = [ currentPerson | ( currentPerson , currentBook ) <- database , ...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%205/E'5'28.hs
haskell
--------------- --------------- GHCi> borrowers exampleDB "Tintin" GHCi> isBorrowed exampleDB "Tintin" True
Exercise 5.28 . module E'5'28 where import E'5'27 ( Book , Person , Database , books ) borrowers :: Database -> Book -> [Person] borrowers database book = [ currentPerson | ( currentPerson , currentBook ) <- database , currentBook == book ] [ ...
f93af69d131cf8a4c6e0603334c5a6e1b51ae3a917b3e64c1e9e90e2d73868b1
abella-prover/abella
checks.ml
* Author : < > * Copyright ( C ) 2015 - 2018 Inria ( Institut National de Recherche * en Informatique et en Automatique ) * See LICENSE for licensing details . * Author: Kaustuv Chaudhuri <> * Copyright (C) 2015-2018 Inria (Institut National de Recherche * ...
null
https://raw.githubusercontent.com/abella-prover/abella/d3a2d56b750cab84c3bee46ab041d37ad5f8addd/src/checks.ml
ocaml
* Any stratification violation warnings are treated as errors Checks * The list of type parameters of a definition must be exactly those occuring in the type of the constants being defined Check that there is no parameterization of types at clause levels
* Author : < > * Copyright ( C ) 2015 - 2018 Inria ( Institut National de Recherche * en Informatique et en Automatique ) * See LICENSE for licensing details . * Author: Kaustuv Chaudhuri <> * Copyright (C) 2015-2018 Inria (Institut National de Recherche * ...
44e481b17d8b35cde98f20c4526cc9809a35653fc8a01256f2d43ec59da09233
mrkkrp/JuicyPixels-extra
Main.hs
module Main (main) where import Codec.Picture import Codec.Picture.Extra import Criterion.Main main :: IO () main = defaultMain [ bgroup "scaleBilinear" [ baction "512 × 512" (scaleBilinear 512 512) "data-examples/macaque.png", baction "256 × 256" (scaleBilinear 256 256) "data-examples...
null
https://raw.githubusercontent.com/mrkkrp/JuicyPixels-extra/07216facf8a322a0c57935240d7dd910faa25af4/bench/Main.hs
haskell
| Run a benchmark given a function to benchmark and where to get image to pass as the input. | Name of the benchmark | The transformation to perform | Where to get the image to start with
module Main (main) where import Codec.Picture import Codec.Picture.Extra import Criterion.Main main :: IO () main = defaultMain [ bgroup "scaleBilinear" [ baction "512 × 512" (scaleBilinear 512 512) "data-examples/macaque.png", baction "256 × 256" (scaleBilinear 256 256) "data-examples...
ab201a2c52c58b497704db50884a21445cacd4d4d3b0adaa2677822ce75efee2
apache/couchdb-chttpd
chttpd_handlers.erl
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 distributed under the License is distributed on an ...
null
https://raw.githubusercontent.com/apache/couchdb-chttpd/74002101513c03df74a4c25f3c892f5d003fa5da/src/chttpd_handlers.erl
erlang
the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --------------------------------------------------------...
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 distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(chttpd_handlers). -export([ url_handler/2, db_handler/2,...
f76863e791a5de193a7b1e0cd93e39d49fadac5289894e76a32e47e2df996624
vehicle-lang/vehicle
Internal.hs
# OPTIONS_GHC -Wno - missing - signatures # module Vehicle.Syntax.BNFC.Delaborate.Internal ( Delaborate, delab, ) where import Control.Monad.Identity (Identity (..)) import Data.List.NonEmpty qualified as NonEmpty (toList) import Data.Maybe (fromMaybe) import Data.Text (Text, pack) import Prettyprinter (Prett...
null
https://raw.githubusercontent.com/vehicle-lang/vehicle/3a3548f9b48c3969212ccb51e954d4d4556ea815/vehicle-syntax/src/Vehicle/Syntax/BNFC/Delaborate/Internal.hs
haskell
------------------------------------------------------------------------------ Conversion to BNFC AST ------------------------------------------------------------------------------ Implementation | Constraint for the monad stack used by the elaborator. * Conversion | Elaborate programs. | Elaborate declarations.
# OPTIONS_GHC -Wno - missing - signatures # module Vehicle.Syntax.BNFC.Delaborate.Internal ( Delaborate, delab, ) where import Control.Monad.Identity (Identity (..)) import Data.List.NonEmpty qualified as NonEmpty (toList) import Data.Maybe (fromMaybe) import Data.Text (Text, pack) import Prettyprinter (Prett...
8a7590541fb5cf28ac383b9e6cbdb612aeb349dfa86ea7dc9e523a34edf84c0d
MichaelXavier/Angel
Util.hs
# LANGUAGE NoImplicitPrelude # -- |various utility functions module Angel.Util ( sleepSecs , waitForWake , expandPath , split , strip , nnull ) where import Angel.Prelude import Control.Concurrent.STM (atomically ...
null
https://raw.githubusercontent.com/MichaelXavier/Angel/2d5a2f9ee50ad6755960398e3bb8a35f484eca0f/src/Angel/Util.hs
haskell
|various utility functions |sleep for `s` seconds in an thread |wait for the STM TVar to be non-nothing
# LANGUAGE NoImplicitPrelude # module Angel.Util ( sleepSecs , waitForWake , expandPath , split , strip , nnull ) where import Angel.Prelude import Control.Concurrent.STM (atomically , retry ...
6f456ebfd21634638db474a7ccac1c91f38f9a1a29bbcc010a46f7ef58241e57
WhatsApp/erlfmt
erlfmt_format.erl
Copyright ( c ) Facebook , Inc. and its affiliates . %% 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,...
null
https://raw.githubusercontent.com/WhatsApp/erlfmt/fa41b271db7127c7c078d8b7a1e808d556f50aae/src/erlfmt_format.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) Facebook , Inc. and its affiliates . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erlfmt_format). -include("erlfmt_scan.hrl"). -export([to_algebra/1, comments/1, comments_with_pre_dot/1]). -imp...
497667b27bff5d2985c06249063470261d43be11321848d0af66ed3ec83e81fb
Dale-M/mcron
redirect.scm
;;;; redirect.scm -- modify job outputs Copyright © 2003 < > Copyright © 2018 宋文武 < > ;;; This file is part of GNU Mcron . ;;; GNU Mcron is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either ver...
null
https://raw.githubusercontent.com/Dale-M/mcron/56308568da1c846698a4b2ad593a164133ab19cf/src/mcron/redirect.scm
scheme
redirect.scm -- modify job outputs (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Commentary: Provide the (with-mail-out action . user) procedure. T...
Copyright © 2003 < > Copyright © 2018 宋文武 < > This file is part of GNU Mcron . GNU Mcron 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 GNU Mcron is distri...
a8a53a96dcfee0b89f845e1a84a53380ddb4124453b71ee4c781725d8f5dd03d
input-output-hk/cardano-shell
Spec.hs
module Main where import Cardano.Prelude import Test.Hspec (describe, hspec) import qualified DaedalusIPCSpec as DaedalusIPC import NodeIPCSMSpec (nodeIPCSMSpec) import NodeIPCSpec (nodeIPCSpec) -- | Entry point for tests. main :: IO () main = hspec $ do describe "NodeIPC...
null
https://raw.githubusercontent.com/input-output-hk/cardano-shell/8e0d6f5548c1c13a9edfeb56e4ea27c0a6d10948/cardano-shell/test/Spec.hs
haskell
| Entry point for tests.
module Main where import Cardano.Prelude import Test.Hspec (describe, hspec) import qualified DaedalusIPCSpec as DaedalusIPC import NodeIPCSMSpec (nodeIPCSMSpec) import NodeIPCSpec (nodeIPCSpec) main :: IO () main = hspec $ do describe "NodeIPC state machine" nodeIPCSMSpe...
590afb81ce67f4e50f34f5c632f08d358b786ce6f1c3a8c99ccc3f466a36ac64
Kappa-Dev/KappaTools
data.ml
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/777835b82f449d3d379713df76ff25fd5926b762/core/simulation/data.ml
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF let print_initial_inputs ?uuid conf env inputs_form init = let noCounters = false in let () = match uuid with | None -> () | Some uuid -> Format.fprintf inputs_form "// \"uuid\" : \"%i\"@." uuid in let () = Format.fprintf inp...
d9e543bda272f25076b69b012c6df75078f2023b691a3965ad70e1056a8e8d92
jorams/birch
commands.lisp
Generic functions to send commonly used IRC messages . Some of those have an ;;;; awful lot of methods to cover all argument type variations, which should ;;;; probably be improved (Taped over with a little macro). (defpackage :birch/commands (:use :cl) (:import-from :birch/connection #:connection...
null
https://raw.githubusercontent.com/jorams/birch/50f1313cabb89c1ec2f275cdc4fb10bd145fdd9d/src/commands.lisp
lisp
awful lot of methods to cover all argument type variations, which should probably be improved (Taped over with a little macro). /RAW is used to send raw messages to the server. The idea to make it work
Generic functions to send commonly used IRC messages . Some of those have an (defpackage :birch/commands (:use :cl) (:import-from :birch/connection #:connection #:user #:socket-stream #:activep #:channel #:name ...
f8f9ec61862cd45be58a009eb48fae09cfa08cc15a6cf7065ec5856d61d52877
kostmo/circleci-failure-tracker
Replacer.hs
-- Alfred-Margaret: Fast Aho-Corasick string searching Copyright 2019 Channable -- Licensed under the 3 - clause BSD license , see the LICENSE file in the -- repository root. See for why these GHC flags are here . {-# OPTIONS_GHC -fllvm -O2 -optlo=-O3 -optlo=-tailcallelim -fno-ignore-asserts #-} {-# LANGUAGE Ba...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/Data/Text/AhoCorasick/Replacer.hs
haskell
Alfred-Margaret: Fast Aho-Corasick string searching repository root. # OPTIONS_GHC -fllvm -O2 -optlo=-O3 -optlo=-tailcallelim -fno-ignore-asserts # # LANGUAGE BangPatterns # # LANGUAGE DeriveAnyClass # * State machine | Descriptive type alias for strings to search for. | Descriptive type alias for replacements. ...
Copyright 2019 Channable Licensed under the 3 - clause BSD license , see the LICENSE file in the See for why these GHC flags are here . # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # | Implements sequential string replacements based on the Aho - Corasick algorithm . module Data.Text.AhoCorasick.R...
98348c3f45c44f14d7bd5d73ade1f1435d40b9c6d5fc5e34a6afdf95b18dfbde
ferd/pobox
pobox_buf.erl
%%%------------------------------------------------------------------- @copyright @author < > %% @doc Generic message buffer behaviour. For more %% information, see README.txt %% @end %%%------------------------------------------------------------------- -module(pobox_buf). %% Behaviour API -callback new() ...
null
https://raw.githubusercontent.com/ferd/pobox/c48c82c254b7d5f459b5cfbf84a68477fd31ecfc/src/pobox_buf.erl
erlang
------------------------------------------------------------------- @doc Generic message buffer behaviour. For more information, see README.txt @end ------------------------------------------------------------------- Behaviour API
@copyright @author < > -module(pobox_buf). -callback new() -> Buf :: any(). -callback push(Msg :: any(), Buf :: any()) -> Buf :: any(). -callback pop(Buf :: any()) -> {empty, Buf :: any()} | {{value, Msg :: any()}, Buf :: any()}. -callback drop(N :: pos_integer(), Buf :: any()) -> Buf ::any(). -callback pus...
b7a1b587ffc18b6282764c1d1aded5da857679a7a1caf4421b43575635560f01
puffnfresh/haskell-jwt
ExtendedTests.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Data.ByteString.ExtendedTests ( main , defaultTestGroup ) where import qualified Data.ByteString.Extended as BS import qualified Test.QuickCheck as QC im...
null
https://raw.githubusercontent.com/puffnfresh/haskell-jwt/260f9c358dc11ef3930653dd0ae3f3373fbd1c0c/tests/src/Data/ByteString/ExtendedTests.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module Data.ByteString.ExtendedTests ( main , defaultTestGroup ) where import qualified Data.ByteString.Extended as BS import qualified Test.QuickCheck as QC import Test.Tasty import ...
211a3f75dbd822eb523a09a99749dd4d8ae5089e0562c689314fd1563a51b203
avsm/eeww
test.ml
open Eio.Std module Ctf = Eio.Private.Ctf let () = Logs.(set_level ~all:true (Some Debug)); Logs.set_reporter @@ Logs.format_reporter (); Printexc.record_backtrace true let read_one_byte ~sw r = Fiber.fork_promise ~sw (fun () -> let r = Option.get (Eio_linux.get_fd_opt r) in Eio_linux.Low_level.a...
null
https://raw.githubusercontent.com/avsm/eeww/684af99c194ff082836dbb1ada05c8a023dbd844/lib/eio/lib_eio_linux/tests/test.ml
ocaml
Write a string to a pipe and read it out again.
open Eio.Std module Ctf = Eio.Private.Ctf let () = Logs.(set_level ~all:true (Some Debug)); Logs.set_reporter @@ Logs.format_reporter (); Printexc.record_backtrace true let read_one_byte ~sw r = Fiber.fork_promise ~sw (fun () -> let r = Option.get (Eio_linux.get_fd_opt r) in Eio_linux.Low_level.a...
136817c0a03d6bc14d1d72d0779f9b11e4857dbc1c9d9cef37671026098f5842
metabase/metabase
date_builder.cljc
(ns metabase.shared.formatting.internal.date-builder "The formatting strings are not standardized. Rather than wrangling with strings, this library defines a data structure for describing the format of date/time strings. A format is represented as a (JS or CLJS) list of keyword or string date fragments (`:year...
null
https://raw.githubusercontent.com/metabase/metabase/335d161f4075e8c3487e6d2cf4eb0d16209d95b4/shared/src/metabase/shared/formatting/internal/date_builder.cljc
clojure
Apr Fri AM
(ns metabase.shared.formatting.internal.date-builder "The formatting strings are not standardized. Rather than wrangling with strings, this library defines a data structure for describing the format of date/time strings. A format is represented as a (JS or CLJS) list of keyword or string date fragments (`:year...
7a987c438cf4d6e1d2e2f19a2f367bb73a76a3a9380f3a3ab241ca57cace543a
input-output-hk/plutus
Enum.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - omit - interface - pragmas # module PlutusTx.Enum (Enum(..)) where import PlutusTx.Bool (Bool (..), otherwise) import PlutusTx.Builtins import PlutusTx.Eq ((==)) import PlutusTx.ErrorCodes import PlutusTx.List import PlutusTx.Ord (Ord (..), Ordering (..)) import ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/441b849f2146bd72a4f73bf4b83fc1b9593578b0/plutus-tx/src/PlutusTx/Enum.hs
haskell
# LANGUAGE OverloadedStrings # that is greater than @x@, and 'error' if there is none. that is less than @x@, and 'error' if there is none. | Convert from an 'Integer'. | Convert to an 'Integer'. | Construct a list from the given range. # INLINABLE fromEnum # # INLINABLE fromEnum # # INLINABLE fromEnum # # INLIN...
# OPTIONS_GHC -fno - omit - interface - pragmas # module PlutusTx.Enum (Enum(..)) where import PlutusTx.Bool (Bool (..), otherwise) import PlutusTx.Builtins import PlutusTx.Eq ((==)) import PlutusTx.ErrorCodes import PlutusTx.List import PlutusTx.Ord (Ord (..), Ordering (..)) import PlutusTx.Trace | Class ' ' defi...
2f6868ae0321715f0227cdbf74fb86659733d469cfa9548d9013e26e20542eca
luqui/hothasktags
Main.hs
# LANGUAGE PatternGuards # {-# LANGUAGE PackageImports #-} module Main where import Options.Applicative import qualified Language.Haskell.Exts as L import System.IO import GHC.IO.Handle (HandlePosition) import qualified Data.Map.Strict as Map import qualified Language.Preprocessor.Cpphs as CPP import Control.Exceptio...
null
https://raw.githubusercontent.com/luqui/hothasktags/db9d8a0495ddaad71450f4aed9707bac95e3000b/Main.hs
haskell
# LANGUAGE PackageImports # file, line, end col XXX incorrect, need its member names for files without a module decl, i.e. implicit Main strip -XCPP foo.hs'" )) filemanip's globbing doesn't work properly filter empty strings
# LANGUAGE PatternGuards # module Main where import Options.Applicative import qualified Language.Haskell.Exts as L import System.IO import GHC.IO.Handle (HandlePosition) import qualified Data.Map.Strict as Map import qualified Language.Preprocessor.Cpphs as CPP import Control.Exception (ErrorCall(..), catch, evaluat...
96782c04963d30c4366f93acd0916c690ba7ed7be99813ca8938d83745fd0bbf
carl-eastlund/dracula
dracula-interfaces.rkt
#lang racket/gui (require drscheme/tool) (provide dracula-interfaces^ dracula-interfaces@) (define-signature dracula-interfaces^ (dracula-language-level<%> dracula-drscheme-frame<%> dracula-drscheme-tab<%> dracula-drscheme-definitions<%> dracula-proof-panel<%>)) (define-unit dracula-interface...
null
https://raw.githubusercontent.com/carl-eastlund/dracula/a937f4b40463779246e3544e4021c53744a33847/drscheme/dracula-interfaces.rkt
racket
dracula-mode : -> (Or 'acl2 'modular-acl2 #f) - 'acl2 means a single ACL2 proof/program - 'modular-acl2 means a modular program with multiple proofs dracula-mode : -> Boolean Prevents editing from position 0 to the given n. Highlights a region and "saves" the information for unhighlight-saved. unhighlight-saved ...
#lang racket/gui (require drscheme/tool) (provide dracula-interfaces^ dracula-interfaces@) (define-signature dracula-interfaces^ (dracula-language-level<%> dracula-drscheme-frame<%> dracula-drscheme-tab<%> dracula-drscheme-definitions<%> dracula-proof-panel<%>)) (define-unit dracula-interface...
a5df1ee296fe55942483161492dcaa3242367d2c8c6410f2ee90aecaa054e676
nklein/userial
package.lisp
Copyright ( c ) 2011 nklein software MIT License . See included LICENSE.txt file for licensing details . (defpackage :userial (:use :cl) (:export :buffer :get-buffer :make-buffer :with-buffer :buffer-length :buffer-capacity :buffer-advance ...
null
https://raw.githubusercontent.com/nklein/userial/dc34fc73385678a61c39e98f77a4443433eedb1d/userial/package.lisp
lisp
Copyright ( c ) 2011 nklein software MIT License . See included LICENSE.txt file for licensing details . (defpackage :userial (:use :cl) (:export :buffer :get-buffer :make-buffer :with-buffer :buffer-length :buffer-capacity :buffer-advance ...
9f377a1d7752e0cd52c63af9665915369bb9a8a64ca57c2b31aa37c90c874ef0
nuprl/gradual-typing-performance
collide-head-collide.rkt
#lang typed/racket/base (provide head-collide?) ;; ----------------------------------------------------------------------------- (require benchmark-util "data-posn-adapted.rkt") (require/typed/check "const-board-width.rkt" [BOARD-WIDTH Natural]) (require/typed/check "const-board-height.rkt" [BOARD-HEIGH...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/micro/snake/typed/collide-head-collide.rkt
racket
----------------------------------------------------------------------------- =============================================================================
#lang typed/racket/base (provide head-collide?) (require benchmark-util "data-posn-adapted.rkt") (require/typed/check "const-board-width.rkt" [BOARD-WIDTH Natural]) (require/typed/check "const-board-height.rkt" [BOARD-HEIGHT Natural]) (: head-collide? : (Posn . -> . Boolean)) (define (head-collide? p)...
610276c732e08243dbd34be929820f273973cf324c04deb56c0fafc2320e4a9d
CryptoKami/cryptokami-core
Util.hs
# LANGUAGE TypeFamilies # -- | SSC-related utilities. module Pos.Core.Ssc.Util ( getCommShares , mkSscProof ) where import Universum import Control.Lens (each, traverseOf) import qualified Data.HashMap.Strict as HM import Pos.Binary.Class (Bi (..), fromBi...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/core/Pos/Core/Ssc/Util.hs
haskell
| SSC-related utilities. | Get commitment shares. decode keys decode shares
# LANGUAGE TypeFamilies # module Pos.Core.Ssc.Util ( getCommShares , mkSscProof ) where import Universum import Control.Lens (each, traverseOf) import qualified Data.HashMap.Strict as HM import Pos.Binary.Class (Bi (..), fromBinary) import Pos.C...
0cf96f9ed22f47e97ae8b12d0190fa4c9ec91a9c208c462cef60533feae4fffa
icicle-lang/zebra-ambiata
Export.hs
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Zebra.Command.Export ( Export(..) , ExportOutput(..) , zebraExport , ExportError(..) , renderExportError ) where import Control.Monad.C...
null
https://raw.githubusercontent.com/icicle-lang/zebra-ambiata/394ee5f98b4805df2c76abb52cdaad9fd7825f81/zebra-cli/src/Zebra/Command/Export.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Zebra.Command.Export ( Export(..) , ExportOutput(..) , zebraExport , ExportError(..) , renderExportError ) where import Control.Monad.Catch (MonadCatch(..)) import ...
cb9b911c9ae2a615c388cca411435db64531bd487f08d5fcaaa31286e60240ca
airbus-seclab/bincat
gotoElimination.mli
C2Newspeak : compiles C code into Newspeak . Newspeak is a minimal language well - suited for static analysis . Copyright ( C ) 2009 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free S...
null
https://raw.githubusercontent.com/airbus-seclab/bincat/493a03890b3b472fd198ce58c7e9280abd0f9f93/ocaml/src/npk/c2newspeak/gotoElimination.mli
ocaml
C2Newspeak : compiles C code into Newspeak . Newspeak is a minimal language well - suited for static analysis . Copyright ( C ) 2009 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free S...
ddb042f9f51946facfe37d12dd490bc692b8a64707422844173fc0a3edce15a8
futurice/haskell-mega-repo
GitHub.hs
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # {-# LANGUAGE TypeFamilies #-} -- | Interface to @github-proxy@. m...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/e301c08c8dfdcca048fe82fecce6bb2d02e9558a/futurice-integrations/src/Futurice/Integrations/GitHub.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # | Interface to @github-proxy@. | Init Haxl data source. | Haxl github request. We execute queries in batches startTime <- currentTime Use for debugging: print (() <$ res) print (BSL.take 1000 $ HTTP.responseBody res) print (last $ B...
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TupleSections # module Futurice.Integrations.GitHub where import Control.Concurrent.Async (async, waitCatch) import Data.GADT.Compare ...
c1853cfdfd2c8214d71cb32937da47def6c8cedd2350fd95b7e181cdd7337649
codinuum/volt
event.ml
* This file is part of Bolt . * Copyright ( C ) 2009 - 2012 . * * Bolt is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation ; either version 3 of the License , or * ( at your option ) ...
null
https://raw.githubusercontent.com/codinuum/volt/546207693ef102a2f02c85af935f64a8f16882e6/src/library/event.ml
ocaml
* This file is part of Bolt . * Copyright ( C ) 2009 - 2012 . * * Bolt is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation ; either version 3 of the License , or * ( at your option ) ...
c4c67ed18ebf6dfa6b4840b325792779366e2b402d383819d6fa6b2dc5cc43f1
skanev/playground
73-tests.scm
(require rackunit rackunit/text-ui) (load "../73.scm") (define sicp-2.73-tests (test-suite "Tests for SICP exercise 2.73" (check-equal? (deriv '(+ x 3) 'x) 1) (check-equal? (deriv '(* x y) 'x) 'y) (check-equal? (deriv '(* (* x y) (+ x 3)) 'x) '...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/tests/73-tests.scm
scheme
(require rackunit rackunit/text-ui) (load "../73.scm") (define sicp-2.73-tests (test-suite "Tests for SICP exercise 2.73" (check-equal? (deriv '(+ x 3) 'x) 1) (check-equal? (deriv '(* x y) 'x) 'y) (check-equal? (deriv '(* (* x y) (+ x 3)) 'x) '...
c1cba6e877b737a204ea73765ebe4c084b53360f27f739e351cd1776cbbf9105
ghcjs/ghcjs-base
ST.hs
module JavaScript.TypedArray.DataView.ST ( STDataView , dataView , freeze, unsafeFreeze , thaw, unsafeThaw -- * reading , readInt8, unsafeReadInt8 , readInt16LE, readInt16BE, unsafeReadInt16LE, unsafeReadInt16BE , readInt32LE, readInt32BE, unsafeRea...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/JavaScript/TypedArray/DataView/ST.hs
haskell
* reading * writing | Create a 'DataView' for the whole 'ArrayBuffer' ^ start in bytes ^ length in bytes, remainder of buffer if 'Nothing' ^ buffer to view ^ start in bytes ^ length in bytes, remainder of buffer if 'Nothing' ^ buffer to view -------------------------------------------------------------------...
module JavaScript.TypedArray.DataView.ST ( STDataView , dataView , freeze, unsafeFreeze , thaw, unsafeThaw , readInt8, unsafeReadInt8 , readInt16LE, readInt16BE, unsafeReadInt16LE, unsafeReadInt16BE , readInt32LE, readInt32BE, unsafeReadInt32LE, unsafe...
76c3888d41ebece2fbf15f004bad1dd62363faaf84a3f8a0f59d8bd0b68d7f34
jashmenn/clover-algorithms
adaptive_random_search.clj
Adaptive Random Search in the Clojure Programming Language by < > Adapted from ' Clever Algorithms ' Project : (ns clover.algorithms.stochastic.adaptive-random-search (:require [clojure.contrib.math :as math])) (defn random-between [min max] (+ min (* (- max min) (Math/random)))) (defn random-vector...
null
https://raw.githubusercontent.com/jashmenn/clover-algorithms/16ae7669958b438bdc288f82e404bc7baedb0c6a/src/clj/clover/algorithms/stochastic/adaptive_random_search.clj
clojure
Adaptive Random Search in the Clojure Programming Language by < > Adapted from ' Clever Algorithms ' Project : (ns clover.algorithms.stochastic.adaptive-random-search (:require [clojure.contrib.math :as math])) (defn random-between [min max] (+ min (* (- max min) (Math/random)))) (defn random-vector...
e1a4f78096ef3afed0fa36c92ecd48ae602b1a1e7be83f0e436346a771d24042
etorreborre/registry
MakeSpec.hs
# LANGUAGE DataKinds # # OPTIONS_GHC -fno - warn - missing - signatures # module Test.Data.Registry.Make.MakeSpec where import Data.Registry import Data.Text as T (length) import Protolude import Test.Tasty.Extensions -- | Effectful creation with lifting test_lifted = test "functions can be lifted in order to partic...
null
https://raw.githubusercontent.com/etorreborre/registry/117e66b1bed3dda1901f406a5c8a7bd8a61e736e/test/Test/Data/Registry/Make/MakeSpec.hs
haskell
| Effectful creation with lifting -- test coerce
# LANGUAGE DataKinds # # OPTIONS_GHC -fno - warn - missing - signatures # module Test.Data.Registry.Make.MakeSpec where import Data.Registry import Data.Text as T (length) import Protolude import Test.Tasty.Extensions test_lifted = test "functions can be lifted in order to participate in building instances" $ do f...
9dd7e69355c932529619df87c1da96731b52278172db8612c7862ca9e89b0e5f
gigasquid/speech-acts-classifier
weka.clj
(ns speech-acts-classifier.weka (:require [clojure.java.io :as io]) (:import (weka.core.converters ConverterUtils$DataSource) (weka.classifiers Evaluation) (weka.classifiers.evaluation EvaluationUtils) (weka.classifiers.trees RandomForest) (java.util Random) (w...
null
https://raw.githubusercontent.com/gigasquid/speech-acts-classifier/4052f3b20a5fbbcacb298005fcaedf6f7df9b731/src/speech_acts_classifier/weka.clj
clojure
-> :expressive
(ns speech-acts-classifier.weka (:require [clojure.java.io :as io]) (:import (weka.core.converters ConverterUtils$DataSource) (weka.classifiers Evaluation) (weka.classifiers.evaluation EvaluationUtils) (weka.classifiers.trees RandomForest) (java.util Random) (w...
f87ade938fbfdfd272b0e55ede1c1f3f2584d76800318db4e4190f9dc5e56fb2
parapluu/Concuerror
race_info.erl
-module(race_info). -export([test/0]). test() -> P = self(), spawn(fun() -> P ! foo end), receive foo -> ok after 0 -> ok end.
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests-real/suites/output/src/race_info.erl
erlang
-module(race_info). -export([test/0]). test() -> P = self(), spawn(fun() -> P ! foo end), receive foo -> ok after 0 -> ok end.
452d3802aa6b50a4c73dbbb498a18421a8216da4f78689996711199d5a5f42b4
owickstrom/wickstrom.tech
Sample.hs
module Sample where data Animal = Dog | Cat isAfraidOf :: Animal -> Animal -> Bool isAfraidOf Cat Dog = True isAfraidOf _ _ = False result :: Bool result = Dog `isAfraidOf` Cat
null
https://raw.githubusercontent.com/owickstrom/wickstrom.tech/5aa7d5f6ceda04597a5d935081e24251435df1ca/blog/src/_posts/pandoc-beamer-examples/Sample.hs
haskell
module Sample where data Animal = Dog | Cat isAfraidOf :: Animal -> Animal -> Bool isAfraidOf Cat Dog = True isAfraidOf _ _ = False result :: Bool result = Dog `isAfraidOf` Cat
a3b1318a8ef93d7cf36dfa00f1414a26303e09299062e3e48136d0e808ea0dd6
basho/yokozuna
yz_diag.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 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 . You may ob...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/src/yz_diag.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 permissio...
Copyright ( c ) 2014 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 @doc T...
727f5e003d5a45da0657d0bc4dac7992902f94592a83e869e9a9546c55d5e064
esl/MongooseIM
mam_iq.erl
-module(mam_iq). -export([action/1]). -export([action_type/1]). -export([form_to_lookup_params/5]). -export([lookup_params_with_archive_details/4]). -import(mod_mam_utils, [maybe_microseconds/1, get_one_of_path/2, form_field_value_s/2]). -include("jlib.hrl"). -include("mongoose_rsm.hrl"). ...
null
https://raw.githubusercontent.com/esl/MongooseIM/05eb8f5af0ff174c437c1d4c0ab323e5ff099fc1/src/mam/mam_iq.erl
erlang
Contains page size value provided by client or enforced by server. It's a final value used by backend DB modules. unix_timestamp() is in microseconds Filtering by date Filtering by contact Filtering by body text Filtering Result Set based on message ids Affects 'policy-violation' for a case when: - user does n...
-module(mam_iq). -export([action/1]). -export([action_type/1]). -export([form_to_lookup_params/5]). -export([lookup_params_with_archive_details/4]). -import(mod_mam_utils, [maybe_microseconds/1, get_one_of_path/2, form_field_value_s/2]). -include("jlib.hrl"). -include("mongoose_rsm.hrl"). ...
075cc7b465b2586084e254476dfd874793b2be4099734999bf16ee896f83b9c8
evturn/haskellbook
12.02-how-i-learned-to-stop-worrying-and-love-nothing.hs
ifEvenAdd2 :: Integer -> Maybe Integer ifEvenAdd2 n = if even n then Just (n + 2) else Nothing type Name = String type Age = Integer data Person = Person Name Age deriving Show mkPerson :: Name -> Age -> Maybe Person mkPerson name age | name /= "" && age >= 0 = Just $ Person name...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/12/12.02-how-i-learned-to-stop-worrying-and-love-nothing.hs
haskell
ifEvenAdd2 :: Integer -> Maybe Integer ifEvenAdd2 n = if even n then Just (n + 2) else Nothing type Name = String type Age = Integer data Person = Person Name Age deriving Show mkPerson :: Name -> Age -> Maybe Person mkPerson name age | name /= "" && age >= 0 = Just $ Person name...
a3b258cb339642efe1153cd89e3978696a5da11b224230d204087e71088e6017
spectrum-finance/cardano-dex-backend
Main.hs
module Main where import Spectrum.Executor ( runApp ) import System.Environment ( getArgs ) main :: IO () main = do args <- getArgs runApp args
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-backend/47528f6a43124ab4f6849521d61dbb3fad476c19/amm-executor/app/Main.hs
haskell
module Main where import Spectrum.Executor ( runApp ) import System.Environment ( getArgs ) main :: IO () main = do args <- getArgs runApp args
c3ebbe92948e928b81dd06d5c8e739cabb2ba426c432b6d2ff0ed3182732930b
CSCfi/rems
slim_owners.clj
(ns rems.migrations.slim-owners (:require [clojure.test :refer [deftest is]] [hugsql.core :as hugsql] [rems.json :as json] [rems.config :refer [env]] [rems.db.core :as db])) (hugsql/def-db-fns-from-string " -- :name get-organizations :? :* SELECT id, data::TEXT F...
null
https://raw.githubusercontent.com/CSCfi/rems/4a7fbed6f1e0ae474b1badeaa641fd8e269c2f03/src/clj/rems/migrations/slim_owners.clj
clojure
creating this organization will preveng logging in but migration fixes it!
(ns rems.migrations.slim-owners (:require [clojure.test :refer [deftest is]] [hugsql.core :as hugsql] [rems.json :as json] [rems.config :refer [env]] [rems.db.core :as db])) (hugsql/def-db-fns-from-string " -- :name get-organizations :? :* SELECT id, data::TEXT F...
205eb2e4178dc987b0153e1b78bf1dd08f505272490e37e3a10c56b95cfec93d
AmpersandTarski/Ampersand
FSpec.hs
module Ampersand.FSpec ( module Ampersand.FSpec.FSpec, module Ampersand.FSpec.ShowHS, module Ampersand.FSpec.Instances, module Ampersand.FSpec.ToFSpec.Calc, module Ampersand.FSpec.ToFSpec.ADL2FSpec, module Ampersand.FSpec.ToFSpec.NormalForms, module Ampersand.FSpec.Motivations, module Ampe...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/cb2306a09ce79d5609ccf8d3e28c0a1eb45feafe/src/Ampersand/FSpec.hs
haskell
module Ampersand.FSpec ( module Ampersand.FSpec.FSpec, module Ampersand.FSpec.ShowHS, module Ampersand.FSpec.Instances, module Ampersand.FSpec.ToFSpec.Calc, module Ampersand.FSpec.ToFSpec.ADL2FSpec, module Ampersand.FSpec.ToFSpec.NormalForms, module Ampersand.FSpec.Motivations, module Ampe...
248d8c87663282e4126b89c5628c3793ffeadd10d6a092652bc46013ddefb6ac
zhangyz/llvm-slicing
WeiserADT.hs
# LANGUAGE BangPatterns , DeriveGeneric , NoMonomorphismRestriction , ViewPatterns , TemplateHaskell , FlexibleContexts # ViewPatterns,TemplateHaskell,FlexibleContexts #-} module LLVM.Slicing.Static.Weiser.WeiserADT where import GHC.Generics ( Generic ) import Control.DeepSeq import C...
null
https://raw.githubusercontent.com/zhangyz/llvm-slicing/8f0fe59d3259473f463140acc79f87a36c6049c4/src/LLVM/Slicing/Static/Weiser/WeiserADT.hs
haskell
----------- -------------------------------- ---- # SCC addRCatCallorExit # cg <- analysisEnvironment callGr rcm <- analysisEnvironment allRcMap allFuns = mapMaybe getFunc . callValueTargets cg rcm <- analysisEnvironment allRcMap rcm <- analysisEnvironment allRcMap # SCC updateRCSC # iInstCtr <- getInstC...
# LANGUAGE BangPatterns , DeriveGeneric , NoMonomorphismRestriction , ViewPatterns , TemplateHaskell , FlexibleContexts # ViewPatterns,TemplateHaskell,FlexibleContexts #-} module LLVM.Slicing.Static.Weiser.WeiserADT where import GHC.Generics ( Generic ) import Control.DeepSeq import C...
c9a5f194ed5e888851180a32bf1093c52709f18f9234198a536165371f7c2387
quux00/land-of-lisp-in-clojure
game_test.clj
(ns thornydev.doomdice.game-test (:use clojure.test thornydev.doomdice.game)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/quux00/land-of-lisp-in-clojure/2a15a89afa0cd04cf1757ccf7da289031e135165/dice-of-doom/test/thornydev/doomdice/game_test.clj
clojure
(ns thornydev.doomdice.game-test (:use clojure.test thornydev.doomdice.game)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
c80cca506a8c2400168d9514411cb47bc2b65a63a60ffeebcdbdbb04c6919ad0
pixlsus/registry.gimp.org_static
JMS-Sierpinski_triangle.scm
( c ) 2011 , ;; ;; 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. ;; ;; This program is distr...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/JMS-Sierpinski_triangle.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
( c ) 2011 , 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 (define (drawLine layer x1 y1 x2 y2 x3 y3) (let* ( (tempArray (make-...
927846a3876388fe6c420b4b0b188cccc64965a5b2fbb74872a05529ee221f1d
themetaschemer/malt
autodiff.rkt
#lang racket (require "autodiff/A-autodiff.rkt") (require "autodiff/B-prims.rkt") (require "autodiff/C-dualized-tensor-ops.rkt") (require "autodiff/D-test-helpers.rkt") (require "autodiff/E-print.rkt") (provide dual dual? ρ κ ∇ ∇¹ scalar? trace-print dual* map*) (provide prim1 prim2 ext1 ext2) (provide (rename-out (d...
null
https://raw.githubusercontent.com/themetaschemer/malt/78a04063a5a343f5cf4332e84da0e914cdb4d347/nested-tensors/autodiff.rkt
racket
#lang racket (require "autodiff/A-autodiff.rkt") (require "autodiff/B-prims.rkt") (require "autodiff/C-dualized-tensor-ops.rkt") (require "autodiff/D-test-helpers.rkt") (require "autodiff/E-print.rkt") (provide dual dual? ρ κ ∇ ∇¹ scalar? trace-print dual* map*) (provide prim1 prim2 ext1 ext2) (provide (rename-out (d...
164919de0bc9b19ee0a38d6012f86411637f25f9594cdc792798f040caeffb55
lokedhs/mastodon
button.lisp
(in-package :mastodon-gui) (defparameter *button-border* (clim:make-rgb-color 0.7 0.7 0.7)) (defparameter *button-background* (clim:make-rgb-color 0.95 0.95 0.95)) (declaim (optimize (speed 0) (safety 3) (debug 3))) (defclass button () ()) (defgeneric button/text (button) (:documentation "The button label")) (...
null
https://raw.githubusercontent.com/lokedhs/mastodon/ccef44a47702bae5336f1c41c4dd3ff07caa9b18/src/button.lisp
lisp
(in-package :mastodon-gui) (defparameter *button-border* (clim:make-rgb-color 0.7 0.7 0.7)) (defparameter *button-background* (clim:make-rgb-color 0.95 0.95 0.95)) (declaim (optimize (speed 0) (safety 3) (debug 3))) (defclass button () ()) (defgeneric button/text (button) (:documentation "The button label")) (...
125bc36ad99a4d995a47e4fdf888b6d0e4ee905800a351f3b3e757f47b89a878
manuel-serrano/bigloo
srfi4.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Llib / srfi4.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Llib/srfi4.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The Bigloo srfi-4 implementation */ *===========================...
* serrano / prgm / project / bigloo / runtime / Llib / srfi4.scm * / * Author : * / * Creation : Mon Nov 6 16:28:39 2006 * / * Last change : Fri Nov 14 08:05:50 2014 ( serrano ) * / * Cop...
cfc902d270c888952b8b19e9ed2c774406a1ccfbb05f5b204df880817882380a
ice1000/Kt2Dart
Modifiers.hs
# LANGUAGE ApplicativeDo # module Modifiers where import Control.Applicative import Control.Monad import Parsers import Annotations modifierP :: Parser String modifierP = foldr1 (<|>) ms where ms = [ classModifierP , accessModifierP , varianceAnnotationP , memberModifierP ,...
null
https://raw.githubusercontent.com/ice1000/Kt2Dart/be47a9ce7ad8edd242c06e9c53a1e253ac5d5a4a/src/Modifiers.hs
haskell
# LANGUAGE ApplicativeDo # module Modifiers where import Control.Applicative import Control.Monad import Parsers import Annotations modifierP :: Parser String modifierP = foldr1 (<|>) ms where ms = [ classModifierP , accessModifierP , varianceAnnotationP , memberModifierP ,...
a9b5105a0927d44173fba6afbc0a39e9f852bf3b1fdaf2a1867c9387b07fb8db
deadcode/Learning-CL--David-Touretzky
8.67.lisp
(defun legalp (x) (cond ((numberp x) t) (t (and (or (equal (second x) '+) (equal (second x) '-) (equal (second x) '*) (equal (second x) '/)) (legalp (first x)) (legalp (third x)))))) (let ((test1 '(legalp '4)...
null
https://raw.githubusercontent.com/deadcode/Learning-CL--David-Touretzky/b4557c33f58e382f765369971e6a4747c27ca692/Chapter%208/8.67.lisp
lisp
(defun legalp (x) (cond ((numberp x) t) (t (and (or (equal (second x) '+) (equal (second x) '-) (equal (second x) '*) (equal (second x) '/)) (legalp (first x)) (legalp (third x)))))) (let ((test1 '(legalp '4)...
2370ac050a594f992e3581ca53f6c5e8ca320e7288dc2703ae56d2201705cac8
janestreet/bonsai
color_list.mli
open! Core open! Bonsai_web type t = float Int.Map.t [@@deriving sexp, equal] type result = { view : Vdom.Node.t ; out : t ; reset : unit Effect.t } * The color - list component is used for both the " before " and " after " columns in the UI . It generates random int = > float maps , and exposes a UI ...
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/examples/node_with_map_children/color_list.mli
ocaml
open! Core open! Bonsai_web type t = float Int.Map.t [@@deriving sexp, equal] type result = { view : Vdom.Node.t ; out : t ; reset : unit Effect.t } * The color - list component is used for both the " before " and " after " columns in the UI . It generates random int = > float maps , and exposes a UI ...
6c3c918c5370e9f40a1c01ea9a6b15c177ad1813fd67abc29f89cbf7ec6c22e1
fortytools/holumbus
Application.hs
-- ---------------------------------------------------------------------------- | Module : . SearchApplication Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 The search web - serv...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Hayoo/HayooSnap/Hayoo/Search/Application.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------------------------------------------------ | Generate the actual response Output some information about the request. to make them avaliable ag...
| Module : . SearchApplication Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 The search web - service for the Hayoo Haskell API search engine . Module : Hayoo.SearchAppl...
f81aa325a8ff3d1171e231b7ed86e19854ede7db7288e08311e370a227780706
Bannerets/camlproto
Factorization.mli
open! Base val pq_factorize : Cstruct.t -> Cstruct.t * Cstruct.t * [ pq_factorize n ] , where [ n ] is a product of two prime numbers represented as a big endian byte array , factorizes [ n ] into a [ ( p , q ) ] pair . as a big endian byte array, factorizes [n] into a [(p, q)] pair. *) val pq_factorize_int...
null
https://raw.githubusercontent.com/Bannerets/camlproto/be0b193d0365421b1afc41498f568b582471f275/src/math/Factorization.mli
ocaml
open! Base val pq_factorize : Cstruct.t -> Cstruct.t * Cstruct.t * [ pq_factorize n ] , where [ n ] is a product of two prime numbers represented as a big endian byte array , factorizes [ n ] into a [ ( p , q ) ] pair . as a big endian byte array, factorizes [n] into a [(p, q)] pair. *) val pq_factorize_int...
0faa95080234e853ac2c1dc03a429d972cd5fc5ceb2eb516c80a7779f3e70214
lwhjp/rince
scope.rkt
#lang racket/base (require (for-syntax racket/list racket/match racket/trace syntax/id-table syntax/intdef) racket/stxparam turnstile/base "../link.rkt" (only-in "expression.rkt" [#...
null
https://raw.githubusercontent.com/lwhjp/rince/1a83bf0f72f8ca8352b8e115bbffce319619df56/lang/scope.rkt
racket
Expand, process declarations and collect lifts already declared TODO: old-style preamble TODO: can we combine some of this scope logic with translation-unit? Flatten label scopes so that we can jump into blocks TODO: (extern) function declarations Tests TODO: split this into separate test cases; check for error...
#lang racket/base (require (for-syntax racket/list racket/match racket/trace syntax/id-table syntax/intdef) racket/stxparam turnstile/base "../link.rkt" (only-in "expression.rkt" [#...
b562d1fe5693e794f76eefb00f2fcb71037f4978cf0e32354a1dbf9de2e1c63d
janestreet/core_bench
to_string.ml
open Core let float_to_string = Float.to_string_hum ~decimals:2 let float_opt_to_string = function | Some v -> float_to_string v | None -> "" ;;
null
https://raw.githubusercontent.com/janestreet/core_bench/746d2440aa10795f1ef286df64be46e7d4ff768c/internals/to_string.ml
ocaml
open Core let float_to_string = Float.to_string_hum ~decimals:2 let float_opt_to_string = function | Some v -> float_to_string v | None -> "" ;;
a66a19f977a937fe3cb1e3eb58bf85264ea9bf35a67e4a6d077d870fedd4951d
Clozure/ccl-tests
find-method.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jun 3 21:12:03 2003 ;;;; Contains: Tests for FIND-METHOD (in-package :cl-test) (eval-when (:load-toplevel :compile-toplevel :execute) (report-and-ignore-errors (defgeneric find-method-gf-01 (x))) (report-and-ignore-errors (defparameter *find-method...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/find-method.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for FIND-METHOD Error tests
Author : Created : Tue Jun 3 21:12:03 2003 (in-package :cl-test) (eval-when (:load-toplevel :compile-toplevel :execute) (report-and-ignore-errors (defgeneric find-method-gf-01 (x))) (report-and-ignore-errors (defparameter *find-method-gf-01-method1* (defmethod find-method-gf-01 ((x integer...
2a2c29a75993e69117f51d5c2bfc2802b30c4035d7486bb0d943ecbc761f3440
ariesteam/aries
carbon_ca.clj
Copyright 2011 The ARIES Consortium ( ) ;;; ;;; This file is part of ARIES. ;;; ;;; ARIES 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...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/models/carbon_ca.clj
clojure
This file is part of ARIES. ARIES is free software: you can redistribute it and/or modify it (at your option) any later version. ARIES 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 ...
Copyright 2011 The ARIES Consortium ( ) 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 Carbon model for Southern California (ns core.models.carbon-ca (:r...
cc84d7c6e607d79a3980488c0a80022fc6faa9a545da0c9c5a39b356c726ea38
ShamoX/admere
admereExceptions.ml
(** This is raised when vectors used has a different dimension *) exception AMR_IncoherentArguments (** This is raised when trying to access a node element when this is an other * cell element *) exception AMR_NotANode
null
https://raw.githubusercontent.com/ShamoX/admere/9a6211b3def99a8344454f88b64cce4a52ca4256/src/admereExceptions.ml
ocaml
* This is raised when vectors used has a different dimension * This is raised when trying to access a node element when this is an other * cell element
exception AMR_IncoherentArguments exception AMR_NotANode
46ea8af4c983065d32c6bd91da7656461fee287128ba689835cdb84e60991b76
gafiatulin/codewars
Simpson.hs
-- Simpson's Rule - Approximate Integration -- / module Codewars.G964.Simpson (simpson) where simpson :: Int -> Double simpson = sIntegrate ((*1.5) . (**3) . sin) 0 pi sIntegrate f a b n = (* (h/3)) . (+ f a ) . ( + f b) . sum . map g $ [1 .. pred n] where h = (b - a) / fromIntegral n g x = (if odd x...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/Simpson.hs
haskell
Simpson's Rule - Approximate Integration /
module Codewars.G964.Simpson (simpson) where simpson :: Int -> Double simpson = sIntegrate ((*1.5) . (**3) . sin) 0 pi sIntegrate f a b n = (* (h/3)) . (+ f a ) . ( + f b) . sum . map g $ [1 .. pred n] where h = (b - a) / fromIntegral n g x = (if odd x then (*4) else (*2)) . f . (+a) . (*h) . fromInt...
ee982fb9438a46345481d2f665225b0f371ade5e89eff0c88b4bbf73bdfda4e8
abid-mujtaba/haskell-cas
Show.hs
-- Defines a list of tests that test the "show" aspects of expressions -- that is, how they are rendered in to strings by the "show" function module UnitTests.Show where import Test.HUnit (Test(TestCase, TestLabel)) import CAS import UnitTests.Base tests = [ TestLabel "Rendering plain symbols" $ ...
null
https://raw.githubusercontent.com/abid-mujtaba/haskell-cas/077b4b7fb4366818dc1f76348d288bab260be968/test/UnitTests/Show.hs
haskell
Defines a list of tests that test the "show" aspects of expressions that is, how they are rendered in to strings by the "show" function
module UnitTests.Show where import Test.HUnit (Test(TestCase, TestLabel)) import CAS import UnitTests.Base tests = [ TestLabel "Rendering plain symbols" $ TestCase $ do aE "test1" "x" $ show x aE "test2" "y" $ show y aE "t...
8d5ec207a6e2ab1a40ae40fbb10cd6a8d3e7f524f85e98f46551646a55bdbaae
ChrisPenner/Type-Tac-Toe
TypeTacToe.hs
{-# language DeriveFunctor #-} # language KindSignatures # # language DataKinds # # language ViewPatterns # # language GADTs # {-# language TypeFamilies #-} module TypeTacToe where import Data.Function ((&)) -- | Either X, O, or Nothing data PieceT = X | O | N deriving (Show, Eq) data CoordT = A | B | C deriving...
null
https://raw.githubusercontent.com/ChrisPenner/Type-Tac-Toe/5563bf7bf2e51c4474a34e7420192de8628027e4/src/TypeTacToe.hs
haskell
# language DeriveFunctor # # language TypeFamilies # | Either X, O, or Nothing | A proxy type which represents a coordinate | Get the coord's actual value from a wrapper type | Utility function to alter a value inside a triple Can build get / set using `flip const ()` and `const x` respectively | New empty board ...
# language KindSignatures # # language DataKinds # # language ViewPatterns # # language GADTs # module TypeTacToe where import Data.Function ((&)) data PieceT = X | O | N deriving (Show, Eq) data CoordT = A | B | C deriving (Show, Eq) data Coord (a :: CoordT) where A' :: Coord 'A B' :: Coord 'B C' :: Coor...
859f5a9451dcc02654c6ae22902850adb02c252e2ff84fe02486fcbe56324ff3
dmjio/call-swift-from-haskell
Main.hs
module Main where main :: IO () main = say_hello foreign import ccall "say_hello" say_hello :: IO ()
null
https://raw.githubusercontent.com/dmjio/call-swift-from-haskell/d6c5a98888067d10e31e164bdcee2efd12b5934b/Main.hs
haskell
module Main where main :: IO () main = say_hello foreign import ccall "say_hello" say_hello :: IO ()
13b0de67207d662c44fea6d59906b159b81559236a77beb68cd1e9390ce32fbd
input-output-hk/project-icarus-importer
Configuration.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE Rank2Types #-} -- | Configuration for a node: values which are constant for the lifetime of -- the running program, not for the lifetime of the executable binary itself. module Pos.Launcher.Configuration ( Configuration (..) , HasConfigurations , Config...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/lib/src/Pos/Launcher/Configuration.hs
haskell
# LANGUAGE Rank2Types # | Configuration for a node: values which are constant for the lifetime of the running program, not for the lifetime of the executable binary itself. | Product of all configurations required to run a node. | Configuration yaml file location and the key to use. The file should in the map. ...
# LANGUAGE DeriveGeneric # module Pos.Launcher.Configuration ( Configuration (..) , HasConfigurations , ConfigurationOptions (..) , defaultConfigurationOptions , withConfigurations ) where import Universum import Data.Aeson (FromJSON (..), ToJSON (..),...
b8544af758e1f8685cc558d7d8e07fbaa1e58f038fe75327106e1f605893b08d
JacquesCarette/Drasil
UnitDefn.hs
{-# Language TemplateHaskell #-} -- | For defining units built from a concept. module Language.Drasil.Chunk.UnitDefn ( -- * Classes MayHaveUnit(getUnit), IsUnit(getUnits), TempHasUnit(findUnit), -- * Chunk Type UnitDefn(..), -- * Constructors makeDerU, newUnit, derUC, derUC', derUC'', fund, fund', d...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/9ab93415a83e7eb05baefc013b185cdad009069c/code/drasil-lang/lib/Language/Drasil/Chunk/UnitDefn.hs
haskell
# Language TemplateHaskell # | For defining units built from a concept. * Classes * Chunk Type * Constructors * Unit Relation Functions * Helpers | For defining units. It has a 'ConceptChunk' (that defines what kind of unit it is), a unit symbol, maybe another (when it is a synonym), perhaps a definition, and...
module Language.Drasil.Chunk.UnitDefn ( MayHaveUnit(getUnit), IsUnit(getUnits), TempHasUnit(findUnit), UnitDefn(..), makeDerU, newUnit, derUC, derUC', derUC'', fund, fund', derCUC, derCUC', derCUC'', unitWrapper, * Unit Combinators ( ' UnitEquation 's ) (^:), (/:), (*:), (*$), (/$), (^$), scale, s...
b79adcafcc846f14c49d991eacaa3531f17e450d3191c8c8ff41c4cf27b9db94
exoscale/clojure-kubernetes-client
v1_preferred_scheduling_term.clj
(ns clojure-kubernetes-client.specs.v1-preferred-scheduling-term (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-node-selector-term :refer :all] ) (:import (java.io File))) (declare v1-preferred-scheduling-term-data v1-pref...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_preferred_scheduling_term.clj
clojure
(ns clojure-kubernetes-client.specs.v1-preferred-scheduling-term (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-node-selector-term :refer :all] ) (:import (java.io File))) (declare v1-preferred-scheduling-term-data v1-pref...
8fbc4f70a7e72d55f06ba68ae73d4629659abd636cd5131e191ff6636c21daa6
alekras/erl.mqtt.server
mqtt_rest.erl
%% Copyright ( C ) 2015 - 2022 by ( ) %% 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 ...
null
https://raw.githubusercontent.com/alekras/erl.mqtt.server/8d3d2a24a089ccb502e3be8ab56f430358a7952c/apps/mqtt_rest/src/mqtt_rest.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright ( C ) 2015 - 2022 by ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mqtt_rest). -behaviour(application). -export([start/2]). -export([stop/1]). start(_Type, _Args) -> Port = application:get_env(...
ffa286931839a3de6d5c0fa51bb9e550ce4cb6cb025b7970c4373604e56389fb
theodormoroianu/SecondYearCourses
HaskellChurch_20210415164049.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415164049.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always chooses the first alternativ...
d23fde47300a394d4997206e7f0d2103132cc8648488e3ba8f452f2cbde67fd4
AndrasKovacs/ELTE-func-lang
Notes01.hs
# options_ghc -Wincomplete - patterns # # LANGUAGE InstanceSigs , ScopedTypeVariables , TypeApplications # module Notes01 where -- GHCi commands: -- :l File.hs Load the file File.hs -- :r Reload the loaded file -- expr Evaluate the expression `expr` -- :t expr Display the type of the expr...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/88d41930999d6056bdd7bfaa85761a527cce4113/2020-21-2/gyak_4/Notes01.hs
haskell
GHCi commands: :l File.hs Load the file File.hs :r Reload the loaded file expr Evaluate the expression `expr` :t expr Display the type of the expression `expr` :i expr Display information about the name `expr` Typed holes: display the expected type of a hole and ...
# options_ghc -Wincomplete - patterns # # LANGUAGE InstanceSigs , ScopedTypeVariables , TypeApplications # module Notes01 where ( In vscode : place your cursor on _ and press F8 to Uncomment the following lines and try to press F8 on each hole ! ex0 , ex1 , , ex3 , ex4 : : ( ( a , b ) - > c ) - > b - > a ...
1042573ea14dfb3d1337af31484ecc68913034aae539ec3e89467c1e3256c8e9
tweag/funflow2
Types.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Docker.API.Client.Internal.Types where import Control.Monad.Except import qualified Data.Text as T import GHC.Generics (Generic) import Docker.API.Client.Images (tagImageIfMissing) -- | Alias for the system type returned by System.Info.os newtype O...
null
https://raw.githubusercontent.com/tweag/funflow2/642cbb6a1eb3c03b31fe32d22886e4eba4b877cc/docker-client/src/Docker/API/Client/Internal/Types.hs
haskell
# LANGUAGE OverloadedStrings # | Alias for the system type returned by System.Info.os | This type describes common errors the docker client might encounter | The request to create a new container failed | The docker engine API responded with something we didn't expect | The docker engine API responded with an erro...
# LANGUAGE DeriveGeneric # module Docker.API.Client.Internal.Types where import Control.Monad.Except import qualified Data.Text as T import GHC.Generics (Generic) import Docker.API.Client.Images (tagImageIfMissing) newtype OS = OS String data DockerClientError ContainerCreationFailedError String Unrecognize...
0f5601ce423241f85a521aaed2efe3339f83b13fb86a04b898807b56aa6fa940
basho/riak_cs
riak_cs_gc_batch.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2015 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_gc_batch.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 - 2015 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 ...
d0229bdae747ff83e8ba64e591441aadeb49e8ff7902664927cca492f0e06d5c
nebogeo/scheme-bricks
smartbomb.scm
(define (smartbomb c) (foreach (lambda (c) (smartbomb c) (with-primitive c (pdata-map! (lambda (p) (vadd p (srndvec))) "p"))) (get-children))) (smartbomb 0)
null
https://raw.githubusercontent.com/nebogeo/scheme-bricks/d275062afef867610fda30ffa016e90b85a953c5/smartbomb.scm
scheme
(define (smartbomb c) (foreach (lambda (c) (smartbomb c) (with-primitive c (pdata-map! (lambda (p) (vadd p (srndvec))) "p"))) (get-children))) (smartbomb 0)
af3c1b241b44b413405fd5a015fd4aa2991f37b7f2210cce29d867d3f9d78b4e
exercism/haskell
Tests.hs
import Data.Bifunctor (first) import Data.List (foldl') import Data.Set (toAscList) import Data.Tuple (swap) import Test.Hspec (Spec, it, shouldBe, shouldMatchList) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import qualified Data.Map as Map import Counting (C...
null
https://raw.githubusercontent.com/exercism/haskell/f81ee7dc338294b3dbefb7bd39fc193546fcec26/exercises/practice/go-counting/test/Tests.hs
haskell
import Data.Bifunctor (first) import Data.List (foldl') import Data.Set (toAscList) import Data.Tuple (swap) import Test.Hspec (Spec, it, shouldBe, shouldMatchList) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import qualified Data.Map as Map import Counting (C...
8c535164952f953c495c91c4c6579f7425c5150175a3da774cab0703f9dd66d0
yesodweb/serversession
Internal.hs
-- | Internal module exposing the guts of the package. Use at -- your own risk. No API stability guarantees apply. module Web.ServerSession.Frontend.Wai.Internal ( withServerSession , sessionStore , mkSession , KeyValue(..) , createCookieTemplate , calculateMaxAge , forceInvalidate ) where import Con...
null
https://raw.githubusercontent.com/yesodweb/serversession/bdede5fb660890df670f103d64a5e69024b13e57/serversession-frontend-wai/src/Web/ServerSession/Frontend/Wai/Internal.hs
haskell
| Internal module exposing the guts of the package. Use at your own risk. No API stability guarantees apply. | Construct the @wai-session@ middleware using the given storage backend and options. This is a convenient function that uses 'WS.withSession', 'createState', 'sessionStore', 'getCookieName' and 'create...
module Web.ServerSession.Frontend.Wai.Internal ( withServerSession , sessionStore , mkSession , KeyValue(..) , createCookieTemplate , calculateMaxAge , forceInvalidate ) where import Control.Applicative as A import Control.Monad (guard) import Control.Monad.IO.Class (MonadIO(..)) import Data.ByteString...
370d914159a54269fbb6d891541485a38345a504c3485580e52986b60c485bf3
nikita-volkov/rerebase
Profiling.hs
module GHC.Profiling ( module Rebase.GHC.Profiling ) where import Rebase.GHC.Profiling
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/Profiling.hs
haskell
module GHC.Profiling ( module Rebase.GHC.Profiling ) where import Rebase.GHC.Profiling
1425f15db3267a87cc657fcd5ab3df4e1c824d9f78a66d3823d55db114ddd954
mruegenberg/Hs-Game
NormalForm.hs
{-# LANGUAGE GADTs #-} module Math.GameTheory.Internal.NormalForm ( module Math.GameTheory.Common, module Math.GameTheory.Internal.Common, Game(..), insertPos ) where import Math.GameTheory.Common import Math.GameTheory.Internal.Common import Data.Array import TypeLevel.NaturalNumber -- | The main game ...
null
https://raw.githubusercontent.com/mruegenberg/Hs-Game/730e964edf49a40e15d953043769ba3308d59280/Math/GameTheory/Internal/NormalForm.hs
haskell
# LANGUAGE GADTs # | The main game type. Usually, use the `mkGame` functions to construct a game.
module Math.GameTheory.Internal.NormalForm ( module Math.GameTheory.Common, module Math.GameTheory.Internal.Common, Game(..), insertPos ) where import Math.GameTheory.Common import Math.GameTheory.Internal.Common import Data.Array import TypeLevel.NaturalNumber data Game n where Game :: (NaturalNumbe...
d4437e2b9c731c59de455830d9d7488f5d75bebedb8062090dc0f83c4b9d53c1
bubba/lsp-test
Test.hs
{-# LANGUAGE TypeInType #-} {-# LANGUAGE GADTs #-} # LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} import Test.Hspec import Data.Aeson import Data.Default import qualified Data.HashMap.Strict as HM import ...
null
https://raw.githubusercontent.com/bubba/lsp-test/e5f79572bad3163f6f60a3f9254e8eda9e78f8b9/test/Test.hs
haskell
# LANGUAGE TypeInType # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE DeriveAnyClass # won't receive a request - will timeout incoming logging requests shouldn't increase the timeout wait just a bit longer than 5 seconds so we have time to open the document shouldn't timeout longer than the origin...
# LANGUAGE DuplicateRecordFields # # LANGUAGE DeriveGeneric # import Test.Hspec import Data.Aeson import Data.Default import qualified Data.HashMap.Strict as HM import Data.Either import Data.Maybe import qualified Data.Text as T import Control.Applicative.Co...
94e600acafe2c6a83ccc50c830dca8feb746795877231b8fda17cbbeb5b37a31
EligiusSantori/L2Apf
action.scm
; l2j/gameserver/clientpackets/Action.java (module system racket/base (require "../../packet.scm") (provide game-client-packet/action) (define (game-client-packet/action object-id origin shift?) (let ((s (open-output-bytes))) (begin (write-byte #x04 s) (write-int32 object-id #f s) (write-...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/client/action.scm
scheme
l2j/gameserver/clientpackets/Action.java
(module system racket/base (require "../../packet.scm") (provide game-client-packet/action) (define (game-client-packet/action object-id origin shift?) (let ((s (open-output-bytes))) (begin (write-byte #x04 s) (write-int32 object-id #f s) (write-point origin s) (write-byte (if shift? ...
6c9b42cfc7ec3432f7a3a95ab6f2e4ba5689c7a1069471bc3ef7ebb9d5681126
tlaplus/tlapm
prep.ml
Preparation of proof obligations , and calls to backends . Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) (** Backend preparations *) open Ext open Property open Expr.T open Expr.Subst open Proof.T open Types let debug = Printf.e...
null
https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/backend/prep.ml
ocaml
* Backend preparations let debug_time name f x = let t0 = Sys.time () in try let res = f x in Printf.eprintf "%s returns; time: %f\n%!" name (Sys.time () -. t0); res with e -> Printf.eprintf "%s raises; time: %f\n%!" name (Sys.time () -. t0); raise e let expand_defs ?(what = fun _ -> true)...
Preparation of proof obligations , and calls to backends . Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) open Ext open Property open Expr.T open Expr.Subst open Proof.T open Types let debug = Printf.eprintf let vprintf fmt = ...
c3f4c395166167b201f758194a852d398c830ae3aa736222e732505d5c7a87db
NethermindEth/horus-checker
Std.hs
# LANGUAGE OverloadedLists # module Horus.SW.Std (FuncSpec (..), stdSpecs, trustedStdFuncs, mkReadSpec, mkWriteSpec, stdSpecsList) where import Data.Map (Map) import Data.Map qualified as Map (fromList) import Data.Text (Text) import Horus.Expr (Expr (ExitField), (.&&), (.<), (.<=), (.==)) import Horus.Expr qualifie...
null
https://raw.githubusercontent.com/NethermindEth/horus-checker/b4ce60c7739a0d12dab6c9b2ff87719b321f6200/src/Horus/SW/Std.hs
haskell
| A list of names of trusted standard library functions. These functions will not be checked against their specifications. | A lexicographically sorted by fs_name list of specifications of standard library functions. The list should be lexicographically sorted by function name. It doesn't impact correctness of the...
# LANGUAGE OverloadedLists # module Horus.SW.Std (FuncSpec (..), stdSpecs, trustedStdFuncs, mkReadSpec, mkWriteSpec, stdSpecsList) where import Data.Map (Map) import Data.Map qualified as Map (fromList) import Data.Text (Text) import Horus.Expr (Expr (ExitField), (.&&), (.<), (.<=), (.==)) import Horus.Expr qualifie...
bb09b077285af2b3809f17623b62d3ae7f27bb211d4cd8fabd736ca35726620c
sids/nerchuko
tennis.clj
(ns nerchuko-test.classification.naive-bayes.tennis (:use nerchuko.classification nerchuko.utils nerchuko.helpers) (:use clojure.test)) (def training-dataset [[#{:sunny :hot :high :weak} :no] [#{:sunny :hot :high :strong} :no] [#{:overcast :hot :high :w...
null
https://raw.githubusercontent.com/sids/nerchuko/8aa56497dd8e93e868713dd542667a56215522fb/test/nerchuko_test/classification/naive_bayes/tennis.clj
clojure
(ns nerchuko-test.classification.naive-bayes.tennis (:use nerchuko.classification nerchuko.utils nerchuko.helpers) (:use clojure.test)) (def training-dataset [[#{:sunny :hot :high :weak} :no] [#{:sunny :hot :high :strong} :no] [#{:overcast :hot :high :w...
e5fe7a9a9464b385b06b601d334355c288e64b8b6dea458c42ee80f877506324
ocaml-community/obus
gen_random.ml
* gen_random.ml * ------------- * Copyright : ( c ) 2008 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * gen_random.ml * ------------- * Copyright : (c) 2008, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml i...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/tests/gen_random.ml
ocaml
Generate a random non-empty string Generate an object path Generate a valid (interface/bus/error) name Generate a valid member name In the following functions, [count] is the number of terminals (basic types/values) and [deep] is the current number of containers nesting
* gen_random.ml * ------------- * Copyright : ( c ) 2008 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * gen_random.ml * ------------- * Copyright : (c) 2008, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml i...
d6323c98b61be76ce19b6c6f8fc9954a047898d7314412d5c5de0789b0d25ba2
day8/re-frame-10x
interop.clj
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.interop) ; taken from cljs.core -oops/issues/14 (defmacro unchecked-aget ([array idx] (list 'js* "(~{}[~{}])" array idx)) ([array idx & idxs] (let [astr (apply str (repeat (count idxs) "[~{}]"))] `(~'js* ~(str "(~{}[...
null
https://raw.githubusercontent.com/day8/re-frame-10x/d8dcb17e217449aba2cf64b9f843b0e9f86cfcb6/gen-src/day8/re_frame_10x/inlined_deps/reagent/v1v0v0/reagent/interop.clj
clojure
taken from cljs.core taken from cljs.core
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.reagent.v1v0v0.reagent.interop) -oops/issues/14 (defmacro unchecked-aget ([array idx] (list 'js* "(~{}[~{}])" array idx)) ([array idx & idxs] (let [astr (apply str (repeat (count idxs) "[~{}]"))] `(~'js* ~(str "(~{}[~{}]" astr ")") ~array ...
7c3ec651d1627930547b7db7a82781a81541c27879351086ce1dba836c6c6049
arttuka/reagent-material-ui
toggle_button.cljs
(ns reagent-mui.material.toggle-button "Imports @mui/material/ToggleButton as a Reagent component. Original documentation is at -ui/api/toggle-button/ ." (:require [reagent.core :as r] ["@mui/material/ToggleButton" :as MuiToggleButton])) (def toggle-button (r/adapt-react-class (.-default MuiToggleBu...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/toggle_button.cljs
clojure
(ns reagent-mui.material.toggle-button "Imports @mui/material/ToggleButton as a Reagent component. Original documentation is at -ui/api/toggle-button/ ." (:require [reagent.core :as r] ["@mui/material/ToggleButton" :as MuiToggleButton])) (def toggle-button (r/adapt-react-class (.-default MuiToggleBu...
4024fbb5670054d03cc1ce941fcbbbbaa9bf1f9d83323fe6cb71cab00c5bdce1
bbatsov/lein-annotations
annotations.clj
(ns leiningen.annotations (:require [clojure.string :as str] [clojure.java.io :as io])) (def default-annotations ["TODO" "FIXME" "OPTIMIZE" "REFACTOR"]) (defn project-files "Obtain a list of all Clojure files in the current project." [project-dir] (filter #(re-matches #".+\.clj(|s|c)$" (.getName %...
null
https://raw.githubusercontent.com/bbatsov/lein-annotations/6d85b25ccfb715865ec8d173ec66a129cc521beb/src/leiningen/annotations.clj
clojure
(ns leiningen.annotations (:require [clojure.string :as str] [clojure.java.io :as io])) (def default-annotations ["TODO" "FIXME" "OPTIMIZE" "REFACTOR"]) (defn project-files "Obtain a list of all Clojure files in the current project." [project-dir] (filter #(re-matches #".+\.clj(|s|c)$" (.getName %...
68ff283dc96aad96bdca97861247e97a71107c44d16d663d151ac607b44167dd
dalaing/little-languages
Infer.hs
# LANGUAGE FlexibleContexts # module Type.Infer where import Control.Lens (preview) import Control.Monad.Except import Control.Monad.Error.Lens import Data.Foldable (asum) import Data.Maybe (fromMaybe) import Term import Type import Type.Error inferTmZero :: Monad m => Term -> Maybe (m Ty...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/nb/src/Type/Infer.hs
haskell
# LANGUAGE FlexibleContexts # module Type.Infer where import Control.Lens (preview) import Control.Monad.Except import Control.Monad.Error.Lens import Data.Foldable (asum) import Data.Maybe (fromMaybe) import Term import Type import Type.Error inferTmZero :: Monad m => Term -> Maybe (m Ty...
2f1d689830a55b99ae3e05f689f0e991282588a5be97bc186dcc80fae4060139
strint/sicpAns
1016_exponentiation_iterative.scm
(define (i-expt b n) (iter-expt b n b 1 1)) (define (iter-expt b n a k c) (if (= n 0) c n=[may have some 0,may have some 1]1 or [ must have some 1 , may have some 0]0 ( binary ) ((= (- n (* 2 k)) 0) (iter-expt b 0 b 0 (* a a c))) ;n=1[all 0] (binary) (else (iter-expt b n (* a a) (* 2 ...
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/1.2.4-4_OrdersOfGrowthExponent/1016_exponentiation_iterative.scm
scheme
n=1[all 0] (binary)
(define (i-expt b n) (iter-expt b n b 1 1)) (define (iter-expt b n a k c) (if (= n 0) c n=[may have some 0,may have some 1]1 or [ must have some 1 , may have some 0]0 ( binary ) (else (iter-expt b n (* a a) (* 2 k) c)))))
398dbf72e9913a230124b889ad05edc73f92d5208a564d01ee8466785285c969
kmicinski/cmsc330examples
typeslec.ml
let fold (update : 'a -> 'b -> 'a) initial l = let rec h acc l = match l with | [] -> acc | hd::tl -> h (update acc hd) tl in h initial l let l = [13; 12; 16] let initial = 0 let update x y = x + y let sum_all_the_values = fold update initial;; let invert x = -x;; let filter (f : 'a -> bool) (l : 'a ...
null
https://raw.githubusercontent.com/kmicinski/cmsc330examples/78f5acaaae25f11a39817673433efcf33271df6d/ocaml/typeslec.ml
ocaml
let fold (update : 'a -> 'b -> 'a) initial l = let rec h acc l = match l with | [] -> acc | hd::tl -> h (update acc hd) tl in h initial l let l = [13; 12; 16] let initial = 0 let update x y = x + y let sum_all_the_values = fold update initial;; let invert x = -x;; let filter (f : 'a -> bool) (l : 'a ...
5cfdffbfae51d286cc59ecc923dc001850cf6b17328916d95cfdd0660c520a50
aiju/lilith
builtin.ml
open Ast open Type let vars = List.map (fun (a,b,c) -> (Symbol.get a, b, c)) [ "int", TypeLit Int, Type; "bool", TypeLit Bool, Type; "string", TypeLit String, Type ] let tab : (Symbol.t, unit ast_p * typ) H.t = let h = H.create 0 in List.iter (fun (a,b,c) -> H.add h a (b,c)) vars; h
null
https://raw.githubusercontent.com/aiju/lilith/56a34309abb016d75c7aa25937f9350f337287d7/eva/builtin.ml
ocaml
open Ast open Type let vars = List.map (fun (a,b,c) -> (Symbol.get a, b, c)) [ "int", TypeLit Int, Type; "bool", TypeLit Bool, Type; "string", TypeLit String, Type ] let tab : (Symbol.t, unit ast_p * typ) H.t = let h = H.create 0 in List.iter (fun (a,b,c) -> H.add h a (b,c)) vars; h
c3f6154f7a17c0983ef51756bee277a9a3e80e1ac0b76adc796fc5e42fce501d
clj-kondo/clj-kondo
core.cljs
(ns cljs.core) (cond 1 2)
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/corpus/cond_without_else/core.cljs
clojure
(ns cljs.core) (cond 1 2)
93f35a129f6aca2f43fae8a0b91069d5f7ef99411ecd136c7e93c987b3dacfa7
squaresLab/footpatch
footpatch_utils.ml
module F = Format module L = Logging module FL = Footpatch_log module Monad = struct type 'a t = 'a option let return a = Some a let bind f = function | None -> None | Some a -> f a let (>>=) x f = bind f x end open Monad let fs = Format.sprintf let create_new_dir ~dir = let (//) = Filename...
null
https://raw.githubusercontent.com/squaresLab/footpatch/8b79c1964d89b833179aed7ed4fde0638a435782/infer/src/footpatch/footpatch_utils.ml
ocaml
* Internal types by infer are usually called something like "class <typ> *". Normalize the name by stripping out class, and * at end * Utility functions for pulling out things we care about * Resolve program variables from logical variables * Pvar extraction for allocations Same as above, but void type * Climb...
module F = Format module L = Logging module FL = Footpatch_log module Monad = struct type 'a t = 'a option let return a = Some a let bind f = function | None -> None | Some a -> f a let (>>=) x f = bind f x end open Monad let fs = Format.sprintf let create_new_dir ~dir = let (//) = Filename...
e806352a98a087b4dd07d59fa767718096e5339b0856cc13081ce1445d1bacba
russmatney/reframe-games
util.cljs
(ns games.views.util) (defn with-precision [p num] (let [num (or num 0)] (.toFixed num p)))
null
https://raw.githubusercontent.com/russmatney/reframe-games/ff05f6ad4794e4505b6231522af0c90c3e212631/src/games/views/util.cljs
clojure
(ns games.views.util) (defn with-precision [p num] (let [num (or num 0)] (.toFixed num p)))
449f0bb4fbbd2310feaacec1a4b131331fcb8bb2aaa41d7f29f6ccfd762fe43c
amccausl/Swish
N3FormatterTest.hs
-------------------------------------------------------------------------------- $ I d : N3FormatterTest.hs , v 1.21 2004/01/09 12:57:08 graham Exp $ -- Copyright ( c ) 2003 , . All rights reserved . -- See end of this file for licence information. -----------------------------------------------------...
null
https://raw.githubusercontent.com/amccausl/Swish/9a7356300960c62e3f0468067bda0c34ee3606bd/Swish/HaskellRDF/N3FormatterTest.hs
haskell
------------------------------------------------------------------------------ See end of this file for licence information. ------------------------------------------------------------------------------ | Module : N3FormatterTest Stability : provisional Portability : H98 -------------...
$ I d : N3FormatterTest.hs , v 1.21 2004/01/09 12:57:08 graham Exp $ Copyright ( c ) 2003 , . All rights reserved . Copyright : ( c ) 2003 , License : GPL V2 Maintainer : This Module defines test cases for module parsing functions . WNH module Swish . HaskellRD...
ff2e3321604b7e08d0538cc17285b7fa7826682ecb5458c06933209e01d0efad
facebook/pyre-check
baseConfigurationTest.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/601b8acd9561519361d2878c0ea10697608ca893/source/command/test/baseConfigurationTest.ml
ocaml
Empty. Mandatory fields must exist with the right type. Test simple source path Test buck source path
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
3f5d8f9d4c1bd530a06863664d69ca82ee5faa6dbd7c63b90d544a5d3cff6388
rtrusso/scp
debug.scm
(need sasm/machdesc) (define (nasm-x86-debug) (machine-description (instruction (input-pattern `(perform (op break))) (rewrite-rule "int 3")) ))
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/sasm/nasmx86/debug.scm
scheme
(need sasm/machdesc) (define (nasm-x86-debug) (machine-description (instruction (input-pattern `(perform (op break))) (rewrite-rule "int 3")) ))
845b54898d67ae273cbc700183bff7e81cb4b56ff38c323f2c2e8d28fb872150
racket/math
bigfloat-constants.rkt
#lang typed/racket/base (require (only-in "mpfr.rkt" consts 0ary-funs) "bigfloat-mpfr.rkt" "utils.rkt") (req/prov-uniform-collection "mpfr.rkt" consts (Promise Bigfloat)) (req/prov-uniform-collection "mpfr.rkt" 0ary-funs (-> Bigfloat))
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/bigfloat/bigfloat-constants.rkt
racket
#lang typed/racket/base (require (only-in "mpfr.rkt" consts 0ary-funs) "bigfloat-mpfr.rkt" "utils.rkt") (req/prov-uniform-collection "mpfr.rkt" consts (Promise Bigfloat)) (req/prov-uniform-collection "mpfr.rkt" 0ary-funs (-> Bigfloat))
75e9831fe48327d3d933c45649eed0b3e9807ca7598ccb2f91b0d509d43a5e5a
florence/cover
error.rkt
#lang racket (require cover (only-in cover/cover coverage-wrapper-map) rackunit racket/runtime-path cover/private/file-utils) (define-runtime-path error "error-file.rkt") (define-runtime-path main "main.rkt") (test-begin (parameterize ([current-cover-environment (make-cover-environment)]) (define (do-test ...
null
https://raw.githubusercontent.com/florence/cover/bc17e4e22d47b1da91ddaa5eafefe28f4675e85c/cover-test/cover/tests/error.rkt
racket
#lang racket (require cover (only-in cover/cover coverage-wrapper-map) rackunit racket/runtime-path cover/private/file-utils) (define-runtime-path error "error-file.rkt") (define-runtime-path main "main.rkt") (test-begin (parameterize ([current-cover-environment (make-cover-environment)]) (define (do-test ...
9f6f1d33da84bd6bba74de848ef36a00a80bb4f7b547fb77a34bfff9706c0c08
AlacrisIO/legicash-facts
integer.mli
(* integer.mli -- various integer modules with common interface *) open Lib open Yojsoning open Marshaling (** TODO: before we go to production, robustify the shit out of all the type conversions, arithmetic operations, etc., lest it be used as an attack surface. *) Same as Unsigned . S from the integers li...
null
https://raw.githubusercontent.com/AlacrisIO/legicash-facts/5d3663bade68c09bed47b3f58fa12580f38fdb46/src/legilogic_lib/integer.mli
ocaml
integer.mli -- various integer modules with common interface * TODO: before we go to production, robustify the shit out of all the type conversions, arithmetic operations, etc., lest it be used as an attack surface. * Logical and * Logical or * Logical xor * Bitwise Logical negation * size in bits, or -1...
open Lib open Yojsoning open Marshaling Same as Unsigned . S from the integers library , minus the Infix module module type UIntBaseS = sig type t val add: t -> t -> t val sub: t -> t -> t val mul: t -> t -> t val div: t -> t -> t val rem: t -> t -> t val max_int: t val logand :...