_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 |
|---|---|---|---|---|---|---|---|---|
c1ad0b140f56cd753bc3c59e4594c4fa1f89bf82a73263d777ab014d6d296a94 | TrustInSoft/tis-interpreter | gtk_form.mli | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/gui/gtk_form.mli | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
a734f35aedbc7278bb0eef6bae3f3746f31482ffd3264c3aeb00539f94da9a88 | kennytilton/its-alive | integrity.lisp | ;; -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
#|
Cells -- Automatic Dataflow Managememnt
|#
(in-package :cells)
(define-constant *ufb-opcodes* '(:tell-dependents
:awaken
:client
:ephemeral-reset
... | null | https://raw.githubusercontent.com/kennytilton/its-alive/9a627c1b7f16efc005103985ce27a4bcdbab9fce/lisp/integrity.lisp | lisp | -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
Cells -- Automatic Dataflow Managememnt
,(when debug
`(trc "integrity action entry" opcode defer-info ',body))
(when *c-debug*
(print `(with-cc-fires!!!!!!!!!! ,',id))
something that will help someone who tries to use
thus by ... |
(in-package :cells)
(define-constant *ufb-opcodes* '(:tell-dependents
:awaken
:client
:ephemeral-reset
:change
:post-change))
(defmacro with-integrity ... |
bd9dd3a2e5804775ac8c42eabf4ff8b7189d07ba3cdfc9fb7aa35678bd14dfeb | jaked/froc | froc_direct.ml | let active_prompt = ref None
let direct f =
let t, u = Froc_ddg.make_changeable () in
let p = Delimcc.new_prompt () in
active_prompt := Some p;
Delimcc.push_prompt p begin fun () ->
let r =
try Froc_ddg.Value (f ())
with e -> Froc_ddg.Fail e in
active_prompt := None;
Froc_ddg.write_res... | null | https://raw.githubusercontent.com/jaked/froc/6068a1fab883ed9254bfeb53a1f9c15e8af0bb20/src/froc-direct/froc_direct.ml | ocaml | let active_prompt = ref None
let direct f =
let t, u = Froc_ddg.make_changeable () in
let p = Delimcc.new_prompt () in
active_prompt := Some p;
Delimcc.push_prompt p begin fun () ->
let r =
try Froc_ddg.Value (f ())
with e -> Froc_ddg.Fail e in
active_prompt := None;
Froc_ddg.write_res... | |
e02348c8ce2aec3346d04f968cded9aebb463c94c366492c6cb4ebef8242d947 | bobatkey/foveran | IdiomNBE.hs | module IdiomNBE where
import Text.Show.Functions
import Control.Applicative
data Type
= B | Type :=> Type | De Type | Type :*: Type
deriving (Eq, Show)
infixr 5 :=>
infixr 6 :*:
data Term
= Var Int
| Free Type String
| Lam Type Term
| App Term Term
| Pure Term
| Ap Term Term
... | null | https://raw.githubusercontent.com/bobatkey/foveran/e57463e3f6923becdf1249cd2fd0ccfcd566f7c5/experiments/IdiomNBE.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------ | module IdiomNBE where
import Text.Show.Functions
import Control.Applicative
data Type
= B | Type :=> Type | De Type | Type :*: Type
deriving (Eq, Show)
infixr 5 :=>
infixr 6 :*:
data Term
= Var Int
| Free Type String
| Lam Type Term
| App Term Term
| Pure Term
| Ap Term Term
... |
e2818e3bc392d8e47ebf0e1ec2c099c61e23e9e09a3ef5a6c91f2f7a840a1003 | ninenines/bullet | clock_sup.erl | %% Feel free to use, reuse and abuse the code in this file.
@private
-module(clock_sup).
-behaviour(supervisor).
%% API.
-export([start_link/0]).
%% supervisor.
-export([init/1]).
%% API.
-spec start_link() -> {ok, pid()}.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
%% supervisor.
in... | null | https://raw.githubusercontent.com/ninenines/bullet/309432cd4e43f49434f4b34a68e94ad0f4b7d681/examples/clock/src/clock_sup.erl | erlang | Feel free to use, reuse and abuse the code in this file.
API.
supervisor.
API.
supervisor. |
@private
-module(clock_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-spec start_link() -> {ok, pid()}.
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Procs = [],
{ok, {{one_for_one, 10, 10}, Procs}}.
|
dcae564f7081f4258b6cf2364902f7a6bcf0eff3d3433c3ae473d6e3cb8ae8f5 | cyverse-archive/DiscoveryEnvironmentBackend | data.clj | (ns data-info.routes.domain.data
(:use [common-swagger-api.schema :only [describe
NonBlankString
PagingParams
SortFieldDocs
SortFieldOptionalKey
... | null | https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/data-info/src/data_info/routes/domain/data.clj | clojure | (ns data-info.routes.domain.data
(:use [common-swagger-api.schema :only [describe
NonBlankString
PagingParams
SortFieldDocs
SortFieldOptionalKey
... | |
f236317bfa518abd1ba603c58bfaf40ff76c35410158283571ef59c0ed5634f5 | saevarb/haskord | Main.hs | # LANGUAGE DataKinds #
# LANGUAGE RecordWildCards #
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad (void)
import qualified Data.Text as T
import Haskord
import Haskord.Types
reversePlugin
:: DispatchPlugin -- we want to handle a dispatch message
"Rever... | null | https://raw.githubusercontent.com/saevarb/haskord/d1bb07bcc4f3dbc29f2dfd3351ff9f16fc100c07/examples/src/Main.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
we want to handle a dispatch message
the plugin's name
the dispatch event is MESSAGE_CREATE
No state
simplePlugin assumes you don't want any state, the handler function
only takes the message payload as parameter
we want to handle a dispatch message
the plugin's... | # LANGUAGE DataKinds #
# LANGUAGE RecordWildCards #
module Main where
import Control.Monad (void)
import qualified Data.Text as T
import Haskord
import Haskord.Types
reversePlugin
reversePlugin =
simplePlugin $ \(MessageCreatePayload Message {..}) -> do
let split = T.words content
case split of
... |
fc6e594e035addd7955e7795c35416a9683acb1ff308b7a76fcfaea49355f03b | FailWhaleBrigade/water-wars | Animation.hs | module WaterWars.Client.Render.Animation where
import ClassyPrelude
import Graphics.Gloss as Gloss
import WaterWars.Core.Game
data Direction = LeftDir | RightDir deriving (Eq, Show, Read, Ord, Enum, Bounded)
data Animation = Animation
{ countDownTilNext :: Integer
, countDownMax :: Integer
, animationP... | null | https://raw.githubusercontent.com/FailWhaleBrigade/water-wars/bdd0616b1eed281ace499f059b4cc1e72bc50d05/client/src/WaterWars/Client/Render/Animation.hs | haskell | module WaterWars.Client.Render.Animation where
import ClassyPrelude
import Graphics.Gloss as Gloss
import WaterWars.Core.Game
data Direction = LeftDir | RightDir deriving (Eq, Show, Read, Ord, Enum, Bounded)
data Animation = Animation
{ countDownTilNext :: Integer
, countDownMax :: Integer
, animationP... | |
baf216a336522a336c5bc10633c0e2b1aebad5e37eb31fbbaf37e4274a46f786 | 7c6f434c/lang-os | socket-command-client.lisp | (defpackage :lisp-os-helpers/socket-command-client
(:use :common-lisp
:lisp-os-helpers/safe-read :lisp-os-helpers/socket-command-server
:lisp-os-helpers/shell :lisp-os-helpers/util
)
(:export
#:ask-server
#:coerce-to-socket-stream
#:with-uid-auth
#:with-presence-auth
#:wi... | null | https://raw.githubusercontent.com/7c6f434c/lang-os/be4331d225629bff322facf603a89ac707acea83/lisp-os-helpers/socket-command-client.lisp | lisp | (defpackage :lisp-os-helpers/socket-command-client
(:use :common-lisp
:lisp-os-helpers/safe-read :lisp-os-helpers/socket-command-server
:lisp-os-helpers/shell :lisp-os-helpers/util
)
(:export
#:ask-server
#:coerce-to-socket-stream
#:with-uid-auth
#:with-presence-auth
#:wi... | |
372d1131b9e1c4d440685a4b86022ec8a705761fe69e65b5385e9a678c368f24 | Clozure/ccl | ppc64-arch.lisp | -*- Mode : Lisp ; Package : ( : use CL ) -*-
;;;
Copyright 1994 - 2009 Clozure Associates
;;;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
;;; you may not use this file except in compliance with the License.
;;; You may obtain a copy of the License at
;;;
;;; -2.0
;;;
;;; Unless requir... | null | https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/compiler/PPC/PPC64/ppc64-arch.lisp | lisp | Package : ( : use CL ) -*-
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the s... | Copyright 1994 - 2009 Clozure Associates
distributed under the License is distributed on an " AS IS " BASIS ,
(defpackage "PPC64"
(:use "CL")
#+ppc64-target
(:nicknames "TARGET"))
(in-package "PPC64")
(eval-when (:compile-toplevel :load-toplevel :execute)
sigh . Could use r13+bias on Linux ,
but Appl... |
131a6c5cc243a1d1c76149ce81a14a03503e3646493edc8624af26d76d712521 | dmvianna/haskellbook | Ch11Ex-asPatterns.hs | import Data.Char
f :: Show a => (a, b) -> IO (a, b)
f t@(a, _) = do
print a
return t
isSubsequenceOf :: (Eq a) => [a] -> [a] -> Bool
isSubsequenceOf sub par =
case sub of
[] -> True
x:xs -> x `elem` par && isSubsequenceOf xs par
isLetter : : Bool
-- isLetter = flip elem (['a'..'z'] ++ ['A'..... | null | https://raw.githubusercontent.com/dmvianna/haskellbook/b1fdce66283ccf3e740db0bb1ad9730a7669d1fc/src/Ch11Ex-asPatterns.hs | haskell | isLetter = flip elem (['a'..'z'] ++ ['A'..'Z'])
Phone excercise | import Data.Char
f :: Show a => (a, b) -> IO (a, b)
f t@(a, _) = do
print a
return t
isSubsequenceOf :: (Eq a) => [a] -> [a] -> Bool
isSubsequenceOf sub par =
case sub of
[] -> True
x:xs -> x `elem` par && isSubsequenceOf xs par
isLetter : : Bool
splitWords :: String -> [String]
splitWords ... |
e84bc735e1194772027cb446b53f45184713345224c7739a6c23dcdc96357d52 | TaylanUB/scheme-srfis | test-runner-simple.body.scm | Copyright ( c ) 2005 , 2006 , 2007 , 2012 , 2013 Per Bothner
Added " full " support for Chicken , Gauche , and SISC .
, Copyright ( c ) 2005 .
Modified for Scheme Spheres by , Copyright ( c ) 2012 .
Support for Guile 2 by < > , Copyright ( c ) 2014 .
Refactored by , Copyright ( c ) 2014 , ... | null | https://raw.githubusercontent.com/TaylanUB/scheme-srfis/b6e4e8a17e5df2cb1bd2137bf06466535571da6f/srfi/64/test-runner-simple.body.scm | scheme |
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
furnished to do so, subject to the following conditions:
... | Copyright ( c ) 2005 , 2006 , 2007 , 2012 , 2013 Per Bothner
Added " full " support for Chicken , Gauche , and SISC .
, Copyright ( c ) 2005 .
Modified for Scheme Spheres by , Copyright ( c ) 2012 .
Support for Guile 2 by < > , Copyright ( c ) 2014 .
Refactored by , Copyright ( c ) 2014 , ... |
2353512396a3c3236be4378884aa9e7ee5c6d46892129722c03939d5019426c5 | Apress/beg-haskell | Distr.hs | # LANGUAGE DeriveDataTypeable , DeriveGeneric , TemplateHaskell , DoAndIfThenElse #
module Main where
import Control.Concurrent
import Control.Distributed.Process
import Control.Distributed.Process.Node (initRemoteTable)
import Control.Distributed.Process.Closure
import Control.Distributed.Process.Backend.SimpleLocal... | null | https://raw.githubusercontent.com/Apress/beg-haskell/aaacbf047d553e6177c38807e662cc465409dffd/chapter8/src/Distr.hs | haskell | init conversation
it could be more fruitful
init conversation
it could be more fruitful | # LANGUAGE DeriveDataTypeable , DeriveGeneric , TemplateHaskell , DoAndIfThenElse #
module Main where
import Control.Concurrent
import Control.Distributed.Process
import Control.Distributed.Process.Node (initRemoteTable)
import Control.Distributed.Process.Closure
import Control.Distributed.Process.Backend.SimpleLocal... |
fd624d1ff50b36f41a980f5e1d6dd016eb93d8da1482dd32f812153bafb87ffc | databrary/databrary | VolumeAccess.hs | # LANGUAGE TemplateHaskell , RecordWildCards , OverloadedStrings , ScopedTypeVariables , DataKinds #
module Model.VolumeAccess
( module Model.VolumeAccess.Types
, lookupVolumeAccess
, lookupVolumeAccessParty
, lookupPartyVolumeAccess
, lookupPartyVolumes
, setDefaultVolumeAccessesForCreated
, changeVolume... | null | https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/VolumeAccess.hs | haskell | # LANGUAGE TemplateHaskell , RecordWildCards , OverloadedStrings , ScopedTypeVariables , DataKinds #
module Model.VolumeAccess
( module Model.VolumeAccess.Types
, lookupVolumeAccess
, lookupVolumeAccessParty
, lookupPartyVolumeAccess
, lookupPartyVolumes
, setDefaultVolumeAccessesForCreated
, changeVolume... | |
977214500500a0edc4323abf41a1dece84d2f01e8efae8ac220a8059714b7d8c | ds-wizard/engine-backend | AppContext.hs | module Wizard.Model.Context.AppContext where
import Control.Concurrent.MVar (MVar)
import Control.Monad.Except (ExceptT, MonadError)
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Logger (LoggingT, MonadLogger)
import Control.Monad.Reader (MonadReader, ReaderT)
import Data.Pool (Pool)
import qualified Da... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/72eb656dcce17115acf304438198aad11219db11/engine-wizard/src/Wizard/Model/Context/AppContext.hs | haskell | module Wizard.Model.Context.AppContext where
import Control.Concurrent.MVar (MVar)
import Control.Monad.Except (ExceptT, MonadError)
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Logger (LoggingT, MonadLogger)
import Control.Monad.Reader (MonadReader, ReaderT)
import Data.Pool (Pool)
import qualified Da... | |
eb8d5e1d6f5b48ee436351fcfa99eb17bc15e1cfcab4766281f49fa19e72e19d | xvw/quasar | iterator.ml | open Js_of_ocaml
class type ['a] step_js =
object
method _done : bool Js.t Js.readonly_prop
method value : 'a Js.Optdef.t Js.readonly_prop
end
class type ['a] js =
object
method next : 'a step_js Js.t Js.meth
end
type 'a step =
| Done
| No_value
| Value of 'a
type 'a t = 'a js Js.t
let n... | null | https://raw.githubusercontent.com/xvw/quasar/a414d32ded53562802893590e2996bb8daeb0cf3/src/js/iterator.ml | ocaml | open Js_of_ocaml
class type ['a] step_js =
object
method _done : bool Js.t Js.readonly_prop
method value : 'a Js.Optdef.t Js.readonly_prop
end
class type ['a] js =
object
method next : 'a step_js Js.t Js.meth
end
type 'a step =
| Done
| No_value
| Value of 'a
type 'a t = 'a js Js.t
let n... | |
153dc381e9179866770b06cc2cee247438c0400e6be2ba96abce368f767df8d9 | turquoise-hexagon/euler | solution.scm | (import
(euler))
(define (solve k n)
(let loop ((i 1) (cnt 0) (acc 0))
(if (= cnt n)
acc
(if (prime? i)
(if (= (modular-expt 10 k (* i 9)) 1)
(loop (+ i 1) (+ cnt 1) (+ acc i))
(loop (+ i 1) cnt acc))
(loop (+ i 1) cnt acc)))))
(let ((_ (solve #e1e9 40)))
(pri... | null | https://raw.githubusercontent.com/turquoise-hexagon/euler/fa058f7c391e8c9fd79cd8c143b924fca763f3ef/src/spoilers/132/solution.scm | scheme | (import
(euler))
(define (solve k n)
(let loop ((i 1) (cnt 0) (acc 0))
(if (= cnt n)
acc
(if (prime? i)
(if (= (modular-expt 10 k (* i 9)) 1)
(loop (+ i 1) (+ cnt 1) (+ acc i))
(loop (+ i 1) cnt acc))
(loop (+ i 1) cnt acc)))))
(let ((_ (solve #e1e9 40)))
(pri... | |
41e565f932a3f82e55ede3320f64b7b80dc2f9f40cf4ad5c69b8dd69e50c6b65 | rollacaster/sketches | P_2_2_3_01.cljs | (ns sketches.generative-desgin.P-02.P-2-2-3-01
(:require [quil.core :as q :include-macros true]
[quil.middleware :as md]))
(def form-resolution 15)
(def step-size 2)
(def distortion-factor 1)
(def init-radius 15)
(defn setup []
(q/stroke 0 50)
(q/stroke-weight 0.75)
(q/background 255)
(let [angl... | null | https://raw.githubusercontent.com/rollacaster/sketches/ba79fccf2a37139de9193ed2ea7a6cc04b63fad0/src/sketches/generative_desgin/P_02/P_2_2_3_01.cljs | clojure | (ns sketches.generative-desgin.P-02.P-2-2-3-01
(:require [quil.core :as q :include-macros true]
[quil.middleware :as md]))
(def form-resolution 15)
(def step-size 2)
(def distortion-factor 1)
(def init-radius 15)
(defn setup []
(q/stroke 0 50)
(q/stroke-weight 0.75)
(q/background 255)
(let [angl... | |
0a2523228f939aefa4ed35d7c774ad15d9817a4bcd63f156e031485f2c2016b1 | lspitzner/brittany | Test226.hs | type instance MyFam Bool = String
| null | https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test226.hs | haskell | type instance MyFam Bool = String
| |
577c291603c5d527f4d2ba80d822e5b5f8294d659d105c4a03da6f886d1f7675 | ddmcdonald/sparser | ns-unknown-rd-items-covid-2020-04-03-0403-com-pmc-501-600.lisp |
(IN-PACKAGE :SP)
(DEFPARAMETER |*NS-RD-covid-2020-04-03-0403-COM-PMC-501-600*|
'("198A" "198AA" "198C" "198CC" "323A" "3×FLAG" "577C" "<0.001" "<0.05" "<1" "<10%" "<10.0"
"<108" "<12" "<15" "<2" "<2-fold" "<20%" "<3.3" "<30" "<40" "<5" "<5%" "<50" "<8" "<US▒1" "<p"
"<y" ">0.17" ">1" ">1000" ">1010" ">12" ">1... | null | https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/tools/ns-stuff/ns-unknown-rd-items-covid-2020-04-03-0403-com-pmc-501-600.lisp | lisp |
(IN-PACKAGE :SP)
(DEFPARAMETER |*NS-RD-covid-2020-04-03-0403-COM-PMC-501-600*|
'("198A" "198AA" "198C" "198CC" "323A" "3×FLAG" "577C" "<0.001" "<0.05" "<1" "<10%" "<10.0"
"<108" "<12" "<15" "<2" "<2-fold" "<20%" "<3.3" "<30" "<40" "<5" "<5%" "<50" "<8" "<US▒1" "<p"
"<y" ">0.17" ">1" ">1000" ">1010" ">12" ">1... | |
9c8795330ed6f15010391357c6306c96949982465d2b0bf6923bca932eca44fc | onyx-platform/learn-onyx | challenge_2_1.clj | (ns workshop.challenge-2-1
(:require [workshop.workshop-utils :as u]))
Workflows ; ; ;
(def workflow
[[:read-segments :times-three]
[:times-three :plus-fifty]
[:plus-fifty :write-segments]])
;;; Catalogs ;;;
(defn build-catalog
([] (build-catalog 5 50))
([batch-size batch-timeout]
[{:onyx/name ... | null | https://raw.githubusercontent.com/onyx-platform/learn-onyx/6bf1936f35d26e3c8cf171b5971e1bc95e82b3c8/src/workshop/challenge_2_1.clj | clojure | ; ;
Catalogs ;;;
<<< BEGIN FILL ME IN >>>
<<< END FILL ME IN >>>
Functions ;;;
; ; | (ns workshop.challenge-2-1
(:require [workshop.workshop-utils :as u]))
(def workflow
[[:read-segments :times-three]
[:times-three :plus-fifty]
[:plus-fifty :write-segments]])
(defn build-catalog
([] (build-catalog 5 50))
([batch-size batch-timeout]
[{:onyx/name :read-segments
:onyx/plugin ... |
e9f0b499405227d92d09d15555b89ba2b759d7250f1b00dfa3317f48ba7f0a5a | dimitaruzunov/fp-2018 | main-diagonal.scm | (require rackunit rackunit/text-ui)
(define (enumerate-interval from to)
(if (> from to)
'()
(cons from
(enumerate-interval (+ from 1) to))))
(define (map-with-index fn l)
(map fn l (enumerate-interval 0 (- (length l) 1))))
(define (main-diagonal matrix)
(map-with-index list-ref matrix)... | null | https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/06/main-diagonal.scm | scheme | (require rackunit rackunit/text-ui)
(define (enumerate-interval from to)
(if (> from to)
'()
(cons from
(enumerate-interval (+ from 1) to))))
(define (map-with-index fn l)
(map fn l (enumerate-interval 0 (- (length l) 1))))
(define (main-diagonal matrix)
(map-with-index list-ref matrix)... | |
4b920f4aeabdea2739b0e5b1d40bcc3eff615c45ecb63294b9c8bd795a621afe | fluent/fluent-logger-ocaml | example.ml | let () =
Printexc.record_backtrace true;
let module L = Fluent_logger in
let logger =
if Array.length Sys.argv > 1 then
(* use 'path' parameter for unix domain socket *)
L.create_for_unix Sys.argv.(1)
else
(* inet domain socket *)
L.create ()
in
let rec loop n i f = if i < n t... | null | https://raw.githubusercontent.com/fluent/fluent-logger-ocaml/3905bec43e5bdd40871bf994f0b98c23fa06d5cd/example/example.ml | ocaml | use 'path' parameter for unix domain socket
inet domain socket | let () =
Printexc.record_backtrace true;
let module L = Fluent_logger in
let logger =
if Array.length Sys.argv > 1 then
L.create_for_unix Sys.argv.(1)
else
L.create ()
in
let rec loop n i f = if i < n then (f i; loop n (i + 1) f) in
loop 240 0 (fun i ->
let result =
L.post log... |
e02515ba56340f24bd013b45fbe3f24a6bab19cd450c9041de22b6c66e3e71d9 | typedclojure/typedclojure | spec.clj | (ns typed-test.clj.spec
(:require [clojure.alpha.spec :as s]
[clojure.alpha.spec.gen :as gen]
[clojure.alpha.spec.test :as stest]
[clojure.test.check.generators :as tcg]
[typed.clj.spec :refer :all :as t]
[typed.clj.spec.test-utils :as tu]
[cloju... | null | https://raw.githubusercontent.com/typedclojure/typedclojure/82be8b54924ba5ccd0c1cebd509eabc9905ebf32/typed/clj.spec/test/typed_test/clj/spec.clj | clojure | doesn't respect s/+
[(U t/Symbol String) -> t/Symbol])
clojure.core/sorted-set (All [x] [x * -> (PersistentTreeSet x)])
clojure.core/list* (All [x]
(IFn [(U nil (Seqable x)) -> (t/NilableNonEmptyASeq x)]))
clojure.core/vector (All [r b ...]
(IFn ... | (ns typed-test.clj.spec
(:require [clojure.alpha.spec :as s]
[clojure.alpha.spec.gen :as gen]
[clojure.alpha.spec.test :as stest]
[clojure.test.check.generators :as tcg]
[typed.clj.spec :refer :all :as t]
[typed.clj.spec.test-utils :as tu]
[cloju... |
9811d4317a28073744402c70c5bec0f3859f9ec34109067c1a490551242ec0ca | bobzhang/fan | dumparsetree.ml |
let () =
Printast.implementation Format.std_formatter
@@ Parse.implementation (Lexing.from_channel stdin)
(* local variables: *)
(* compile-command: "ocamlopt.opt -I +compiler-libs ocamlcommon.cmxa dumpparsetree.ml -o dumpparsetree.native" *)
(* end: *)
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/tools/dumparsetree.ml | ocaml | local variables:
compile-command: "ocamlopt.opt -I +compiler-libs ocamlcommon.cmxa dumpparsetree.ml -o dumpparsetree.native"
end: |
let () =
Printast.implementation Format.std_formatter
@@ Parse.implementation (Lexing.from_channel stdin)
|
2cee1641c4ebfd94b149405b3c292881959845a20b69f990bc50c2770d840c3b | haskell-repa/repa | InstWord.hs | # OPTIONS_GHC -fno - warn - orphans #
{-# LANGUAGE UndecidableInstances #-}
module Data.Repa.Array.Material.Auto.InstWord
where
import Data.Repa.Array.Material.Auto.Base as A
import Data.Repa.Array.Material.Boxed as A
import Data.Repa.Array.Material.Foreign as A
import Data.Repa.Array.Gen... | null | https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-array/Data/Repa/Array/Material/Auto/InstWord.hs | haskell | # LANGUAGE UndecidableInstances #
------------------------------------------------------------------------------------------- Word8
# INLINE_ARRAY unsafeNewBuffer #
# INLINE_ARRAY unsafeThawBuffer #
# INLINE_ARRAY unsafeSliceBuffer #
# INLINE_ARRAY bufferLayout # | # OPTIONS_GHC -fno - warn - orphans #
module Data.Repa.Array.Material.Auto.InstWord
where
import Data.Repa.Array.Material.Auto.Base as A
import Data.Repa.Array.Material.Boxed as A
import Data.Repa.Array.Material.Foreign as A
import Data.Repa.Array.Generic.Convert as A
import Data.Re... |
7675df547cc0fe789dd171908c9f318a5cc7d43a35d97188cd276c4099c9c095 | camsaul/toucan2 | update_test.clj | (ns toucan2.update-test
(:require
[clojure.test :refer :all]
[methodical.core :as m]
[toucan2.connection :as conn]
[toucan2.instance :as instance]
[toucan2.model :as model]
[toucan2.pipeline :as pipeline]
[toucan2.protocols :as protocols]
[toucan2.query :as query]
[toucan2.select :as select... | null | https://raw.githubusercontent.com/camsaul/toucan2/5204b34d46f5adb3e52b022218049abe9b336928/test/toucan2/update_test.clj | clojure | fine
for whatever reason the order returned here is different between H2 and Postgres | (ns toucan2.update-test
(:require
[clojure.test :refer :all]
[methodical.core :as m]
[toucan2.connection :as conn]
[toucan2.instance :as instance]
[toucan2.model :as model]
[toucan2.pipeline :as pipeline]
[toucan2.protocols :as protocols]
[toucan2.query :as query]
[toucan2.select :as select... |
3897059b3b187d8fe52fbc4a1a1dd7f623cec5458c2110ea53555e45a025a044 | MyDataFlow/ttalk-server | treap.erl | %%%----------------------------------------------------------------------
%%% File : treap.erl
Author : < >
%%% Purpose : Treaps implementation
Created : 22 Apr 2008 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or... | null | https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/p1_utils/src/treap.erl | erlang | ----------------------------------------------------------------------
File : treap.erl
Purpose : Treaps implementation
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT A... | Author : < >
Created : 22 Apr 2008 by < >
ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License
Founda... |
150572f810e01777d1b81d07808e6731aca5f5905e2cecd79cd7ba0899ebeaac | sgbj/MaximaSharp | zacon.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/zacon.lisp | lisp | Compiled by f2cl version:
"f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':simple-array)
(:array-slicing nil) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ "
" macros.l , v fceac53... |
7b72688a521b3af6e513a4aafadbd09e2203ec3ed849242a00734d896568ebfb | BinaryAnalysisPlatform/bap | bap_toplevel.ml | open Core_kernel[@@warning "-D"]
open Bap_knowledge
open Knowledge.Syntax
let package = "bap"
type 'a t = 'a
type env = Knowledge.state ref
type main = Main
type 'p var = (main,'p option) Knowledge.slot
let state = ref Knowledge.empty
let slots = ref 0
let env = state
let set s = state := s
let reset () = state := K... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_types/bap_toplevel.ml | ocaml | open Core_kernel[@@warning "-D"]
open Bap_knowledge
open Knowledge.Syntax
let package = "bap"
type 'a t = 'a
type env = Knowledge.state ref
type main = Main
type 'p var = (main,'p option) Knowledge.slot
let state = ref Knowledge.empty
let slots = ref 0
let env = state
let set s = state := s
let reset () = state := K... | |
cd632a3390a71704c148f6e5641de22dc4805748840322e96c4b9dac82093d81 | brownplt/cs173-python | python-desugar.rkt | #lang plai-typed
(require "python-syntax.rkt"
"python-core-syntax.rkt")
;; cascade-lets will build up the nested lets, and use body as the
;; eventual body, preserving order of evaluation of the expressions
(define (cascade-lets (ids : (listof symbol))
(sts : (listof ScopeType))
... | null | https://raw.githubusercontent.com/brownplt/cs173-python/d8ae026172f269282e54366f16ec42e037117cb4/design5/python-desugar.rkt | racket | cascade-lets will build up the nested lets, and use body as the
eventual body, preserving order of evaluation of the expressions
[else (error 'get-vars "Case not implemented")]
#|
gets all of the assignments in the global scope
checks the existence of 'nonlocal' or 'global' declarations in the global scope
puts th... | #lang plai-typed
(require "python-syntax.rkt"
"python-core-syntax.rkt")
(define (cascade-lets (ids : (listof symbol))
(sts : (listof ScopeType))
(exprs : (listof CExp))
(body : CExp)) : CExp
(cond [(empty? ids) body]
[(cons? ids)
... |
1b35a2adeb50912d232c785ae28c0c334aa679d9fce242b3757e41dd962081e5 | heyoka/faxe | esp_modbus_read.erl | %%%-------------------------------------------------------------------
@author
( C ) 2022
%%% @doc
%%%
pull data via modbus tcp , supported read functions are :
%%% ['coils', 'hregs', 'iregs', 'inputs', 'memory']
%%%
%%% read multiple values with possibly different functions at once
%%%
%%% parameters are:
%%% ... | null | https://raw.githubusercontent.com/heyoka/faxe/07930d069d1d57841bd5577029628e0a348a89cb/apps/faxe/src/components/esp_modbus_read.erl | erlang | -------------------------------------------------------------------
@doc
['coils', 'hregs', 'iregs', 'inputs', 'memory']
read multiple values with possibly different functions at once
parameters are:
+ ip
+ device(integer) the modbus device id
// mandatory read params:
+ function(string_list) a list of read ... | @author
( C ) 2022
pull data via modbus tcp , supported read functions are :
+ port , defaults to 502
+ every(duration ) interval for reading values from a modbus device , defaults to 1s
one of [ ' int16 ' , ' int32 ' , ' float32 ' , ' coils ' , ' ascii ' , ' binary ' ]
Note that , if given , all parame... |
6fa8a36728d596ed6bc5fb77864f8048072cebb315e3c328056e7be0245556d4 | privet-kitty/cl-competitive | ceil-quotients.lisp | (defpackage :cp/ceil-quotients
(:use :cl)
(:export #:make-cquot-manager #:cquot-length #:cquot-n #:cquot-long-p #:cquot-csqrt
#:cquot-index #:cquot-get #:enum-cquotients #:map-cquotients))
(in-package :cp/ceil-quotients)
;; TODO: more tests and docs
(defstruct (cquot-manager (:constructor %make-cquot-m... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/d20a2044e312a1e80f1e6dff86ce445382884692/module/ceil-quotients.lisp | lisp | TODO: more tests and docs | (defpackage :cp/ceil-quotients
(:use :cl)
(:export #:make-cquot-manager #:cquot-length #:cquot-n #:cquot-long-p #:cquot-csqrt
#:cquot-index #:cquot-get #:enum-cquotients #:map-cquotients))
(in-package :cp/ceil-quotients)
(defstruct (cquot-manager (:constructor %make-cquot-manager)
... |
6179c54829fef33db1ff7e24eb621948ff9dfc040610d0707b18fa96a92bebb0 | fetburner/Coq2SML | printer.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/parsing/printer.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* These are the entry points for pri... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Names
open Libna... |
8ab8b971addf54eda1eef8ab6b7ee84c9d1aab4b9f4a06a7a668cb0c531da983 | lipas-liikuntapaikat/lipas | search_indexer.clj | (ns lipas.search-indexer
(:require
[clojure.core.async :as async]
[clojure.data.csv :as csv]
[clojure.string :as str]
[clojure.walk :as walk]
[lipas.backend.analysis.diversity :as diversity]
[lipas.backend.config :as config]
[lipas.backend.core :as core]
[lipas.backend.search :as search]
[l... | null | https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/daac765173647395ae90726919cc6d5ecab4bd8f/webapp/src/clj/lipas/search_indexer.clj | clojure | (ns lipas.search-indexer
(:require
[clojure.core.async :as async]
[clojure.data.csv :as csv]
[clojure.string :as str]
[clojure.walk :as walk]
[lipas.backend.analysis.diversity :as diversity]
[lipas.backend.config :as config]
[lipas.backend.core :as core]
[lipas.backend.search :as search]
[l... | |
e1240b1db18690953732a676a70e7fb306f720d9d901be3fd3b838d548d88b60 | matijapretnar/millet | location.ml | (** Source code locations *)
type t = { filename : string; line : int; column : int }
let print { filename; line; column } ppf =
if String.length filename != 0 then
Format.fprintf ppf "file %S, line %d, char %d" filename line column
else Format.fprintf ppf "line %d, char %d" (line - 1) column
let of_lexeme p... | null | https://raw.githubusercontent.com/matijapretnar/millet/27764aa4634fe3746d8a5255ccc56c4742ecc1d4/src/00-utils/location.ml | ocaml | * Source code locations |
type t = { filename : string; line : int; column : int }
let print { filename; line; column } ppf =
if String.length filename != 0 then
Format.fprintf ppf "file %S, line %d, char %d" filename line column
else Format.fprintf ppf "line %d, char %d" (line - 1) column
let of_lexeme position =
let filename = po... |
6910e506494e4e018330a6c69a3e9172b63c0b88b166c5aeeb61ba73133d751c | haroldcarr/learn-haskell-coq-ml-etc | Main.hs | module Main where
main :: IO ()
main = putStrLn "X"
| null | https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/cda4be21f41f668ecfcc095d07ba03f704c3f779/haskell/book/2021-05-06-Algebra_Driven_Design-Sandy_Maguire/app/Main.hs | haskell | module Main where
main :: IO ()
main = putStrLn "X"
| |
f52fa38ed59f4594a8486d80d964ba7696688862cadd610c1f6b1dd95b9b79ac | Idorobots/spartan | const-folding.rkt | #lang racket
;; Constant folding tests.
(require "../testing.rkt")
(require "../../src/compiler/ast.rkt")
(require "../../src/compiler/passes/const-folding.rkt")
(describe
"constant-folding"
(it "should not fold non-const primop-apps"
(check ((value gen-valid-symbol-node)
(node (gen-primop-app-no... | null | https://raw.githubusercontent.com/Idorobots/spartan/ef3b032906655585d284f1c9a33a58f1e35cb180/test/compiler/const-folding.rkt | racket | Constant folding tests. | #lang racket
(require "../testing.rkt")
(require "../../src/compiler/ast.rkt")
(require "../../src/compiler/passes/const-folding.rkt")
(describe
"constant-folding"
(it "should not fold non-const primop-apps"
(check ((value gen-valid-symbol-node)
(node (gen-primop-app-node 'car value)))
... |
a4758e276474b9bd2623db50befc305e05ecb8fff74211eec07c54598d6740fe | Zilliqa/scilla-compiler | Monomorphize.ml |
This file is part of scilla .
Copyright ( c ) 2019 - present Zilliqa Research Pvt . Ltd.
scilla is free software : you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation , either version 3 of the License , or ( at y... | null | https://raw.githubusercontent.com/Zilliqa/scilla-compiler/ac42584ec49a25c917a5ec4e6404b0c953b8e711/src/astlowering/Monomorphize.ml | ocaml | ********************************************************
Types used for the type- and control-flow analysis
********************************************************
Calling context, with the caller's tfa_data index representing context.
Attach a new context c to ctx.
* c is added to ctx and the resu... |
This file is part of scilla .
Copyright ( c ) 2019 - present Zilliqa Research Pvt . Ltd.
scilla is free software : you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation , either version 3 of the License , or ( at y... |
631e2199c20fc295dd6eabd8910f41b85bccc251cece2bc75dc6c366ea87bd2e | facebook/infer | PulseTaint.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/facebook/infer/ffb3909c0ff0467cf2f5963a7cd8a5de066f894b/infer/src/pulse/PulseTaint.ml | ocaml |
* 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
... | |
479343aee8ab6341cc7548fed3317bbeddd577840bec88573392bd104a708946 | JolifantoBambla/vk-generator | vulkan-define-conditions.lisp | ;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
Copyrigth ( c ) 2021 , < >
Copyright ( c ) 2016 , < >
;;; All rights reserved.
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated documentation
files ( the " Software " ) , t... | null | https://raw.githubusercontent.com/JolifantoBambla/vk-generator/abadc94a5fe92881e7516a33b10cf3b69bb6dc55/src/additional-files/vulkan-define-conditions.lisp | lisp | -*- Mode: Lisp; indent-tabs-mode: nil -*-
All rights reserved.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, an... | Copyrigth ( c ) 2021 , < >
Copyright ( c ) 2016 , < >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W... |
a7673d203fa774ff68598a176c635cedf2c7abbbdd0e68cf68855c916e03b857 | chris-taylor/Classical-Mechanics | Vector3.hs | # LANGUAGE TypeFamilies , FlexibleContexts , UndecidableInstances #
module Vector3 ( V3(..) ) where
import Control.Applicative hiding ((*>))
import Basis
import VectorSpace
import InnerSpace
data V3 a = V3 !a !a !a deriving (Eq,Ord)
instance Show a => Show (V3 a) where
showsPrec _ (V3 x y z) =
showChar... | null | https://raw.githubusercontent.com/chris-taylor/Classical-Mechanics/a3f085733181833ccba3cf8d1985929e762a9bec/Vector3.hs | haskell | # LANGUAGE TypeFamilies , FlexibleContexts , UndecidableInstances #
module Vector3 ( V3(..) ) where
import Control.Applicative hiding ((*>))
import Basis
import VectorSpace
import InnerSpace
data V3 a = V3 !a !a !a deriving (Eq,Ord)
instance Show a => Show (V3 a) where
showsPrec _ (V3 x y z) =
showChar... | |
3d9f88b87102b7b34365bdb628c5a6707680fda415d3f4531136be4cc20a6d9d | fakedata-haskell/fakedata | Pokemon.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Faker.Provider.Pokemon where
import Config
import Control.Monad.Catch
import Control.Monad.IO.Class
import Data.Map.Strict (Map)
import Data.Monoid ((<>))
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Yaml
import Faker
import Fak... | null | https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Pokemon.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TemplateHaskell #
module Faker.Provider.Pokemon where
import Config
import Control.Monad.Catch
import Control.Monad.IO.Class
import Data.Map.Strict (Map)
import Data.Monoid ((<>))
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Yaml
import Faker
import Faker.Internal
import Faker.Provider.T... |
ed0a286df1bf94b4e4624d9eb2225aea77880f6c9e4a1928bc081e011c4af924 | TrustInSoft/tis-kernel | wpReport.ml | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/wp/wpReport.ml | ocaml | ************************************************************************
... | This file is part of .
is a fork of Frama - C. All the differences are :
Copyright ( C ) 2016 - 2017
is released under GPLv2
This file is part of WP plug - in of Frama - C.
Copyright ( C ) 2007 - 2016 ... |
d8702b7cce5ec533b2171812ebf5ed5ae4aab8a3cc2d0dfc22ea3595b7329b46 | lambdaclass/erlang-katana | ktn_random.erl | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% ktn_random: a wrapper for generating random alfanumeric strings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-module(ktn_random).
-export([
string/0,
string/1,
uniform/1,
... | null | https://raw.githubusercontent.com/lambdaclass/erlang-katana/ebb6b1358c974b5e3b16f5e95422061385ae34ac/src/ktn_random.erl | erlang |
ktn_random: a wrapper for generating random alfanumeric strings
internal | -module(ktn_random).
-export([
string/0,
string/1,
uniform/1,
uniform/2,
pick/1
]).
-spec string() -> nonempty_string().
string() ->
Length = get_random_length(),
string(Length).
-spec string(pos_integer()) -> nonempty_string().
string(Length) ->
Rando... |
e8c4ab04bfbd537da8f3c37498bd573ee0d1723528bfd15f9a52973b9af7bdfc | ypyf/fscm | error.scm | (call/fc (lambda () (call/fc (lambda () (+ (display "hello" "xx") 3)) (lambda (message ok fk) (fk message ok)))) (lambda (message ok fk) (ok 4)))
(call/fc (lambda ()(error "bad things happened"))(lambda (message error-continuation parent-fk)(parent-fk message error-continuation)))
| null | https://raw.githubusercontent.com/ypyf/fscm/4e6a31665051d51bbcfc823ac8d85dcc3491a6ef/test/error.scm | scheme | (call/fc (lambda () (call/fc (lambda () (+ (display "hello" "xx") 3)) (lambda (message ok fk) (fk message ok)))) (lambda (message ok fk) (ok 4)))
(call/fc (lambda ()(error "bad things happened"))(lambda (message error-continuation parent-fk)(parent-fk message error-continuation)))
| |
c44dfd2f4d549375667ec514887fe66cf320f3200cb571420a4ab1e0e2b5b1d3 | ptal/AbSolute | octagon_interpretation.mli | Copyright 2019
This program is free software ; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation ; either
version 3 of the License , or ( at your option ) any later version .
This program is distr... | null | https://raw.githubusercontent.com/ptal/AbSolute/469159d87e3a717499573c1e187e5cfa1b569829/src/domains/octagon/octagon_interpretation.mli | ocaml | * This module provides functions to detect and rewrite arbitrary constraints into an equivalent and relaxed octagonal constraints, if possible.
* Create octagonal constraints from a formula.
Multiple constraints mean the formula has been decomposed into several octagonal constraints.
For discrete bound, ex... | Copyright 2019
This program is free software ; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation ; either
version 3 of the License , or ( at your option ) any later version .
This program is distr... |
5481afc2e51cf50eb99fc15b3dfb073b6ad5478f1b0009663cb784ae7d7fcdd2 | Otann/morse | polling_test.clj | (ns morse.polling-test
(:require [clojure.test :refer :all]
[clojure.core.async :refer [chan go >! <!!]]
[morse.polling :as poll]
[morse.test-utils :as u]
[clojure.core.async :as a]))
(def sample-update [{:update_id 0
:message {:text "foo"
... | null | https://raw.githubusercontent.com/Otann/morse/bbb2efc6a8eb17603a56121fbe10e1592ce5d8ee/test/morse/polling_test.clj | clojure | (ns morse.polling-test
(:require [clojure.test :refer :all]
[clojure.core.async :refer [chan go >! <!!]]
[morse.polling :as poll]
[morse.test-utils :as u]
[clojure.core.async :as a]))
(def sample-update [{:update_id 0
:message {:text "foo"
... | |
cd50de76739b5f28bc3dc48fe3ebe2f8ecc79d683b510efcfc222bd68551d055 | pa-ba/compdata-param | Show.hs | # LANGUAGE TemplateHaskell , FlexibleInstances , IncoherentInstances ,
ScopedTypeVariables , UndecidableInstances , KindSignatures #
ScopedTypeVariables, UndecidableInstances, KindSignatures #-}
--------------------------------------------------------------------------------
-- |
Module : Data . Comp . ... | null | https://raw.githubusercontent.com/pa-ba/compdata-param/5d6b0afa95a27fd3233f86e5efc6e6a6080f4236/src/Data/Comp/Param/Multi/Derive/Show.hs | haskell | ------------------------------------------------------------------------------
|
License : BSD3
Stability : experimental
------------------------------------------------------------------------------
| Signature printing. An instance @ShowHD f@ gives rise to an instance
@Show (Term f i)@.
covariant arg... | # LANGUAGE TemplateHaskell , FlexibleInstances , IncoherentInstances ,
ScopedTypeVariables , UndecidableInstances , KindSignatures #
ScopedTypeVariables, UndecidableInstances, KindSignatures #-}
Module : Data . Comp . . Multi . Derive . Show
Copyright : ( c ) 2011 ,
Maintainer : < >... |
daa71b7d781ff936a0526da466aa376432a317513cf77a28f4f2510ec1c8791d | haskell-github/github | CreateIssue.hs | # LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
import Data.String (fromString)
import qualified Data.Text as Text (unpack)
import qualified Data.Vector as Vector (fromList)
import qualified GitHub.Auth as GitHub
import qualified GitHub... | null | https://raw.githubusercontent.com/haskell-github/github/4c922eb3edf82473cc78dc9b85911cbd8d4610e5/samples/Issues/CreateIssue.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE LambdaCase #
import Data.String (fromString)
import qualified Data.Text as Text (unpack)
import qualified Data.Vector as Vector (fromList)
import qualified GitHub.Auth as GitHub
import qualified GitHub.Data.Issues as GitHub
import ... |
b2aba49680eed88fee217780a66f6d80ae8ccf4f25f9e96b4ac0a0d362e9aff7 | sshine/hs-jq | TestHelpers.hs |
module TestHelpers where
import qualified Data.Text as Text
import Data.Text (Text)
import Test.Hspec.Megaparsec
import Test.Tasty.Hspec
import Jq.Expr
import Jq.Parser
Test helper for parsing : Notice that this packs in ' it ' , so it goes
-- directly into a 'describe' block unlik... | null | https://raw.githubusercontent.com/sshine/hs-jq/157b89a34b1f72581b02302b876785d6074dffa3/test/TestHelpers.hs | haskell | directly into a 'describe' block unlike tests for sub-parsers that use
parse' directly. |
module TestHelpers where
import qualified Data.Text as Text
import Data.Text (Text)
import Test.Hspec.Megaparsec
import Test.Tasty.Hspec
import Jq.Expr
import Jq.Parser
Test helper for parsing : Notice that this packs in ' it ' , so it goes
shouldParseAs :: Text -> Expr -> Spec
sho... |
782558906b79261aeba630e3095cf41516a7533a8ad54be601c0a7e32651ced0 | runeanielsen/typesense-clj | client_test.clj | (ns ^:integration typesense.client-test
(:require [typesense.client :as sut]
[clojure.test :as t :refer [deftest is testing]]))
(def settings {:uri ":8108"
:key "key"})
(defn- clean-collections
"Cleans all collections in Typesense."
[]
(let [collections (sut/list-collections setting... | null | https://raw.githubusercontent.com/runeanielsen/typesense-clj/94e82f5951a0693bdbad4c20dde6fb07b6911d1a/test/typesense/client_test.clj | clojure | The flow is inside of a single deftest because the interaction with the API
is stateful so it simplifies the test cases to keep them together.
If we had decided to split them out listing collections might result in issues.
Initize test collection for documents
Creating test setup for multi search
We test :search_... | (ns ^:integration typesense.client-test
(:require [typesense.client :as sut]
[clojure.test :as t :refer [deftest is testing]]))
(def settings {:uri ":8108"
:key "key"})
(defn- clean-collections
"Cleans all collections in Typesense."
[]
(let [collections (sut/list-collections setting... |
5d549394b911d1836e5693270d0d0687fe8356de856c7e0d601c5dec44caf9d3 | dwayne/eopl3 | interpreter.rkt | #lang eopl
(require "./env.rkt")
(require "./parser.rkt")
(require "./store.rkt")
(provide
;; Expressed Values
num-val bool-val
;; Interpreter
run)
(define (run s)
(initialize-store!)
(let ([init-env (extend-env
'i (newref (num-val 1))
(extend-env
'... | null | https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/04-ch4/interpreters/racket/IMPLICIT-REFS/interpreter.rkt | racket | Expressed Values
Interpreter
Procedure ADT
Values
ExpVal = Int + Bool + Proc | #lang eopl
(require "./env.rkt")
(require "./parser.rkt")
(require "./store.rkt")
(provide
num-val bool-val
run)
(define (run s)
(initialize-store!)
(let ([init-env (extend-env
'i (newref (num-val 1))
(extend-env
'v (newref (num-val 5))
... |
ac90db15a50c9fbfb157a957a917cdc3265f7b0017396e6183e48062dc2a7dc1 | namin/reflection-schemes | data.scm | (define get
(lambda (d key . defaults)
(let ((r (assoc key d)))
(if r
(cdr r)
(if (null? defaults)
(error 'get (format "key not found: ~a not in ~a" key d))
(car defaults))))))
(define upd!
(lambda (d key val-upd . defaults)
(let ((r (assoc key d)))
... | null | https://raw.githubusercontent.com/namin/reflection-schemes/d3fd61aa7edc8af5f7f2c9783b4e3c5356cd2bd5/01-toyos-jit/data.scm | scheme | put at end to ensure we don't lose references | (define get
(lambda (d key . defaults)
(let ((r (assoc key d)))
(if r
(cdr r)
(if (null? defaults)
(error 'get (format "key not found: ~a not in ~a" key d))
(car defaults))))))
(define upd!
(lambda (d key val-upd . defaults)
(let ((r (assoc key d)))
... |
3ab5d80945c98ac33d74b79e479e408dc7472097123d8dd19d77aa77931b5028 | tcsprojects/pgsolver | cliquegame.ml | open Paritygame;;
let n = ref 0
let with_self_cycles = ref true
module Clique =
struct
type gamenode = int
let compare = compare
let owner i = plr_benefits i
let priority i = i
let successors i =
let rec succs acc j =
if j=i
then (if !with_self_cycles
then succs (j::acc... | null | https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/generators/cliquegame.ml | ocaml | CliqueGame.build () | open Paritygame;;
let n = ref 0
let with_self_cycles = ref true
module Clique =
struct
type gamenode = int
let compare = compare
let owner i = plr_benefits i
let priority i = i
let successors i =
let rec succs acc j =
if j=i
then (if !with_self_cycles
then succs (j::acc... |
6cc779d9ce3a6376f559a75af49dbbaf1b5c48d80e13648066429d613bfeb989 | takikawa/racket-ppa | info.rkt | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("draw-lib" "draw-doc"))) (define implies (quote ("draw-lib" "draw-doc"))) (define pkg-desc "Drawing libraries") (define pkg-authors (quote (mflatt))) (define license (quote (Apache-2.0 OR MIT)))))
| null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/draw/info.rkt | racket | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("draw-lib" "draw-doc"))) (define implies (quote ("draw-lib" "draw-doc"))) (define pkg-desc "Drawing libraries") (define pkg-authors (quote (mflatt))) (define license (quote (Apache-2.0 OR MIT)))))
| |
a769f7e2b878709a8e4897907f55b8ebc73bae8ee71559c74426c0509da58328 | byorgey/diagrams-play | Relative.hs | # LANGUAGE NoMonomorphismRestriction #
import Diagrams.Backend.Cairo.CmdLine
import Diagrams.Prelude
rightOf :: IsName n => Diagram B R2 -> n -> Diagram B R2 -> Diagram B R2
rightOf d n = withName n $ \sub -> atop (juxtapose unitX (getSub sub) (d # moveTo (location sub)))
squares = vcat' (with & ... | null | https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Relative.hs | haskell | # LANGUAGE NoMonomorphismRestriction #
import Diagrams.Backend.Cairo.CmdLine
import Diagrams.Prelude
rightOf :: IsName n => Diagram B R2 -> n -> Diagram B R2 -> Diagram B R2
rightOf d n = withName n $ \sub -> atop (juxtapose unitX (getSub sub) (d # moveTo (location sub)))
squares = vcat' (with & ... | |
aa467f287f898dab239eb901ccb21343c78cf0e82ed23bc35c7e6d28014ad2c6 | rusterlium/rebar3_cargo | rebar3_cargo_util.erl | -module(rebar3_cargo_util).
-cargo_header_version(1).
-export([
get_apps/1,
get_priv_dir/1,
cargo_init/3,
is_cargo_app/1
]).
-define(DEFAULT_TARGET_DIR, "target").
-spec get_apps(rebar_state:t()) -> [rebar_app_info:t()].
get_apps(State) ->
Res =
case rebar_state:current_app(State) of
... | null | https://raw.githubusercontent.com/rusterlium/rebar3_cargo/0d819f4056df710d0747c83fdc595225865cb545/src/rebar3_cargo_util.erl | erlang | ensure_dir/1 fails if priv not present
(ref ) | -module(rebar3_cargo_util).
-cargo_header_version(1).
-export([
get_apps/1,
get_priv_dir/1,
cargo_init/3,
is_cargo_app/1
]).
-define(DEFAULT_TARGET_DIR, "target").
-spec get_apps(rebar_state:t()) -> [rebar_app_info:t()].
get_apps(State) ->
Res =
case rebar_state:current_app(State) of
... |
2c020a655f7c57a5e06a77b0813c471542257c16d2b8f1f0286e07080beb4b52 | flipstone/orville | TableDefinition.hs | # LANGUAGE GeneralizedNewtypeDeriving #
module Orville.PostgreSQL.Internal.Expr.TableDefinition
( CreateTableExpr,
createTableExpr,
PrimaryKeyExpr,
primaryKeyExpr,
AlterTableExpr,
alterTableExpr,
AlterTableAction,
addColumn,
dropColumn,
addConstraint,
dropConstraint,
alter... | null | https://raw.githubusercontent.com/flipstone/orville/3e5ad212dfd777690baa4fef29cd103ddff9ec9b/orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/Expr/TableDefinition.hs | haskell | # LANGUAGE GeneralizedNewtypeDeriving #
module Orville.PostgreSQL.Internal.Expr.TableDefinition
( CreateTableExpr,
createTableExpr,
PrimaryKeyExpr,
primaryKeyExpr,
AlterTableExpr,
alterTableExpr,
AlterTableAction,
addColumn,
dropColumn,
addConstraint,
dropConstraint,
alter... | |
4826ffd11712d3b6004570bc95e10f8aa1f9773291e0f21517d9a0b50f2f1ae3 | informatimago/lisp | cpp-test.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : cpp-test.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;;
;;;;
< PJB > < >
MODIFICATIONS
... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/languages/cpp/cpp-test.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
LEGAL
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distr... | FILE : cpp-test.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2015 - 07 - 06 < PJB > Extracted from cpp.lisp
AGPL3
Copyright 2015 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either ver... |
152f3decb241fedfd97196f065e0d792ae40a14f8405ed1f0de54d189cc250fb | samrushing/irken-compiler | t0.scm | 42
| null | https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/vm/tests/t0.scm | scheme | 42
| |
5797e6825adcbc75098a5de72d8e7664d9d062ebf6011d19a4ef2a9bc2a275b3 | nick8325/equinox | SolveInstances.hs | module Paradox.SolveInstances where
Paradox -- Copyright ( c ) 2003 - 2007 , , is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the
" Software " ) , to deal in the Software without restriction , including
without limitation the righ... | null | https://raw.githubusercontent.com/nick8325/equinox/67351fbc4358fdea931b4c1dfb659f5527b40917/Haskell/Paradox/SolveInstances.hs | haskell | Copyright ( c ) 2003 - 2007 , , is hereby granted , free of charge , to any person obtaining a
Copyright (c) 2003-2007, Koen Claessen, Niklas Sorensson
-----------------------------------------------------------------------
solver
lift $ putStr {- printStderr
n <- nClauses
lift $ print c
simpl... | module Paradox.SolveInstances where
copy of this software and associated documentation files ( the
" Software " ) , to deal in the Software without restriction , including
without limitation the rights to use , copy , modify , merge , publish ,
distribute , sublicense , and/or sell copies of the Software , and... |
394748f15a01355d041d08edf0baac307a727325a136e2a3e8e8390ce776e00a | tmfg/mmtis-national-access-point | nprogress.cljs | (ns ote.ui.nprogress
"Wrapper for NProgress loading indicator"
(:refer-clojure :exclude [inc set])
(:require
[cljsjs.nprogress]))
(defn configure []
(.configure js/NProgress #js
{:template (str "<div class=\"bar\" role=\"bar\">
<div class=\"peg\"></div>
... | null | https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/src/cljs/ote/ui/nprogress.cljs | clojure | (ns ote.ui.nprogress
"Wrapper for NProgress loading indicator"
(:refer-clojure :exclude [inc set])
(:require
[cljsjs.nprogress]))
(defn configure []
(.configure js/NProgress #js
{:template (str "<div class=\"bar\" role=\"bar\">
<div class=\"peg\"></div>
... | |
900e6c98134105cb8a6b2b4725bcdaf125f5a0373bd025a04b0b7d4a04592768 | facebook/infer | CallSite.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/facebook/infer/d2e59e6df24858729129debcc2813ae3915c4f0a/infer/src/absint/CallSite.ml | ocaml |
* 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
... | |
ca95a27d63c5c963e70d612928cf8b82656734b7f1a1963374c7f09dfec46d53 | theodormoroianu/SecondYearCourses | HaskellChurchMonad_20210415155948.hs | module HaskellChurchMonad where
A boolean is any way to choose between two alternatives
newtype CBool t = CBool {cIf :: t -> t -> t}
toBool :: CBool Bool -> Bool
toBool b = cIf b True False
The boolean constant true always chooses the first alternative
cTrue :: CBool t
cTrue = CBool $ \t f -> t
The boolean consta... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415155948.hs | haskell | The boolean negation switches the alternatives
The boolean conjunction can be built as a conditional
The boolean disjunction can be built as a conditional
a pair is a way to compute something based on the values
contained within the pair.
a function to be applied on the values, it will apply it on them.
A natural nu... | module HaskellChurchMonad where
A boolean is any way to choose between two alternatives
newtype CBool t = CBool {cIf :: t -> t -> t}
toBool :: CBool Bool -> Bool
toBool b = cIf b True False
The boolean constant true always chooses the first alternative
cTrue :: CBool t
cTrue = CBool $ \t f -> t
The boolean consta... |
461d3e93ed8586f2b94f9450a0d4812429a023f8ecd88755f8feddb1836e1899 | taylorwood/advent-of-code | 8.clj | (ns advent-of-code.2016.8
(:require [clojure.string :as cs]))
(def raw-input (cs/split-lines (slurp "resources/advent/day-8.txt")))
(defn parse-rect [s]
(if-let [ms (re-matches #"rect (\d+)x(\d+)" s)]
(let [[_ x y] ms]
{:type :rect :width (Integer/parseInt x) :height (Integer/parseInt y)})))
(defn pars... | null | https://raw.githubusercontent.com/taylorwood/advent-of-code/c6b08f4b618875a45c8083a04ae2c669626c43bf/src/advent_of_code/2016/8.clj | clojure | turns a single pixel on
handle cross-row shifts by pre- & post-transposition
50x6 grid | (ns advent-of-code.2016.8
(:require [clojure.string :as cs]))
(def raw-input (cs/split-lines (slurp "resources/advent/day-8.txt")))
(defn parse-rect [s]
(if-let [ms (re-matches #"rect (\d+)x(\d+)" s)]
(let [[_ x y] ms]
{:type :rect :width (Integer/parseInt x) :height (Integer/parseInt y)})))
(defn pars... |
893b0e20977decc60e8a5537c8e7fde46f730a3f8bab8dfcf278d9c07dd16d1d | ucsd-progsys/liquidhaskell | ApSum.hs | {-@ LIQUID "--expect-any-error" @-}
module ApSum where
apsum :: Int -> Int -> Int
apsum n a = if n <= 0 then a else a + n + apsum (n - 1) a
@ relational apsum ~ apsum
: : { n1 : Int - > a1 : Int - > Int ~ n2 : Int - > a2 : Int - > Int
| n1 = = n2 : = > a1 < = a2 : = > r1 n1 a1 < r2 n2 a2 } @
... | null | https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/177331c811145dab2606bc442389e0031d7db41b/tests/relational/neg/ApSum.hs | haskell | @ LIQUID "--expect-any-error" @ | module ApSum where
apsum :: Int -> Int -> Int
apsum n a = if n <= 0 then a else a + n + apsum (n - 1) a
@ relational apsum ~ apsum
: : { n1 : Int - > a1 : Int - > Int ~ n2 : Int - > a2 : Int - > Int
| n1 = = n2 : = > a1 < = a2 : = > r1 n1 a1 < r2 n2 a2 } @
:: {n1:Int -> a1:Int -> Int ~ n2:... |
2d2596fb4ac3503c31855122dc2b21aa195b3b9c9d2937e2ed8c86d5b2e75616 | xpe/clj-async-tcp-echo-nio.2 | client.clj | (ns echo-byte.client
"Client code, using Java 7 NIO.2.
Abbreviations:
a = attachment
asc = AsynchronousSocketChannel
n = number of bytes
sa = socket address (InetSocketAddress)"
(:refer-clojure :exclude (read))
(:require
[echo-byte.core :as core])
(:import
[java.nio
ByteBuffer]
... | null | https://raw.githubusercontent.com/xpe/clj-async-tcp-echo-nio.2/1d39d23a5d7dac0a6420795688708349bc0bbad2/src/echo_byte/client.clj | clojure | (ns echo-byte.client
"Client code, using Java 7 NIO.2.
Abbreviations:
a = attachment
asc = AsynchronousSocketChannel
n = number of bytes
sa = socket address (InetSocketAddress)"
(:refer-clojure :exclude (read))
(:require
[echo-byte.core :as core])
(:import
[java.nio
ByteBuffer]
... | |
eb7ce4c7e7dd1d1d14c89203a9f918fcd9818558c65ee257c84b24874b0c412b | kind2-mc/kind2 | kEvent.ml | This file is part of the Kind 2 model checker .
Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you
may not use this file except in compliance with the License . You
may obtain a copy of the License a... | null | https://raw.githubusercontent.com/kind2-mc/kind2/67c984ffeb3096d709203a709b444966053fe465/src/kEvent.ml | ocaml | Termination message received
Indicates an [AnalysisStart] tag has been printed but [AnalysisStop] was
not.
**********************************************************************
Events passed on to callers
***********************************************************... | This file is part of the Kind 2 model checker .
Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you
may not use this file except in compliance with the License . You
may obtain a copy of the License a... |
0fbcad9a4d3808374921e3872945372611a6482792904ead06a40869cf5c99cd | ocaml-community/zed | zed_char.mli |
* zed_char.mli
* ------------
* Copyright : ( c ) 2019 , DoYe < >
* Licence : BSD3
*
* This file is a part of , an editor engine .
* zed_char.mli
* ------------
* Copyright : (c) 2019, ZAN DoYe <>
* Licence : BSD3
*
* This file is a part of Zed, an editor engine.
*)
open Result
(**... | null | https://raw.githubusercontent.com/ocaml-community/zed/bb78fec8999a7c205fd060288544a0065dc1cc14/src/zed_char.mli | ocaml | * The type for glyphs.
* [core char] returns the core of the [char]
* [combined char] returns the combining marks of the [char]
* The Character 0.
* [prop ch] returns the char_prop of [ch]
* Returns whether a [Uchar.t] is a printable character or not.
* Returns whether a [Uchar.t] is a combining mark.
* [size ch... |
* zed_char.mli
* ------------
* Copyright : ( c ) 2019 , DoYe < >
* Licence : BSD3
*
* This file is a part of , an editor engine .
* zed_char.mli
* ------------
* Copyright : (c) 2019, ZAN DoYe <>
* Licence : BSD3
*
* This file is a part of Zed, an editor engine.
*)
open Result
typ... |
9f0a2b2fb0b798c97461367ca3bb6dc2158a3dc004f01639e430a398ae538890 | yi-editor/yi | Make.hs | {-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
Module : Yi . . Vim . Ex . Commands . Make
-- License : GPL-2
-- Maintainer :
-- Stability : experimental
-- Portability : portable
module Yi.Keymap.Vim.Ex.Commands.Make (parse) where
import qualified Data.Attopars... | null | https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/yi-keymap-vim/src/Yi/Keymap/Vim/Ex/Commands/Make.hs | haskell | # LANGUAGE OverloadedStrings #
# OPTIONS_HADDOCK show-extensions #
|
License : GPL-2
Maintainer :
Stability : experimental
Portability : portable |
Module : Yi . . Vim . Ex . Commands . Make
module Yi.Keymap.Vim.Ex.Commands.Make (parse) where
import qualified Data.Attoparsec.Text as P (string)
import Yi.Command (makeBuildE)
import Yi.Keymap (Action (YiA))
import Yi... |
bb76e8f3d1a477f53108963bd13fb3b590d1736a776f2d15e65784e84ffaf722 | the-drunk-coder/megra | megra-supercollider-event-handlers-2ch.lisp | (in-package :megra)
(defmethod handle-white-noise-event-sc ((g white-noise-event) timestamp &key)
;; might save a hashtable access here ... later ...
(osc:simple-bundle cm::*oscout* timestamp
"/s_new"
"siiisfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsf"
"noise_2ch" -1 0 1
"lvl" (coerce ... | null | https://raw.githubusercontent.com/the-drunk-coder/megra/8d40fc4e3c2758d71895a46ea96280ed217bd348/megra-supercollider-event-handlers-2ch.lisp | lisp | might save a hashtable access here ... later ...
might save a hashtable access here ... later ...
might save a hashtable access here ... later ...
might save a hashtable access here ... later ... | (in-package :megra)
(defmethod handle-white-noise-event-sc ((g white-noise-event) timestamp &key)
(osc:simple-bundle cm::*oscout* timestamp
"/s_new"
"siiisfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsfsf"
"noise_2ch" -1 0 1
"lvl" (coerce (event-level g) 'float)
"lp_freq" (coerce (even... |
ccf3240a9b467e2bf70a5fdc5bea9eec72882b9cbf73da92c961c4a895a99215 | CryptoKami/cryptokami-core | Relay.hs | # LANGUAGE TemplateHaskell #
{-# LANGUAGE TypeFamilies #-}
module Pos.Communication.Types.Relay
( InvMsg (..)
, ReqMsg (..)
, ResMsg (..)
, ReqOrRes
, MempoolMsg (..)
, DataMsg (..)
, InvOrData
, InvOrDataTK
, RelayLogEvent (..)
) where
import ... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/infra/Pos/Communication/Types/Relay.hs | haskell | # LANGUAGE TypeFamilies #
| Inventory message. Can be used to announce the fact that you have
some data.
^ Key for the data that you wish to announce.
| Request message. Can be used to request data (ideally data which
was previously announced by inventory message).
^ Optional key for the data that you request.... | # LANGUAGE TemplateHaskell #
module Pos.Communication.Types.Relay
( InvMsg (..)
, ReqMsg (..)
, ResMsg (..)
, ReqOrRes
, MempoolMsg (..)
, DataMsg (..)
, InvOrData
, InvOrDataTK
, RelayLogEvent (..)
) where
import Control.Lens (Wrapped (.... |
85079f352f57b4b989ab0db6722baaef2df0a968f14ffd80321a81a92de34a77 | clojure-interop/java-jdk | RMIConnection.clj | (ns javax.management.remote.rmi.RMIConnection
"RMI object used to forward an MBeanServer request from a client
to its MBeanServer implementation on the server side. There is one
Remote object implementing this interface for each remote client
connected to an RMI connector.
User code does not usually refer t... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.management/src/javax/management/remote/rmi/RMIConnection.clj | clojure | the behavior is unspecified if it is.
in order for the client to be able to | (ns javax.management.remote.rmi.RMIConnection
"RMI object used to forward an MBeanServer request from a client
to its MBeanServer implementation on the server side. There is one
Remote object implementing this interface for each remote client
connected to an RMI connector.
User code does not usually refer t... |
df0d9f43c3611d6dd8391774dedbe21f8aa60f25f5e0d72a8291bcb28571f2c0 | aeternity/aerepl | aere_tests.erl | -module(aere_tests).
-compile([export_all, nowarn_export_all]).
-include("../src/aere_repl.hrl").
-include_lib("eunit/include/eunit.hrl").
-record(entry,
{ input :: [string()]
, output :: [string()]
}).
-type raw_entry() :: {raw_entry, [string()]}.
-type entry() :: #entry{}.
run_test(Test) ... | null | https://raw.githubusercontent.com/aeternity/aerepl/7ffc5c07422b223822fa891c82d08a1d48e28dda/test/aere_tests.erl | erlang | Split a file into entries
Group each set of consecutive non-empty lines into a raw entry, where a raw entry
is a list of lines representing a single repl input and its corresponding output
Split an entry into an input and a clean output (without the // prefix) | -module(aere_tests).
-compile([export_all, nowarn_export_all]).
-include("../src/aere_repl.hrl").
-include_lib("eunit/include/eunit.hrl").
-record(entry,
{ input :: [string()]
, output :: [string()]
}).
-type raw_entry() :: {raw_entry, [string()]}.
-type entry() :: #entry{}.
run_test(Test) ... |
1f12a0138945fc560df4c2297743dc42e2c59b01fe540196853d49d00bcd4c99 | angavrilov/cl-gpu | package.lisp | ;;; -*- mode: Lisp; Syntax: Common-Lisp; -*-
;;;
Copyright ( c ) 2010 by .
;;;
;;; See LICENCE for details.
(in-package :common-lisp-user)
(defpackage :cl-gpu.test
(:use :contextl
:hu.dwim.common
:hu.dwim.def
:hu.dwim.stefil
:cl-gpu))
(in-package :cl-gpu.test)
(defsuite* (test ... | null | https://raw.githubusercontent.com/angavrilov/cl-gpu/1523ec3c42db904815f7276a776d354ec30c6b7b/test/package.lisp | lisp | -*- mode: Lisp; Syntax: Common-Lisp; -*-
See LICENCE for details. | Copyright ( c ) 2010 by .
(in-package :common-lisp-user)
(defpackage :cl-gpu.test
(:use :contextl
:hu.dwim.common
:hu.dwim.def
:hu.dwim.stefil
:cl-gpu))
(in-package :cl-gpu.test)
(defsuite* (test :in root-suite) ()
(run-child-tests))
|
6f959361da71b0ba81744f9a0528c9bdb1a97612ae7f14d0c30af39634d41394 | georgegarrington/Syphon | Root.hs | module CLI.Root where
import Control.Monad (when)
import Data.Char
import Data.Either
import Data.Maybe (isJust, fromJust, isNothing)
import Data.IORef
import System.Directory
import System.Environment
import System.Exit
import System.IO.Unsafe
import AST.Module
import CLI.Util
import Parse.Root
import Parse.Util... | null | https://raw.githubusercontent.com/georgegarrington/Syphon/402a326b482e3ce627a15b651b3097c2e09e8a53/src/CLI/Root.hs | haskell | Return the input and output file path
input path and output path specified in arguments
only one path given , assume its the input path
Assume current directory as output path
no args given , check the current directory for a syphon file
prompt to use it , if not then ask for input and output directory paths
Assu... | module CLI.Root where
import Control.Monad (when)
import Data.Char
import Data.Either
import Data.Maybe (isJust, fromJust, isNothing)
import Data.IORef
import System.Directory
import System.Environment
import System.Exit
import System.IO.Unsafe
import AST.Module
import CLI.Util
import Parse.Root
import Parse.Util... |
5912b0d3c2ba939842d9c4c30bf540b807cc23bd6b4688fb7487a926178b319a | ocsigen/js_of_ocaml | soli.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ocsigen/js_of_ocaml/58210fabc947c4839b6e71ffbbf353a4ede0dbb7/benchmarks/sources/ml/soli.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ I d : soli.ml 2553 1999 - 11 - 17 1... |
707167a5fb360ffc3f071fab9feba645ea9fc7c36206fcefa02f8d7339c5c83a | AndrasKovacs/ELTE-func-lang | Gy01_pre.hs |
- Gyak felvételek : Teams->tárgy team->gyakX->files
- canvas EA oldal : tematika + összes info
- követelmény :
- gyak : minimum : 13 pont
- órai eleji kisfeladat : 0 - 2 pont ( 10 perc )
- nagy házi : félév során 3 darab , 4 - 4 pontért
- első hf félév közepén van kiírva
... | null | https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/ad323b700402510e94d9f00da474b197a50fceca/2021-22-2/gyak_3/Gy01_pre.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
vagy Prelude-ből standard függvényt.
case of
let ... in ...
... where ...
függvények
------------------------------------------------------------------------... |
- Gyak felvételek : Teams->tárgy team->gyakX->files
- canvas EA oldal : tematika + összes info
- követelmény :
- gyak : minimum : 13 pont
- órai eleji kisfeladat : 0 - 2 pont ( 10 perc )
- nagy házi : félév során 3 darab , 4 - 4 pontért
- első hf félév közepén van kiírva
... |
54a312083cb01b39080baadf20b354f119654e8dd4e1d3f074358c002d0e8777 | BinaryAnalysisPlatform/bap | disassemble_main_rules.mli | (* exports nothing *)
| null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cd5aeb4731010a3944abcf0f9b29206f46a9facb/plugins/disassemble/disassemble_main_rules.mli | ocaml | exports nothing | |
1024bc006819ccc83f353e27b55005e3a793106e1724285c40c8c3d9a6b93d67 | dybber/fcl | Monad.hs | module FCL.Infer.Monad where
import qualified Data.Map as Map
import Control.Monad.Trans.State
import Control.Monad.Trans.Except
import Control.Monad.Trans.Class (lift)
import FCL.Core.Polytyped
import FCL.Core.PolyLevel
import FCL.Core.Identifier
import FCL.Substitution
import FCL.Infer.TypeEnvironment
data TVE = ... | null | https://raw.githubusercontent.com/dybber/fcl/e794a4b9d3ab6207fbe89fcddaafe97ae0d379dd/src/FCL/Infer/Monad.hs | haskell | | `shallow' substitution; check if tv is bound to anything `substantial' | module FCL.Infer.Monad where
import qualified Data.Map as Map
import Control.Monad.Trans.State
import Control.Monad.Trans.Except
import Control.Monad.Trans.Class (lift)
import FCL.Core.Polytyped
import FCL.Core.PolyLevel
import FCL.Core.Identifier
import FCL.Substitution
import FCL.Infer.TypeEnvironment
data TVE = ... |
5282520a46e272e006f5c7894b32ab8bb3c5ade3d1d98b15d9f12bace97b11ab | rabbitmq/khepri | simple_tx_misc.erl | 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 © 2021 - 2023 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(simple_tx_misc).
-include_lib("eunit/include... | null | https://raw.githubusercontent.com/rabbitmq/khepri/3527362ad9f59cff36231eb4e7b34dc066aa0f50/test/simple_tx_misc.erl | erlang |
Used internally for a testcase.
We load the `mod_used_for_transactions' and do the function extraction
from a separate process. This is required so that we can unload the
module.
If we were to do that from the test process, it would have a reference
to the module's code and it would be impossible to unload and... | 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 © 2021 - 2023 VMware , Inc. or its affiliates . All rights reserved .
-module(simple_tx_misc).
-include_lib("eunit/include/eunit... |
b0463cada742bdc5519cb46a2cd48aa458ceba3f8f3d6467f200730bbebdf923 | mhuebert/shadow-bootstrap-example | macros_3.cljs | (ns bootstrap-test.macros-3
(:require-macros bootstrap-test.macros-3))
self - requiring cljs + cljc entry point
| null | https://raw.githubusercontent.com/mhuebert/shadow-bootstrap-example/931f90a07381c0d2143fd2015325d9b71398ed83/src/bootstrap_test/macros_3.cljs | clojure | (ns bootstrap-test.macros-3
(:require-macros bootstrap-test.macros-3))
self - requiring cljs + cljc entry point
| |
869daeef38c71fb0cae454ee2a242ac0c7a1499648825eea7e77fa6f8a644da3 | kana/sicp | ex-3.22.scm | Exercise 3.22 . Instead of representing a queue as a pair of pointers , we
;;; can build a queue as a procedure with local state. The local state will
;;; consist of pointers to the beginning and the end of an ordinary list. Thus,
;;; the make-queue procedure will have the form
;;;
;;; (define (make-queue)
;;; ... | null | https://raw.githubusercontent.com/kana/sicp/912bda4276995492ffc2ec971618316701e196f6/ex-3.22.scm | scheme | can build a queue as a procedure with local state. The local state will
consist of pointers to the beginning and the end of an ordinary list. Thus,
the make-queue procedure will have the form
(define (make-queue)
(let ((front-ptr ...)
(rear-ptr ...))
<definitions of internal proced... | Exercise 3.22 . Instead of representing a queue as a pair of pointers , we
(define (make-queue)
(let ([front-ptr '()]
[rear-ptr '()])
(define (empty-queue?)
(null? front-ptr))
(define (front-queue)
(cond [(empty-queue?)
(error "FRONT-QUEUE called with an empty queue")]
... |
4eb87a74c57028a09360caabf96443e061a8bad9039e0b7db6df76aea51af623 | galdor/tungsten | hash-tables.lisp | (in-package :core)
(defun alist-to-hash-table (alist &key (test #'eql))
"Convert a list of cons cells to a hash table."
(let ((table (make-hash-table :test test)))
(dolist (entry alist table)
(setf (gethash (car entry) table) (cdr entry)))))
(defun hash-table-keys (table)
"Return a list containing all... | null | https://raw.githubusercontent.com/galdor/tungsten/fdf3c294cd3c46870bfaf39f34b131aaadb6494a/tungsten-core/src/hash-tables.lisp | lisp | (in-package :core)
(defun alist-to-hash-table (alist &key (test #'eql))
"Convert a list of cons cells to a hash table."
(let ((table (make-hash-table :test test)))
(dolist (entry alist table)
(setf (gethash (car entry) table) (cdr entry)))))
(defun hash-table-keys (table)
"Return a list containing all... | |
eebdebbbd9ecfe944580722498b677531a623c989c5c172bcbf212220c30fcf9 | roelvandijk/numerals | CRO.hs | |
[ @ISO639 - 1@ ] hr
[ @ISO639 - 2B@ ] cro
[ @ISO639 - 3@ ] cro
[ @Native name@ ] Hrvatski
[ @English name@ ] Croatian
[@ISO639-1@] hr
[@ISO639-2B@] cro
[@ISO639-3@] cro
[@Native name@] Hrvatski
[@English name@] Croatian
-}
module Text.Num... | null | https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src/Text/Numeral/Language/CRO.hs | haskell | * Language entries
* Conversions
* Structure
* Bounds
------------------------------------------------------------------------------
Imports
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----------------... | |
[ @ISO639 - 1@ ] hr
[ @ISO639 - 2B@ ] cro
[ @ISO639 - 3@ ] cro
[ @Native name@ ] Hrvatski
[ @English name@ ] Croatian
[@ISO639-1@] hr
[@ISO639-2B@] cro
[@ISO639-3@] cro
[@Native name@] Hrvatski
[@English name@] Croatian
-}
module Text.Num... |
cd799ae830206199b2f7b91cdf87cb2acdac751a455ed9db0c355252212d9336 | HealthSamurai/dojo.clj | 19_datatypes_test.clj | (ns koans.19-datatypes-test
(:require [koans.engine :refer :all]))
(defrecord Nobel [prize])
(deftype Pulitzer [prize])
(defprotocol Award
(present [this recipient]))
(defrecord Oscar [category]
Award
(present [this recipient]
(print (str "Congratulations on your "
(:category this) " Osca... | null | https://raw.githubusercontent.com/HealthSamurai/dojo.clj/94922640f534897ab2b181c608b54bfbb8351d7b/test/koans/19_datatypes_test.clj | clojure | (ns koans.19-datatypes-test
(:require [koans.engine :refer :all]))
(defrecord Nobel [prize])
(deftype Pulitzer [prize])
(defprotocol Award
(present [this recipient]))
(defrecord Oscar [category]
Award
(present [this recipient]
(print (str "Congratulations on your "
(:category this) " Osca... | |
aa1b93e2f9af633962bace512a20fdc1eadb7c34a302d647167421dcccae6f8e | EduardoRFS/ppx_let_locs | types.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/EduardoRFS/ppx_let_locs/46b0cdfc46c4bc1450a25b6ae455cc65e663acd0/ocaml/typing/types.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
* [ Types ] defines the representation of types and declarations ( that is , the
content of module... |
2f655673daa50f7b23fd67b26dd37c8affbe6bf37809bb735697722bf76bc524 | richmit/mjrcalc | tst-a.lisp | ;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;; @file tst-a.lisp
@author < >
;; @brief Unit tests... | null | https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/tst-a.lisp | lisp | -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*-
@file tst-a.lisp
@brief Unit tests.@EOL
@std Common Lisp
@see use-a.lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ... | @author < >
@parblock
Copyright ( c ) 1997,2006,2008,2013,2015 , < > All rights reserved .
1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer .
2 . Redistributions in binary form must reproduce the above copyrigh... |
fb5dc7fe46cd097771d3ea75ce8e690294d01f96a294128cfd31c3721ae97bc4 | Decentralized-Pictures/T4L3NT | ticket_storage.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 , < >
(* ... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_012_Psithaca/lib_protocol/ticket_storage.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 , < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN A... |
c513d1158db7452f0896ca38020f5202c18ad49e5ff56ceebbdfb4262e2ac665 | serokell/ariadne | CreateAddress.hs | # LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - orphans #
module Test.Spec.CreateAddress (spec) where
import Test.Hspec (Spec, describe, shouldBe, shouldSatisfy)
import Test.Hspec.QuickCheck (prop)
import Test.QuickCheck (arbitrary, withMaxSuccess)
import Test.QuickCheck.Monadic (PropertyM, monadicIO, pick)
... | null | https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ariadne/cardano/test/backend/Test/Spec/CreateAddress.hs | haskell | | Prepare some fixtures using the 'PropertyM' context to prepare the data,
scope (after the bracket initialisation).
If we get and 'Address', let's check that this is the case also for
because the random index will be generated with a seed which changes every time
as we uses random, IO-based generation deep down t... | # LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - orphans #
module Test.Spec.CreateAddress (spec) where
import Test.Hspec (Spec, describe, shouldBe, shouldSatisfy)
import Test.Hspec.QuickCheck (prop)
import Test.QuickCheck (arbitrary, withMaxSuccess)
import Test.QuickCheck.Monadic (PropertyM, monadicIO, pick)
... |
c58186c31a3452bff158e71c6b6526cec177423ec4784080f00f91ebbab73f07 | Liqwid-Labs/plutus-extra | Extra.hs | # LANGUAGE Trustworthy #
|
Module : Text . Show . Pretty . Extra
Copyright : ( C ) MLabs 2021
License : Apache 2.0
Maintainer : < >
Portability : GHC only
Stability : Experimental
Some helper type classes for \'lifting\ ' prettyprinting to various
higher - rank types .
Module: Text.Sho... | null | https://raw.githubusercontent.com/Liqwid-Labs/plutus-extra/b343f63417a8feadfb1125212809535e1ec7a8e1/plutus-pretty/src/Text/Show/Pretty/Extra.hs | haskell | # INLINEABLE liftPrettyVal #
# INLINEABLE liftPrettyVal #
# INLINEABLE liftPrettyVal #
# INLINEABLE liftPrettyVal #
# INLINEABLE liftPrettyVal #
# INLINEABLE liftPrettyVal # | # LANGUAGE Trustworthy #
|
Module : Text . Show . Pretty . Extra
Copyright : ( C ) MLabs 2021
License : Apache 2.0
Maintainer : < >
Portability : GHC only
Stability : Experimental
Some helper type classes for \'lifting\ ' prettyprinting to various
higher - rank types .
Module: Text.Sho... |
93daed0aecaece9f0e4d5ca0056c2bb89d84d389510afa604aa28696ce521331 | thma/lambda-ski | GraphReduction.hs | module GraphReduction
( toString,
mToString,
step,
allocate,
spine,
normalForm,
nf,
Graph (..),
copy,
)
where
import Control.Monad ( (<=<) )
import Control.Monad.ST (ST)
import Data.STRef (STRef, newSTRef, readSTRef,
... | null | https://raw.githubusercontent.com/thma/lambda-ski/944ca0d4d1a28534505eb3a6c7a8c975b523da97/src/GraphReduction.hs | haskell | if before == after then return graph else normalForm graph
B' P Q R S = P Q (R S)
C' P Q R S = P (Q S) R
S' P Q R S = P (Q S) (R S) | module GraphReduction
( toString,
mToString,
step,
allocate,
spine,
normalForm,
nf,
Graph (..),
copy,
)
where
import Control.Monad ( (<=<) )
import Control.Monad.ST (ST)
import Data.STRef (STRef, newSTRef, readSTRef,
... |
c0591e78db73f81bdadb6181de74c3d4c767f0f2ee04dee181e31f34cf725e01 | haskell/cabal | Q.hs | module Q where
q = "DO NOT SEE ME"
| null | https://raw.githubusercontent.com/haskell/cabal/00a2351789a460700a2567eb5ecc42cca0af913f/cabal-testsuite/PackageTests/InternalLibraries/q/Q.hs | haskell | module Q where
q = "DO NOT SEE ME"
| |
6fa8cccf2cb441f71c0f6410730344ed4c51b2d3ebed015e718f8a1f198eeced | input-output-hk/marlowe-cardano | GetIntersectionPoints.hs | # LANGUAGE QuasiQuotes #
module Language.Marlowe.Runtime.Indexer.Database.PostgreSQL.GetIntersectionPoints
where
import Data.ByteString (ByteString)
import Data.Int (Int64)
import qualified Data.Vector as V
import Hasql.TH (singletonStatement, vectorStatement)
import qualified Hasql.Transaction as H
import Language... | null | https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/3e7471464a54f2705157380b99839770b98eede3/marlowe-runtime/indexer/Language/Marlowe/Runtime/Indexer/Database/PostgreSQL/GetIntersectionPoints.hs | haskell | # LANGUAGE QuasiQuotes #
module Language.Marlowe.Runtime.Indexer.Database.PostgreSQL.GetIntersectionPoints
where
import Data.ByteString (ByteString)
import Data.Int (Int64)
import qualified Data.Vector as V
import Hasql.TH (singletonStatement, vectorStatement)
import qualified Hasql.Transaction as H
import Language... | |
29179f1f309c8ae9b5d49bf9015fdee972bfe6ac68e91d083250e37e725c9f08 | carlini/rhoscript | arithmetic-encoder.lisp | arithmetic-encoder.lisp -- an arithmetic encoder for
Copyright ( C ) 2013 , < > .
;;;;
This file is part of .
;;;;
is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the Licen... | null | https://raw.githubusercontent.com/carlini/rhoscript/8e9fd880481a9b1ffeb430949d702f1f800f7b01/arithmetic-encoder.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.
(print (point-in-range midpoint point (+ point step)))
(print "setup done")
(print 'iter)
(p... | arithmetic-encoder.lisp -- an arithmetic encoder for
Copyright ( C ) 2013 , < > .
This file is part of .
is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
... |
caf0b5dc2323897d9d9ccd9c8e7963eb6b35be4138de3ce6610ce07bb05fa42b | ZHaskell/z-io | TCPSpec.hs | {-# LANGUAGE OverloadedStrings #-}
module Z.IO.Network.TCPSpec where
import Control.Concurrent
import Control.Monad
import Data.Bits
import Z.Data.Vector as V
import Z.Data.Vector.Base as V
import Data.List as List
import F... | null | https://raw.githubusercontent.com/ZHaskell/z-io/dcb21d553661dec68849306a9884c82d000e13d0/test/Z/IO/Network/TCPSpec.hs | haskell | # LANGUAGE OverloadedStrings # |
module Z.IO.Network.TCPSpec where
import Control.Concurrent
import Control.Monad
import Data.Bits
import Z.Data.Vector as V
import Z.Data.Vector.Base as V
import Data.List as List
import Foreign.Marshal.Array
import ... |
e2df2812c021244e4123ea8ae0f99767324c414c3c2f207840e9b85fd07bf84e | AlexBaranosky/gui-diff | diff.clj | (ns gui.diff
(:require [clojure.java.shell :as sh]
[fipp.edn :as pp]
[clojure.string :as str]
[clojure.test :as ct]
[gui.internal.parser :as parser]
[flatland.ordered.map :as om]
[flatland.ordered.set :as os])
(:import java.io.File))
(defn- m... | null | https://raw.githubusercontent.com/AlexBaranosky/gui-diff/c81a887ed2bf1af3b246c17b2a441fdf74acf32b/src/gui/diff.clj | clojure | (ns gui.diff
(:require [clojure.java.shell :as sh]
[fipp.edn :as pp]
[clojure.string :as str]
[clojure.test :as ct]
[gui.internal.parser :as parser]
[flatland.ordered.map :as om]
[flatland.ordered.set :as os])
(:import java.io.File))
(defn- m... | |
57b6d5696f9805d1dfa47da17b2c519f50322ff14d3148b93e0a4009af234091 | CafeOBJ/cafeobj | defterm.lisp | -*-Mode : LISP ; Package : Chaos ; ; Syntax : Common - lisp -*-
;;;
Copyright ( c ) 2000 - 2015 , . All rights reserved .
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; * Redistributions of sou... | null | https://raw.githubusercontent.com/CafeOBJ/cafeobj/261e3a50407f568272321378df370e5cf7492aaf/chaos/primitives/defterm.lisp | lisp | Package : Chaos ; ; Syntax : Common - lisp -*-
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following... | Copyright ( c ) 2000 - 2015 , . All rights reserved .
DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL
INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ,
(in-package :chaos)
#-:chaos-debug
(declaim (optimize (speed 3) (safety 0) #-GCL (debug 0)))
#+:chaos-debug
(declaim (optim... |
b565049ab14a2cc45f291ebae230a8abe1e1526c018669ebba0c0f0033c77892 | chordify/haskell-servant-pagination | PaginationSpec.hs | # LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - orphans #
module Servant.PaginationSpec
( spec
) where
import Data.Either (isLeft)
import Data.Proxy (Proxy (..))
import Data.Text (Text)
import Servant ... | null | https://raw.githubusercontent.com/chordify/haskell-servant-pagination/31de44918538873ac56e2bb1766f7fdbc1a5c65b/test/Servant/PaginationSpec.hs | haskell | # LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - orphans #
module Servant.PaginationSpec
( spec
) where
import Data.Either (isLeft)
import Data.Proxy (Proxy (..))
import Data.Text (Text)
import Servant ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.