_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
ac6368619fec55f191d7fbe58f72d3bf0aa7df306858b10632d8a4ad0ec81a4c
dpiponi/Moodler
negate.hs
do plane <- currentPlane (x, y) <- fmap (quantise2 quantum) mouse panel <- container' "panel_3x1.png" (x, y) (Inside plane) lab <- label' "negate" (x-25.0, y+75.0) (Inside plane) parent panel lab name <- new' "negate" inp <- plugin' (name ++ ".signal") (x-21, y) (Inside plane) setColour ...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/scripts/negate.hs
haskell
do plane <- currentPlane (x, y) <- fmap (quantise2 quantum) mouse panel <- container' "panel_3x1.png" (x, y) (Inside plane) lab <- label' "negate" (x-25.0, y+75.0) (Inside plane) parent panel lab name <- new' "negate" inp <- plugin' (name ++ ".signal") (x-21, y) (Inside plane) setColour ...
de1612e3c1cec404105428168104690f934cd7e05bd7355176533d5d1c732fbd
janestreet/ppx_accessor
name.ml
open! Base open! Import type t = string let of_string = Fn.id let to_constructor_string = Fn.id let to_lowercase_string t = let string = String.lowercase t in if Keyword.is_keyword string then string ^ "_" else string ;;
null
https://raw.githubusercontent.com/janestreet/ppx_accessor/19e3bce0d1b7fccc44826cf1519d053fde3499e1/src/name.ml
ocaml
open! Base open! Import type t = string let of_string = Fn.id let to_constructor_string = Fn.id let to_lowercase_string t = let string = String.lowercase t in if Keyword.is_keyword string then string ^ "_" else string ;;
8801331241a3814232606dc418496785e07fd8450cd97b0cfb2aae76b694d207
fetburner/Coq2SML
elim.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/tactics/elim.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Meilleures stratégies mais perte de...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Names ...
b17efcadffbff47a670b1bd7a1bc774a09d8a6828f206eca00dab46843574517
softwarelanguageslab/maf
R5RS_ad_prioq-5.scm
; Changes: * removed : 0 * added : 3 * swaps : 1 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 4 (letrec ((true #t) (false #f) (make-item (lambda (priority element) (cons priority element))) (get-priority (lambda (item) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_ad_prioq-5.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 3 * swaps : 1 * calls to i d fun : 4 (letrec ((true #t) (false #f) (make-item (lambda (priority element) (cons priority element))) (get-priority (lambda (item) (car item))) (get-element (lambda (item) ...
2ca83a402c6d0fec6a01feea23cea630d0daa767783d35b70c31710a7b04eee7
input-output-hk/cardano-explorer
BlockPagesTotal.hs
{-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} module Explorer.Web.Api.Legacy.BlockPagesTotal ( blockPagesTotal ) where import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Reader (ReaderT) import Data.Maybe (listToMaybe) import Database.Esque...
null
https://raw.githubusercontent.com/input-output-hk/cardano-explorer/3abcb32339edac7c2397114a1d170cc76b82e9b6/cardano-explorer-webapi/src/Explorer/Web/Api/Legacy/BlockPagesTotal.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings #
module Explorer.Web.Api.Legacy.BlockPagesTotal ( blockPagesTotal ) where import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Reader (ReaderT) import Data.Maybe (listToMaybe) import Database.Esqueleto ((^.), countRows, from, select, unValue, where_) import ...
a8a544e20dc13eb8e2a13c533094d93d12566ee84d78930e536b56e64a1729d0
scravy/simplex
Specials.hs
{-# LANGUAGE Haskell2010 #-} module Simplex.Specials ( processSpecials, newSpec, Spec(..) ) where import Simplex.Config import Simplex.ConfigData import Simplex.CmdLineOpts import Simplex.Parser import Simplex.Util import System.Directory import System.Random import Data.Maybe import Data.List i...
null
https://raw.githubusercontent.com/scravy/simplex/520e17ab5838c45c73c6a3c1601d4c7a386044b4/src/Simplex/Specials.hs
haskell
# LANGUAGE Haskell2010 #
module Simplex.Specials ( processSpecials, newSpec, Spec(..) ) where import Simplex.Config import Simplex.ConfigData import Simplex.CmdLineOpts import Simplex.Parser import Simplex.Util import System.Directory import System.Random import Data.Maybe import Data.List import Data.List.Split data S...
5a546f55c75ed345bcbf9bea62d5f43804c73881b9f70321c7eab18b7fffce29
vaibhavsagar/experiments
XPathNamespaceScope.hs
module Dotnet.System.Xml.XPath.XPathNamespaceScope where import Dotnet import qualified IOExts import qualified Dotnet.System.Type import qualified Dotnet.System.Enum data XPathNamespaceScope_ a type XPathNamespaceScope a = Dotnet.System.Enum.Enum (XPathNamespaceScope_ a) data XPathNamespaceScopeTy = All | Exclude...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Xml/XPath/XPathNamespaceScope.hs
haskell
module Dotnet.System.Xml.XPath.XPathNamespaceScope where import Dotnet import qualified IOExts import qualified Dotnet.System.Type import qualified Dotnet.System.Enum data XPathNamespaceScope_ a type XPathNamespaceScope a = Dotnet.System.Enum.Enum (XPathNamespaceScope_ a) data XPathNamespaceScopeTy = All | Exclude...
c318d0fb666eab901be79b01b6f6e58bd27ae02cbffabcc1d257c224150f143a
Guest0x0/normalization-bench
gen_random_terms.ml
let _ = let _ = Random.self_init () in let size = int_of_string Sys.argv.(1) in let env_len = int_of_string Sys.argv.(2) in let num_terms = int_of_string Sys.argv.(3) in let target_file = Sys.argv.(4) in let term_count_file = open_in_bin (try Sys.argv.(5) with _ -> "data/term_coun...
null
https://raw.githubusercontent.com/Guest0x0/normalization-bench/a51e41b4be30fd950f46b489a3ce02bb8face672/gen_random_terms.ml
ocaml
let _ = let _ = Random.self_init () in let size = int_of_string Sys.argv.(1) in let env_len = int_of_string Sys.argv.(2) in let num_terms = int_of_string Sys.argv.(3) in let target_file = Sys.argv.(4) in let term_count_file = open_in_bin (try Sys.argv.(5) with _ -> "data/term_coun...
181dff6a7c90bdbe9ce59556d20d012fc80cf466c71858bc9a01b958282a0bc4
nikodemus/SBCL
host-c-call.lisp
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 software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/host-c-call.lisp
lisp
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. Can't use C-STRING-EXTERNAL-FORMAT here, changes. Check whether we need to do a full external-format conversion, or whether we can just do a...
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!ALIEN") (/show0 "host-c-call.lisp 12") (define-alien-type-class (c-string :include pointer :include-args (to...
1f2f4c2a54180566dd9dffd9749c3428bc887bee7a2cb67b902bce6190d0a3f4
erlydtl/erlydtl
erlydtl_lib_test2.erl
-module(erlydtl_lib_test2). %% test multiple behaviours -behaviour(erlydtl_lib_test1). -behaviour(erlydtl_library). -export([version/0, inventory/1, reverse/1]). version() -> 1. inventory(filters) -> [reverse]; inventory(tags) -> []. reverse(String) when is_list(String) -> lists:reverse(String); reverse(String)...
null
https://raw.githubusercontent.com/erlydtl/erlydtl/c1f3df8379b09894d333de4e9a3ca2f3e260cba3/test/erlydtl_lib_test2.erl
erlang
test multiple behaviours
-module(erlydtl_lib_test2). -behaviour(erlydtl_lib_test1). -behaviour(erlydtl_library). -export([version/0, inventory/1, reverse/1]). version() -> 1. inventory(filters) -> [reverse]; inventory(tags) -> []. reverse(String) when is_list(String) -> lists:reverse(String); reverse(String) when is_binary(String) -> ...
9d2a5909817ab8040f123423a87b08760c22b3dcbafce761995ddf1ae6254b58
coccinelle/coccinelle
pycocci_aux.ml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/94b827ed272cb10c03da467c009b2e381162e5ad/python/pycocci_aux.ml
ocaml
constructed backwards drop commas drop commas
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
068444687cb5001d24768d1230168a56efab7c8b9a565853df422d1c1adcc8d0
rescript-lang/rescript-compiler
classify_function.ml
Copyright ( C ) 2020- , Authors of ReScript * * 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 , either version 3 of the License , or * ( at your option ) any later vers...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/62ad5bc54c811f1a5ec6db8ee333c737160ff6b9/jscomp/frontend/classify_function.ml
ocaml
* It seems we do the parse twice - in parsing - in code generation
Copyright ( C ) 2020- , Authors of ReScript * * 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 , either version 3 of the License , or * ( at your option ) any later vers...
22f4b63ea6ed2d430576b3c24358950ef675194cac1a3e58d09e06adc8a3ddf8
input-output-hk/plutus
Let.hs
-- editorconfig-checker-disable-file # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} -- | Functions for compiling PIR let terms. module PlutusIR.Compiler.Let (compileLets, LetKind(..)) where import PlutusIR import PlutusIR.Compiler.Datatype import PlutusIR.Compiler.De...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c8d4364d0e639fef4d5b93f7d6c0912d992b54f9/plutus-core/plutus-ir/src/PlutusIR/Compiler/Let.hs
haskell
editorconfig-checker-disable-file # LANGUAGE OverloadedStrings # | Functions for compiling PIR let terms. | Compile the let terms out of a 'Term'. Note: the result does *not* have globally unique names. See Note [Extra definitions while compiling let-bindings] See Note [Right-associative compilation of let-binding...
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # module PlutusIR.Compiler.Let (compileLets, LetKind(..)) where import PlutusIR import PlutusIR.Compiler.Datatype import PlutusIR.Compiler.Definitions import PlutusIR.Compiler.Provenance import PlutusIR.Compiler.Recursion import PlutusIR.Compiler.Types impo...
1a9e19a17597bb062cca9eb6154f0e41ddf6239b7a48d5c07538124a83df4964
mattaudesse/haskell-99-problems
H04.hs
module Problems.H04 where -- | -- Find the number of elements of a list. -- > > > myLength [ 123 , 456 , 789 ] 3 -- > > > " Hello , world ! " 13 -- prop > [ a ] = = length [ a ] myLength :: [a] -> Int myLength [] = 0 myLength (_:xs) = 1 + sum [1 | _ <- xs]
null
https://raw.githubusercontent.com/mattaudesse/haskell-99-problems/f7d57c0bd45c245f10073cf708fbc5e2107e0e23/Problems/H04.hs
haskell
| Find the number of elements of a list.
module Problems.H04 where > > > myLength [ 123 , 456 , 789 ] 3 > > > " Hello , world ! " 13 prop > [ a ] = = length [ a ] myLength :: [a] -> Int myLength [] = 0 myLength (_:xs) = 1 + sum [1 | _ <- xs]
967a051b8f8f6c0c8541382e3c4c6cb393a3e58ee1cee009b63ce3d57256dcca
theodormoroianu/SecondYearCourses
varEither.hs
import Data.Maybe - Limbajul si Interpretorul type M = Either String showM :: Show a => M a -> String showM (Right a) = show a showM (Left s) = "<wrong: " ++ s ++ ">" type Name = String data Term = Var Name | Con Integer | Term :+: Term | Lam Name Term | App Term Term d...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/FLP/laborator/lab4/varEither.hs
haskell
import Data.Maybe - Limbajul si Interpretorul type M = Either String showM :: Show a => M a -> String showM (Right a) = show a showM (Left s) = "<wrong: " ++ s ++ ">" type Name = String data Term = Var Name | Con Integer | Term :+: Term | Lam Name Term | App Term Term d...
7d201012c10e4d7f8d2dd24f80ecaab5d734caf1cda0479b49c49b5f4a2f858f
Helium4Haskell/helium
SynUnusedTyvar.hs
module SynUnusedTyvar where type A a = Int
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticwarnings/SynUnusedTyvar.hs
haskell
module SynUnusedTyvar where type A a = Int
e4632cda306e0943795f65f53f1be1288b2ecfbb227827ab4b881e1cb63cda67
travelping/hello
hello_log.erl
Copyright ( c ) 2010 - 2015 by Travelping GmbH < > % 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, me...
null
https://raw.githubusercontent.com/travelping/hello/b2697428efe777e8be657d31ca22d80378041d7c/src/hello_log.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright notice...
Copyright ( c ) 2010 - 2015 by Travelping GmbH < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF...
d571f0f6051313d3bad98164041eb7911edd89b3e57b758eeedcd24384d2ee32
lilactown/7-humble-guis
gui_6.clj
(ns town.lilac.humble.app.gui-6 (:require [io.github.humbleui.app :as app] [io.github.humbleui.canvas :as canvas] [io.github.humbleui.core :as core] [io.github.humbleui.paint :as paint] [io.github.humbleui.protocols :as protocols] [io.github.humbleui.ui :as ui] [io.github.humbleui.window :as wind...
null
https://raw.githubusercontent.com/lilactown/7-humble-guis/b65561017b2ad0df26dba567d4095108187f6c19/src/town/lilac/humble/app/gui_6.clj
clojure
TODO scale TODO scale -modal-example
(ns town.lilac.humble.app.gui-6 (:require [io.github.humbleui.app :as app] [io.github.humbleui.canvas :as canvas] [io.github.humbleui.core :as core] [io.github.humbleui.paint :as paint] [io.github.humbleui.protocols :as protocols] [io.github.humbleui.ui :as ui] [io.github.humbleui.window :as wind...
1cae03da3c76640a3622f83753b4d82e6c571cea8c7ad090b6819432652e85da
mariachris/Concuerror
etsi_7.erl
-module(etsi_7). -export([etsi_7/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. etsi_7() -> Parent = self(), ets:new(table, [public, named_table]), ets:insert(table, {x, 0}), ets:insert(table, {y, 0}), ets:insert(table, {z, 0}), ets:insert(table, {z5, 0}), ets:insert(...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/dpor/src/etsi_7.erl
erlang
-module(etsi_7). -export([etsi_7/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. etsi_7() -> Parent = self(), ets:new(table, [public, named_table]), ets:insert(table, {x, 0}), ets:insert(table, {y, 0}), ets:insert(table, {z, 0}), ets:insert(table, {z5, 0}), ets:insert(...
593bc4e3230ab2f59adfae711c91ad541b9f05602c58990afa5eda7c732258ad
ghc/nofib
Main.hs
module Main where import TG_iter import Data8 import Gen_net import S_Array import Defs import Quad_def main = putStr call_tg call_tg = tg_iter mon simpl m_iter m_toler max_jcb_iter jcb_toler relax dlt_t node_lists (tri_fac ()) (init_vec ()) where node_lists = get_node_list p_total n_total (coord ()) (v_steer...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/parallel/cfd/Main.hs
haskell
module Main where import TG_iter import Data8 import Gen_net import S_Array import Defs import Quad_def main = putStr call_tg call_tg = tg_iter mon simpl m_iter m_toler max_jcb_iter jcb_toler relax dlt_t node_lists (tri_fac ()) (init_vec ()) where node_lists = get_node_list p_total n_total (coord ()) (v_steer...
76d0e9ac075fa32d40c5fd835eef76318f976cc21221cb8566cdc56c05175f75
mirage/jitsu
test_options.ml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and 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 " AND THE AU...
null
https://raw.githubusercontent.com/mirage/jitsu/6be8a950d831a6055b7611747497bd418f4ff1ba/lib_test/test_options.ml
ocaml
compare string option compare (string option * string option) string option to string (string option * string option) to string Run it
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and 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 " AND THE AU...
992ca6d6fc9f938ee77ed6c3492696e34acd0036c3b00f23acfd8cdc163e7f7d
uber/queryparser
Columns.hs
Copyright ( c ) 2017 Uber Technologies , Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights -- to use, copy, modify, mer...
null
https://raw.githubusercontent.com/uber/queryparser/6ae2e94567189cf842f7134d65b14e1089f06970/src/Database/Sql/Util/Columns.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
8a44a71b5e6ca0ef7a895ddcfbb2a4d868094bd1d9e1eede4017c19cd9d00db0
tolysz/ghcjs-stack
Glob.hs
# LANGUAGE CPP , DeriveGeneric # --TODO: [code cleanup] plausibly much of this module should be merged with similar functionality in Cabal . module Distribution.Client.Glob ( FilePathGlob(..) , FilePathRoot(..) , FilePathGlobRel(..) , Glob , GlobPiece(..) , matchFileGlob , matchFileGlobRe...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal/cabal-install/Distribution/Client/Glob.hs
haskell
TODO: [code cleanup] plausibly much of this module should be merged with | A file path specified by globbing | A single directory or file component of a globbed path | A piece of a globbing pattern ^ e.g. @"/"@, @"c:\"@ or result of 'takeDrive' | Check if a 'FilePathGlob' doesn't actually make use of any globbing...
# LANGUAGE CPP , DeriveGeneric # similar functionality in Cabal . module Distribution.Client.Glob ( FilePathGlob(..) , FilePathRoot(..) , FilePathGlobRel(..) , Glob , GlobPiece(..) , matchFileGlob , matchFileGlobRel , matchGlob , isTrivialFilePathGlob , getFilePathRootDirector...
2d83a0d1878f9724389b623f625720ef6495d50b1bf6844ce0cb0cc68377b059
clash-lang/clash-compiler
Prelude.hs
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2017 - 2019 , Myrtle Software Ltd 2017 , Google Inc. , 2021 - 2023 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/4ed79bec0794f259db38a3b8b29065546fb75443/clash-prelude/src/Clash/Prelude.hs
haskell
# OPTIONS_HADDOCK show-extensions, not-home # * Creating synchronous sequential circuits * Synchronizer circuits for safe clock domain crossings * ROMs ** ROMs defined by a 'MemBlob' ** ROMs defined by a data file * RAM primitives with a combinational read port * Block RAM primitives ** Block RAM primitives ini...
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2017 - 2019 , Myrtle Software Ltd 2017 , Google Inc. , 2021 - 2023 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > ...
7d8a4c4e11a8cbe8e851779d626ea33915a0f6ca9fda4dfdc287a13be4b1ded0
besport/ocaml-aliases
ptree.ml
* This file is part of Ocaml - aliases . * * 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 . * * is distributed in the hope that it will be useful , * but WITHOUT ANY WAR...
null
https://raw.githubusercontent.com/besport/ocaml-aliases/70493e6957b58fd0cbf5d32d1e9b2531d7c6ce60/src/ptree.ml
ocaml
* This file is part of Ocaml - aliases . * * 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 . * * is distributed in the hope that it will be useful , * but WITHOUT ANY WAR...
5ecd6c529d7de7ed1b45b27e731cd23135087b95f8bcc1e8a456c83b78729d99
waddlaw/TAPL
Let.hs
| 図 11.4 let 束縛 module Language.FullSimpleLambda.System.Let ( Term (..), Ty (..), Context (..), eval, typeof, ) where import Language.FullSimpleLambda.Class import RIO data Let type Value = Term Let instance System Let where data Term Let = -- | 変数 TmVar Int | -- | ラムダ抽象 ...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/lambda-fullsimple/src/Language/FullSimpleLambda/System/Let.hs
haskell
| 変数 | ラムダ抽象 | let 束縛 | 関数の型 E-APP2 E-LETV E-LET T-VAR T-ABS T-APP T-LET ラムダ抽象値
| 図 11.4 let 束縛 module Language.FullSimpleLambda.System.Let ( Term (..), Ty (..), Context (..), eval, typeof, ) where import Language.FullSimpleLambda.Class import RIO data Let type Value = Term Let instance System Let where data Term Let TmVar Int TmLam VarName (Ty Let) (Term Le...
d575cca9054a5466290273467be66859805a8a80940ace45706fb4c4cfaeb852
hellonico/origami-fun
rotating.clj
(ns opencv4.rotating (:require [opencv4.core :refer :all] [opencv4.utils :as u] [opencv4.colors.rgb :as color])) ; ; generate image ; (def rotation-angle (rand 180)) (defn generative-art [] (let [ height 1000 width 1000 img (new-mat width height CV_8UC3) ] (set-to ...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/rotating.clj
clojure
generate image
(ns opencv4.rotating (:require [opencv4.core :refer :all] [opencv4.utils :as u] [opencv4.colors.rgb :as color])) (def rotation-angle (rand 180)) (defn generative-art [] (let [ height 1000 width 1000 img (new-mat width height CV_8UC3) ] (set-to img color/white) (d...
79324c977014900df74f7080d9dfe894bd559608fe21df797edb063cb561a7af
scrintal/heroicons-reagent
viewfinder_circle.cljs
(ns com.scrintal.heroicons.mini.viewfinder-circle) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M4.25 2A2.25 2.25 0 002 4.25v2a.75.75 0 001.5 0v-2a.75.75 0 01.75-.75h2a.75.75 0 000-1.5h-2zM13.75 2a.75.75 0 0...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/viewfinder_circle.cljs
clojure
(ns com.scrintal.heroicons.mini.viewfinder-circle) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M4.25 2A2.25 2.25 0 002 4.25v2a.75.75 0 001.5 0v-2a.75.75 0 01.75-.75h2a.75.75 0 000-1.5h-2zM13.75 2a.75.75 0 0...
b4c96c4a2eb7a25c35008b5867d8e89ca074808f174247f55d971500026e7d3f
hsyl20/haskus-system
Modules.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DataKinds # # LANGUAGE TypeApplications # -- | Kernel module management module Haskus.System.Linux.Modules ( loadModuleFromFile , loadModuleFromMemory , LoadModuleFlag(..) , LoadModuleFlags ) where import Haskus.System.Linux.ErrorCode import Haskus.System.Lin...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/System/Linux/Modules.hs
haskell
# LANGUAGE DeriveAnyClass # | Kernel module management | Load module flag | Load module flags | Load a module from a file | Load a module from memory
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Haskus.System.Linux.Modules ( loadModuleFromFile , loadModuleFromMemory , LoadModuleFlag(..) , LoadModuleFlags ) where import Haskus.System.Linux.ErrorCode import Haskus.System.Linux.Handle import Haskus.System.Linux.Syscalls import Haskus.Fo...
001ebe3e11635d8a0a4c1e0d3bd6fe4a0b9652ceec9381306763c33ac91ff78c
shortishly/pgmp
pgmp_message_tags_tests.erl
Copyright ( c ) 2022 < > %% 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/8176188fe27e5f7048f124e6e8ba6a2b8373d41e/test/pgmp_message_tags_tests.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 ) 2022 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(pgmp_message_tags_tests). -include_lib("eunit/include/eunit.hrl"). name_test_() -> {setup, fun pgmp_message_tags:start/0, ...
e46aff3178966760f26fb442e53e4ab4ebba70e2101d414f65f7de18de10be4d
ftovagliari/ocamleditor
common.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/common/common.ml
ocaml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
d321ff22d41b10ff0ee06d73d91c92df84cee7478142d4ffb20213dcf199576d
Rhywun/get-programming-with-haskell
quotes.hs
quotes = ["Quote 1", "Quote 2", "Quote 3", "Quote 4", "Quote 5"] lookupQuote [ " 2","1","3","n " ] = = [ " Quote 2","Quote 1","Quote 3 " ] lookupQuote ["2","1","3","n"] == ["Quote 2","Quote 1","Quote 3"] -} lookupQuote :: [String] -> [String] lookupQuote [] = [] lookupQuote ("n" : xs) = [] lookupQuote (x ...
null
https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit04/Lesson22/quotes.hs
haskell
How do I print a prompt for each input?
quotes = ["Quote 1", "Quote 2", "Quote 3", "Quote 4", "Quote 5"] lookupQuote [ " 2","1","3","n " ] = = [ " Quote 2","Quote 1","Quote 3 " ] lookupQuote ["2","1","3","n"] == ["Quote 2","Quote 1","Quote 3"] -} lookupQuote :: [String] -> [String] lookupQuote [] = [] lookupQuote ("n" : xs) = [] lookupQuote (x ...
621685ae35beca2d03864b237e3a9f7471abffcaab6dab7cf04419d7c4e6bb8b
tweag/asterius
cgrun036.hs
-- !! Won't compile unless the compile succeeds on -- !! the "single occurrence of big thing in a duplicated small thing" ! ! inlining old - chestnut . WDP 95/03 -- module Main ( main, g ) where main = putStr (shows (g 42 45 45) "\n") g :: Int -> Int -> Int -> [Int] g x y z = let f a b = a + b * a * b ...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/cgrun036.hs
haskell
!! Won't compile unless the compile succeeds on !! the "single occurrence of big thing in a duplicated small thing"
! ! inlining old - chestnut . WDP 95/03 module Main ( main, g ) where main = putStr (shows (g 42 45 45) "\n") g :: Int -> Int -> Int -> [Int] g x y z = let f a b = a + b * a * b - a + a + b + b * a * b - a + a + b + b * a * b - a + a + b + b * a * b - a + a + b + b * a * b - a + a + b + b * a * b - a +...
83b2e6a9cbcd412baf8d39612761ee92a05a5754dde1705191a9c5d3731a8e9d
kutyel/haskell-book
print3.hs
module Print3 where myGreeting :: String myGreeting = "hello" ++ " world!" hello :: String hello = "hello" world :: String world = "world!" main :: IO () main = do putStrLn myGreeting putStrLn secondGreeting where secondGreeting = concat [hello, " ", world]
null
https://raw.githubusercontent.com/kutyel/haskell-book/fd4dc0332b67575cfaf5e3fb0e26687dc01772a0/src/print3.hs
haskell
module Print3 where myGreeting :: String myGreeting = "hello" ++ " world!" hello :: String hello = "hello" world :: String world = "world!" main :: IO () main = do putStrLn myGreeting putStrLn secondGreeting where secondGreeting = concat [hello, " ", world]
054e484f6d47c0297201182aa8a40807fe79fd225c2a058dd19ca35c2bafaf32
LighghtEeloo/data-types-a-la-carte
Inject.hs
# LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances , FlexibleContexts # module Inject where import Prelude hiding (Either, Left, Right) newtype Mu f = In (f (Mu f)) foldExpr :: Functor f => (f a -> a) -> Mu f -> a foldExpr f (In e) = f $ fmap (foldExpr f) e data (a :+: b) e ...
null
https://raw.githubusercontent.com/LighghtEeloo/data-types-a-la-carte/7f56995656aeebe3ad3e7e35cfdd4245cefefa18/app/Inject.hs
haskell
# OVERLAPPABLE #
# LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances , FlexibleContexts # module Inject where import Prelude hiding (Either, Left, Right) newtype Mu f = In (f (Mu f)) foldExpr :: Functor f => (f a -> a) -> Mu f -> a foldExpr f (In e) = f $ fmap (foldExpr f) e data (a :+: b) e ...
61dec848eefbda365ea7ec81d58e42e2c11221f48f6a761c75717be8c7249205
mkoppmann/eselsohr
Server.hs
module Lib.Ui.Server ( Api , application ) where import qualified Network.Wai.Middleware.EnforceHTTPS as EnforceHTTPS import Network.Wai (Middleware) import Network.Wai.Handler.Warp (Port) import Network.Wai.Middleware.AddHeaders (addHeaders) import Network.Wai.Middleware.AddHsts (addHsts) import Network....
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/082da85348d30e092d001e76ffe045468bdddb9f/src/Lib/Ui/Server.hs
haskell
Request middlewares Response middlewares
module Lib.Ui.Server ( Api , application ) where import qualified Network.Wai.Middleware.EnforceHTTPS as EnforceHTTPS import Network.Wai (Middleware) import Network.Wai.Handler.Warp (Port) import Network.Wai.Middleware.AddHeaders (addHeaders) import Network.Wai.Middleware.AddHsts (addHsts) import Network....
9f4e09377749fce5b0b8b90cb9366a013d6412acd3e6273617dec2951106157d
esl/MongooseIM
mod_event_pusher.erl
%%============================================================================== Copyright 2016 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/esl/MongooseIM/a465408fcc98a171cbfbcad242dedbdb5abb022d/src/event_pusher/mod_event_pusher.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 ex...
Copyright 2016 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_event_pusher). -author(''). -behaviour(gen_mod). -behaviour(mongoose_module_metrics). -include("mod_event_pusher_events.hrl...
17df327cbc5c26a7a4378f6e22636ec13e26276ffdad500f92174aa7d92a020e
avsm/mirage-duniverse
topkg_result.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/topkg/src/topkg_result.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
214ee6434207876e618e87dc640cf38094a202ce92f9f872e528fe0fb1d3fc62
athos/syntactic-closure
util.clj
(ns syntactic-closure.util) (defn error [& msgs] (throw (Exception. (apply str msgs)))) (defn var->qualified-symbol [^clojure.lang.Var var] (let [^clojure.lang.Namespace ns (.ns var)] (symbol (str (.name ns)) (str (.sym var))))) (defn macro? [var] (if-let [m (meta var)] (:macro m))) (defn add-meta [x ...
null
https://raw.githubusercontent.com/athos/syntactic-closure/e251b03a199507df4bbc35788230d434d6506634/src/syntactic_closure/util.clj
clojure
(ns syntactic-closure.util) (defn error [& msgs] (throw (Exception. (apply str msgs)))) (defn var->qualified-symbol [^clojure.lang.Var var] (let [^clojure.lang.Namespace ns (.ns var)] (symbol (str (.name ns)) (str (.sym var))))) (defn macro? [var] (if-let [m (meta var)] (:macro m))) (defn add-meta [x ...
f631f9563b83eda09e84c381a046cc37c4351fd8adff9ab5c31ca61f31103b9d
exoscale/pithos
meta.clj
(ns io.pithos.meta "The metastore is region-local and stores details of bucket content (bucket contents are region-local as well)." (:refer-clojure :exclude [update]) (:require [qbits.alia :as a] [qbits.hayt :refer [select where set-columns columns del...
null
https://raw.githubusercontent.com/exoscale/pithos/54790f00fbfd330c6196d42e5408385028d5e029/src/io/pithos/meta.clj
clojure
schema definition Note: Possible improvements, all of these are preparable, with the exception of initiate-upload-q and update-part-q (unless we freeze the fields to update making them parameters). A function taking a session that returns a map of prepared queries could be invoked from cassandra-meta-store, destr...
(ns io.pithos.meta "The metastore is region-local and stores details of bucket content (bucket contents are region-local as well)." (:refer-clojure :exclude [update]) (:require [qbits.alia :as a] [qbits.hayt :refer [select where set-columns columns del...
536db13c456a482e786a435bd2bd6c7d797011c4cabe45e39772968a497579c6
wiseman/cl-zeroconf
sysdeps.lisp
;;; ------------------------------------------------- -*- Mode: LISP -*- CL - ZEROCONF -- A Lisp library for service discovery . ;;; Copyright 2005 ( ) 2005 - 02 - 10 ;;; Licensed under the MIT license -- see the accompanying LICENSE.txt ;;; file. ;;; ;;; This file contains implementation-specific code (f...
null
https://raw.githubusercontent.com/wiseman/cl-zeroconf/f677c6fd6a86ed58d14a5e64859be23cee6d1e67/sysdeps.lisp
lisp
------------------------------------------------- -*- Mode: LISP -*- file. This file contains implementation-specific code (for locks, select-like functionality for sockets, callbacks from foreign code). Each Lisp implementation needs to provide a MAKE-LOCK function to create a mutex, and a WITH-LOCK macro to...
CL - ZEROCONF -- A Lisp library for service discovery . Copyright 2005 ( ) 2005 - 02 - 10 Licensed under the MIT license -- see the accompanying LICENSE.txt (in-package "DNS-SD") #+lispworks (defun make-lock (name) (mp:make-lock :name name)) #+lispworks (defmacro with-lock ((lock) &body body) `(m...
0763aa7294054707aabf7019aadc6416d7b2539189622ef147c98226aff351ec
turtl/api
sync.lisp
(in-package :turtl) (defafun get-latest-sync-id (future) () "Retrieve the last sync-id from the sync table. This gives a newly-populated client a reference point to run syncs against." (alet* ((sock (db-sock)) (query (r:r (:attr (:limit (:...
null
https://raw.githubusercontent.com/turtl/api/20ab4cc91128921300913b885eb1e201a5e0fc3f/models/sync.lisp
lisp
the originating user should always be in the relations can store the client id (cid) of a newly-created object can be used to specify the public fields changed in an edit bomb out if bac action given (should never happen since this function is only used internally, but accidents to happen) split up the items by d...
(in-package :turtl) (defafun get-latest-sync-id (future) () "Retrieve the last sync-id from the sync table. This gives a newly-populated client a reference point to run syncs against." (alet* ((sock (db-sock)) (query (r:r (:attr (:limit (:...
5ab1740d4a72e8b33c6aad73f990eff07a68c23c920143bb77dfa2d82dda9943
CardanoSolutions/kupo
Datum.hs
module Kupo.Data.Cardano.Datum where import Kupo.Prelude import Kupo.Data.Cardano.BinaryData ( BinaryData , hashBinaryData ) import Kupo.Data.Cardano.DatumHash ( DatumHash ) import qualified Cardano.Ledger.Alonzo.Data as Ledger data Datum = NoDatum | Reference !(Either DatumHash BinaryDat...
null
https://raw.githubusercontent.com/CardanoSolutions/kupo/4904123abeed53f672eb34e0ef10c6c710bda61b/src/Kupo/Data/Cardano/Datum.hs
haskell
module Kupo.Data.Cardano.Datum where import Kupo.Prelude import Kupo.Data.Cardano.BinaryData ( BinaryData , hashBinaryData ) import Kupo.Data.Cardano.DatumHash ( DatumHash ) import qualified Cardano.Ledger.Alonzo.Data as Ledger data Datum = NoDatum | Reference !(Either DatumHash BinaryDat...
32d3fb74c51e6b946cf03ccb6e75daecc19797e2f5836ad71e66bd7839b8b432
synduce/Synduce
slsp.ml
* @synduce --no - lifting -NB -n 10 type list = | Elt of int | Cons of int * list Concat - list of nested list with pivot type cnlist = | Sglt of int | Cat of cnlist * int * cnlist let rec clist_to_list = function | Sglt a -> Elt a | Cat (x, piv, y) -> dec y x and dec l1 = function | Sglt a -> Con...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/constraints/sortedlist/slsp.ml
ocaml
Type invariant: partitioned by sum value Reference function : sum of longest suffis of positive elements.
* @synduce --no - lifting -NB -n 10 type list = | Elt of int | Cons of int * list Concat - list of nested list with pivot type cnlist = | Sglt of int | Cat of cnlist * int * cnlist let rec clist_to_list = function | Sglt a -> Elt a | Cat (x, piv, y) -> dec y x and dec l1 = function | Sglt a -> Con...
d399ce899f456995d6e7f24bf0f0bb919ffe1ac6ae75b37fca73fbaa776618af
compiling-to-categories/concat
VectorSpace.hs
# LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE PartialT...
null
https://raw.githubusercontent.com/compiling-to-categories/concat/49e554856576245f583dfd2484e5f7c19f688028/examples/src/ConCat/Free/VectorSpace.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE TypeSynonymInstances # # OPTIONS_GHC -Wno-unused-imports # TEMP | Vector spaces as zippable functors import GHC.Exts (Coercible,coerce) ------------------------------------------------------------------- Vector spaces -------------------------------------------------------...
# LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE PartialTypeSignatures # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE DefaultSign...
7ff1923062f44d3cf97b3fc3ebb7ac5a1eda9dd7c587b39a9209e6285d78fe74
kmi/irs
new.lisp
Mode : Lisp ; Package : Author : The Open University (in-package "OCML") (in-ontology medical-ontology) (def-class generic-care-giver(person)) (def-class generic-care-giver-type ()?X :iff-def (subclass-of ?X generic-care-giver)) (def-class medical-condition (medical-ontology-object) ((has-risk-facto...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/medical-ontology/new.lisp
lisp
Package :
Author : The Open University (in-package "OCML") (in-ontology medical-ontology) (def-class generic-care-giver(person)) (def-class generic-care-giver-type ()?X :iff-def (subclass-of ?X generic-care-giver)) (def-class medical-condition (medical-ontology-object) ((has-risk-factor :type medical-variable)))...
3e64bb88bf00225f8588416f271567f9da6860fb8eca908505ebbefb93a09818
zkat/sheeple
properties.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; indent - tabs - mode : nil -*- ;;;; This file is part of Sheeple ;;;; properties.lisp ;;;; ;;;; Property access, inspection, and management stuff, for the most part. ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/zkat/sheeple/5393c74737ccf22c3fd5f390076b75c38453cb04/src/properties.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 ; indent - tabs - mode : nil -*- This file is part of Sheeple properties.lisp Property access, inspection, and management stuff, for the most part. Base Property API try to set it couldn't set it, try adding it then try setting it again bought the farm if we know...
(in-package :sheeple) (defun property-position (property-name object) (position property-name (mold-properties (%object-mold object)) :test #'eq)) (defun direct-property-value (object property-name) "Returns the property-value set locally in OBJECT for PROPERTY-NAME. If the property is not set locally, a condit...
68e6323b6d4df91cec3d72b9fef492819f25f8a72b3bc1480acbfd635f58997f
kirkedal/rfun-interp
TypeCheck.hs
--------------------------------------------------------------------------- -- Module : Copyright : , 2017 -- License : AllRightsReserved -- Maintainer : < > -- Stability : none? -- Portability : ? -- -- |Simple type check for RFun17 -- -------------------------------------------...
null
https://raw.githubusercontent.com/kirkedal/rfun-interp/c5297be7ab07c92e9d489c642cd987ed646e78c8/src/TypeCheck.hs
haskell
------------------------------------------------------------------------- License : AllRightsReserved Stability : none? Portability : ? |Simple type check for RFun17 --------------------------------------------------------------------------- Get function names and definitions Check each function Che...
Module : Copyright : , 2017 Maintainer : < > module TypeCheck (typecheck) where import Ast import PrettyPrinter import qualified Data.Map as M import Control.Monad.State import Control.Monad.Reader import Control.Monad.Except import Data . List ( intersperse ) typecheck :: Program ...
da52e7cbb84b6301c4762510d1c45db7e37414ac18289de5a0408d94c3dea710
BSeppke/vigracket
morphology.rkt
#lang racket (require vigracket/config) (require vigracket/helpers) (require scheme/foreign) (unsafe!) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Distance...
null
https://raw.githubusercontent.com/BSeppke/vigracket/077734ab5376e6bbf5600eb813225428d02838c0/morphology.rkt
racket
#lang racket (require vigracket/config) (require vigracket/helpers) (require scheme/foreign) (unsafe!) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Distance...
994476031e768d5d751b692d078f3179ae60a29fe0284be4e1f3109c0939e7e0
relevance/mycroft
handlers.clj
(ns mycroft.handlers) (defn wrap-logging [handler] (fn [request] (let [start (System/nanoTime) response (handler request) elapsed (/ (double (- (System/nanoTime) start)) 1000000.0)] (when response (println (str (:uri request) " [" (:request-method request) "] " elapsed " msec" ...
null
https://raw.githubusercontent.com/relevance/mycroft/1bf86dfd1092408c9e9fc836be6dfb2f95099253/src/mycroft/handlers.clj
clojure
(ns mycroft.handlers) (defn wrap-logging [handler] (fn [request] (let [start (System/nanoTime) response (handler request) elapsed (/ (double (- (System/nanoTime) start)) 1000000.0)] (when response (println (str (:uri request) " [" (:request-method request) "] " elapsed " msec" ...
fc2f50853da24e0d410b52707680c2e375ab870b3b337bdd380302e4c3941385
spechub/Hets
OpDecls.hascasl.hs
types : A__s : : ( * , data ) A__t : : ( * , data ) values : : : ( A__s , A__s ) - > A__s x1 : : : : : : A__s : : A__t scope : Prelude . > Prelude . A__s , Type [ A__s ] [ ] Prelude . > Prelude . A__s , con of A__s Prelude . A__t |- > Prelude . A__t , Type [ A__t ] [ ] Prelude...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/ToHaskell/test/OpDecls.hascasl.hs
haskell
types : A__s : : ( * , data ) A__t : : ( * , data ) values : : : ( A__s , A__s ) - > A__s x1 : : : : : : A__s : : A__t scope : Prelude . > Prelude . A__s , Type [ A__s ] [ ] Prelude . > Prelude . A__s , con of A__s Prelude . A__t |- > Prelude . A__t , Type [ A__t ] [ ] Prelude...
8756ae168ecdc5e9b32eb7874d62ebcd785e5a8c24d980dbce0999285c2812b5
sbcl/sbcl
alloc.lisp
allocation VOPs for the Sparc port 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 software is in the public domain and ...
null
https://raw.githubusercontent.com/sbcl/sbcl/5c84fb3414e323f5373a4c1a59b0716d84d5c916/src/compiler/sparc/alloc.lisp
lisp
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. LIST and LIST* Special purpose inline allocators. The compiler likes to be able to directly make value cells. Automatic allocators for primi...
allocation VOPs for the Sparc port 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") (define-vop (list) (:args (things :more t :scs (any-reg descrip...
bd76714829c7abb74a637202f4c881c0f8f5631ae2201d4284064207260584cb
sunng87/diehard
timeout_test.clj
(ns diehard.timeout-test (:require [clojure.test :refer :all] [diehard.core :refer :all]) (:import [java.time Duration] [dev.failsafe TimeoutExceededException] [java.util.concurrent ExecutionException] [clojure.lang ExceptionInfo])) (def timeout-duration 50) (deftest g...
null
https://raw.githubusercontent.com/sunng87/diehard/636f3b0dbe6327147e727bf4a200ff1d157085a3/test/diehard/timeout_test.clj
clojure
(ns diehard.timeout-test (:require [clojure.test :refer :all] [diehard.core :refer :all]) (:import [java.time Duration] [dev.failsafe TimeoutExceededException] [java.util.concurrent ExecutionException] [clojure.lang ExceptionInfo])) (def timeout-duration 50) (deftest g...
5361cecd77243d150a85a8c7121eacc1216fc8d63602dfff2554013d278056df
jnoll/gantt
gantt.hs
{-# LANGUAGE DeriveDataTypeable #-} import DateRange import Parse import FormatPGF (formatPGF) import FormatMarkdown (formatMarkdown) import Data.Maybe (fromMaybe) import Control.Monad.Error import Control.Monad.Reader import Data.Data (constrFields, toConstr, gmapQ, cast) import Data.List import Data.String.Utils (r...
null
https://raw.githubusercontent.com/jnoll/gantt/e7099e1786177580526d8da43d62e0182f00e681/gantt.hs
haskell
# LANGUAGE DeriveDataTypeable # Convert a record to a list. Show various primitive types. Command line parsing and processing -------------------------------------------------------------------------- help, summary, and program are for command line argument parsing. Command line only options. with of task, grou...
import DateRange import Parse import FormatPGF (formatPGF) import FormatMarkdown (formatMarkdown) import Data.Maybe (fromMaybe) import Control.Monad.Error import Control.Monad.Reader import Data.Data (constrFields, toConstr, gmapQ, cast) import Data.List import Data.String.Utils (replace) import Data.Time.Clock (utct...
8fcb31a6cd9a3e011bb8902437b4b85595281bbdfbf3db25c3e2d08380ea0f4f
wenkokke/dep2con
Con2Bin.hs
module Language.Conversion.Con2Bin where import Prelude hiding (Word) import Control.Monad (msum) import Data.List (delete, sortBy, minimumBy) import Data.Maybe (fromMaybe) import Data.Ord (comparing) import Language.POS (toXP) import qualified Language.Struc...
null
https://raw.githubusercontent.com/wenkokke/dep2con/eec24bc8e1a4db5b1582f0fd933ab02f8a6ce041/src/Language/Conversion/Con2Bin.hs
haskell
|Convert dependency structures to binary constituency structures, ensuring that only the minimal number of projections are made. |Compute the depth of a word in the dependency tree.
module Language.Conversion.Con2Bin where import Prelude hiding (Word) import Control.Monad (msum) import Data.List (delete, sortBy, minimumBy) import Data.Maybe (fromMaybe) import Data.Ord (comparing) import Language.POS (toXP) import qualified Language.Struc...
b0cdef55333187a9b2e0aa1cc8b3ebb21c1690f9cbafec27f98dd8597bcebad5
ekmett/bifunctors
Functor.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # {-# LANGUAGE Safe #-} # LANGUAGE PolyKinds # # LANGUAGE QuantifiedConstraints # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE MonoLocalBinds # module Data.Bifunctor.Functor ( (:->) , BifunctorFunctor(..) , BifunctorMo...
null
https://raw.githubusercontent.com/ekmett/bifunctors/269d156f47ce9896d801572d1fc3a286fbf92c4e/src/Data/Bifunctor/Functor.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE Safe # class (forall p. Bifunctor' p => Bifunctor' (t p)) => BifunctorFunctor t where # MINIMAL biextract, (biextend | biduplicate) # # INLINE biliftW #
# LANGUAGE CPP # # LANGUAGE TypeOperators # # LANGUAGE PolyKinds # # LANGUAGE QuantifiedConstraints # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE MonoLocalBinds # module Data.Bifunctor.Functor ( (:->) , BifunctorFunctor(..) , BifunctorMonad(..) , biliftM , BifunctorComonad(..) , biliftW...
0302f2e1364e0ed769bd20b320842ecc07e038d51f56d411b0b210bf8535654a
PLSysSec/lio
Common.hs
# LANGUAGE Trustworthy # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE StandaloneDeriving, DeriveGeneric #-} module Memblog.Common where import Prelude hiding (readFile, writeFile, appendFile, catch) import LIO import LIO.Error import LIO.DCLabel import LIO.Web.Simple import LIO.Web....
null
https://raw.githubusercontent.com/PLSysSec/lio/622a3e7bc86a3b42ab4ce8be954064a5f142247a/lio-simple/examples/memblog/Memblog/Common.hs
haskell
# LANGUAGE StandaloneDeriving, DeriveGeneric # NOTE: We assume that "liofs" only contains public data, DO NOT store any sensitive data in this directory | Data-type representing a blog post Dummy posts
# LANGUAGE Trustworthy # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Memblog.Common where import Prelude hiding (readFile, writeFile, appendFile, catch) import LIO import LIO.Error import LIO.DCLabel import LIO.Web.Simple import LIO.Web.Simple.DCLabel import Web.Simple.Templates import C...
c6a3fcf00604865c0718ec07d2eb33d1808788f120963484998f1dd0ae9f19f3
ucsd-progsys/nate
odoc_config.mli
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamldoc/odoc_config.mli
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_config.mli , v 1.1.20.2 200...
b06a7aeff87b5d9f5f9a975a1a01728fa1923c76ea9166fa30016d44d2afb71e
futurice/haskell-mega-repo
Class.hs
module Okta.Class where import Futurice.Prelude import Prelude () import Okta.Request import Okta.Types class Monad m => MonadOkta m where oktaReq :: Req a -> m a users :: MonadOkta m => m [User] users = oktaReq ReqGetAllUsers appUsers :: MonadOkta m => OktaAppId -> m [AppUser GithubProfile] appUsers = oktaReq...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/okta-client/src/Okta/Class.hs
haskell
module Okta.Class where import Futurice.Prelude import Prelude () import Okta.Request import Okta.Types class Monad m => MonadOkta m where oktaReq :: Req a -> m a users :: MonadOkta m => m [User] users = oktaReq ReqGetAllUsers appUsers :: MonadOkta m => OktaAppId -> m [AppUser GithubProfile] appUsers = oktaReq...
4bb7e7a0d05195c8daccedbe1d6264ae0dba653b40fd9e84935018ebcd63d020
silky/quipper
Binary.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== -- ----------------------------------------------...
null
https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/Programs/Tools/Binary.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== ---------------------------------------------------------------------- | This tool decomposes a circuit into binary gates. | Main fun...
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the module Main where import Quipper import QuipperLib.QuipperASCIIParser import QuipperLib.Decompose main :: IO () main = do (ins,circuit) <- parse_from_stdin let decomposed_circuit = decompose_generic Binary circuit print_generic ASCI...
c062ee51e2dac62b9c5cf8a25d5e388df2902ff2f8069f862e53449ef8780adc
UU-ComputerScience/uhc
MarshalError.hs
# EXCLUDE_IF_TARGET js # {-# EXCLUDE_IF_TARGET cr #-} module MarshalError ( module Foreign.Marshal.Error, IOErrorType, mkIOError, alreadyExistsErrorType, doesNotExistErrorType, alreadyInUseErrorType, fullErrorType, eofErrorType, illegalOperationErrorType, permissionErrorType, userErrorType, annotateIOErro...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/haskell98/MarshalError.hs
haskell
# EXCLUDE_IF_TARGET cr #
# EXCLUDE_IF_TARGET js # module MarshalError ( module Foreign.Marshal.Error, IOErrorType, mkIOError, alreadyExistsErrorType, doesNotExistErrorType, alreadyInUseErrorType, fullErrorType, eofErrorType, illegalOperationErrorType, permissionErrorType, userErrorType, annotateIOError ) where import System.IO...
44602a675471e94f039deed5b28fd586ba8a48f15572247ebcfcc742b2594046
cyverse-archive/DiscoveryEnvironmentBackend
home.clj
(ns data-info.routes.home (:use [common-swagger-api.schema] [data-info.routes.domain.common] [data-info.routes.domain.stats]) (:require [data-info.services.home :as home] [data-info.util.service :as svc])) (defroutes* home (context* "/home" [] :tags ["home"] (GET* "/" [:as {...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/data-info/src/data_info/routes/home.clj
clojure
(ns data-info.routes.home (:use [common-swagger-api.schema] [data-info.routes.domain.common] [data-info.routes.domain.stats]) (:require [data-info.services.home :as home] [data-info.util.service :as svc])) (defroutes* home (context* "/home" [] :tags ["home"] (GET* "/" [:as {...
0b42bca5c434b80e3bde877f282f335305c655b51ab104ff45f2ab8ee1c8ba02
avsm/hello-world-action-ocaml
world.ml
let () = print_endline Hello.hello
null
https://raw.githubusercontent.com/avsm/hello-world-action-ocaml/d5d6c55d78c7155bdbb0a2aa9e3285f6848737ed/world.ml
ocaml
let () = print_endline Hello.hello
2a936456eb950aa8cdeb27a630501754282cafe734bc950e52c381a767fb48f9
0x0f0f0f/gobba
testing.ml
(** Basic Testing Primitives *) open Types open Errors open Typecheck * Assert if two values are equal , otherwise fail let assertp args = let (x,y) = match args with | [|x;y|] -> (x, y) | _ -> iraise WrongPrimitiveArgs in if (compare_evt x y) <> 0 then iraise @@ InternalFailure ("Assertion Error: exp...
null
https://raw.githubusercontent.com/0x0f0f0f/gobba/61092207438fb102e36245c46c27a711b8f357cb/lib/primitives/testing.ml
ocaml
* Basic Testing Primitives
open Types open Errors open Typecheck * Assert if two values are equal , otherwise fail let assertp args = let (x,y) = match args with | [|x;y|] -> (x, y) | _ -> iraise WrongPrimitiveArgs in if (compare_evt x y) <> 0 then iraise @@ InternalFailure ("Assertion Error: expected " ^ (show_evt y) ^ " but g...
c43a509aa74275a6b0d27c44ac2bd8e536b2a17acc5ec76ab4946b015367f131
Ebanflo42/Persistence
Filtration.hs
| Module : Persistence . Filtration Copyright : ( c ) , 2018 License : BSD 3 Clause Maintainer : Stability : experimental This module contains functions for V.constructing filtrations and computing persistent homology , persistence landscapes , and computing bottleneck distance between ba...
null
https://raw.githubusercontent.com/Ebanflo42/Persistence/6e5691cec58ce85d800ce8fff56e0797a6f2532d/src/Persistence/Filtration.hs
haskell
* Types * Utilities * Construction * Persistent homology * Comparing barcode diagrams * Types | This type synonym exists to make other synonyms more concise. Each simplex in a filtration is represented as a triple: its filtration index, the indices of its vertices in the original data, and the indices of i...
| Module : Persistence . Filtration Copyright : ( c ) , 2018 License : BSD 3 Clause Maintainer : Stability : experimental This module contains functions for V.constructing filtrations and computing persistent homology , persistence landscapes , and computing bottleneck distance between ba...
3270eacc729ae963a612d1998274fce6f26ef2c2880729d61ce71873b1a48e28
CDSoft/pp
blob.hs
#!/usr/bin/env stack {- stack script --package bytestring --package filepath --package split -} PP Copyright ( C ) 2015 - 2023 This file is part of PP . PP 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...
null
https://raw.githubusercontent.com/CDSoft/pp/625e6a2ce449ffb905fb91a5f37090c417a0e82a/tools/blob.hs
haskell
stack script --package bytestring --package filepath --package split
#!/usr/bin/env stack PP Copyright ( C ) 2015 - 2023 This file is part of PP . PP is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) an...
2dbd969fa7cf5756e9a2ed14e67dab05e51ff9637ee7591bb682496398298be3
nd/bird
4.4.2.hs
unzip . zipp = id proof by induction on x: x is undefined: unzip . zipp (undefined, y) = {case exhaustion in zipp} unzip undefined = {case exhaustion in unzip (map)} undefined x is []: unzip . zipp ([], y) = {def of zip} unzip [] = {def of unzip} [] x is (x:xs): unzip . zipp ((x:xs), (y:ys)) = {def of zip} unzip...
null
https://raw.githubusercontent.com/nd/bird/06dba97af7cfb11f558eaeb31a75bd04cacf7201/ch04/4.4.2.hs
haskell
unzip . zipp = id proof by induction on x: x is undefined: unzip . zipp (undefined, y) = {case exhaustion in zipp} unzip undefined = {case exhaustion in unzip (map)} undefined x is []: unzip . zipp ([], y) = {def of zip} unzip [] = {def of unzip} [] x is (x:xs): unzip . zipp ((x:xs), (y:ys)) = {def of zip} unzip...
ad3752aea9f6a32fe546804cfa654d17d40ddcc6c728a7039f01769960a21a59
icicle-lang/icicle-ambiata
Program.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # module Icicle.Test.Gen.Core.Program where import qualified Icicle.Core.Exp.Simp as Simp import qualified Data.Functor.Identity as Identity import qualified Icicle....
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/test/Icicle/Test/Gen/Core/Program.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # Generate a few precomputation expressions Generate a bunch of expressions, collecting up the environment Generate some streams When we can generate primitives, prefer them | Generate a well typed expression that has given type. Make values very rare, bu...
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternGuards # module Icicle.Test.Gen.Core.Program where import qualified Icicle.Core.Exp.Simp as Simp import qualified Data.Functor.Identity as Identity import qualified Icicle.Common.FixT as Fix import Icicle.Core.Exp.Prim import ...
4c1332d0cea5d84933b4a36dd4b542882bce0a579a2c40674afca04a224cb11e
ocaml-gospel/gospel
t24.mli
(**************************************************************************) (* *) GOSPEL -- A Specification Language for OCaml (* *) Copyright ( ...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/negative/t24.mli
ocaml
************************************************************************ (as described in file LICE...
GOSPEL -- A Specification Language for OCaml Copyright ( c ) 2018- The VOCaL Project This software is free software , distributed under the MIT license val f : ('a -> 'b -> 'c) -> 'a -> 'b -> 'c ERROR : Line 12 too many parameters in...
b4c2ab625e050b5961a81a79fa990e888241c1d2878f859396935daa5518ec5a
yesodweb/yesod
non-th.hs
{-# LANGUAGE OverloadedStrings #-} import Yesod.Routes.Dispatch import Data.Text (Text, words) import Prelude hiding (words) import Web.PathPieces import Criterion.Main import Control.DeepSeq import Control.Monad (forM_, unless) data TestRoute = Foo | Bar !Int | Baz deriving Eq instance NFData TestRoute samples =...
null
https://raw.githubusercontent.com/yesodweb/yesod/c59993ff287b880abbf768f1e3f56ae9b19df51e/yesod-core/bench/non-th.hs
haskell
# LANGUAGE OverloadedStrings #
import Yesod.Routes.Dispatch import Data.Text (Text, words) import Prelude hiding (words) import Web.PathPieces import Criterion.Main import Control.DeepSeq import Control.Monad (forM_, unless) data TestRoute = Foo | Bar !Int | Baz deriving Eq instance NFData TestRoute samples = take 10000 $ cycle [ words "fo...
c1e764718e6b20457620e355a3bc196a9129cd5ac4050450288fbe5c00931383
mzp/coq-ruby
tactics.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/tactics/tactics.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : tactics.ml 12956 ...
82cae85fcc4280b7ff9723ae22659dad01af65e567d89fd36f939a95ad0bfdb9
maybevoid/casimir
Free.hs
# OPTIONS_GHC -fno - warn - orphans # module Casimir.Ops.Io.Free where import Casimir.Ops.Io.Base import Casimir.Free data IoCoOp a where LiftIoOp :: forall x a . IO x -> (x -> a) -> IoCoOp a instance EffCoOp IoEff where type CoOperation IoEff = IoCoOp instance Functor IoCoOp where fmap :: forall a b ...
null
https://raw.githubusercontent.com/maybevoid/casimir/ebbfa403739d6f258e6ac6793549006a0e8bff42/casimir/src/lib/Casimir/Ops/Io/Free.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Casimir.Ops.Io.Free where import Casimir.Ops.Io.Base import Casimir.Free data IoCoOp a where LiftIoOp :: forall x a . IO x -> (x -> a) -> IoCoOp a instance EffCoOp IoEff where type CoOperation IoEff = IoCoOp instance Functor IoCoOp where fmap :: forall a b ...
75879e69339a3c4472a61d40e6d1edcfb96955b02011090834a7491ea3e1c148
OtpChatBot/Ybot
ybot_notification.erl
%%%----------------------------------------------------------------------------- %%% @author 0xAX <> %%% @doc Ybot notification manager %%% @end %%%----------------------------------------------------------------------------- -module(ybot_notification). -behaviour(gen_server). -export([start_link/2]). %% gen_se...
null
https://raw.githubusercontent.com/OtpChatBot/Ybot/5ce05fea0eb9001d1c0ff89702729f4c80743872/src/ybot_notification.erl
erlang
----------------------------------------------------------------------------- @author 0xAX <> @doc @end ----------------------------------------------------------------------------- gen_server callbacks init notification manager return traverse all notifications and start notification handler start notification...
Ybot notification manager -module(ybot_notification). -behaviour(gen_server). -export([start_link/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). start_link(Notification, NotificationsDir) -> ...
63b77dacf46d5960acc5a74c34d306e022d8dff40302cfb7b6585c42c98a1b35
metosin/reitit
core.cljc
(ns reitit.core (:require [reitit.exception :as exception] [reitit.impl :as impl] [reitit.trie :as trie])) ;; ;; Expand ;; (defprotocol Expand (expand [this opts])) (extend-protocol Expand #?(:clj clojure.lang.Keyword :cljs cljs.core.Keyword) (expand [this _] {:name this}) #...
null
https://raw.githubusercontent.com/metosin/reitit/ae73d031b9fd1dfe05e969af6221626956465698/modules/reitit-core/src/reitit/core.cljc
clojure
Expand Router Different routers
(ns reitit.core (:require [reitit.exception :as exception] [reitit.impl :as impl] [reitit.trie :as trie])) (defprotocol Expand (expand [this opts])) (extend-protocol Expand #?(:clj clojure.lang.Keyword :cljs cljs.core.Keyword) (expand [this _] {:name this}) #?(:clj clojure....
44990fc69bc9fa455dd921c8ea4ac76de64f5ba7d32d001f7852a2ccf1584173
kafka4beam/kflow
kflow_app.erl
%%%=================================================================== 2019 Klarna Bank AB ( publ ) %%% @private This module reads kflow pipe configuration %%% @end %%%=================================================================== -module(kflow_app). -behaviour(application). -include("kflow_int.hrl"). -ifn...
null
https://raw.githubusercontent.com/kafka4beam/kflow/2c44379a2934385a17fb504e7a933c859da7ab06/src/framework/kflow_app.erl
erlang
=================================================================== @end =================================================================== Application callbacks ============================================================================= API =======================================================================...
2019 Klarna Bank AB ( publ ) @private This module reads kflow pipe configuration -module(kflow_app). -behaviour(application). -include("kflow_int.hrl"). -ifndef(TEST). -define(TEST, false). -endif. -export([start/2, stop/1]). start(_StartType, _StartArgs) -> test build , where we want all logs in one place...
a448fd8df9f615d10c4831d8411964a0eef18960a08557d87870589a1f1db92e
maitria/avi
pervasive.clj
(ns avi.pervasive) (defn n-times [thing n a-fn] (reduce (fn [thing n] (a-fn thing)) thing (range n))) (defn subs-with-spaces "Like subs, except that it is not an error to index past the end of the string. If `start` is greater, we pretend that the string was longer. If `end` is greater, ...
null
https://raw.githubusercontent.com/maitria/avi/c641e9e32af4300ea7273a41e86b4f47d0f2c092/src/avi/pervasive.clj
clojure
(ns avi.pervasive) (defn n-times [thing n a-fn] (reduce (fn [thing n] (a-fn thing)) thing (range n))) (defn subs-with-spaces "Like subs, except that it is not an error to index past the end of the string. If `start` is greater, we pretend that the string was longer. If `end` is greater, ...
0ce1cf4a00dea5daf2401c5fc11913135b31ee4e2f4e7d22a536b6635e1d0b68
jaked/ocamljs
syntax_quotations.ml
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
null
https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/jslib/syntax_quotations.ml
ocaml
prerr_endline ("handle_antiquot_in_string " ^ s); | "`str" -> <:expr< Ast.safe_string_escaped $e$ >>
* This file is part of ocamljs , OCaml to Javascript compiler * Copyright ( C ) 2007 - 9 Skydeck , Inc * Copyright ( C ) 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
33b9f0e91bcba7edc9ffe293912c77551fa24d9dfc3c442d44a95612f6a40405
travelping/eradius
eradius_server_top_sup.erl
@private %% @doc Supervisor for RADIUS server supervisor tree. %% This is a one_for_all supervisor because the server_mon must always die when the server_sup goes down, and vice-versa. -module(eradius_server_top_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). ...
null
https://raw.githubusercontent.com/travelping/eradius/bac1a92f547ac4f8e009e9052f28c430b6f9b82d/src/eradius_server_top_sup.erl
erlang
@doc Supervisor for RADIUS server supervisor tree. This is a one_for_all supervisor because the server_mon must always die when the server_sup goes down, and vice-versa. ------------------------------------------------------------------------------------------ -- supervisor callbacks
@private -module(eradius_server_top_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> RestartStrategy = one_for_all, MaxRestarts = 10, MaxSecondsBetweenRestarts = 1, ...
c4bf0d7b789e2ba4410aafe2672e8a72551ed591168ba7959692387d8f8b2e5b
cark/cark.behavior-tree
state_machine_test.cljc
(ns cark.behavior-tree.state-machine-test (:require [clojure.test :as t :refer [deftest is]] [cark.behavior-tree.core :as bt] [cark.behavior-tree.state-machine :as sm] [cark.behavior-tree.context :as ctx] [cark.behavior-tree.hiccup :as h])) (defn log [value] ...
null
https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/test/cark/behavior_tree/state_machine_test.cljc
clojure
(ns cark.behavior-tree.state-machine-test (:require [clojure.test :as t :refer [deftest is]] [cark.behavior-tree.core :as bt] [cark.behavior-tree.state-machine :as sm] [cark.behavior-tree.context :as ctx] [cark.behavior-tree.hiccup :as h])) (defn log [value] ...
6efe0933802d7c9e515f15733721d34d5d732d7669744723b39487c60d8f0160
esl/MongooseIM
mongoose_graphql_commands.erl
%% @doc Management and execution of administration commands with GraphQL API -module(mongoose_graphql_commands). %% API -export([start/0, stop/0, process/1]). %% Internal API -export([wrap_type/2]). %% Only for tests -export([build_specs/1, get_specs/0]). -ignore_xref([build_specs/1, get_specs/0]). % Needed to ge...
null
https://raw.githubusercontent.com/esl/MongooseIM/caab05da825c28505d526890883fb88aaa6e3618/src/graphql/mongoose_graphql_commands.erl
erlang
@doc Management and execution of administration commands with GraphQL API API Internal API Only for tests Needed to get the 'agent' vCard Fields inside a vCard API The returned context has 'status' with the following values: - 'error' means that the arguments were incorrect, and 'reason' contains more informa...
-module(mongoose_graphql_commands). -export([start/0, stop/0, process/1]). -export([wrap_type/2]). -export([build_specs/1, get_specs/0]). -ignore_xref([build_specs/1, get_specs/0]). -define(MAX_TYPE_RECURSION_DEPTH, 2). Needed to handle e.g. [ String ! ] ! , which has 3 wrapper types : NON_NULL , LIST , NON_NU...
db9531b0cdffe7d8240349febdeed4de367291e73a2efffaa8caccf9d0afb12e
fulcro-legacy/semantic-ui-wrapper
ui_popup.cljs
(ns fulcrologic.semantic-ui.modules.popup.ui-popup (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/modules/Popup/Popup" :default Popup])) (def ui-popup "A Popup displays additional information on top of a page. Props: - as (custom): An element type to re...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/popup/ui_popup.cljs
clojure
(ns fulcrologic.semantic-ui.modules.popup.ui-popup (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/modules/Popup/Popup" :default Popup])) (def ui-popup "A Popup displays additional information on top of a page. Props: - as (custom): An element type to re...
59ba5691d97fb900c50df2e253c10d97815aad0f59677e58dbb438220f06ce6c
flipstone/haskell-for-beginners
4_derived_instances.hs
import Data.List (maximumBy) import Data.Function (on) -- Augment your complex number data definition from section 3 allow complex numbers to be equated , shown and read -- data Complex a = Complex a a deriving (Show, Read, Eq) -- Create a Player type that includes a name and a Score. -- Then define a function to ...
null
https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/answers/chapter_08/4_derived_instances.hs
haskell
Augment your complex number data definition from section Create a Player type that includes a name and a Score. Then define a function to pick a winner from a list of Players based on who has the highest score.
import Data.List (maximumBy) import Data.Function (on) 3 allow complex numbers to be equated , shown and read data Complex a = Complex a a deriving (Show, Read, Eq) data Score = Score Int deriving (Eq, Ord, Show) data Player = Player { name::String, score::Score } deriving (Show) winner :: [Player] -> Player win...
0420f337b5a9e9a4e19dabca86930a4a4657b2449424bccb2bcb8549fc959aed
bennn/dissertation
solver.rkt
#lang racket/base (require racket/class ; sugar/container sugar/debug racket/list racket/bool racket/generator racket/match "helper.rkt") (provide (all-defined-out)) (define solver% ;; Abstract base class for solvers (class object% (super-new) (abstract get-solution) (abstrac...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/quadU/base/csp/solver.rkt
racket
sugar/container sugar/debug Abstract base class for solvers (define (recursive-backtracking assignment csp) (if (complete? assignment) assignment (let ([var (select-unassigned-variable csp-variables, assignment, csp)]) (for/or ([value (in-list (order-domain-values var assignment csp))]) if ...
#lang racket/base (require racket/class racket/list racket/bool racket/generator racket/match "helper.rkt") (provide (all-defined-out)) (define solver% (class object% (super-new) (abstract get-solution) (abstract get-solutions) (abstract get-solution-iter))) (define solver%? (is-a?...
19cd23362fb99106f62f223484e40041625a6cf4ca7339aea5eeaddb70551a70
YoEight/lambda-database-experiment
EndPoint.hs
-------------------------------------------------------------------------------- -- | Module : Lambda . Client . EndPoint Copyright : ( C ) 2017 -- License : (see the file LICENSE) -- Maintainer : < > -- Stability : provisional -- Portability : non-portable -- ------------------------------------------------...
null
https://raw.githubusercontent.com/YoEight/lambda-database-experiment/da4fab8bd358fb8fb78412c805d6f5bc05854432/lambda-client/library/Lambda/Client/EndPoint.hs
haskell
------------------------------------------------------------------------------ | License : (see the file LICENSE) Stability : provisional Portability : non-portable ------------------------------------------------------------------------------ ----------------------------------------------------------------------...
Module : Lambda . Client . EndPoint Copyright : ( C ) 2017 Maintainer : < > module Lambda.Client.EndPoint where import Lambda.Prelude data EndPoint = EndPoint { endPointIp :: !String , endPointPort :: !Int } deriving Eq instance Show EndPoint where show (EndPoint h p) = h <> ":" <> s...
a1ca93bbb4d9304ba6ed57439c004d8e9a96ed4e5423396ddb6b396fd48c5d55
nikita-volkov/rebase
Error.hs
module Rebase.Data.Text.Encoding.Error ( module Data.Text.Encoding.Error ) where import Data.Text.Encoding.Error
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/Text/Encoding/Error.hs
haskell
module Rebase.Data.Text.Encoding.Error ( module Data.Text.Encoding.Error ) where import Data.Text.Encoding.Error
cb252c717ee882ebafefe313a264003cc60327f3fc0b6fccc381c2be6bcdd99c
facjure/mesh
styles.clj
(ns typography.styles (:refer-clojure :exclude [+ - * /]) (:require [garden.def :refer [defstyles defrule]] [garden.core :refer [css]] [garden.units :as u :refer [px pt em]] [garden.arithmetic :refer [+ - * /]] [facjure.mesh.media :as respond] [facjure.mes...
null
https://raw.githubusercontent.com/facjure/mesh/e37887304c271bacfc017055180f56935f893682/examples/typography/styles.clj
clojure
(ns typography.styles (:refer-clojure :exclude [+ - * /]) (:require [garden.def :refer [defstyles defrule]] [garden.core :refer [css]] [garden.units :as u :refer [px pt em]] [garden.arithmetic :refer [+ - * /]] [facjure.mesh.media :as respond] [facjure.mes...
0f4bf8c76ed4860934923201f19d32a8ba7dcbe2dc2ccd2840e5bfcc43806706
paurkedal/batyr
types.ml
Copyright ( C ) 2022 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
null
https://raw.githubusercontent.com/paurkedal/batyr/814791b6ce6476b79ecddc12b7d28fa4d23dc591/rockettime/lib/types.ml
ocaml
Copyright ( C ) 2022 < > * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version . * * This p...
a916ed18cc2b533587289b5235bf8c657eb3341055018097b690062df449dc38
jaspervdj/advent-of-code
12.hs
{-# LANGUAGE DeriveFunctor #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Main where import qualified AdventOfCode.NanoParser as NP import Control.Applicative (many, optional, (<|>)) import Control.Monad (guard) import Data.Char ...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/179ec4301ab642efafead373717203742d92800a/2015/12.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Main where import qualified AdventOfCode.NanoParser as NP import Control.Applicative (many, optional, (<|>)) import Control.Monad (guard) import Data.Char (isDigit) import Data.Functor (($>)) import ...
93d45d2d8fa6dd1ac819476e4d4a8be0176a2ef4f0e4b5e513cb27c0b271df48
mrkkrp/flac
Level2Interface.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ForeignFunctionInterface # # LANGUAGE LambdaCase # -- | Module : Codec . Audio . FLAC.Metadata . Internal . Level2Interface Copyright : © 2016 – present License : BSD 3 clause -- Maintainer : < > -- Stability : experimental -- Portability...
null
https://raw.githubusercontent.com/mrkkrp/flac/9a7beb51e74a396ef65f30c6619a601ee6b9655c/Codec/Audio/FLAC/Metadata/Internal/Level2Interface.hs
haskell
| Stability : experimental Portability : portable FLAC metadata interface, see: <>. * Chain * Iterator -------------------------------------------------------------------------- Chain | Create and use a 'MetaChain' (metadata chain). The chain is guaranteed to be freed even in the case of exception thro...
# LANGUAGE FlexibleContexts # # LANGUAGE ForeignFunctionInterface # # LANGUAGE LambdaCase # Module : Codec . Audio . FLAC.Metadata . Internal . Level2Interface Copyright : © 2016 – present License : BSD 3 clause Maintainer : < > Low - level wrapper around C functions to work wit...
19719449e0b78a50815a70b81a17c84ef9732686ce420e9277329b737405ba83
avsm/eeww
input_lines.ml
(* TEST *) open Printf let data_file = "data.txt" let length = 500 let rec check lo hi l = if lo = hi + 1 then begin if l <> [] then failwith "list too long" end else begin match l with | [] -> failwith "list too short" | h :: t -> if int_of_string h <> lo then failwith "wrong value";...
null
https://raw.githubusercontent.com/avsm/eeww/4d65720b5dd51376842ffe5c8c220d5329c1dc10/boot/ocaml/testsuite/tests/lib-channels/input_lines.ml
ocaml
TEST
open Printf let data_file = "data.txt" let length = 500 let rec check lo hi l = if lo = hi + 1 then begin if l <> [] then failwith "list too long" end else begin match l with | [] -> failwith "list too short" | h :: t -> if int_of_string h <> lo then failwith "wrong value"; che...
b7725b797b18df62b5ac554ad9fc0a1cde7f528157babf6d10c94ec6780299f6
philnguyen/soft-contract
dvh-5.rkt
Demonstrates shortcoming in 's email from 7/13 Weakened assume L1 * L1 = L3 and ( not ( zero ? L3 ) ) verify : ( not ( zero ? L1 ) ) #lang racket (require soft-contract/fake-contract) (define phil (lambda (l1) (lambda (l3) l1))) (provide/contract [phil (->i ([l1 number?]) (res (l1) (->i ([...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/dvh/dvh-5.rkt
racket
Demonstrates shortcoming in 's email from 7/13 Weakened assume L1 * L1 = L3 and ( not ( zero ? L3 ) ) verify : ( not ( zero ? L1 ) ) #lang racket (require soft-contract/fake-contract) (define phil (lambda (l1) (lambda (l3) l1))) (provide/contract [phil (->i ([l1 number?]) (res (l1) (->i ([...
81aa3d2a20b604fc0ca8deb69b8cf7b2e4bf477a1541d79497dd290f23da9ef3
alex-mckenna/clash-systolic
TestLibrary.hs
module Main (main) where import Prelude import Test.Tasty main :: IO () main = defaultMain $ testGroup "." []
null
https://raw.githubusercontent.com/alex-mckenna/clash-systolic/decce655ea7dd1039ad7b319d00f731d8d776f46/tests/TestLibrary.hs
haskell
module Main (main) where import Prelude import Test.Tasty main :: IO () main = defaultMain $ testGroup "." []
487d55147b7e10be91051877124f5084d6daf986483388a92586703ec34080cd
cstar/ejabberd-old
gen_muc_handler.erl
-module(gen_muc_handler). -author(''). -export([behaviour_info/1]). behaviour_info(callbacks) -> [{process_groupchat_message,5}, {process_private_message,4}, {process_iq,7}, {process_presence,5}, {process_user_iq,5}, {get_config,4}, {set_config,5}, {i...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_muc/gen_muc_handler.erl
erlang
-module(gen_muc_handler). -author(''). -export([behaviour_info/1]). behaviour_info(callbacks) -> [{process_groupchat_message,5}, {process_private_message,4}, {process_iq,7}, {process_presence,5}, {process_user_iq,5}, {get_config,4}, {set_config,5}, {i...
2426c59d43847b3c1626256b1554c4fbce0fad06826f456e4809e4095a231bfe
Quid2/zm
K551d9f2adb72.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module Test.ZM.ADT.Message.K551d9f2adb72 (Message(..)) where import qualified Prelude(Eq,Ord,Show) import qualified GHC.Generics import qualified Flat import qualified Data.Model import qualified Test.ZM.ADT.User.K0e1df25dc480 import qualified Test.ZM.ADT....
null
https://raw.githubusercontent.com/Quid2/zm/02c0514777a75ac054bfd6251edd884372faddea/test/Test/ZM/ADT/Message/K551d9f2adb72.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric #
module Test.ZM.ADT.Message.K551d9f2adb72 (Message(..)) where import qualified Prelude(Eq,Ord,Show) import qualified GHC.Generics import qualified Flat import qualified Data.Model import qualified Test.ZM.ADT.User.K0e1df25dc480 import qualified Test.ZM.ADT.Subject.Kfced5b0f3c1f import qualified Test.ZM.ADT.Content.K9573...
8d7e190266975910154726efb591fabec08989466b81c6f3eefc246c4df93c89
unisonweb/unison
Find.hs
module Unison.Util.Find ( fuzzyFinder, simpleFuzzyFinder, simpleFuzzyScore, fuzzyFindInBranch, fuzzyFindMatchArray, prefixFindInBranch, ) where import qualified Data.Char as Char import qualified Data.List as List import qualified Data.Text as Text -- -haskell-regular-expression-tutorial/ -13...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/unison-share-api/src/Unison/Util/Find.hs
haskell
-haskell-regular-expression-tutorial/ re - exported by highlights `query` if it is a prefix of `s`, or if it appears in the final segement of s (after the final `.`) prefer relative names `Ord` instance that helps us sort the fuzzy matches in a nice way. (see regex "Foo" = "(\\F).*(\\o).*(\\o)" newSyntax = Fal...
module Unison.Util.Find ( fuzzyFinder, simpleFuzzyFinder, simpleFuzzyScore, fuzzyFindInBranch, fuzzyFindMatchArray, prefixFindInBranch, ) where import qualified Data.Char as Char import qualified Data.List as List import qualified Data.Text as Text import qualified Text.Regex.TDFA as RE impo...
13b85357a60368a55556351a20b82a09dc6b0ab39db62fcd6715c387943c531b
pallet/pallet-aws
static.clj
(ns pallet.compute.ec2.static "Static data for EC2 (data not available in ec2 apis)") (defn GiB [n] (* 1024 n)) (def instance-types {;;; Burstable Performance Instances :t2.micro {:ram (GiB 1) :cpus [{:cores 1 :speed 1}] :disks [] :32-bit true :64-bit true :io :low :ebs-optimized fa...
null
https://raw.githubusercontent.com/pallet/pallet-aws/6f650ca93c853f8a574ad36875f4d164e46e8e8d/src/pallet/compute/ec2/static.clj
clojure
Burstable Performance Instances General Purpose Compute Optimized GPU Instances Memory Optimized Storage Optimized Previous generation instance types 1 EC2 Compute Unit GB instance storage EC2 Compute Unit GB instance storage GB instance storage Mbps GB instance storage Mbps GB of instance storage GB ...
(ns pallet.compute.ec2.static "Static data for EC2 (data not available in ec2 apis)") (defn GiB [n] (* 1024 n)) (def instance-types :t2.micro {:ram (GiB 1) :cpus [{:cores 1 :speed 1}] :disks [] :32-bit true :64-bit true :io :low :ebs-optimized false} :t2.small {:ram (GiB 2) ...
d46e76b61051b8b212eb334e6e3c964a6ac7ac8ca24a7e2c35e4bda002100963
fakedata-haskell/fakedata
Hipster.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.Hipster where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Fak...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Hipster.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.Hipster where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.T...
4b3a5295343a084d091a56ce1493796fac1bb27024c4130903531c7c950d6f17
schleyfox/erlang_ann
ann_test.erl
-module(ann_test). -export([setup/0, run/0]). setup() -> ann_graph:start(), N1_pid = spawn(ann, perceptron, [[],[],[],[]]), N2_pid = spawn(ann, perceptron, [[],[],[],[]]), N3_pid = spawn(ann, perceptron, [[],[],[],[]]), N4_pid = spawn(ann, perceptron, [[],[],[],[]]), N5_pid = spawn(ann, perceptron, [[],[],...
null
https://raw.githubusercontent.com/schleyfox/erlang_ann/98c108cdd47d9636799f0ee1a1a284c1e6d190bb/ann_test.erl
erlang
Connect input node H1 and H2 to output node O
-module(ann_test). -export([setup/0, run/0]). setup() -> ann_graph:start(), N1_pid = spawn(ann, perceptron, [[],[],[],[]]), N2_pid = spawn(ann, perceptron, [[],[],[],[]]), N3_pid = spawn(ann, perceptron, [[],[],[],[]]), N4_pid = spawn(ann, perceptron, [[],[],[],[]]), N5_pid = spawn(ann, perceptron, [[],[],...
48fede92b10dca1607c4620b24dc774a25dec9b8ceffb454c32d665e6abea77f
lambdaforge/wanderung
build.clj
(ns build (:refer-clojure :exclude [test compile]) (:require [clojure.tools.build.api :as b] [borkdude.gh-release-artifact :as gh] [org.corfield.build :as bb])) (def lib 'io.lambdaforge/wanderung) (def version (format "0.2.%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def b...
null
https://raw.githubusercontent.com/lambdaforge/wanderung/a7ff572cd454dfb7a60d5cd281a079a0d2ae2db7/build.clj
clojure
(ns build (:refer-clojure :exclude [test compile]) (:require [clojure.tools.build.api :as b] [borkdude.gh-release-artifact :as gh] [org.corfield.build :as bb])) (def lib 'io.lambdaforge/wanderung) (def version (format "0.2.%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def b...
c3002cc5ecacf6ce5e2239038a13241a781a2d2b75c47df4e02910cf56c3064a
DerekCuevas/interview-cake-clj
project.clj
(defproject balanced-binary-tree "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :main ^:skip-aot balanced-binary-tree.core :target-path "target/%s" :profiles {:uberjar {:a...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/balanced-binary-tree/project.clj
clojure
(defproject balanced-binary-tree "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :main ^:skip-aot balanced-binary-tree.core :target-path "target/%s" :profiles {:uberjar {:a...