_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
e5af2a2c98eea582e8d53f6f382c584bc46a4a8d7e1004c0d924139a99bd69d8
vikram/lisplibraries
swank-corman.lisp
;;; swank-corman.lisp --- specific code for SLIME . ;;; Copyright ( C ) 2004 , 2005 ( ) ;;; ;;; License ;;; ======= ;;; This software is provided 'as-is', without any express or implied ;;; warranty. In no event will the author be held liable for any damages ;;; arising from the use of this software. ;;; ;;; P...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/slime/swank-corman.lisp
lisp
License ======= This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter i...
swank-corman.lisp --- specific code for SLIME . Copyright ( C ) 2004 , 2005 ( ) 2 . Altered source versions must be plainly marked as such , and must 3 . This notice may not be removed or altered from any source Notes You will need CCL 2.51 , and you will * definitely * need to patch CCL with the pat...
319aa00a149093416a64f6f88be3903beba9d48b844e88b1593f7d53ac699804
dhammikamare/Learn-OCaml
cos_taylor.ml
Task : Write recursive functions to compute the ) by evaluating its series up to n terms . * * Author : | -marasinghe * * Author : Dhammika Marasinghe | -marasinghe *) let rec cos_taylor (x:float) (n:int) :float = if n = 0 then 1.0 else let rec fact (n:int) :int = if n < 2 then 1 else n ...
null
https://raw.githubusercontent.com/dhammikamare/Learn-OCaml/2d4e3da38ee86cd7477964ffb8756a8483260322/lab02%20Recursive%20Functions/cos_taylor.ml
ocaml
Task : Write recursive functions to compute the ) by evaluating its series up to n terms . * * Author : | -marasinghe * * Author : Dhammika Marasinghe | -marasinghe *) let rec cos_taylor (x:float) (n:int) :float = if n = 0 then 1.0 else let rec fact (n:int) :int = if n < 2 then 1 else n ...
a1c73a5c2860d78b9a607ac10b12657d8c5af072aedc0923c702381322fce26b
runtimeverification/haskell-backend
Inhabitant.hs
| Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2019-2021 License : BSD-3-Clause -} module Kore.Syntax.Inhabitant ( Inhabitant (..), ) where import GHC.Generics qualified as GHC import Generics.SOP qualified as SOP import K...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Kore/Syntax/Inhabitant.hs
haskell
| 'Inhabitant' symbolizes the inhabitants of a sort.
| Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2019-2021 License : BSD-3-Clause -} module Kore.Syntax.Inhabitant ( Inhabitant (..), ) where import GHC.Generics qualified as GHC import Generics.SOP qualified as SOP import K...
2a9683de078b1cf83a23dbf8c89e3430aed27a6d057e53cda6481fbc3cd18097
vraid/earthgen
terrain-structs.rkt
#lang typed/racket (require vraid/struct "../direct-access.rkt" "../geometry/geometry-structs.rkt") (provide (all-defined-out)) (struct/kw river ([location : Integer] [sources : river-list]) #:transparent) (define-type river-list (Listof river)) (vector-struct ti...
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/planet/terrain/terrain-structs.rkt
racket
#lang typed/racket (require vraid/struct "../direct-access.rkt" "../geometry/geometry-structs.rkt") (provide (all-defined-out)) (struct/kw river ([location : Integer] [sources : river-list]) #:transparent) (define-type river-list (Listof river)) (vector-struct ti...
afaf0757968d5b159d4ee4012343479e04623bf56076213ecae8c75aec505761
couchbase/chronicle
chronicle_server.erl
@author Couchbase < > 2020 Couchbase , Inc. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/couchbase/chronicle/f048c87b294c6cfc8021dab8832d7829f2681ce7/src/chronicle_server.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
@author Couchbase < > 2020 Couchbase , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(chronicle_server). -behavior(gen_statem). -include("chronicle.hrl"). -export([start_link/0]). -export([register_rsm/...
63475d171e0bb44878163914f4a7556fa1455d8ad9101e7e01e1dce03d24b523
justinmeiners/lisp-interpreter
norvig.scm
From tests ; (define x 3) (assert (= x 3)) (assert (= (+ x x) 6)) (assert (= (begin (define x 1) (set! x (+ x 1)) (+ x 1)) 3)) (assert (= ((lambda (x) (+ x x)) 5) 10)) (define twice (lambda (x) (* 2 x))) (assert (= (twice 5) 10)) (define compose (lambda (f g) (lambda (x) (f (g x))))) (assert (= (car ((compose l...
null
https://raw.githubusercontent.com/justinmeiners/lisp-interpreter/7439900c09dabf79b2e665e0409acf652a2a6f59/tests/code/norvig.scm
scheme
From tests (define x 3) (assert (= x 3)) (assert (= (+ x x) 6)) (assert (= (begin (define x 1) (set! x (+ x 1)) (+ x 1)) 3)) (assert (= ((lambda (x) (+ x x)) 5) 10)) (define twice (lambda (x) (* 2 x))) (assert (= (twice 5) 10)) (define compose (lambda (f g) (lambda (x) (f (g x))))) (assert (= (car ((compose list...
73c94c12d4855da7a0b12a612f45dfdff83ba3e6db4bfc06cdb2b5603a72e09d
jyh/metaprl
sil_program.mli
* Define an induction principle on the programs as defined so far . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for OCaml and other languages . ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/sil/sil_program.mli
ocaml
* Define an induction principle on the programs as defined so far . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for OCaml and other languages . ...
e52cd1af38e1fdb76d6ac9a037eef5bf8da44f30f9496c17738832a52d7bddc5
emqx/emqx
emqx_mgmt_api_listeners.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_management/src/emqx_mgmt_api_listeners.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_mgmt_api_listeners). -behaviour(minirest_api). -export([namespace/0, api_spec/0, ...
28bf8ef8c1c65a87afea7b13101d1ad1549921e8969f3b1d17dfde2f3f8b4c55
mransan/raft-udp
raft_app_srv.ml
open Lwt.Infix open !Lwt_log_core module APb = Raft_com_pb module Debug = Raft_com_debug module Conf = Raft_com_conf module U = Lwt_unix type state = int (* last log index processed *) let initial_state = 0 (* we currently assume that the last index processed when the server start * is 0. Since right now we ...
null
https://raw.githubusercontent.com/mransan/raft-udp/ffa307fa6d8bdaa3133f3cc66149ac7dfda5fc7c/src/app/raft_app_srv.ml
ocaml
last log index processed we currently assume that the last index processed when the server start * is 0. Since right now we don't support snapshotting the state of the * application, everytime the app restart it starts from scratch. However * in the future we would like to save the state and its associated * ...
open Lwt.Infix open !Lwt_log_core module APb = Raft_com_pb module Debug = Raft_com_debug module Conf = Raft_com_conf module U = Lwt_unix type state = int let initial_state = 0 type connection = (Lwt_io.input_channel * Lwt_unix.file_descr * bytes) module Event = struct type e = | Failure of...
347c93ef1ccad3c78eb0545bd01289555f6cb53ef6f497f253c7f0d6fa3b2932
skanev/playground
72.scm
SICP exercise 3.72 ; In a similar way to exercise 3.72 generate a stream of all numbers that can be written as the sum of two squares in three different ways ( showing how ; they can be so written). (define stream-take '()) (define the-empty-stream empty-stream) (define stream-null? stream-empty?) (define stream...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/72.scm
scheme
they can be so written).
SICP exercise 3.72 In a similar way to exercise 3.72 generate a stream of all numbers that can be written as the sum of two squares in three different ways ( showing how (define stream-take '()) (define the-empty-stream empty-stream) (define stream-null? stream-empty?) (define stream-car stream-first) (define st...
624c0ae05a1724e87a4a6e626534e4a9a6b31da8c753b3d5a54abfe5454a9096
infi-nl/alibi
entry_repo_test.clj
(ns alibi.datasource.sqlite.entry-repo-test (:require [clojure.test :refer [deftest is use-fixtures testing]] [clojure.java.jdbc :as db] [alibi.infra.date-time :refer [->local-date ->local-time]] [alibi.datasource.sqlite.fixtures :refer [sqlite-fixture *db* last-insert-rowid make-entry]] [clo...
null
https://raw.githubusercontent.com/infi-nl/alibi/00e97340ebff483f0ecbb3eef929a4052adbc78b/test/alibi/datasource/sqlite/entry_repo_test.clj
clojure
(ns alibi.datasource.sqlite.entry-repo-test (:require [clojure.test :refer [deftest is use-fixtures testing]] [clojure.java.jdbc :as db] [alibi.infra.date-time :refer [->local-date ->local-time]] [alibi.datasource.sqlite.fixtures :refer [sqlite-fixture *db* last-insert-rowid make-entry]] [clo...
16b785a85ea2cfcba81ba342811a250d3fd4396f0379e670257926cd465be3d4
mzp/coq-ruby
pre_env.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/kernel/pre_env.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The type of environments. Rel con...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : pre_env.ml 10664 ...
104c50d229fa820b1eead18078ff888f88d226c2f0733a2d4966570af4dc6f3d
ghcjs/ghcjs
t11296.hs
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # import Control.Monad (unless) import GHC.Exts import GHC.Types data ByteArray s = BA (MutableByteArray# s) main :: IO () main = do ba# <- IO (\s0 -> case newByteArray# 256# s0 of (# s1, ba# #) -> (# s1, BA ba# #)) let go n = do ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/primops/t11296.hs
haskell
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # import Control.Monad (unless) import GHC.Exts import GHC.Types data ByteArray s = BA (MutableByteArray# s) main :: IO () main = do ba# <- IO (\s0 -> case newByteArray# 256# s0 of (# s1, ba# #) -> (# s1, BA ba# #)) let go n = do ...
d71324feb08bc0aef044ebae0478897fcd96e8ac1af506d1d3d5fb156e4167e4
xtdb/core2
temporal_test.clj
(ns core2.sql.temporal-test (:require [clojure.test :refer [deftest is use-fixtures testing]] [core2.api :as c2] [core2.test-util :as tu])) (use-fixtures :each tu/with-node) (defn query-at-tx [query tx] (c2/sql-query tu/*node* query {:basis {:tx tx}})) (deftest all-system-time (let [_!t...
null
https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/src/test/clojure/core2/sql/temporal_test.clj
clojure
(ns core2.sql.temporal-test (:require [clojure.test :refer [deftest is use-fixtures testing]] [core2.api :as c2] [core2.test-util :as tu])) (use-fixtures :each tu/with-node) (defn query-at-tx [query tx] (c2/sql-query tu/*node* query {:basis {:tx tx}})) (deftest all-system-time (let [_!t...
32dd19e684f70462bb466c9a518ba76e48c541330d91a5079879a527cbac48fc
max-au/erlperf
erlperf_job_SUITE.erl
( c ) 2019 - 2023 %%% @doc Tests all combinations of code maps accepted by erlperf_job %%% @end -module(erlperf_job_SUITE). -author(""). %% Include stdlib header to enable ?assert() for readable output -include_lib("stdlib/include/assert.hrl"). %% Test server callbacks -export([ suite/0, all/0, gro...
null
https://raw.githubusercontent.com/max-au/erlperf/430310d3141d668c402a9900c9d19486ceb27493/test/erlperf_job_SUITE.erl
erlang
@doc @end Include stdlib header to enable ?assert() for readable output Test server callbacks Basic test cases internal exports -------------------------------------------------------------------- Convenience helpers -------------------------------------------------------------------- Runner definitions -------...
( c ) 2019 - 2023 Tests all combinations of code maps accepted by erlperf_job -module(erlperf_job_SUITE). -author(""). -include_lib("stdlib/include/assert.hrl"). -export([ suite/0, all/0, groups/0 ]). Runner variants test cases -export([ runner_code/1, runner_mfa/1, runner_mfa_list/1, runner...
4e7121c3131b573453c2cb328809fa5e60816fbea062dd17ed6ca85c107239a7
erlang/otp
wxMenuBar.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/64a2d6f7fc7a6a82e494bfd06440e752a7e07f91/lib/wx/src/gen/wxMenuBar.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxMenuBar). -include("wxe.hrl"). -export([append/3,check/3,destroy/1,enable/3,enableTop/3,findItem/2,findMen...
7259915b85d8d533010acca320924b8455aeedb97850aa96ad28d5667a087715
achirkin/vulkan
Memory.hs
# OPTIONS_HADDOCK ignore - exports # {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # {-# LANGUAGE PatternSynonyms #-} # LANGUAGE StandaloneDeriving # {-# LANGUAGE Strict ...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Types/Enum/Memory.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeSynonymInstances # # INLINE showsPrec # # INLINE readsPrec # | Force allocation on specific devices | If set, heap represents device memory | type = @enum@ | If otherwise s...
# OPTIONS_HADDOCK ignore - exports # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # module Graphics.Vulkan.Types.Enum.Memory (VkMemoryAllocateFlagBitsKHR(..), VkMemoryAllocateBitmask(VkMemo...
80bed6e971bf96a11c12b8686fd97596af6bf5b37ad17d5e86f020c2aaf74e0a
processone/stun
stun_logger.erl
%%%---------------------------------------------------------------------- %%% File : stun_logger.erl Author : < > %%% Purpose : Wrap OTP Logger for STUN/TURN logging Created : 19 Jul 2020 by < > %%% %%% Copyright ( C ) 2020 - 2023 ProcessOne , SARL . All Rights Reserved . %%% Licensed under the Apach...
null
https://raw.githubusercontent.com/processone/stun/5e41e347d97da0f68182a0870af806354996ab99/src/stun_logger.erl
erlang
---------------------------------------------------------------------- File : stun_logger.erl Purpose : Wrap OTP Logger for STUN/TURN logging 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 ...
Author : < > Created : 19 Jul 2020 by < > Copyright ( C ) 2020 - 2023 ProcessOne , SARL . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(stun_logger). -author(''). -export([start/...
74dcfe8ae676df3e1389fdbf691164b5c54100ba5d80fcf3191f2e6eb6eb375d
CompSciCabal/SMRTYPRTY
hz-huffman.rkt
#lang racket (require test-engine/racket-tests) --- 2.67 -------------------------------------------------------------------- ;; ;; (define sample-tree ( make - code - tree ( make - leaf ' A 4 ) ;; (make-code-tree ( make - leaf ' B 2 ) ( make - code - tree...
null
https://raw.githubusercontent.com/CompSciCabal/SMRTYPRTY/4a5550789c997c20fb7256b81469de1f1fce3514/sicp/v3/2.3/hz-huffman.rkt
racket
(define sample-tree (make-code-tree (make-leaf 'C 1))))) (define sample-message '(0 1 1 0 0 1 0 1 0 1 1 1 0)) Using the described algorithm, sample-message decodes to '(A D A B B C A)). --------------------------------------------------------------------------...
#lang racket (require test-engine/racket-tests) --- 2.67 -------------------------------------------------------------------- ( make - code - tree ( make - leaf ' A 4 ) ( make - leaf ' B 2 ) ( make - code - tree ( make - leaf ' D 1 ) (define (make-leaf symbol weight) (l...
95cb15d8029cdace29e3134398c66973d7e15f3e9ae6319192d60d7f919f10a3
skanev/playground
47.scm
SICP exercise 5.47 ; ; This section described how to modify the explicit-control evaluator so that ; interpreted code can call compiled procedures. Show how to modify the ; compiler so that compiled procedures can call not only primitive procedures ; and compiled procedures, but interpreted procedures as well. This r...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/47.scm
scheme
This section described how to modify the explicit-control evaluator so that interpreted code can call compiled procedures. Show how to modify the compiler so that compiled procedures can call not only primitive procedures and compiled procedures, but interpreted procedures as well. This requires modifying compile...
SICP exercise 5.47 Now , typing at the evalutor , define g and try to call f. (define ec-registers (cons 'compapp ec-registers)) (define explicit+compile-text (append '((assign compapp (label compound-apply))) explicit+compile-text)) (define (compile-procedure-call target linkage) (let ((primitive...
83afdc78b5fadf8c0b0b0588a5e1d16f8aa12b38ef3be3a07beefc4d7349b3b6
comtihon/mongodb-erlang
mc_monitor.erl
%%%------------------------------------------------------------------- @author ( ) ( C ) 2015 , %%% @doc mongoc internal module for monitoring one mongodb server and providing information to a topology module %%% @end %%%------------------------------------------------------------------- -module(mc_monitor)...
null
https://raw.githubusercontent.com/comtihon/mongodb-erlang/56c700f791601a201a9d5af7cad45b3c81258209/src/mongoc/mc_monitor.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =================================================================== ====...
@author ( ) ( C ) 2015 , mongoc internal module for monitoring one mongodb server and providing information to a topology module -module(mc_monitor). -author(""). -behaviour(gen_server). -export([start_link/5, do_timeout/2, next_loop/1, update_type/2, stop/1]). -export([init/1, handle_call/3, handle_...
9018459edd2560a841e9db8a7890332ec9addec825d52b9b4489b6ac28a87464
shirok/Gauche
util2.scm
;; testing util.* that depend on extension modules (use gauche.test) (test-start "util.* modules extra") ;;;======================================================================== (test-section "util.levenshtein") (use util.levenshtein) (test-module 'util.levenshtein) (let1 datasets '(("" ("" ...
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/test/util2.scm
scheme
testing util.* that depend on extension modules ========================================================================
(use gauche.test) (test-start "util.* modules extra") (test-section "util.levenshtein") (use util.levenshtein) (test-module 'util.levenshtein) (let1 datasets '(("" ("" 0 0 0) 1i 3i ("abc" ("" 3 3 3) 1d 1d 1d 1 t 1d , 1 t ("bdac"...
d0a6653b0151f8fcfd19ec419c3d387c9e2651226489bad6e014cd4b40f41fe3
janestreet/async
ppx_log_syntax.ml
open Base open Async_unix module T = struct type t = Async_unix.Log.t type return_type = unit let would_log = Log.would_log let sexp ?level ?pos t msg = let tags = Option.map pos ~f:(fun pos -> [ "pos", Source_code_position.to_string pos ]) in Log.sexp ?level ?tags t msg ;; let default...
null
https://raw.githubusercontent.com/janestreet/async/209af88dff921a3883f62ea9bd4fdf95b9429072/src/ppx_log_syntax.ml
ocaml
open Base open Async_unix module T = struct type t = Async_unix.Log.t type return_type = unit let would_log = Log.would_log let sexp ?level ?pos t msg = let tags = Option.map pos ~f:(fun pos -> [ "pos", Source_code_position.to_string pos ]) in Log.sexp ?level ?tags t msg ;; let default...
9945dde14cdf4e2d5a6ad9c180f4eccd5b40743bb2ec4c9d14a9e324e4f124cd
lateio/kurremkarmerruk
kurremkarmerruk_recurse_address_reputation.erl
% ------------------------------------------------------------------------------ % Copyright © 2018 - 2019 , < > % The ISC License % % Permission to use, copy, modify, and/or distribute this software for any % purpose with or without fee is hereby granted, provided that the above % copyright notice and this perm...
null
https://raw.githubusercontent.com/lateio/kurremkarmerruk/7743cb75e92ed6ffe0f147f96148299df47c9dcf/src/handlers/kurremkarmerruk_recurse/kurremkarmerruk_recurse_address_reputation.erl
erlang
------------------------------------------------------------------------------ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SO...
Copyright © 2018 - 2019 , < > The ISC License THE SOFTWARE IS PROVIDED “ AS IS ” AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(kurremkarmerruk_recurse_address_...
4dc67d962603bd47adaeeb49e2556c31876e6e3366cdb3bcd5de9e95df13759d
Opetushallitus/aipal
vastaus.clj
Copyright ( c ) 2014 The Finnish National Board of Education - Opetushallitus ;; This program is free software : Licensed under the EUPL , Version 1.1 or - as soon as they will be approved by the European Commission - subsequent versions of the EUPL ( the " Licence " ) ; ;; ;; You may not use this work except...
null
https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/e2e/src/aipalvastaus_e2e/sivu/vastaus.clj
clojure
You may not use this work except in compliance with the Licence. You may obtain a copy of the Licence at: / This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Copyright ( c ) 2014 The Finnish National Board of Education - Opetushallitus This program is free software : Licensed under the EUPL , Version 1.1 or - as soon as they will be approved by the European Commission - subsequent versions European Union Public Licence for more details . (ns aipalvastaus-e2e.sivu...
144177cefdd5cc813fa21d02722f8bec48f8150cc62b3396f6b45ee83cd4641b
tek/chiasma
TreeModError.hs
module Chiasma.Ui.Data.TreeModError where import Chiasma.Data.Ident (Ident) import Chiasma.Ui.Data.View (LayoutView, PaneView) data TreeModError = PaneExists PaneView | LayoutExists LayoutView | PaneMissing Ident | LayoutMissing Ident | AmbiguousPane Ident Int | AmbiguousLayout Ident Int | ...
null
https://raw.githubusercontent.com/tek/chiasma/51751e19a416a9afe12f7797df8a67990b266240/packages/chiasma/lib/Chiasma/Ui/Data/TreeModError.hs
haskell
module Chiasma.Ui.Data.TreeModError where import Chiasma.Data.Ident (Ident) import Chiasma.Ui.Data.View (LayoutView, PaneView) data TreeModError = PaneExists PaneView | LayoutExists LayoutView | PaneMissing Ident | LayoutMissing Ident | AmbiguousPane Ident Int | AmbiguousLayout Ident Int | ...
f6e214d82cf96c454254a48b7323e7741699a53229657850fb0c229d5981200c
darkleaf/publicator
log_in_test.clj
(ns publicator.use-cases.interactors.user.log-in-test (:require [publicator.use-cases.interactors.user.log-in :as sut] [publicator.domain.aggregates.user :as user] [publicator.use-cases.services.user-session :as user-session] [publicator.use-cases.test.fakes :as fakes] [publicator.utils.test.instrument...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/core/test/publicator/use_cases/interactors/user/log_in_test.clj
clojure
(ns publicator.use-cases.interactors.user.log-in-test (:require [publicator.use-cases.interactors.user.log-in :as sut] [publicator.domain.aggregates.user :as user] [publicator.use-cases.services.user-session :as user-session] [publicator.use-cases.test.fakes :as fakes] [publicator.utils.test.instrument...
e4733c7d38c9c934c6d8f51509761c5560b318c369f2067686fdd268750916b2
FreeProving/free-compiler
Help.hs
-- | This module contains the implementation of the @--help@ command. module FreeC.Application.Option.Help ( usageHeader, putUsageInfo ) where import System.Console.GetOpt import System.Environment ( getProgName ) import FreeC.Application.Options.Descriptors -- | The ...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/exe/FreeC/Application/Option/Help.hs
haskell
| This module contains the implementation of the @--help@ command. | The header of the help message. This text is added before the description of the command line arguments. | Prints the help message for the compiler. The help message is displayed when the user specifies the @--help@ option or there are n...
module FreeC.Application.Option.Help ( usageHeader, putUsageInfo ) where import System.Console.GetOpt import System.Environment ( getProgName ) import FreeC.Application.Options.Descriptors usageHeader :: FilePath -> String usageHeader progName = "Usage: " ++ progNam...
f710bc52335fdac062fa46a6d41835a393f7ee3ed7fc6c684d28723b7077d668
simmone/racket-simple-qr
qr-read.rkt
#lang racket (provide (contract-out [qr-read (->* (path-string?) (#:express? boolean? #:express_path path-string?) string?)] )) (require "lib/lib.rkt") (require "../share/func.rkt") (require "../share/format-information.rkt") (require "../share/mask-data.rkt") (require "../share/fill-data.rkt") (r...
null
https://raw.githubusercontent.com/simmone/racket-simple-qr/904f1491bc521badeafeabd0d7d7e97e3d0ee958/simple-qr/read/qr-read.rkt
racket
(printf "~a\n" v)
#lang racket (provide (contract-out [qr-read (->* (path-string?) (#:express? boolean? #:express_path path-string?) string?)] )) (require "lib/lib.rkt") (require "../share/func.rkt") (require "../share/format-information.rkt") (require "../share/mask-data.rkt") (require "../share/fill-data.rkt") (r...
5ebf51b297d9f6646b833937945e2a8b2a7b98c2a2ccbf8b35ee80d4df23f050
jeffshrager/biobike
package.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Sframes/package.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and a...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
7cdaaef7cb4f21047f38130aa2d1a7c22c125cd3758d909d28e24000292a0637
raspasov/neversleep
persistent_durable_vector_protocol.clj
(ns neversleep-db.persistent-durable-vector-protocol) (defprotocol DurableVectorNode (get-array [this]) (get-node-id [this]) (get-blob-id [this]) ValNode specific (get-value [this]))
null
https://raw.githubusercontent.com/raspasov/neversleep/7fd968f4ab20fa6ef71e1049e3eec289ea6691e4/src/neversleep_db/persistent_durable_vector_protocol.clj
clojure
(ns neversleep-db.persistent-durable-vector-protocol) (defprotocol DurableVectorNode (get-array [this]) (get-node-id [this]) (get-blob-id [this]) ValNode specific (get-value [this]))
ee002f3fd64089afdca9e8e0667edb3369a888bcd37b46c6fbaed36127ce35b8
AkronCodeClub/edX-FP101x-Oct-2014
fac.hs
fac 0 = 1 fac n = n * fac (n-1) main = print (fac 42)
null
https://raw.githubusercontent.com/AkronCodeClub/edX-FP101x-Oct-2014/7db691d795126ad912256fec29b5aa1817beb8c0/chris_f/5steps/fac.hs
haskell
fac 0 = 1 fac n = n * fac (n-1) main = print (fac 42)
d86c3c8c36a83fb3b656f0e0a6caf08afc947b30a825a4a20bd669bdbf234fb4
pink-gorilla/goldly
load.clj
(ns goldly.component.load (:require [taoensso.timbre :as log :refer [tracef debug debugf info infof warnf error errorf]] [webly.ws.core :refer [send! send-response watch-conn]] [webly.ws.msg-handler :refer [-event-msg-handler]])) ; index (defmulti load-index (fn [m] (:type m))) (defmethod load-index :defa...
null
https://raw.githubusercontent.com/pink-gorilla/goldly/a942f29378e51da5725989ba017bac5a61e7fe54/src-unused/system/goldly/component/load.clj
clojure
index component
(ns goldly.component.load (:require [taoensso.timbre :as log :refer [tracef debug debugf info infof warnf error errorf]] [webly.ws.core :refer [send! send-response watch-conn]] [webly.ws.msg-handler :refer [-event-msg-handler]])) (defmulti load-index (fn [m] (:type m))) (defmethod load-index :default [{:k...
4dc980e9bdc6324dc97ac1068772982c0d280ab1ed3ecf53343020e4cd9d1022
bazqux/bazqux-urweb
RunQueue.hs
import Queue (main)
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Executables/RunQueue.hs
haskell
import Queue (main)
16d8529fecf4622d447f36934af3f3415afbba07e0cc767ebc886cd11797ddad
lopusz/langlab
parsers.clj
(ns langlab.core.parsers "Module contains tools for parsing text into sentences and words." (:import [ org.apache.lucene.analysis.core SimpleAnalyzer] [ langlab.jcore.parsers BreakIteratorWrapper ICUBreakIteratorWrapper LuceneTools]) (:require [ clojure.string :refer (trim split) ] ...
null
https://raw.githubusercontent.com/lopusz/langlab/dd075c9f4ef3594defe16b88bab8460db23c7c75/src/main/clojure/langlab/core/parsers.clj
clojure
Only in the case when the whole `s` matches `re`
(ns langlab.core.parsers "Module contains tools for parsing text into sentences and words." (:import [ org.apache.lucene.analysis.core SimpleAnalyzer] [ langlab.jcore.parsers BreakIteratorWrapper ICUBreakIteratorWrapper LuceneTools]) (:require [ clojure.string :refer (trim split) ] ...
7d5e3c5d92e76b81f89e17a2a649596cc6b15f9e9991bed98b79593d3d1dde97
GrammaTech/sel
json.lisp
Utilities associated with json processing (defpackage software-evolution-library/utility/json (:nicknames :sel/utility/json) (:use :gt/full) (:export :convert-jsown-tree :string-case-to-keywords)) (in-package :software-evolution-library/utility/json) (in-readtable :curry-compose-reader-macros) (defun con...
null
https://raw.githubusercontent.com/GrammaTech/sel/a59174c02a454e8d588614e221cf281260cf12f8/utility/json.lisp
lisp
Utilities associated with json processing (defpackage software-evolution-library/utility/json (:nicknames :sel/utility/json) (:use :gt/full) (:export :convert-jsown-tree :string-case-to-keywords)) (in-package :software-evolution-library/utility/json) (in-readtable :curry-compose-reader-macros) (defun con...
872585f8a368e56200ddf7018f0ade5090ce979c32d1c1b30925826892cce009
nibbula/yew
id.lisp
;;; ;;; id.lisp - Print user information. ;;; (defpackage :id (:documentation "Print user information.") (:use :cl :dlib :opsys :collections :table :grout :lish) (:export #:!id )) (in-package :id) (defun user-name-list () (mapcar #'nos:user-info-name (nos:user-list))) (eval-when (:compile-toplevel :loa...
null
https://raw.githubusercontent.com/nibbula/yew/43f8df012da277e643e000aeb25adf96fd90d4d0/los/id.lisp
lisp
id.lisp - Print user information. Convert a string into a user number. (defclass arg-user (arg-lenient-choice) () (:default-initargs :choice-func #'user-name-list) (:documentation "User name.")) End
(defpackage :id (:documentation "Print user information.") (:use :cl :dlib :opsys :collections :table :grout :lish) (:export #:!id )) (in-package :id) (defun user-name-list () (mapcar #'nos:user-info-name (nos:user-list))) (eval-when (:compile-toplevel :load-toplevel :execute) (defargtype user (arg-l...
55a97b4b2fdc6b15b6e9f22aca3bb439d0590d3790493c814c92141922e9a8e9
hypernumbers/hypernumbers
api_post_test_SUITE.erl
%%%----------------------------------------------------------------------------- File : Author : < > %%% Description : tests the general post security %%% Created : 31st March 2013 by %%%----------------------------------------------------------------------------- -module(api_post_test_SU...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/tests/authorization_test/api_post_test_SUITE.erl
erlang
----------------------------------------------------------------------------- Description : tests the general post security ----------------------------------------------------------------------------- Note: This directive should only be used in test suites. callbacks tests to run mark jserr loading templates ...
File : Author : < > Created : 31st March 2013 by -module(api_post_test_SUITE). -compile(export_all). -include("test_server.hrl"). -define(SITE, ":9000"). -define(tapi(Name, Path, Body, Expected, Status), Name(_Config) -> io:format("running test ~p~n", [Name]), ...
62f6ec9a9ab139f4d309ea597d8bf0d096ae017996bdadc4d75cecc3122a7171
philnguyen/soft-contract
clock.rkt
#lang racket/base ;; Front-end: ;; Working with current clock (provide;/contract current-clock ;any/c] current-posix-seconds ;any/c] now/moment ;(->i () (#:tz [tz tz/c]) [res moment?])] now ;(->i () (#:tz [tz tz/c]) [res datetime?])] today ;(->i () (#:tz [tz t...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/gregor/clock.rkt
racket
Front-end: Working with current clock /contract any/c] any/c] (->i () (#:tz [tz tz/c]) [res moment?])] (->i () (#:tz [tz tz/c]) [res datetime?])] (->i () (#:tz [tz tz/c]) [res date?])] (->i () (#:tz [tz tz/c]) [res time?])] (-> moment?)] (-> datetime?)] (-> date?)] (-> time?)]) --------------------------------------...
#lang racket/base moment->iso8601 moment->iso8601/tzid UTC moment moment=? posix->moment ) (require require-typed-check "gregor-structs.rkt" ) (require (only-in "moment.rkt" ( ( U tz # f ) ) ] ( - > * ( Natural ) ( Month Natural Natural Natural Natural Natural # : tz ( U tz # f ) # : resolve - offset ( -...
e7c04ed53f6f1933a42c28cc0232bab810a1137fccd0cdc4766bce21a92ce5a1
smtcoq/smtcoq
smtBtype.mli
(**************************************************************************) (* *) (* SMTCoq *) Copyright ( C ) 2011 - 2022 (* ...
null
https://raw.githubusercontent.com/smtcoq/smtcoq/c0a1b83a76f9cf204de434eca969948c89c44598/src/trace/smtBtype.mli
ocaml
************************************************************************ SMTCoq ...
Copyright ( C ) 2011 - 2022 See file " " for the list of authors open SmtMisc type indexed_type val dummy_indexed_type: int -> indexed_type val indexed_type_index : indexed_type -> int val indexed_type_compdec : indexed_type -> CoqInte...
1b96fb5adf79f20c75504d2e10c0fe5f434fb02ce318815aec3f8186958856a0
zachsully/dl
Syntax.hs
{- | Module : DL.Syntax.Flat Description : Gives the flat core language for the compiler. Provides a transformation from the source to core language -} module DL.Flat.Syntax ( -- * Core flat language FlatTerm (..) , FlatPattern (..) , substFlatTerm ) where import DL.General.Type import D...
null
https://raw.githubusercontent.com/zachsully/dl/383bcc9d34c5e1f9787dede440a84503e5a2fd28/haskell/DL/Flat/Syntax.hs
haskell
| Module : DL.Syntax.Flat Description : Gives the flat core language for the compiler. Provides a transformation from the source to core language * Core flat language ------------------------------------------------------------------------------ Flat Terms ...
module DL.Flat.Syntax FlatTerm (..) , FlatPattern (..) , substFlatTerm ) where import DL.General.Type import DL.General.Variable import DL.Utils.Pretty data FlatTerm :: * where FLet :: Variable -> FlatTerm -> FlatTerm -> FlatTerm FVar :: Variable -> FlatTerm FFix :: Variable -> FlatTerm ->...
4c279726a29ead2e1aabdeb5bea7d44571ddd5bac4636f3e5032c54820ba285b
gelisam/commutative
Commutative.hs
module Data.Ord.Commutative where import Control.Applicative import Data.List import Data.Maybe import Control.Commutative import Data.Either.Extra import Data.List.Extra -- $setup -- >>> let list2 (x, y) = [x, y] -- Minimal complete definition: either commutative_sort2 , or both commutative_min and commutative...
null
https://raw.githubusercontent.com/gelisam/commutative/922b95b3c0be93755350dd1d58f7339d43ee4fc3/src/Data/Ord/Commutative.hs
haskell
$setup >>> let list2 (x, y) = [x, y] Minimal complete definition: | prop> min x y == runCommutative commutative_min x (y :: ()) | | | | | prop> min x y == runCommutative commutative_min x (y :: [Bool])
module Data.Ord.Commutative where import Control.Applicative import Data.List import Data.Maybe import Control.Commutative import Data.Either.Extra import Data.List.Extra either commutative_sort2 , or both commutative_min and commutative_max class Commutative_Ord a where commutative_sort2 :: Commutative a (a, ...
e2e4cae58d7f65ce08b07403c203b79fc31b941b8f64ea47416b5a467be54902
Eventuria/demonstration-gsd
Safe.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE Rank2Types #-} # LANGUAGE ExistentialQuantification # module Eventuria.Adapters.Streamly.Safe where import Control.Concurrent (ThreadId) import Control.Exception hiding (try) import Data.Either import Data.Function ((&)) import qualifi...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Adapters/Streamly/Safe.hs
haskell
# LANGUAGE Rank2Types # (x -> a -> m x) -> m x -> (x -> m b) -> SerialT m a -> m b Bunch of bad smells
# LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # module Eventuria.Adapters.Streamly.Safe where import Control.Concurrent (ThreadId) import Control.Exception hiding (try) import Data.Either import Data.Function ((&)) import qualified Streamly.Prelude as S imp...
26ea84f9f8b1d7b8ce93576f5f4c0b3dff1534ea382b5b3967de8c43d8c334b6
bluemont/kria
get.clj
(ns kria.pb.bucket.type.get (:require [kria.conversions :refer [byte-string<-utf8-string]] [kria.pb.bucket.props :refer [pb->BucketProps]] [kria.pb.bucket.get :refer [bytes->GetBucketResp]]) (:import [com.basho.riak.protobuf RiakPB$RpbGetBucketTypeReq RiakPB$RpbGetBucketResp])) (set! *warn-on-r...
null
https://raw.githubusercontent.com/bluemont/kria/8ed7fb1ebda8bfa1a2a6d7a3acf05e2255fcf0f0/src/clojure/kria/pb/bucket/type/get.clj
clojure
required bytes
(ns kria.pb.bucket.type.get (:require [kria.conversions :refer [byte-string<-utf8-string]] [kria.pb.bucket.props :refer [pb->BucketProps]] [kria.pb.bucket.get :refer [bytes->GetBucketResp]]) (:import [com.basho.riak.protobuf RiakPB$RpbGetBucketTypeReq RiakPB$RpbGetBucketResp])) (set! *warn-on-r...
9ba47d50c20a7461d922370180095d21a6b7e49f29b4671c6f9de2fd49882d9f
oxidizing/sihl
token.ml
open Alcotest_lwt module Make (TokenService : Sihl.Contract.Token.Sig) = struct let create_and_read_token _ () = let%lwt () = Sihl.Cleaner.clean_all () in let%lwt token = TokenService.create [ "foo", "bar"; "fooz", "baz" ] in let%lwt value = TokenService.read token ~k:"foo" in Alcotest.(check (option...
null
https://raw.githubusercontent.com/oxidizing/sihl/c6786f25424c1b9f40ce656e908bd31515f1cd09/sihl-token/test/token.ml
ocaml
open Alcotest_lwt module Make (TokenService : Sihl.Contract.Token.Sig) = struct let create_and_read_token _ () = let%lwt () = Sihl.Cleaner.clean_all () in let%lwt token = TokenService.create [ "foo", "bar"; "fooz", "baz" ] in let%lwt value = TokenService.read token ~k:"foo" in Alcotest.(check (option...
b26d6a1383be716dcd835d7984c589bec816e6cdb3cf743474a2e9887020a156
facebook/flow
polarity.ml
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/cb0ae49ddb63c9a85639a2c582f3784cee421213/src/typing/polarity/polarity.ml
ocaml
Subtype relation for polarities, interpreting neutral as positive & negative: whenever compat(p1,p2) holds, things that have polarity p1 can appear in positions that have polarity p2. printer
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
5486f417e2a6b97dc9218b83d9deb71762a80e9729d617c58ad35bb4c0ebdfca
NorfairKing/smos
Gen.hs
# LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module Smos.Cursor.Report.Work.Gen where import Cursor.Forest.Gen () import Cursor.Map.Gen () import Cursor.Text.Gen () import Data.GenValidity import Data.GenValidity.Path () import Data.Maybe import Smos.Cursor.Report.Entry import Smos.Cursor.Report...
null
https://raw.githubusercontent.com/NorfairKing/smos/3b7021c22915ae16ae721c7da60d715e24f4e6bb/smos-report-cursor-gen/src/Smos/Cursor/Report/Work/Gen.hs
haskell
# LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans # module Smos.Cursor.Report.Work.Gen where import Cursor.Forest.Gen () import Cursor.Map.Gen () import Cursor.Text.Gen () import Data.GenValidity import Data.GenValidity.Path () import Data.Maybe import Smos.Cursor.Report.Entry import Smos.Cursor.Report...
707f7bebf9ec669bf811a838a3795af0b8aff409f89a6888ba4ca5354cbbe9d7
msgpack/msgpack-ocaml
msgpackBase.ml
external (+>) : 'a -> ('a -> 'b) -> 'b = "%revapply" let ($) f g x = f (g x) let (!$) = Lazy.force external id : 'a -> 'a = "%identity" let uncurry f a b = f (a,b) let curry f (a,b) = f a b let flip f a b = f b a let const a _ = a let sure f = function Some x -> Some (f x) | None -> None let option f ...
null
https://raw.githubusercontent.com/msgpack/msgpack-ocaml/fc48b5492f59d74a54a164618706cdab43e8f6a7/lib/core/msgpackBase.ml
ocaml
external (+>) : 'a -> ('a -> 'b) -> 'b = "%revapply" let ($) f g x = f (g x) let (!$) = Lazy.force external id : 'a -> 'a = "%identity" let uncurry f a b = f (a,b) let curry f (a,b) = f a b let flip f a b = f b a let const a _ = a let sure f = function Some x -> Some (f x) | None -> None let option f ...
3989e8ea756fc7e9adaca50e69d3af7ff845419f52d61ad2cc5d4818346fdc41
skynet-gh/skylobby
handler_test.clj
(ns skylobby.client.handler-test (:require [clojure.test :refer [deftest is testing]] [skylobby.util :as u] [skylobby.client.gloss :as cu] [skylobby.client.handler :as handler] [skylobby.client.message :as message])) (set! *warn-on-reflection* true) (deftest parse-addbot (is (= ["12" "kekbot...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/b08404c63b033e8bb3fa1ee9d7510a9c11e2f095/test/clj/skylobby/client/handler_test.clj
clojure
(ns skylobby.client.handler-test (:require [clojure.test :refer [deftest is testing]] [skylobby.util :as u] [skylobby.client.gloss :as cu] [skylobby.client.handler :as handler] [skylobby.client.message :as message])) (set! *warn-on-reflection* true) (deftest parse-addbot (is (= ["12" "kekbot...
874151ae213d591d476cfd0e37272e037e56adf7656e48f47db106bc0119be29
nikita-volkov/rerebase
Time.hs
module Data.Time ( module Rebase.Data.Time ) where import Rebase.Data.Time
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Time.hs
haskell
module Data.Time ( module Rebase.Data.Time ) where import Rebase.Data.Time
60536ba1044891b5ea294707ce6d4fced2bba7cbc28370d288601d7ebe210edd
k-bx/protocol-buffers
add_person_haskell.hs
module Main where import Control.Monad import Text.ProtocolBuffers(messageGet,messagePut,Utf8(..),defaultValue) import Text.ProtocolBuffers.Header(Utf8(..)) import qualified Data.ByteString.Lazy as L(readFile,writeFile,null) import System import Data.Char import Data.Maybe(fromMaybe) import qualified Data.ByteString.L...
null
https://raw.githubusercontent.com/k-bx/protocol-buffers/89425795ac2d560c5d690714e7d206ba9f97aff2/examples/add_person_haskell.hs
haskell
module Main where import Control.Monad import Text.ProtocolBuffers(messageGet,messagePut,Utf8(..),defaultValue) import Text.ProtocolBuffers.Header(Utf8(..)) import qualified Data.ByteString.Lazy as L(readFile,writeFile,null) import System import Data.Char import Data.Maybe(fromMaybe) import qualified Data.ByteString.L...
00a9f833043a6218524acfea922c158a40d449ad0de316acce9b74eaabf36490
srid/neuron
View.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # module Neuron.Frontend.Zettel.View ( renderZettel, renderZettelContentCard, renderZettelParseError, renderBottomMenu, ) whe...
null
https://raw.githubusercontent.com/srid/neuron/1f127b8343dbe05e057688988b289066df1cdedb/src/Neuron/Frontend/Zettel/View.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # Main content | "Home" link | "Edit" URL for this route Edit url Impulse Enable semantic UI table styling
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # module Neuron.Frontend.Zettel.View ( renderZettel, renderZettelContentCard, renderZettelParseError, renderBottomMenu, ) where import Control.Monad.Fix (MonadFix) import qualified Data.D...
9cebcae9fd37b019980e28f697ce23db54c9b9a3d8a3954962eafd3982314a92
apache/couchdb-rebar
bug_5_rt.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et -module(bug_5_rt). -export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), ok. files() -> [{create, "ebin/a1.app", app(a1)}, {create, "deps/d1/src/d1....
null
https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/inttest/bug_5_rt.erl
erlang
ex: ts=4 sw=4 et Generate the contents of a simple .app file
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- -module(bug_5_rt). -export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), ok. files() -> [{create, "ebin/a1.app", app(a1)}, {create, "deps/d1/src/d1.app.src", app(d1)}, ...
c72e925d8175cd4b2a2d414006bd63b4be5e2cb7f618fbbbd946d6f7eb85c2c9
bn-d/ppx_pyformat
lexer_utils.ml
open Types let parse_module s = String.sub s 0 (String.length s - 1) let parse_list_index s = String.sub s 1 (String.length s - 2) |> int_of_string |> (fun i -> List_index i) |> Option.some let parse_align = function | "<" -> Left | ">" -> Right | "^" -> Center | "=" -> Pad | u -> raise (ValueError...
null
https://raw.githubusercontent.com/bn-d/ppx_pyformat/80784ca113ae2a7a2890fe03ed1f68f42307df3a/src/lexer_utils.ml
ocaml
open Types let parse_module s = String.sub s 0 (String.length s - 1) let parse_list_index s = String.sub s 1 (String.length s - 2) |> int_of_string |> (fun i -> List_index i) |> Option.some let parse_align = function | "<" -> Left | ">" -> Right | "^" -> Center | "=" -> Pad | u -> raise (ValueError...
cfc3b358dce1817c802193bcdf5ac46bceda1cd644d3163509860f14b2faee9e
clojure-interop/aws-api
AWSMarketplaceCommerceAnalyticsAsyncClient.clj
(ns com.amazonaws.services.marketplacecommerceanalytics.AWSMarketplaceCommerceAnalyticsAsyncClient "Client for accessing AWS Marketplace Commerce Analytics asynchronously. Each asynchronous method will return a Java overloads which accept an AsyncHandler can be used to receive notification when an asynchronous op...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.marketplacecommerceanalytics/src/com/amazonaws/services/marketplacecommerceanalytics/AWSMarketplaceCommerceAnalyticsAsyncClient.clj
clojure
(ns com.amazonaws.services.marketplacecommerceanalytics.AWSMarketplaceCommerceAnalyticsAsyncClient "Client for accessing AWS Marketplace Commerce Analytics asynchronously. Each asynchronous method will return a Java overloads which accept an AsyncHandler can be used to receive notification when an asynchronous op...
f94dd23ed10c4125a4bb642d622f48dde1d0237ffe6239e91251f2478bd04b85
haskell-servant/servant-swagger
SwaggerSpec.hs
# LANGUAGE CPP # {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE PackageImports #-} module Servant.Swa...
null
https://raw.githubusercontent.com/haskell-servant/servant-swagger/8a6e5c9074fcc53ed47377f0091c4cfc1c328268/test/Servant/SwaggerSpec.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE PackageImports # type-level test ======================================================================= Todo ...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # module Servant.SwaggerSpec where import Control.Lens import Data.Aeson (ToJSON(toJSON), Value, genericToJSON) import Data.Aeson.QQ.Simple import qualified Data.Aeson.Types as JSON import Data.Char (toLower) import ...
dfa89e2f64b9c01dff5664452c205a46a0cae81916e1ace1789b6daadfb6d7d8
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415161456.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_20210415161456.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...
fd0130b23b6400a044a0f3d8da18d1c481ba1353a6bc0319d5a949c69efb0ab7
thosmos/riverdb
log.cljc
(ns theta.log (:require #?@(:clj [[dotenv] [clojure.tools.logging :as log]])) #?(:cljs (:require-macros [theta.log]))) #?(:clj (defmacro app-env [] dotenv/app-env)) #?(:clj (defn cljs? "A CLJ macro helper. `env` is the macro's `&env` value. Returns true when expanding a macro while co...
null
https://raw.githubusercontent.com/thosmos/riverdb/c0a31710e4430113924178bd0a3b9e8304f58009/src/main/theta/log.cljc
clojure
FIXME change CLJ macros to check log-level (they currently elide at compile time) (defmacro functionize [macro] `(fn [& args#] (eval (cons '~macro args#)))) [fn-name level f] prefix (.toUpperCase (name fn-name)) env-level 0] ;env-level (or (dotenv/env :LOG_LEVEL) "0") env - ...
(ns theta.log (:require #?@(:clj [[dotenv] [clojure.tools.logging :as log]])) #?(:cljs (:require-macros [theta.log]))) #?(:clj (defmacro app-env [] dotenv/app-env)) #?(:clj (defn cljs? "A CLJ macro helper. `env` is the macro's `&env` value. Returns true when expanding a macro while co...
a464e4982b94d4f3e4d92c4c6ddb4c343fb84eb2e90ce75b07f917ea3f47dfed
draperlaboratory/cbat_tools
test_utils.mli
(***************************************************************************) (* *) Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/cbat_tools/334523cb4415f187e33f190a691e34b73733ef24/vsa/value_set/unit_tests/test_utils.mli
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc. This work is funded in part by ONR / NAWC Contract N6833518C0107 . Its content does not necessarily reflect the position or policy of the US open Cbat_value_set val print : string -> unit val test_ppf : Format.formatter val te...
f5c236ee43ef5f54bd564928d3122c4e72273e3917329b18cba98d44a3ad9492
aryx/fork-efuns
shell.mli
val eshell: string -> Efuns.action (* use Top_window.keypressed *) val eshell_num: Efuns.action
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/major_modes/shell.mli
ocaml
use Top_window.keypressed
val eshell: string -> Efuns.action val eshell_num: Efuns.action
7d743729dd3d40f7b7479a50b172091f3b0db8cbb31762a97695fc0e88bf191d
orthecreedence/cl-rethinkdb
query.lisp
(in-package :cl-rethinkdb) (define-condition query-error (simple-error) ((token :reader query-error-token :initarg :token :initform nil) (query :reader query-error-query :initarg :query :initform nil) (backtrace :reader query-error-backtrace :initarg :backtrace :initform nil) (msg :reader query-error-msg :i...
null
https://raw.githubusercontent.com/orthecreedence/cl-rethinkdb/f435e72dce7f900f599ade193859a202fd1ac33e/query.lisp
lisp
calculate current size minus token/size bytes make sure that the keys in any hash-tables are strings we have a sequence, so return a cursor. results accessible via (next ...) we have a partial sequence, so return a cursor. results accessible via (next ...) some kind of error, signal the future... because i'm para...
(in-package :cl-rethinkdb) (define-condition query-error (simple-error) ((token :reader query-error-token :initarg :token :initform nil) (query :reader query-error-query :initarg :query :initform nil) (backtrace :reader query-error-backtrace :initarg :backtrace :initform nil) (msg :reader query-error-msg :i...
199927dfd2bda1524ddcf4a071967b52e9cd04742df87514aa25a3675929cd2e
patoline/patoline
DynDriver.ml
open Driver let drivers : (string, (module OutputDriver)) Hashtbl.t = Hashtbl.create 37 let dependencies = ["Image",["DriverGL"];"Patonet",["SVG"]] let rec load_driver driverdir name = Printf.fprintf stderr "Loading driver %S.\n%!" name; let _ = try List.iter (load_driver driverdir) (List.assoc name dependen...
null
https://raw.githubusercontent.com/patoline/patoline/3dcd41fdff64895d795d4a78baa27d572b161081/patoraw/DynDriver.ml
ocaml
open Driver let drivers : (string, (module OutputDriver)) Hashtbl.t = Hashtbl.create 37 let dependencies = ["Image",["DriverGL"];"Patonet",["SVG"]] let rec load_driver driverdir name = Printf.fprintf stderr "Loading driver %S.\n%!" name; let _ = try List.iter (load_driver driverdir) (List.assoc name dependen...
35f8abf03f87e94d9f7a0561431bd966d12a25d3e451c350ed5ee85f83467e2d
liqd/aula
DemoData.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Werror -Wall -fno - warn - incomplete - patterns # | FIXME : this should be moved away from production code into ` ./tests/...
null
https://raw.githubusercontent.com/liqd/aula/f96dbf85cd80d0b445e7d198c9b2866bed9c4e3d/src/DemoData.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # * Constants * Generators FIXME: Sometimes there are no related students. In that case, we generate noise test data. | Consider calling 'updateAvatar' instead of this! | Do not call 'saveAvatar', but check if target ...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Werror -Wall -fno - warn - incomplete - patterns # | FIXME : this should be moved away from production code into ` ./tests/ ` module DemoData where import Control.Applicative ((<**>)) import Control.Exception (assert) import Control....
b59be112d5d78bb5d2c49a8b7af4fcf508d5baa8a1d66cd75b6d4d881fca0990
dtgoitia/civil-autolisp
SelectByPolyline.lsp
(defun c:xx () ; Trigger (DT:AutoLoadFileFromCivilTemp "SelectByLWPolyline.lsp") (c:SelectByLWPolyline) v0.0 - 2017.08.08 - First issue Author : Last revision : 2017.08.08 ) (defun c:SelectByLWPolyline ( / ename ss ) ; Select by polyline (if (setq ename (car (entsel "\nSelect polyline: "))) (if (...
null
https://raw.githubusercontent.com/dtgoitia/civil-autolisp/72d68139d372c84014d160f8e4918f062356349f/Dump%20folder/SelectByPolyline.lsp
lisp
Trigger Select by polyline END progn END if END if Return a selection set with the objects found within "ename" polyline END if END if END if
(defun c:xx () (DT:AutoLoadFileFromCivilTemp "SelectByLWPolyline.lsp") (c:SelectByLWPolyline) v0.0 - 2017.08.08 - First issue Author : Last revision : 2017.08.08 ) (defun c:SelectByLWPolyline ( / ename ss ) (if (setq ename (car (entsel "\nSelect polyline: "))) (if (setq ss (DT:SelectByLWPolyline enam...
33d258f435041b8adf1f57f169dc668afb3f22fbb8bdad38d8b9c75ee49f2b51
MarcKaufmann/congame
bots.rkt
#lang racket/base (require component (prefix-in bot: (submod congame/components/bot actions)) congame-pjb-studies/pjb-pilot-bot congame-web/components/user congame-web/dynamic (submod congame/components/bot actions) (except-in congame/components/study fail) ...
null
https://raw.githubusercontent.com/MarcKaufmann/congame/a77a8f6fe35020f0e8cf31595b0a5cd5d6654c25/congame-tests/congame/bots.rkt
racket
Adding new tests: * write the study under `studies/` * add the study to the instance list in `../info.rkt` * recompile everything/bust the study cache For this test we want to run the bots up to the step that fails and then stop and resume, then continue by failing. This tests a compositional issue with p...
#lang racket/base (require component (prefix-in bot: (submod congame/components/bot actions)) congame-pjb-studies/pjb-pilot-bot congame-web/components/user congame-web/dynamic (submod congame/components/bot actions) (except-in congame/components/study fail) ...
36d3866d920f0c36261331cf04725e93a7252f6ecf546330985098701839b31d
sile/sanmoku
sanmoku.lisp
(in-package :sanmoku) (package-alias :dawg :trie) (defun build-matrix (matrix.def matrix.bin) (declare #.*fastest*) (with-open-file (in matrix.def :external-format *text-dictionary-charset*) (with-open-file (out matrix.bin :direction :output :if-exists :supersede :element-type 'octet) (let ((left-num (r...
null
https://raw.githubusercontent.com/sile/sanmoku/9c218550894fc352a4f14f20d599a9494e742b8d/dicbuilder/sanmoku.lisp
lisp
cost XXX: ambiguous name
(in-package :sanmoku) (package-alias :dawg :trie) (defun build-matrix (matrix.def matrix.bin) (declare #.*fastest*) (with-open-file (in matrix.def :external-format *text-dictionary-charset*) (with-open-file (out matrix.bin :direction :output :if-exists :supersede :element-type 'octet) (let ((left-num (r...
f8eb03bf1977afad6bdb4c048ee4e460d0934e37c62945845e2611cf3a31ab5a
morpheusgraphql/morpheus-graphql
Stitching.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # # LANGUAGE UndecidableInstances # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.App.Internal.Stitching ( Stitching (..), ) where import Co...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/14d6f3a2d43166051ee8147e34e701c4fced9622/morpheus-graphql-app/src/Data/Morpheus/App/Internal/Stitching.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # NUll
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE PolyKinds # # LANGUAGE UndecidableInstances # # LANGUAGE NoImplicitPrelude # module Data.Morpheus.App.Internal.Stitching ( Stitching (..), ) where import Control.Monad.Except (MonadError (throwError)) import Data.M...
954663ff848334e7e49642a3d6e3725e155eb08482aa775f1f6596d49b883edc
novaframework/nova
nova_session_ets.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2019 , %%% @doc %%% %%% @end Created : 8 Dec 2019 by < > %%%------------------------------------------------------------------- -module(nova_session_ets). -behaviour(gen_server). %% API -export([ start_l...
null
https://raw.githubusercontent.com/novaframework/nova/354e4098912fecf72f1381fc6512d552c158c93c/src/nova_session_ets.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =================================================================== ---...
@author < > ( C ) 2019 , Created : 8 Dec 2019 by < > -module(nova_session_ets). -behaviour(gen_server). -export([ start_link/0, get_value/2, set_value/3, delete_value/1, delete_value/2 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info...
8cfca2a59db2434c631c855ed95b61fc73193195871bac3785e28a00382ea035
shop-planner/shop3
p02.lisp
(IN-PACKAGE :SHOP-USER) (DEFPROBLEM STRIPS-SAT-X-1 ((SATELLITE SATELLITE0) (INSTRUMENT INSTRUMENT0) (INSTRUMENT INSTRUMENT1) (MODE INFRARED0) (MODE INFRARED1) (MODE IMAGE2) (DIRECTION GROUNDSTATION1) (DIRECTION STAR0) (DIRECTION GROUNDSTATION2) (DIRECTION PLANET3) (DIRECTION PLANET4) (DIRECTION PHENOMENON5) ...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/satellite/strips/p02.lisp
lisp
(IN-PACKAGE :SHOP-USER) (DEFPROBLEM STRIPS-SAT-X-1 ((SATELLITE SATELLITE0) (INSTRUMENT INSTRUMENT0) (INSTRUMENT INSTRUMENT1) (MODE INFRARED0) (MODE INFRARED1) (MODE IMAGE2) (DIRECTION GROUNDSTATION1) (DIRECTION STAR0) (DIRECTION GROUNDSTATION2) (DIRECTION PLANET3) (DIRECTION PLANET4) (DIRECTION PHENOMENON5) ...
fa66a38d85c526779d4dce8de2ff974765911bfc36c9315a464185e5c7d375f2
mkoppmann/eselsohr
Capability.hs
module Lib.Infra.Persistence.Model.Capability ( CapabilityPm , fromDomain , toDomain , migrate ) where import Data.Aeson.Types ( FromJSON , ToJSON (..) , defaultOptions , genericToEncoding ) import Data.Time.Clock (UTCTime) import Prelude hiding (id) import qualified Lib.Domain...
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/3bb8609199c1dfda94935e6dde0c46fc429de84e/src/Lib/Infra/Persistence/Model/Capability.hs
haskell
---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- Migration ----------------------------------------------------------------------
module Lib.Infra.Persistence.Model.Capability ( CapabilityPm , fromDomain , toDomain , migrate ) where import Data.Aeson.Types ( FromJSON , ToJSON (..) , defaultOptions , genericToEncoding ) import Data.Time.Clock (UTCTime) import Prelude hiding (id) import qualified Lib.Domain...
e17ff171f4eb59021df916e0358c218f289a8f42baedfae1fc14493fef6828fd
ankushdas/Nomos
Terminal.mli
(* Interface for Terminal *) type terminal = LBRACE | RBRACE | LPAREN | RPAREN | LBRACKET | RBRACKET | LANGLE | RANGLE | SLASH | BACKSLASH | UP | DOWN | COLON | COMMA | SEMICOLON | PERIOD | PLUS | MINUS | STAR | AMPERSAND | LOLLI | BAR | EQ | RRARROW | LARROW | CAS...
null
https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/rast/Terminal.mli
ocaml
Interface for Terminal
type terminal = LBRACE | RBRACE | LPAREN | RPAREN | LBRACKET | RBRACKET | LANGLE | RANGLE | SLASH | BACKSLASH | UP | DOWN | COLON | COMMA | SEMICOLON | PERIOD | PLUS | MINUS | STAR | AMPERSAND | LOLLI | BAR | EQ | RRARROW | LARROW | CASE | CLOSE | WAIT | SEND...
9fe7c07a5e63691ec941471c516bb28aa154207814fae21d8ab0daba7a41e743
alphagov/govuk-guix
utils.scm
(define-module (gds scripts utils) #:use-module (ice-9 match) #:use-module (srfi srfi-1) #:export (option-values option-value)) (define (option-values opts key) (reverse (filter-map (match-lambda ((head . tail) (and (eq? key head) tail)) (_ #f)...
null
https://raw.githubusercontent.com/alphagov/govuk-guix/dea8c26d2ae882d0278be5c745e23abb25d4a4e2/gds/scripts/utils.scm
scheme
(define-module (gds scripts utils) #:use-module (ice-9 match) #:use-module (srfi srfi-1) #:export (option-values option-value)) (define (option-values opts key) (reverse (filter-map (match-lambda ((head . tail) (and (eq? key head) tail)) (_ #f)...
5609693c00be491479c14a98f0c1f6afdd52d345bb401f3a826054b7c73906d7
joearms/erl2
erld.erl
-module(erld). -export([batch/1, dump/0, clone/2, local99/3, local2/4, make_mods/0, run/1, string2exprs/1, test/0]). -import(lists, [reverse/1, reverse/2]). Copyright . 2011 All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you ...
null
https://raw.githubusercontent.com/joearms/erl2/cace495ddb53452b83dae3e92b260a306824126d/erld.erl
erlang
compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the Lice...
-module(erld). -export([batch/1, dump/0, clone/2, local99/3, local2/4, make_mods/0, run/1, string2exprs/1, test/0]). -import(lists, [reverse/1, reverse/2]). Copyright . 2011 All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may ...
0aa6d82ad15aa134329772406e0b369d567e3131a7368b607c382b4ba838d7ba
dialohq/inline-test-ppx
main.mli
(** Main module *)
null
https://raw.githubusercontent.com/dialohq/inline-test-ppx/6819315015ee0eaafe8408a9d98bfe5395a9ce9a/bin/main.mli
ocaml
* Main module
f5ce7f9a14dc5cc4ee15102603693fba3a1580b342f9e3f71939e61a7f18f54e
helium/erlang-hbbft
hbbft_bba.erl
-module(hbbft_bba). -export([init/3, input/2, handle_msg/3, sort_msgs/2, serialize/1, deserialize/2, status/1]). -record(bba_data, { state = init :: init | waiting | done, round = 0 :: non_neg_integer(), secret_key :: tc_key_share:tc_key_share(), coin :: undefined | hbbft_cc:cc...
null
https://raw.githubusercontent.com/helium/erlang-hbbft/49ea679405d37ffdb84d430fd04dd695ec51274c/src/hbbft_bba.erl
erlang
XXX some of these also have the {val, _} keys... upon receiving input binput , set est0 := binput and proceed as follows in consecutive epochs, with increasing labels r: – multicast BVALr (estr ) – bin_values {} message is from a future round message is from a future round message is from a future round messa...
-module(hbbft_bba). -export([init/3, input/2, handle_msg/3, sort_msgs/2, serialize/1, deserialize/2, status/1]). -record(bba_data, { state = init :: init | waiting | done, round = 0 :: non_neg_integer(), secret_key :: tc_key_share:tc_key_share(), coin :: undefined | hbbft_cc:cc...
0feaa4f3112a24518c2bce1398ef995c03e1bf2fed8eb52072ac3330839c7af4
gorillalabs/sparkling
registrator.clj
(ns sparkling.testutils.records.registrator (:require [sparkling.serialization :as standard-registrator] [sparkling.testutils.records.domain] ) (:import [org.apache.spark.serializer KryoRegistrator] [com.esotericsoftware.kryo Kryo Serializer] [org.objenesis.strategy Std...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/test/sparkling/testutils/records/registrator.clj
clojure
(.setRegistrationRequired kryo true)
(ns sparkling.testutils.records.registrator (:require [sparkling.serialization :as standard-registrator] [sparkling.testutils.records.domain] ) (:import [org.apache.spark.serializer KryoRegistrator] [com.esotericsoftware.kryo Kryo Serializer] [org.objenesis.strategy Std...
a91f9d38eef4531417d3c152f5cc0aac83992d431914f81852b23761cbe02575
korya/efuns
xbuffer.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/xlib/xbuffer.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Xtypes seule assertion sur le codage des types con...
e6ae555bd9f9717b8aba499c6ce8caa48220d6230bef90744fcd8e4aa695205e
armstnp/advent-of-code-2019
day5.clj
(ns advent-of-code-2019.day5 (:require [advent-of-code-2019.core :as core] [clojure.string :as str])) (def input (-> "day5.txt" core/read-input str/trim (str/split #",") (->> (mapv core/parse-int)))) Operations (defn param-value [memory pa...
null
https://raw.githubusercontent.com/armstnp/advent-of-code-2019/68e21174394d8b0e14433f9f249e995c10ac6d67/src/advent_of_code_2019/day5.clj
clojure
Instruction parsing and handling
(ns advent-of-code-2019.day5 (:require [advent-of-code-2019.core :as core] [clojure.string :as str])) (def input (-> "day5.txt" core/read-input str/trim (str/split #",") (->> (mapv core/parse-int)))) Operations (defn param-value [memory pa...
8d3180056ed345f257922f328ee52795326b48ef3a8912466f538255381863cf
SuzanneSoy/type-expander
lang.rkt
#lang racket/base (require "lang/main.rkt") (provide (all-from-out "lang/main.rkt"))
null
https://raw.githubusercontent.com/SuzanneSoy/type-expander/b182b9422083bf8adee71d6543f78372ad801ede/lang.rkt
racket
#lang racket/base (require "lang/main.rkt") (provide (all-from-out "lang/main.rkt"))
e2bd045840731e33ee5a10e732af2cf28a7816ebcb7f20bf19595eb3d3707b63
nasa/Common-Metadata-Repository
service_search_test.clj
(ns cmr.system-int-test.search.service.service-search-test "This tests searching services." (:require [clojure.string :as string] [clojure.test :refer :all] [cmr.common.mime-types :as mime-types] [cmr.common.util :refer [are3]] [cmr.mock-echo.client.echo-util :as e] [cmr.system-int-test.data2.core...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/1606a1949aad31833d37718d25dce3190be8a9fe/system-int-test/test/cmr/system_int_test/search/service/service_search_test.clj
clojure
native-id Param concept-id Param Combination of params Now I should find the all services when searching Now searching services does not find the deleted service Now verify that after we delete a service that has service association, we can't find it through search Now searching services does not find the ...
(ns cmr.system-int-test.search.service.service-search-test "This tests searching services." (:require [clojure.string :as string] [clojure.test :refer :all] [cmr.common.mime-types :as mime-types] [cmr.common.util :refer [are3]] [cmr.mock-echo.client.echo-util :as e] [cmr.system-int-test.data2.core...
38c8b8cdda0ef57f415e7342c9dda1882f32b7051b4b3a13bd821a805626722a
8c6794b6/haskell-sc-scratch
ParTest1.hs
| Module : $ Header$ Maintainer : Stability : unstable Portability : portable Parallel test , take 1 . Module : $Header$ Maintainer : Stability : unstable Portability : portable Parallel test, take 1. -} module Hal6.ParTest1 where import Control.Parallel.Strategies import Hal6.Collat...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Parallel/hal6/Hal6/ParTest1.hs
haskell
let c (m1, s1) (m2, s2) = (m1 `max` m2, s1 + s2)
| Module : $ Header$ Maintainer : Stability : unstable Portability : portable Parallel test , take 1 . Module : $Header$ Maintainer : Stability : unstable Portability : portable Parallel test, take 1. -} module Hal6.ParTest1 where import Control.Parallel.Strategies import Hal6.Collat...
75b6ca7216016e579c53e99d316f3ee8ab639ef51fc4b8e8d405dca4213d37f6
lispbuilder/lispbuilder
color.lisp
(in-package #:rm) (defclass color (foreign-object copyable-object) ((create-function :initform nil :initarg :create) (size :reader size :initform nil :initarg :size)) (:default-initargs :gc t :copy-p nil :free-on-delete t)) (defclass color-3d (color)()) (defclass color-4d (color...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-openrm/openrm/color.lisp
lisp
(cffi:with-foreign-slots ((rm-cffi::lum) (slot-value self 'foreign-pointer-to-object) rm-cffi::rm-color-1d) (cffi:with-foreign-slots ((rm-cffi::lum rm-cffi::alpha) (slot-value self 'foreign-pointer-to-object) rm-cffi::rm-color-2d) rm-cffi::b 0.0))) lum-val)) (cffi:foreign-slot-value (fp color) 'rm-cffi::...
(in-package #:rm) (defclass color (foreign-object copyable-object) ((create-function :initform nil :initarg :create) (size :reader size :initform nil :initarg :size)) (:default-initargs :gc t :copy-p nil :free-on-delete t)) (defclass color-3d (color)()) (defclass color-4d (color...
49b25ee04780af1af8237cfb94efa362cc76b12482d400a13bc527da6b635b5f
Andromedans/andromeda
indices.mli
open Nucleus_types val nth : 'a indices -> int -> 'a val of_list : 'a list -> 'a indices val to_list : 'a indices -> 'a list val cons : 'a -> 'a indices -> 'a indices
null
https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/src/nucleus/indices.mli
ocaml
open Nucleus_types val nth : 'a indices -> int -> 'a val of_list : 'a list -> 'a indices val to_list : 'a indices -> 'a list val cons : 'a -> 'a indices -> 'a indices
f50ba0df11eb715146ab7ff878042414d1597c2db86c3aec7f6bcec97e494be9
turion/rhine
Util.hs
{-# LANGUAGE Arrows #-} # LANGUAGE RecordWildCards # module FRP.Rhine.Clock.Util where -- time-domain import Data.TimeDomain -- rhine import FRP.Rhine.Clock import FRP.Rhine.Clock.Proxy -- * Auxiliary definitions and utilities -- | Given a clock value and an initial time, -- generate a stream of time stamps. genT...
null
https://raw.githubusercontent.com/turion/rhine/a43d98bd27d9717c107bb72c420a8af340de34dd/rhine/src/FRP/Rhine/Clock/Util.hs
haskell
# LANGUAGE Arrows # time-domain rhine * Auxiliary definitions and utilities | Given a clock value and an initial time, generate a stream of time stamps.
# LANGUAGE RecordWildCards # module FRP.Rhine.Clock.Util where import Data.TimeDomain import FRP.Rhine.Clock import FRP.Rhine.Clock.Proxy genTimeInfo :: (Monad m, Clock m cl) => ClockProxy cl -> Time cl -> MSF m (Time cl, Tag cl) (TimeInfo cl) genTimeInfo _ initialTime = proc (absolute, tag) -> do lastTime ...
164c58fc7a61f53e800e695d3c3ff27b5b5b0e12222c2e0f1c9bce1f9371c0f7
dmjio/Jaskell
Parser.hs
module Parser where import Decs import System.IO import Control.Monad import Control.Applicative hiding ((<|>),many) import Text.ParserCombinators.Parsec import Text.ParserCombinators.Parsec.Expr import Text.ParserCombinators.Parsec.Language import qualified Text.ParserCombinators.Parsec.Token as Token languageDef = ...
null
https://raw.githubusercontent.com/dmjio/Jaskell/9412cbe4dd341e95f3ef6c8ce5fe56d627f0c048/Parser/Parser.hs
haskell
statement parsers
module Parser where import Decs import System.IO import Control.Monad import Control.Applicative hiding ((<|>),many) import Text.ParserCombinators.Parsec import Text.ParserCombinators.Parsec.Expr import Text.ParserCombinators.Parsec.Language import qualified Text.ParserCombinators.Parsec.Token as Token languageDef = ...
8b80927c0e775172ef1b742baabd18375bb0a94b8baa81eaa819f2264348d4a3
discus-lang/ddc
Post.hs
| After type checking proper we scan through the AST to ensure that -- all meta-type variables have been solved. If not then the type at that -- point is ambiguous. module DDC.Core.Check.Post ( checkExp ) where import DDC.Core.Exp.Annot import DDC.Core.Check.Error import qualified DDC.Type.Sum as Sum ...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Check/Post.hs
haskell
all meta-type variables have been solved. If not then the type at that point is ambiguous. | Post check an expression. | Post check a parameter. | Post check an argument. | Post check a case alternative. | Post check a pattern. | Post check some let bindings. | Post check a binding. | Post check a type.
| After type checking proper we scan through the AST to ensure that module DDC.Core.Check.Post ( checkExp ) where import DDC.Core.Exp.Annot import DDC.Core.Check.Error import qualified DDC.Type.Sum as Sum checkExp :: Exp a n -> Either (Error a n) () checkExp xx = case xx of XVar{} -> return () ...
0fe66da379dc5357bb181a7db581e5eb76cf6df717614bb06cd1ae0d44d2ffdd
zk/clojuredocs
util.cljc
(ns clojuredocs.util (:require [clojure.string :as str] [clojuredocs.md5 :as md5] #? (:clj [cheshire.core :as json]) #? (:clj [clojure.pprint :refer [pprint]]) #? (:cljs [goog.string :as gstring]) #? (:cljs [cljs.reader :as reader])) #? (:clj (:imp...
null
https://raw.githubusercontent.com/zk/clojuredocs/28f5ee500f4349039ee81c70d7ac40acbb19e5d8/src/cljc/clojuredocs/util.cljc
clojure
legacy
(ns clojuredocs.util (:require [clojure.string :as str] [clojuredocs.md5 :as md5] #? (:clj [cheshire.core :as json]) #? (:clj [clojure.pprint :refer [pprint]]) #? (:cljs [goog.string :as gstring]) #? (:cljs [cljs.reader :as reader])) #? (:clj (:imp...
e1fa776440219b2eb57fb2531dfd4d6c4856f756df822fd986d7ba184e450374
softlab-ntua/bencherl
tx_state.erl
2009 - 2011 Zuse Institute Berlin 2009 onScale solutions GmbH Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/scalaris/src/transactions/tx_state.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2009 - 2011 Zuse Institute Berlin 2009 onScale solutions GmbH Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > The state for a whole transaction in a TM and RTM . @version $ I d ...
ad4976dc27fb8e437b6658e49d324fd50fbdf7f4ce1e12500204512bac3659b8
ghcjs/ghcjs
tH_spliceE1.hs
# LANGUAGE TemplateHaskell # module Main where my_id :: a -> a my_id x = $( [| x |] ) main = print (my_id "hello")
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/th/tH_spliceE1.hs
haskell
# LANGUAGE TemplateHaskell # module Main where my_id :: a -> a my_id x = $( [| x |] ) main = print (my_id "hello")
ca1667a281be083f3effe9502d7fd62a9aae4a76322406be349d3c3b455379e5
purcell/icfpc2017
Strategy.hs
# OPTIONS_GHC -fno - warn - type - defaults # module Strategy where import Data.Foldable (asum) import qualified Data.Graph.Inductive.Graph as G import qualified Data.Graph.Inductive.Query.MST as MST import Data.List as List (sortBy) import qualified Data.Map as M import Data.Maybe (fromJust, listToMaybe) import Data...
null
https://raw.githubusercontent.com/purcell/icfpc2017/9aedea64ca228d32a222faaee8862a59811b2cfc/src/Strategy.hs
haskell
TODO: include rivers where options are available
# OPTIONS_GHC -fno - warn - type - defaults # module Strategy where import Data.Foldable (asum) import qualified Data.Graph.Inductive.Graph as G import qualified Data.Graph.Inductive.Query.MST as MST import Data.List as List (sortBy) import qualified Data.Map as M import Data.Maybe (fromJust, listToMaybe) import Data...
0eaff2deea7bc1516661745058a48d528819dc2ebb1ef5a32fa71af0616470ff
Eventuria/demonstration-gsd
Core.hs
module Eventuria.Commons.Dependencies.Core where import Data.List.NonEmpty type UnhealthyReason = String type Healthy = () type HealthCheckResult = Either UnhealthyReason Healthy healthy :: HealthCheckResult healthy = Right () unhealthy :: String -> HealthCheckResult unhealthy = Left type Name = String data Unhe...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Commons/Dependencies/Core.hs
haskell
module Eventuria.Commons.Dependencies.Core where import Data.List.NonEmpty type UnhealthyReason = String type Healthy = () type HealthCheckResult = Either UnhealthyReason Healthy healthy :: HealthCheckResult healthy = Right () unhealthy :: String -> HealthCheckResult unhealthy = Left type Name = String data Unhe...
faaa602c1e186ad405a3e5f4800d631385b34e2ba58154d358697a5decb3bc17
lambe-lang/mitch
expander.ml
open Mitch_ir let rec expand_sequence = let open Objcode in function | IF_LEFT (l, r) :: s when List.length s > 0 -> [ IF_LEFT (l @ s, r @ s) ] | a :: l -> expand_instruction a :: expand_sequence l | [] -> [] and expand_instruction = let open Objcode in function | LAMBDA (n, l) -> LAMBDA (n, expand_se...
null
https://raw.githubusercontent.com/lambe-lang/mitch/2c47f6627c3a219c31afd078836e9e7be3e26719/lib/mitch/system/s02_expander/expander.ml
ocaml
open Mitch_ir let rec expand_sequence = let open Objcode in function | IF_LEFT (l, r) :: s when List.length s > 0 -> [ IF_LEFT (l @ s, r @ s) ] | a :: l -> expand_instruction a :: expand_sequence l | [] -> [] and expand_instruction = let open Objcode in function | LAMBDA (n, l) -> LAMBDA (n, expand_se...
06efdd6cb4ecbe19431190e631633b377e961f195e23fbeb9081485f451989b0
uim/uim
sj3-key-custom.scm
;;; sj3-custom.scm: Customization variables for sj3.scm ;;; Copyright ( c ) 2003 - 2013 uim Project ;;; ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: 1 . Redistributions of sour...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/sj3-key-custom.scm
scheme
sj3-custom.scm: Customization variables for sj3.scm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of condi...
Copyright ( c ) 2003 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
b9ae594f8a7175215714ea6abcb36f8741bd7ab252b72303290f42a3916ccc12
tweag/ormolu
merging-0-out.hs
import Foo import Foo (bar, foo) import Foo as F
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/import/merging-0-out.hs
haskell
import Foo import Foo (bar, foo) import Foo as F
e11cf78731e99fc92474d285f65f9a3e0b04c122e45c51d6d06e076a2e29ba20
fukamachi/lack
media-type.lisp
(in-package :cl-user) (defpackage lack.media-type (:use :cl) (:import-from :quri :url-decode-params) (:import-from :cl-ppcre :split) (:export :media-type :make-media-type :media-type-main-type :media-type-sub-type :media-type-params ...
null
https://raw.githubusercontent.com/fukamachi/lack/156ef010d5a90e629107b44661221b26b507d7ef/src/media-type.lisp
lisp
(in-package :cl-user) (defpackage lack.media-type (:use :cl) (:import-from :quri :url-decode-params) (:import-from :cl-ppcre :split) (:export :media-type :make-media-type :media-type-main-type :media-type-sub-type :media-type-params ...
7571049de294cc28d247e965a4bc0c5e0b3bd7f8c8658bdc1d4a422b0680e566
zenspider/schemers
exercise.1.19.scm
#lang racket/base Exercise 1.19 : ;; There is a clever algorithm for computing the Fibonacci numbers in ;; a logarithmic number of steps. Recall the transformation of the ;; state variables a and b in the `fib-iter' process of section *Note 1 - 2 - 2 : a < - a + b and b < - a. Call this transformation T , and ;;...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_1/exercise.1.19.scm
scheme
There is a clever algorithm for computing the Fibonacci numbers in a logarithmic number of steps. Recall the transformation of the state variables a and b in the `fib-iter' process of section *Note observe that applying T over and over again n times, starting with according to a <- bq + aq + ap and b <- bp + aq. S...
#lang racket/base Exercise 1.19 : 1 - 2 - 2 : a < - a + b and b < - a. Call this transformation T , and 1 and 0 , produces the pair _ Fib_(n + 1 ) and _ Fib_(n ) . In other words , the Fibonacci numbers are produced by applying , the nth power of the transformation T , starting with the pair ( 1,0 ) . Now...
12875cc5006913bd8dd2e7d82df94f3ea265ebb63ca6d769c5083cf4746173c9
TDacik/Deadlock
lock_types.ml
Modules for working with : * - locks * - locksets ( sets of locks ) * - lockset sets ( sets of locksets ) * * Author : ( ) , 2020 * - locks * - locksets (sets of locks) * - lockset sets (sets of locksets) * * Author: Tomas Dacik (), 2020 *) open! Deadlock_top open Trace_utils module AI =...
null
https://raw.githubusercontent.com/TDacik/Deadlock/ae5385afe24c5883e5c623f03324d013bc352c12/src/lockset_analysis/lock_types.ml
ocaml
TODO: local init Union of all elements Intersection of all elements
Modules for working with : * - locks * - locksets ( sets of locks ) * - lockset sets ( sets of locksets ) * * Author : ( ) , 2020 * - locks * - locksets (sets of locks) * - lockset sets (sets of locksets) * * Author: Tomas Dacik (), 2020 *) open! Deadlock_top open Trace_utils module AI =...
6ce067f201920dd0d65edc3b2223044cb722d2c5ce26c3a80d1e840a4e5933b3
TrustInSoft/tis-interpreter
term.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/qed/src/term.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
fff1fc578ade5c6d020939c26a89f4727dba2e1b291215d7343c92d97bda884a
wireapp/wire-server
InternalServer.hs
# LANGUAGE PartialTypeSignatures # {-# OPTIONS_GHC -Wno-partial-type-signatures #-} -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public Lic...
null
https://raw.githubusercontent.com/wireapp/wire-server/ce4ecea4ac4894db1dcb3b5079fd9eff3ab726f4/services/federator/src/Federator/InternalServer.hs
haskell
# OPTIONS_GHC -Wno-partial-type-signatures # This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warran...
# LANGUAGE PartialTypeSignatures # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License alo...
1f480af34a97a80abfa287de7f88ee4990dca1729d6acd43cc74e14e087aa1de
static-analysis-engineering/codehawk
jCHNativeMethods.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpre/jCHNativeMethods.ml
ocaml
chutil jchlib jchpre
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...