_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
6ce9a12fb721f9449fce9d19faf0ec518b85ee4461c3a4090c503db4aead8b4e
tweag/asterius
T10904.hs
import Control.Concurrent import Control.Monad import Foreign import Foreign.C.Types import System.Environment foreign import ccall safe "finalizerlib.h init_value" init_value :: Ptr CInt -> IO () foreign import ccall safe "finalizerlib.h &finalize_value" finalize_value :: FinalizerPtr CInt allocateValue :...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/rts/T10904.hs
haskell
import Control.Concurrent import Control.Monad import Foreign import Foreign.C.Types import System.Environment foreign import ccall safe "finalizerlib.h init_value" init_value :: Ptr CInt -> IO () foreign import ccall safe "finalizerlib.h &finalize_value" finalize_value :: FinalizerPtr CInt allocateValue :...
f8f5e1d81226eae86596fae4f210e3caf6d604d14deb1329e77c214c810b671a
rmloveland/scheme48-0.53
package-defs.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . Additional packages are in s48-package-defs.scm ( for loading into Scheme 48 ) and ps-package-defs.scm ( for compiling as Pre - Scheme ) . ; The VM (define-structure vm vm-interface (open prescheme ps-receive vm-architecture vm-utilities data struc...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/vm/package-defs.scm
scheme
The VM used for raising exceptions in external code ---------------- The interpreter (optimize auto-integrate) Assorted additional opcodes pop immutable The stack and lexical evironments (optimize auto-integrate) ---------------- Data structures (optimize auto-integrate) (optimize auto-integrate) (optimize auto-i...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . Additional packages are in s48-package-defs.scm ( for loading into Scheme 48 ) and ps-package-defs.scm ( for compiling as Pre - Scheme ) . (define-structure vm vm-interface (open prescheme ps-receive vm-architecture vm-utilities data struct interp...
e7c4fb4f68e9edc3ff205aad0064b53494ce1215d32efe7f3e29fb6bca236fc3
mogenslund/liquid
javascript_mode.cljc
(ns liq.modes.javascript-mode (:require [clojure.string :as str] [clojure.repl :as repl] #?(:clj [clojure.java.shell :as shell]) [liq.editor :as editor :refer [apply-to-buffer switch-to-buffer get-buffer]] [liq.buffer :as buffer] [liq.util :as util])) (def ...
null
https://raw.githubusercontent.com/mogenslund/liquid/eafc54df9c67f2e625220b78b65de1143099ef00/src/liq/modes/javascript_mode.cljc
clojure
Context style
(ns liq.modes.javascript-mode (:require [clojure.string :as str] [clojure.repl :as repl] #?(:clj [clojure.java.shell :as shell]) [liq.editor :as editor :refer [apply-to-buffer switch-to-buffer get-buffer]] [liq.buffer :as buffer] [liq.util :as util])) (def ...
5107e8ac386a4f6bca994eb7e6bb8fc656efe372c11049dd1c328951724ea792
realworldocaml/examples
numerical_deriv_alt_sig.mli
val numeric_deriv : delta:float -> x:float -> y:float -> f:(?x:float -> y:float -> float) -> float * float
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/variables-and-functions/numerical_deriv_alt_sig.mli
ocaml
val numeric_deriv : delta:float -> x:float -> y:float -> f:(?x:float -> y:float -> float) -> float * float
0306c7186c08d0896ab2bd8c60dad3574ff6985d1646f66b603fcb0079cf732a
Quid2/zm
Encoder.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables...
null
https://raw.githubusercontent.com/Quid2/zm/b1ae01cdf881a29987aa5e62035c5278a78b80d3/src/ZM/To/Encoder.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno-unused-top-binds # avoid warnings for test functions , parseErrorPretty import Data.Scientific |A mapping from an absolute type and...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TupleSections # Convert textual ZM values to their canonical binary representation module ZM.To.Encoder ( encoderFor , typeEncoder...
03cc22d8d17e9b3488a4828ecd97651618c00373c8d95a683a0062f458cfefe7
artyom-poptsov/guile-png
chunk.scm
;;; png-chunk.scm -- A PNG Chunk. (define-module (png core chunk) #:use-module (oop goops) #:use-module (png core common) #:use-module (png core crc) #:use-module (srfi srfi-1) #:use-module (ice-9 binary-ports) #:use-module (ice-9 format) #:use-module (rnrs bytevectors) #:export (<png-chunk> ...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-png/1b7fb32b43f88e300664d5c906eaa8bc436f3c35/modules/png/core/chunk.scm
scheme
png-chunk.scm -- A PNG Chunk. Chunk naming. Chunk type/vector converters. Constants. field. The length counts only the data field, not itself, the chunk type <number> A chunk type code. For convenience in description and in examining PNG files, type codes are restricted to consist of uppercase and lowercase ...
(define-module (png core chunk) #:use-module (oop goops) #:use-module (png core common) #:use-module (png core crc) #:use-module (srfi srfi-1) #:use-module (ice-9 binary-ports) #:use-module (ice-9 format) #:use-module (rnrs bytevectors) #:export (<png-chunk> png-chunk? png-chu...
99bbd5d61efc9286805e790214b3b14d180c6178101bc7d384d46b5dc34712f1
bennn/dissertation
image.rkt
#lang racket/base ;; Placeholder for images. ;; Pretends to render data. (provide (struct-out image) empty-scene ;(number? number? . -> . image?)] place-image ;(image? number? number? image? . -> . image?)] circle ;(number? string? string? . -> . image?)] ) ;; ===============================================...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/zombie/untyped/image.rkt
racket
Placeholder for images. Pretends to render data. (number? number? . -> . image?)] (image? number? number? image? . -> . image?)] (number? string? string? . -> . image?)] =============================================================================
#lang racket/base (provide (struct-out image) ) (struct image ( impl )) (define (empty-scene w h) (when (or (negative? w) (negative? h)) (error 'image "Arguments must be non-negative real numbers")) (image (cons w h))) (define (place-image i1 w h i2) (image (list i1 w h i2))) (define (circle radius s...
401356ff171248726f5957010db46a3031dc459faa2acbc9abebf8b804ba954e
basho/bitcask
bitcask_qc.erl
%% ------------------------------------------------------------------- %% bitcask : - inspired key / value store %% Copyright ( c ) 2010 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 i...
null
https://raw.githubusercontent.com/basho/bitcask/dd96f6dd84a1cad68ccc21959ba56b0426434d85/eqc/bitcask_qc.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 permissi...
bitcask : - inspired key / value store Copyright ( c ) 2010 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...
c614e9b21ae24250f8faa6a28825946a392cfce831b15b426aa27ba233f1a5cc
gfour/gic
nested.hs
data Tree = Node Int | Tr Tree Tree result = f tree f x = case x of Node i1 -> i1 Tr a1 b1 -> case a1 of Node i2 -> i2 Tr a2 b2 -> f a2 + f b2 tree = Tr (Node 10) (Tr (Tr (Node 20) (Node 30)) (Node 40))
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/Examples/Data/nested.hs
haskell
data Tree = Node Int | Tr Tree Tree result = f tree f x = case x of Node i1 -> i1 Tr a1 b1 -> case a1 of Node i2 -> i2 Tr a2 b2 -> f a2 + f b2 tree = Tr (Node 10) (Tr (Tr (Node 20) (Node 30)) (Node 40))
d9ea76456242d327938d4d2099c6aa540d6aef6b9108d468d8240b41ab041d33
ocaml-flambda/ocaml-jst
w68.ml
(* TEST flags = "-w +A-70" * setup-ocamlopt.byte-build-env ** ocamlopt.byte *** check-ocamlopt.byte-output **** run ***** check-program-output *) type a = { mutable a : int } let alloc {a} b = a + b let noalloc b {a} = b + a let measure name f = let a = {a = 1} in let b = 2 in let before = Gc.minor_words ()...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/warnings/w68.ml
ocaml
TEST flags = "-w +A-70" * setup-ocamlopt.byte-build-env ** ocamlopt.byte *** check-ocamlopt.byte-output **** run ***** check-program-output
type a = { mutable a : int } let alloc {a} b = a + b let noalloc b {a} = b + a let measure name f = let a = {a = 1} in let b = 2 in let before = Gc.minor_words () in let (_ : int) = f ~a ~b in let after = Gc.minor_words () in let alloc = int_of_float (after -. before) in match alloc with | 0 -> Prin...
03177b466001f8575ae1485f08f71be5f86a8529c27a581371e554d1c2831693
pablomarx/Thomas
hash.scm
; -*-Scheme-*- ; $ I d : gambit_hash.scm , v 1.2 1992/09/23 15:24:00 birkholz Exp $ $ MIT - Header : prop1d.scm , v 14.4 89/09/15 ; Copyright ( c ) 1988 , 1989 Massachusetts Institute of Technology ; This material was developed by the Scheme project at the Massachusetts Institute of Technology , Departme...
null
https://raw.githubusercontent.com/pablomarx/Thomas/c8ab3f6fa92a9a39667fe37dfe060b651affb18e/kits/gambit/src/hash.scm
scheme
-*-Scheme-*- it, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. they make, so that these may be included in future releases; and (b) software shall duly acknowledge such use, in accordance with the usual standards of acknowledging credit in aca...
$ I d : gambit_hash.scm , v 1.2 1992/09/23 15:24:00 birkholz Exp $ $ MIT - Header : prop1d.scm , v 14.4 89/09/15 Copyright ( c ) 1988 , 1989 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology , Department of Electrical Engi...
02cd46b5a8c885f51d8cc840e8b2daa130d6a82b569016ecdb7140ba41f8da48
learningclojurescript/code-examples
render.cljs
(ns cljs-modules.render (:require [om.core :as om] [om.dom :as dom])) (def routes ["/" {"" :outer "app" :inner}]) (defmulti active-component identity) (defmethod active-component :default [_] nil) (defn render [app owner opts] (reify om/IRender (render [_] (dom/div ...
null
https://raw.githubusercontent.com/learningclojurescript/code-examples/fdbd0e35ae5a16d53f1f784a52c25bcd4e5a8097/chapter-6/cljs-modules/src/cljs_modules/render.cljs
clojure
(ns cljs-modules.render (:require [om.core :as om] [om.dom :as dom])) (def routes ["/" {"" :outer "app" :inner}]) (defmulti active-component identity) (defmethod active-component :default [_] nil) (defn render [app owner opts] (reify om/IRender (render [_] (dom/div ...
037d450e23a6b7b997a6b94cbab58aa32d378067240f407aa45e69ee05d2410b
ktakashi/scheme-env
chez.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; command - line / sagittarius.scm - Sagittarius command - line command script ;;; Copyright ( c ) 2018 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions...
null
https://raw.githubusercontent.com/ktakashi/scheme-env/ab61f1a65d2ec4f3b6bf4ba5a0d1bfecd9cc85b5/scripts/command-line/chez.scm
scheme
coding : utf-8 ; -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaime...
command - line / sagittarius.scm - Sagittarius command - line command script Copyright ( c ) 2018 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABI...
d8a37f5ece59e781cd652a4f0d1acba820fda66a9d5094a86213cc6fdabfdd26
input-output-hk/cardano-addresses
Credential.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# OPTIONS_HADDOCK hide #-} module Options.Applicative.Credential ( delegationCredentialArg ) where import Prelude import Cardano.Address.Derivation ( Depth (..) ) import Cardano.Address.Internal ( orElse ) import Cardano.Address.Script ( Key...
null
https://raw.githubusercontent.com/input-output-hk/cardano-addresses/d6dcd277d92c76e45d1024f7d82837fc0907aa12/command-line/lib/Options/Applicative/Credential.hs
haskell
# OPTIONS_HADDOCK hide # Applicative Parser
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Options.Applicative.Credential ( delegationCredentialArg ) where import Prelude import Cardano.Address.Derivation ( Depth (..) ) import Cardano.Address.Internal ( orElse ) import Cardano.Address.Script ( KeyRole (..) ) import Cardano.Ad...
d1ec201c9bb9853801d34ffb27589bf0a995bca3b463aa36516fd5bab6ed40b7
nervous-systems/cljs-lambda
runner.cljs
(ns cljs-lambda.test.runner (:require [doo.runner :refer-macros [doo-tests]] [cljs-lambda.test.util] [cljs-lambda.test.macros])) (doo-tests 'cljs-lambda.test.util 'cljs-lambda.test.macros)
null
https://raw.githubusercontent.com/nervous-systems/cljs-lambda/ecd74ec7046e619b3c097c222124fea4b9973241/cljs-lambda/test/cljs_lambda/test/runner.cljs
clojure
(ns cljs-lambda.test.runner (:require [doo.runner :refer-macros [doo-tests]] [cljs-lambda.test.util] [cljs-lambda.test.macros])) (doo-tests 'cljs-lambda.test.util 'cljs-lambda.test.macros)
5aaba9c8489f81a797684dcfb533f81a5205c5b5a1b190dfc0417c0258e94c63
xh4/web-toolkit
uri.lisp
(in-package :uri) (defmacro uri (&body forms) (with-gensyms (values) `(let ((,values (list ,@forms))) (typecase (first ,values) (null nil) ((or string uri) (typecase (second ,values) (null (typecase (first ,values) (uri (first ,values)) ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/uri/uri.lisp
lisp
(in-package :uri) (defmacro uri (&body forms) (with-gensyms (values) `(let ((,values (list ,@forms))) (typecase (first ,values) (null nil) ((or string uri) (typecase (second ,values) (null (typecase (first ,values) (uri (first ,values)) ...
a2bf54c9e374dc80ef648dd05bed9845d9da3a0ce31da62dd4bddff0e53d2be5
Workiva/eva
protocols.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/v2/transaction_pipeline/protocols.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.v2.transaction-pipeline.protocols "Protocols used in transaction pipeline.") (defprotocol TxReportProcessing (note-ref-attr [report ref-attr-eid]) (note-tx-inst [report inst]) (note-validated ...
530aa05d929955ced4c05a12204f12be843f91803c03aff1a3abc06202dddf7c
RefactoringTools/wrangler
refac_all.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2013 , , @doc All - Composed refactoring of all the other refactorings in < em > Wrangler - > Refactor - > gen_refac Refacs - > Symbolic Evaluation</em > . This refactoring uses Wrangler API and can be found i...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/symbolic_evaluation/refactorings/refac_all.erl
erlang
------------------------------------------------------------------- The rules of this refactoring, respect the following order: <ul> <li><em>core_lists_concat:rules/2 in <a href="../core/core_lists_concat.html">Lists Concatenation Core</a></em></li> <li><em>core_if:rules/2 in <a href="../core/core_if.html">If Core</a>...
@author < > ( C ) 2013 , , @doc All - Composed refactoring of all the other refactorings in < em > Wrangler - > Refactor - > gen_refac Refacs - > Symbolic Evaluation</em > . This refactoring uses Wrangler API and can be found in < em > Wrangler - > Refactor - > gen_refac Refacs - > Symbolic Evalua...
cea0784896f59b56a679fd4715fa152cfd4e018b779eab541ebabb1b2606e8e1
input-output-hk/project-icarus-importer
State.hs
module Pos.Wallet.Web.State ( module Pos.Wallet.Web.State.State , module Pos.Wallet.Web.State.Util , Storage.WAddressMeta(..) , Storage.HasWAddressMeta(..) , Storage.wamAccount ) where import Pos.Wallet.Web.State.State hiding (applyModifierToWallet, ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet/src/Pos/Wallet/Web/State.hs
haskell
module Pos.Wallet.Web.State ( module Pos.Wallet.Web.State.State , module Pos.Wallet.Web.State.Util , Storage.WAddressMeta(..) , Storage.HasWAddressMeta(..) , Storage.wamAccount ) where import Pos.Wallet.Web.State.State hiding (applyModifierToWallet, ...
7774dbc7b7091571109053f56b8d365a20d1edaa8d41bcc70ad8c47033492207
Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator
DeletePet.hs
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} -- | Contains the different functions to run the operation deletePet module OpenAPI.Operatio...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/d3e9c7db4d8b15de9136007a9b9519a7bd8e2199/example/generatedCode/src/OpenAPI/Operations/DeletePet.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # | Contains the different functions to run the operation deletePet | > DELETE /pet/{petId} ^ petId: Pet id to delete | Represents a response of the operation 'deletePet'. ^ Means either no matching case available or a parse err...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module OpenAPI.Operations.DeletePet where import qualified Prelude as GHC.Integer.Type import qualified Prelude as GHC.Maybe import qualified Control.Monad.Fail import qualified Control....
8b71843a0c8e11ebe3ad758c4a6d000fe7d90982213002c583f3be4207100132
IBM/probzelus
run.ml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
null
https://raw.githubusercontent.com/IBM/probzelus/3bdd60e3c4010452239bfe7bc79165802e5d941b/benchmarks/tracker/ds_nogc/run.ml
ocaml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
7b898a4127107de601e65f23d037ac143bc68621ec9f75e90d5b90c360eaa572
babashka/pod-babashka-etaoin
generate_circleci.clj
#!/usr/bin/env bb (ns generate-circleci (:require [clojure.string :as str] [flatland.ordered.map :refer [ordered-map]] )) (def install-babashka {:run {:name "Install babashka" :command (str/join "\n" ["curl -sLO " "chmod +x install" ...
null
https://raw.githubusercontent.com/babashka/pod-babashka-etaoin/257b53c69ddb5d496f455b91e8833022bd7b2e03/script/generate_circleci.clj
clojure
then then then tests are skipped, until we figure out how to install
#!/usr/bin/env bb (ns generate-circleci (:require [clojure.string :as str] [flatland.ordered.map :refer [ordered-map]] )) (def install-babashka {:run {:name "Install babashka" :command (str/join "\n" ["curl -sLO " "chmod +x install" ...
5cfb0a6800ff9b4bfc462194251beb1f0e51761f1f79bc444ee78e0f415178cd
timbod7/haskell-chart
Doctests.hs
# OPTIONS_GHC -Wall # module Main ( main ) where import Test.DocTest main :: IO () main = doctest [ "../chart/Graphics/Rendering/Chart/Axis/Floating.hs" , "../chart/Numeric/Histogram.hs" ]
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart-tests/tests/Doctests.hs
haskell
# OPTIONS_GHC -Wall # module Main ( main ) where import Test.DocTest main :: IO () main = doctest [ "../chart/Graphics/Rendering/Chart/Axis/Floating.hs" , "../chart/Numeric/Histogram.hs" ]
65819c298313ede62b8651036f038fa9bf795b734d7fcec3f27e21120201fdb6
input-output-hk/hydra
Options.hs
module Hydra.Cluster.Options where import qualified Data.ByteString.Char8 as BSC import Hydra.Cardano.Api (AsType (AsTxId), TxId, deserialiseFromRawBytesHex) import Hydra.Cluster.Fixture (KnownNetwork (..)) import Hydra.Prelude import Options.Applicative (Parser, eitherReader, flag', help, long, metavar, strOption) im...
null
https://raw.githubusercontent.com/input-output-hk/hydra/ad3dd93ae3fcfee1be158a7042157d33d0ccd2ef/hydra-cluster/src/Hydra/Cluster/Options.hs
haskell
publish-hydra-scripts or hydra-node publish-scripts"
module Hydra.Cluster.Options where import qualified Data.ByteString.Char8 as BSC import Hydra.Cardano.Api (AsType (AsTxId), TxId, deserialiseFromRawBytesHex) import Hydra.Cluster.Fixture (KnownNetwork (..)) import Hydra.Prelude import Options.Applicative (Parser, eitherReader, flag', help, long, metavar, strOption) im...
0fe3beb8d46e4f2aa71a94844a2a8ff76556bc42974f09bc19aa96555bce6ef6
mukul-rathi/bolt
good_overloading.ml
open Core open Print_typed_ast let%expect_test "Function overloading different arg types" = print_typed_ast " function int test(int f) { f+1 } function int test(bool b){ if b { 1} else {0} } void main() { test(12); test(true) } " ; [%expect {| Program ...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/typing/good_overloading.ml
ocaml
open Core open Print_typed_ast let%expect_test "Function overloading different arg types" = print_typed_ast " function int test(int f) { f+1 } function int test(bool b){ if b { 1} else {0} } void main() { test(12); test(true) } " ; [%expect {| Program ...
68cedccdcda8ad944b3bc234facc3b86af9e06bddb1cf357e764240e2065ca54
clj-kondo/clj-kondo
quote.clj
(ns ^{:no-doc true} clj-kondo.impl.rewrite-clj.node.quote (:require [clj-kondo.impl.rewrite-clj.node.protocols :as node])) ;; ## Node (defrecord QuoteNode [tag prefix sym children] node/Node (tag [_] tag) (printable-only? [_] false) (sexpr [_] (list sym (first (node/sexprs children)))) (length [_] ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/9538ce45126e51e247694f3cf90fac4e1ffde97e/parser/clj_kondo/impl/rewrite_clj/node/quote.clj
clojure
## Node
(ns ^{:no-doc true} clj-kondo.impl.rewrite-clj.node.quote (:require [clj-kondo.impl.rewrite-clj.node.protocols :as node])) (defrecord QuoteNode [tag prefix sym children] node/Node (tag [_] tag) (printable-only? [_] false) (sexpr [_] (list sym (first (node/sexprs children)))) (length [_] (+ (count ...
202e7d93add577dac537dd6ce51e9e1609c3db121a32c4300549970721b6cfb1
amosr/folderol
Fold.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Folderol.Process.Fold where import Folderol.Typed import qualified Folderol.Typed.Process as Proc import P import qualified Folderol.Internal.Haskell as Haskell fold :: (Monad m) => Haskell.TExpQ (b -> a -> b) -> Haskell.TExpQ b -> Channel a -> Netw...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/src/Folderol/Process/Fold.hs
haskell
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Folderol.Process.Fold where import Folderol.Typed import qualified Folderol.Typed.Process as Proc import P import qualified Folderol.Internal.Haskell as Haskell fold :: (Monad m) => Haskell.TExpQ (b -> a -> b) -> Haskell.TExpQ b -> Channel a -> Netw...
6481a1971bc1a287e672df80fac22d8f4dd7d7ccebde2f69411dd34ce02e6147
re-xyr/hina
Substitute.hs
module Hina.Core.Substitute where import qualified Data.IntMap.Strict as Map import Hina.Core (Arg (Arg), Param (Param), Term (TApp, TBind, TCallVar, TLam, TPi, TProj, TSigma, TTup, TUniv), TermApp (TermApp), TermBind (TermBin...
null
https://raw.githubusercontent.com/re-xyr/hina/5224b98fb4405d8aa54e1ee1668072844aa80dac/src/Hina/Core/Substitute.hs
haskell
module Hina.Core.Substitute where import qualified Data.IntMap.Strict as Map import Hina.Core (Arg (Arg), Param (Param), Term (TApp, TBind, TCallVar, TLam, TPi, TProj, TSigma, TTup, TUniv), TermApp (TermApp), TermBind (TermBin...
afbfe09711eb4c57ab9fdce54f12c9ac50e5fbf10efe7c35fd766e27ac9590f1
mfoemmel/erlang-otp
tv_info.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 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 with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/tv/src/tv_info.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. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1997 - 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 " -module(tv_info). -export([info/6 ]). ...
5afd18f7bae8f0e7baee75b32bb1729adfa9c4d8a923b3c40b463726b9ccac3e
xslogic/phoebus
external_store_hdfs.erl
%% ------------------------------------------------------------------- %% Phoebus : A distributed framework for large scale graph processing . %% Copyright ( c ) 2010 Arun Suresh . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this...
null
https://raw.githubusercontent.com/xslogic/phoebus/78cbc65bfcfa804cbbda466bbbf36230ec8f4715/src/external_store_hdfs.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...
Phoebus : A distributed framework for large scale graph processing . Copyright ( c ) 2010 Arun Suresh . 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 "...
13bd2fd29eaafdf515cfe68cee8bd684f9236914e36180dbc805843f72208d77
ZHaskell/stdio
Parser.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MagicHash # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # | Module : Std . Data . Parser Description : Efficient deserialization / parse . Copyright :...
null
https://raw.githubusercontent.com/ZHaskell/stdio/7887b9413dc9feb957ddcbea96184f904cf37c12/std-data/Std/Data/Parser.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # * Running a parser * Basic parsers * Primitive decoders * More parsers * Numeric parsers ** Decimal ** Hex ** Fractional * Stricter fractional(rfc8259) * Misc
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # | Module : Std . Data . Parser Description : Efficient deserialization / parse . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non...
54b915777539495141a6ebdaa842e7f1742c85466a9da041094a7ff0b78c4b97
nvim-treesitter/nvim-treesitter
injections.scm
(comment) @comment (shell_text) @bash (shell_command) @bash
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/387a8f38bd1ee25321b59bb08d23641f113f85da/queries/make/injections.scm
scheme
(comment) @comment (shell_text) @bash (shell_command) @bash
89b89b2af178836195bb42981dd14a02cbc6a2e928e0ea2d5b6cea3074b955bf
bdeket/rktsicm
functions.rkt
#lang racket/base (require "functions/bessel.rkt" "functions/elliptic.rkt" ) (provide (all-from-out "functions/bessel.rkt" "functions/elliptic.rkt" ))
null
https://raw.githubusercontent.com/bdeket/rktsicm/588acaf709a0e652b6474921f85524926d0f218d/rktsicm/sicm/numerics/functions.rkt
racket
#lang racket/base (require "functions/bessel.rkt" "functions/elliptic.rkt" ) (provide (all-from-out "functions/bessel.rkt" "functions/elliptic.rkt" ))
58dcc8cb941bd2179448b9522e090c84a66788e7b2cd0303cfc6a1fcd94749cd
smallmelon/sdzmmo
mod_player.erl
%%%------------------------------------ @Module : @Author : xyao %%% @Email : @Created : 2010.04.29 @Description : 角色处理 %%%------------------------------------ -module(mod_player). -behaviour(gen_server). -export([start/0, stop/1, set_dungeon/2, save_player_table/1]). -export([init/1, hand...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/mod/mod_player.erl
erlang
------------------------------------ @Email : ------------------------------------ 开始 停止本游戏进程 设置副本 游戏进程死掉修改状态 玩家下线,如有队伍,则离开队伍 停止游戏进程 ----------------------------------------------------------------- ----------------------------------------------------------------- 发送通知 -----------------------------...
@Module : @Author : xyao @Created : 2010.04.29 @Description : 角色处理 -module(mod_player). -behaviour(gen_server). -export([start/0, stop/1, set_dungeon/2, save_player_table/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include("common.hrl"). -i...
00a816878a9c5491b5f8c1022e9c75fa05f1005dbd0301f9f543511ff3783cdd
threatgrid/ctia
graphql_test.clj
(ns ctia.http.routes.graphql-test (:require [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest is join-fixtures testing use-fixtures]] [ctia.test-helpers [auth :refer [all-capabilities]] [core :as helpers] [fake-whoami-service :as whoami-h...
null
https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/test/ctia/http/routes/graphql_test.clj
clojure
---------------------------
(ns ctia.http.routes.graphql-test (:require [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest is join-fixtures testing use-fixtures]] [ctia.test-helpers [auth :refer [all-capabilities]] [core :as helpers] [fake-whoami-service :as whoami-h...
58560d5ff6bb9c09c3b69c9106fcb0f2ac04918d8090efcc7541f5f91e6a6d7f
diku-dk/futhark
Solve.hs
-- | Dependency solver -- -- This is a relatively simple problem due to the choice of the -- Minimum Package Version algorithm. In fact, the only failure mode -- is referencing an unknown package or revision. module Futhark.Pkg.Solve ( solveDeps, solveDepsPure, PkgRevDepInfo, ) where import Control.Monad....
null
https://raw.githubusercontent.com/diku-dk/futhark/8af73c12e5d9dba76971e60091a7ba4f4c8f583b/src/Futhark/Pkg/Solve.hs
haskell
| Dependency solver This is a relatively simple problem due to the choice of the Minimum Package Version algorithm. In fact, the only failure mode is referencing an unknown package or revision. | A rough build list is like a build list, but may contain packages that are not reachable from the root. Also contai...
module Futhark.Pkg.Solve ( solveDeps, solveDepsPure, PkgRevDepInfo, ) where import Control.Monad.Free.Church import Control.Monad.State import Data.Map qualified as M import Data.Set qualified as S import Data.Text qualified as T import Futhark.Pkg.Info import Futhark.Pkg.Types import Prelude data PkgOp a...
f39d8a1491580b9bb5d93e43bdcc7ad2f1ef043e94bd0c75484d555ea0bda019
clojurians-org/haskell-example
SQLCursor.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecursiveDo # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Frontend.Page.DataSandbox.DataSource.SQLCursor (dataSource_sqlCursor) where import Common.Api import Common.Types import Common.WebSocketMessa...
null
https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/conduit-ui/frontend/src/Frontend/Page/DataSandbox/DataSource/SQLCursor.hs
haskell
dataSource_selector :: display msgD
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecursiveDo # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Frontend.Page.DataSandbox.DataSource.SQLCursor (dataSource_sqlCursor) where import Common.Api import Common.Types import Common.WebSocketMessa...
5df4b4eced97b9c34c72916c6fb0943ffd0f2bbb121c751bbd9bd7ab812f658e
geocaml/ocaml-geojson
geojson.mli
Copyright ( c ) 2021 - 2022 < > Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W...
null
https://raw.githubusercontent.com/geocaml/ocaml-geojson/1342f4627caa813cd153d5724f73c2fb8f0eac31/src/geojson/geojson.mli
ocaml
Copyright ( c ) 2021 - 2022 < > Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W...
01fcb925f8468fff27706cf56f6d2148f95418da7a5f5bd56ea35e3b4ce4c631
mro/geohash
route_test.ml
* route_test.ml * * Created by on 16.05.20 . * Copyright © 2020 - 2021 mobile Software /~me . All rights reserved . * * 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 ...
null
https://raw.githubusercontent.com/mro/geohash/fbd81a15734aef8454f6064b66c7ffc911276050/test/route_test.ml
ocaml
* route_test.ml * * Created by on 16.05.20 . * Copyright © 2020 - 2021 mobile Software /~me . All rights reserved . * * 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 ...
d7014024f96c54369d1225ec01e3e04e43201de6c8a9e5e4645aefd4b9f3ea3f
ucsd-progsys/liquidhaskell
BadData2.hs
@ LIQUID " --expect - error - containing = Data constructors in refinement do not match original datatype for ` Hog ` " @ {-@ LIQUID "--exact-data-cons" @-} module BadData2 where -- The reason this fails is because the constructor we use in the refinement for Hog is in fact a constructor of T. @ data Hog where ...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/errors/BadData2.hs
haskell
@ LIQUID "--exact-data-cons" @ The reason this fails is because the constructor we use in the
@ LIQUID " --expect - error - containing = Data constructors in refinement do not match original datatype for ` Hog ` " @ module BadData2 where refinement for Hog is in fact a constructor of T. @ data Hog where Cuthb : : T @ Cuthb :: Nat -> T @-} data Hog = H Int data T = Cuthb { fldX ::...
5e7a48edf50cbf39e1a0bee4564b6dce2a175db075237129f18bacbaee42fcab
jordanthayer/ocaml-search
scale.ml
(** Shows what the colors on the grid represent Jordan - September 2009 *) let width = 5 type t = { mutable context : int; mins : float array; maxs : float array; names : string array; mutable loc : int * int; leng : int; } let scale_window = ignore(GtkMain.Main.init()); GWindow.window ~borde...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search_vis/scale.ml
ocaml
* Shows what the colors on the grid represent Jordan - September 2009 now draw scale
let width = 5 type t = { mutable context : int; mins : float array; maxs : float array; names : string array; mutable loc : int * int; leng : int; } let scale_window = ignore(GtkMain.Main.init()); GWindow.window ~border_width:10 ~title:"Structure Display" ~deletable:false ~width:300 ~height:5...
7545b77480f5c8285b3ad4185b733808314d48e20556fd95c7bcada9f623d604
MLstate/opalang
setMap.mli
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/ocamllib/libbase/setMap.mli
ocaml
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
1f1fcfae1f0c071fc57e9dad1826301977211f82bfae5527dcfaa64a3d4adc56
kmmelcher/plp-sad
Ticket.hs
module Model.Ticket where import Model.Mensagem (Mensagem) data Ticket = Ticket { id :: Int, titulo :: String, mensagens :: [Int], status :: String, autor :: Int, disciplina :: String } deriving (Show, Read)
null
https://raw.githubusercontent.com/kmmelcher/plp-sad/2b2f09ea9b37df1a1d748d7a4aab45b7ac6fd637/haskell/src/Model/Ticket.hs
haskell
module Model.Ticket where import Model.Mensagem (Mensagem) data Ticket = Ticket { id :: Int, titulo :: String, mensagens :: [Int], status :: String, autor :: Int, disciplina :: String } deriving (Show, Read)
dbf04a41f15b358fae9ec6261db38714f3918d586e2001fdeff0a666b7150734
binsec/binsec
loader_buf.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/loader/loader_buf.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
46f06fe0a48fb9a7d2534434e25159b5291966357eab2b020fe424db404d4b92
kryonix/pg_cuckoo
TrChunks.hs
| Module : Description : Translate constant SQL Values to Copyright : < > License : AllRightsReserved Maintainer : Module : TrChunks Description : Translate constant SQL Values to Haskell ADTs Copyright : © Denis Hirn <> License : AllRightsReserved Maintainer : Denis Hir...
null
https://raw.githubusercontent.com/kryonix/pg_cuckoo/755e3199b4831d99e716637fbbebbe794a9a7104/PgCuckoo/src/Database/PgCuckoo/TrChunks.hs
haskell
| Module : Description : Translate constant SQL Values to Copyright : < > License : AllRightsReserved Maintainer : Module : TrChunks Description : Translate constant SQL Values to Haskell ADTs Copyright : © Denis Hirn <> License : AllRightsReserved Maintainer : Denis Hir...
b380a652f019a89c216e4254470c1955ac3247bc13abfceb366fc9926df71224
avatar29A/hs-aitubots-api
Config.hs
# LANGUAGE NamedFieldPuns # module Aitu.Config ( AituBotConfig (..) , mkConfig) where import Network.HTTP.Client import qualified Data.ByteString as BS type Url = String type Token = String data AituBotConfig = Config { token :: Token , manager :: Manager , apiUrl :: Url } mkConfig :: Token -> M...
null
https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Config.hs
haskell
# LANGUAGE NamedFieldPuns # module Aitu.Config ( AituBotConfig (..) , mkConfig) where import Network.HTTP.Client import qualified Data.ByteString as BS type Url = String type Token = String data AituBotConfig = Config { token :: Token , manager :: Manager , apiUrl :: Url } mkConfig :: Token -> M...
5c7d56c145b843609b3e002e6c76c5a2e320c1db0d7e54f3a1c55eda39027967
grin-compiler/ghc-wpc-sample-programs
Mutable.hs
-- | Module : Basement . UArray . Mutable -- License : BSD - style Maintainer : < > -- Stability : experimental -- Portability : portable -- -- A simple array abstraction that allow to use typed -- array of bytes where the array is pinned in memory to allow easy use with Foreign interfaces , Byt...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/basement-0.0.11/Basement/UArray/Mutable.hs
haskell
| License : BSD - style Stability : experimental Portability : portable A simple array abstraction that allow to use typed array of bytes where the array is pinned in memory * Property queries * Allocation & Copy * Reading and Writing cells | read a cell in a mutable array. If the index is out of b...
Maintainer : < > to allow easy use with Foreign interfaces , ByteString and always aligned to 64 bytes . # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE ScopedTypeVariables # module Basement.UArray.Mutable ( MUArray(..) , sizeInMutableBytesOfContent , mutableLength , mutableOffse...
b31ac8c56f225f2ad31c7bf517e60224a0d90c257d0b4b4aec76496aa34c93f4
adomokos/haskell-katas
Ex62_MonadsLoggingWithWriterSpec.hs
module Ex62_MonadsLoggingWithWriterSpec ( spec ) where import Control.Monad.Writer import Data.Monoid import Test.Hspec main :: IO () main = hspec spec -- Greatest common deviser -- gcd' :: Int -> Int -> Int -- gcdWithLog :: Int -> Int -> Writer [String] Int newtype DiffList a = DiffList { getDiffList : : [ ...
null
https://raw.githubusercontent.com/adomokos/haskell-katas/be06d23192e6aca4297814455247fc74814ccbf1/test/Ex62_MonadsLoggingWithWriterSpec.hs
haskell
Greatest common deviser gcd' :: Int -> Int -> Int gcdWithLog :: Int -> Int -> Writer [String] Int toDiffList :: [a] -> DiffList a
module Ex62_MonadsLoggingWithWriterSpec ( spec ) where import Control.Monad.Writer import Data.Monoid import Test.Hspec main :: IO () main = hspec spec newtype DiffList a = DiffList { getDiffList : : [ a ] - > [ a ] } fromDiffList : : DiffList a - > [ a ] instance Monoid ( DiffList a ) where gcdWithD...
4208aabd2f759fa247dd9d37fdbe1746738fd59b372a31aa27f022ae0143bce5
CarlWright/NGerlguten
eg_font_10.erl
-module(eg_font_10). -export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]). -export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]). -export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]). -export([encoding/0]). fontName() -> "Times-Italic". index() -> 10. type() -> internal. encoding()...
null
https://raw.githubusercontent.com/CarlWright/NGerlguten/3c87f2e3a44ae9069f9379933b99c0feb8262d66/lib/ngerlguten/src/eg_font_10.erl
erlang
-module(eg_font_10). -export([width/1, kern/2, fontName/0, firstChar/0,lastChar/0]). -export([index/0,ascender/0,capHeight/0,descender/0,italicAngle/0]). -export([xHeight/0, flags/0, type/0, stemV/0,fontBBox/0,widths/0]). -export([encoding/0]). fontName() -> "Times-Italic". index() -> 10. type() -> internal. encoding()...
816069843df3a1d0a605139d1eec1dc4ef2ff368143f1f67580d4652020e73af
Clozure/ccl-tests
with-slots.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 17 18:04:10 2003 ;;;; Contains: Tests of WITH-SLOTS (in-package :cl-test) (deftest with-slots.1 (with-slots () nil) nil) (deftest with-slots.2 (with-slots () nil (values))) (deftest with-slots.3 (with-slots () nil (values 'a 'b 'c 'd 'e 'f)) a ...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/with-slots.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of WITH-SLOTS with-slots is an implicit progn, not a tagbody with-slots has no implicit block Tests on standard objects If slot is unbound, act as if slot-value had been called Free declaration scope test
Author : Created : Sat May 17 18:04:10 2003 (in-package :cl-test) (deftest with-slots.1 (with-slots () nil) nil) (deftest with-slots.2 (with-slots () nil (values))) (deftest with-slots.3 (with-slots () nil (values 'a 'b 'c 'd 'e 'f)) a b c d e f) (deftest with-slots.4 (let ((x 0) (y 10) (z 2...
feb2bbe5a8a5d9c430b0202e864b04e5bca8c283f8722a601249059984be1d8c
ghcjs/ghcjs-dom
RTCDataChannelEvent.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.RTCDataChannelEvent (js_newRTCDataChannelEvent, newRTCDataChannelEvent, js_getChannel, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/RTCDataChannelEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.RTCDataChannelEvent (js_newRTCDataChannelEvent, newRTCDataChannelEvent, js_getChannel, getChannel, RTCDataChannelEvent(..), gTypeRTCDataChannelEvent) where import Prelude ...
62f6e423241113cf5db0eb7a61e5d217a4e97879deb215d9a2fb263d970768ab
c-cube/funarith
test_prime.ml
module Q = QCheck module Pr = Funarith_zarith.Prime let rand_n n : Z.t Q.arbitrary = Q.map ~rev:Z.to_int Z.of_int Q.(0 -- n) module Make(X : sig val cache : Pr.Cache.t option end) = struct let cache = X.cache let suffix = match cache with None -> "" | Some _ -> "_cached" let check_is_prime = let prop n...
null
https://raw.githubusercontent.com/c-cube/funarith/1c86ac45e9608efaa761e3f14455402730885339/src/tests/test_prime.ml
ocaml
module Q = QCheck module Pr = Funarith_zarith.Prime let rand_n n : Z.t Q.arbitrary = Q.map ~rev:Z.to_int Z.of_int Q.(0 -- n) module Make(X : sig val cache : Pr.Cache.t option end) = struct let cache = X.cache let suffix = match cache with None -> "" | Some _ -> "_cached" let check_is_prime = let prop n...
37472c0cdb1c5154a71d8395b1cb3ba6ffb0ed81ab774f1721bb2d5a34c145e0
dmitryvk/sbcl-win32-threads
assem-rtns.lisp
;;;; the machine specific support routines needed by the file assembler This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The so...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/assembly/x86/assem-rtns.lisp
lisp
the machine specific support routines needed by the file assembler more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. RETURN-MULTIPLE the frame for the function that is returning to the end of...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") For RETURN - MULTIPLE , we have to move the results from the end of (define-assembly-routine (...
d01d6523de5d138081db0503ee0774667d6fd8635e6fc177f9c235929160cc11
janestreet/file_path
absolute_intf.ml
open! Core * An absolute path represents one or more path parts relative to the root directory . Valid absolute path strings must be non - empty , must contain no null characters , and must start with a slash . Canonical absolute path strings must contain no consecutive slashes and must not end ...
null
https://raw.githubusercontent.com/janestreet/file_path/975cd0bd0460212b939016769aed2de28665b5a0/src/absolute_intf.ml
ocaml
* Absolute paths are a subtype of [Path.t] and therefore also of [string]. * The root directory, i.e. [/]. * Returns the final part of the given path, or [None] if given [root]. * Returns the final part of the given path, or raises if given [root]. * Returns the final part of the given path, or returns an error if ...
open! Core * An absolute path represents one or more path parts relative to the root directory . Valid absolute path strings must be non - empty , must contain no null characters , and must start with a slash . Canonical absolute path strings must contain no consecutive slashes and must not end ...
5936106b35ecdc3f97132f995ed6047d4712c4367a99a1d45ec2177fbc04d981
franks42/naclj
key_curve25519_test.clj
(ns naclj.key-curve25519-test (:require [clojure.test :refer :all] [naclj.encode-util :refer :all] [naclj.fixture :as f] [naclj.hash-sha256 :as hb] [naclj.hash-protocol :as h] [naclj.key-protocol :refer :all] [naclj.key-curve25519] )) ;;setup ;;; tests ; (deftest curve25519-test-1 (t...
null
https://raw.githubusercontent.com/franks42/naclj/0658915a860513340c5036fd759cc71510f91879/test/naclj/key_curve25519_test.clj
clojure
setup tests
(ns naclj.key-curve25519-test (:require [clojure.test :refer :all] [naclj.encode-util :refer :all] [naclj.fixture :as f] [naclj.hash-sha256 :as hb] [naclj.hash-protocol :as h] [naclj.key-protocol :refer :all] [naclj.key-curve25519] )) (deftest curve25519-test-1 (testing "curve25519 t...
1c5d37710561ee39c2cc6de7af7e1493a88880f8b4648e8cfb524707db51fb6c
himura/neco
HttpClient.hs
module Network.Neco.Service.HttpClient ( httpClientService ) where import Network.HTTP.Client import Network.Neco.Types httpClientService :: Manager -> Service IO Request (Response BodyReader) httpClientService mgr = Service $ \req respond -> withResponse req mgr respond
null
https://raw.githubusercontent.com/himura/neco/f5413fb94112b2c455ff0f307a2af5326af0a278/src/Network/Neco/Service/HttpClient.hs
haskell
module Network.Neco.Service.HttpClient ( httpClientService ) where import Network.HTTP.Client import Network.Neco.Types httpClientService :: Manager -> Service IO Request (Response BodyReader) httpClientService mgr = Service $ \req respond -> withResponse req mgr respond
8e4abf1153a73a78cc4fae3c0b693c11b2235ebb870e3f3aa8e7a62b2c0a728f
icicle-lang/disorder.hs-ambiata
Gen.hs
# LANGUAGE TemplateHaskell # module Test.Disorder.Core.Gen where import Data.Maybe import Data.Monoid ((<>)) import Data.List (nub, partition, (\\)) import Disorder.Core.Gen import Disorder.Core.IO import Disorder.Core.OrdPair import Disorder.Core....
null
https://raw.githubusercontent.com/icicle-lang/disorder.hs-ambiata/0068d9a0dd9aea45e772fb664cf4e7e71636dbe5/disorder-core/test/Test/Disorder/Core/Gen.hs
haskell
not the best statistical test but we want to make sure that we have "enough" Nothings in the list
# LANGUAGE TemplateHaskell # module Test.Disorder.Core.Gen where import Data.Maybe import Data.Monoid ((<>)) import Data.List (nub, partition, (\\)) import Disorder.Core.Gen import Disorder.Core.IO import Disorder.Core.OrdPair import Disorder.Core....
3dc9341b44b6f1a0bb804371d60c80cc9269d4cb62b07a9776c06b5e2dd70223
project-oak/hafnium-verification
Fieldname.mli
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/IR/Fieldname.mli
ocaml
* Names for fields of class/struct/union * create a field of the given class and fieldname * Set for fieldnames * Map for fieldnames * Check if field is a captured parameter * Check if the field is the synthetic this$n of a nested class, used to access the n-th outer instance. * Convert a field name to a stri...
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
6356b05742a2b2c960cdafa5988a1670eae1ebe472a6236e5ce099e7e5df41fb
arrdem/meajure
data_readers.clj
{meajure/unit meajure.core/parse-unit}
null
https://raw.githubusercontent.com/arrdem/meajure/aabc4ea2575fcd86a099ca39c6c6683662bc9d12/src/data_readers.clj
clojure
{meajure/unit meajure.core/parse-unit}
e41ca663d696814c59a868bb357b4bad74ad226ba270b5721d03993d01bd7422
mwand/eopl3
top.scm
(module top (lib "eopl.ss" "eopl") ;; top level module. Loads all required pieces. ;; Run the test suite with (run-all). (require "drscheme-init.scm") (require "data-structures.scm") ; for expval constructors (require "lang.scm") ; for scan&parse (require "interp.scm") ; for valu...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter4/implicit-refs/top.scm
scheme
top level module. Loads all required pieces. Run the test suite with (run-all). for expval constructors for scan&parse for value-of-program for test-list interface for book test ;;; interface to test harness ;;;;;;;;;;;;;;;; run-all : () -> Unspecified runs all the tests in test-list, comparing the results w...
(module top (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (provide run run-all) (provide test-all) (define (test-all) (run-all)) run : String - > ExpVal (define run (lambda (string) (value-of-program (scan&parse string)))) (define run-all (lambda () (run...
6525977875f707842bf95f3c1762485c7ef1dd2422320479c6bb324e572742cc
heroku/logplex
logplex_session.erl
Copyright ( c ) 2010 < > %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %% restriction, including without limitation the rights to use, %% copy, modify, merge, publish...
null
https://raw.githubusercontent.com/heroku/logplex/fc520c44cf4687726d5d51464d3264ddc6abb0ba/src/logplex_session.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condit...
Copyright ( c ) 2010 < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(logplex_session). -ex...
393ff7e3078ecb62d1041d81e9d3befb8577ec673670c4df17a04315ef307fb1
sig-gis/gridfire
postgis_bridge.clj
[ [ file: .. / .. /org / GridFire.org::postgis - bridge][postgis - bridge ] ] (ns gridfire.postgis-bridge (:require [clojure.core.matrix :as m] [clojure.java.jdbc :as jdbc]) (:import org.postgresql.jdbc.PgArray java.util.UUID)) (m/set-current-implementation :vectorz) (defn extract-matri...
null
https://raw.githubusercontent.com/sig-gis/gridfire/44aeaf56fceb01f61b21db6220d2cb562a92570b/src/gridfire/postgis_bridge.clj
clojure
Create a temporary table to hold the rescaled raster. It will be dropped when the transaction completes.
[ [ file: .. / .. /org / GridFire.org::postgis - bridge][postgis - bridge ] ] (ns gridfire.postgis-bridge (:require [clojure.core.matrix :as m] [clojure.java.jdbc :as jdbc]) (:import org.postgresql.jdbc.PgArray java.util.UUID)) (m/set-current-implementation :vectorz) (defn extract-matri...
be0894eaec7be4c6724687e38a0c084e66c64261938be78fdaba0ab59eab1eaf
janegca/htdp2e
Exercise-064-DataDefintion-Time.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-064-DataDefintion-Time) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/01-FixedSizeData/Exercise-064-DataDefintion-Time.rkt
racket
about the language level of this file in a form that our tools can easily process. Provide a structure type definition and a data definition for representing hours, minutes, and seconds. a minute is a number between 0 and 59 and seconds
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-064-DataDefintion-Time) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor rep...
6133b74968801ea411e730398be4a14ffc9c574817d59cd3feb888b555724b71
min-nguyen/prob-fx
Trace.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # {- | For recording samples and log-probabilities during model execution. -} module Trac...
null
https://raw.githubusercontent.com/min-nguyen/prob-fx/0523d89bd22bbb0bb7e6e1350ef7a9691d22252c/src/Trace.hs
haskell
# LANGUAGE GADTs # | For recording samples and log-probabilities during model execution. * Sample trace * Log-probability trace | The type of sample traces, mapping addresses of sample/observe operations to their primitive distributions and sampled values. | For converting sample traces to model environment...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Trace ( STrace , FromSTrace(..) , updateSTrace , LPTrace , updateLPTrace) where import Dat...
f4902aebbce9d50f0145216cfe71aabefb5ae5bf5227833c0925ec82a691467a
esl/MongooseIM
gen_mod_deps_SUITE.erl
-module(gen_mod_deps_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -define(MODS, [mod_a, mod_b, mod_c, mod_d]). all() -> [ no_dependencies, dependency, dependency_chain, dependency_dag, fails_on_dependency_cycle, succeeds_on_cycle_with_s...
null
https://raw.githubusercontent.com/esl/MongooseIM/7c3eb5f42421b6b86099b0dae2d1d438787f29db/test/gen_mod_deps_SUITE.erl
erlang
Fixtures Tests Helpers
-module(gen_mod_deps_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("eunit/include/eunit.hrl"). -define(MODS, [mod_a, mod_b, mod_c, mod_d]). all() -> [ no_dependencies, dependency, dependency_chain, dependency_dag, fails_on_dependency_cycle, succeeds_on_cycle_with_s...
6764ee1887ebe412b4e3f10989120b39d8f709e4945c6dd606a00147e14ce931
avik-das/garlic
begin.scm
(begin (display "beginning new block:") (newline) (display 1) (newline) (display 2) (newline)) (newline) (display (+ 1 (begin (display "beginning new block:") (newline) (display 1) (newline) 2))) (newline) (newline) (display (if #t (begin (display ...
null
https://raw.githubusercontent.com/avik-das/garlic/5545f5a70f33c2ff9ec449ef66e6acc7881419dc/test/success/begin.scm
scheme
(begin (display "beginning new block:") (newline) (display 1) (newline) (display 2) (newline)) (newline) (display (+ 1 (begin (display "beginning new block:") (newline) (display 1) (newline) 2))) (newline) (newline) (display (if #t (begin (display ...
efa503797302bf5d13b86977061ffd2f663762db51c099e4e27ffbc2a2d7b259
aconchillo/guile-xmlrpc
client.scm
#!/usr/bin/env guile -s !# client example . Copyright ( C ) 2013 - 2018 Flaque < > ;; ;; This file is part of guile-xmlrpc. ;; ;; guile-xmlrpc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either...
null
https://raw.githubusercontent.com/aconchillo/guile-xmlrpc/3f346aabaeb828346bc8f6cbb52c9971f8ece7e7/examples/client.scm
scheme
This file is part of guile-xmlrpc. guile-xmlrpc is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. guile-xmlrpc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHA...
#!/usr/bin/env guile -s !# client example . Copyright ( C ) 2013 - 2018 Flaque < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License XMLRPC client sample (use-modules (xmlrpc) (ice-9 rdelim) ...
20f4e2515a07a18b197a548b0ab5242d9dbfde6246406e0af154369507d0a71b
dbuenzli/logs
logs_cli.ml
--------------------------------------------------------------------------- Copyright ( c ) 2015 The logs programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/logs/f948d255cde88b5b8a3d0e3ab16120e55d748836/src/logs_cli.ml
ocaml
Hack for the option's absent rendering
--------------------------------------------------------------------------- Copyright ( c ) 2015 The logs programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
157e417703bf0a182c4d85bd12a8393b167b3ab143a0e6ad87c22f02afe0b70c
bmeurer/ocamljit2
opttoploop.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/toplevel/opttoploop.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 . $ Id$ open Path open Lexing open Fo...
fa3d29391c1c62f282a5720990f4548b204eb6728077322d52d1d5e468196a41
wireapp/wire-server
LegalHoldService.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/c27541d7456e3ea07ce5c8991585d0ffc4fac226/services/galley/src/Galley/External/LegalHoldService.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 Galley.External.LegalHold...
4e94ac9b48e8784305a57821153bbb1bf9cd3483b067cc60880a2489f64221be
Tritlo/writ-plugin
Plugin.hs
Copyright ( c ) 2020 # LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module WRIT.Plugin ( plugin, module WRIT.Configure ) where import WRIT.Configure im...
null
https://raw.githubusercontent.com/Tritlo/writ-plugin/c2e23ade6c67ceec9504fa0505638ae5326b5a5b/WRIT/Plugin.hs
haskell
- Dynamic ----- ------------------------------------------------------------------------------ Exported ------------------------------------------------------------------------------ We do some extra work to pretty print the Defaulting messages We want to print a instead of a0 being defaulted. The solution to the ...
Copyright ( c ) 2020 # LANGUAGE LambdaCase # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module WRIT.Plugin ( plugin, module WRIT.Configure ) where import WRIT.Configure im...
477c29e7c41d1cf6779275eeb6aea483c9eafff4271c46fdf427432bdafbedeb
MarcKaufmann/congame
error.rkt
#lang racket/base (require congame-web/components/template koyo/haml koyo/http net/url web-server/http) (provide production-error-page) (define (production-error-page req _e) (page #:show-nav? #f (haml (.container (:h1 "An error occurred") (:p "Please click ...
null
https://raw.githubusercontent.com/MarcKaufmann/congame/ba0d4e4dc4208b4dddbbd602e9093b77bbdb7d1d/congame-web/pages/error.rkt
racket
#lang racket/base (require congame-web/components/template koyo/haml koyo/http net/url web-server/http) (provide production-error-page) (define (production-error-page req _e) (page #:show-nav? #f (haml (.container (:h1 "An error occurred") (:p "Please click ...
f951827d1cba6cd534891162430cd03496666b91526fc90720ffc3dc89ab5b1d
gogins/csound-extended-nudruz
pplanes.lisp
(in-package :cm) pplanes.lisp -- projective planes ( all vectors share only one element ) gap > D : = PGPointFlatBlockDesign(221 ) ; ; D.blocks ; BlockNumbers(D ) ; size 7 (defparameter pplane3 '( ( 1 2 3 ) ( 1 4 5 ) ( 1 6 7 ) ( 2 4 6 ) ( 2 5 7 ) ( 3 4 7 ) ( 3 5 6 ) )) gap > D : = PGPointFlatBlockDesi...
null
https://raw.githubusercontent.com/gogins/csound-extended-nudruz/4551d54890f4adbadc5db8f46cc24af8e92fb9e9/sources/pplanes.lisp
lisp
; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ; D.blocks ; BlockNumbers(D ) ; ... finding affine planes ... (make-poly (flatten...
(in-package :cm) pplanes.lisp -- projective planes ( all vectors share only one element ) size 7 (defparameter pplane3 '( ( 1 2 3 ) ( 1 4 5 ) ( 1 6 7 ) ( 2 4 6 ) ( 2 5 7 ) ( 3 4 7 ) ( 3 5 6 ) )) size 13 (defparameter pplane4 '( ( 1 2 3 4 ) ( 1 5 6 7 ) ( 1 8 9 10 ) ( 1 11 12 13 ) ( 2 5 8 11 ) ( 2 ...
f83783912fa81dd41e7479247bacbf3d93b2f72e525972e993dcffb15b09c33a
kadena-io/chainweb-node
Internal.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # {-# LANGUAGE GADTs #-} -- | Module : Chainweb . Rosetta . Internal Copyright : Copyright © 2018 - 2020 Kadena LLC . License : MIT Maintainer : < > -- Stability: experimental -- -- modu...
null
https://raw.githubusercontent.com/kadena-io/chainweb-node/aff594a05096341d01ae50a9f37056b2519025d2/src/Chainweb/Rosetta/Internal.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # | Stability: experimental internal modules - ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ^ Logs left to be matched ----------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Module : Chainweb . Rosetta . Internal Copyright : Copyright © 2018 - 2020 Kadena LLC . License : MIT Maintainer : < > module Chainweb.Rosetta.Internal where import Control.Error.Util import Control.Lens ((^?)) import ...
ac7244ad8f5fd674611e9223a73f1758ba6698685a9e2683c6e244c4efa4d219
hoelzl/Clicc
p1struct.lisp
;;;----------------------------------------------------------------------------- Copyright ( C ) 1993 Christian - Albrechts - Universitaet zu Kiel , Germany ;;;----------------------------------------------------------------------------- Projekt : APPLY - A Practicable And Portable Lisp Implementation ;;; ...
null
https://raw.githubusercontent.com/hoelzl/Clicc/cea01db35301144967dc74fd2f96dd58aa52d6ea/src/compiler/p1struct.lisp
lisp
----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ------------------------------------------------------ Funktion : Structures $Log: p1struct.lisp,v $ Revision 1.26 1994/06/03 14:09:33 hk :PRINT...
Copyright ( C ) 1993 Christian - Albrechts - Universitaet zu Kiel , Germany Projekt : APPLY - A Practicable And Portable Lisp Implementation $ Revision : 1.26 $ Statt set - struct - ref / set - struct - constructor werden jetzt setf - Methoden Revision 1.23 1993/06/25 09:02:11 wg BOA - Konstruktoren...
e954bf0e1b4528de7395ce34ce013b0116b6d39d92fe7b6638dd0f42178053c1
AmpersandTarski/Ampersand
ArchiAnalyze.hs
{-# LANGUAGE Arrows #-} # LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoMonomorphismRestriction # -- | -- Module : ArchiAnalyze Description : Interprets an ArchiMate(r ) repository as Ampersand context . -- Maintainer : -- Stability : experimental -- The purpose of this ...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/054079bd7f6ce40c73e30bd81ecdba5b6b36dba5/src/Ampersand/Input/Archi/ArchiAnalyze.hs
haskell
# LANGUAGE Arrows # # LANGUAGE OverloadedStrings # | Module : ArchiAnalyze Maintainer : Stability : experimental It works as follows: INCLUDE "<foo>.archimate" A lookup-function, `typeLookup`,is derived from `archiRepo`. The function `grindArchi` retrieves the population of meta-relations hSe...
# LANGUAGE DuplicateRecordFields # # LANGUAGE NoMonomorphismRestriction # Description : Interprets an ArchiMate(r ) repository as Ampersand context . The purpose of this module is to load ArchiMate content into an Ampersand context . This module parses an Archi - repository by means of function ` archi2PContext ...
5b28ff59de8722f6e44983ade785942bca02a62c18d2e41d19c4fa179d654e1e
erlang/otp
gc_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2023 . 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 applic...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/erts/emulator/test/gc_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 l...
Copyright Ericsson AB 1997 - 2023 . 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(gc_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([...
7befb5820bd10b7593d241c6862636b4e3f72fd103904ef7fea8d8f161a9c905
rickardlindberg/brainfuck
AcceptanceTests.hs
import System.Exit import System.Process data Test = Test { name :: String , program :: String , input :: String , expectedOutput :: String } runTest :: Test -> IO Bool runTest test = do (exit, stdout, stderr) <- readProcessWithExitCode "./dist/Main" [program test] (i...
null
https://raw.githubusercontent.com/rickardlindberg/brainfuck/fa4940f131adb3682b892f05bb5debef9576b27d/AcceptanceTests.hs
haskell
import System.Exit import System.Process data Test = Test { name :: String , program :: String , input :: String , expectedOutput :: String } runTest :: Test -> IO Bool runTest test = do (exit, stdout, stderr) <- readProcessWithExitCode "./dist/Main" [program test] (i...
b6716d9976d4c6fa77090885634acd2e93a90c6b58c0a12b9b4c759858229442
sealchain-project/sealchain
Tags.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # {-# LANGUAGE KindSignatures #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE Rank2Types #...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/pact/src/Pact/Analyze/Model/Tags.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE OverloadedStrings # # LANGUAGE PatternSynonyms # # LANGUAGE Rank2Types # | 'Symbolic' allocation of quantified variables for arguments and tags, for use prior to evaluation; and functions to sa...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # Z3 post - evaluation . module Pact.Analyze.Model.Tags ( allocArgs , allocMode...
612a42d950843dc6c94163c03f9de989097fe3b237e80a6ef0c6f366738d809c
talex5/ocaml-wayland
recv_buffer.mli
type t val create : int -> t (** [create size] is a fresh buffer that can hold up to [size] bytes. *) val free_buffer : t -> Cstruct.t (** [free_buffer t] is the contiguous free space in the buffer, for the next read operation. *) val update_producer : t -> int -> unit * [ t got ] records that [ got ] bytes were wr...
null
https://raw.githubusercontent.com/talex5/ocaml-wayland/1f46a3b3d13260c674c3846f42ee8e636cd86516/lib/recv_buffer.mli
ocaml
* [create size] is a fresh buffer that can hold up to [size] bytes. * [free_buffer t] is the contiguous free space in the buffer, for the next read operation. * [data_avail t] is the number of bytes of data available in the buffer. * [data t] returns a view onto the data in the buffer. The cstruct is valid until...
type t val create : int -> t val free_buffer : t -> Cstruct.t val update_producer : t -> int -> unit * [ t got ] records that [ got ] bytes were written to [ free_buffer t ] . val data_avail : t -> int val data : t -> Cstruct.t val update_consumer : t -> int -> unit val dump : t Fmt.t
3a5109c3c0ace22b336016e1307bd9fb10b104cda2152d609d88717da9b59b30
haskell/hoopl
Eval.hs
# OPTIONS_GHC -Wall -fno - warn - name - shadowing # # LANGUAGE RankNTypes , ScopedTypeVariables , GADTs , EmptyDataDecls , PatternGuards , TypeFamilies , NamedFieldPuns , FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances , FlexibleContexts # module Eval (evalProg, ErrorM) where import Control.Monad....
null
https://raw.githubusercontent.com/haskell/hoopl/89dde6af5b2fadfad726412c00a1ab01d34fd2a0/testing/Eval.hs
haskell
Evaluation functions Responsible for allocating and deallocating its own stack frame. event is recorded in evalProc I'm under no delusion that the following example is useful, but it demonstrates how the evaluator can use a new kind of evaluator. Symbolic evaluation. Hard questions: - how do we get heap addre...
# OPTIONS_GHC -Wall -fno - warn - name - shadowing # # LANGUAGE RankNTypes , ScopedTypeVariables , GADTs , EmptyDataDecls , PatternGuards , TypeFamilies , NamedFieldPuns , FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances , FlexibleContexts # module Eval (evalProg, ErrorM) where import Control.Monad....
f066dbfc5eda62ddf45d824c14423c016d1c894ec9c9f1ed8a442fde5f207aff
digital-dj-tools/dj-data-converter
core.cljc
#?(:clj (set! *warn-on-reflection* true)) (ns converter.rekordbox.core (:require [camel-snake-kebab.core :as csk] #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) [clojure.data.zip.xml :as zx] [clojure.zip :as zip] [converter.config :as config] [converter.universal.core :as u] [c...
null
https://raw.githubusercontent.com/digital-dj-tools/dj-data-converter/de1ae5cda60bc64ee3cca1a09b11e1808dd4738a/src/converter/rekordbox/core.cljc
clojure
Rekordbox xml tracks must have a total time
#?(:clj (set! *warn-on-reflection* true)) (ns converter.rekordbox.core (:require [camel-snake-kebab.core :as csk] #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) [clojure.data.zip.xml :as zx] [clojure.zip :as zip] [converter.config :as config] [converter.universal.core :as u] [c...
f5edfddcc5eaa03705cad518eb2b2d573da14f01754a97766b69e0d03100252d
facundoolano/advenjure-example
project.clj
(defproject example "0.1.0-SNAPSHOT" :description "Example game for the advenjure engine" :url "-example" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-cljsbuild "1.1.4"] [lein-figwheel "0.5.4-7"]] :dependencies [[org.clojure/clojure "1.8.0"] ...
null
https://raw.githubusercontent.com/facundoolano/advenjure-example/5810fbfaa09ed06802a64539d4856254c072ac8f/project.clj
clojure
(defproject example "0.1.0-SNAPSHOT" :description "Example game for the advenjure engine" :url "-example" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-cljsbuild "1.1.4"] [lein-figwheel "0.5.4-7"]] :dependencies [[org.clojure/clojure "1.8.0"] ...
e639a301edeb14a5d9ac4ff6eee22c6966b7c1a24fdd35097b9c087a0d6fb792
logseq/logseq
handler.cljs
(ns frontend.extensions.srs.handler (:require [dommy.core :refer-macros [sel]])) (defn click [id] (let [nodes (sel [:#cards-modal (str "." id)])] (doseq [node nodes] (.click node)))) (defn toggle-answers [] (click "card-answers")) (defn next-card [] (click "card-next")) (defn forgotten [] (cli...
null
https://raw.githubusercontent.com/logseq/logseq/7b92360889519d6b3a6f035e0e2bdc50ebbe87c4/src/main/frontend/extensions/srs/handler.cljs
clojure
(ns frontend.extensions.srs.handler (:require [dommy.core :refer-macros [sel]])) (defn click [id] (let [nodes (sel [:#cards-modal (str "." id)])] (doseq [node nodes] (.click node)))) (defn toggle-answers [] (click "card-answers")) (defn next-card [] (click "card-next")) (defn forgotten [] (cli...
6d35685b671dcfe2a0cf89019fe39e87bf8effaedd7e020caffc5f83199d0d5f
brandonchinn178/advent-of-code
Day3.hs
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Day3 where -- | Helper that returns Just (sqrt x) if the given input is a perfect -- square, or Nothing otherwise. evenSqrt :: Int -> Maybe Int evenSqrt x = if sqrtFrac == 0 then Just sqrtInt else Nothing where (sqrtInt, sqrtFrac) = properFraction $ sq...
null
https://raw.githubusercontent.com/brandonchinn178/advent-of-code/a4b0616f8764620e28759276c333fe37d6685d57/2017/Day3.hs
haskell
| Helper that returns Just (sqrt x) if the given input is a perfect square, or Nothing otherwise. The spiral is such that the bottom right corner of each layer are successive odd squares. > ... | Get the lowest square in a layer (e.g. layer 1 -> 2). | The side of a spiral. | The corners of a layer. | Get the ...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Day3 where evenSqrt :: Int -> Maybe Int evenSqrt x = if sqrtFrac == 0 then Just sqrtInt else Nothing where (sqrtInt, sqrtFrac) = properFraction $ sqrt $ fromIntegral x 17 16 15 14 13 18 5 4 3 12 19 6 1 2 11 20 ...
0255e0f4ebd8133a8a1dcdcc30ea230333c5b4180d142da2e54440bebf406492
jship/monad-logger-aeson
MetadataNoThreadContextYes.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # module TestCase.LogOtherNS.MetadataNoThreadContextYes ( testCase ) where import Control.Monad.Logger.Aeson ( (.=), Loc(..), LogLevel(..), LoggedMessage(..), logOtherNS, withThreadContext ) import Data.Aeson.QQ.Simple (aeson...
null
https://raw.githubusercontent.com/jship/monad-logger-aeson/b983befb790818628f1c4a5f02a2b96b08dcf6ce/monad-logger-aeson/test-suite/TestCase/LogOtherNS/MetadataNoThreadContextYes.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # module TestCase.LogOtherNS.MetadataNoThreadContextYes ( testCase ) where import Control.Monad.Logger.Aeson ( (.=), Loc(..), LogLevel(..), LoggedMessage(..), logOtherNS, withThreadContext ) import Data.Aeson.QQ.Simple (aesonQQ) import Data.Time (UTCTime(..)) ...
c8d174a44b7ba5188af0826b740a56ec288fffe1403e01721058a772e4440ff6
zachgk/catln
Expr.hs
-------------------------------------------------------------------- -- | -- Module : Syntax.Ct.Desugarf.Expr Copyright : ( c ) 2022 License : MIT -- Maintainer: -- Stability : experimental -- Portability: non-portable -- This module desugars a ' RawPrgm ' into a ' Prgm ' by removing all -- langua...
null
https://raw.githubusercontent.com/zachgk/catln/4fc0ed5d64fbf5f5f07b1a602d72de1fca9632ee/src/Syntax/Ct/Desugarf/Expr.hs
haskell
------------------------------------------------------------------ | Module : Syntax.Ct.Desugarf.Expr Maintainer: Stability : experimental Portability: non-portable language features outside of a minimalist core set. ------------------------------------------------------------------ | Updates the types b...
Copyright : ( c ) 2022 License : MIT This module desugars a ' RawPrgm ' into a ' Prgm ' by removing all module Syntax.Ct.Desugarf.Expr where import Data.Bifunctor (second) import qualified Data.HashMap.Strict as H import Data.Maybe import Text.Printf import ...
2724fe0ff7258bf11f33388d427c28a3fd2b25124e070884666ecd87b79d60bb
TorXakis/TorXakis
Constant.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} ----------------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/valexpr/src/Constant.hs
haskell
--------------------------------------------------------------------------- | Module : Constant Stability : experimental Portability : portable Data structure for constant definitions. --------------------------------------------------------------------------- # LANGUAGE DeriveAnyClass # # LANGUAG...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} Copyright : ( c ) TNO and Radboud...
c29f89b90c61b3df3e03ebce88017cc94ec41338b7693d98b83ac91248fc0cba
gafiatulin/codewars
Fold.hs
-- Folding your way to the moon -- module Codewars.Kata.Fold where thickness = 0.0001 foldTo :: Double -> Maybe Int foldTo d | d <= 0 = Nothing | otherwise = Just . ceiling . logBase 2 $ (d / thickness)
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/Fold.hs
haskell
Folding your way to the moon
module Codewars.Kata.Fold where thickness = 0.0001 foldTo :: Double -> Maybe Int foldTo d | d <= 0 = Nothing | otherwise = Just . ceiling . logBase 2 $ (d / thickness)
8b29420034ca5b46f60cab2aae4271dbdd8d9e0ca7cd41cb8f1b97c5a4391e15
disteph/cdsat
sorts.mli
(*****************************************) (* This is the collection of known sorts *) (*****************************************) type t = | Prop | Rat | Array of t*t | Fun of t*(t list) | User of string | BV of int [@@deriving eq, hash, show, ord] ...
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/kernel/kernel.mld/top.mld/sorts.mli
ocaml
*************************************** This is the collection of known sorts ***************************************
type t = | Prop | Rat | Array of t*t | Fun of t*(t list) | User of string | BV of int [@@deriving eq, hash, show, ord] val allsorts : string list -> t list
583e1cf3523b35a9d172da891067d551c74ed7d57373f947765f327956471da2
aliter/aliter
db.erl
-module(db). -include("include/records.hrl"). -export([ save_account/2, get_account/2, get_account_id/2]). -export([ save_char/2, delete_char/2, get_char/2, get_account_chars/2, get_account_char/3, get_char_id/2, rename_char/4]). -export([ save_guild/2, delete_guild/2...
null
https://raw.githubusercontent.com/aliter/aliter/03c7d395d5812887aecdca20b16369f8a8abd278/src/db.erl
erlang
redis:multi(C), redis:exec(C), redis:multi(C), redis:exec(C), redis:multi(C), redis:exec(C), redis:multi(C), redis:exec(C), redis:multi(C), redis:exec(C), redis:multi(C), redis:exec(C),
-module(db). -include("include/records.hrl"). -export([ save_account/2, get_account/2, get_account_id/2]). -export([ save_char/2, delete_char/2, get_char/2, get_account_chars/2, get_account_char/3, get_char_id/2, rename_char/4]). -export([ save_guild/2, delete_guild/2...
4af4652e27dec289cf27e20c0609f47b4ad702e7e354cc174f11264abfe01a5c
ryszard/Cl-Couch
request.lisp
(in-package :cl-couchdb-client) (export '(*couchdb-server* open-server couch-request* couch-request couch-urlize create-database +json-content-type+)) (unless (boundp '+json-content-type+) (defconstant +json-content-type+ "application/json;charset=utf-8")) (defvar *couchdb-server* nil "Default server used by re...
null
https://raw.githubusercontent.com/ryszard/Cl-Couch/de6900e38395dac3ddce53876b05d5e24c8d8f52/client/request.lisp
lisp
urlization requests this function is to make testing easier (if (string= content-type +json-content-type+) (json content) content) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permis...
(in-package :cl-couchdb-client) (export '(*couchdb-server* open-server couch-request* couch-request couch-urlize create-database +json-content-type+)) (unless (boundp '+json-content-type+) (defconstant +json-content-type+ "application/json;charset=utf-8")) (defvar *couchdb-server* nil "Default server used by re...
6508f5406274681661ab857c26d1bc0385e87907822809000e71889b3137fcb7
clojure-lsp/clojure-lsp
a.clj
(ns sample-test.declaration.a) (def some-var 1)
null
https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/a1caa57857e8ebb4fa5203d1c1723269cdddfa07/cli/integration-test/sample-test/src/sample_test/declaration/a.clj
clojure
(ns sample-test.declaration.a) (def some-var 1)
4c2d5a65f0c8299805caf73e220f93ad228f36a593bb8367046c613506550baf
ConferOpenSource/composite
Logging.hs
module Logging (LogFunction, withLogger, withLoggingFunc) where import ClassyPrelude import Control.Monad.Catch (MonadMask(..)) import Control.Monad.Logger ( LoggingT(runLoggingT), LogLevel, LogSource , Loc(loc_package, loc_module, loc_filename, loc_start) ) import Data.ByteString.Char8 (hPutStrLn) import System.L...
null
https://raw.githubusercontent.com/ConferOpenSource/composite/4be75266b5293516b225030c207c4e08b35c1df2/example/src/Logging.hs
haskell
|An alias for the long type that LoggingT requires to log messages |Create a logging context from a couple of logging settings
module Logging (LogFunction, withLogger, withLoggingFunc) where import ClassyPrelude import Control.Monad.Catch (MonadMask(..)) import Control.Monad.Logger ( LoggingT(runLoggingT), LogLevel, LogSource , Loc(loc_package, loc_module, loc_filename, loc_start) ) import Data.ByteString.Char8 (hPutStrLn) import System.L...
e07f98f3e4bad45356e50db0e1bee87b1c2c0bed38f87108747beaeb909d1ec4
lexi-lambda/racket-alexis-collections
sequence-lib.rkt
#lang racket/base (require rackunit alexis/collection racket/function racket/stream racket/port) (test-case "Side-effectful for-each" (check-equal? (with-output-to-string (thunk (for-each display (take 5 (in-naturals))))) "01234")) (test-case "Logical fold abbreviations" (check-equal? (andmap sy...
null
https://raw.githubusercontent.com/lexi-lambda/racket-alexis-collections/997c8642d9b2adb28728d609202618bc8ffbd750/alexis/collection/private/test/sequence-lib.rkt
racket
#lang racket/base (require rackunit alexis/collection racket/function racket/stream racket/port) (test-case "Side-effectful for-each" (check-equal? (with-output-to-string (thunk (for-each display (take 5 (in-naturals))))) "01234")) (test-case "Logical fold abbreviations" (check-equal? (andmap sy...
2f7f4cf173bde91622a565229c2174e0651369fdc59f60dc119916379e89ec36
haskell/cabal
single.test.hs
{-# LANGUAGE OverloadedStrings #-} import Test.Cabal.Prelude import Test.Cabal.DecodeShowBuildInfo main = cabalTest $ withRepo "repo" $ do runShowBuildInfo ["exe:Complex"] >> withPlan (do recordBuildInfo "Complex" (exe "Complex") assertComponent "Complex" (exe "Complex") defCompAssertion ...
null
https://raw.githubusercontent.com/haskell/cabal/c66a1260f86c9c2f16dc319604f766fd8f756045/cabal-testsuite/PackageTests/ShowBuildInfo/Complex/single.test.hs
haskell
# LANGUAGE OverloadedStrings #
import Test.Cabal.Prelude import Test.Cabal.DecodeShowBuildInfo main = cabalTest $ withRepo "repo" $ do runShowBuildInfo ["exe:Complex"] >> withPlan (do recordBuildInfo "Complex" (exe "Complex") assertComponent "Complex" (exe "Complex") defCompAssertion { modules = ["Other", "Paths_...
d789ace34087f7db4c7cedf4d076a2b1120d861f4aea646ec2f2b78c02964282
stchang/macrotypes
ext-stlc.rkt
#lang turnstile/base (extends "stlc+lit.rkt" #:except #%datum) ;; Simply-Typed Lambda Calculus, plus extensions (TAPL ch11) ;; Types: ;; - types from stlc+lit.rkt ;; - Bool, String ;; - Unit ;; Terms: - terms from stlc+lit.rkt ;; - literals: bool, string ;; - boolean prims, numeric prims ;; - if ;; - prim void : (→ ...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/optimize/ext-stlc.rkt
racket
Simply-Typed Lambda Calculus, plus extensions (TAPL ch11) Types: - types from stlc+lit.rkt - Bool, String - Unit Terms: - literals: bool, string - boolean prims, numeric prims - if - prim void : (→ Unit) - begin Top-level: - define (values and functions) - define-type-alias test all variations of define-...
#lang turnstile/base (extends "stlc+lit.rkt" #:except #%datum) - terms from stlc+lit.rkt - let , let * , (provide define-type-alias (for-syntax current-join) ⊔ (type-out Bool String Float Char Unit) zero? = (rename-out [typed- -] [typed* *]) (typed-out/unsafe [add1 (→...
00295ae0cba633df42fb7c3c52afae35ecd1431189316ba4d5be3a4ed920d9b5
hammerlab/biokepi
machine.ml
(**************************************************************************) Copyright 2014 , < > (* *) Licensed under the Apache License , Version 2.0 ( the " License " ) ; (* you may not use this file except i...
null
https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/run_environment/machine.ml
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , open Common open KEDSL module Tool = struct module Definition = struct type t = {name: string; version: ...
bf947eabef3ecfe2ca8ec6ba90ddfe3bf462f2cd07ce3869da19684b95bae9b0
mrkkrp/flac
StreamDecoder.hs
# LANGUAGE RecordWildCards # -- | -- Module : Codec.Audio.FLAC.StreamDecoder Copyright : © 2016 – present License : BSD 3 clause -- Maintainer : < > -- Stability : experimental -- Portability : portable -- The module contains a Haskell interface to FLAC stream decoder . -- -- ===...
null
https://raw.githubusercontent.com/mrkkrp/flac/926f3828abed820ade87deb7903207bc5c4b4f76/Codec/Audio/FLAC/StreamDecoder.hs
haskell
| Module : Codec.Audio.FLAC.StreamDecoder Stability : experimental Portability : portable === How to use this module Just call the 'decodeFlac' function with 'DecoderSettings', input and === Low-level details The implementation uses the reference implementation of FLAC—libFLAC (C library) under...
# LANGUAGE RecordWildCards # Copyright : © 2016 – present License : BSD 3 clause Maintainer : < > The module contains a Haskell interface to FLAC stream decoder . output file names . The ' decodeFlac ' function can produce WAVE and RF64 . libFLAC ( released 26 May 2013 ) installed for ...
2863ac3c7f15eb1f861a987c166de3db5eaaded99fb13f76730d464819efb98d
Idorobots/spartan
set.rkt
#lang racket ;; Set of symbols (require "utils.rkt") (provide set set? set-empty? set-member? set-difference set-merge set-union set-sum set-intersection set-insert set->list) ;; NOTE This is actually performing better than the built-in set implementation. (define (set? s) (and (list? ...
null
https://raw.githubusercontent.com/Idorobots/spartan/ef3b032906655585d284f1c9a33a58f1e35cb180/src/compiler/utils/set.rkt
racket
Set of symbols NOTE This is actually performing better than the built-in set implementation.
#lang racket (require "utils.rkt") (provide set set? set-empty? set-member? set-difference set-merge set-union set-sum set-intersection set-insert set->list) (define (set? s) (and (list? s) (sorted? s symbol<?))) (define (set . args) (sort args symbol<?)) (define (set-empty?...