_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
db31d970d856d635fe1f78810bf09dc9d165efa930d0865789006d41f4090cd3
frenetic-lang/netcore-1.0
Monitor.hs
module Monitor ( main , monitor ) where import Control.Concurrent import Data.Word import qualified Data.Set as Set import qualified Data.Map as Map import Frenetic.NetCore import Control.Monad (forever) import Frenetic.NetCore.Util (poDom) import MacLearning (learningSwitch) import System.Log.Logger import Text...
null
https://raw.githubusercontent.com/frenetic-lang/netcore-1.0/976b08b740027e8ed19f2d55b1e77f663bee6f02/examples/Monitor.hs
haskell
^old score ^old byte counter ^new byte counter ^new score single host. Monitor writes commands to 'chan' that direct 'monitoringProcess' to either block, unblock, or stop monitoring the host. ^ethernet address to monitor ^IP address to monitor ^'monitor' will write to this channel ^the monitoring policy per-...
module Monitor ( main , monitor ) where import Control.Concurrent import Data.Word import qualified Data.Set as Set import qualified Data.Map as Map import Frenetic.NetCore import Control.Monad (forever) import Frenetic.NetCore.Util (poDom) import MacLearning (learningSwitch) import System.Log.Logger import Text...
fc2e5ea33cffb42c7edbb111ec30e4ca71f18d520ee773448cb0bef035172349
maxcountryman/hyperlight
http_proxy_test.clj
(ns hyperlight.http-proxy-test (:require [aleph.http :as http] [aleph.netty :as netty] [byte-streams :as bs] [clojure.test :refer [deftest is]] [criterium.core :as criterium] [hyperlight.http-proxy :as http-proxy] [manifold.deferred :as d])) (de...
null
https://raw.githubusercontent.com/maxcountryman/hyperlight/8b27db2ca0d90bdcd361159547103efddcd592f8/test/hyperlight/http_proxy_test.clj
clojure
(ns hyperlight.http-proxy-test (:require [aleph.http :as http] [aleph.netty :as netty] [byte-streams :as bs] [clojure.test :refer [deftest is]] [criterium.core :as criterium] [hyperlight.http-proxy :as http-proxy] [manifold.deferred :as d])) (de...
2b9d20b43304d57f5548d76a615ea5f669d576cb3b66753ed12d122774094914
xapi-project/xen-api
xapi_event.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/6c2aadbb44166b389a3bd956c8a6af5787003d68/ocaml/xapi/xapi_event.ml
ocaml
We prefix with zeroes so tokens which differ only in the generation can be compared lexicographically as strings. * Limit the event queue to this many events: last event ID to sent to this client list of all the subscriptions protects access to the mutable fields in this record session which owns ...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
01d887257b242fe279ebe031915f5d8b15b88dae2d8136564aeb0efece5da44a
haskell/hackage-server
Nonce.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Distribution.Server.Util.Nonce ( newRandomNonce , renderNonce, parseNonce, parseNonceM , getRawNonceBytes , Nonce ) where import Distribution.Server.Framework.Me...
null
https://raw.githubusercontent.com/haskell/hackage-server/1543b15b6f4b96d732b5b352f9991b421f6a7316/src/Distribution/Server/Util/Nonce.hs
haskell
# LANGUAGE DeriveDataTypeable # Only used for ASCII data internally NOT base16 encoded
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Distribution.Server.Util.Nonce ( newRandomNonce , renderNonce, parseNonce, parseNonceM , getRawNonceBytes , Nonce ) where import Distribution.Server.Framework.MemSize import Data.ByteString (ByteS...
a5a5eb69296e0f6b86c7d43cedb6892e0138f80984399b5a8392710794880d95
xxyzz/SICP
Exercise_2_46.rkt
#lang racket/base (define (make-vect x y) (cons x y)) (define (xcor-vect vect) (car vect)) (define (ycor-vect vect) (cdr vect)) (define (add-vect vect-a vect-b) (make-vect (+ (xcor-vect vect-a) (xcor-vect vect-b)) (+ (ycor-vect vect-a) (ycor-vect vect-b)))) (define (sub-v...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/2_Building_Abstractions_with_Data/2.2_Hierarchical_Data_and_the_Closure_Property/Exercise_2_46.rkt
racket
'(-1 . -1)
#lang racket/base (define (make-vect x y) (cons x y)) (define (xcor-vect vect) (car vect)) (define (ycor-vect vect) (cdr vect)) (define (add-vect vect-a vect-b) (make-vect (+ (xcor-vect vect-a) (xcor-vect vect-b)) (+ (ycor-vect vect-a) (ycor-vect vect-b)))) (define (sub-v...
584dcb76266645ba27449f1807d3315574882161a6870c524edd3bc7b96288c8
pirapira/coq2rust
term.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/kernel/term.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Prop and Set * Type * Simply typ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Context * { ...
2786e8758dbf280e0415a76450a3406c96bf2f01a9991840bd87f17c3881c264
processone/ejabberd
mod_sip_opt.erl
%% Generated automatically %% DO NOT EDIT: run `make options` instead -module(mod_sip_opt). -export([always_record_route/1]). -export([flow_timeout_tcp/1]). -export([flow_timeout_udp/1]). -export([record_route/1]). -export([routes/1]). -export([via/1]). -spec always_record_route(gen_mod:opts() | global | binary()) -...
null
https://raw.githubusercontent.com/processone/ejabberd/b860a25c82515ba51b044e13ea4e040e3b9bbc41/src/mod_sip_opt.erl
erlang
Generated automatically DO NOT EDIT: run `make options` instead
-module(mod_sip_opt). -export([always_record_route/1]). -export([flow_timeout_tcp/1]). -export([flow_timeout_udp/1]). -export([record_route/1]). -export([routes/1]). -export([via/1]). -spec always_record_route(gen_mod:opts() | global | binary()) -> boolean(). always_record_route(Opts) when is_map(Opts) -> gen_mo...
5007a8f9a5188b3b9127c8cc98c05ddc4896c4581e15130852a665e0330c5d6e
complyue/hadui
HaduiRT.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE PartialTypeSignatures # # LANGUAGE BlockArguments # {-# LANGUAGE RankNTypes #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # # LANGUAGE MultiParam...
null
https://raw.githubusercontent.com/complyue/hadui/de221a453f32e02c50de52daf936b694267282c2/hadui/src/HaduiRT.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE BangPatterns # | Hadui runtime common routines among pub/dev/debug modes | Communicate a json command back to the front UI, via current WebSocket connection in context. The schema/protocol of json based communication is facilitated by `wsc.js`, wh...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE PartialTypeSignatures # # LANGUAGE BlockArguments # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE TypeFam...
0e57b4870e2b1a499e377728bdc4bc2ab2924cbaaaed4a9daa7ab3b315182d6e
flavioc/cl-hurd
output.lisp
(in-package :hurd-streams) (defclass hurd-output-stream (hurd-stream fundamental-binary-output-stream) ((cache :initform (%create-adjustable-array 0) :accessor cache))) (defmethod stream-write-byte ((stream hurd-output-stream) byte) (vector-push-extend byte (cache stream))) (defmethod stream-write-cha...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/streams/output.lisp
lisp
(in-package :hurd-streams) (defclass hurd-output-stream (hurd-stream fundamental-binary-output-stream) ((cache :initform (%create-adjustable-array 0) :accessor cache))) (defmethod stream-write-byte ((stream hurd-output-stream) byte) (vector-push-extend byte (cache stream))) (defmethod stream-write-cha...
e832cde0a3bfd616d4e0ea1a4058a91ff217193441f98697cb2dc93a463c6987
janestreet/virtual_dom
test_selector.ml
open! Core open! Import let show selector node = node |> Node_helpers.unsafe_convert_exn |> Node_helpers.select ~selector |> [%sexp_of: Node_helpers.t list] |> print_s ;; let%expect_test "select empty div with * selector" = show "*" (Node.div []); [%expect {| ((Element ((tag_name div)))) |}] ;; let%exp...
null
https://raw.githubusercontent.com/janestreet/virtual_dom/c7b1c93db1b300431dc227a3eb647dfd8d354b2e/test/test_selector.ml
ocaml
open! Core open! Import let show selector node = node |> Node_helpers.unsafe_convert_exn |> Node_helpers.select ~selector |> [%sexp_of: Node_helpers.t list] |> print_s ;; let%expect_test "select empty div with * selector" = show "*" (Node.div []); [%expect {| ((Element ((tag_name div)))) |}] ;; let%exp...
d925cb30801b35dbd59115bdbe2a6de961ba1f36938ca5255a0e9d78a5299033
OCamlPro/alt-ergo
bitv.ml
(******************************************************************************) (* *) (* The Alt-Ergo theorem prover *) Copyright ( C ) 2006 - 2013 ...
null
https://raw.githubusercontent.com/OCamlPro/alt-ergo/695466427b5c3d48e92e90485b12c130c2bce2c1/src/lib/reasoners/bitv.ml
ocaml
**************************************************************************** The Alt-Ergo theorem prover ...
Copyright ( C ) 2006 - 2013 ...
02676a2090e13a1e5ea1725cbd569b1b1edace267cacf6a160424f329ba53d43
cuplv/dai
tree_diff.mli
open Dai open Syntax open Tree_sitter_java type edit = | Add_function of { method_id : Method_id.t; decl : CST.class_body_declaration; init_info : init_info; } | Delete_function of { method_id : Method_id.t } | Modify_function of { method_id : Method_id.t; new_header : CST.method_header } ...
null
https://raw.githubusercontent.com/cuplv/dai/f11ff4c2a9aacf36e63f8b5401f454fccade8138/src/frontend/tree_diff.mli
ocaml
open Dai open Syntax open Tree_sitter_java type edit = | Add_function of { method_id : Method_id.t; decl : CST.class_body_declaration; init_info : init_info; } | Delete_function of { method_id : Method_id.t } | Modify_function of { method_id : Method_id.t; new_header : CST.method_header } ...
3c6e8f07e2eaf51c722a699c55291253e66d1b000b4398e3a3a01ddc8fcc9e64
byorgey/diagrams-play
Swirl.hs
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine swirl :: Int -> Int -> Path R2 swirl k n = mconcat . map (cubicSpline True) . pathVertices . star (StarSkip k) $ regPoly n 1 d = stroke $ swirl 3 9 < > swirl 3 7 < > swirl 11 2...
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Swirl.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Prelude import Diagrams.Backend.SVG.CmdLine swirl :: Int -> Int -> Path R2 swirl k n = mconcat . map (cubicSpline True) . pathVertices . star (StarSkip k) $ regPoly n 1 d = stroke $ swirl 3 9 < > swirl 3 7 < > swirl 11 2...
1109a69d4232e4a3d586de93556a93b3a6ebea43b8689cddb4e4fd76357d5729
ocramz/petsc-hs
PC.hs
----------------------------------------------------------------------------- -- | -- Module : Numerical.PETSc.Internal.PutGet.PC Copyright : ( c ) 2015 -- License : LGPL3 Maintainer : zocca . . gmail . com -- Stability : experimental -- -- | PC Mid-level interface -- ---------------------...
null
https://raw.githubusercontent.com/ocramz/petsc-hs/d74a468da0dbc867d2ea25f280c7892cc54add48/src/Numerical/PETSc/Internal/PutGet/PC.hs
haskell
--------------------------------------------------------------------------- | Module : Numerical.PETSc.Internal.PutGet.PC License : LGPL3 Stability : experimental | PC Mid-level interface ---------------------------------------------------------------------------
Copyright : ( c ) 2015 Maintainer : zocca . . gmail . com module Numerical.PETSc.Internal.PutGet.PC where import Numerical.PETSc.Internal.InlineC import Numerical.PETSc.Internal.Types import Numerical.PETSc.Internal.Exception import Numerical.PETSc.Internal.Utils pcSetType :: PC -> PCType_ -> IO () p...
9eb29cecad5137f63939c4308cd777e0dd53820d0bf5243924cd1c96f22c5bdc
pirapira/coq2rust
pp_control.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/lib/pp_control.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Parameters of pretty-printing Def...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type pp_global_params = { ...
13ac97fa554412ba8dce27cab8a44cdd44b696c3ef27e32560fb22f5065b972f
Bogdanp/racket-gui-easy
debugger.rkt
#lang racket/base (require racket/class racket/date racket/format (prefix-in gui: racket/gui) racket/list racket/match "operator.rkt" "private/logger.rkt" "private/observable.rkt" "renderer.rkt" "view.rkt") (provide start-debug...
null
https://raw.githubusercontent.com/Bogdanp/racket-gui-easy/50e187f84a8c163e00caca337152e28a67979fcf/gui-easy-lib/gui/easy/debugger.rkt
racket
#lang racket/base (require racket/class racket/date racket/format (prefix-in gui: racket/gui) racket/list racket/match "operator.rkt" "private/logger.rkt" "private/observable.rkt" "renderer.rkt" "view.rkt") (provide start-debug...
20617924c1c82b90abb71cc628e6a3614e5ca3baee68180982be54d3544a333c
grin-compiler/ghc-grin
basic00.hs
main = pure ()
null
https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/ghc-grin-benchmark/basic/basic00.hs
haskell
main = pure ()
97d9883d76ceee9a53c79c90d7d051bb41b42dcf0c5428ce62053273daa75386
pascal-knodel/haskell-craft
E'12'20.hs
-- -- -- ------------------ Exercise 12.20 . ------------------ -- -- -- module E'12'20 where
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/_/links/E'12'20.hs
haskell
---------------- ----------------
Exercise 12.20 . module E'12'20 where
57ddedafbd8a590174fa66d388301c37993e04602626478eafa32f52d88a74c4
ghc/testsuite
tcfail178.hs
-- See Trac #1221 module ShouldFail where a :: Num a => (Bool -> [a]) -> [a] a x = x True ++ [1] y :: b -> () y = const () -- Typechecks ok b = a (const [2]) -- This one had an uninformative error message c = a y -- More informative d = a ()
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail178.hs
haskell
See Trac #1221 Typechecks ok This one had an uninformative error message More informative
module ShouldFail where a :: Num a => (Bool -> [a]) -> [a] a x = x True ++ [1] y :: b -> () y = const () b = a (const [2]) c = a y d = a ()
36029a47840a744044c96f337c69df1cf06aebc3b78fe2c55533e508183cc69e
falsetru/htdp
21.4.5.scm
(define-struct line (start end color)) (define-struct circle (center radius color)) (define-struct rectangle (nw width height color)) ; line (define (process-line f line) (f (line-start line) (line-end line) (line-color line))) (define (draw-a-line line) (process-line draw-solid-line line)) (define (clear-...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/21/21.4.5.scm
scheme
line circle rectangle shape losh test FACE에 더듬이 대체
(define-struct line (start end color)) (define-struct circle (center radius color)) (define-struct rectangle (nw width height color)) (define (process-line f line) (f (line-start line) (line-end line) (line-color line))) (define (draw-a-line line) (process-line draw-solid-line line)) (define (clear-a-line ...
1bda2f443fa3eeef07838033091f832d945fc8a18ef88d4b15a92c950028353c
killerswan/Haskell-BLAKE
Unsafe.hs
-- | -- Module : Data.Digest.BLAKE.Unsafe Copyright : ( c ) 2011 -- -- License : BSD-style Maintainer : < > -- Stability : experimental -- BLAKE is one of the finalists in the NIST SHA-3 hash function competition -- to replace SHA-1 and SHA-2. module Data.Digest.BLAKE.Unsafe ( -- * D...
null
https://raw.githubusercontent.com/killerswan/Haskell-BLAKE/8e6ce8f882279100cde2a83852ea6ad0dd69aca2/blakesum/Data/Digest/BLAKE/Unsafe.hs
haskell
| Module : Data.Digest.BLAKE.Unsafe License : BSD-style Stability : experimental to replace SHA-1 and SHA-2. * Digests * Text output BLAKE-256 initial values BLAKE-256 constants BLAKE-384 initial values BLAKE-512 initial values BLAKE-512 constants bit shift perform a given Gi within the rou...
Copyright : ( c ) 2011 Maintainer : < > BLAKE is one of the finalists in the NIST SHA-3 hash function competition module Data.Digest.BLAKE.Unsafe ( blake256 , blake512 , blake224 , blake384 , textDigest ) where import Data.Bits import Data.Word import Data.Int import Data.Lis...
8637fbf07eeb68d6cce69cdd7640b849f39a10caf18bdd5001f1261ea5038dc9
rurban/clisp
manager.lisp
-*- Mode : Lisp ; Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : T -*- ;;; Window Manager Property functions ;;; TEXAS INSTRUMENTS INCORPORATED ;;; P.O. BOX 2909 AUSTIN , TEXAS 78769 ;;; Copyright ( C ) 1987 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any indiv...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/modules/clx/mit-clx/manager.lisp
lisp
Package : XLIB ; Syntax : COMMON - LISP ; ; Lowercase : T -*- Window Manager Property functions P.O. BOX 2909 Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in al...
TEXAS INSTRUMENTS INCORPORATED AUSTIN , TEXAS 78769 Copyright ( C ) 1987 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package :xlib) (defun wm-name (window) (declare (type window window)) (declare (clx-values string)) (get-pro...
c92fdcfe40032cbcebeec46d64a917a90ae9fff137ec885610ce0ff6abd0fb8d
fons/cl-twitter
twitter-favorites.lisp
(in-package :twitter) ;; ;; Favorite Methods ;; ;; Favorites resources ;; favorites ;; favorites/create/:id ;; favorites/destroy/:id (define-command favorites/list (:get (:tweet)) (twitter-app-uri "favorites/list.json") "Returns the 20 most recent favorite statuses for the authenticating user...
null
https://raw.githubusercontent.com/fons/cl-twitter/6a72291f8c60bd07efd2a8605f18a3eb7570cc4a/api/twitter-favorites.lisp
lisp
Favorite Methods Favorites resources favorites favorites/create/:id favorites/destroy/:id -----------------------------------------------------------------------------------------------------------------------
(in-package :twitter) (define-command favorites/list (:get (:tweet)) (twitter-app-uri "favorites/list.json") "Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format." :user_id "Optional:The ID of the user for whom to return resu...
1fd0a8aad863e3a42a2aa7cb632d908db84091ca1db6c6850fa1c2cd95bf79a4
phadej/cabal-extras
Package.hs
{-# LANGUAGE OverloadedStrings #-} module CabalHaddockServer.Pages.Package ( packagePage, ) where import Lucid hiding (for_) import Peura import Hooglite.Haddock import qualified Data.Map.Strict as Map import qualified Data.Set as Set import qualified Distribution.ModuleName as C import Ca...
null
https://raw.githubusercontent.com/phadej/cabal-extras/6b94e6044029566f5fee281ca5893c21db5fcae9/cabal-haddock-server/src/CabalHaddockServer/Pages/Package.hs
haskell
# LANGUAGE OverloadedStrings #
module CabalHaddockServer.Pages.Package ( packagePage, ) where import Lucid hiding (for_) import Peura import Hooglite.Haddock import qualified Data.Map.Strict as Map import qualified Data.Set as Set import qualified Distribution.ModuleName as C import CabalHaddockServer.DocsContents impor...
06c896dd3947171450278ecde5717ff513e94e32ec7b6a0b041524856a82085f
atgreen/lisp-openshift
script-engine.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; Base : 10 -*- Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; * Redistr...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/hunchentoot-1.2.3/test/script-engine.lisp
lisp
Syntax : COMMON - LISP ; Package : HUNCHENTOOT ; 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 t...
Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :hunchentoot-test) (defun file-contents (pathname &key (element-type '(unsigned-byte 8))) (with-...
3f99d8ba95ee3f89fc2cd15fc7aec25f3168a810d296e6cd23b106ed4418e993
jmackie/HandyHaskell
2019-02-15_2.hs
partition :: Foldable f => (a -> Either b c) -> f a -> ([b], [c]) partition p as = foldr (select p) ([],[]) as # INLINE partition # # SPECIALISE partition : : ( a - > Either b c ) - > [ a ] - > ( [ b ] , [ c ] ) # select :: (a -> Either b c) -> a -> ([b], [c]) -> ([b], [c]) select p a ~(bs, cs) = case p a of Lef...
null
https://raw.githubusercontent.com/jmackie/HandyHaskell/13e4cbbc3b59acb2da434d5ab1cd1088ee9aa48d/2019-02-15_2.hs
haskell
partition :: Foldable f => (a -> Either b c) -> f a -> ([b], [c]) partition p as = foldr (select p) ([],[]) as # INLINE partition # # SPECIALISE partition : : ( a - > Either b c ) - > [ a ] - > ( [ b ] , [ c ] ) # select :: (a -> Either b c) -> a -> ([b], [c]) -> ([b], [c]) select p a ~(bs, cs) = case p a of Lef...
a1790f2f6f4442a79b9493b07f434ff4cfa3f4e28921e44616f7b137d00b11f9
clojure/tools.nrepl
session.clj
(ns ^{:doc "Support for persistent, cross-connection REPL sessions." :author "Chas Emerick"} clojure.tools.nrepl.middleware.session (:use [clojure.tools.nrepl.misc :only (uuid response-for returning log)] [clojure.tools.nrepl.middleware.interruptible-eval :only (*msg*)] [clojure.tools.nrep...
null
https://raw.githubusercontent.com/clojure/tools.nrepl/d4bb14e841b453721f009f4e9e0e9b2742b4bdc2/src/main/clojure/clojure/tools/nrepl/middleware/session.clj
clojure
associated with a particular *msg* (and session) even when produced from a future, agent, etc. due to binding conveyance. This may or may not be desirable depending upon the expectations of the client/user. I'm not sure at the moment how best to make it configurable though... clojure.test captures *out* at load-...
(ns ^{:doc "Support for persistent, cross-connection REPL sessions." :author "Chas Emerick"} clojure.tools.nrepl.middleware.session (:use [clojure.tools.nrepl.misc :only (uuid response-for returning log)] [clojure.tools.nrepl.middleware.interruptible-eval :only (*msg*)] [clojure.tools.nrep...
bb02cac56225a8ff7270559563ca83c9432520ddc890655f04b85b756ad7227e
janestreet/learn-ocaml-workshop
frogger.ml
open Base open Scaffold (* When you start the exercise, the compiler will complain that Frog.create, * World.create and create_frog are unused. You can remove this attribute once * you get going. *) [@@@warning "-32"] module Frog = struct type t = { position : Position.t } [@@deriving fields] let creat...
null
https://raw.githubusercontent.com/janestreet/learn-ocaml-workshop/1ba9576b48b48a892644eb20c201c2c4aa643c32/03-frogger/frogger.ml
ocaml
When you start the exercise, the compiler will complain that Frog.create, * World.create and create_frog are unused. You can remove this attribute once * you get going.
open Base open Scaffold [@@@warning "-32"] module Frog = struct type t = { position : Position.t } [@@deriving fields] let create = Fields.create end module World = struct type t = { frog : Frog.t } [@@deriving fields] let create = Fields.create end let create_frog () = failwith "Fi...
2a731cdacd7ef8b58a5981541dab9425bfe54924873290027b33c5b5398e5aa3
ocaml-obuild/obuild
generators.ml
open Ext.Filepath open Helper open Gconf exception GeneratorFailed of string exception GeneratorNotFound of string type t = { suffix : string; modname : (Modname.t -> Modname.t); commands : (filepath -> filepath -> string -> string list list); generated_files : (filename -> string -> filename); } let generat...
null
https://raw.githubusercontent.com/ocaml-obuild/obuild/28252e8cee836448e85bfbc9e09a44e7674dae39/obuild/generators.ml
ocaml
open Ext.Filepath open Helper open Gconf exception GeneratorFailed of string exception GeneratorNotFound of string type t = { suffix : string; modname : (Modname.t -> Modname.t); commands : (filepath -> filepath -> string -> string list list); generated_files : (filename -> string -> filename); } let generat...
3233a283db47c177be2a4f019a7dc630b260f085e9f929bed453bcddecee374b
kronkltd/jiksnu
pages.clj
(ns jiksnu.modules.core.pages (:require [jiksnu.modules.core.actions.activity-actions :as actions.activity] [jiksnu.modules.core.actions.album-actions :as actions.album] [jiksnu.modules.core.actions.client-actions :as actions.client] [jiksnu.modules.core.actions.conversation-action...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/core/pages.clj
clojure
(ns jiksnu.modules.core.pages (:require [jiksnu.modules.core.actions.activity-actions :as actions.activity] [jiksnu.modules.core.actions.album-actions :as actions.album] [jiksnu.modules.core.actions.client-actions :as actions.client] [jiksnu.modules.core.actions.conversation-action...
2f052ad6a5fc83a75149eda3d8da427305de174ad053a13410628bfdd4ae4d48
alanz/ghc-exactprint
OptSig.hs
# LANGUAGE ScopedTypeVariables # errors= do let ls :: [[String ]]= runR readp $ pack "[" `append` (B.tail log) `append` pack "]" return () -- This can be seen as the definition of accumFilter accumFilter2 :: (c -> a -> (c, Maybe b)) -> c -> SF (Event a) (Event b) accumFilter2 f c_init = switch (never &&& att...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc710/OptSig.hs
haskell
This can be seen as the definition of accumFilter
# LANGUAGE ScopedTypeVariables # errors= do let ls :: [[String ]]= runR readp $ pack "[" `append` (B.tail log) `append` pack "]" return () accumFilter2 :: (c -> a -> (c, Maybe b)) -> c -> SF (Event a) (Event b) accumFilter2 f c_init = switch (never &&& attach c_init) afAux where afAux (c, a) = ...
47766040a1520a74dc477ff3e6fb100a6e5e9550d39a88cfee449dddb9e9df11
hiratara/Haskell-Nyumon-Sample
chap04-samples-4-4-2-find-file-with.hs
module Main(main) where import System.Directory main :: IO () main = do current <- getCurrentDirectory let checkWritable filePath = getPermissions filePath >>= return . writable findFilesWith checkWritable [current ++ "/.." , current] "target.txt" >>= print
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap04-samples/chap04-samples-4-4-2-find-file-with.hs
haskell
module Main(main) where import System.Directory main :: IO () main = do current <- getCurrentDirectory let checkWritable filePath = getPermissions filePath >>= return . writable findFilesWith checkWritable [current ++ "/.." , current] "target.txt" >>= print
f32a0a388dd90b1cdb507ad8e7899491b10af06b43e4a8ad8d29b69328ea8a2f
icicle-lang/jetski-ambiata
Arbitrary.hs
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - orphans # module Test.Jetski.Arbitrary where import qualified Data.List as List import qualified Data.Text as T import Data.Word (Word) import Diso...
null
https://raw.githubusercontent.com/icicle-lang/jetski-ambiata/9f9c73a1d37eed4b8361442b3ea30057d9cfcd4e/test/Test/Jetski/Arbitrary.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------- ----------------------------------------------------------------------
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -fno - warn - orphans # module Test.Jetski.Arbitrary where import qualified Data.List as List import qualified Data.Text as T import Data.Word (Word) import Disorder.Corpus import Forei...
ae1123e0144f86cd0b42e77b6110769373054d41ab355b3bcc9efb877fffb871
dimitaruzunov/fp-2018
sum-iter.scm
(require rackunit rackunit/text-ui) (define (sum-iter start end) (define (iter sum start) (if (> start end) sum (iter (+ start sum) (+ start 1)))) (iter 0 start)) (define sum-iter-tests (test-suite "Tests for sum-iter" (check = (sum-iter 1 1) 1) (check = (sum-iter 1 ...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/02/sum-iter.scm
scheme
(require rackunit rackunit/text-ui) (define (sum-iter start end) (define (iter sum start) (if (> start end) sum (iter (+ start sum) (+ start 1)))) (iter 0 start)) (define sum-iter-tests (test-suite "Tests for sum-iter" (check = (sum-iter 1 1) 1) (check = (sum-iter 1 ...
0b19ac56b392675cbdce61c5a28e98fd42bc20cfc5b14b3394bcd64dbc6a9a82
pedestal/pedestal-app
platform.cljs
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; 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 licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/src/io/pedestal/app/util/platform.cljs
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software.
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.app.util.platform (:require [cljs.reader :as reader])) (defn safe-read-string [s] (reader/read-string s)) (defn parse-int [s] (assert (or (number? s) (string? s)) "the value passed to parse-int must be a number or a ...
caeb7f4bbf05a15f6f5c7b982021070801c644c2cee126d3912127b6ec022b0a
Gbury/dolmen
pipeline.ml
(* This file is free software, part of dolmen. See file "LICENSE" for more information *) exception Sigint = Sys.Break exception Out_of_time = Alarm.Out_of_time exception Out_of_space = Alarm.Out_of_space module Make(State : State.S) = struct (* Setup *) (* ******************************************************...
null
https://raw.githubusercontent.com/Gbury/dolmen/fca57cab8e426f6ae2f5a007358a4f64667c9767/src/loop/pipeline.ml
ocaml
This file is free software, part of dolmen. See file "LICENSE" for more information Setup ************************************************************************ We want to catch user interruptions ************************************************************************ Type for pipelines, i.e a series of t...
exception Sigint = Sys.Break exception Out_of_time = Alarm.Out_of_time exception Out_of_space = Alarm.Out_of_space module Make(State : State.S) = struct let () = match Sys.os_type with | "Win32" | "Cygwin" -> Sys.catch_break true | "Unix" -> Sys.set_signal Sys.sigint ( Sys.Signal_...
d2eb67d90ee3a831634eaaa54122a8234a04ab7d3646a03ca3a84fb6f81fff43
janestreet/core_unix
command_shape_test_shared.ml
These tests check that [ Command_unix.shape ] returns regardless of the order in which the child writes and closes its stderr and stdout . Returning an error is a successful outcome . We also used to have some tests where the child process hung and never closed its stdout / stderr , but that se...
null
https://raw.githubusercontent.com/janestreet/core_unix/a051098a918b950e9d0a5da7248f1bbfb51388e5/command_unix/test-bin/command_shape_test_shared.ml
ocaml
These tests check that [ Command_unix.shape ] returns regardless of the order in which the child writes and closes its stderr and stdout . Returning an error is a successful outcome . We also used to have some tests where the child process hung and never closed its stdout / stderr , but that se...
7578b030d8e2028baef5cb4ccbe1694f3c2384bd832e7dc76db3edbb0c48c39e
multiformats/clj-multihash
digest_test.clj
(ns multihash.digest-test (:require [clojure.string :as str] [clojure.test :refer :all] [multihash.core :as multihash] [multihash.digest :as digest]) (:import java.io.ByteArrayInputStream java.nio.ByteBuffer)) (deftest hashing-constructors (doseq [algorithm (keys digest/functions)] (...
null
https://raw.githubusercontent.com/multiformats/clj-multihash/e3696c5341bcfb315589fbce020e89febbfe73bd/test/multihash/digest_test.clj
clojure
(ns multihash.digest-test (:require [clojure.string :as str] [clojure.test :refer :all] [multihash.core :as multihash] [multihash.digest :as digest]) (:import java.io.ByteArrayInputStream java.nio.ByteBuffer)) (deftest hashing-constructors (doseq [algorithm (keys digest/functions)] (...
313026780aca93e8cbd7b3e3d67456f61691aa7fd401cbe604f6767ecdc2353f
RichiH/git-repair
CurrentRepo.hs
The current git repository . - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Git.CurrentRepo where import Common import Git.Types import Git.Construct import qualified Git...
null
https://raw.githubusercontent.com/RichiH/git-repair/c61b677e7a67a286df34c0629c52aeae9be9299a/Git/CurrentRepo.hs
haskell
work - tree and --git - dir to git commands it runs . work-tree and --git-dir to git commands it runs.
The current git repository . - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Git.CurrentRepo where import Common import Git.Types import Git.Construct import qualified Git...
51a42ae8e881aa03c7aca570263e663a4016aa68a063dcb6be039039d9fabcac
imrekoszo/polylith-kaocha
core.clj
(ns polylith-kaocha.example.core (:require [clojure.spec.alpha :as s])) (defn add [a b] (+' a b)) (s/def ::number (s/and number? (complement (every-pred double? (some-fn NaN? infinite?))))) (s/fdef add :args (s/cat :a ::number :b ::number) :ret ::number :fn (fn [{:keys [args ret]}] (= ret (+ (...
null
https://raw.githubusercontent.com/imrekoszo/polylith-kaocha/f8536b683842ac1d70eb1e1ab918be0369c43ce5/bases/example/src/polylith_kaocha/example/core.clj
clojure
(ns polylith-kaocha.example.core (:require [clojure.spec.alpha :as s])) (defn add [a b] (+' a b)) (s/def ::number (s/and number? (complement (every-pred double? (some-fn NaN? infinite?))))) (s/fdef add :args (s/cat :a ::number :b ::number) :ret ::number :fn (fn [{:keys [args ret]}] (= ret (+ (...
aeb76234aaef3731209d62e006f25c2aa1c677af612bd85fb77c96f45627b97e
fortytools/holumbus
Parser.hs
# OPTIONS_GHC -fno - warn - unused - do - bind # -- ---------------------------------------------------------------------------- | Module : Holumbus . Query . Language . Parser Copyright : Copyright ( C ) 2007 , 2008 License : MIT Maintainer : ( ) Stability : experimental ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Holumbus-Searchengine/src/Holumbus/Query/Language/Parser.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- * Parsing ---------------------------------------------------------------------------- | A query may always be surrounded by whitespace | Parse an and query. |...
# OPTIONS_GHC -fno - warn - unused - do - bind # | Module : Holumbus . Query . Language . Parser Copyright : Copyright ( C ) 2007 , 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.2 The Holumbus query parser ...
8b45e5d5f63b21276184d372fc334beebf92fb84ea36ffb7f3eb094837d0fe7e
skanev/playground
05.scm
EOPL exercise 2.05 ; ; We can use any data structure for representing environments, if we can ; distinguish empty environments from non-empty ones, and in which one can ; extract the pieces of a non-empty environment. Implement environments using ; a representation in which the empty environment is represented as the...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/02/05.scm
scheme
We can use any data structure for representing environments, if we can distinguish empty environments from non-empty ones, and in which one can extract the pieces of a non-empty environment. Implement environments using a representation in which the empty environment is represented as the empty list, and in which...
EOPL exercise 2.05 (define (empty-env) '()) (define (extend-env var val env) (cons (cons var val) env)) (define (apply-env env var) (cond ((null? env) (eopl:error 'apply-env "Variable not found")) ((eqv? (caar env) var) (cdar env)) (else (apply-env (cdr env) var))))
ba78a718feb1c9f3754063268b6f6cbfc38d4ec881a77f6f56ecacda500cc95a
LeventErkok/sbv
PrettyNum.hs
----------------------------------------------------------------------------- -- | Module : Data . SBV.Utils . PrettyNum Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Number representations in hex/bin -------------------------------------------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/0d791d9f4d1de6bd915b6d7d3f9a550385cb27a5/Data/SBV/Utils/PrettyNum.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental Number representations in hex/bin --------------------------------------------------------------------------- | PrettyNum class captures printing of numbers in hex and binary forma...
Module : Data . SBV.Utils . PrettyNum Copyright : ( c ) # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall -Werror -Wno - incomplete - uni - patterns # module Data.SBV.Utils.PrettyNum ( PrettyNum(..), readBin, shex, chex, shexI, sbin, sbinI , showCFloat, sh...
69ac76f4c49839a6e2d62c779a12d55146be4f1fe078efbffe69450f39a0a19e
inria-parkas/sundialsml
idasSlCrank_FSA_dns.ml
* ----------------------------------------------------------------- * $ Revision : 1.3 $ * $ Date : 2009/04/29 20:40:07 $ * ----------------------------------------------------------------- * Programmer : and @ LLNL * ----------------------------------------------------------------- * OCaml por...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/idas/serial/idasSlCrank_FSA_dns.ml
ocaml
Problem Constants Sensitivities of v. *-------------------------------------------------------------------- * Main Program *-------------------------------------------------------------------- crank moment of inertia mass of connecting rod moment of inertia of connecting rod spring constant damper co...
* ----------------------------------------------------------------- * $ Revision : 1.3 $ * $ Date : 2009/04/29 20:40:07 $ * ----------------------------------------------------------------- * Programmer : and @ LLNL * ----------------------------------------------------------------- * OCaml por...
a7ebfc63342c109aa85d364b1047ed6b282b927bed677f5a2d9fefbdf91fbc56
AeroNotix/raft
transport.lisp
(defpackage :raft/transport (:use :cl) (:export #:transport #:server-id #:serializer #:connect #:disconnect #:rpc-channel #:append-entries #:append-entries-response #:request-vote #:request-vote-response #:hangup #:encode-peer #:decode-peer)) (in-package :raft/transport) (de...
null
https://raw.githubusercontent.com/AeroNotix/raft/08921ac93f235595b2f0a344704ad2dad4e8ee1a/transport.lisp
lisp
(defpackage :raft/transport (:use :cl) (:export #:transport #:server-id #:serializer #:connect #:disconnect #:rpc-channel #:append-entries #:append-entries-response #:request-vote #:request-vote-response #:hangup #:encode-peer #:decode-peer)) (in-package :raft/transport) (de...
81a5abb36f1142a95d23abf0b6d126544ef21f1de4e7ba7f3193bc3318184009
jawline/c8hardcaml
cpu_core.ml
open! Core open! Hardcaml open! Signal open Global let prng_seed = 3929319 module States = struct type t = | Startup | Fetch_op | Execute [@@deriving sexp_of, compare, enumerate] end module I = struct type 'a t = { clock : 'a [@bits 1] ; clear : 'a [@bits 1] ; enable : 'a [@bits 1] ...
null
https://raw.githubusercontent.com/jawline/c8hardcaml/fc82279a0ce7dd1dc8ed260175544e7584fefe85/src/cpu_core.ml
ocaml
open! Core open! Hardcaml open! Signal open Global let prng_seed = 3929319 module States = struct type t = | Startup | Fetch_op | Execute [@@deriving sexp_of, compare, enumerate] end module I = struct type 'a t = { clock : 'a [@bits 1] ; clear : 'a [@bits 1] ; enable : 'a [@bits 1] ...
8fe147fa65661d2cef188990311102e032ac4c8b2776fa8b401ca3280d4a703d
dalaing/little-languages
Strip.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Co...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/modular/b-lang/src/Component/Term/Bool/Strip.hs
haskell
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Co...
a4905aa41b355ba4b2afcab1b811d66c3b3f36399c5473be9cae3bc8422b3b2f
namin/clpsmt-miniKanren
full-interp-with-let.scm
The definition of ' letrec ' is based based on code , using the " half - closure " approach from 's definitional ;; interpreters. (define (evalo expr val) (eval-expo expr initial-env val)) (define (eval-expo expr env val) (conde ((== `(quote ,val) expr) (absento 'closure val) (absento 'prim ...
null
https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/full-interp-with-let.scm
scheme
interpreters. Multi-argument variadic Multi-argument multi-binding let Multiple argument could add assert to prims need to make sure lambdas are well formed. grammar constraints would be useful here!!! we could use list-of-numbero instead but it causes more divergence with run* (list-of-numbero a*) we coul...
The definition of ' letrec ' is based based on code , using the " half - closure " approach from 's definitional (define (evalo expr val) (eval-expo expr initial-env val)) (define (eval-expo expr env val) (conde ((== `(quote ,val) expr) (absento 'closure val) (absento 'prim val) (not-in...
79b82076d882d3e18b04fd0d9f248bf6282946523098306d089f360b3d50fbd0
finnishtransportagency/harja
paikkaukset_paallystysilmoitukset.cljs
(ns harja.tiedot.urakka.yllapitokohteet.paikkaukset.paikkaukset-paallystysilmoitukset (:require [tuck.core :refer [process-event] :as tuck] [reagent.core :as r] [harja.domain.paikkaus :as paikkaus] ;[harja.tiedot.urakka.paallystys :as paallystys] [harja.ui.kartta.esitet...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/edc3f95b3411c2980659939d2cdf36b41e703020/src/cljs/harja/tiedot/urakka/yllapitokohteet/paikkaukset/paikkaukset_paallystysilmoitukset.cljs
clojure
[harja.tiedot.urakka.paallystys :as paallystys] poistetaan valinta
(ns harja.tiedot.urakka.yllapitokohteet.paikkaukset.paikkaukset-paallystysilmoitukset (:require [tuck.core :refer [process-event] :as tuck] [reagent.core :as r] [harja.domain.paikkaus :as paikkaus] [harja.ui.kartta.esitettavat-asiat :refer [maarittele-feature kartalla-esitettavaan-...
c91eab98ade00908ca46cdccb1c475d7df750d9212ac7d23499df3672cf9a37c
robert-strandh/Second-Climacs
cache.lisp
(cl:in-package #:second-climacs-syntax-common-lisp) We do not use the line object from Cluffer directly , because the ;;; contents of such a line may change after we have asked for it, so ;;; that we get a different contents each time we ask for it. But we still need the line object from Cluffer , because that on...
null
https://raw.githubusercontent.com/robert-strandh/Second-Climacs/1d1bc30f4431d8ea7893aea58a63464e216377a4/Code/Syntax/Common-Lisp/cache.lisp
lisp
contents of such a line may change after we have asked for it, so that we get a different contents each time we ask for it. But we as a comparison in the update protocol. The solution is to store asked for it. protocol. This slot contains the counter that is maintained during the execution of the update functi...
(cl:in-package #:second-climacs-syntax-common-lisp) We do not use the line object from Cluffer directly , because the still need the line object from Cluffer , because that one is used both the Cluffer line object and the contents as it was when we (defclass line () ((%cluffer-line :initarg :cluffer-line :read...
fbb6df0771b9cadccab2fd3b0ff0e735d4f35ad93f893e94f0c99579d274e092
eslick/cl-registry
preferences.lisp
(in-package :registry) ;;; preferences are stored as a btree in the user object. ;;; the keys are strings naming the preference. ;; ============================================================================= ;; Accessing user preferences in the current user's btree ;; ===============================================...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/core/models/preferences.lisp
lisp
preferences are stored as a btree in the user object. the keys are strings naming the preference. ============================================================================= Accessing user preferences in the current user's btree ============================================================================= =====...
(in-package :registry) (defmethod get-preference (name (user user)) "look up name in the current user's preferences. if a value is found, t is returned as the second value. if nothing is found for key, nil is returned as the second value." (get-value name (user-preferences-btree user))) (defun curre...
d468dac0bf061450a91bf8445808360c4248268a4f66401fac5fb23f3e11cc95
argp/bap
trace_container.mli
exception TraceException of string val default_frames_per_toc_entry : int64 val default_auto_finish : bool type frame = Frame_piqi.frame class writer : ?arch : Arch.bfd_architecture -> ?machine:int64 -> ?frames_per_toc_entry : int64 -> ?auto_finish : bool -> string -> object method add : frame -> unit method fin...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/src/ocaml/trace_container.mli
ocaml
exception TraceException of string val default_frames_per_toc_entry : int64 val default_auto_finish : bool type frame = Frame_piqi.frame class writer : ?arch : Arch.bfd_architecture -> ?machine:int64 -> ?frames_per_toc_entry : int64 -> ?auto_finish : bool -> string -> object method add : frame -> unit method fin...
8dddf4947ef1433baecb7fbebf5d3af8da1a5b32883dd52947c9ff21171cd823
S8A/htdp-exercises
ex489.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex489) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex489.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of Number] -> [List-of Number] converts a list of relative to absolute distances Number [List-of Number] -> [List-of Number] adds n to each number on l
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex489) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) the first number represents the distance to the origi...
0b22fdc9c81fd154a9fc051835af59a0cea6937c28952a53469afc84f5d0b77b
penpot/penpot
editable_label.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.main.ui.components.editable-label (:require [app.main.ui.icons :as i] [app.util.dom :as dom] ...
null
https://raw.githubusercontent.com/penpot/penpot/7303d311d5f23d515fa3fcdc6cd13cf7f429d1fe/frontend/src/app/main/ui/components/editable_label.cljs
clojure
Copyright (c) KALEIDOS INC
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.main.ui.components.editable-label (:require [app.main.ui.icons :as i] [app.util.dom :as dom] [app.util.keyboard :as kbd] ...
5379119ff5be621f860e68740d09ff093a4944dcbe1d12c5fc3628866bf6e335
ghc/packages-containers
IntMap.hs
{-# LANGUAGE BangPatterns #-} module Main where import Control.DeepSeq (rnf) import Control.Exception (evaluate) import Gauge (bench, defaultMain, whnf) import Data.List (foldl') import qualified Data.IntMap as M import qualified Data.IntMap.Strict as MS import Data.Maybe (fromMaybe) import Prelude hiding (lookup) ma...
null
https://raw.githubusercontent.com/ghc/packages-containers/97fe43c54c5c8a9b93ecf5abd7509e8085b63d41/containers-tests/benchmarks/IntMap.hs
haskell
# LANGUAGE BangPatterns #
module Main where import Control.DeepSeq (rnf) import Control.Exception (evaluate) import Gauge (bench, defaultMain, whnf) import Data.List (foldl') import qualified Data.IntMap as M import qualified Data.IntMap.Strict as MS import Data.Maybe (fromMaybe) import Prelude hiding (lookup) main = do let m = M.fromAscL...
23ce472d1a37de5c1a71276436e35832b13a4466434081ef8c1f62162d0ca502
clojerl/clojerl
core_eval_SUITE.erl
-module(core_eval_SUITE). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ alias/1 , apply/1 , binary/1 , call/1 , 'case'/1 , 'catch'/1 , cons/1 , 'fun'/1 , letrec/1 , lit...
null
https://raw.githubusercontent.com/clojerl/clojerl/e29f33066b8c5c4f5db10979cde4fe5931cd3e29/test/core_eval_SUITE.erl
erlang
------------------------------------------------------------------------------ Test Cases ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Helper functions -----------------------------------------------------...
-module(core_eval_SUITE). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ alias/1 , apply/1 , binary/1 , call/1 , 'case'/1 , 'catch'/1 , cons/1 , 'fun'/1 , letrec/1 , lit...
5cdf95397269113bacc4e957127057dcdf88645517047b68ceb70c5a40be3bdb
nlamirault/cl-gdata
cl-gdata-atdoc.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: lastfm-atdoc.lisp ;;;; Purpose: cl-gdata documentation tool Programmer : < > ;;;; This file , part of cl - ...
null
https://raw.githubusercontent.com/nlamirault/cl-gdata/1989b2919cc577c629fa65398a871cefd2229318/misc/cl-gdata-atdoc.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: lastfm-atdoc.lisp Purpose: cl-gdata documentation tool cl-gdata users are granted the rights to distribute and use this software -license.php *****...
Programmer : < > This file , part of cl - gdata , is Copyright ( c ) 2009 by as governed by the terms of the MIT License : (require :asdf) (asdf:oos 'asdf:load-op :atdoc) (asdf:oos 'asdf:load-op :cl-gdata) (let* ((path (namestring (asdf:component-relative-pathname (asdf:find-system :c...
879f162726339a93c39ff18ef33c6a4d720bf28396c281ab43f77c2e6ea59f02
bendmorris/scotch
GenStdLib.hs
module Scotch.Lib.GenStdLib where import System import System.Environment.Executable import System.Directory import System.IO import Control.Concurrent import Data.List import System.Console.Haskeline import System.Console.Haskeline.IO import System.Console.Haskeline.Completion import Scotch.Config import Scotch.Parse...
null
https://raw.githubusercontent.com/bendmorris/scotch/7b4bb4546d0ea3bc6b345eedc65a5d7f82c98d10/Scotch/Lib/GenStdLib.hs
haskell
module Scotch.Lib.GenStdLib where import System import System.Environment.Executable import System.Directory import System.IO import Control.Concurrent import Data.List import System.Console.Haskeline import System.Console.Haskeline.IO import System.Console.Haskeline.Completion import Scotch.Config import Scotch.Parse...
0089b7630b2081297c16a016b0ff29300b2bccbe7497c601e859c330cb4d517c
atgreen/lisp-openshift
sequences.lisp
(in-package :alexandria) ;; Make these inlinable by declaiming them INLINE here and some of them NOTINLINE at the end of the file . Exclude functions that have a compiler macro , because NOTINLINE is required to prevent compiler - macro expansion . (declaim (inline copy-sequence sequence-of-length-p)) (defun sequ...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/alexandria-20120407-git/sequences.lisp
lisp
Make these inlinable by declaiming them INLINE here and some of them There's room for optimization here: multiple list arguments could be traversed in parallel. type-error. type-error. type-error. signals for improper lists Can't use last-elt, as that signals an error for empty sequences When dealing with lis...
(in-package :alexandria) NOTINLINE at the end of the file . Exclude functions that have a compiler macro , because NOTINLINE is required to prevent compiler - macro expansion . (declaim (inline copy-sequence sequence-of-length-p)) (defun sequence-of-length-p (sequence length) "Return true if SEQUENCE is a seque...
ce31ac2b431ccfac458daf0cbb94dfae8ef9ad401e83807defdec35bfe9f6848
tfausak/monadoc-5
Template.hs
module Monadoc.Server.Template where import qualified Data.Text as Text import qualified Lucid as H import qualified Monadoc.Data.Commit as Commit import qualified Monadoc.Data.Version as Version import Monadoc.Prelude import qualified Monadoc.Server.Router as Router import qualified Monadoc.Type.Config as Config impo...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/lib/Monadoc/Server/Template.hs
haskell
module Monadoc.Server.Template where import qualified Data.Text as Text import qualified Lucid as H import qualified Monadoc.Data.Commit as Commit import qualified Monadoc.Data.Version as Version import Monadoc.Prelude import qualified Monadoc.Server.Router as Router import qualified Monadoc.Type.Config as Config impo...
e2ef6287968b46da9fe9f71ce7440d0b6b8f6cb370a9eecb51c5902cb220e98b
thegeez/bi-mcmc
project.clj
(defproject bi-mcmc "0.0.1-SNAPSHOT" :description "Bayesian Inference with Markov Chain Monte Carlo" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] ;; warning this is a local copy with a bug fix ;; [in...
null
https://raw.githubusercontent.com/thegeez/bi-mcmc/c843c86953b95fe749860b1c35e5f2b630f9a5f3/project.clj
clojure
warning this is a local copy with a bug fix [incanter "1.5.5-SNAPSHOT"]
(defproject bi-mcmc "0.0.1-SNAPSHOT" :description "Bayesian Inference with Markov Chain Monte Carlo" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [incanter/incanter-charts "1.5.5-SNAPSHOT"] [incanter...
76102a05f47b9d2b2a1db342b3f48952fe1caa3dfe6a37a02289b7c04557a422
bburdette/chordster
TestImport.hs
module TestImport ( module Yesod.Test , module Model , module Foundation , module Database.Persist , module Prelude , runDB , Spec , Example ) where import Yesod.Test import Database.Persist hiding (get) import Database.Persist.Sql (SqlPersistM, runSqlPersistMPool) import Control.Mo...
null
https://raw.githubusercontent.com/bburdette/chordster/70d235f1ca379e5ecd4a8f39dc1e734e2d50978b/test/TestImport.hs
haskell
module TestImport ( module Yesod.Test , module Model , module Foundation , module Database.Persist , module Prelude , runDB , Spec , Example ) where import Yesod.Test import Database.Persist hiding (get) import Database.Persist.Sql (SqlPersistM, runSqlPersistMPool) import Control.Mo...
428fcb03cf2076a99f2d4eb3f8445af5a5e504401cd9db398e52f41f689e8994
project-oak/hafnium-verification
LowerHil.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/absint/LowerHil.ml
ocaml
would check is_java, but we want to include builtins too
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
da1416418806241de8ce86530dfc64cc3ad8197bcd8d4f0fa059d19b1b177ef0
juji-io/datalevin
remote_test.clj
(ns datalevin.remote-test (:require [datalevin.remote :as sut] [datalevin.storage :as st] [datalevin.interpret :as i] [datalevin.datom :as d] [datalevin.core :as dc] [datalevin.db :as db] [datalevin.constants :as c] [datalevin.client ...
null
https://raw.githubusercontent.com/juji-io/datalevin/e15bc006fde555abbe1af036edb778d0c9cb3112/test/datalevin/remote_test.clj
clojure
(ns datalevin.remote-test (:require [datalevin.remote :as sut] [datalevin.storage :as st] [datalevin.interpret :as i] [datalevin.datom :as d] [datalevin.core :as dc] [datalevin.db :as db] [datalevin.constants :as c] [datalevin.client ...
50169109dda7a9874f97d9df2ccc8024de61164c0c1c5f86c095c17c8c14ca04
polyfy/polylith
interface_test.clj
(ns com.localdep.invoicer.interface-test (:require [clojure.test :refer :all] [com.localdep.test-helper.interface :as test-helper] [com.localdep.migrate-me.core :as mm-core])) (deftest dummy-test (is (= 123 mm-core/one-two-three)))
null
https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/examples/local-dep/components/invoicer/test/com/localdep/invoicer/interface_test.clj
clojure
(ns com.localdep.invoicer.interface-test (:require [clojure.test :refer :all] [com.localdep.test-helper.interface :as test-helper] [com.localdep.migrate-me.core :as mm-core])) (deftest dummy-test (is (= 123 mm-core/one-two-three)))
6c69328afa352560ae49b13db63e6f00f73edc5e1ffefa2b9cffbb5455644acd
binsec/binsec
logger.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/base/logger.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
d3349f1f82c152b9731cd94bf69c7e5db035116041c065e955c07871e242faab
ConfigV/ConfigV
IR.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE StandaloneDeriving # # LANGUAGE RecordWildCards # module ConfigV.Types.IR where import Control.DeepSeq import Data.Aeson import Data.Data import qualified Data.Text ...
null
https://raw.githubusercontent.com/ConfigV/ConfigV/b22d7d124135ea2c81a2d0b0b430cb577ef86b7a/src/ConfigV/Types/IR.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveDataTypeable # when your config file preprocessing happens elsewhere and you just have a key,value csv | all the languages we support, used in help file | Intermediate Representation stuff
# LANGUAGE DeriveGeneric # # LANGUAGE StandaloneDeriving # # LANGUAGE RecordWildCards # module ConfigV.Types.IR where import Control.DeepSeq import Data.Aeson import Data.Data import qualified Data.Text as T import GHC.Generics (Generic) import ConfigV.Ty...
1ee39d345d78f43c38281e6dd63d45a5dacbb25aef4d6edd23db2091ba1b713f
flosell/lambdacd
retrigger_test.clj
(ns lambdacd.execution.internal.retrigger-test (:import java.lang.IllegalStateException) (:require [clojure.test :refer :all] [lambdacd.execution.internal.retrigger :refer :all] [lambdacd.execution.core :as execution-core] [lambdacd.testsupport.test-util :refer [without-ts ...
null
https://raw.githubusercontent.com/flosell/lambdacd/e9ba3cebb2d5f0070a2e0e1e08fc85fc99ee7135/test/clj/lambdacd/execution/internal/retrigger_test.clj
clojure
just a mock, we don't actually execute this
(ns lambdacd.execution.internal.retrigger-test (:import java.lang.IllegalStateException) (:require [clojure.test :refer :all] [lambdacd.execution.internal.retrigger :refer :all] [lambdacd.execution.core :as execution-core] [lambdacd.testsupport.test-util :refer [without-ts ...
47106f9522b36c9d767027f7365d0cb264ed78bf7b5e53f79baef9cfd4c6ec6d
orbitz/ocaml-pastry
listen_loop.mli
open Async.Std type ('e, 'err) sender = 'e Msg.All.t -> ('e Msg.All.t, 'err) Deferred.Result.t type ('e, 'err) listener = unit -> ('e Msg.All.t, 'err) Deferred.Result.t val run : ('e, 'err1) sender -> ('e, 'err2) listener -> unit
null
https://raw.githubusercontent.com/orbitz/ocaml-pastry/9a31bf0328ae44b4130d729845119b5bf0413b36/lib/pastry/listen_loop.mli
ocaml
open Async.Std type ('e, 'err) sender = 'e Msg.All.t -> ('e Msg.All.t, 'err) Deferred.Result.t type ('e, 'err) listener = unit -> ('e Msg.All.t, 'err) Deferred.Result.t val run : ('e, 'err1) sender -> ('e, 'err2) listener -> unit
4997d6285c3e9655eb0230a21c539971975f13dddaaabd986302ca49b8e06d2a
emqx/HBridge
AbsESQL.hs
Haskell data types for the abstract syntax . Generated by the BNF converter . module Network.MQTT.Bridge.SQL.AbsESQL where newtype Ident = Ident String deriving (Eq, Ord, Show, Read) data Program = SProgS Select | SProgSW Select Where | SProgSM Select Modify | SProgSWM Select Where Modify der...
null
https://raw.githubusercontent.com/emqx/HBridge/885a0ebd437747c50a5883247308b3811737e1d7/src/Network/MQTT/Bridge/SQL/AbsESQL.hs
haskell
Haskell data types for the abstract syntax . Generated by the BNF converter . module Network.MQTT.Bridge.SQL.AbsESQL where newtype Ident = Ident String deriving (Eq, Ord, Show, Read) data Program = SProgS Select | SProgSW Select Where | SProgSM Select Modify | SProgSWM Select Where Modify der...
3b948bca70eddf6f6af7816f54fe1f67ac4de573bb427fad048eb2f7b56eb1d7
geophf/1HaskellADay
Solution.hs
{-# LANGUAGE OverloadedStrings #-} module Y2020.M11.D10.Solution where - Well , hi , there . Nice to see you , again ! So , for the Organization of American States , they do n't show , that is to say , they do n't render in WikiText { { flagicon|<Country Name > } } . No , instead , they render countries as ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2020/M11/D10/Solution.hs
haskell
# LANGUAGE OverloadedStrings # } ALL THE WAY BACK THEN for Country look for flaggie stuff here for the updated alliance-parse } - Now you: parseOAS, given a line, parses `|{{Country|Barbados}} [... and stuff]` } } which means you can now write: } } }
module Y2020.M11.D10.Solution where - Well , hi , there . Nice to see you , again ! So , for the Organization of American States , they do n't show , that is to say , they do n't render in WikiText { { flagicon|<Country Name > } } . No , instead , they render countries as { { Country|<Country Name > } } ......
47c6d1bbecb7498dad57dd7ef0e2141ed50dabbab899788d651d9b688c114cd3
Kappa-Dev/KappaTools
mvbdu_test.ml
* * mvbdu_test.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 08/03/2010 * Last modification : Time - stamp : < Jan 01 2017 > * * * This library provides test benchmarks for the library of sets of finite maps from integers to integers * ...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/sanity_test/mvbdu_test.ml
ocaml
WRAPPED MVBDU ORIGINAL WRAPPED MVBDU OPTIMIZED
* * mvbdu_test.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 08/03/2010 * Last modification : Time - stamp : < Jan 01 2017 > * * * This library provides test benchmarks for the library of sets of finite maps from integers to integers * ...
cca273c0894981f5259bfd6a3263e1b4a5ce2531bf5985c6bc5d2760ce25eef6
pgj/mirage-kfreebsd
nativeint.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/pgj/mirage-kfreebsd/0ff5b2cd7ab0975e3f2ee1bd89f8e5dbf028b102/packages/mirage-stdlib/src/nativeint.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : nativeint.ml 7818 2007 - 01 -...
e88b84050ffeed6ef302b22d80110dfdfb835217ff471c9d46c7b2825c57bada
semmons99/clojure-euler
prob-005.clj
problem 005 ; ; ; ; ; ; ; ; ; ; (defn div-by-all [n] (zero? (count (drop-while #(zero? (mod n %)) (range 2 21))))) (defn prob-005 [] (first (filter #(div-by-all %) (iterate #(+ 380 %) 380))))
null
https://raw.githubusercontent.com/semmons99/clojure-euler/3480bc313b9df7f282dadf6e0b48d96230f1bfc1/prob-005.clj
clojure
; ; ; ; ; ; ; ; ;
(defn div-by-all [n] (zero? (count (drop-while #(zero? (mod n %)) (range 2 21))))) (defn prob-005 [] (first (filter #(div-by-all %) (iterate #(+ 380 %) 380))))
31b3644eb7786c006bfb66d67a4d75e23e213a7b4ce8fb0ea7075b59e2d5baa1
hoplon/demos
api.clj
(ns territory-builder.api (:require [castra.core :refer [defrpc]] [geocoder.google :as google] [territory-builder.rules :refer [allow deny]])) (def polygons (atom [])) ;(add-watch polygons :state (fn [k r o n] (println n))) (defn get-polygon [id] (first (filter #(= (:id %) id) @polygons))) (defn get-al...
null
https://raw.githubusercontent.com/hoplon/demos/50d613892db0624a4f0326c1427d82f5b8e2390f/territory-builder/src/clj/territory_builder/api.clj
clojure
(add-watch polygons :state (fn [k r o n] (println n)))
(ns territory-builder.api (:require [castra.core :refer [defrpc]] [geocoder.google :as google] [territory-builder.rules :refer [allow deny]])) (def polygons (atom [])) (defn get-polygon [id] (first (filter #(= (:id %) id) @polygons))) (defn get-all-polygons [] @polygons) (defn new-polygon [path] (s...
6a4c80b90bdf2915a27dab3235de402ce77a09d1c78091143ace6693bb691159
lexi-lambda/litpub
info.rkt
#lang info (define collection "litpub") (define deps '("base" "collections" "curly-fn" "db-lib" "envy" "hyphenate" "markdown" "srfi-lite-lib" "threading" "txexpr" "web-server-lib")) (define build-deps '("rackunit-lib" "rackunit-spec"))
null
https://raw.githubusercontent.com/lexi-lambda/litpub/2f326c1c0e0ee8cad0b8b3f7f7b4a49a02ac62b5/info.rkt
racket
#lang info (define collection "litpub") (define deps '("base" "collections" "curly-fn" "db-lib" "envy" "hyphenate" "markdown" "srfi-lite-lib" "threading" "txexpr" "web-server-lib")) (define build-deps '("rackunit-lib" "rackunit-spec"))
0ca68582dcad4a18ebc387c5873a131c25ff5fa0d057be7ecffbbdd6c71bc3c6
jafingerhut/thalia
core.clj
(ns thalia.core (:gen-class) (:import (java.io File)) (:require [clojure.java.io :as io] [clojure.pprint :as pp] [clojure.string :as str] [clojure.edn :as edn] [thalia.utils :refer :all] [cheshire.core :as cheshire] [me.raynes.fs :as fs])) ...
null
https://raw.githubusercontent.com/jafingerhut/thalia/20c98eec8168ff72c5b3965cc048b817d34a4583/src/thalia/core.clj
clojure
next step removes any files that contained only 'nil' then only those octets that do remove root-dir prefix remove fname-suffix if it is there break path name up into separate components remove any files that are completely blank parse file names for project name, version, namespace, and symbol After grouping, ...
(ns thalia.core (:gen-class) (:import (java.io File)) (:require [clojure.java.io :as io] [clojure.pprint :as pp] [clojure.string :as str] [clojure.edn :as edn] [thalia.utils :refer :all] [cheshire.core :as cheshire] [me.raynes.fs :as fs])) ...
b423e2f3c22d0e726ee46f3f57d0bb9d195c72705103cddea53163fac816fc9b
LdBeth/star-lisp
functions.lisp
;; -*- Mode:Lisp; Syntax:Common-Lisp; Package: (*SIM-I COMMON-LISP-GLOBAL); Muser: Yes -*- (in-package :*sim-i) ;;;> *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ ;;;> ;;;> The Thinking Machines *Lisp Simulator is in the public domain. ;;;> You are free to do whatever you l...
null
https://raw.githubusercontent.com/LdBeth/star-lisp/034fb97fe8780d6e9fbff7c1d8c4a6b8c331797b/source/functions.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package: (*SIM-I COMMON-LISP-GLOBAL); Muser: Yes -*- > *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ > > The Thinking Machines *Lisp Simulator is in the public domain. > You are free to do whatever you like with it, including but > not limi...
(in-package :*sim-i) (defun /!! (pvar1 &rest pvars) (*let ((result (apply #'internal-/!! pvar1 pvars))) (if!! (complexp!! result) result (float!! result) ))) (*defun *or (PVAR) "Returns the OR of PVAR in all selected processors" (simple-pvar-argument!! pvar) (safety-check (new-pvar-check pvar...
282c0d2d63b376aaaaa8af822eca53013049aa88bbe845f8b02c99c3fa761b88
naxels/youtube-channel-data
utils.clj
(ns youtube-channel-data.utils (:require [clojure.data.json :as json] [clojure.string :as str] [clojure.math :as m]) (:import [java.time Duration ZonedDateTime] [java.net URLEncoder])) (set! *warn-on-reflection* true) ; JSON (defn json-value-reader [key value] (case key ...
null
https://raw.githubusercontent.com/naxels/youtube-channel-data/4b64e685a347c268e1383d40bfe12f6e7d0019cd/src/youtube_channel_data/utils.clj
clojure
JSON each key/value will go through this function Others This regex cuts out both before and what's after the video id, e.g. "?t=5". re-find returns [whole-match group-1 group-2 ... group-n]. The video id is so the vector looks like [url video-id], so we destructure it. This all fails if the user passes in a...
(ns youtube-channel-data.utils (:require [clojure.data.json :as json] [clojure.string :as str] [clojure.math :as m]) (:import [java.time Duration ZonedDateTime] [java.net URLEncoder])) (set! *warn-on-reflection* true) (defn json-value-reader [key value] (case key value))...
5f48da962b93909a4be7af06fdc9e73f59fa219aae12f87f2d75e7a47834d4f1
ocamllabs/ocaml-effects
mach.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/asmcomp/mach.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . type integer_comparison = Isigned ...
eee6db7b2cfa2ff5403558d05beeb7540d1b48d271f823317367b8b8e6e73ecb
eihli/phonetics
syllabify_test.clj
(ns com.owoga.phonetics.syllabify-test (:require [clojure.test :refer :all] [com.owoga.phonetics.syllabify :refer :all])) (deftest syllabification-test (testing "alaska" (is (= '(("AH") ("L" "AE" "S") ("K" "AH")) (syllabify '("AH" "L" "AE" "S" "K" "AH"))))) (testing "parentheses" (...
null
https://raw.githubusercontent.com/eihli/phonetics/e309f83630d66cd6dbfb5f816efd2a90c0dfdcda/test/com/owoga/phonetics/syllabify_test.clj
clojure
Lax vowels can only occur in closed syllables. Since we are syllabifying phones, we don't need to worry about handling ambisyllabic words. There's no such thing.
(ns com.owoga.phonetics.syllabify-test (:require [clojure.test :refer :all] [com.owoga.phonetics.syllabify :refer :all])) (deftest syllabification-test (testing "alaska" (is (= '(("AH") ("L" "AE" "S") ("K" "AH")) (syllabify '("AH" "L" "AE" "S" "K" "AH"))))) (testing "parentheses" (...
d488f2aba12467bb7150f6fa94eade2817329f1d7e2bfd5722766a5cc78adbe2
mitchellwrosen/planet-mitchell
Primitive.hs
module Vector.Primitive ( module Data.Vector.Primitive ) where import Data.Vector.Primitive
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Vector/Primitive.hs
haskell
module Vector.Primitive ( module Data.Vector.Primitive ) where import Data.Vector.Primitive
8fce9052d857c1cb16b38016f191f6db53a9080956efe26fed58fd0345fbdc0a
metaocaml/ber-metaocaml
t130-getvectitem.ml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if [| 1; 2 |].(1) <> 2 then raise Not_found;; * 0 CONSTIN...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocaml/t130-getvectitem.ml
ocaml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if [| 1; 2 |].(1) <> 2 then raise Not_found;; * 0 CONSTIN...
4ea6fc5adbe61334e192f363da3d1e8585c447c112736c60a3a6004dc513c761
mikera/clojure-utils
arrays.clj
(ns mikera.cljutils.arrays "Utility functions for dealing with Java arrays" (:use mikera.cljutils.loops) (:import java.lang.reflect.Array) (:refer-clojure :exclude [aget])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (defn array? "Returns true if the argument is a Java array, fal...
null
https://raw.githubusercontent.com/mikera/clojure-utils/92f7fd7a40c9cf22ab7004a304303e45ea4d4284/src/main/clojure/mikera/cljutils/arrays.clj
clojure
(ns mikera.cljutils.arrays "Utility functions for dealing with Java arrays" (:use mikera.cljutils.loops) (:import java.lang.reflect.Array) (:refer-clojure :exclude [aget])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (defn array? "Returns true if the argument is a Java array, fal...
6bf53099d56542f96753c42630dceebe6ab8437b0f02c9259af23595d949a330
gfngfn/Sesterl
typeID.ml
type t = { number : int; address : Address.t; name : string; } let fresh = let current_max = ref 0 in (fun (address : Address.t) (name : string) -> incr current_max; { number = !current_max; address = address; name = name; } ) let hash tyid = tyid.number let co...
null
https://raw.githubusercontent.com/gfngfn/Sesterl/3e40272b294e85554038478e2533011a4ac2a0d2/src/typeID.ml
ocaml
type t = { number : int; address : Address.t; name : string; } let fresh = let current_max = ref 0 in (fun (address : Address.t) (name : string) -> incr current_max; { number = !current_max; address = address; name = name; } ) let hash tyid = tyid.number let co...
443ed489f3e4fd98ecb5148d11c99994dcfb25cc72d805f02f6e46c549d12ea5
clojure-interop/google-cloud-clients
ProductSearchClient$ListProductsPage.clj
(ns com.google.cloud.vision.v1p3beta1.ProductSearchClient$ListProductsPage (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1p3beta1 ProductSearchClient$ListProductsPage])) (defn create-page-async "context - `com.google.api.gax.rpc.PageContext` future-response - `com.google.a...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1p3beta1/ProductSearchClient%24ListProductsPage.clj
clojure
(ns com.google.cloud.vision.v1p3beta1.ProductSearchClient$ListProductsPage (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1p3beta1 ProductSearchClient$ListProductsPage])) (defn create-page-async "context - `com.google.api.gax.rpc.PageContext` future-response - `com.google.a...
f096c18473c59aadd736ebed8f8ad1401a8cf111ba2b9aaf0ff0c78259db6c2a
alesaccoia/festival_flinger
cmu_us_axb_phrasing.scm
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Language Technologies Institute # # # # ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/us/cmu_us_axb_cg/festvox/cmu_us_axb_phrasing.scm
scheme
## distribute, sublicense, and/or sell copies of this work, and to ## ## the following conditions: ## ## Email: ## Load any necessary files here The name and filename off the ngram with the a priori ngram model for pre...
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Language Technologies Institute # # # # ...
7b47931fb184c09bafdaf45e37ef13bb7e30044f1fa1167c864b4f3689c0b732
tek/helic
Client.hs
{-# options_haddock prune #-} -- |HTTP Client, Internal module Helic.Net.Client where import Exon (exon) import qualified Polysemy.Conc as Conc import Polysemy.Http (Manager) import qualified Polysemy.Http.Effect.Manager as Manager import qualified Polysemy.Log as Log import Polysemy.Time (MilliSeconds (MilliSeconds)...
null
https://raw.githubusercontent.com/tek/helic/055b2ffa063936ad4ae6249c9e6e0603482baaa9/packages/helic/lib/Helic/Net/Client.hs
haskell
# options_haddock prune # |HTTP Client, Internal
module Helic.Net.Client where import Exon (exon) import qualified Polysemy.Conc as Conc import Polysemy.Http (Manager) import qualified Polysemy.Http.Effect.Manager as Manager import qualified Polysemy.Log as Log import Polysemy.Time (MilliSeconds (MilliSeconds)) import Servant (NoContent, type (:<|>) ((:<|>))) impor...
abd953e59d7dd34a9a6f3af60987256cb80df17c04c3eaf205dd0b81bd9f67d0
sdiehl/elliptic-curve
BN254BT.hs
module Data.Curve.Weierstrass.BN254BT ( module Data.Curve.Weierstrass , Point(..) * curve , module Data.Curve.Weierstrass.BN254BT ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass import Data.Curve.Weierstrass.BN254B (BN254B, Fq, Fr) ------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BN254BT.hs
haskell
----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- # INLINABLE a_ # # INLINABLE h_ # | Affine BN254B curve point. | Jacobian BN254B point. | Projective BN254B point. ---------------------------------------...
module Data.Curve.Weierstrass.BN254BT ( module Data.Curve.Weierstrass , Point(..) * curve , module Data.Curve.Weierstrass.BN254BT ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass import Data.Curve.Weierstrass.BN254B (BN254B, Fq, Fr) | Field o...
e62c9832f0ea514ac3f5aea9f5c386f61016ea0a41fa3b2b2021a7f8daad93de
openmusic-project/openmusic
libsndfile-api.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you can redist...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/omsounds/audio-api/libsndfile/libsndfile-api.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. =================...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License ...
a15efa6a5e261b47d4a0b437c35af2181305e9acaf4e17faf5310b1b4be56595
epgsql/epgsql
epgsql_cmd_prepared_query.erl
%% @doc Almost the same as equery, but don't execute 'CLOSE' %% %% So, statement can be reused multiple times. %% ``` %% > Bind < BindComplete %% > Execute %% < DataRow* %% < CommandComplete %% > Sync %% < ReadyForQuery %% ''' -module(epgsql_cmd_prepared_query). -behaviour(epgsql_command). -export([init/1, execute/2,...
null
https://raw.githubusercontent.com/epgsql/epgsql/f811a09926892dbd1359afe44a9bfa8f6907b322/src/commands/epgsql_cmd_prepared_query.erl
erlang
@doc Almost the same as equery, but don't execute 'CLOSE' So, statement can be reused multiple times. ``` > Bind > Execute < DataRow* < CommandComplete > Sync < ReadyForQuery ''' Why do we need this?
< BindComplete -module(epgsql_cmd_prepared_query). -behaviour(epgsql_command). -export([init/1, execute/2, handle_message/4]). -export_type([response/0]). -type response() :: {ok, Count :: non_neg_integer(), Cols :: [epgsql:column()], Rows :: [tuple()]} | {ok, Count :: non_neg_integer()} ...
9548e80a6e1cb8cab37aac71d5f0d513e24b225da600bdd86b829ff2ee1e8ce7
patricoferris/ocaml-multicore-monorepo
lE.mli
type configuration = { email : Emile.mailbox option; certificate_seed : string option; certificate_key_type : X509.Key_type.t; certificate_key_bits : int option; hostname : [ `host ] Domain_name.t; account_seed : string option; account_key_type : X509.Key_type.t; account_key_bits : int option; } module...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/vendor/paf/lib/lE.mli
ocaml
type configuration = { email : Emile.mailbox option; certificate_seed : string option; certificate_key_type : X509.Key_type.t; certificate_key_bits : int option; hostname : [ `host ] Domain_name.t; account_seed : string option; account_key_type : X509.Key_type.t; account_key_bits : int option; } module...
90554bb36174125b11b88c6db80edbde37c7c22aed48a44c7d148389d581fe12
05st/artemis
Type.hs
{-# Language PatternSynonyms #-} {-# Language LambdaCase #-} module Type where import Data.List import Data.Set import qualified Data.Map as Map import Name type TEnv = Map.Map QualifiedName (Scheme, Bool) data TVar = TV String Kind deriving (Eq, Ord) data Type = TCon QualifiedName [Type] | TVar TVar deriving (Eq) ...
null
https://raw.githubusercontent.com/05st/artemis/4d329a8e221076678a44fa29913a59892bb1b2ab/src/Type.hs
haskell
# Language PatternSynonyms # # Language LambdaCase #
module Type where import Data.List import Data.Set import qualified Data.Map as Map import Name type TEnv = Map.Map QualifiedName (Scheme, Bool) data TVar = TV String Kind deriving (Eq, Ord) data Type = TCon QualifiedName [Type] | TVar TVar deriving (Eq) data Scheme = Forall (Set TVar) Type deriving (Show) data Ki...
a181dab13ddc88d4367e829c8e07890f2cbeccaa035e00e963f673945d020ecb
tsloughter/kuberl
kuberl_v1alpha1_cluster_role_binding.erl
-module(kuberl_v1alpha1_cluster_role_binding). -export([encode/1]). -export_type([kuberl_v1alpha1_cluster_role_binding/0]). -type kuberl_v1alpha1_cluster_role_binding() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'roleRef' ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1alpha1_cluster_role_binding.erl
erlang
-module(kuberl_v1alpha1_cluster_role_binding). -export([encode/1]). -export_type([kuberl_v1alpha1_cluster_role_binding/0]). -type kuberl_v1alpha1_cluster_role_binding() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'roleRef' ...
a2090403f742819151cb5eed53ea4449455eced0147907613479f94dc7fc1fe9
tjammer/raylib-ocaml
raygui.ml
include Functions module Default = struct type t = [ `Text_size | `Text_spacing | `Line_color | `Background_color ] end module Toggle = struct type t = [ `Padding_toggle ] end module Slider = struct type t = [ `Width_slider | `Padding_slider ] end module ProgressBar = struct type t = [ `Padding_progressbar ...
null
https://raw.githubusercontent.com/tjammer/raylib-ocaml/0bf114c7102edea6d7d97fcc166204f289b60c61/src/raygui/raygui.ml
ocaml
include Functions module Default = struct type t = [ `Text_size | `Text_spacing | `Line_color | `Background_color ] end module Toggle = struct type t = [ `Padding_toggle ] end module Slider = struct type t = [ `Width_slider | `Padding_slider ] end module ProgressBar = struct type t = [ `Padding_progressbar ...
528bafaa97792d79ab984999fc07d1e013c7d8fa381a3ab83df6ab870a5f174a
FranklinChen/hugs98-plus-Sep2006
Bits.hs
# OPTIONS_GHC -fno - implicit - prelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Bits Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : expe...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/Data/Bits.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Bits License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable This module defines bitwise operations for signed and unsigned integers. ...
# OPTIONS_GHC -fno - implicit - prelude # Copyright : ( c ) The University of Glasgow 2001 ' Integer ' types are available from this module , and instances for module Data.Bits ( Bits( ) instance Bits Int instance Bits Integer ) where #if defined(__GLASGOW_HASKELL__) || defined(__HUGS__) #includ...
63a31eb56b30a75ccc04041ce16f1e30da03a493053d1ba6f0d3d7797cd9c906
pascal-knodel/haskell-craft
E'11'20.hs
-- -- -- ------------------ Exercise 11.20 . ------------------ -- -- -- module E'11'20 where import B'C'11 ( iter , succ ) import Prelude hiding (succ) -- Type: -------- {- GHCi> :t iter :t succ -} -- iter :: Integer -> (a -> a) -> a -> a -- succ :: Integer -> Integer -- iter ...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/_/links/E'11'20.hs
haskell
---------------- ---------------- Type: ------ GHCi> :t iter :t succ iter :: Integer -> (a -> a) -> a -> a succ :: Integer -> Integer iter :: Integer -> (a -> a) -> a -> a <=> (iter n) :: (a -> a) -> a -> a ...
Exercise 11.20 . module E'11'20 where import B'C'11 ( iter , succ ) import Prelude hiding (succ) | applying " n " , cancelling first " Integer " " \n - > iter n succ " puts the " Integer " argument " n " at the first place ...
163fb36bfc9719979a6c902a1edd61717fe374690447bdd47d66ba3cbde563b7
illiichi/orenolisp
layout.clj
(ns orenolisp.view.layout.layout (:require [orenolisp.model.tree :as tr] [orenolisp.model.editor :as ed])) (defrecord Size [w h newline?]) (defn ->Size [w h] (Size. w h false)) (defn ->Size-newline [w h] (Size. w h true)) (defrecord Bound [x y size] Object (toString [this] (str [x y (:w size) (:...
null
https://raw.githubusercontent.com/illiichi/orenolisp/7b085fb687dbe16b5cbe8c739238bbaf79156814/src/orenolisp/view/layout/layout.clj
clojure
(ns orenolisp.view.layout.layout (:require [orenolisp.model.tree :as tr] [orenolisp.model.editor :as ed])) (defrecord Size [w h newline?]) (defn ->Size [w h] (Size. w h false)) (defn ->Size-newline [w h] (Size. w h true)) (defrecord Bound [x y size] Object (toString [this] (str [x y (:w size) (:...
3523efaff59e8ff59147f8ac93f1faa822b381fecb00012276ac907fa0b9fe16
sionescu/static-vectors
impl-sbcl.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; --- SBCL implementation ;;; (in-package :static-vectors) (declaim (inline fill-foreign-memory)) (defun fill-foreign-memory (pointer length value) "Fill LENGTH octets in foreign memory area POINTER with VALUE." (foreign-funcall "memset" :pointer pointer :int val...
null
https://raw.githubusercontent.com/sionescu/static-vectors/4eac959d2e8db00c267a4a0a3def6638a07fbe19/src/impl-sbcl.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- for the final #\Null
--- SBCL implementation (in-package :static-vectors) (declaim (inline fill-foreign-memory)) (defun fill-foreign-memory (pointer length value) "Fill LENGTH octets in foreign memory area POINTER with VALUE." (foreign-funcall "memset" :pointer pointer :int value :size length :pointer) pointer) (declaim (inline ...
26b0263d79a347dfb5d5bbcaea37e487fda2c561b99a7bb6cb8c8de0595cfb1a
Clozure/ccl-tests
pop.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Apr 19 22:27:18 2003 ;;;; Contains: Tests of POP (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest pop.1 (let ((x (copy-tree '(a b c)))) (let ((y (pop x))) (list x y))) ((b c) a)) (deftest pop.2 (let ((x nil)) (let ((y (pop...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/pop.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of POP Test that explicit calls to macroexpand in subforms are done in the correct environment Confirm argument is executed just once. Need to add tests of POP vs. various accessors
Author : Created : Sat Apr 19 22:27:18 2003 (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest pop.1 (let ((x (copy-tree '(a b c)))) (let ((y (pop x))) (list x y))) ((b c) a)) (deftest pop.2 (let ((x nil)) (let ((y (pop x))) (list x y))) (nil nil)) (deftest pop...