_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
76ce7112cad381561220a512de3694838d6e283d6049e701b98eea336b07dd21
skanev/playground
06.scm
EOPL exercise 1.06 ; ; If we reversed the order of the tests in nth-element, what would go wrong? ; The code will look like this: (define nth-element (lambda (lst n) (if (zero? n) (car lst) (if (null? lst) (report-list-too-short n) (nth-element (cdr lst) (- n 1)))))) We will loo...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/01/06.scm
scheme
If we reversed the order of the tests in nth-element, what would go wrong? The code will look like this: computation will attempt to return the car of '(), which will result to an error. This is not the error we had in mind, though.
EOPL exercise 1.06 (define nth-element (lambda (lst n) (if (zero? n) (car lst) (if (null? lst) (report-list-too-short n) (nth-element (cdr lst) (- n 1)))))) We will loose the error message in one specific case - that is , when we call ( nth - elemen lst n ) when n is ( length ...
d392610bdadf749b0080a64bf9981f0096f24246b91115951f2954c0b4e78ac5
robert-strandh/SICL
tie.lisp
(cl:in-package #:sicl-run-time) ;;; When a code object is tied to a particular environment, this ;;; variable holds the code vector containing the native instructions. (defvar *code-vector*) ;;; When a code object is tied to a particular environment, this ;;; variable holds the vector of literals that the garbage col...
null
https://raw.githubusercontent.com/robert-strandh/SICL/c4c25c2f71026d8b8070d90a8803e8a661c4d1c3/Code/Compiler/Run-time/tie.lisp
lisp
When a code object is tied to a particular environment, this variable holds the code vector containing the native instructions. When a code object is tied to a particular environment, this variable holds the vector of literals that the garbage collector will traverse in order to keep those literals live. After th...
(cl:in-package #:sicl-run-time) (defvar *code-vector*) (defvar *literals-vector*) (defun resolve-load-time-value (literal code-vector-index literals-vector-index) (declare (ignore literal code-vector-index literals-vector-index)) nil)
b750d165d49c35a0df5158eea0a3c2133937a52832770d64cc31b0bf48f82f1e
bobatkey/foveran
Hole.hs
{-# LANGUAGE OverloadedStrings #-} module Language.Foveran.Typing.Hole ( HoleContext , HoleGoal (..) , HoleData , getHoleContext , getHoleGoal , makeHole , ppHole , Holes (getHoles) , noHoles , extendWithHole , lookupHole ) where import Text.PrettyPrint i...
null
https://raw.githubusercontent.com/bobatkey/foveran/e57463e3f6923becdf1249cd2fd0ccfcd566f7c5/src/Language/Foveran/Typing/Hole.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Pretty printing of holes want it to look like: x : type1 y : type2 ... - |- typeGoal or Type ---------------------...
module Language.Foveran.Typing.Hole ( HoleContext , HoleGoal (..) , HoleData , getHoleContext , getHoleGoal , makeHole , ppHole , Holes (getHoles) , noHoles , extendWithHole , lookupHole ) where import Text.PrettyPrint import Language.Foveran.Sy...
df06dc8136109bb17ab10f590d32d7f000e65bf4bc9a3e0fa13b80cf39f8034a
erlyaws/yaws
wiki_to_html.erl
-module(wiki_to_html). %% File : wiki_to_html.erl Author : ( ) : , minor modifications ( ) : ( ) %% Purpose : Convert wiki page tree to HTML %% $ Id$ -export([format_wiki/3,format_wiki/4, format_link/2, format_wiki_files/4, format_wiki_files/5, format_menu_link/3]). -inc...
null
https://raw.githubusercontent.com/erlyaws/yaws/da198c828e9d95ca2137da7884cddadd73941d13/applications/wiki/src/wiki_to_html.erl
erlang
File : wiki_to_html.erl Purpose : Convert wiki page tree to HTML \">\n" TODO: Refactor that: The use of the page is ugly: This is used to create the Wiki menu \" cellpadding=20>\n<tr><td bgcolor=\"",
-module(wiki_to_html). Author : ( ) : , minor modifications ( ) : ( ) $ Id$ -export([format_wiki/3,format_wiki/4, format_link/2, format_wiki_files/4, format_wiki_files/5, format_menu_link/3]). -include_lib("kernel/include/file.hrl"). format_wiki_files(_Page, _FileDir, [], ...
9657b03e1e4fff36cece8b72f828b663f1f41c43f40f5621fd22391995b51d19
madjestic/Haskell-OpenGL-Tutorial
TinyMath.hs
module TinyMath.TinyMath where type Matrix2D = (Float, Float, Float, Float) type Point2D = (Float, Float) -- | -- | Prime Factorisation -- | -- | isPrime n k is just an interface function for isPrime' isPrime :: RealFrac a => a -> Bool isPrime n | n == 1 = False | n == 2 =...
null
https://raw.githubusercontent.com/madjestic/Haskell-OpenGL-Tutorial/9f685ddde9d6c5d2cc9c2c62f214ca0d43e717c7/Mandelbrot.make/TinyMath/TinyMath.hs
haskell
| | Prime Factorisation | | isPrime n k is just an interface function for isPrime' | isPrime' needs an index k (since we can't use variables) | it is a naive, inefficient implementation. Be warned. | factorize1 function is an interface to factorize function | | Prime spiral | | converts degrees to radians ...
module TinyMath.TinyMath where type Matrix2D = (Float, Float, Float, Float) type Point2D = (Float, Float) isPrime :: RealFrac a => a -> Bool isPrime n | n == 1 = False | n == 2 = True | otherwise = isPrime' n 2 isPrime' :: RealFrac a => a -> a -> Bool isPrime' n ...
37c6dcc702dd08bed726a5a18a558b8985a2cb6c4f56897da8ac7b4c294d31cb
ostinelli/syn
syn_benchmark.erl
%% ========================================================================================================== Syn - A global Process Registry and Process Group manager . %% The MIT License ( MIT ) %% Copyright ( c ) 2019 - 2022 < > and Neato Robotics , Inc. %% %% Permission is hereby granted, free of charge, t...
null
https://raw.githubusercontent.com/ostinelli/syn/e68fe71c2ddbabc10adaf0a45c362b24039c9b0a/test/syn_benchmark.erl
erlang
========================================================================================================== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, s...
Syn - A global Process Registry and Process Group manager . The MIT License ( MIT ) Copyright ( c ) 2019 - 2022 < > and Neato Robotics , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or ...
ad6e647e7a78f2525f566e72e43f4c6eeaef227ceaed3c9a7976bad182d39a24
scicloj/wadogo
ranges.clj
(ns wadogo.format.ranges (:require [wadogo.format.numbers :refer [formatter]] [fastmath.core :as m])) (defn range-formatter ([] (range-formatter {:endpoints :open})) ([formatter-params] (let [method (:endpoints formatter-params) fmtr (formatter formatter-params)] (fn [[left right]] ...
null
https://raw.githubusercontent.com/scicloj/wadogo/e0e2c800dda198e551aa4febe06594a1952f1e96/src/wadogo/format/ranges.clj
clojure
=> "≥ 3.0"
(ns wadogo.format.ranges (:require [wadogo.format.numbers :refer [formatter]] [fastmath.core :as m])) (defn range-formatter ([] (range-formatter {:endpoints :open})) ([formatter-params] (let [method (:endpoints formatter-params) fmtr (formatter formatter-params)] (fn [[left right]] ...
a369cc877f61d0cf798ecdd714c29b87690509effd868cc84870fbd05eeb4b37
shortishly/pgmp
pgmp_rep_log_ets_common.erl
Copyright ( c ) 2023 < > %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under...
null
https://raw.githubusercontent.com/shortishly/pgmp/9e35f259d481cf24f69937a595fc1d1e507528fc/src/pgmp_rep_log_ets_common.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissi...
Copyright ( c ) 2023 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(pgmp_rep_log_ets_common). -export([delete/5]). -export([insert_new/5]). -export([insert_or_update_tuple/2]). -export([metadata/4]). -ex...
7ab8a39cbb5848d97d9e1393980b718003643f931cb364158c9beedaada79f5b
froggey/Mezzano
environment.lisp
;;;; Environment introspection and modification. (in-package :mezzano.compiler) (defclass symbol-macro () ((%name :initarg :name :accessor name) (%expansion :initarg :expansion :accessor symbol-macro-expansion))) (defclass top-level-function () ((%name :initarg :name :accessor name))) (defun function-name-p ...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/compiler/environment.lisp
lisp
Environment introspection and modification. Lexical environments.
(in-package :mezzano.compiler) (defclass symbol-macro () ((%name :initarg :name :accessor name) (%expansion :initarg :expansion :accessor symbol-macro-expansion))) (defclass top-level-function () ((%name :initarg :name :accessor name))) (defun function-name-p (object) (or (symbolp object) (and (consp...
bcb9b4f44c644af568050fcb8de1694b3959df7ce514ea66e46f363d487a308a
footprintanalytics/footprint-web
action_test.clj
(ns metabase.models.action-test (:require [clojure.test :refer :all] [metabase.actions.test-util :as actions.test-util] [metabase.models.action :as action] [metabase.test :as mt])) (deftest hydrate-query-action-test (mt/test-drivers (mt/normal-drivers-with-feature :actions/custo...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/models/action_test.clj
clojure
(ns metabase.models.action-test (:require [clojure.test :refer :all] [metabase.actions.test-util :as actions.test-util] [metabase.models.action :as action] [metabase.test :as mt])) (deftest hydrate-query-action-test (mt/test-drivers (mt/normal-drivers-with-feature :actions/custo...
df1de5d796677e6dac81c97a86b83689896cd9b702f178b49c0d3cbf5ff08d06
kupl/FixML
sub10.ml
type formula = | True | False | Not of formula | AndAlso of formula * formula | OrElse of formula * formula | Imply of formula * formula | Equal of exp * exp and exp = | Num of int | Plus of exp * exp | Minus of exp * exp let rec expfun : exp -> int = fun q -> match q with |Num i -> i |Plus (i,k) -...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula1/submissions/sub10.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of formula * formula | OrElse of formula * formula | Imply of formula * formula | Equal of exp * exp and exp = | Num of int | Plus of exp * exp | Minus of exp * exp let rec expfun : exp -> int = fun q -> match q with |Num i -> i |Plus (i,k) -...
8c99e7e2b03d9cca3b96a5b26459fa55319194db50acdc018f7906cbb187fa7a
arttuka/reagent-material-ui
tab.cljs
(ns reagent-mui.material.tab "Imports @mui/material/Tab as a Reagent component. Original documentation is at -ui/api/tab/ ." (:require [reagent.core :as r] ["@mui/material/Tab" :as MuiTab])) (def tab (r/adapt-react-class (.-default MuiTab)))
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/tab.cljs
clojure
(ns reagent-mui.material.tab "Imports @mui/material/Tab as a Reagent component. Original documentation is at -ui/api/tab/ ." (:require [reagent.core :as r] ["@mui/material/Tab" :as MuiTab])) (def tab (r/adapt-react-class (.-default MuiTab)))
ed081dfe4374f25b72c35851f9b42fe31b7147993cb9b5717f41df73f62908db
GaloisInc/cryptol
Sanity.hs
-- | Module : Cryptol . . Sanity Copyright : ( c ) 2015 - 2016 Galois , Inc. -- License : BSD3 -- Maintainer : -- Stability : provisional -- Portability : portable {-# Language OverloadedStrings #-} module Cryptol.TypeCheck.Sanity ( tcExpr , tcDecls , tcModule , ProofObligation ,...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/31d30c1db74894a24d5542c6de47a5ae786bc847/src/Cryptol/TypeCheck/Sanity.hs
haskell
| License : BSD3 Maintainer : Stability : provisional Portability : portable # Language OverloadedStrings # | Identify proof obligations that are obviously true. We can filter these to avoid clutter ------------------------------------------------------------------------------ | Validate a type, ret...
Module : Cryptol . . Sanity Copyright : ( c ) 2015 - 2016 Galois , Inc. module Cryptol.TypeCheck.Sanity ( tcExpr , tcDecls , tcModule , ProofObligation , onlyNonTrivial , Error(..) , AreSame(..) , same ) where import Cryptol.Parser.Position(thing,Range,emptyRange) import Cryptol.Ty...
4de97e3962a14dbf9a48482a4b9a9f127ac22d727fe9ab29054b21497567aa90
hstreamdb/hstream
Bench.hs
import Criterion.Main import CodecBench import CompresstionBench main :: IO () main = defaultMain benchmarks where benchmarks = benchCodec <> benchCompresstion
null
https://raw.githubusercontent.com/hstreamdb/hstream/125d9982d47874aee5e33324b55689d64bd664c2/common/hstream/bench/Bench.hs
haskell
import Criterion.Main import CodecBench import CompresstionBench main :: IO () main = defaultMain benchmarks where benchmarks = benchCodec <> benchCompresstion
30764389b11d5ad0723595864365b4e81d319d426b8186c104f6a16b76caba5c
locusmath/locus
object.clj
(ns locus.set.copresheaf.quiver.unital.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.con.core.object :refer [projection]] ...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/set/copresheaf/quiver/unital/object.clj
clojure
A category is a structure equipped with a set of arrows between points having a source function, a target function, identities for each object, and the composition of arrows. A quiver handles the source and the target functions, but it is also necessary to have something that can handle the data of a quiver equipp...
(ns locus.set.copresheaf.quiver.unital.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.con.core.setpart :refer :all] [locus.con.core.object :refer [projection]] ...
c2d3d96ffd80b2805b80fe35bdec7be26ed98695240e99b1aa2259b93461cf43
ghc/nofib
Main.hs
module Main(main) where import Data.Array import System.Environment import Parse import Simulate import Types main :: IO () main = do args <- getArgs if (length args < 4 || length args > 6) then putStr (unlines ["Set Circuit Simulator", "scs <file> <seed> <dt> <end time> [<temperature>] [<random background char...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/scs/Main.hs
haskell
module Main(main) where import Data.Array import System.Environment import Parse import Simulate import Types main :: IO () main = do args <- getArgs if (length args < 4 || length args > 6) then putStr (unlines ["Set Circuit Simulator", "scs <file> <seed> <dt> <end time> [<temperature>] [<random background char...
5c7af71f05d48f706801db410c525c6ac1a13ccf73eb5d4686f47f144a440bc4
wireapp/wire-server
MLS.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/7cd0a9c1dc423f87d46ad86fccaced93c6147fb1/services/galley/src/Galley/API/Public/MLS.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.API.Public.MLS whe...
0d16bd96a62f6b3cab5efae908ffda76dd5633bc155f9950782c2effe76625ca
shop-planner/shop3
pfile2.lisp
(in-package :shop-user) (defproblem umt.pfile2 UM-TRANSLOG-2 ( ;;; ;;; facts ;;; (REGION REGION0) (CITY CITY0) (CITY CITY1) (LOCATION LOCATION0) (LOCATION LOCATION1) (LOCATION LOCATION2) (LOCATION LOCATION3) (LOCATION LOCATION4) (LOCATION LOCATION5) (VEHICLE TRUCK0...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/UMT2/pfile2.lisp
lisp
facts initial states goals
(in-package :shop-user) (defproblem umt.pfile2 UM-TRANSLOG-2 ( (REGION REGION0) (CITY CITY0) (CITY CITY1) (LOCATION LOCATION0) (LOCATION LOCATION1) (LOCATION LOCATION2) (LOCATION LOCATION3) (LOCATION LOCATION4) (LOCATION LOCATION5) (VEHICLE TRUCK0) (VEHICLE TRUCK1) (VEH...
6d99dea281325d72cb11c10df83f61d23f1869903953a8c3ecacfbc9eab6f8bc
camllight/camllight
lecture.mli
#open "code";; value programme: char stream -> instruction vect;;
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/picomach/lecture.mli
ocaml
#open "code";; value programme: char stream -> instruction vect;;
d9ad10487909048f3f24cfcb62f6c64cdccc8f441f3c82c0334a09700b3c5f2c
AndrasKovacs/ELTE-func-lang
Lesson07_pre.hs
{-# LANGUAGE DeriveFunctor, DeriveFoldable #-} module Lesson07 where -- promptUntilCorrect, replicateM, replicateM_, numOfCharsInNLines State : runState , Functor , Applicative , Monad , evalState , execState , get , put , modify Definiálj egy függvényt , értékeket lista elemeire . Használj State m...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/4cf17a7eb7aca842eac686321a3aa9fc1e75878c/2021-22-2/gyak_2/Lesson07_pre.hs
haskell
# LANGUAGE DeriveFunctor, DeriveFoldable # promptUntilCorrect, replicateM, replicateM_, numOfCharsInNLines (Node (Leaf 0) (Node (Leaf 0) (Leaf 0))) == (Node (Leaf 5) (Node (Leaf 0) (Leaf 0))) sorrendjét! tipp: használhatod a replaceLeaves függvényt.
module Lesson07 where State : runState , Functor , Applicative , Monad , evalState , execState , get , put , modify Definiálj egy függvényt , értékeket lista elemeire . Használj State monádot ! data Tree a = Leaf a | Node (Tree a) (Tree a) deriving (Functor, Show, Foldable) pl : replaceLeaves...
8e09bf165ca0d06f1b777263f164ee3f3db7b45aff48244b4841e49ee856399e
MarcosPividori/push-notify
Extra.hs
# LANGUAGE OverloadedStrings , TypeFamilies , TemplateHaskell , TypeSynonymInstances , FlexibleInstances , QuasiQuotes , MultiParamTypeClasses , GeneralizedNewtypeDeriving , FlexibleContexts , GADTs # QuasiQuotes, MultiParamTypeClasses, GeneralizedNewtypeDeriving, FlexibleContexts, GADTs...
null
https://raw.githubusercontent.com/MarcosPividori/push-notify/4c023c3fd731178d1d114774993a5e337225baa1/test/Connect4/Yesod-App/Extra.hs
haskell
This module defines some common datatypes.
# LANGUAGE OverloadedStrings , TypeFamilies , TemplateHaskell , TypeSynonymInstances , FlexibleInstances , QuasiQuotes , MultiParamTypeClasses , GeneralizedNewtypeDeriving , FlexibleContexts , GADTs # QuasiQuotes, MultiParamTypeClasses, GeneralizedNewtypeDeriving, FlexibleContexts, GADTs...
f4982cc9f22c31cfa4ef53b89bc9ae39211bf3c241df3bbb1482deb85a2042be
spawnfest/dtu
dtu_js.erl
-module(dtu_js). -export([format/1, pp_root/2]). -define(PAPER, 80). -define(RIBBON, 56). -import(prettypr, [text/1, beside/2, sep/1]). -import(dtu_pp, [abovel/2, besidel/2, pp_unk/3, atext/2, ntext/2, nestc/2, join/4, join_no_sep/4, quo...
null
https://raw.githubusercontent.com/spawnfest/dtu/de71d8dc0f1823c234359f0abd72c6162905c0cd/src/dtu_js.erl
erlang
-module(dtu_js). -export([format/1, pp_root/2]). -define(PAPER, 80). -define(RIBBON, 56). -import(prettypr, [text/1, beside/2, sep/1]). -import(dtu_pp, [abovel/2, besidel/2, pp_unk/3, atext/2, ntext/2, nestc/2, join/4, join_no_sep/4, quo...
636b7a2c9fa27a12c160ef7f337bd097b3d1897dc33a70474ec2896337bf8361
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE NoRebindableSyntax # {-# LANGUAGE OverloadedString...
null
https://raw.githubusercontent.com/facebook/duckling/03c6197283943c595608bb977a88a07c9e997006/Duckling/Time/PT/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # # LANGUAGE NoRebindableSyntax # module Duckling.Time.PT.Rules ( rules ) where import Data.Text (Text) import Prelude import qualified Data.Text as Text import Duckling.Dimensions.Types import Duckling.Duration.Helpers (isGrain) import D...
1fd161a28f8a841eb40d7f1c200cf363085c719d2fdd89cc43eefd6e16a1f8bd
prg-titech/baccaml
typecast.ml
;; let size = 10 in let rec init_array a i = if i < 0 then a else ( a.(i) <- i; init_array a (i - 1)) in (* a is [0;1;...;9] *) let a = init_array (Array.create size (-1)) (size - 1) in (* declaring a casting function: int array -> int *) let rec cast_fAII x = x in (* declaring a casting function: int -> ...
null
https://raw.githubusercontent.com/prg-titech/baccaml/a3b95e996a995b5004ca897a4b6419edfee590aa/etc/example/typecast.ml
ocaml
a is [0;1;...;9] declaring a casting function: int array -> int declaring a casting function: int -> int array cast_fAII returns a's address as an integer a and b are sharing memory
;; let size = 10 in let rec init_array a i = if i < 0 then a else ( a.(i) <- i; init_array a (i - 1)) in let a = init_array (Array.create size (-1)) (size - 1) in let rec cast_fAII x = x in let rec cast_fIAI x = x in just print the first three elements of a print_int a.(0); print_int a.(1); print_int a....
9cbe5d1c8d170e5d1712a152c7bf17c56a717b61b968df59b1251c1964ac3f01
poscat0x04/telegram-types
SetChatAdministratorCustomTitle.hs
module Web.Telegram.Types.Internal.API.SetChatAdministratorCustomTitle where import Common import Web.Telegram.Types.Internal.API.ChatId data SetChatAdministratorCustomTitle = SetChatAdministratorCustomTitle { chatId :: ChatId, userId :: Int, customTitle :: Text } deriving stock (Show, Eq) mkLabel ''Se...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/3de0710640f5303638a83e409001b0342299aeb8/src/Web/Telegram/Types/Internal/API/SetChatAdministratorCustomTitle.hs
haskell
module Web.Telegram.Types.Internal.API.SetChatAdministratorCustomTitle where import Common import Web.Telegram.Types.Internal.API.ChatId data SetChatAdministratorCustomTitle = SetChatAdministratorCustomTitle { chatId :: ChatId, userId :: Int, customTitle :: Text } deriving stock (Show, Eq) mkLabel ''Se...
fbf51b10f673b939cb3ecf29ef48e2b6f566a57e24a1eff42307fb040ac7987c
facebookarchive/pfff
jg_memo.mli
(**************************************************************************) (* Lablgtk - Applications *) (* *) (* * You are free to do anything you want with this code as long *) (* as i...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlgtk/applications/browser/jg_memo.mli
ocaml
************************************************************************ Lablgtk - Applications * You are free to do anything you want with this code as long as it is for personal ...
< > < > < > < > < > < > $ I d : jg_memo.mli 1352 2007 - 07 - 12 08:56:18Z zoggy $ val fast ...
bf04e04c54f966c8650cea6c98392fd4be1b3315b1bacf368351c8c6c1f235bf
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
SubscriptionItemBillingThresholds.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema SubscriptionItemBillingThresholds module StripeAPI.Types.SubscriptionItemBil...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/SubscriptionItemBillingThresholds.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Defines the object schema located at @components.schemas.subscription_item_billing_thresholds@ in the specification. | usage_gte: Usage threshold that triggers the subscription to create an invoice
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema SubscriptionItemBillingThresholds module StripeAPI.Types.SubscriptionItemBillingThresholds where import qualified Control.Monad.Fail impor...
8d3a8e5c2768263a6f0bca0b2e58821f4d7c61e1892991387419a8471e832435
mark-watson/lisp_practical_semantic_web
parse.lisp
This file is part of yason , a Common Lisp JSON parser / encoder ;; Copyright ( c ) 2008 ;; All rights reserved. ;; ;; Please see the file LICENSE in the distribution. (in-package :yason) (defconstant +default-string-length+ 20 "Default length of strings that are created while reading json input.") (defvar *...
null
https://raw.githubusercontent.com/mark-watson/lisp_practical_semantic_web/2d9d5bb06b574ab0bff15664fe747a5b99e1fb1b/utils/yason/parse.lisp
lisp
All rights reserved. Please see the file LICENSE in the distribution. would be (cl-ppcre:scan-to-strings "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+|)(?:[eE][-+]?[0-9]+|)" buffer) but we want to operate on streams
This file is part of yason , a Common Lisp JSON parser / encoder Copyright ( c ) 2008 (in-package :yason) (defconstant +default-string-length+ 20 "Default length of strings that are created while reading json input.") (defvar *parse-object-key-fn* #'identity "Function to call to convert a key string in a J...
8a60257ac79585be1723e5c27ae702bc5912b00f551f23594f582ff174df7eb2
heyoka/faxe
esp_stats_difference.erl
Date : 09.12.16 - 18:02 Ⓒ 2016 heyoka -module(esp_stats_difference). -author("Alexander Minichmair"). -behavior(esp_stats). %% API -export([execute/2, options/0]). options() -> esp_stats:get_options() ++ [{module, atom, ?MODULE}]. execute({Tss, Values}, _Opts) -> Res = calc(lists:reverse(Values), lists:re...
null
https://raw.githubusercontent.com/heyoka/faxe/e539afe8b62790a6037914751deef7d815be11a2/apps/faxe/src/components/stats/esp_stats_difference.erl
erlang
API basic_test() -> ?assertEqual([2,5,8,39], execute([1,3,8,16,55])).
Date : 09.12.16 - 18:02 Ⓒ 2016 heyoka -module(esp_stats_difference). -author("Alexander Minichmair"). -behavior(esp_stats). -export([execute/2, options/0]). options() -> esp_stats:get_options() ++ [{module, atom, ?MODULE}]. execute({Tss, Values}, _Opts) -> Res = calc(lists:reverse(Values), lists:reverse(T...
c5b61ad7360da782f3c0cb9cdb150452141c3923ce0662105064d648b20e5552
pookleblinky/lifescripts
skillcheck.rkt
#lang racket (require "rng.rkt") So , I never played 's as a kid , despite devouring the rulebooks and such . ; My original model of saving throws was wrong. ; I'm using Call of Cthulhu stats, too, so it was not even wrong. ;; Given an attribute or skill, roll a d100. If the result is lower, success. ;; But, I st...
null
https://raw.githubusercontent.com/pookleblinky/lifescripts/eab3fe5aaf2c9f5ee9baaa441cb5d556cd7a3a78/machinery/skillcheck.rkt
racket
My original model of saving throws was wrong. I'm using Call of Cthulhu stats, too, so it was not even wrong. Given an attribute or skill, roll a d100. If the result is lower, success. But, I started off backwards and upside down.
#lang racket (require "rng.rkt") So , I never played 's as a kid , despite devouring the rulebooks and such . (provide skillcheck) (define (skillcheck numbertobeat) (define result (rolld100)) (< result numbertobeat)) TODO : switch to 2d6+modifier for bell curve and gradations
4cd4a53ec97be96dbbb27613b19a265928763c59e6192d5e83c8901ea59c3f74
esl/MongooseIM
service_admin_extra_sessions.erl
%%%------------------------------------------------------------------- File : service_admin_extra_sessions.erl Author : > , < > %%% Purpose : Contributed administrative functions and commands Created : 10 Aug 2008 by > %%% %%% ejabberd , Copyright ( C ) 2002 - 2008 ProcessOne %%% %%% This prog...
null
https://raw.githubusercontent.com/esl/MongooseIM/dda03c16c83f5ea9f5c9b87c3b36c989813b9250/src/admin_extra/service_admin_extra_sessions.erl
erlang
------------------------------------------------------------------- Purpose : Contributed administrative functions and commands This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHO...
File : service_admin_extra_sessions.erl Author : > , < > Created : 10 Aug 2008 by > ejabberd , Copyright ( C ) 2002 - 2008 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have receive...
07debaf6af7286f841f687e737f66d95e46bdf9cfd1cb77bbef46a00ab1d6f5c
plumatic/grab-bag
graph_experimental_test.clj
(ns plumbing.graph-experimental-test (:use clojure.test plumbing.core plumbing.graph-experimental) (:require [schema.core :as s] [plumbing.fnk.pfnk :as pfnk] [plumbing.graph :as graph])) (defn test-graph [u!] (graph/graph :x (fnk [a b] (u! :x) (str a b)) :y {:y1 (fnk [a x] (u! :y1) (str a x)) ...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/plumbing/test/plumbing/graph_experimental_test.clj
clojure
(ns plumbing.graph-experimental-test (:use clojure.test plumbing.core plumbing.graph-experimental) (:require [schema.core :as s] [plumbing.fnk.pfnk :as pfnk] [plumbing.graph :as graph])) (defn test-graph [u!] (graph/graph :x (fnk [a b] (u! :x) (str a b)) :y {:y1 (fnk [a x] (u! :y1) (str a x)) ...
3848e90b7e3143f76ee6c9362772e815bcdf9687778ea092a02ae29526f45ff1
Appliscale/xprof
test_module.erl
%%% @doc Module to generate sample data %%% start tracing on `test_module:expensive_fun/1' %%% @end -module(test_module). -export([start/0]). start() -> loop(). loop() -> lists:foreach(fun(_) -> SleepTime = 100 + round(math:pow(2,rand:uniform(6))), spawn(fun...
null
https://raw.githubusercontent.com/Appliscale/xprof/3e7f6fa9bbd00f2c1bc528b5ad4080e5ae2038af/apps/xprof_core/src/test_module.erl
erlang
@doc Module to generate sample data start tracing on `test_module:expensive_fun/1' @end
-module(test_module). -export([start/0]). start() -> loop(). loop() -> lists:foreach(fun(_) -> SleepTime = 100 + round(math:pow(2,rand:uniform(6))), spawn(fun() -> expensive_fun(SleepTime) end) end, lists:seq(1,100)), timer:sleep(1000),...
3edb703d87807680e0b4079495f44f8a73445449da2b80c0095a1b981c148489
gmarpons/asciidoc-hs
Main.hs
module Main ( main, ) where import Test.Tasty import Tests.Blocks import Tests.Inlines import Tests.Metadata main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "tests" [functionalTests] functionalTests :: TestTree functionalTests = testGroup "functional tests" [ blockUnitTests,...
null
https://raw.githubusercontent.com/gmarpons/asciidoc-hs/7bcda1dcbb70747563085d3926ddd2ddf7fc2250/test/Tests/Main.hs
haskell
module Main ( main, ) where import Test.Tasty import Tests.Blocks import Tests.Inlines import Tests.Metadata main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "tests" [functionalTests] functionalTests :: TestTree functionalTests = testGroup "functional tests" [ blockUnitTests,...
0bdc364165f1611aa81fe285086214d540706732b88e0780a18eb8acc677113d
simplex-chat/simplex-chat
Test.hs
import ChatClient import ChatTests import Control.Logger.Simple import Data.Time.Clock.System import MarkdownTests import MobileTests import ProtocolTests import SchemaDump import Test.Hspec import UnliftIO.Temporary (withTempDirectory) import WebRTCTests main :: IO () main = do withGlobalLogging logCfg . hspec $...
null
https://raw.githubusercontent.com/simplex-chat/simplex-chat/01acbb970ae7762e1551e352131453e77a601764/tests/Test.hs
haskell
import ChatClient import ChatTests import Control.Logger.Simple import Data.Time.Clock.System import MarkdownTests import MobileTests import ProtocolTests import SchemaDump import Test.Hspec import UnliftIO.Temporary (withTempDirectory) import WebRTCTests main :: IO () main = do withGlobalLogging logCfg . hspec $...
706cbaca205ffb33c8098e802483042c20545436e4595c17314938cc139a38a1
elaforge/karya
Gangsa_test.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Derive.C.Bali.Gangsa_test where import qualified Data.List as List import qualified Data.Text as Text import qualified Util.Seq as Seq import qualified Derive.C.Bali.Gangsa as Gan...
null
https://raw.githubusercontent.com/elaforge/karya/a262a253663c9ebc6c811fc4aedd5fec04e27fde/Derive/C/Bali/Gangsa_test.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * norot Prepare next note. You can get just a preparation with a short note. Negative duration implies initial=f so it works too. Unless it doesn't tocuh. No pitch at 0, but it's not a problem because ther...
Copyright 2013 module Derive.C.Bali.Gangsa_test where import qualified Data.List as List import qualified Data.Text as Text import qualified Util.Seq as Seq import qualified Derive.C.Bali.Gangsa as Gangsa import qualified Derive.Derive as Derive import qualified Derive.DeriveTest as DeriveTest import qualified De...
576eb509d94bb37669605bb48af2e3ae754686bdf84a229e72935a9f9bea3f6d
polyvios/locksmith
lockprofile.ml
* * Copyright ( c ) 2004 - 2007 , * Polyvios Pratikakis < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1...
null
https://raw.githubusercontent.com/polyvios/locksmith/3a9d60ed9c801d65fbb79e9aa6e7dec68f6289e3/src/lockprofile.ml
ocaml
kernelmem2 ("cil-start", starttime, get_mem_info ()) List.iter (fun (s,t,mem) -> Printf.fprintf outf "%s %s %f %s\n" s (string_of_time t) t mem; ) (List.rev !endtimes);
* * Copyright ( c ) 2004 - 2007 , * Polyvios Pratikakis < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1...
83b6d7946ec301bed584f82129b3ff6747de0b4565df77c480fcd8ea45fa0462
RDTK/generator
command-create-jenkins-user.lisp
command-create-jenkins-user.lisp --- Create a user in a instance . ;;;; Copyright ( C ) 2019 Jan Moringen ;;;; Author : < > (cl:in-package #:build-generator.commands) (defclass create-jenkins-user (output-directory-mixin) (;; Output (output-directory :documentation #.(format nil "H...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/commands/command-create-jenkins-user.lisp
lisp
Output User creation
command-create-jenkins-user.lisp --- Create a user in a instance . Copyright ( C ) 2019 Jan Moringen Author : < > (cl:in-package #:build-generator.commands) (defclass create-jenkins-user (output-directory-mixin) (output-directory :documentation #.(format nil "Home directory of the Je...
46a74ac784d52c4ac37a2145281538123452c7f5f4c28f8ac6614e714ebb1fdb
yomimono/stitchcraft
readpsf.ml
let input = let doc = "file from which to read. -, the default, is stdin." in Cmdliner.Arg.(value & pos 0 string "-" & info [] ~doc) let info = let doc = "ingest psf (pc screen font) version 2 files" in Cmdliner.Cmd.info "readpsf" ~doc module Psfreader = Fontreader.Readfiles.Reader(Fontreader.Psf2stitchfont...
null
https://raw.githubusercontent.com/yomimono/stitchcraft/f2920cb13be030fecab1d23d9320ace051767158/fontreader/src/readpsf.ml
ocaml
let input = let doc = "file from which to read. -, the default, is stdin." in Cmdliner.Arg.(value & pos 0 string "-" & info [] ~doc) let info = let doc = "ingest psf (pc screen font) version 2 files" in Cmdliner.Cmd.info "readpsf" ~doc module Psfreader = Fontreader.Readfiles.Reader(Fontreader.Psf2stitchfont...
73528e2a869ec9980e000934e2f07197e5b589dec9631d27e8f637c53b9b5d59
gpwwjr/LISA
context.lisp
This file is part of LISA , the Lisp - based Intelligent Software ;;; Agents platform. Copyright ( C ) 2000 ( ) ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either versi...
null
https://raw.githubusercontent.com/gpwwjr/LISA/bc7f54b3a9b901d5648d7e9de358e29d3b794c78/src/core/context.lisp
lisp
Agents platform. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 2.1 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FI...
This file is part of LISA , the Lisp - based Intelligent Software Copyright ( C ) 2000 ( ) of the License , or ( at your option ) any later version . GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License Foundation , Inc. , 59 T...
f832a03f42d901893d6014104694f33116116d177a32a50a4a3190c8494b9745
synrc/nitro
element_literal.erl
-module(element_literal). -author('Rusty Klophaus'). -include_lib("nitro/include/nitro.hrl"). -compile(export_all). render_element(Record) when Record#literal.show_if==false -> [<<>>]; render_element(Record = #literal{}) -> case Record#literal.html_encode of true -> nitro:html_encode(Record#literal.body); _ ->...
null
https://raw.githubusercontent.com/synrc/nitro/753b543626add2c014584546ec50870808a2eb90/src/elements/input/element_literal.erl
erlang
-module(element_literal). -author('Rusty Klophaus'). -include_lib("nitro/include/nitro.hrl"). -compile(export_all). render_element(Record) when Record#literal.show_if==false -> [<<>>]; render_element(Record = #literal{}) -> case Record#literal.html_encode of true -> nitro:html_encode(Record#literal.body); _ ->...
dbb4c02ff6011a635839807d51524222d1131b34a35cd1b3ed0d48b7ec4ab0c2
ekmett/predictors
Probability.hs
# LANGUAGE DeriveFunctor # module Data.Predictor.Probability ( Pr(..) , binomial , collapse , (.*) , delay ) where import Control.Applicative import Control.Lens import Control.Monad import Data.Bifunctor import Data.Map as M import Numeric.Log as Log data Pr a = Pr { runPr :: [(Log Double, Either a (Pr a...
null
https://raw.githubusercontent.com/ekmett/predictors/b49310f440f5f4fd302d40f375107a59870c14a5/src/Data/Predictor/Probability.hs
haskell
* Utilities
# LANGUAGE DeriveFunctor # module Data.Predictor.Probability ( Pr(..) , binomial , collapse , (.*) , delay ) where import Control.Applicative import Control.Lens import Control.Monad import Data.Bifunctor import Data.Map as M import Numeric.Log as Log data Pr a = Pr { runPr :: [(Log Double, Either a (Pr a...
a34e1d53de2d878dcf1307c453c805dde84c70a239a3db0f02cdf75f1b7912fe
bazqux/bazqux-urweb
Internal.hs
# LANGUAGE DeriveDataTypeable , FunctionalDependencies , MultiParamTypeClasses , RecordWildCards # RecordWildCards #-} -- | -- Module: Network.Riak.Types.Internal Copyright : ( c ) 2011 MailRank , Inc. License : Apache Maintainer : < > , < > -- Stability: experimental -- Portabil...
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/riak-0.7.2.0/src/Network/Riak/Types/Internal.hs
haskell
| Module: Network.Riak.Types.Internal Stability: experimental Portability: portable Basic types. * Client management * Connection management * Errors * Data types * Message identification logging vector clock changes, and should be unique for each client. ^ Name of the server to connect to. ^ Clien...
# LANGUAGE DeriveDataTypeable , FunctionalDependencies , MultiParamTypeClasses , RecordWildCards # RecordWildCards #-} Copyright : ( c ) 2011 MailRank , Inc. License : Apache Maintainer : < > , < > module Network.Riak.Types.Internal ( ClientID , Client(..) , Connectio...
626604bf644f8edafc3560cbbc0f4d21cb102c355d77311c369e7f20a99ec1af
emotiq/emotiq
config.lisp
(in-package :emotiq/config) (defparameter *conf-filename* (make-pathname :name "emotiq-conf" :type "json")) (defparameter *hosts-filename* (make-pathname :name "hosts" :type "conf")) (defparameter *local-machine-filename* (make-pathname :name "local-machine" :ty...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/config.lisp
lisp
(in-package :emotiq/config) (defparameter *conf-filename* (make-pathname :name "emotiq-conf" :type "json")) (defparameter *hosts-filename* (make-pathname :name "hosts" :type "conf")) (defparameter *local-machine-filename* (make-pathname :name "local-machine" :ty...
261726d6e0b6469e1824433edae7e18001e8b3c3f9f832997c06d53841bfae6d
pink-gorilla/goldly
ws.cljs
(ns goldly.system.ws (:require [re-frame.core :as rf] [taoensso.timbre :as timbre :refer-macros [trace debug debugf info infof error]] [webly.ws.core :refer [send!]] [webly.ws.msg-handler :refer [-event-msg-handler]] [goldly.system.db :refer [find-system-by-id]])) (defmethod -event-msg-handler :goldly...
null
https://raw.githubusercontent.com/pink-gorilla/goldly/9589dc51c8fe894319e9eededdc1c965c3314491/src-unused/system/goldly/system/ws.cljs
clojure
?data))) strip off :goldly/send from args vector example for data: [ event - type data ] ] (info "send data:" data) (dispatch [:goldly/event goldly-tag data]))) (fn [[event-type data]] (info "systems data:" data) (dispatch [:goldly/systems-store data]))
(ns goldly.system.ws (:require [re-frame.core :as rf] [taoensso.timbre :as timbre :refer-macros [trace debug debugf info infof error]] [webly.ws.core :refer [send!]] [webly.ws.msg-handler :refer [-event-msg-handler]] [goldly.system.db :refer [find-system-by-id]])) (defmethod -event-msg-handler :goldly...
5f9ae12cf75244365fb0dc1b690923af4c613466e142754dcdb5f8b90c144f6f
cwgoes/scisco
Types.hs
module Scisco.Types where import qualified Crypto.Hash.Algorithms as C import qualified Crypto.PubKey.ECC.ECDSA as C import qualified Crypto.PubKey.ECC.Types as C import qualified Data.Aeson as A import qualified Data.Aeson.Types as A import qualified Data.Bimap as BM import qualified...
null
https://raw.githubusercontent.com/cwgoes/scisco/55b5c94a42d2e99fbd74fa193d9cbaeea525531c/src/Scisco/Types.hs
haskell
module Scisco.Types where import qualified Crypto.Hash.Algorithms as C import qualified Crypto.PubKey.ECC.ECDSA as C import qualified Crypto.PubKey.ECC.Types as C import qualified Data.Aeson as A import qualified Data.Aeson.Types as A import qualified Data.Bimap as BM import qualified...
2046ed3f406fe13b16def0872a9aedb9478a800a5c28685655368ff01fe6baae
cac-t-u-s/om-sharp
load-tools.lisp
(in-package :cl-user) (export '(compile&load decode-local-path) :cl-user) ; (clean-sources) (defvar *compile-type* "xfasl") should be : " xfasl " on MacIntel , " nfasl " on MacPPC , " ofasl " on Win32 , " 64xfasl " or " xfasl " on Linux (setf *compile-type* (pathname-type (cl-user::compile-file-pathname ""))) #+...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/ec9f99bdc081e7c277378982ec9efb94153156b0/build/load-tools.lisp
lisp
(clean-sources) This is how to use a new compiled-file extension (not used) (when (and compile-ext (not (find compile-ext sys:*binary-file-types* :test 'string-equal))) (push compile-ext sys:*binary-file-types*)) WARNINGS - Not sure why, but compile/load don't find the file type is :unspecific they do if the ty...
(in-package :cl-user) (export '(compile&load decode-local-path) :cl-user) (defvar *compile-type* "xfasl") should be : " xfasl " on MacIntel , " nfasl " on MacPPC , " ofasl " on Win32 , " 64xfasl " or " xfasl " on Linux (setf *compile-type* (pathname-type (cl-user::compile-file-pathname ""))) #+win32(editor::bind...
942473bcd742a7158148ef8a90a0af418bc79927bfae4ba4af2da23ac564424c
ekmett/haskell
Fiber.hs
{-# Language LambdaCase #-} # Language RecordWildCards # {-# Language NamedFieldPuns #-} {-# Language TypeFamilies #-} {-# Language BlockArguments #-} {-# Language OverloadedLists #-} {-# Language DerivingVia #-} module Par.Fiber where import Control.Concurrent.MVar import Control.Monad (join, when, unless) import Con...
null
https://raw.githubusercontent.com/ekmett/haskell/37ad048531f5a3a13c6dfbf4772ee4325f0e4458/par/src/Par/Fiber.hs
haskell
# Language LambdaCase # # Language NamedFieldPuns # # Language TypeFamilies # # Language BlockArguments # # Language OverloadedLists # # Language DerivingVia # internal state of a Worker # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # TODO: change peers to just contain an IO action that can do stealing. This p...
# Language RecordWildCards # module Par.Fiber where import Control.Concurrent.MVar import Control.Monad (join, when, unless) import Control.Monad.Catch import Control.Monad.IO.Class import Control.Monad.IO.Unlift import Control.Monad.Primitive import Control.Monad.Trans.Reader import Data.Foldable import Data.IORef im...
ce875453c1cb229afa4c9dfa8ab76db20586976f7624097a1240c8a6b12d6e20
kit-ty-kate/visitors
testallprims.cppo.ml
type t = | Array of t array | Bool of bool | Bytes of bytes | Char of char | Float of float | Int of int | Int32 of int32 | Int64 of int64 | Lazy of t lazy_t | List of t list | Nativeint of nativeint | Option of t option | Ref of t ref #if OCAML_VERSION >= (4, 08, 0) | Result of (t, t) resul...
null
https://raw.githubusercontent.com/kit-ty-kate/visitors/fc53cc486178781e0b1e581eced98e07facb7d29/test/testallprims.cppo.ml
ocaml
type t = | Array of t array | Bool of bool | Bytes of bytes | Char of char | Float of float | Int of int | Int32 of int32 | Int64 of int64 | Lazy of t lazy_t | List of t list | Nativeint of nativeint | Option of t option | Ref of t ref #if OCAML_VERSION >= (4, 08, 0) | Result of (t, t) resul...
e7675533d533026052e3796a51d61018e911da99e5b651060de8579cabb35821
Ericson2314/lighthouse
Setup.hs
We need to do some ugly hacks here as base mix of portable and unportable stuff , as well as home to some GHC magic . We need to do some ugly hacks here as base mix of portable and unportable stuff, as well as home to some GHC magic. -} module Main (main) where import Control.Monad import Data.List import Distr...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/base/Setup.hs
haskell
We need to do some ugly hacks here as base mix of portable and unportable stuff , as well as home to some GHC magic . We need to do some ugly hacks here as base mix of portable and unportable stuff, as well as home to some GHC magic. -} module Main (main) where import Control.Monad import Data.List import Distr...
d292d47d8e5c5c10428b6b18e5c7b7b691972c682272823eb71adcdddcbcce28
hyperfiddle/electric
trace14.cljc
(ns dustin.trace14 (:require [missionary.core :as m] [minitest :refer [tests]])) ;; Reference (def ast '(let [>ui (input) >b (vector ~>ui) >c (pr-str ~>b)])) ;; ------------------------------ (defn prn-str [a] (prn a) (pr-str a)) (defmacro amb= [& forms] `(case ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/trace/trace14.cljc
clojure
Reference ------------------------------ Should >b listen to !replay-entrypoint AND >ui or only !replay-entrypoint? Replay entrypoint can’t be an atom because if >b is missing from a frame, >b will be nil. Node >b should not react when '>b is not part of the replayed frame. !replay-entrypoint should be discreet,...
(ns dustin.trace14 (:require [missionary.core :as m] [minitest :refer [tests]])) (def ast '(let [>ui (input) >b (vector ~>ui) >c (pr-str ~>b)])) (defn prn-str [a] (prn a) (pr-str a)) (defmacro amb= [& forms] `(case (m/?= (m/enumerate (range ~(count forms)))) ...
a03ef0d4b0cedbae6b07adbdbff41456c82b271505ad9943e4e40e42a5eec87b
esl/MongooseIM
cyrsasl_scram_sha384.erl
-module(cyrsasl_scram_sha384). -export([mechanism/0, mech_new/3, mech_step/2]). -ignore_xref([mech_new/3]). -behaviour(cyrsasl). -spec mechanism() -> cyrsasl:mechanism(). mechanism() -> <<"SCRAM-SHA-384">>. mech_new(Host, Creds, #{} = SocketData) -> cyrsasl_scram:mech_new(Host, Creds, SocketData#{sha => sh...
null
https://raw.githubusercontent.com/esl/MongooseIM/481774b6449215a70a99555a913e7e0c87bc40ce/src/sasl/cyrsasl_scram_sha384.erl
erlang
-module(cyrsasl_scram_sha384). -export([mechanism/0, mech_new/3, mech_step/2]). -ignore_xref([mech_new/3]). -behaviour(cyrsasl). -spec mechanism() -> cyrsasl:mechanism(). mechanism() -> <<"SCRAM-SHA-384">>. mech_new(Host, Creds, #{} = SocketData) -> cyrsasl_scram:mech_new(Host, Creds, SocketData#{sha => sh...
ac6893792eca63c1506b6fd388332d32bd385198899cb8c05bf914cbfa537bf6
rbkmoney/cds
cds_ct_keyring.erl
-module(cds_ct_keyring). -export([ensure_init/1]). -export([init/1]). -export([rekey/1]). -export([lock/1]). -export([unlock/1]). -export([rotate/1]). -export([decrypt_and_sign_masterkeys/3]). -export([validate_init/2]). -export([validate_rekey/2]). -define(SHARES_COUNT, 1). %% %% Internal types %% -type config() ...
null
https://raw.githubusercontent.com/rbkmoney/cds/7daa88e44a95de6ba0404ff492344d73fae64a95/apps/cds/test/cds_ct_keyring.erl
erlang
Internal types API
-module(cds_ct_keyring). -export([ensure_init/1]). -export([init/1]). -export([rekey/1]). -export([lock/1]). -export([unlock/1]). -export([rotate/1]). -export([decrypt_and_sign_masterkeys/3]). -export([validate_init/2]). -export([validate_rekey/2]). -define(SHARES_COUNT, 1). -type config() :: [{atom(), any()}] | a...
2ff5fc550e83e591020c169393057af3ca3dd14dea66d5eeb3d4b52a6c4a00ff
aws-beam/aws-erlang
aws_apigatewayv2.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . %% @doc Amazon API Gateway V2 -module(aws_apigatewayv2). -export([create_api/2, create_api/3, create_api_mapping/3, create_api_mapping/4, create_authorizer/3, create_authorizer/4, ...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_apigatewayv2.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! @doc Amazon API Gateway V2 ==================================================================== API ==================================================================== @doc Creates an Api resource. @doc Creates an API mapping. @doc Creates a Deployment for an API. @doc...
See -beam/aws-codegen for more details . -module(aws_apigatewayv2). -export([create_api/2, create_api/3, create_api_mapping/3, create_api_mapping/4, create_authorizer/3, create_authorizer/4, create_deployment/3, create_deployment/4, create_doma...
e782826dd8804e604913c8233d7964f291f54f14b6a646af6217c2e982ebde49
xapi-project/xen-api
test_helpers.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/50c8a2edfd1c78eb35ec75348738f8ae9ccf5f3e/ocaml/wsproxy/test/test_helpers.ml
ocaml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
526d653cabe1a898883140705ab23e1ff607aa76aaa98149e14e875aaf747fd2
brendanhay/amazonka
UpdateKnowledgeBaseTemplateUri.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wisdom/gen/Amazonka/Wisdom/UpdateKnowledgeBaseTemplateUri.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.Wisdom.UpdateKnowledgeBaseTemplateUri Stability : auto-generated Updates the template URI of a knowledge base. This is only supported for @${variable}@ format; this interpolated by Wisdom using ingested @https:\/\/myInstanceName.li...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
b534997127e9911472caf687d51d74d6a02af01e8e51a0bc64b7737fe91ccf1c
ddmcdonald/sparser
new-substances.lisp
(in-package :sparser) ;; all moved to substances
null
https://raw.githubusercontent.com/ddmcdonald/sparser/4bb59f0989152f059f7b008ca4bfd89501bae04c/Sparser/code/s/grammar/model/sl/biology/new-defs/new-substances.lisp
lisp
all moved to substances
(in-package :sparser)
85c82c1b7b64d0c6a628ce3266f95d4d5f09c5fb76c6d8be013595864f5fac20
htm-community/clortex
core.clj
(ns clortex.domain.patch.core (:require [clortex.utils.math :refer :all])) (defn make-columns [& {:keys [^int columns ^int cells-per-column dims] :or {columns 2048 cells-per-column 32 dims [2048]}}] []) (defn single-layer-patch [& {:keys [^int columns ^int cells-per-column dims] :as patch-spec :or {colu...
null
https://raw.githubusercontent.com/htm-community/clortex/69003a352140510f47c6b8e18ad6a98a7b5a3bba/src/clortex/domain/patch/core.clj
clojure
(ns clortex.domain.patch.core (:require [clortex.utils.math :refer :all])) (defn make-columns [& {:keys [^int columns ^int cells-per-column dims] :or {columns 2048 cells-per-column 32 dims [2048]}}] []) (defn single-layer-patch [& {:keys [^int columns ^int cells-per-column dims] :as patch-spec :or {colu...
73112c27900b5a7a74e44754402e42d9a55542c4d2411ac3370392857a2ae729
NorfairKing/smos
Waiting.hs
# LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # module Smos.Cursor.Report.Waiting where import Control.DeepSeq import Cursor.Forest import Data.List import Data.Maybe import Data.Time import Data.Validity import Data.Validity.Path () import GHC.Generics import Lens.Micro import Path import Smos.Cursor.Report....
null
https://raw.githubusercontent.com/NorfairKing/smos/4891d1c7a462040ac63771058ab35e35abb4e46d/smos-report-cursor/src/Smos/Cursor/Report/Waiting.hs
haskell
The time at which the entry became WAITING and the threshold
# LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # module Smos.Cursor.Report.Waiting where import Control.DeepSeq import Cursor.Forest import Data.List import Data.Maybe import Data.Time import Data.Validity import Data.Validity.Path () import GHC.Generics import Lens.Micro import Path import Smos.Cursor.Report....
f4d01f681878afe9b1f7182a910bfe64790860ce86d22a9689c1fa822679ac60
amperity/lein-monolith
project.clj
(defproject lein-monolith.example/app-a "MONOLITH-SNAPSHOT" :description "Example project with internal and external dependencies." :monolith/inherit true :deployable true :dependencies [[org.clojure/clojure "1.10.1"] [commons-io "2.5"] [lein-monolith.example/lib-a "MONOLITH-SNAPSHOT"] [lein-monolit...
null
https://raw.githubusercontent.com/amperity/lein-monolith/f7d476b3b746498d0d0539e090a1db33a6602280/example/apps/app-a/project.clj
clojure
(defproject lein-monolith.example/app-a "MONOLITH-SNAPSHOT" :description "Example project with internal and external dependencies." :monolith/inherit true :deployable true :dependencies [[org.clojure/clojure "1.10.1"] [commons-io "2.5"] [lein-monolith.example/lib-a "MONOLITH-SNAPSHOT"] [lein-monolit...
e3d0515b9b1bd68c4c35c6b18890d07c2d2e4669e3cfed450f8b48fe85c0c267
sunng87/slacker
logargs.clj
(ns slacker.interceptors.logargs (:use [slacker.interceptor]) (:require [clojure.tools.logging :as log])) (definterceptor+ ^{:doc "log arguments when of calls that cause exception. To use this interceptor, you are suggested to put log4j and its configuration in your classpath."} logargs [...
null
https://raw.githubusercontent.com/sunng87/slacker/60e5372782bed6fc58cb8ba55951516a6b971513/examples/slacker/interceptors/logargs.clj
clojure
(ns slacker.interceptors.logargs (:use [slacker.interceptor]) (:require [clojure.tools.logging :as log])) (definterceptor+ ^{:doc "log arguments when of calls that cause exception. To use this interceptor, you are suggested to put log4j and its configuration in your classpath."} logargs [...
06b3508b9b7ecae53e3bf02892164d3754517a57f524e967a6f480f222dd1822
w3ntao/sicp-solution
2-49.rkt
#lang racket (require (combine-in (only-in "../ToolBox/CoordinateSystem/vector.rkt" make-vect add-vect scale-vect) (only-in "../ToolBox/CoordinateSystem/frame.rkt" make-frame ...
null
https://raw.githubusercontent.com/w3ntao/sicp-solution/00be3a7b4da50bb266f8a2db521a24e9f8c156be/chap-2/2-49.rkt
racket
part a (define (frame-edges-painter frame) (segments-painter (frame-edges frame) frame)) (for-each display-segment (frame-edges test-frame)) part b (define (frame-cross-painter frame) (segments-painter (frame-cross frame) frame)) (for-each display-segment (frame-cross test-frame)) part c (define (frame-edges-m...
#lang racket (require (combine-in (only-in "../ToolBox/CoordinateSystem/vector.rkt" make-vect add-vect scale-vect) (only-in "../ToolBox/CoordinateSystem/frame.rkt" make-frame ...
ab686bd8ef220ac3b28a0dcae85def89ef263fee3203b1348663c72775f038f3
weavery/clarc
Target.ml
(* This is free and unencumbered software released into the public domain. *) type t = | Auto | Bytecode | Opcode | Debug let of_string = function | "auto" -> Ok Auto | "bytecode" -> Ok Bytecode | "opcode" -> Ok Opcode | "debug" -> Ok Debug | _ -> Error (`Msg "invalid output format") let to_string ...
null
https://raw.githubusercontent.com/weavery/clarc/1fb1c43210f52b4022e7f0ae30b7c7d4a9e7ca01/bin/clarc/Target.ml
ocaml
This is free and unencumbered software released into the public domain.
type t = | Auto | Bytecode | Opcode | Debug let of_string = function | "auto" -> Ok Auto | "bytecode" -> Ok Bytecode | "opcode" -> Ok Opcode | "debug" -> Ok Debug | _ -> Error (`Msg "invalid output format") let to_string = function | Auto -> "auto" | Bytecode -> "bytecode" | Opcode -> "opcode...
2a7ee2c6db2a67ea2079c08fbecd2e1d3b15d58de3445d27c294047615f6caa3
takikawa/racket-ppa
token-syntax.rkt
#lang racket/base ;; The things needed at compile time to handle definition of tokens (provide make-terminals-def terminals-def-t terminals-def? make-e-terminals-def e-terminals-def-t e-terminals-def?) (define-struct terminals-def (t)) (define-struct e-terminals-def (t))
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/parser-tools-lib/parser-tools/private-lex/token-syntax.rkt
racket
The things needed at compile time to handle definition of tokens
#lang racket/base (provide make-terminals-def terminals-def-t terminals-def? make-e-terminals-def e-terminals-def-t e-terminals-def?) (define-struct terminals-def (t)) (define-struct e-terminals-def (t))
5e6fe0f0f81c8597f41786a631c3ed2092f7863e0844e8f7f408ae39dba12a2c
maximedenes/native-coq
hiddentac.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/tactics/hiddentac.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Tactics for the interpreter. They ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Pp open Term ...
9cbe1119b8d0f6b876586bb5dfe5bae87b5628037e71a6e29e1900c7e68d56a2
ZHaskell/z-io
Concurrent.hs
# OPTIONS_GHC -Wno - missing - fields # # OPTIONS_GHC -Wno - incomplete - patterns # | Module : Z.IO.BIO.Concurrent Description : Base64 codec Copyright : ( c ) , 2017 - 2020 License : BSD Maintainer : Stability : experimental Portability : non - portable This module provides som...
null
https://raw.githubusercontent.com/ZHaskell/z-io/7b3cdcc6f07a4b4c5bc1baf39f85d7af88b444e5/Z/IO/BIO/Concurrent.hs
haskell
it 's important to correctly set the numebr of producers ------------------------------------------------------------------------------ producers producer using push when EOF is reached , manually pull , you may consider put it in a bracket . producer using BIO -----------------------------------------------...
# OPTIONS_GHC -Wno - missing - fields # # OPTIONS_GHC -Wno - incomplete - patterns # | Module : Z.IO.BIO.Concurrent Description : Base64 codec Copyright : ( c ) , 2017 - 2020 License : BSD Maintainer : Stability : experimental Portability : non - portable This module provides som...
67d11a0d93a5a0865c9c3dea98f9161fca45f286fd2a505bd0eacc69a4ccfae0
janestreet/hardcaml_of_verilog
convert.ml
open Core open Hardcaml_of_verilog let in_chan = Command.Arg_type.create (fun n -> In_channel.create n) |> Command.Flag.optional_with_default In_channel.stdin ;; let out_chan = Command.Arg_type.create Out_channel.create |> Command.Flag.optional_with_default Out_channel.stdout ;; let rtl = Command.Arg_type....
null
https://raw.githubusercontent.com/janestreet/hardcaml_of_verilog/c1d4e5abe18a1b15e8858151a43aa69efcbbe07b/bin/convert.ml
ocaml
open Core open Hardcaml_of_verilog let in_chan = Command.Arg_type.create (fun n -> In_channel.create n) |> Command.Flag.optional_with_default In_channel.stdin ;; let out_chan = Command.Arg_type.create Out_channel.create |> Command.Flag.optional_with_default Out_channel.stdout ;; let rtl = Command.Arg_type....
ccb6cbe4e397ca8f8ed1f2d2f5e236d9f3eaa035e1d1d49ab89f42b68db8de6a
aistrate/Okasaki
Ex03_06.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module Ex03_06 (module Heap, BinomialHeap(..), Tree(..), RankedTree(..), rank, root) where import Heap data Tree a = Node a [Tree a] data RankedTree a = RT Int (Tree a) newtype BinomialHeap a = BH [RankedTree a] rank (RT r (Node x c)) = r ...
null
https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/MyCode/Ch03/Ex03_06.hs
haskell
Helpers
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module Ex03_06 (module Heap, BinomialHeap(..), Tree(..), RankedTree(..), rank, root) where import Heap data Tree a = Node a [Tree a] data RankedTree a = RT Int (Tree a) newtype BinomialHeap a = BH [RankedTree a] rank (RT r (Node x c)) = r ...
5d4efcff17093bbca1eb614c26a5b3a9a38819d1a497ee1dd6c68d74afd2cf7d
eudoxia0/crane
transaction.lisp
(in-package :cl-user) (defpackage crane.transaction (:use :cl :anaphora) (:import-from :crane.connect :*default-db*) (:export :with-transaction :begin-transaction :commit :rollback) (:documentation "Implements transactions.")) (in-package :crane.transaction) (de...
null
https://raw.githubusercontent.com/eudoxia0/crane/1a85295d7ea0d13d74822dd835d8abfada4b1685/src/transaction.lisp
lisp
(in-package :cl-user) (defpackage crane.transaction (:use :cl :anaphora) (:import-from :crane.connect :*default-db*) (:export :with-transaction :begin-transaction :commit :rollback) (:documentation "Implements transactions.")) (in-package :crane.transaction) (de...
594ce3adba0830a69d9f73e6b96d70318fda07f8aeb9f9068089af4f98ad2e29
caiorss/Functional-Programming
SimpleJSON1.hs
data JValue = JString String | JNumber Double | JBool Bool | JNull | JObject [(String, JValue)] | JArray [JValue] deriving (Eq, Ord, Show) getString :: JValue -> Maybe String getString (JString s) = Just s getString _ = Nothing get...
null
https://raw.githubusercontent.com/caiorss/Functional-Programming/ef3526898e3014e9c99bf495033ff36a4530503d/haskell/rwh/ch05/SimpleJSON1.hs
haskell
data JValue = JString String | JNumber Double | JBool Bool | JNull | JObject [(String, JValue)] | JArray [JValue] deriving (Eq, Ord, Show) getString :: JValue -> Maybe String getString (JString s) = Just s getString _ = Nothing get...
572cd4a04bb9dea738cd8c35df0815b2738e07076ef82839a9fb724ab6e6df50
ekmett/category-extras
Cartesian.hs
{-# OPTIONS -fglasgow-exts #-} ------------------------------------------------------------------------------------------- -- | Module : Control . Category . Cartesian Copyright : 2008 -- License : BSD -- Maintainer : < > -- Stability : experimental -- Portability : non-portable (class-associated types...
null
https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Category/Cartesian.hs
haskell
# OPTIONS -fglasgow-exts # ----------------------------------------------------------------------------------------- | License : BSD Stability : experimental Portability : non-portable (class-associated types) ----------------------------------------------------------------------------------------- * Pre-(Co)Car...
Module : Control . Category . Cartesian Copyright : 2008 Maintainer : < > module Control.Category.Cartesian ( module Control.Category.Associative , module Control.Category.Monoidal , PreCartesian(..) , bimapPreCartesian, braidPreCartesian, associatePreCartesian, coassociatePreCartesian , PreCoCart...
b5c6458e82cec89bb758cdc157b83478062b1c8814af05eb43fbe9cf5aaaa10c
ItsMeijers/Lambdabox
Http.hs
{-# LANGUAGE OverloadedStrings #-} module Binance.Internal.MarketData.Http ( orderBook , recentTrades , historicalTrades , aggregatedTrades , candlestickData , dayPriceChangeStatistics , dayPriceChangeStatisticsFor , latestPrice , latestPriceFor , orderBookTicker , orderBook...
null
https://raw.githubusercontent.com/ItsMeijers/Lambdabox/c19a8ae7d37b9f8ab5054d558fe788a5d4483092/src/Binance/Internal/MarketData/Http.hs
haskell
# LANGUAGE OverloadedStrings #
module Binance.Internal.MarketData.Http ( orderBook , recentTrades , historicalTrades , aggregatedTrades , candlestickData , dayPriceChangeStatistics , dayPriceChangeStatisticsFor , latestPrice , latestPriceFor , orderBookTicker , orderBookTickerFor ) where import Lambd...
892df556158b051e749c13895ba8c667181ec97d4ec003cda3cd56b8a5b78651
lisp/de.setf.utility
monitor.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*- This file is part of the ' de.setf.utility ' library component . ( c ) 2002 , 2009 ;;; ;;; 'de.setf.utility' is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU...
null
https://raw.githubusercontent.com/lisp/de.setf.utility/782cd79d99ebf40deeed60c492be9873bbe42a15/test/test/monitor.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*- 'de.setf.utility' is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (at your option) any later version. 'de.setf.utility' is distributed...
This file is part of the ' de.setf.utility ' library component . ( c ) 2002 , 2009 the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Lesser General Public License along with ' de.setf.utility ' . If not , see the GNU < a href=' / licenses/...
8f24b4095aa402907a15e4aa10fd98a92070d3436db4db53eaccde29a9594b0b
pingles/googlecloud
jobs.clj
(ns googlecloud.bigquery.jobs (:require [googlecloud.core :as gc] [googlecloud.bigquery.coerce]) (:import [java.util Date] [com.google.api.services.bigquery.model Job TableReference JobConfigurationExtract JobConfiguration JobConfigurationLoad JobConfigurationQuery])) (defn list [service pro...
null
https://raw.githubusercontent.com/pingles/googlecloud/8d31afb1c627d40f7293f85c479cbfa98317b056/bigquery/src/googlecloud/bigquery/jobs.clj
clojure
(ns googlecloud.bigquery.jobs (:require [googlecloud.core :as gc] [googlecloud.bigquery.coerce]) (:import [java.util Date] [com.google.api.services.bigquery.model Job TableReference JobConfigurationExtract JobConfiguration JobConfigurationLoad JobConfigurationQuery])) (defn list [service pro...
a080a966d130e4639ac1e8dc27777204e9381117fda2a90bdeaf5fa5f0992ab6
mirage/ocaml-xenstore-server
client_test.ml
(* A place to put client library tests *) module Client = Xs_client_unix.Client(Xs_transport_unix_client) let test_broken_callback () = let client = Client.make () in let m = ref 0 in Client.set_logger (fun s -> incr m; Printf.fprintf stderr "This error is not a failure: %s" s); let n = ref 0 in let watch...
null
https://raw.githubusercontent.com/mirage/ocaml-xenstore-server/2a8ae397d2f9291107b5d9e9cfc6085fde8c0982/legacy_unix/client_test.ml
ocaml
A place to put client library tests
module Client = Xs_client_unix.Client(Xs_transport_unix_client) let test_broken_callback () = let client = Client.make () in let m = ref 0 in Client.set_logger (fun s -> incr m; Printf.fprintf stderr "This error is not a failure: %s" s); let n = ref 0 in let watch_callback _ = incr n; failwith "Er...
bdff3b1951ef3b6bd3a1bbedb9c4662ea175ef0f63b25f541bb0765c5b41fb03
NorfairKing/smos
OptParse.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Smos.Calendar.Import.OptParse ( module Smos.Calendar.Import.OptParse, module Smos.Calendar.Import.OptParse.Types, ) where import Control.Monad import qualified Data.ByteString as SB import Data.Maybe import qualified Data.Text as T import ...
null
https://raw.githubusercontent.com/NorfairKing/smos/82b5121c1f1462159c20d8012b5a89b4c772dcb3/smos-calendar-import/src/Smos/Calendar/Import/OptParse.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Smos.Calendar.Import.OptParse ( module Smos.Calendar.Import.OptParse, module Smos.Calendar.Import.OptParse.Types, ) where import Control.Monad import qualified Data.ByteString as SB import Data.Maybe import qualified Data.Text as T import qualified Data.Text.Encoding as TE ...
760f61c76db0bc17249223b5a145453535aa344c1557312ace9655fe8a477713
rjray/advent-2020-clojure
day23bis.clj
(ns advent-of-code.day23bis (:require [clojure.string :as str])) (defn- get-input [func input] (-> input str/trimr (str/split #"") func)) (defn- parse-data [lines] (map #(Integer/parseInt %) lines)) (defn- make-linked [size input] (let [cnt (count input) linked (vec (range 1 (+ 2 s...
null
https://raw.githubusercontent.com/rjray/advent-2020-clojure/631b36545ae1efdebd11ca3dd4dca032346e8601/src/advent_of_code/day23bis.clj
clojure
(ns advent-of-code.day23bis (:require [clojure.string :as str])) (defn- get-input [func input] (-> input str/trimr (str/split #"") func)) (defn- parse-data [lines] (map #(Integer/parseInt %) lines)) (defn- make-linked [size input] (let [cnt (count input) linked (vec (range 1 (+ 2 s...
2ce5dd82019bd826d10648a4828f68b3de1993f1ef63a555f5ffc6a79f34ce80
ocaml-multicore/multicoretests
stm_tests_sequential_ref.ml
open Stm_tests_spec_ref module RT_int_seq = STM_sequential.Make(RConf_int) module RT_int64_seq = STM_sequential.Make(RConf_int64) ;; QCheck_runner.run_tests_main (let count = 1000 in [RT_int_seq.agree_test ~count ~name:"STM int ref test sequential"; RT_int64_seq.agree_test ~count ~name:"STM int64 ref test...
null
https://raw.githubusercontent.com/ocaml-multicore/multicoretests/3e0f2ceb72eaf334e97252140ae5d40bf6461b96/src/neg_tests/stm_tests_sequential_ref.ml
ocaml
open Stm_tests_spec_ref module RT_int_seq = STM_sequential.Make(RConf_int) module RT_int64_seq = STM_sequential.Make(RConf_int64) ;; QCheck_runner.run_tests_main (let count = 1000 in [RT_int_seq.agree_test ~count ~name:"STM int ref test sequential"; RT_int64_seq.agree_test ~count ~name:"STM int64 ref test...
866876722d155139e8ac2a71058ee0aa7bf5a6f4598c4666be0d5196ea6f8cb1
fyquah/hardcaml_zprize
reg_with_enable.mli
(** Shadow Signal.reg and Signal.pipeline because we want ~enable to be a non-optional argument. *) open Hardcaml open Signal val reg : Reg_spec.t -> enable:t -> t -> t val pipeline : Reg_spec.t -> enable:t -> n:int -> t -> t
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/src/reg_with_enable.mli
ocaml
* Shadow Signal.reg and Signal.pipeline because we want ~enable to be a non-optional argument.
open Hardcaml open Signal val reg : Reg_spec.t -> enable:t -> t -> t val pipeline : Reg_spec.t -> enable:t -> n:int -> t -> t
a18ce50bf5906cf4f97af0dd941d6fa7dc75a8c1b0905b45864cb4ff46c09780
toschoo/mom
srb1.hs
module Main where import Network.Mom.Stompl.Client.Queue import Network.Mom.Stompl.Patterns.Bridge import Network.Socket import Control.Monad (forever) import Control.Concurrent main :: IO () main = withSocketsDo tstPub tstPub :: IO () tstPub = withConnection "127.0.0.1" 61613 [] [] $ \c -> ...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/stomp-patterns/test/smoke/srb1.hs
haskell
module Main where import Network.Mom.Stompl.Client.Queue import Network.Mom.Stompl.Patterns.Bridge import Network.Socket import Control.Monad (forever) import Control.Concurrent main :: IO () main = withSocketsDo tstPub tstPub :: IO () tstPub = withConnection "127.0.0.1" 61613 [] [] $ \c -> ...
acc961a1e1b65a126aca1356f3a1d744c5361feaa1a001f99ea0a1cbbbf86206
haskellari/postgresql-simple
Ok.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE CPP #-} ------------------------------------------------------------------------------ -- | -- Module : Database.PostgreSQL.Simple.Ok Copyright : ( c ) 2012 - 2015 -- License : BSD3 -- -- Maintainer...
null
https://raw.githubusercontent.com/haskellari/postgresql-simple/6cabb13959310f32a15285f8e41c2d053403d687/src/Database/PostgreSQL/Simple/Ok.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveFunctor # # LANGUAGE CPP # ---------------------------------------------------------------------------- | Module : Database.PostgreSQL.Simple.Ok License : BSD3 Maintainer : Stability : experimental The 'Ok' type is a simple er...
Copyright : ( c ) 2012 - 2015 One of the primary reasons why this type was introduced is that had not been provided an instance for ' Alternative ' , commonly - used type and included in Extending the failure case to a list of ' SomeException 's enables a ' Errors [ ] ' . Though ' < | > ' ...
6dae754c455d356611144995cb5d530fcf0c3a382841f1c2077a1d46b40b12db
job-streamer/job-streamer-agent
project.clj
(defproject net.unit8.job-streamer/job-streamer-agent (clojure.string/trim-newline (slurp "VERSION")) :dependencies [[javax/javaee-api "7.0"] [org.jberet/jberet-core "1.2.0.Final"] [org.jberet/jberet-se "1.2.0.Final"] [org.jboss.marshalling/jboss-marshalling "1.4.10....
null
https://raw.githubusercontent.com/job-streamer/job-streamer-agent/82de7ec5d0e1b0b0fc47db7facd7d790b8db7715/project.clj
clojure
(defproject net.unit8.job-streamer/job-streamer-agent (clojure.string/trim-newline (slurp "VERSION")) :dependencies [[javax/javaee-api "7.0"] [org.jberet/jberet-core "1.2.0.Final"] [org.jberet/jberet-se "1.2.0.Final"] [org.jboss.marshalling/jboss-marshalling "1.4.10....
53af302e1b83a8d294635453a37abcfb8dd56be5f0109a5e5896b221d79ec215
adityaathalye/sicp
ex1-36-fixed-point-print.scm
Ex . 1.35 Modify fixed - point to print the sequence of approximations (define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (display "Guess: ") (display gue...
null
https://raw.githubusercontent.com/adityaathalye/sicp/c8b62c366dade1d5101238a32267dab177808105/ex1-36-fixed-point-print.scm
scheme
Sample output for the x-to-x procedure: OUTPUT BEGINS Value : 4.555538934848503 OUTPUT ENDS Sample output for the x-to-x-avg-damped procedure: OUTPUT BEGINS Guess: .9879518072289156 Next: .9969788519637464 Guess: .9969788519637464 Guess: .999244142101285 Next: .9999527477200776 Guess: .9999527477200776 Gue...
Ex . 1.35 Modify fixed - point to print the sequence of approximations (define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (display "Guess: ") (display gue...
70ad309ab62bd8816468e978c1206365bc1a1e36e72bb96440a1eb9afa8c1f17
martijnbastiaan/doctest-parallel
Foo.hs
module PropertyImplicitlyQuantified.Foo where -- | -- prop> abs x == abs (abs x) foo = undefined
null
https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/integration/PropertyImplicitlyQuantified/Foo.hs
haskell
| prop> abs x == abs (abs x)
module PropertyImplicitlyQuantified.Foo where foo = undefined
3ab042144b2c25fc256bbfa20bded4a41875a6412f3b19cee59890fa61262659
beala/symbolic
Types.hs
module Types where import Foundation import qualified Data.Map.Strict as M import qualified Data.Tree as T data Instr = Add | JmpIf | And | Or | Not | Lt | Eq | Push Word32 | Store | Load | Pop | ...
null
https://raw.githubusercontent.com/beala/symbolic/439bd8670d9e337a7d6a566b3af9d80ec239eafe/src/Types.hs
haskell
| A program is a list of instructions. | State: (program counter, memory, stack)
module Types where import Foundation import qualified Data.Map.Strict as M import qualified Data.Tree as T data Instr = Add | JmpIf | And | Or | Not | Lt | Eq | Push Word32 | Store | Load | Pop | ...
f745ce1b4534dc06e9ac7cc51073451a2217309f2883dc45a147f54c855b4d3f
bytekid/mkbtt
nonconfluence.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/confluence/nonconfluence.ml
ocaml
** OPENS ******************************************************************* ** MODULES ***************************************************************** ** MODULES **************************************************************** ** FUNCTIONS ************************************************************** ** MODULES ***...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
086bb57992a6e572c905365fb50fc4a0ccf1205dcc783f83bf024c816b70914d
dalaing/websockets-reflex
Commands.hs
| Copyright : ( c ) , 2017 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2017 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Commands ( CommandRequest(..) , CommandResponse(..) ) whe...
null
https://raw.githubusercontent.com/dalaing/websockets-reflex/65bee7560442f5aae96f6f64fb12abeb501f5427/example/common/src/Commands.hs
haskell
| Copyright : ( c ) , 2017 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2017 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Commands ( CommandRequest(..) , CommandResponse(..) ) whe...
15304fe504ae826b1a4d1804f568022249c889ef506283dc966574a37f6df220
Daniel-Diaz/HaTeX
Texy.hs
-- | 'Texy' class, as proposed in <-36-proposal-texy-class.html>. module Text.LaTeX.Base.Texy ( -- * Texy class Texy (..) ) where import Text.LaTeX.Base.Syntax import Text.LaTeX.Base.Class import Text.LaTeX.Base.Render -- import Numeric import Data.Fixed | Class of types that can be pretty - printed as ' La...
null
https://raw.githubusercontent.com/Daniel-Diaz/HaTeX/aae193763157378500ebedc733c913e74f53b060/Text/LaTeX/Base/Texy.hs
haskell
| 'Texy' class, as proposed in <-36-proposal-texy-class.html>. * Texy class Basic instances
module Text.LaTeX.Base.Texy ( Texy (..) ) where import Text.LaTeX.Base.Syntax import Text.LaTeX.Base.Class import Text.LaTeX.Base.Render import Numeric import Data.Fixed | Class of types that can be pretty - printed as ' LaTeX ' values . class Texy t where texy :: LaTeXC l => t -> l instance Texy LaTeX wher...
14a75ea0009d49564b1a4e3a1c4fc2884c0b6a42404038cb44c2f72e0906ab8f
mirleft/ocaml-tls
io.mli
open! Core module type Fd = Io_intf.Fd module type S = Io_intf.S module Make (Fd : Fd) : S with module Fd := Fd
null
https://raw.githubusercontent.com/mirleft/ocaml-tls/334bc2c841c9354d1c77e73bbc7b30ee3c99ad8f/async/io.mli
ocaml
open! Core module type Fd = Io_intf.Fd module type S = Io_intf.S module Make (Fd : Fd) : S with module Fd := Fd
9ac86e5b055f00d013dbdb30da499e9e5919b2b737b2f86ce887cf5088910c52
techascent/tech.io
url_test.clj
(ns tech.v3.io.url-test (:require [clojure.test :refer :all] [tech.v3.io.url :as url])) (deftest invalid-url-test ;;feel free to add (is (thrown? Throwable (url/url->parts "s3:/a/b/c"))) (is (not (nil? (url/url->parts "s3")))) (is (not (nil? (url/url->parts "makeitup"))))) (deftest valid-url-t...
null
https://raw.githubusercontent.com/techascent/tech.io/e104b1a88e8dd219bc9eace3e0bb227a51caaf70/test/tech/v3/io/url_test.clj
clojure
feel free to add
(ns tech.v3.io.url-test (:require [clojure.test :refer :all] [tech.v3.io.url :as url])) (deftest invalid-url-test (is (thrown? Throwable (url/url->parts "s3:/a/b/c"))) (is (not (nil? (url/url->parts "s3")))) (is (not (nil? (url/url->parts "makeitup"))))) (deftest valid-url-test (is (url/url? "...
b2fc7d4fdfee7feb6669b07ae79b6a9128971842a2f1f829fcf0a811a4bbf2b3
avatar29A/hs-aitubots-api
FormText.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} module Aitu.Bot.Forms.Content.FormText ( FormText(..) ) where import Data.Aeson hiding ( Options ) import Data.Text import Aitu.Bot.Forms.Options ( Options ) im...
null
https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Bot/Forms/Content/FormText.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DuplicateRecordFields # # LANGUAGE RecordWildCards # module Aitu.Bot.Forms.Content.FormText ( FormText(..) ) where import Data.Aeson hiding ( Options ) import Data.Text import Aitu.Bot.Forms.Options ( Options ) import Aitu.Bot.Forms.FormA...
b43cdccf9b392641c36dfce1e3e0aa714fd0e44914016922a1307e655d5cb6dd
eslick/cl-registry
post-view.lisp
(in-package :registry) (registry-proclamations) ;;; View for forum posts (defclass post-view (data-view) ()) ;;; View fields in forum posts (defclass post-view-field (data-view-field) ()) ;;; Make scaffolding system happy (defclass post-scaffold (data-scaffold) ()) ;;; Implement rendering protocol (defmethod...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/libs/views/post-view.lisp
lisp
View for forum posts View fields in forum posts Make scaffolding system happy Implement rendering protocol this code is just copy-and-pasted, the only difference being the paragraph class. probably want to use some simple markup language here, rather than just putting in <br /> tags.
(in-package :registry) (registry-proclamations) (defclass post-view (data-view) ()) (defclass post-view-field (data-view-field) ()) (defclass post-scaffold (data-scaffold) ()) (defmethod with-view-header ((view post-view) obj widget body-fn &rest args &key (fields-prefix-fn (view-fields-default-prefi...
68e9c40bea740be096eb48c15ef8a463c27196dd9d964b9b6108e8a0581081a9
futurice/haskell-mega-repo
Futuroom.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Futurice.App.Futuroom where import Data.Maybe import Futurice.Cache import Futurice.Integrations (runIntegrations) import Futurice.Lucid.Foundation (HtmlPage) import Futurice.Prelude import Futurice.Servant im...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/futuroom-app/src/Futurice/App/Futuroom.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # module Futurice.App.Futuroom where import Data.Maybe import Futurice.Cache import Futurice.Integrations (runIntegrations) import Futurice.Lucid.Foundation (HtmlPage) import Futurice.Prelude import Futurice.Servant import Prelude () import Servant impo...
58db15c37fb068097d2ca690abb73e3de3dc12e8f0495fd676fa0e9caab5afdb
docker-in-aws/docker-in-aws
user.clj
(ns repl.user (:require [ring.middleware.reload :refer [wrap-reload]] [clojure.java.shell :refer [sh]] [figwheel-sidecar.repl-api :as figwheel] [swarmpit.setup :as setup] [swarmpit.database :as db] [swarmpit.agent :as agent] [swarmpit.server])) ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/dev/repl/user.clj
clojure
Let Clojure warn you when it needs to reflect on types, or when it does math on unboxed numbers. In both cases you should add type annotations to prevent degraded performance.
(ns repl.user (:require [ring.middleware.reload :refer [wrap-reload]] [clojure.java.shell :refer [sh]] [figwheel-sidecar.repl-api :as figwheel] [swarmpit.setup :as setup] [swarmpit.database :as db] [swarmpit.agent :as agent] [swarmpit.server])) ...
05d3dea2e9ad6c6f12598a13e98b0c3b70d338aab12d2d2390dd8cccf66139b6
brendanhay/terrafomo
Settings.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | -- Module : Terrafomo.CloudStack.Settings Copyright : ( c ) 2017 - 2018 Licens...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-cloudstack/gen/Terrafomo/CloudStack/Settings.hs
haskell
This module is auto-generated. | Module : Terrafomo.CloudStack.Settings Stability : auto-generated * EgressFirewallRule * FirewallRule * PortForwardForward * TemplateFilter | The @rule@ nested settings definition. - (Required) - (Optional) ^ @icmp_type@ - (Optional) ^ @ports@ - (Optional) ^ @pro...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Por...
5e76971cdbbc0783b57d380e70a7e4af2a03c1811db34d3cfd561a00641a12b0
onedata/op-worker
files_path_stress_test_SUITE.erl
%%%-------------------------------------------------------------------- @author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%-------------------------------------------------------------------- %%% @doc This SUITE contains save stress te...
null
https://raw.githubusercontent.com/onedata/op-worker/b906c994c1bfefa28696399db15b3e9a3263c0f7/test_distributed/files_path_stress_test_SUITE.erl
erlang
-------------------------------------------------------------------- @end -------------------------------------------------------------------- @doc creation of large dir by single process and tree of dirs by many processes. @end -------------------------------------------------------------------- export for ct ===...
@author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . This SUITE contains save stress test for single provider . SUITE tests -module(files_path_stress_test_SUITE). -author("Michal Wrzeszcz"). -include("global_definitions.hrl"). -include_lib("cluster...
118ee95d0159fbd12a4272dc9b694b1c75dcff0d6d5d28b9bb15740ef938eac2
gsakkas/rite
20060323-22:59:38-e7c2c654f54054eb7c19d03cfec68e3b.seminal.ml
type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt | SaveHeap of string | RestoreHeap of string type heap = ...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060323-22%3A59%3A38-e7c2c654f54054eb7c19d03cfec68e3b.seminal.ml
ocaml
type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt | SaveHeap of string | RestoreHeap of string type heap = ...
57e3c4a606c788579f14b89580a376cf95805f7ba4cdafe5c6f9d49f69cea7c1
reasonml-old/BetterErrors
misc_1.ml
let pad ?(ch=' ') content n = (String.make (n - (String.length content)) ~ch) ^ content (* should be ch, not ~ch *) let () = print_endline @@ pad "1" 2
null
https://raw.githubusercontent.com/reasonml-old/BetterErrors/d439b92bfe377689c38fded5d8aa2b151133f25d/tests/misc/misc_1.ml
ocaml
should be ch, not ~ch
let pad ?(ch=' ') content n = (String.make (n - (String.length content)) ~ch) ^ content let () = print_endline @@ pad "1" 2
f60340f4116b5b62c3b3986f3f9f29c82f1c267e7baec9ce18aa2507ee84d281
rixed/ramen
RamenConstsObjectSuffixes.ml
module N = RamenName (* Suffixes used to form the worker helper object file: *) let orc_codec = N.path "orc_codec" let dessser_helper = N.path "dessser_helper"
null
https://raw.githubusercontent.com/rixed/ramen/11b1b34c3bf73ee6c69d7eb5c5fbf30e6dd2df4f/src/RamenConstsObjectSuffixes.ml
ocaml
Suffixes used to form the worker helper object file:
module N = RamenName let orc_codec = N.path "orc_codec" let dessser_helper = N.path "dessser_helper"
baf0f80e2bc53f739a536d250b454fdad08a0f76712c964e7ab1d5a0e5ac31f8
jaredly/unison.rs
run_tests.scm
(load "runtime_tests_abilities.scm") ; (use matchable) ; (define runtests ; (match-lambda [ ( ) 10 ] ; [(x . y) ; ; (if (equal? #t x) ; (display "pass\n") ; (begin ; (display "fail: ") ; (display x) ; (display "\n") ; ) ; ) ; (r...
null
https://raw.githubusercontent.com/jaredly/unison.rs/78e660aae7f77b96e373efdd65f7d5d8da4822c3/chicken/run_tests.scm
scheme
(use matchable) (define runtests (match-lambda [(x . y) (if (equal? #t x) (display "pass\n") (begin (display "fail: ") (display x) (display "\n") ) ) (runtests y) ] )) (runtests tests)
(load "runtime_tests_abilities.scm") [ ( ) 10 ]