_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
98f1d50e6039f723319e1137e7ff9d7281123295a349805ae74e7ad866acd8ee
kongo2002/statser
statser_api_tests.erl
-module(statser_api_tests). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -define(DEFAULT_HOST, ":8080"). setup() -> setup(emergency). setup(LogLevel) -> Ctx = test_util:start_statser(LogLevel), inets:start(), Ctx. teardown(State) -> inets:stop(), test_util:stop(State), ok. ...
null
https://raw.githubusercontent.com/kongo2002/statser/1cb0498f56c97d8a010b979c5163dd2750064e98/test/statser_api_tests.erl
erlang
TODO: refine assertion
-module(statser_api_tests). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -define(DEFAULT_HOST, ":8080"). setup() -> setup(emergency). setup(LogLevel) -> Ctx = test_util:start_statser(LogLevel), inets:start(), Ctx. teardown(State) -> inets:stop(), test_util:stop(State), ok. ...
4b00ded5f1d2381810995e7338fb339abfb9a473d7e4ffb5b479dddd38545bc5
FranklinChen/hugs98-plus-Sep2006
SrcDist.hs
# OPTIONS_GHC -cpp # ----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.SrcDist Copyright : 2004 -- Maintainer : < > -- Stability : alpha -- Portability : portable -- Copyright ( c ) 2003 - 2004 , All rights reserved . ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/Cabal/Distribution/Simple/SrcDist.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.SrcDist Stability : alpha Portability : portable NOTE: FIX: we don't have a great way of testing this module, since we can't easily look inside a tarball once its created. |Create a source dist...
# OPTIONS_GHC -cpp # Copyright : 2004 Maintainer : < > Copyright ( c ) 2003 - 2004 , All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source ...
0d7853593af138b33607c79e1657bd56bd6131f64d7ad0b74d6617dc41738660
agda/agda2hs
Issue14.hs
module Issue14 where import Numeric.Natural (Natural) constid :: a -> b -> b constid x = \ x -> x sectionTest₁ :: Natural -> Natural -> Natural sectionTest₁ n = (+ n) sectionTest₂ :: Natural -> Natural -> Natural sectionTest₂ section = (+ section)
null
https://raw.githubusercontent.com/agda/agda2hs/16b51f430682619e25a18cfbfb4463a4272fab4b/test/golden/Issue14.hs
haskell
module Issue14 where import Numeric.Natural (Natural) constid :: a -> b -> b constid x = \ x -> x sectionTest₁ :: Natural -> Natural -> Natural sectionTest₁ n = (+ n) sectionTest₂ :: Natural -> Natural -> Natural sectionTest₂ section = (+ section)
a704407bbcac2aa2e21e2f27a7e0ada51b1172b95ecc26af4828bbf8aa0f3b3b
nathanaelbayle/programming-language
CalculatorRegisterStore.hs
-- | Semantics for register based integer calculator. -- The values of the registers are stored in a Store. -- -- Author Magne Haveraaen Since 2020 - 03 - 14 module CalculatorRegisterStore where -- Use Haskell's array data structure import Data.Array ----------------------- | A Store for a register calculator ...
null
https://raw.githubusercontent.com/nathanaelbayle/programming-language/4ee0c0c2aa34ee1cb6fa6d7c37f28bc2bfee25bd/INF222%20Pamphlets/INF222%20-%20Pamphlet%202/CalculatorRegisterStore.hs
haskell
| Semantics for register based integer calculator. The values of the registers are stored in a Store. Author Magne Haveraaen Use Haskell's array data structure --------------------- | Get the value stored for the given register. | Set the value stored for the given register.
Since 2020 - 03 - 14 module CalculatorRegisterStore where import Data.Array | A Store for a register calculator is an array with 10 integer elements . The access functions getregister / need to translate between register and array index . type Store = Array Integer Integer | Defines a store for 10 regist...
860c131b9f9646ecd9eee968e01c49e6483f0e538388eec805846db4eb003efb
tanakh/ICFP2011
Yuma2.hs
# LANGUAGE CPP # {-# OPTIONS -Wall #-} import Control.Applicative import qualified Control.Exception.Control as E import Control.Monad import Control.Monad.State import Data.Maybe import LTG sittingDuck = do I $> 0 sittingDuck kyoukoMain :: LTG() kyoukoMain = do S ( K ( S ( S Attack ( K 255 ) ) ( K 8192 ) ) ...
null
https://raw.githubusercontent.com/tanakh/ICFP2011/db0d670cdbe12e9cef4242d6ab202a98c254412e/ai/Yuma2.hs
haskell
# OPTIONS -Wall #
# LANGUAGE CPP # import Control.Applicative import qualified Control.Exception.Control as E import Control.Monad import Control.Monad.State import Data.Maybe import LTG sittingDuck = do I $> 0 sittingDuck kyoukoMain :: LTG() kyoukoMain = do S ( K ( S ( S Attack ( K 255 ) ) ( K 8192 ) ) ) Get clear 1 1 $<...
51f5bde85066a899d9e07a079344e0a7a869adc4e2f56ab05909b60e1fe54b98
sgbj/MaximaSharp
dlasrt.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/lapack/dlasrt.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
d10a34c17f23ed8cd1fcae3bb1d6097736dfda38c751db964374ff25a8daf88c
parapluu/Concuerror
preemption.erl
-module(preemption). -export([preemption/0]). -export([scenarios/0]). -concuerror_options_forced([{instant_delivery, false}, {scheduling, oldest}]). scenarios() -> [{?MODULE, inf, dpor}]. -define(senders, 2). -define(receivers, 2). preemption() -> Parent = self(), Receivers = spawn_receivers(?senders, ?rec...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/advanced_tests/src/preemption.erl
erlang
-module(preemption). -export([preemption/0]). -export([scenarios/0]). -concuerror_options_forced([{instant_delivery, false}, {scheduling, oldest}]). scenarios() -> [{?MODULE, inf, dpor}]. -define(senders, 2). -define(receivers, 2). preemption() -> Parent = self(), Receivers = spawn_receivers(?senders, ?rec...
fad09553bf5a3ec3d2646ad7e5124f087e80d2d57a0e7fd4d16822bf38ee4f8e
lwhjp/rince
main.rkt
#lang racket/base (require (for-syntax racket/base) racket/provide (prefix-in c: "../../lang/syntax.rkt") "../../link.rkt") (provide (filtered-out (λ (id) (and (regexp-match? #rx"^c:" id) (substring id 2))) (all-f...
null
https://raw.githubusercontent.com/lwhjp/rince/595db178eb7369c2e14103c3de80ae657d5a482d/c/lang/main.rkt
racket
#lang racket/base (require (for-syntax racket/base) racket/provide (prefix-in c: "../../lang/syntax.rkt") "../../link.rkt") (provide (filtered-out (λ (id) (and (regexp-match? #rx"^c:" id) (substring id 2))) (all-f...
d94edb87c5775603f1da5facf81de521de470bc59918be0f410a6522fb3dda5b
david-broman/modelyze
utest.mli
(** A simple unit testing framework - Utest *) open Ustring.Op val init : string -> unit (** Initiate a test module, giving it a name *) val test : string -> bool -> unit (** Expression [test s b] runs a test with name [s]. The test is treated as successful if [b] is true, else it is seen as unsuccessful. ...
null
https://raw.githubusercontent.com/david-broman/modelyze/e48c934283e683e268a9dfd0fed49d3c10277298/ext/ucamlib/src/utest.mli
ocaml
* A simple unit testing framework - Utest * Initiate a test module, giving it a name * Expression [test s b] runs a test with name [s]. The test is treated as successful if [b] is true, else it is seen as unsuccessful. * Expression [test_list desc res exp ppelem] performs a unit test with description [desc] ...
open Ustring.Op val init : string -> unit val test : string -> bool -> unit val test_ext : string -> bool -> ustring -> ustring -> unit val test_str : string -> string -> string -> unit val test_int : string -> int -> int -> unit val test_ustr : string -> ustring -> ustring -> unit val test_ustr : string -> u...
83e57358a18dc1f820abc64227a4f1ccde990b2570404334c6f89f7b1074bf8f
futurice/haskell-mega-repo
Me.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeFamilies # -- | Copyright : ( c ) 2015 Futurice Oy -- License : BSD3 Maintainer : < > module PlanMill.Types.Me (Me(..)) where import Pla...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/e301c08c8dfdcca048fe82fecce6bb2d02e9558a/planmill-client/src/PlanMill/Types/Me.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # | License : BSD3
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # Copyright : ( c ) 2015 Futurice Oy Maintainer : < > module PlanMill.Types.Me (Me(..)) where import PlanMill.Internal.Prelude import PlanMill.Types.Identifier (HasIdentifier (..)) import PlanMill.Types.Use...
c26fd54c2d7f47a96609765f739ee444915beb1de56b5797d900d7f5c7c1d4c1
nklein/clifford
def-errors-t.lisp
(in-package #:clifford-tests) (nst:def-criterion (:basis-error (name basis reason) (:form body)) (handler-case (progn (eval body) (nst:make-failure-report :format "Expected CLIFFORD-BAD-BASIS-SPECIFICATION error")) (clifford-bad-basis-specification (err) (let ((nm (clifford-...
null
https://raw.githubusercontent.com/nklein/clifford/2ba9b9a8f68eb88c2821341dfac2f2a61c2f84ce/src/def-errors-t.lisp
lisp
(in-package #:clifford-tests) (nst:def-criterion (:basis-error (name basis reason) (:form body)) (handler-case (progn (eval body) (nst:make-failure-report :format "Expected CLIFFORD-BAD-BASIS-SPECIFICATION error")) (clifford-bad-basis-specification (err) (let ((nm (clifford-...
7ab414d813d53627fdfb1288bba1789cbebdd1c11bc0302e1f1f768b2e0e14aa
nvim-treesitter/nvim-treesitter
highlights.scm
; inherits: html [ "---" ] @punctuation.delimiter [ "{" "}" ] @punctuation.special
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/e3adb39586ef573fc048aeb341f3a9fb71754452/queries/astro/highlights.scm
scheme
inherits: html
[ "---" ] @punctuation.delimiter [ "{" "}" ] @punctuation.special
224234b5b86bc288825bc4382319764340b585d15f0b00189c7fbecb1e397a2f
haskell/cabal
Main.hs
module Main where import Sublib (s) main :: IO () main = putStrLn s
null
https://raw.githubusercontent.com/haskell/cabal/da863c18c8e8c09aae57248a656ac53ca49677ea/cabal-testsuite/PackageTests/MultipleLibraries/T7270/p/Main.hs
haskell
module Main where import Sublib (s) main :: IO () main = putStrLn s
7348338b83050f9d654223bd3a34c4629d6054897a6c8ecc8ad1a3ba01f31d17
ledger/cl-ledger
textual.lisp
;; This file contains the parser for textual ledger files (declaim (optimize (safety 3) (debug 3) (speed 1) (space 0))) (defpackage :ledger-textual (:use :common-lisp :ledger :local-time :periods :cambl :cl-ppcre) (:import-from :ledger negatef) (:export *directive-handlers*)) (in-package :ledger-textual) (def...
null
https://raw.githubusercontent.com/ledger/cl-ledger/e25d5f9f721bcf3b30d6569363e723f22d19a3a0/parsers/textual/textual.lisp
lisp
This file contains the parser for textual ledger files comma begins a comment; gobble up the rest of the line uses CR :actual-date :effective-date has no meaning to Ledger. if (word == "include") { push_var<std::string> save_path(path); push_var<unsigned int> save_src_idx(src_idx); push_var<unsigned ...
(declaim (optimize (safety 3) (debug 3) (speed 1) (space 0))) (defpackage :ledger-textual (:use :common-lisp :ledger :local-time :periods :cambl :cl-ppcre) (:import-from :ledger negatef) (:export *directive-handlers*)) (in-package :ledger-textual) (defvar *date-regexp* "[0-9-./]+(?:\\s+[0-9:]+)?") (defvar *s...
203cdd7cb822b60508e07342341baeb384c871bb5947077ac05f38193a86c9c0
ethercrow/yi-config
FuzzySnippet.hs
module FuzzySnippet ( fuzzySnippet ) where import Yi import Fuzzy import Snippet fuzzySnippet :: [Snippet] -> YiM () fuzzySnippet = genericFuzzy . fmap toFuzzyItem toFuzzyItem s@(Snippet trigger body) = FuzzyItem { fiToText = trigger , fiAction = withCurrentBuffer (expandSnippet s) }
null
https://raw.githubusercontent.com/ethercrow/yi-config/3530e6ca8e9a598d8c7ddcf7954c66254c2b760d/modules/FuzzySnippet.hs
haskell
module FuzzySnippet ( fuzzySnippet ) where import Yi import Fuzzy import Snippet fuzzySnippet :: [Snippet] -> YiM () fuzzySnippet = genericFuzzy . fmap toFuzzyItem toFuzzyItem s@(Snippet trigger body) = FuzzyItem { fiToText = trigger , fiAction = withCurrentBuffer (expandSnippet s) }
b4b9eb49ff928dcbab664694f93f108d3e67d88a0cadadadae76e6a87bf20903
Perry961002/SICP
exe4.8-named-let.scm
;对于书上的解释,对(let <var> <bindings> <body>) ;body其实就是var的过程体,参数就是bindings ;即先把var定义为以bindings中的vars为参数、以body为过程体的过程 然后以bindings里的values为实际参数调用过程var (define (named-let? exp) (and (taggesd-list exp 'let) (eq? (length exp) 4))) (define (named-let-var exp) (cadr exp)) (define (named-let-bindings exp) (c...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap4/exercise/exe4.8-named-let.scm
scheme
对于书上的解释,对(let <var> <bindings> <body>) body其实就是var的过程体,参数就是bindings 即先把var定义为以bindings中的vars为参数、以body为过程体的过程
然后以bindings里的values为实际参数调用过程var (define (named-let? exp) (and (taggesd-list exp 'let) (eq? (length exp) 4))) (define (named-let-var exp) (cadr exp)) (define (named-let-bindings exp) (caddr exp)) (define (named-let-bindings-vars exp) (map car (named-let-bindings exp))) (define (named-let-bi...
a534426f3fc92010e78aab153e169712fbda533083ba002a61f344ef9fe89d79
athensresearch/athens
orderkeeper_test.cljc
(ns athens.common-events.orderkeeper-test (:require [athens.common-db :as common-db] #_[athens.common-events :as common-events] [athens.common-events.fixture :as fixture] #_[athens.common-events.resolver :as resolver] [clojure.test :as t] #_[datascript.c...
null
https://raw.githubusercontent.com/athensresearch/athens/35a6e086b017d38e30f0023330174baa0b8b784e/test/athens/common_events/orderkeeper_test.cljc
clojure
(ns athens.common-events.orderkeeper-test (:require [athens.common-db :as common-db] #_[athens.common-events :as common-events] [athens.common-events.fixture :as fixture] #_[athens.common-events.resolver :as resolver] [clojure.test :as t] #_[datascript.c...
49f9299f7167d39ff3e073926e9aaa7fc53fe26d64881016df812773eeea134a
ska80/thinlisp
c-types.lisp
(in-package "TLI") ;;;; Module C-TYPES Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1995 Gensym Corporation . ;;; All rights reserved. This file is part of ThinLisp . ThinLisp is open source ; you can redistribute it and/or modify it under the terms of the ThinLisp License as published b...
null
https://raw.githubusercontent.com/ska80/thinlisp/173573a723256d901887f1cbc26d5403025879ca/tlt/lisp/c-types.lisp
lisp
Module C-TYPES All rights reserved. you can redistribute it and/or modify it either version 1 or ( at your option ) any later version . WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. C Types This module implements operations on C types. `C types'...
(in-package "TLI") Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1995 Gensym Corporation . This file is part of ThinLisp . under the terms of the ThinLisp License as published by the ThinLisp ThinLisp is distributed in the hope that it will be useful , but For additional information s...
95373cccc3ab04a79c3d511d5788981f777d3a3f3beb512d28a14f8147a36c6a
schell/gelatin
Setup.hs
import Distribution.Simple main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/schell/gelatin/04c1c83d4297eac4f4cc5e8e5c805b1600b3ee98/gelatin-webgl/Setup.hs
haskell
import Distribution.Simple main :: IO () main = defaultMain
d84638e5974d855fbfe6c108c7be230cc4dd92cfadefb01daf892e38a302accf
SimulaVR/godot-haskell
Resource.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Resource (Godot.Core.Resource.sig_changed, G...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Resource.hs
haskell
| Emitted whenever the resource changes. | Virtual function which can be overridden to customize the behavior value of @method setup_local_to_scene@. | Virtual function which can be overridden to customize the behavior value of @method setup_local_to_scene@. | If @resource_local_to_scene@ is enabled and the resourc...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Resource (Godot.Core.Resource.sig_changed, G...
9e1851113a63bd650a619bf0df88df8d30396e5578d10b94c9bdc3b74cee17a9
ocaml-batteries-team/batteries-included
array_partition.ml
let (|>) x f = f x let list_partition p a = let left, right = Array.to_list a |> List.partition p in Array.of_list left, Array.of_list right open Array let current_partition p xs = let n = length xs in (* Use a bitset to store which elements will be in which final array. *) let bs = BatBitSet.create n in ...
null
https://raw.githubusercontent.com/ocaml-batteries-team/batteries-included/a1b992fd2030869421550153ac5c97f0a39780f5/benchsuite/array_partition.ml
ocaml
Use a bitset to store which elements will be in which final array. Allocate the final arrays and copy elements into them.
let (|>) x f = f x let list_partition p a = let left, right = Array.to_list a |> List.partition p in Array.of_list left, Array.of_list right open Array let current_partition p xs = let n = length xs in let bs = BatBitSet.create n in for i = 0 to n-1 do if p xs.(i) then BatBitSet.set bs i done; let n...
0eb9b16300a226315e7c491f6d2538d79926d90484f5a4ca92634f74647a658c
ghollisjr/cl-ana
package.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana 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 Li...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/table/package.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
21eaa2329e5428486058e1208bb015b66f337bf3b611f4f2f206595eddfa5891
janestreet/merlin-jst
magic_numbers.ml
open Std module Cmi = struct type error = | Not_an_interface of string | Wrong_version_interface of string * string | Corrupted_interface of string exception Error of error let to_version_opt = function | "Caml1999I017" -> Some "4.02" | "Caml1999I020" -> Some "4.03" | "Caml1999I021" -> ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/9c3b60c98d80b56af18ea95c27a0902f0244659a/src/ocaml/typing/magic_numbers.ml
ocaml
open Std module Cmi = struct type error = | Not_an_interface of string | Wrong_version_interface of string * string | Corrupted_interface of string exception Error of error let to_version_opt = function | "Caml1999I017" -> Some "4.02" | "Caml1999I020" -> Some "4.03" | "Caml1999I021" -> ...
610c1f49fee8d20a8bcb957a97645bed5cb95ecb07d283c337b58ad50f31acdf
kuberlog/holon
compilers.lisp
(defun is-clonable (link) t) (defun get-links (git-site) ;; unimplemented, looks like I never finished this...strange '()) (defun go-to-AwesomeCompilers-github () (git-get "-compilers")) (let ((links (filter #'is-clonable (get-links (go-to-AwesomeCompilers-github))))) (for link in links do (into-fo...
null
https://raw.githubusercontent.com/kuberlog/holon/91e01d404e25353592590c3c1b8d0ed72bb7afd7/lisp/compilers.lisp
lisp
unimplemented, looks like I never finished this...strange
(defun is-clonable (link) t) (defun get-links (git-site) '()) (defun go-to-AwesomeCompilers-github () (git-get "-compilers")) (let ((links (filter #'is-clonable (get-links (go-to-AwesomeCompilers-github))))) (for link in links do (into-folder "/Users/kuberlog/compilers" (clone link...
29e1f790eba0118d6e11ac2b5d8824eba52476ba124ae8e18d339205731097d5
sshirokov/CLSQL
sqlite3-package.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; Name : Purpose : Package definition for low - level SQLite3 interface Programmer : Date Started : Oct 2004 ;;;;...
null
https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/db-sqlite3/sqlite3-package.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION (), also known as the LLGPL. *************************************************************************
Name : Purpose : Package definition for low - level SQLite3 interface Programmer : Date Started : Oct 2004 This file , part of CLSQL , is Copyright ( c ) 2004 by CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser G...
7eb1cd7cf158f31391c5aac3d22fcc5524900af04662a276557d0d055d1ca3ee
triffon/fp-2022-23
12-triangular.rkt
#lang racket (define (starts-with-n? lst n element) (or (< n 1) (and (not (null? lst)) (equal? (car lst) element) (starts-with-n? (cdr lst) (- n 1) element)))) (define (triangular? matrix) (define (helper index current-matrix) (or (null? current-matrix) (and (not ...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/0698febf5bde7dd2b819acde64958acb7d2e97fb/exercises/inf2/07/12-triangular.rkt
racket
#lang racket (define (starts-with-n? lst n element) (or (< n 1) (and (not (null? lst)) (equal? (car lst) element) (starts-with-n? (cdr lst) (- n 1) element)))) (define (triangular? matrix) (define (helper index current-matrix) (or (null? current-matrix) (and (not ...
6501ba472ca1a7108912fab66041afadfbc147ed83ffdf9dc33aaa1cbb15ce69
typedclojure/typedclojure
main.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/7e6173e16db6de40de45fd1ce8e12072281a84f0/typed/clj.checker/src/typed/clojure/main.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns typed.clojure.main (:require [clojure.core.typed.errors :as err] [clojure.edn :as edn] [clojure.tools.namespace.repl :as-alias repl] [nextjournal.beholder :as-alias beholder] [babashka.process :as-alias process] ...
0746de9472b74ac4d15d72bb42485cf211bc2f6107f9020ea8c50ab67a81016c
Ptival/chick
Test.hs
module Inductive.Inductive.Test where import Examples.Utils import Language import PrettyPrinting.Chick () import StandardLibrary import Test.Tasty import TestUtils equalityChecks :: [TestTree] equalityChecks = [equalityCheck @'Chick ind | ind <- inductives] inequalityChecks :: [TestTree] inequalityChecks = [ine...
null
https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/test/Inductive/Inductive/Test.hs
haskell
module Inductive.Inductive.Test where import Examples.Utils import Language import PrettyPrinting.Chick () import StandardLibrary import Test.Tasty import TestUtils equalityChecks :: [TestTree] equalityChecks = [equalityCheck @'Chick ind | ind <- inductives] inequalityChecks :: [TestTree] inequalityChecks = [ine...
bc827081264d191b086a64a43d03a73933087d9c85d4f9c6086b66d2dca582c3
expipiplus1/vulkan
Promoted_From_VK_KHR_vulkan_memory_model.hs
{-# language CPP #-} No documentation found for Chapter " Promoted_From_VK_KHR_vulkan_memory_model " module Vulkan.Core12.Promoted_From_VK_KHR_vulkan_memory_model ( PhysicalDeviceVulkanMemoryModelFeatures(..) , StructureType(..) ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Core12/Promoted_From_VK_KHR_vulkan_memory_model.hs
haskell
# language CPP # | VkPhysicalDeviceVulkanMemoryModelFeatures - Structure describing features supported by the memory model = Members This structure describes the following features: = Description If the structure is included in the @pNext@ chain of the structure passed to it is filled in to indicate whethe...
No documentation found for Chapter " Promoted_From_VK_KHR_vulkan_memory_model " module Vulkan.Core12.Promoted_From_VK_KHR_vulkan_memory_model ( PhysicalDeviceVulkanMemoryModelFeatures(..) , StructureType(..) ...
167df70f5a727c0593756ca45b9eaac33c2411498ab4ba5ead65513d7e81ffbe
helpshift/mongrove
query_test.clj
(ns mongrove.query-test (:require [clojure.string :as cs] [clojure.test :refer :all] [mongrove.core :as mc])) (def shared-connection (atom nil)) (defn- init-connection-fixture "This will run once before tests are executed and will initialise a connection into the shared-connection atom" [tests] ...
null
https://raw.githubusercontent.com/helpshift/mongrove/85f4723d7a11a17bb1fcd344250b6b371e790331/test/mongrove/query_test.clj
clojure
:only takes precedence :only takes precedence with equal values is not predictable in MongoDB
(ns mongrove.query-test (:require [clojure.string :as cs] [clojure.test :refer :all] [mongrove.core :as mc])) (def shared-connection (atom nil)) (defn- init-connection-fixture "This will run once before tests are executed and will initialise a connection into the shared-connection atom" [tests] ...
4e87047757255d999b3bfc1675f831a26544c82080f47ac4c09fc34ce95a76a0
naveensundarg/prover
progc.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-lisp -*- ;;; File: progc.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Software d...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/progc.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-lisp -*- File: progc.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific l...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2011 . ...
afc3ecdcb04284df1baa8d354eb23276cc0049246f05a9750125121b8d4b998e
coalton-lang/coalton
function-calls-benchmarks.lisp
(trivial-benchmark:define-benchmark-package #:coalton-benchmarks (:use #:cl #:coalton-impl) (:export #:run-benchmarks)) (in-package #:coalton-benchmarks) (defstruct function-entry (arity 0 :type fixnum :read-only t) (function nil :type function :read-only t) (curried nil :type function :read-only t)...
null
https://raw.githubusercontent.com/coalton-lang/coalton/b36c38226dcd2a6da3b3146125930eb179baa583/docs/design-docs/function-calls-benchmarks.lisp
lisp
NOTE: Since we are only calling these functions from already typechecked coalton, we can use the OPTIMIZE flags to remove type checks.
(trivial-benchmark:define-benchmark-package #:coalton-benchmarks (:use #:cl #:coalton-impl) (:export #:run-benchmarks)) (in-package #:coalton-benchmarks) (defstruct function-entry (arity 0 :type fixnum :read-only t) (function nil :type function :read-only t) (curried nil :type function :read-only t)...
81b7d5c64481289ded835f1457dba17e0a0e38f8709251a98ac5676290f88bed
pa-ba/compdata-param
Ditraversable.hs
# LANGUAGE TemplateHaskell # -------------------------------------------------------------------------------- -- | Module : Data . Comp . . Derive . Ditraversable Copyright : ( c ) 2010 - 2011 -- License : BSD3 Maintainer : < > -- Stability : experimental Portability : non - por...
null
https://raw.githubusercontent.com/pa-ba/compdata-param/5d6b0afa95a27fd3233f86e5efc6e6a6080f4236/src/Data/Comp/Param/Derive/Ditraversable.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : experimental ------------------------------------------------------------------------------ Note: the monadic versions are not defined applicatively, as this results in a considerable
# LANGUAGE TemplateHaskell # Module : Data . Comp . . Derive . Ditraversable Copyright : ( c ) 2010 - 2011 Maintainer : < > Portability : non - portable ( GHC Extensions ) Automatically derive instances of @Ditraversable@. module Data.Comp.Param.Derive.Ditraversable ( Ditrav...
84e831809a543f355db55ec486b2af6160ccb82daea4607afec8102c1674543f
samply/blaze
anomaly_test.clj
(ns blaze.anomaly-test (:require [blaze.anomaly :as ba :refer [if-ok when-ok]] [blaze.anomaly-spec] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest is testing]] [cognitect.anomalies :as anom] [juxt.iota :refer [given]]) (:import [java....
null
https://raw.githubusercontent.com/samply/blaze/6441a0a2f988b8784ed555c1d20f634ef2df7e4a/modules/anomaly/test/blaze/anomaly_test.clj
clojure
(ns blaze.anomaly-test (:require [blaze.anomaly :as ba :refer [if-ok when-ok]] [blaze.anomaly-spec] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest is testing]] [cognitect.anomalies :as anom] [juxt.iota :refer [given]]) (:import [java....
ed5d2f7b849fbe647c8ce65c2bf67d31ff72df3817c8c826b014a384d8416ba1
clojure-interop/google-cloud-clients
CloudTasksClient$ListTasksFixedSizeCollection.clj
(ns com.google.cloud.tasks.v2beta3.CloudTasksClient$ListTasksFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.tasks.v2beta3 CloudTasksClient$ListTasksFixedSizeCollection]))
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.tasks/src/com/google/cloud/tasks/v2beta3/CloudTasksClient%24ListTasksFixedSizeCollection.clj
clojure
(ns com.google.cloud.tasks.v2beta3.CloudTasksClient$ListTasksFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.tasks.v2beta3 CloudTasksClient$ListTasksFixedSizeCollection]))
fbd1557f1f9ca00b916b80f0625745cd53406e40e1fe5163b7bcca3172228f24
clojure-interop/google-cloud-clients
ProfileServiceClient$SearchProfilesPage.clj
(ns com.google.cloud.talent.v4beta1.ProfileServiceClient$SearchProfilesPage (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.talent.v4beta1 ProfileServiceClient$SearchProfilesPage])) (defn create-page-async "context - `com.google.api.gax.rpc.PageContext` future-response - `com.google...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.talent/src/com/google/cloud/talent/v4beta1/ProfileServiceClient%24SearchProfilesPage.clj
clojure
(ns com.google.cloud.talent.v4beta1.ProfileServiceClient$SearchProfilesPage (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.talent.v4beta1 ProfileServiceClient$SearchProfilesPage])) (defn create-page-async "context - `com.google.api.gax.rpc.PageContext` future-response - `com.google...
f69e79670a47578e66060b7fdcc55f7a2cae5d5a45920d896f4fc2fa6e661fc3
inria-parkas/sundialsml
arkode_bbd.ml
(***********************************************************************) (* *) (* OCaml interface to Sundials *) (* *) , , an...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/src/arkode/arkode_bbd.ml
ocaml
********************************************************************* OCaml interface to Sundials ...
, , and ( / ENS ) ( / ENS ) ( UPMC / ENS / Inria ) Copyright 2015 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed open Sundials include Arkode_impl include ArkodeBbdType...
7983f7240e46810e289863db0016de7834dcdb2b31be87725eda4695a36e510e
heraldry/heraldicon
arms.cljs
(ns spec.heraldicon.entity.arms (:require [cljs.spec.alpha :as s] [spec.heraldicon.entity] [spec.heraldicon.entity.arms.data])) (s/def :heraldicon.entity.arms/type #{:heraldicon.entity.type/arms}) (s/def :heraldicon.entity/arms (s/and :heraldicon/entity (s/keys :req-un...
null
https://raw.githubusercontent.com/heraldry/heraldicon/19c9d10485bbc48e98ddee30092a246cccc986d2/src/spec/heraldicon/entity/arms.cljs
clojure
(ns spec.heraldicon.entity.arms (:require [cljs.spec.alpha :as s] [spec.heraldicon.entity] [spec.heraldicon.entity.arms.data])) (s/def :heraldicon.entity.arms/type #{:heraldicon.entity.type/arms}) (s/def :heraldicon.entity/arms (s/and :heraldicon/entity (s/keys :req-un...
54809d4a0aa5fd47d379fc1b73e46bd6a5162bc7cc4bff7b63b73e24be49be09
MercuryTechnologies/slack-web
BlocksSpec.hs
module Web.Slack.Experimental.BlocksSpec where import Control.Monad.Writer.Strict import Data.StringVariants (mkNonEmptyText) import JSONGolden (oneGoldenTestEncode) import TestImport import Web.Slack.Experimental.Blocks import Web.Slack.Experimental.Blocks.Types -- FIXME(jadel, violet): These builder things should p...
null
https://raw.githubusercontent.com/MercuryTechnologies/slack-web/1ce60453e3ceb36b98bbb2937f70dfbfcc5f8928/tests/Web/Slack/Experimental/BlocksSpec.hs
haskell
FIXME(jadel, violet): These builder things should probably be put into a module to make them available, but that's later work | This is used so that we can paste the output of these tests directly into the block kit builder: <-kit-builder>
module Web.Slack.Experimental.BlocksSpec where import Control.Monad.Writer.Strict import Data.StringVariants (mkNonEmptyText) import JSONGolden (oneGoldenTestEncode) import TestImport import Web.Slack.Experimental.Blocks import Web.Slack.Experimental.Blocks.Types headerBlock :: SlackText -> WriterT [SlackBlock] Iden...
e0a71459c8f791678f71346fcef601a6a77f1d4fcb06080604fba42ebe3b5276
Chris00/ocaml-rope
bm_ropes.ml
File : bm_ropes.ml Copyright ( C ) 2007 < > WWW : / This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 or later as published by the Free Software Foundation , with the special except...
null
https://raw.githubusercontent.com/Chris00/ocaml-rope/7d457b2e69a16aede8cfbae43be29f208d007694/bench/bm_ropes.ml
ocaml
* if [size land prepend_size = 0] prepend chars instead of appending. Set to [max_int]: always append (never prepend). Set to [0]: always preprend. @ [ [|max_int / 2 |] } ---------------------------------------------------------------------- just for laughs * [make_rope size] returns a rope of length...
File : bm_ropes.ml Copyright ( C ) 2007 < > WWW : / This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 or later as published by the Free Software Foundation , with the special except...
f13055a71be5ec89b507cdb3a54c43ee89a360923ec726d21615cf662b68d493
yi-editor/yi
Eval.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} #ifdef HINT # LANGUAGE FlexibleContexts # #endif {-# OPTIONS_HADDO...
null
https://raw.githubusercontent.com/yi-editor/yi/69953f00d48cc1b811310ce48c24269816e0f14b/yi-core/src/Yi/Eval.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # OPTIONS_HADDOCK show-extensions # | License : GPL-2 Maintainer : Stability : experimental Portability : portable Evaluator for actions ('Action', 'YiAction'). Uses a @GHCi@ sessio...
# LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # #ifdef HINT # LANGUAGE FlexibleContexts # #endif Module : . Eval module Yi.Eval ( execEditorAction, getAllNamesInScope, describeNamedAction, Evaluator(.....
2817e70a3113b05148b38dd2dfb784324584caf49abe8aa3c256ecfc2f1704fa
ghc/packages-Cabal
legacy-autoconfigure.test.hs
import Test.Cabal.Prelude main = cabalTest $ do cabal' "v1-exec" ["echo", "find_me_in_output"] >>= assertOutputContains "find_me_in_output"
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Exec/legacy-autoconfigure.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest $ do cabal' "v1-exec" ["echo", "find_me_in_output"] >>= assertOutputContains "find_me_in_output"
c5cafc43e6bcb435d678f8b357da1a6baed8a40932d1c711cfb50809ea02710e
blajzer/dib
Stage.hs
Copyright ( c ) 2010 - 2018 -- See LICENSE for license information. -- | Module exposing the 'Stage' type and related type wrappers, along with a -- convenience 'emptyStage'. module Dib.Stage( Stage(Stage), InputTransformer, DepScanner, StageFunc, emptyStage ) where import Dib.Types | A stage that ...
null
https://raw.githubusercontent.com/blajzer/dib/750253c972668bb0d849239f94b96050bae74f2a/src/Dib/Stage.hs
haskell
See LICENSE for license information. | Module exposing the 'Stage' type and related type wrappers, along with a convenience 'emptyStage'.
Copyright ( c ) 2010 - 2018 module Dib.Stage( Stage(Stage), InputTransformer, DepScanner, StageFunc, emptyStage ) where import Dib.Types | A stage that does nothing and just passes the ' SrcTransform 's through . emptyStage :: Stage emptyStage = Stage "empty" id return [] (return.Right)
e3674a9bb2de7c88a774592a3f60886e83f36d6a24b41965d85ac2e796844b42
DATX02-17-26/DATX02-17-26
IfElseEmpty.hs
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
null
https://raw.githubusercontent.com/DATX02-17-26/DATX02-17-26/f5eeec0b2034d5b1adcc66071f8cb5cd1b089acb/libsrc/Norm/IfElseEmpty.hs
haskell
| Normalizers for simplifying if + else statements where some branch is empty. * Normalizers ------------------------------------------------------------------------------ Exported Rules: ------------------------------------------------------------------------------ | Simplifies an if else where the if branch is e...
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
fb54c5f312c8a887457525a933594414e889119dcbef8f929014e31a958cbe84
zeniuseducation/poly-euler
p249.clj
(ns alfa.special.p249 (:require [clojure.set :refer [union difference intersection subset?]] [clojure.core.reducers :as r] [clojure.string :refer [split-lines]] [alfa.common :refer :all] [clojure.string :as cs])) (def primes (sieve 545)) (def checki (fn [^long n] (cond (== n 0) 1 ...
null
https://raw.githubusercontent.com/zeniuseducation/poly-euler/734fdcf1ddd096a8730600b684bf7398d071d499/Alfa/src/alfa/special/p249.clj
clojure
(ns alfa.special.p249 (:require [clojure.set :refer [union difference intersection subset?]] [clojure.core.reducers :as r] [clojure.string :refer [split-lines]] [alfa.common :refer :all] [clojure.string :as cs])) (def primes (sieve 545)) (def checki (fn [^long n] (cond (== n 0) 1 ...
e5f0047dcfb6fddb12ae68a2efa9e6f046beb142bed2dabf5a9e27fb6f628c4a
mpickering/apply-refact
Extensions16.hs
# LANGUAGE GeneralizedNewtypeDeriving , DeriveDataTypeable # record = 1
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Extensions16.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving , DeriveDataTypeable # record = 1
864183b4992b7523abe3371b653b3a441aa9c0a1f8dc15f6a87a4eb46cfae417
dongcarl/guix
assembly.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 Jan Nieuwenhuizen < > Copyright © 2013 , 2015 < > Copyright © 2013 < > Copyright © 2016 , 2020 , 2021 < > Copyright © 2017–2021 < > Copyright © 2019 Iteriteka < > Copyright © 2019 < > Copyright © 2020 < > C...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/assembly.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 Jan Nieuwenhuizen < > Copyright © 2013 , 2015 < > Copyright © 2013 < > Copyright © 2016 , 2020 , 2021 < > Copyright © 2017–2021 < > Copyright © 2019 Iteriteka < > Copyright © 2019 < > Copyright © 2020 < > Copyright © 2020 < > Copyright © 2020 < > und...
115dd8a5c6ee85db8d9050656d6ba451ef29b6b385d5d03ae501598a379957b3
input-output-hk/cardano-ledger
NoThunks.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} module Test.Cardano.Ledger.NoThunks ( test, ) where import Cardano.Ledger.Core import Cardano.Ledger.Pretty (PrettyA) import Control.State.Transition.Extended (STS) import Data.Defau...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/551eaabfdb07ad1c1523358177578b4103ce7f52/libs/cardano-ledger-test/src/Test/Cardano/Ledger/NoThunks.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # # LANGUAGE RankNTypes # main :: IO () main = defaultMain test
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Test.Cardano.Ledger.NoThunks ( test, ) where import Cardano.Ledger.Core import Cardano.Ledger.Pretty (PrettyA) import Control.State.Transition.Extended (STS) import Data.Default.Class (def) import Test.Cardano.Ledger.Generic.GenState (GenSize) import Test....
c8bb32c665e0c9392553cd63854b6bae0cd349843bfce38f585a14f21d8544f9
holyjak/fulcro-intro-wshop
server.clj
(ns fulcro-todomvc.server (:require [clojure.core.async :as async] [com.fulcrologic.fulcro.algorithms.do-not-use :as util] [com.fulcrologic.fulcro.server.api-middleware :as fmw :refer [not-found-handler wrap-api]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p] [immutant.we...
null
https://raw.githubusercontent.com/holyjak/fulcro-intro-wshop/b1cda340358ec40ec95e362d8ab3722236dea1d7/src/fulcro_todomvc/server.clj
clojure
How to go from :list/id to that list's details normally you'd pull the list from the db, and satisfy the listed outputs. For demo, we just always return the same list details. how to go from :item/id to item details. define a list with our resolvers app resolvers: mutations: setup for a given connect system if...
(ns fulcro-todomvc.server (:require [clojure.core.async :as async] [com.fulcrologic.fulcro.algorithms.do-not-use :as util] [com.fulcrologic.fulcro.server.api-middleware :as fmw :refer [not-found-handler wrap-api]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p] [immutant.we...
f561e4a3c724c4771b46e649743f9ad32efeff565a2bee42f3167a4f89c38acf
charlieg/Sparser
size-of-edge-vectors.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1991,1992,1993,1994 -- all rights reserved ;;; ;;; File: "size of edge vectors" Module : " tools;measurements : " Version : 1.0 December 1991 ;; initiated 12/13/91 (in-package :sparser) ;;;------------ ;;; data ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/tools/timing/size-of-edge-vectors.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "size of edge vectors" initiated 12/13/91 ------------ data array ----------- -------- driver -------- called from toplevel after a parse has finished. Scans the chart from beginning to end, counting the number of edges that start/end at each ...
copyright ( c ) 1991,1992,1993,1994 -- all rights reserved Module : " tools;measurements : " Version : 1.0 December 1991 (in-package :sparser) (defparameter *maximum-permitted-count-in-an-edge-vector* 10 "If we find an edge vector with more than this number of edges we'll blow out the m...
4802718c49560883f54e6aad938383ed404eb218579b70b9c55c7c856d8499e1
romstad/clj-chess
ecn.clj
(ns clj-chess.ecn "Functions for reading chess games in ECN (extensible chess notation) format." (:require [clojure.edn :as edn] [clojure.java.io :as io]) (:import (java.io PushbackReader))) (defn reader "Convenience function for creating a java PushbackReader for the given file name. Why isn't...
null
https://raw.githubusercontent.com/romstad/clj-chess/1f7d4d0217c7299d49386a1e5dca404a37441728/src/clojure/clj_chess/ecn.clj
clojure
(ns clj-chess.ecn "Functions for reading chess games in ECN (extensible chess notation) format." (:require [clojure.edn :as edn] [clojure.java.io :as io]) (:import (java.io PushbackReader))) (defn reader "Convenience function for creating a java PushbackReader for the given file name. Why isn't...
bb7fa78605969b056774607db7134813895921af3ac9ec9ec1fc840bd342b048
footprintanalytics/footprint-web
revision.clj
(ns metabase.api.revision (:require [compojure.core :refer [GET POST]] [metabase.api.card :as api.card] [metabase.api.common :as api] [metabase.models.card :refer [Card]] [metabase.models.dashboard :refer [Dashboard]] [metabase.models.revision :as revision :...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/api/revision.clj
clojure
(ns metabase.api.revision (:require [compojure.core :refer [GET POST]] [metabase.api.card :as api.card] [metabase.api.common :as api] [metabase.models.card :refer [Card]] [metabase.models.dashboard :refer [Dashboard]] [metabase.models.revision :as revision :...
2ba9adb07242cd5f2c7028dfa4eac1f46007a29a457b57b906b512c05e1c056c
geneweb/geneweb
plugin_xhtml.ml
open Geneweb open Config let ns = "xhtml" let () = Gwd_lib.GwdPlugin.register_se ~ns @@ fun _assets conf _base -> if Util.p_getenv conf.env "xhtml" = Some "on" then let buffer_status = ref None in let buffer_headers = ref [] in let buffer_body = Buffer.create 1023 in let previous_status = conf.out...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/plugins/xhtml/plugin_xhtml.ml
ocaml
open Geneweb open Config let ns = "xhtml" let () = Gwd_lib.GwdPlugin.register_se ~ns @@ fun _assets conf _base -> if Util.p_getenv conf.env "xhtml" = Some "on" then let buffer_status = ref None in let buffer_headers = ref [] in let buffer_body = Buffer.create 1023 in let previous_status = conf.out...
44bd23284ee901b25bec6cddf327f910994a357794be88d2e93746f519694737
samoht/camloo
instruct.scm
;; Le module (module __caml_instruct (library camloo-runtime) (import __caml_const __caml_globals __caml_prim) (export Nolabel_4@instruct)) L'initialisation du module (init_camloo!) ;; Les variables globales ;; Les expressions globales (define Nolabel_4@instruct -1)
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/camloo/Llib.bootstrap/instruct.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_instruct (library camloo-runtime) (import __caml_const __caml_globals __caml_prim) (export Nolabel_4@instruct)) L'initialisation du module (init_camloo!) (define Nolabel_4@instruct -1)
26b7ce2572000a2c69a0b4a5a8fa41c620d112d23237adc28aa0ec56450c4617
Shirakumo/kandria
prompt.lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass prompt-label (alloy:label*) ()) (presentations:define-realization (ui prompt-label) ((:label simple:text) (alloy:margins) alloy:text :valign :middle :halign :middle :font "PromptFont" :size (alloy:un 30) :pattern colors:white)) (presentatio...
null
https://raw.githubusercontent.com/Shirakumo/kandria/94fd727bd93e302c6a28fae33815043d486d794b/ui/prompt.lisp
lisp
Project ray from inside bounds to border and compute intersection.
(in-package #:org.shirakumo.fraf.kandria) (defclass prompt-label (alloy:label*) ()) (presentations:define-realization (ui prompt-label) ((:label simple:text) (alloy:margins) alloy:text :valign :middle :halign :middle :font "PromptFont" :size (alloy:un 30) :pattern colors:white)) (presentatio...
85d83af84cd5b8f4d379616afd33bd0107c37eb02014e603867645bbf64639e0
viesti/table-spec
fixture.clj
(ns table-spec.fixture (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.shell :refer [sh]] [clojure.java.jdbc :as jdbc])) (defn sh! [& args] (let [{:keys [exit out]} (apply sh args)] (when-not (zero? exit) (throw (Exception. (str "'" (str...
null
https://raw.githubusercontent.com/viesti/table-spec/723d86e96950c84f2970052ee3a35e2c5ef58530/test/table_spec/fixture.clj
clojure
(ns table-spec.fixture (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.shell :refer [sh]] [clojure.java.jdbc :as jdbc])) (defn sh! [& args] (let [{:keys [exit out]} (apply sh args)] (when-not (zero? exit) (throw (Exception. (str "'" (str...
d57645da7bb3fa2198149d5750b510f1deff00e0cf778a89b7d025a341c4c969
openweb-nl/open-bank-mark
load.clj
(ns nl.openweb.test.load (:require [nrepl.core :as repl]) (:import (java.io IOException))) (def conn (atom nil)) (def client (atom nil)) (defn close-conn [] (if-let [c @conn] (try (.close c) (catch IOException e (println e "Failed to close " @conn))))) (defn reconnect [] (close-co...
null
https://raw.githubusercontent.com/openweb-nl/open-bank-mark/786c940dafb39c36fdbcae736fe893af9c00ef17/test/src/nl/openweb/test/load.clj
clojure
(ns nl.openweb.test.load (:require [nrepl.core :as repl]) (:import (java.io IOException))) (def conn (atom nil)) (def client (atom nil)) (defn close-conn [] (if-let [c @conn] (try (.close c) (catch IOException e (println e "Failed to close " @conn))))) (defn reconnect [] (close-co...
9b92c5d2289a2bbf863fe1a96cbd4e3a66449b8d6078042ec72da765e6705ed7
tezos/tezos-mirror
eth_cli.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2023 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/aaa7c826ef23269d5d158939605a689453a4b357/tezt/lib_tezos/eth_cli.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2023 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
43fe836cdbdebd466506a7d4709e55deceeba16ccc3bb01b5962161389a975cb
faylang/fay
Typecheck.hs
| Type - check using GHC . module Fay.Compiler.Typecheck where import Fay.Compiler.Prelude import Fay.Compiler.Defaults import Fay.Compiler.Misc import Fay.Config import Fay.Types import qualified GHC.Paths as GHCPaths import System.Director...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/src/Fay/Compiler/Typecheck.hs
haskell
Don't let hse-cpp remove //-style comments.
| Type - check using GHC . module Fay.Compiler.Typecheck where import Fay.Compiler.Prelude import Fay.Compiler.Defaults import Fay.Compiler.Misc import Fay.Config import Fay.Types import qualified GHC.Paths as GHCPaths import System.Director...
15292e5353c7758e39087286838d407023d7c911518863d279b4768648af9f97
lspitzner/brittany
Test331.hs
go l [] = Right l go l ((IRType, _a) : eqr) = go l eqr go l ((_, IRType) : eqr) = go l eqr go _ ((IRTypeError ps t1 t2, _) : _) = Left $ makeError ps t1 t2 go _ ((_, IRTypeError ps t1 t2) : _) = Left $ makeError ps t1 t2
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test331.hs
haskell
go l [] = Right l go l ((IRType, _a) : eqr) = go l eqr go l ((_, IRType) : eqr) = go l eqr go _ ((IRTypeError ps t1 t2, _) : _) = Left $ makeError ps t1 t2 go _ ((_, IRTypeError ps t1 t2) : _) = Left $ makeError ps t1 t2
ca7738a6d3e9765c0fb820e95d53c98751c52f67f015d49b1e5c7d43f313dd0b
Clojure2D/clojure2d-examples
noisewalk_I_6.clj
(ns examples.NOC.introduction.noisewalk-I-6 (:require [clojure2d.core :refer :all] [fastmath.core :as m] [fastmath.random :as r] [fastmath.vector :as v]) (:import [fastmath.vector Vec2])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (def step (v/vec2 ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/NOC/introduction/noisewalk_I_6.clj
clojure
(ns examples.NOC.introduction.noisewalk-I-6 (:require [clojure2d.core :refer :all] [fastmath.core :as m] [fastmath.random :as r] [fastmath.vector :as v]) (:import [fastmath.vector Vec2])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (def step (v/vec2 ...
7d988806089a9146a362fd65a97c99f6994e3c6f17db7dc2ef2b4c02cfa38de9
ollef/sixty
Clauses.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedRecordDot # # LANGUAGE ViewPatterns # module Elaboration.Clauses where import Core.Binding (Binding) import qualified Core.Binding as Binding import Core.Bindings (Bindings) import qualified Core.Bindings as Bindings import qualified ...
null
https://raw.githubusercontent.com/ollef/sixty/ad1b9dea082841e09e9fb7e8754819c43511824e/src/Elaboration/Clauses.hs
haskell
# SOURCE # -----------------------------------------------------------------------------
# LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedRecordDot # # LANGUAGE ViewPatterns # module Elaboration.Clauses where import Core.Binding (Binding) import qualified Core.Binding as Binding import Core.Bindings (Bindings) import qualified Core.Bindings as Bindings import qualified ...
eae28c1ba7127b497641003901d15ca52944c60355b0999176935a9843aa64e1
bytekid/mkbtt
oldacrpo.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/termination/orderings/oldacrpo.ml
ocaml
** OPENS ******************************************************************* ** MODULES ***************************************************************** ** INCLUDES *************************************************************** ** FUNCTIONS ************************************************************** ** TYPES *****...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
88f7662ac0f849eff0acc01c801a25fa7f6ab32063f8605072b5ee457589b720
chenyukang/eopl
cps-in-lang.scm
(module cps-in-lang (lib "eopl.ss" "eopl") input language for the CPS converter . (require "drscheme-init.scm") (provide (all-defined)) ;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip) (comme...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter6/cps-lang/cps-in-lang.scm
scheme
grammatical specification ;;;;;;;;;;;;;;;; sllgen boilerplate ;;;;;;;;;;;;;;;;
(module cps-in-lang (lib "eopl.ss" "eopl") input language for the CPS converter . (require "drscheme-init.scm") (provide (all-defined)) (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier ...
4f485dea1defa2666a3e0e0c9f9953928b91f4768b0a31c38c27ae62797f836c
ocaml-multicore/ocaml-tsan
topeval.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/toplevel/byte/topeval.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Misc open Parsetree open Types open Typedtree open Outcometree open Topcommon module St...
7e92c1077aa5861f5859def389b0b80ca90257b5bfe7cb74905b32b0f6d29818
erlang/otp
erl_syntax_lib.erl
%% ===================================================================== Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may %% not use this file except in compliance with the License. You may obtain %% a copy of the License at <-2.0> %% %% Unless required by applicable law or agreed to in w...
null
https://raw.githubusercontent.com/erlang/otp/31225cfcfd9c0dc8a22183e3d0a30ba5c1ed93e1/lib/syntax_tools/src/erl_syntax_lib.erl
erlang
===================================================================== 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....
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , General Public License ( the " LGPL " ) as published by the Free Software Foundation ; either version 2.1 , or ( at your option ) any later version . either the Ap...
cccea4d2497ab6bc2fae3c3ee5f48c63a2f23dedec029e836437673b17ef75f0
exoscale/tools.project
git.clj
(ns exoscale.tools.project.api.git (:require [clojure.tools.deps.alpha.util.dir :as td] [exoscale.tools.project.api.version :as v] [exoscale.tools.project.io :as pio] [clojure.string :as str])) (defn commit-version [opts] (pio/shell ["git add VERSION" "git commit...
null
https://raw.githubusercontent.com/exoscale/tools.project/4b97ccbd4a8460cdd7644cc3574a7ff6a21a5b30/src/exoscale/tools/project/api/git.clj
clojure
(ns exoscale.tools.project.api.git (:require [clojure.tools.deps.alpha.util.dir :as td] [exoscale.tools.project.api.version :as v] [exoscale.tools.project.io :as pio] [clojure.string :as str])) (defn commit-version [opts] (pio/shell ["git add VERSION" "git commit...
334a4f23d09de3e71dc78b83ea6c482e8ce38054a65791dff38bc51903e71bbe
DomainDrivenArchitecture/dda-k8s-crate
networking.clj
Licensed to the Apache Software Foundation ( ASF ) under one ; or more contributor license agreements. See the NOTICE file ; distributed with this work for additional information ; regarding copyright ownership. The ASF licenses this file to you under the Apache License , Version 2.0 ( the ; "License"); you may not...
null
https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-k8s-crate/eaeb4d965a63692973d3c1d98759fbdf756596b2/main/src/dda/pallet/dda_k8s_crate/infra/networking.clj
clojure
or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file "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 b...
Licensed to the Apache Software Foundation ( ASF ) under one to you under the Apache License , Version 2.0 ( the distributed under the License is distributed on an " AS IS " BASIS , (ns dda.pallet.dda-k8s-crate.infra.networking (:require [schema.core :as s] [pallet.actions :as actions] [dda.provision :...
4041dc6fdb51ac1cbd7253b84a6c723ac83f156cd89a10f61d0c384391889a05
digikar99/numericals
primitives.lisp
(in-package :dense-numericals.impl) ;; (numericals.common:compiler-in-package numericals.common:*compiler-package*) (declaim (inline fast-empty)) (defun fast-empty (shape &key (type default-element-type) (layout *array-layout*)) (declare (type (member :row-major :column-major) layout) ...
null
https://raw.githubusercontent.com/digikar99/numericals/69bfa08401c512772069d74ac30325d49f19b65c/dense-numericals-src/primitives.lisp
lisp
(numericals.common:compiler-in-package numericals.common:*compiler-package*) Allocate, but do not fill
(in-package :dense-numericals.impl) (declaim (inline fast-empty)) (defun fast-empty (shape &key (type default-element-type) (layout *array-layout*)) (declare (type (member :row-major :column-major) layout) (optimize speed)) (when (listp (first shape)) (assert (null (rest s...
0bb2b19862e3e6112e9a3de075b9a2bfdb3031966262f64023547639485ade4b
phadej/vec
Optics.hs
{-# LANGUAGE CPP #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Data.RAList.NonEmpty.Optics ( -- * Indexing ...
null
https://raw.githubusercontent.com/phadej/vec/a895ab79e054987938295d5a149758eb79d85683/ral-optics/src/Data/RAList/NonEmpty/Optics.hs
haskell
# LANGUAGE CPP # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # * Indexing ----------------------------------------------------------------------------- Indexing ----------------------------------------------------------------------------- -------------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Data.RAList.NonEmpty.Optics ( ix, ) where import Prelude (Int) import qualified Optics.Core as L import Data.RAList.NonEmpty import Data.RAList.NonEmpty.Opti...
f22e2fb02336d9be1adacd72041c681a7ae3b6bc0ea4d378fe12cbaf8e182e4c
ingolia-lab/RiboSeq
QuantTable.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Applicative import Control.Monad.Reader import qualified Data.ByteString.Char8 as BS import Data.List import Data.Maybe import qualified Data.Set as S import Numeric import System.Console.GetOpt import System.Environment import System.FilePat...
null
https://raw.githubusercontent.com/ingolia-lab/RiboSeq/a14390cd95528910a258434c7b84c787f5e1d119/src/QuantTable.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Applicative import Control.Monad.Reader import qualified Data.ByteString.Char8 as BS import Data.List import Data.Maybe import qualified Data.Set as S import Numeric import System.Console.GetOpt import System.Environment import System.FilePath import System.IO import qualifie...
b35b0f82dfc5ffacf979f8055065e6402db8259902d7d4e54072a2a72d1562b8
status-im/status-lib-archived
defaults.cljs
(ns status-im.protocol.defaults (:require [cljs-time.core :as t])) (def default-content-type "text/plain") (def max-send-attempts 5) (def check-delivery-interval 500) (def status-message-ttl (* 60 10)) (def ack-wait-timeout (t/minutes 10)) (def sending-retry-timeout (t/seconds 10)) (def send-online-period (* 60 10...
null
https://raw.githubusercontent.com/status-im/status-lib-archived/0b07f54a6b8dc17490a74797fa04dae75e5668ca/src/cljs/status_im/protocol/defaults.cljs
clojure
(ns status-im.protocol.defaults (:require [cljs-time.core :as t])) (def default-content-type "text/plain") (def max-send-attempts 5) (def check-delivery-interval 500) (def status-message-ttl (* 60 10)) (def ack-wait-timeout (t/minutes 10)) (def sending-retry-timeout (t/seconds 10)) (def send-online-period (* 60 10...
23c065e10f43bc24707e044ab7f1570866fe2804f372bb5f498b555af11c38ed
ekmett/category-extras
Futu.hs
{-# OPTIONS_GHC -fglasgow-exts #-} ----------------------------------------------------------------------------- -- | Module : Control . Morphism . Futu Copyright : ( C ) 2008 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experimental -- Portability...
null
https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Morphism/Futu.hs
haskell
# OPTIONS_GHC -fglasgow-exts # --------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable (rank-2 polymorphism) Traditional operators, shown here to show how to roll your own --------------...
Module : Control . Morphism . Futu Copyright : ( C ) 2008 Maintainer : < > module Control.Morphism.Futu ( futu, g_futu , postpro_futu, g_postpro_futu , distFutu ) where import Control.Functor.Algebra import Control.Functor.Extras import Control.Functor.Fix import Control.Monad.Free imp...
10bc44dd3adcb538f65d645a3aa943e6646f3e9ba7ee5a90dbed19c4219523fb
DaMSL/K3
Interactive.hs
# LANGUAGE LambdaCase # module Language.K3.Driver.Interactive where import Control.Monad import System.Console.Readline import System.Exit import Language.K3.Interpreter import Language.K3.Parser import Language.K3.Pretty -- | Run an interactive prompt, reading evaulating and printing at each step. runInteractive ...
null
https://raw.githubusercontent.com/DaMSL/K3/51749157844e76ae79dba619116fc5ad9d685643/src/Language/K3/Driver/Interactive.hs
haskell
| Run an interactive prompt, reading evaulating and printing at each step. | A single round of parsing, interpretation and pretty-printing.
# LANGUAGE LambdaCase # module Language.K3.Driver.Interactive where import Control.Monad import System.Console.Readline import System.Exit import Language.K3.Interpreter import Language.K3.Parser import Language.K3.Pretty runInteractive :: IO () runInteractive = readline ">>> " >>= \case Nothing -> exitSuccess...
db5da067d89979f4adb4b890563ec09cd6532cc173b5f62193e86f39b3227131
boomerang-lang/boomerang
tree_alignment.ml
open Stdlib (** To be an ordered metric space, we require the space to have a distance * metric (a function distance : X -> X -> double) and a total ordering (a function * compare : X -> X -> int) we do not require any meaningful interaction * between the metric and the ordering **) module TreeAlignmentOf(D : Da...
null
https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/optician/tree_alignment.ml
ocaml
* To be an ordered metric space, we require the space to have a distance * metric (a function distance : X -> X -> double) and a total ordering (a function * compare : X -> X -> int) we do not require any meaningful interaction * between the metric and the ordering *
open Stdlib module TreeAlignmentOf(D : Data) = struct type alignment_node = { perm : Permutation.t ; pleft : int list ; pright : int list ; } [@@deriving ord, show, hash] let create_alignment_node ~perm:(perm:Permutation.t) ~pleft:(pleft:int list) ~pri...
68af2feb212f59cbb8250146dd2a07124453295a55f87f8c5829cb2905c6940b
mhayashi1120/Gauche-net-twitter
sample.test-settings.scm
;; -*- mode: lisp -*- 1 . copy this " sample.test-settings.scm " to " .secret / test - settings.scm " 2 . create 2 twitter test account 3 . fill the following sexp . ` oauth - token ` fields are generated by ` twitauth ` . ( (user . "***YOUR USERNAME***") (password . "***YOUR PASSWORD***") (consumer-key . "*...
null
https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/b9f4be3ca8459fc662f9c79481411aac03b51133/sample.test-settings.scm
scheme
-*- mode: lisp -*- temporary settings
1 . copy this " sample.test-settings.scm " to " .secret / test - settings.scm " 2 . create 2 twitter test account 3 . fill the following sexp . ` oauth - token ` fields are generated by ` twitauth ` . ( (user . "***YOUR USERNAME***") (password . "***YOUR PASSWORD***") (consumer-key . "***YOUR CONSUMER KEY***...
1c415e76e1ecc67978b810e732c94c60f35fe0234aad6f5e55bf836f2ffeeeab
coq-community/coqffi
mod.ml
open Cmi_format open Entry open Error open Types type t = { mod_namespace : string list; mod_name : string; mod_intro : intro list; mod_functions : function_entry list; mod_primitives : primitive_entry list; mod_lwt : lwt_entry list; mod_exceptions : exception_entry list; mod_loc : Location.t; } and i...
null
https://raw.githubusercontent.com/coq-community/coqffi/2489d4e5b07f7e42eb89800531a7da57edb66b6b/src/mod.ml
ocaml
We have constructed the list backward, so we need to reverse it before searching for mutually recursive type, so that we do not need to perform a complex analysis on types’ dependencies to decide their order of declaration. always call with [rev_namesace], which is...
open Cmi_format open Entry open Error open Types type t = { mod_namespace : string list; mod_name : string; mod_intro : intro list; mod_functions : function_entry list; mod_primitives : primitive_entry list; mod_lwt : lwt_entry list; mod_exceptions : exception_entry list; mod_loc : Location.t; } and i...
5bc6a087412ad941bcab307ee839002b50d4fb7dedcbb3bc16544a59359dd279
katcipis/sicp
stream.rkt
#lang racket (require "cons.rkt") ;kstream instead of stream because racket already has a stream ;a stream is basically lazy evaluation done manually ;when evaluated the tail of stream should produce another stream ;which is the next value + a promisse to calculate the rest (define (kstream head tail) (kons head t...
null
https://raw.githubusercontent.com/katcipis/sicp/d365de58e106d54f83d0ca236ea5ea666253da89/stream/stream.rkt
racket
kstream instead of stream because racket already has a stream a stream is basically lazy evaluation done manually when evaluated the tail of stream should produce another stream which is the next value + a promisse to calculate the rest
#lang racket (require "cons.rkt") (define (kstream head tail) (kons head tail)) (define (kstream-head s) (kons-head s)) (define (kstream-tail s) ((kons-tail s))) (define (kstream-nth s i) (if (= i 0) (kstream-head s) (kstream-nth (kstream-tail s) (- i 1)))) (define (kstream-take s n) (con...
878d27e9ba202c4fe4677282b509c5689ff8ae48b978a542ed3182a748835a4c
fpco/cache-s3
Remote.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE NoImplicitPrelude # -- | -- Module : Network.AWS.S3.Cache.Remote Copyright : ( c ) FP Complete 2017 -- License : BS...
null
https://raw.githubusercontent.com/fpco/cache-s3/2d68e6a5aa1c60d3785420adff24f028ac82ae15/src/Network/AWS/S3/Cache/Remote.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Network.AWS.S3.Cache.Remote License : BSD3 Stability : experimental Portability : non-portable | Returns the time when the cache object was created Returns create time date if new cache should be uploaded. ^ Temporary file where cache has been written to ^ ...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) FP Complete 2017 Maintainer : < > module Network.AWS.S3.Cache.Remote where import Control.Applicative import Cont...
d6fc155e26733e3c9680cb4551018d0aa9fe15cd238a47e5b430790aa7a74476
timbertson/passe
tuple.ml
let snd (_, x) = x let fst (x, _) = x
null
https://raw.githubusercontent.com/timbertson/passe/467a79ea0cd7b08a97b52be3bd1307a3bdf55799/src/common/tuple.ml
ocaml
let snd (_, x) = x let fst (x, _) = x
69e5846a003e31a15191412bac8aea66a556048cbb0288a7759a2fbdb4beb68f
janestreet/core
option.mli
* This module extends { { ! Base . Option}[Base . Option ] } with bin_io , quickcheck , and support for ppx_optional . for ppx_optional. *) type 'a t = 'a Base.Option.t [@@deriving bin_io, typerep] * @inline include module type of struct include Base.Option end with type 'a t := 'a option include Compara...
null
https://raw.githubusercontent.com/janestreet/core/f382131ccdcb4a8cd21ebf9a49fa42dcf8183de6/core/src/option.mli
ocaml
* This module extends { { ! Base . Option}[Base . Option ] } with bin_io , quickcheck , and support for ppx_optional . for ppx_optional. *) type 'a t = 'a Base.Option.t [@@deriving bin_io, typerep] * @inline include module type of struct include Base.Option end with type 'a t := 'a option include Compara...
93567d001230d3798318358a599be9716835816babc709f9381b59843489d493
snoyberg/mono-traversable
URef.hs
# LANGUAGE TypeFamilies # | Use 1 - length mutable unboxed vectors for mutable references . -- Motivated by : < -is-my-little-stref-int-require-allocating-gigabytes > and ArrayRef . module Data.Mutable.URef ( -- * Types URef , IOURef -- * Functions , asURef , MutableRef (..) ) where ...
null
https://raw.githubusercontent.com/snoyberg/mono-traversable/7f763974fd312c75b74374bed889a0ee07b21428/mutable-containers/src/Data/Mutable/URef.hs
haskell
* Types * Functions | An unboxed vector reference, supporting any monad. | | An unboxed IO vector reference.
# LANGUAGE TypeFamilies # | Use 1 - length mutable unboxed vectors for mutable references . Motivated by : < -is-my-little-stref-int-require-allocating-gigabytes > and ArrayRef . module Data.Mutable.URef URef , IOURef , asURef , MutableRef (..) ) where import Control.Monad ...
da9bcb45000cc6f1fb70980eb6ca0f25a3ea32d7e9395222245dd0512be742a9
bennn/dissertation
sequencer.rkt
#lang typed/racket/base #:transient (require require-typed-check "typed-data.rkt") (require/typed/check "array-struct.rkt" [build-array (-> Indexes (-> Indexes Flonum) Array)]) (require/typed/check "array-transform.rkt" [array-append* ((Listof Array) -> Array)]) (require/typed/check "synth.rkt" [fs N...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/synth/d-s/sequencer.rkt
racket
A note is represented using the number of semitones from C0. Single note. Accepts notes or pauses, but not chords. pause repeats n times the sequence encoded by the pattern, at tempo bpm pattern is a list of either single notes (note . duration) or chords ((note ...) . duration) or pauses (#f . duration) repeat...
#lang typed/racket/base #:transient (require require-typed-check "typed-data.rkt") (require/typed/check "array-struct.rkt" [build-array (-> Indexes (-> Indexes Flonum) Array)]) (require/typed/check "array-transform.rkt" [array-append* ((Listof Array) -> Array)]) (require/typed/check "synth.rkt" [fs N...
baea3d11f241d55e692766fb7f5d95a4039089578ae96029272d2a53a36186ab
chrisfarnham/diceandclocks
subs.cljs
(ns dice-and-clocks.subs (:require [re-frame.core :as re-frame])) (re-frame/reg-sub ::name (fn [db] (:name db))) (re-frame/reg-sub ::channel (fn [db] (:channel db)))
null
https://raw.githubusercontent.com/chrisfarnham/diceandclocks/56662eb18e2c97afaba3582c1c585dc6c0d22b72/src/dice_and_clocks/subs.cljs
clojure
(ns dice-and-clocks.subs (:require [re-frame.core :as re-frame])) (re-frame/reg-sub ::name (fn [db] (:name db))) (re-frame/reg-sub ::channel (fn [db] (:channel db)))
e09c3c7da1ce71e2093e52062e8ae2760f2aee6ceace4103d1938de6a7a0ff70
tlaplus/tlapm
proof.mli
* Copyright ( C ) 2011 INRIA and Microsoft Corporation * Copyright (C) 2011 INRIA and Microsoft Corporation *) module T : sig open Property open Expr.T type omission = | Implicit | Explicit | Elsewhere of Loc.locus type proof = proof_ wrapped and proof_ = | Obvious | Omitted of ...
null
https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/proof.mli
ocaml
* Copyright ( C ) 2011 INRIA and Microsoft Corporation * Copyright (C) 2011 INRIA and Microsoft Corporation *) module T : sig open Property open Expr.T type omission = | Implicit | Explicit | Elsewhere of Loc.locus type proof = proof_ wrapped and proof_ = | Obvious | Omitted of ...
47a0b47a6bd9cbdfd8390e1f4d003a22505db791de4eeefe44d686a780d013ee
camlp5/camlp5
calc.ml
(* camlp5r *) (* calc.ml,v *) value g = Grammar.gcreate (Plexer.gmake ()); value e = Grammar.Entry.create g "expression"; EXTEND e: [ [ x = e; "+"; y = e -> x + y | x = e; "-"; y = e -> x - y ] | [ x = e; "*"; y = e -> x * y | x = e; "/"; y = e -> x / y ] | [ x = INT -> int_of_string x ...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/tutorials/calc/calc.ml
ocaml
camlp5r calc.ml,v
value g = Grammar.gcreate (Plexer.gmake ()); value e = Grammar.Entry.create g "expression"; EXTEND e: [ [ x = e; "+"; y = e -> x + y | x = e; "-"; y = e -> x - y ] | [ x = e; "*"; y = e -> x * y | x = e; "/"; y = e -> x / y ] | [ x = INT -> int_of_string x | "("; x = e; ")" -> x ] ] ...
fe0bcbb044c1835e74c4b017c4e3c1893bb41b98624f4076e65f0a305dd0c619
psholtz/MIT-SICP
exercise2-07.scm
;; Exercise 2.7 ;; 's program is incomplete because she has not specified the implementation of ;; the interval abstraction. Here is a definition of the interval constructor: ;; ;; (define (make-interval a b) (cons a b)) ;; ;; Define selectors "upper-bound" and "lower-bound" to complete the implementation. ;; ;;...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-2.1/mit-scheme/exercise2-07.scm
scheme
the interval abstraction. Here is a definition of the interval constructor: (define (make-interval a b) (cons a b)) Define selectors "upper-bound" and "lower-bound" to complete the implementation. Constructor: Selectors:
Exercise 2.7 's program is incomplete because she has not specified the implementation of (define (make-interval a b) (cons a b)) (define (lower-bound x) (car x)) (define (upper-bound x) (cdr x))
06da2c76e5f41d53bc526f63e6b1944dde3ec0d14a088c0cab69c5deec9ecbbd
ghcjs/ghcjs
TestData.hs
module TestData where Test Data Data Type Operation Tokens data Op a = Find a | Delete a | Insert a deriving Show A test Data . -- t_name : Name of the test data. -- t_threads : Number of concurrent threads to run -- t_modes : Concurrent modes selected. Multiple modes -- will be batch...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/concurrent/prog003/TestData.hs
haskell
t_name : Name of the test data. t_threads : Number of concurrent threads to run t_modes : Concurrent modes selected. Multiple modes will be batch tested in specified sequence t_repeats : Number of runs to conduct on each mode. t_init_list : Elements of the initial list t_tasks :...
module TestData where Test Data Data Type Operation Tokens data Op a = Find a | Delete a | Insert a deriving Show A test Data . data TestData a = TestData { t_name :: String , t_threads :: Int , t_init_list :: [a] , t_task...
6fc6a02b75a0896ec834f8b607625e4b2ee0bff96116ce404f55004f22ca7e9b
blt/port_compiler
pc_prv_clean.erl
%% ------------------------------------------------------------------- %% rebar3 port compiler cleaner , in the manner of . %% %% ------------------------------------------------------------------- -module(pc_prv_clean). -behaviour(provider). -export([init/1, do/1, format_error/1]). -define(NAMESPACE, pc). -define...
null
https://raw.githubusercontent.com/blt/port_compiler/f791c40bfa9ca8ebfc82bd8fc241b1584fbfac26/src/pc_prv_clean.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- =================================================================== API =================================================================== The 'user friendly' name of the task ...
rebar3 port compiler cleaner , in the manner of . -module(pc_prv_clean). -behaviour(provider). -export([init/1, do/1, format_error/1]). -define(NAMESPACE, pc). -define(PROVIDER, clean). -define(DEPS, [{default, app_discovery}]). -spec init(rebar_state:t()) -> {ok, rebar_state:t()}. init(State) -> Provider = ...
76c0a2d5d0956b669a7332c16990e29f3bdf217dc45270e49ed855b644b22380
johnlawrenceaspden/hobby-code
binomial.clj
The Binomial Distribution ;; Example 1.1 of ItILA ;; A bent coin has probability f of coming up heads. The coin is tossed N times. ;; What is the probability distribution of the number of heads, r? What are the ;; mean and variance of r? Suppose f is 1/3 , and we toss the coin once 1/3 of the time r is 1 , an...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/binomial.clj
clojure
Example 1.1 of ItILA A bent coin has probability f of coming up heads. The coin is tossed N times. What is the probability distribution of the number of heads, r? What are the mean and variance of r? If we toss it twice, then those probabilities split of the possible worlds, the coin has come up heads once. P(2)...
The Binomial Distribution Suppose f is 1/3 , and we toss the coin once 1/3 of the time r is 1 , and 2/3 of the time , r is 0 1/3 - > 1/3 * 1/3 and 1/3 * 2/3 2/3 - > 1/3 * 2/3 and 1/3 * 2/3 So there are four separate sets of universes In 1/9 ths of them , the coin came up heads twice In 2/9 ths o...
326744791b31bd078fa50685c4ecdde73fd5d5a2bf547c3e532471133a288214
witan-org/witan
intmap.ml
(*************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ( C ...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/popop_lib/intmap.ml
ocaml
*********************************************************************** alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2017 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , versi...
d1c9efe4b1629e7aa8eb9ba277afcdc3978eecc57e925574696af3af8f2d7df8
michiakig/LispInSmallPieces
pp.scm
File : " pp.scm " ( c ) 1991 , ;;; [QNC] unified case to lower-case. ;;; Define the string to be emitted between lines. (define *inter-line-string* (make-string 1 #\newline)) (set! *inter-line-string* *inter-line-string*) ; 'generic-write' is a procedure that transforms a Scheme data value (or ; Scheme program...
null
https://raw.githubusercontent.com/michiakig/LispInSmallPieces/0a2762d539a5f4c7488fffe95722790ac475c2ea/gambit/pp.scm
scheme
[QNC] unified case to lower-case. Define the string to be emitted between lines. 'generic-write' is a procedure that transforms a Scheme data value (or Scheme program expression) into its textual representation. The interface to the procedure is sufficiently general to easily implement other useful formatting pr...
File : " pp.scm " ( c ) 1991 , (define *inter-line-string* (make-string 1 #\newline)) (set! *inter-line-string* *inter-line-string*) OUTPUT Procedure of 1 argument of string type , called repeatedly ( write obj ) = ( generic - write obj # f # f display - string ) (define (generic-write obj disp...
49d75426606b0e40e3305d9d186b68b0f4e1312c5210766100e9476046eb3163
billstclair/trubanc-lisp
packages.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- $ Header : /usr / local / cvsrep / flexi - streams / test / packages.lisp , v 1.8 2008/08/01 10:12:43 edi Exp $ Copyright ( c ) 2006 - 2008 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/flexi-streams-1.0.7/test/packages.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
$ Header : /usr / local / cvsrep / flexi - streams / test / packages.lisp , v 1.8 2008/08/01 10:12:43 edi Exp $ Copyright ( c ) 2006 - 2008 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ...
4bba5e39e73af57ef73a124175284372bdef71402e917ad55afd3f312bfd9378
minoki/haskell-floating-point
Internal.hs
# OPTIONS_HADDOCK not - home # {-# OPTIONS -Wno-unused-imports #-} module Numeric.Rounded.Hardware.Internal ( module Internal ) where import Numeric.Rounded.Hardware.Backend.Default () import Numeric.Rounded.Hardware.Internal.Class as Internal import Numeric.Rounded.Hard...
null
https://raw.githubusercontent.com/minoki/haskell-floating-point/7d7bb31bb2b07c637a5eaeda92fc622566e9b141/rounded-hw/src/Numeric/Rounded/Hardware/Internal.hs
haskell
# OPTIONS -Wno-unused-imports #
# OPTIONS_HADDOCK not - home # module Numeric.Rounded.Hardware.Internal ( module Internal ) where import Numeric.Rounded.Hardware.Backend.Default () import Numeric.Rounded.Hardware.Internal.Class as Internal import Numeric.Rounded.Hardware.Internal.Constants as Inter...
7410ad4fa1a64032f0ae279abc197dfd21f1087bdc248c921a9183e5bbef7692
unclebob/wator
cell.clj
(ns wator.cell) (defmulti tick (fn [cell & args] (::type cell)))
null
https://raw.githubusercontent.com/unclebob/wator/3c45455647deb1364e3102e189d0cf10340ceeb4/src/wator/cell.clj
clojure
(ns wator.cell) (defmulti tick (fn [cell & args] (::type cell)))
1726b03fdb31cb20e6b1e00a19cd053df2309cdc76b596c9394dbe8ab75b95dd
ekmett/categories
Discrete.hs
{-# LANGUAGE GADTs, TypeOperators #-} ------------------------------------------------------------------------------------------- -- | -- Module : Control.Category.Discrete Copyright : 2008 - 2010 -- License : BSD -- Maintainer : < > -- Stability : experimental -- Portability : portable -- -----------...
null
https://raw.githubusercontent.com/ekmett/categories/4a02808d28b275f59d9d6c08f0c2d329ee567a97/old/src/Control/Category/Discrete.hs
haskell
# LANGUAGE GADTs, TypeOperators # ----------------------------------------------------------------------------------------- | Module : Control.Category.Discrete License : BSD Stability : experimental Portability : portable -----------------------------------------------------------------------------------...
Copyright : 2008 - 2010 Maintainer : < > module Control.Category.Discrete ( Discrete(Refl) , liftDiscrete , cast , inverse ) where import Prelude () import Control.Category data Discrete a b where Refl :: Discrete a a instance Category Discrete where id = Refl Refl . Refl =...
c96a53d67ba912fb40179a58dc03f685a78968743dfd459ef4c3eba164655dd3
hamler-lang/hamler
Digraph.erl
%%--------------------------------------------------------------------------- %% | Module : Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. %% License : BSD-style (see the LICENSE file) %% Maintainer : , , %% Stability : experimental %% Portability : por...
null
https://raw.githubusercontent.com/hamler-lang/hamler/3ba89dde3067076e112c60351b019eeed6c97dd7/lib/Data/Digraph.erl
erlang
--------------------------------------------------------------------------- | License : BSD-style (see the LICENSE file) Stability : experimental Portability : portable ---------------------------------------------------------------------------
Module : Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. Maintainer : , , The Digraph FFI Module . -module('Digraph'). -include("../Foreign.hrl"). FFI -export([ edgeOf/1 , vertexOf/1 , edgeID/1 , vertexID/1 , new/1 , ...
ce7134153dc083918b3a94dada3a38196862cd2f42bdf2dce5309ac83cb08c00
rubenbarroso/EOPL
2_17.scm
;The new grammar production: ; ;(has-association? [f] s) = true if s=t and f(s)=k and [f] = (extend-env '(t) '(k) [g]) ; or (has-association? [g] s) ; false if [f] = [0] The new procedural implementation . As we saw in exercise 2.15 , with the addition of ;the n...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter2/2_17.scm
scheme
The new grammar production: (has-association? [f] s) = true if s=t and f(s)=k and [f] = (extend-env '(t) '(k) [g]) or (has-association? [g] s) false if [f] = [0] the new observer, has-association?, we need to extend the constructor with a new procedure that su...
The new procedural implementation . As we saw in exercise 2.15 , with the addition of (load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (define empty-env (lambda () (list (lambda (sym) (eopl:error 'apply-env "No binding for ~s" sym)) (lambda (sym) #f)))) (define extend-env (lambda ...
9a1564b8838bb6ac8c5fd20933186c5534f019253e0fe3ef10019fe5929c24c5
tmcgilchrist/postgresql-transactional
Tagged.hs
# LANGUAGE CPP # {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE ImplicitPrelude #-} # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeCla...
null
https://raw.githubusercontent.com/tmcgilchrist/postgresql-transactional/d53c6227c9ef7e5ab3ea255bb3351a4a0b7032be/src/Database/PostgreSQL/Tagged.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE ImplicitPrelude # | Postgres queries are either read-only or writing-enabled. monad transformer. | The tagged-effect Postgres monad transformer. | Run a writing-oriented PGTagged transaction. | Run a read-only PGTagged transaction. Actions such as thes...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # | Module : Database . PostgreSQL.Tagged Copyright : ( c ) Hel...
f29143d2a9cdccaca103e5f84144320ab3181be660058faede94ea832519cc4a
acl2/acl2
doc@useless-runes.lsp
(DM::PRIMEP204511953) (DM::PRIMEP250269713 (6296 36 (:REWRITE MEMBER-OF-CONS)) (4356 100 (:REWRITE SET::EMPTY-SET-UNIQUE)) (4320 36 (:REWRITE MEMBER-EQUAL-OF-CONS-DROP)) (2052 50 (:REWRITE OMAP::SETP-WHEN-MAPP)) (1560 13 (:REWRITE MEMBER-EQUAL-WHEN-SINGLETON-IFF)) (470 50 (:REWRITE TRUE-LIST-LISTP-IMPLIES-TRUE-LI...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/.sys/doc%40useless-runes.lsp
lisp
(DM::PRIMEP204511953) (DM::PRIMEP250269713 (6296 36 (:REWRITE MEMBER-OF-CONS)) (4356 100 (:REWRITE SET::EMPTY-SET-UNIQUE)) (4320 36 (:REWRITE MEMBER-EQUAL-OF-CONS-DROP)) (2052 50 (:REWRITE OMAP::SETP-WHEN-MAPP)) (1560 13 (:REWRITE MEMBER-EQUAL-WHEN-SINGLETON-IFF)) (470 50 (:REWRITE TRUE-LIST-LISTP-IMPLIES-TRUE-LI...