_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
9847488657c94de52e06f343ab9eafba426f68d3b1b666505832878bd5de1b17
yomimono/stitchcraft
psf2stitchfont.ml
[%%cstruct type psf2header = { magic : uint8_t [@len 4]; version : uint32_t; start_of_glyphs : uint32_t; flags : uint32_t; number_of_glyphs : uint32_t; bytes_per_character : uint32_t; height : uint32_t; (* in bits *) width : uint32_t; (* also in bits *) } [@@little_endian]] type err...
null
https://raw.githubusercontent.com/yomimono/stitchcraft/f5ccccce3cd06e1e154c7138e0206bf8c818d2be/fontreader/lib/psf2stitchfont.ml
ocaml
in bits also in bits returns the uchars in question and the place to look for a next one this looks scary, but is the normal case :) tell us how far you got!
[%%cstruct type psf2header = { magic : uint8_t [@len 4]; version : uint32_t; start_of_glyphs : uint32_t; flags : uint32_t; number_of_glyphs : uint32_t; bytes_per_character : uint32_t; } [@@little_endian]] type error = [ `Too_short | `Wrong_magic of Cstruct.t | `No_unicode | `No_unic...
cabd3104387b55e2374578b9fba1acfdbbc00b43108229ee5450d2b04dc3da80
ciderpunx/57-exercises-for-programmers
Main.hs
module Main where import Lib import P51FirebaseNotes hiding (main) main :: IO () main = fclient
null
https://raw.githubusercontent.com/ciderpunx/57-exercises-for-programmers/25958ab80cc3edc29756d3bddd2d89815fd390bf/app/Main.hs
haskell
module Main where import Lib import P51FirebaseNotes hiding (main) main :: IO () main = fclient
6b01eedd970f3b88abe3e2a7259df1cccbce6453f919c766067b86a16d93125a
SjVer/Som-Lang
malfunction_compat.cppo.ml
open Lambda let fresh = #if OCAML_VERSION < (4, 08, 0) Ident.create #else Ident.create_local #endif let loc_none = #if OCAML_VERSION < (4, 11, 0) Location.none #else Debuginfo.Scoped_location.Loc_unknown #endif let lswitch (scr : lambda) (swi : lambda_switch) = #if OCAML_VERSION >= (4, 06, 0) Lswitch(scr, ...
null
https://raw.githubusercontent.com/SjVer/Som-Lang/4d2f62d7f3bfe5929a962bdeddbd94ea75439ad7/somc/lib/malfunction/malfunction_compat.cppo.ml
ocaml
open Lambda let fresh = #if OCAML_VERSION < (4, 08, 0) Ident.create #else Ident.create_local #endif let loc_none = #if OCAML_VERSION < (4, 11, 0) Location.none #else Debuginfo.Scoped_location.Loc_unknown #endif let lswitch (scr : lambda) (swi : lambda_switch) = #if OCAML_VERSION >= (4, 06, 0) Lswitch(scr, ...
cc04180ab31f171018b7e9feb942bab67ab75e8cc488c271d2ce9ca73d23aa04
fpco/stackage-server
devel.hs
{-# LANGUAGE PackageImports #-} import "stackage-server" Application (develMain) import Prelude (IO) main :: IO () main = develMain
null
https://raw.githubusercontent.com/fpco/stackage-server/b707b5a0d72c44a3134a305b628c3f0b28db2697/app/devel.hs
haskell
# LANGUAGE PackageImports #
import "stackage-server" Application (develMain) import Prelude (IO) main :: IO () main = develMain
a400c30e67470d409f6c336010718191aa00c8f892d8e3531a313cc393131cec
dsheets/ocaml-unix-unistd
unistd_unix.ml
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/dsheets/ocaml-unix-unistd/20187eb4d160703bdd872d2b5df87c4da9de81c7/unix/unistd_unix.ml
ocaml
Filesystem functions Process functions
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
0e8c44dc09c5d0ec596292ac7304a7f43ddbe94a56ad33e3c9d29eab31139467
inaimathi/cl-css
css3-3d-transform.lisp
(in-package :cl-css) (defun perspective (n) (split-directive :perspective n (-webkit-))) (defun perspective-origin (x y) (split-directive :perspective-origin (concatenate 'string (%-or-word x) " " (%-or-word y)) (-webkit-))) (defun backface-visibility (visible/hidden) (split-directive :backface-visibili...
null
https://raw.githubusercontent.com/inaimathi/cl-css/8fe654c8f0cf95b300718101cce4feb517f78e2f/css3-3d-transform.lisp
lisp
(in-package :cl-css) (defun perspective (n) (split-directive :perspective n (-webkit-))) (defun perspective-origin (x y) (split-directive :perspective-origin (concatenate 'string (%-or-word x) " " (%-or-word y)) (-webkit-))) (defun backface-visibility (visible/hidden) (split-directive :backface-visibili...
d09245618f41e2dac8251b2c6465a810cbcb6722674d55ee12a1e036335b5621
ChrisPenner/comonads-by-example
DepAnalysis.hs
module Comonads.Traced.DepAnalysis where import qualified Data.Set as S import Comonads.Traced ingredientsOf :: String -> S.Set String ingredientsOf "string" = S.fromList ["wool"] ingredientsOf "sticks" = S.fromList ["wood"] ingredientsOf "bow" = S.fromList ["sticks", "string"] ingr...
null
https://raw.githubusercontent.com/ChrisPenner/comonads-by-example/1d7626f759e59ac8019322612ed6d7ff00da75c9/src/Comonads/Traced/DepAnalysis.hs
haskell
allIngredientsFor :: Traced (S.Set String) (S.Set String) where selectNext :: (S.Set String, S.Set String) -> Traced (S.Set String) (S.Set String) -> S.Set String selectNext (requirements, input) t
module Comonads.Traced.DepAnalysis where import qualified Data.Set as S import Comonads.Traced ingredientsOf :: String -> S.Set String ingredientsOf "string" = S.fromList ["wool"] ingredientsOf "sticks" = S.fromList ["wood"] ingredientsOf "bow" = S.fromList ["sticks", "string"] ingr...
796d7d3f9d340c148448bf58384e8d280c4abc22185ba7182417743553a1d166
yakaz/yamerl
yamerl_node_null.erl
%- Copyright ( c ) 2012 - 2014 Yakaz Copyright ( c ) 2016 - 2022 < > % 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 source code must retain the above copyright...
null
https://raw.githubusercontent.com/yakaz/yamerl/bf9d8b743bfc9775f2ddad9fb8d18ba5dc29d3e1/src/yamerl_node_null.erl
erlang
- 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 conditions and the following disclaimer in the documen...
Copyright ( c ) 2012 - 2014 Yakaz Copyright ( c ) 2016 - 2022 < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ` ` AS IS '' AND IMPLIED WARRANTIES OF MERC...
db28dec2ef8d0586cf4fef6d90db7858b29b4f2d8e684b572bd4ea3fa61c8836
ngorogiannis/cyclist
case.mli
open Lib open Generic type t val mk : Prod.t -> Term.t list -> t val dest : t -> Prod.t * Term.t list val vars : t -> Term.Set.t val freshen : Term.Set.t -> t -> t val to_string : string -> t -> string val parse_case : (t * string, 'a) MParser.t val parse_cases : ((t * string) list, 'a) MParser.t
null
https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/firstorder/case.mli
ocaml
open Lib open Generic type t val mk : Prod.t -> Term.t list -> t val dest : t -> Prod.t * Term.t list val vars : t -> Term.Set.t val freshen : Term.Set.t -> t -> t val to_string : string -> t -> string val parse_case : (t * string, 'a) MParser.t val parse_cases : ((t * string) list, 'a) MParser.t
1f252a7b4f5d806ea2f343af79661e4ec2147dcb3f39670bd0bace8bf2e1dfcd
mzp/coq-ruby
termops.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/pretyping/termops.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Sorts and sort family let current_...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : termops.ml 12058 ...
430259bfe24e10dcf72a1df5938c2307474a1a9cbb8314c6ca18996aed7ad603
dinosaure/dinoscheme
operation.mli
val eval: Index.t -> int
null
https://raw.githubusercontent.com/dinosaure/dinoscheme/6bc4f2f0376585f0900ab4bf8e049edd06fa3d74/dinc/operation.mli
ocaml
val eval: Index.t -> int
5a7e0afdbfe7766de7677fdb8354a779abd74927ad6ffcc1d759e523011e5d81
bakul/s9fes
realtest.scm
; Scheme 9 from Empty Space ; Real Number Test Suite By , 2008 , 2009 (define testfile "test.tmp") (if (file-exists? testfile) (delete-file testfile)) (define Errors 0) (define (void) (if #f #f)) (define (seq) (let ((n 1)) (lambda () (let ((x n)) (set! n (+ 1 n)) x)))) (define...
null
https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/util/realtest.scm
scheme
Scheme 9 from Empty Space Real Number Test Suite (write expr) (display " => ") (write result) (newline) --- arithmetics --- --- equivalence --- --- strings --- --- I/O ---
By , 2008 , 2009 (define testfile "test.tmp") (if (file-exists? testfile) (delete-file testfile)) (define Errors 0) (define (void) (if #f #f)) (define (seq) (let ((n 1)) (lambda () (let ((x n)) (set! n (+ 1 n)) x)))) (define (fail expr result expected) (display "test failed:...
9c98de48bd6d280103c20f7562080319d5f26bbe5b4a072893150dfcf1b3be07
janestreet/hardcaml
test_arity.ml
open! Import open! Bits let%expect_test "[compute_arity]" = let test ~num_steps value = let arities = List.init num_steps ~f:(fun steps -> Bits.compute_arity ~steps:(steps + 1) value) in print_s [%message (arities : int list)] in test ~num_steps:5 0; [%expect {| (arities (0 2 2 2 2)) |}]; t...
null
https://raw.githubusercontent.com/janestreet/hardcaml/4126f65f39048fef5853ba9b8d766143f678a9e4/test/lib/test_arity.ml
ocaml
more steps that required larger examples
open! Import open! Bits let%expect_test "[compute_arity]" = let test ~num_steps value = let arities = List.init num_steps ~f:(fun steps -> Bits.compute_arity ~steps:(steps + 1) value) in print_s [%message (arities : int list)] in test ~num_steps:5 0; [%expect {| (arities (0 2 2 2 2)) |}]; t...
a890c8dbab9c8a3bd708f2ecc9c1730777db52a4fb6a3bad8f736b920c884c47
phadej/cabal-extras
Template.hs
# OPTIONS_GHC -fno - warn - unused - imports # module CabalBundler.NixSingle.Template (render) where import Prelude (String, fst, snd, ($), return) import Control.Monad (forM_) import CabalBundler.NixSingle.Input type Writer a = (String, a) tell :: String -> Writer (); tell x = (x, ()) execWriter :: Writer a -> String;...
null
https://raw.githubusercontent.com/phadej/cabal-extras/378cac5495b829794d67f243b27a9317eeed0858/cabal-bundler/src/CabalBundler/NixSingle/Template.hs
haskell
# OPTIONS_GHC -fno - warn - unused - imports # module CabalBundler.NixSingle.Template (render) where import Prelude (String, fst, snd, ($), return) import Control.Monad (forM_) import CabalBundler.NixSingle.Input type Writer a = (String, a) tell :: String -> Writer (); tell x = (x, ()) execWriter :: Writer a -> String;...
8e581be7196bb4a7293577327d93ea64efbe4461b791e601c0fa0f156e817645
qiao/sicp-solutions
2.77.scm
;; (magnitude z) ( magnitude ( make - complex - from - real - imag 3 4 ) ) ( magnitude ( ( get ' make - from - real - imag ' complex ) 3 4 ) ) ( magnitude ( tag ( make - from - real - imag 3 4 ) ) ) ( magnitude ( attach - tag ' complex ( make - from - real - imag 3 4 ) ) ) ( magnitude ( attach - tag ' complex...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter2/2.77.scm
scheme
(magnitude z)
( magnitude ( make - complex - from - real - imag 3 4 ) ) ( magnitude ( ( get ' make - from - real - imag ' complex ) 3 4 ) ) ( magnitude ( tag ( make - from - real - imag 3 4 ) ) ) ( magnitude ( attach - tag ' complex ( make - from - real - imag 3 4 ) ) ) ( magnitude ( attach - tag ' complex ( get ' make - f...
ce7248c417ea2cb47b11873253c12e84e1d2892e307b6ea54f1a86a9f3b9545e
titonbarua/freeswitch-clj
core.clj
;; Filename: src/freeswitch_clj/core.clj Author : < > Copyright : 2021 < > ;; This work is distributed under MIT Public License . ;; Please see the attached LICENSE file in project root. (ns ^{:doc "Contains functions to communicate with freeswitch using ESL." :author "Titon Barua"} freeswitch-clj.co...
null
https://raw.githubusercontent.com/titonbarua/freeswitch-clj/c780145a1b07ae079961bfe1cf7a66042048133e/src/freeswitch_clj/core.clj
clojure
Filename: src/freeswitch_clj/core.clj Please see the attached LICENSE file in project root. For example - both 'event' and 'eventsarefunny' are acceptable. To maintain compatibility, we are doing a starts-with? based match. Close event channel. Close all response channels. Close aleph stream, if not already cl...
Author : < > Copyright : 2021 < > This work is distributed under MIT Public License . (ns ^{:doc "Contains functions to communicate with freeswitch using ESL." :author "Titon Barua"} freeswitch-clj.core (:require [clojure.core.async :as async] [clojure.string :as str] [cloju...
f6cdbdad48ea1e7ad871ccb9ba3ea565e2ec60ba39499797a9bd4166a37dfb61
quchen/stgi
Machine.hs
# LANGUAGE OverloadedLists # | User - facing API to work with STG programs . module Stg.Machine ( initialState, -- * Evaluation evalStep, evalUntil, evalsUntil, terminated, HaltIf(..), RunForSteps(..), -- * Garbage collection garbageCollect, PerformGc(..), GarbageCol...
null
https://raw.githubusercontent.com/quchen/stgi/dacd45cb0247f73889713dc92a911aaa835afd19/src/Stg/Machine.hs
haskell
* Evaluation * Garbage collection ^ Main In order to avoid code duplication, we create the initial state by packing the entire program in a "letrec <topLevelDefs> in <main>". Evaluating this step once allocates everything as desired; the resulting state is precisely the initial state we want, except that the def...
# LANGUAGE OverloadedLists # | User - facing API to work with STG programs . module Stg.Machine ( initialState, evalStep, evalUntil, evalsUntil, terminated, HaltIf(..), RunForSteps(..), garbageCollect, PerformGc(..), GarbageCollectionAlgorithm, triStateTracing, twoSp...
2325cc3c2e6ad5fbed2f625c8a2960d95ece6fd6ff984fc75499d5b1e065e83f
startalkIM/ejabberd
recon.erl
@author < > %%% [/] %%% @doc Recon, as a module, provides access to the high-level functionality %%% contained in the Recon application. %%% It has functions in five main categories : %%% %%% <dl> %%% <dt>1. State information</dt> %%% <dd>Process information is everything that has to do with the %%% ...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/deps/recon/src/recon.erl
erlang
[/] @doc Recon, as a module, provides access to the high-level functionality contained in the Recon application. <dl> <dt>1. State information</dt> <dd>Process information is everything that has to do with the general state of the node. Functions such as {@link info/1} and {@link info...
@author < > It has functions in five main categories : ` erlang : process_info/1 ' , while providing it in a production - safe manner . They have equivalents to ` erlang : process_info/2 ' in the functions { @link info/2 } and { @link info/4 } , respectively.</dd > < proc_cou...
eb13f3a9023f3d916ae6916ca0dbb40d951ebe6bcade39f37b9d4c1ea3deaa91
haskell-hvr/missingh
HVFS.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE TypeSynonymInstances #-} arch - tag : HVFS main file Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyrig...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/20ecfe24e2d96f4f6553dda2b9433a0a9f692eca/src/System/IO/HVFS.hs
haskell
# LANGUAGE CPP # # LANGUAGE TypeSynonymInstances # generic support for real or virtual filesystem in Haskell generic support for real or virtual filesystem in Haskell * Implementation Classes \/ Types * Re-exported types from other modules now use x now use x takes a stat result | Similar to...
arch - tag : HVFS main file Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module : System . IO....
eb6bded788ab5ed810b1dd948f09b30ed03c50a5b0c7a505936153569e30d8dc
gilith/hol-light
Number_theory.ml
needs "Library/prime.ml";; needs "Library/pocklington.ml";; needs "Library/binomial.ml";; prioritize_num();; let FERMAT_PRIME_CONV n = let tm = subst [mk_small_numeral n,`x:num`] `prime(2 EXP (2 EXP x) + 1)` in (RAND_CONV NUM_REDUCE_CONV THENC PRIME_CONV) tm;; FERMAT_PRIME_CONV 0;; FERMAT_PRIME_CONV 1;; FERMAT_P...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Tutorial/Number_theory.ml
ocaml
needs "Library/prime.ml";; needs "Library/pocklington.ml";; needs "Library/binomial.ml";; prioritize_num();; let FERMAT_PRIME_CONV n = let tm = subst [mk_small_numeral n,`x:num`] `prime(2 EXP (2 EXP x) + 1)` in (RAND_CONV NUM_REDUCE_CONV THENC PRIME_CONV) tm;; FERMAT_PRIME_CONV 0;; FERMAT_PRIME_CONV 1;; FERMAT_P...
93d69c62b8c7b1263088f84fa8cb1b53b0a77f1bfc536205e18ffacea8f82ff1
AbstractMachinesLab/caramel
fcntl.ml
type lock_type = | Read | Write type lock_operation = | F_SETLK | F_SETLKW | F_GETLK type l_type = | F_RDLCK | F_WRLCK | F_UNLCK type whence = | Set | Cur | End external fcntl_lk : Unix.file_descr -> lock_operation -> l_type -> whence -> int -> int -> int * int = "fcntl_lk_byt...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/fcntl.ml
ocaml
type lock_type = | Read | Write type lock_operation = | F_SETLK | F_SETLKW | F_GETLK type l_type = | F_RDLCK | F_WRLCK | F_UNLCK type whence = | Set | Cur | End external fcntl_lk : Unix.file_descr -> lock_operation -> l_type -> whence -> int -> int -> int * int = "fcntl_lk_byt...
0f33548e4c2d839c47529b97c23f1c829429b349032b3f596c6ceac96acb4228
OCamlPro/freeton_wallet
commandTokenList.mli
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/b97877379e51d96cb3544141d386d502348cfca9/src/freeton_wallet_lib/commandTokenList.mli
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking open Types module TYPES : sig type ctxt = { config : Types.config; net : Types.network; manifest : Types.MANIFEST.t; client : Sdk_types.client ; ...
e6d13ae7bcee7ec46efa0bf4fb44bdcd5c4105a2f86d2e101f14d54877467499
unnohideyuki/bunny
sample104.hs
testing the resolution of infixr : , + + infixr 5 `c` c [] ys = ys c (x:xs) ys = x : xs `c` ys main = putStrLn $ "hello, " `c` "world"
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample104.hs
haskell
testing the resolution of infixr : , + + infixr 5 `c` c [] ys = ys c (x:xs) ys = x : xs `c` ys main = putStrLn $ "hello, " `c` "world"
307371f318ebf340c4588305a5b5d0cb7a09746bbef5ff3036870da297188ae2
wangsix/VMO_repeated_themes_discovery
converter.lisp
;(in-package :common-lisp-user) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "humdrum-by-col" :type "lisp") *lisp-code...
null
https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/mozartK282Mvt2/polyphonic/repeatedPatterns/schoenberg/F/script/converter.lisp
lisp
(in-package :common-lisp-user)
(load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "humdrum-by-col" :type "lisp") *lisp-code-root*)) (load (merge-pathnames...
0885ab872d51505cb498d86406128445997669553ab6f77ae1bb6483ba402805
jjmrocha/kill-bill
kb_dummy_toppage.erl
%% Copyright 2013 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under the ...
null
https://raw.githubusercontent.com/jjmrocha/kill-bill/1ba409c39524f2b47ff1338214bc9b4de3f2659e/src/kb_dummy_toppage.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 perm...
Copyright 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(kb_dummy_toppage). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init(_Transport, Data, Opts) -> ServerName = propli...
95ccf78d72966362b8e5ad2c15574849131c29bf1af3b5f8c5b1a71a97960986
ds-wizard/engine-backend
List_POST.hs
module Wizard.Api.Handler.Submission.List_POST where import qualified Data.UUID as U import Servant import Shared.Api.Handler.Common import Shared.Model.Context.TransactionState import Wizard.Api.Handler.Common import Wizard.Api.Resource.Submission.SubmissionCreateDTO import Wizard.Api.Resource.Submission.SubmissionC...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Handler/Submission/List_POST.hs
haskell
module Wizard.Api.Handler.Submission.List_POST where import qualified Data.UUID as U import Servant import Shared.Api.Handler.Common import Shared.Model.Context.TransactionState import Wizard.Api.Handler.Common import Wizard.Api.Resource.Submission.SubmissionCreateDTO import Wizard.Api.Resource.Submission.SubmissionC...
bca6a6152450b8db28397afa0d0fc91e4277caa10afc81d4c7f45c04bdf979e0
dbuenzli/omod
omod_bin.ml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The omod programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/omod/4f7ac08dccaa5fd1c9b2731fa199230e7121c471/src/omod_bin.ml
ocaml
Formatting and error handling Lookups Restrict search to packages cache command cobj command conf command list command load command m.p.ext files (mainly in stdlib) This avoid many multiple load sequence and is unlikely to be desired by end users. Maybe we could have a cli flag to disable it. ...
--------------------------------------------------------------------------- Copyright ( c ) 2018 The omod programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
846c8da3d66f1d5257d9f4da7ae76f80452347d1dce3bb748f5670d8cb1aa4f6
themattchan/core
Parser.hs
module Core.Parser ( ParseError , parseFile , parseProgram ) where import Control.Exception (Exception(), throw) import Data.Functor import Data.Maybe import Text.Parsec hiding (spaces) import Text.Parsec.Language import qualified Text.Parsec.Token as P import qualified Text.Parsec.Expr as P import Text.Parse...
null
https://raw.githubusercontent.com/themattchan/core/ba7e8f62cffc463ddf0143f25a5b692f77d474e1/src/Core/Parser.hs
haskell
Supercombinators
module Core.Parser ( ParseError , parseFile , parseProgram ) where import Control.Exception (Exception(), throw) import Data.Functor import Data.Maybe import Text.Parsec hiding (spaces) import Text.Parsec.Language import qualified Text.Parsec.Token as P import qualified Text.Parsec.Expr as P import Text.Parse...
f1cdb9a476c9b75c1f1d12bd776aa96a6013f48b5bd7229b0acc37fff58a6beb
seckcoder/iu_c311
ir.rkt
#lang racket Specification (const-exp value) ; const int value (name-exp n) ; assembly label n (temp-exp t) ; temporary position?/temporary value in register? (binop-exp op e1 e2) ; binary expression (mem-exp e) ; memory in address e (call f l) ; procedure call; l is argument list (eseq s e) ; s is evaluated for ef...
null
https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/compiler/ki/ir.rkt
racket
const int value assembly label n temporary position?/temporary value in register? binary expression memory in address e procedure call; l is argument list s is evaluated for effect. e is evaluated as result evaluate e and move it to temporary t store e2's result to memory address:m evaluate e and discard resu...
#lang racket Specification (define (ir ast) (match ast [(Const v) (const-exp v)] [(Var v)
27ab5d8f0651cf7ae98fdf7a7c768c8555cac8191214c61dee8216d43cd8bcba
exercism/common-lisp
main.lisp
(in-package :config-checker) (define-condition config-check-failure (error) ()) (defparameter *checkers* nil) (defun check-config () (let ((config (track-config:read-config "./config.json"))) (dolist (checker *checkers*) (format *debug-io* "~&Running Checker: ~S~&" checker) (funcall checker config)...
null
https://raw.githubusercontent.com/exercism/common-lisp/2bb7d70ae4fa8da7271d27b203d0b8f23366f27d/src/config-checker/main.lisp
lisp
(in-package :config-checker) (define-condition config-check-failure (error) ()) (defparameter *checkers* nil) (defun check-config () (let ((config (track-config:read-config "./config.json"))) (dolist (checker *checkers*) (format *debug-io* "~&Running Checker: ~S~&" checker) (funcall checker config)...
d3c4bcb4377ecc020872f7c6faa95b90fff2459c0987ca9140c70fe6f7d5ad76
exercism/erlang
example.erl
-module(example). -export([abs/1, add/2, conjugate/1, divide/2, equal/2, exp/1, imaginary/1, mul/2, new/2, real/1, sub/2]). -record(complex, {r = 0, i = 0}). new(R, I) -> #complex{r = R, i = I}. abs(#complex{r = A, i = B}) -> erlang:abs(math:sqrt(A * A + B * B)). add(#complex{r = A, i = B}, #complex{r = C,...
null
https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/complex-numbers/.meta/example.erl
erlang
-module(example). -export([abs/1, add/2, conjugate/1, divide/2, equal/2, exp/1, imaginary/1, mul/2, new/2, real/1, sub/2]). -record(complex, {r = 0, i = 0}). new(R, I) -> #complex{r = R, i = I}. abs(#complex{r = A, i = B}) -> erlang:abs(math:sqrt(A * A + B * B)). add(#complex{r = A, i = B}, #complex{r = C,...
1ad379548fdc3c9459d4186d6508b287b738853e640cf37a62d94a45308817ee
opencog/opencog
chatscript.scm
(use-modules (opencog) (rnrs bytevectors)) ChatScript server config (define cs-server "127.0.0.1") (define cs-port 1024) (define cs-username "opencog") (define cs-bot-name "") Send a message to the ChatScript server (define (send-to-chatscript msg) (define bv (make-bytevector 10000)) (define s (socket AF_...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/chatbot-psi/chatscript.scm
scheme
Returns a pair -- the socket and the byte-vector (the reply generated) Remove any null char before doing regexp-substitute Sometimes the reply may have some unwanted string at the beginning e.g. "[callback=3000 ] Greetings!" different robots Change the IP of the server
(use-modules (opencog) (rnrs bytevectors)) ChatScript server config (define cs-server "127.0.0.1") (define cs-port 1024) (define cs-username "opencog") (define cs-bot-name "") Send a message to the ChatScript server (define (send-to-chatscript msg) (define bv (make-bytevector 10000)) (define s (socket AF_...
87898ae63c4521b7d01c6c95a6809ec62888e2671b87b47dadef51cef958f1a4
Frama-C/Frama-C-snapshot
idxmap.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/qed/idxmap.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
cc4a96aa62f20c49402ad9dd4dc4d96d7585da0750f6485471913ccbfb99a51a
PrincetonUniversity/lucid
coreLayout.ml
CoreLayout -- lay out the data flow graph in a pipeline of tables (* this operates on a data flow graph of match statements, some of which are solitary and must be mapped to their own table... *) open Collections open CoreSyntax open TofinoCore open MatchAlgebra open CoreCfg open CoreDfg open CoreResources (**...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/3a94505efa50e988b4c9ef28048be47cc65b4355/src/lib/backend/layout/coreLayout.ml
ocaml
this operates on a data flow graph of match statements, some of which are solitary and must be mapped to their own table... *** A simple model of the hardware *** a table is just a match statement annotated with a list of source statements (for debugging) and a "solitary" flag, which means no more can be ...
CoreLayout -- lay out the data flow graph in a pipeline of tables open Collections open CoreSyntax open TofinoCore open MatchAlgebra open CoreCfg open CoreDfg open CoreResources type table = { tkeys : exp list; sources : CoreCfg.vertex_stmt list; solitary : bool; } type stage = { tables : table list; }...
d2715212ca6e1347948d4e2e28e0d9c35a7e2cb0c0d91232dba4a66f4dfb0ec6
beam-telemetry/telemetry_registry
test_child_app.erl
-module(test_child_app). -telemetry_event #{ event => [test_child_app, handler, exception], description => <<"The handler raised an exception">>, measurements => <<"#{duration => non_neg_integer()}">>, metadata => <<"#{kind => atom(), reason =...
null
https://raw.githubusercontent.com/beam-telemetry/telemetry_registry/ab9a9b8efd25c32604529e696a5199b89332b530/_checkouts/test_child_app/src/test_child_app.erl
erlang
-module(test_child_app). -telemetry_event #{ event => [test_child_app, handler, exception], description => <<"The handler raised an exception">>, measurements => <<"#{duration => non_neg_integer()}">>, metadata => <<"#{kind => atom(), reason =...
a00eec9232b83d66f1c2557f908e160e3e862828bdfe5c7b64bd8a6804f40c78
elaforge/fast-tags
LexerM.hs
---------------------------------------------------------------------------- -- | Module : FastTags . LexerM Copyright : ( c ) 2019 -- -- All the types and functions needed to make lexer run: - ' ' - primary workhorse , an optimized representation of input -- stream as a pointer to utf8 bytes an...
null
https://raw.githubusercontent.com/elaforge/fast-tags/72e2f54d82671682530a859a0e9e67703e0d09e4/src/FastTags/LexerM.hs
haskell
-------------------------------------------------------------------------- | All the types and functions needed to make lexer run: stream as a pointer to utf8 bytes and our position within it. current lexing context. comment depth, quasiquoter depth, indentation size, whether we're in a literate mode (an...
Module : FastTags . LexerM Copyright : ( c ) 2019 - ' ' - primary workhorse , an optimized representation of input - monad ' AlexM ' - a monad ( self - explanatory ) with state that describes - ' AlexState ' - state of the lexing monad , maintains current Alex code , are any TH quasiquote...
5558782eb8bbbc5f31a63fd40990546a7c29239286ec110c3fb84f14644a4bc5
amnh/poy5
aliMap.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/aliMap.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
c3ec9297a0afe32a90b08f3a9b82d0fc89237b6f3ee303ad2307c2fdb6cc4e95
jeluard/hipo
reconciliation_test.cljs
(ns hipo.reconciliation-test (:require [cljs.test :as test] [hipo.core :as hipo] [hipo.interceptor :refer [Interceptor]]) (:require-macros [cljs.test :refer [deftest is testing]])) (deftest html (testing "Basic element" (let [hf (fn [m] [:div {:class (:class m) :title (:title m)}]) ...
null
https://raw.githubusercontent.com/jeluard/hipo/1c107002bc5d338050046e9d8be2d8eba3fa9187/test/hipo/reconciliation_test.cljs
clojure
let update be performed but reject all others let update be performed but reject all others
(ns hipo.reconciliation-test (:require [cljs.test :as test] [hipo.core :as hipo] [hipo.interceptor :refer [Interceptor]]) (:require-macros [cljs.test :refer [deftest is testing]])) (deftest html (testing "Basic element" (let [hf (fn [m] [:div {:class (:class m) :title (:title m)}]) ...
41a19c705425e7ba7375f3a01698f01017612a8f0be538ac80c3ac09e00915e0
input-output-hk/rscoin-haskell
Server.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # -- | Server implementation for mintette module RSCoin.Mintette.Server ( serve , handlePeriodFinished , handleNewPeriod , handleCheckTx , handleCheckTxBatch , handleCommitTx , handleGetMintettePeriod ...
null
https://raw.githubusercontent.com/input-output-hk/rscoin-haskell/109d8f6f226e9d0b360fcaac14c5a90da112a810/src/RSCoin/Mintette/Server.hs
haskell
| Server implementation for mintette
# LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module RSCoin.Mintette.Server ( serve , handlePeriodFinished , handleNewPeriod , handleCheckTx , handleCheckTxBatch , handleCommitTx , handleGetMintettePeriod , handleGetUtxo , handleGetL...
4f39a6839ec195aaf94c1cee4cf21a40903eca61c37939a2cbfdd3dd48eaaf1e
ronxin/stolzen
ex3.54.scm
#lang scheme (require "streams.scm") (define (add-streams s1 s2) (stream-map + s1 s2) ) (define (integers-starting-from n) (cons-stream n (integers-starting-from (+ n 1))) ) (define integers (integers-starting-from 2)) 3.54 (define (mul-streams s1 s2) (stream-map * s1 s2) ) (de...
null
https://raw.githubusercontent.com/ronxin/stolzen/bb13d0a7deea53b65253bb4b61aaf2abe4467f0d/sicp/chapter3/3.5/ex3.54.scm
scheme
#lang scheme (require "streams.scm") (define (add-streams s1 s2) (stream-map + s1 s2) ) (define (integers-starting-from n) (cons-stream n (integers-starting-from (+ n 1))) ) (define integers (integers-starting-from 2)) 3.54 (define (mul-streams s1 s2) (stream-map * s1 s2) ) (de...
64f1e753aa7481cad8fa3962b41df69331ba415bb8ee97bd53b0e8eb693601a0
jrh13/hol-light
ceva.ml
(* ========================================================================= *) # 61 : Ceva 's theorem . (* ========================================================================= *) needs "Multivariate/convex.ml";; needs "Examples/sos.ml";; prioritize_real();...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/100/ceva.ml
ocaml
========================================================================= ========================================================================= ------------------------------------------------------------------------- We use the notion of "betweenness". ---------------...
# 61 : Ceva 's theorem . needs "Multivariate/convex.ml";; needs "Examples/sos.ml";; prioritize_real();; let BETWEEN_THM = prove (`between x (a,b) <=> ?u. &0 <= u /\ u <= &1 /\ x = u % a + (&1 - u) % b`, REWRITE_TAC[BETWEEN_IN_CONVEX_HULL] THEN ONCE...
e948ba329ce6d9e070f0391e346d72074e6b132aa409a74037770a3d7cd2ac99
freizl/dive-into-haskell
hello.hs
import Graphics.UI.Grapefruit.Circuit import Graphics.UI.Grapefruit.GTK import Examples.Grapefruit.ListView main = run GTK mainCircuit ()
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/codes/GUI/grapefruit/hello.hs
haskell
import Graphics.UI.Grapefruit.Circuit import Graphics.UI.Grapefruit.GTK import Examples.Grapefruit.ListView main = run GTK mainCircuit ()
7b5d5db242e046137e9fefad8ef6a8da9e1eba532b193eb8135b547e6d622698
rametta/retros
Welcome.hs
module Web.View.Static.Welcome where import Web.View.Prelude data WelcomeView = WelcomeView instance View WelcomeView where html WelcomeView = [hsx| {renderNavbar Nothing mempty mempty} <main class="container mx-auto my-3"> <a href={pathTo $ TeamsAction} class="m-3 block text-lg bg-green-500 ...
null
https://raw.githubusercontent.com/rametta/retros/624290889df98cd2eb3c37848eeae15281eeda54/Web/View/Static/Welcome.hs
haskell
module Web.View.Static.Welcome where import Web.View.Prelude data WelcomeView = WelcomeView instance View WelcomeView where html WelcomeView = [hsx| {renderNavbar Nothing mempty mempty} <main class="container mx-auto my-3"> <a href={pathTo $ TeamsAction} class="m-3 block text-lg bg-green-500 ...
8de786b37a06be7a93aaedee68594bb1c83cd16e33a0bf8d66031cae7e857d69
ndmitchell/catch
Dedict.hs
module Hite.Dedict(cmd) where import Hite.Type import Hite.Eq import Hite.Normalise import Hite.Reachable(reachable) import General.General import Data.Maybe import Data.List import qualified Data.Map as Map cmd = cmdHitePure (const dedict) "dedict" "Make the dictionary transformation not use tuples" ...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/Hite/Dedict.hs
haskell
return Null if no tuple info given that the follow funcs have a tuple argument which other functions must do function, arg pos, tuple size
module Hite.Dedict(cmd) where import Hite.Type import Hite.Eq import Hite.Normalise import Hite.Reachable(reachable) import General.General import Data.Maybe import Data.List import qualified Data.Map as Map cmd = cmdHitePure (const dedict) "dedict" "Make the dictionary transformation not use tuples" ...
8e19ffb287625321544f38efc711ce5702c5e7b64a84ca5032ed81716a477b6a
argp/bap
iltrans.ml
let usage = "Usage: "^Sys.argv.(0)^" <input options> [transformations and outputs]\n\ Transform BAP IL programs. " open Arch open Utils_common open Big_int_convenience type ast = Ast.program type astcfg = Cfg.AST.G.t type ssa = Cfg.SSA.G.t type prog = | Ast of ast | AstCfg of astcfg | Ssa of ssa ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/utils/iltrans.ml
ocaml
add more used for some trace exploit options Chop code added "Convert memory accesses to scalars (default mode).")
let usage = "Usage: "^Sys.argv.(0)^" <input options> [transformations and outputs]\n\ Transform BAP IL programs. " open Arch open Utils_common open Big_int_convenience type ast = Ast.program type astcfg = Cfg.AST.G.t type ssa = Cfg.SSA.G.t type prog = | Ast of ast | AstCfg of astcfg | Ssa of ssa ...
7b67a465610410c36c2e42686b2aa5c955a9db37fe645fa5ee4589ef246694f3
gar1t/psycho
sample_rest.erl
%% sample_rest %% %% This module illustrates a simple approach to building RESTful apps. %% The only novelty here is the use of `psycho_util:dispatch_app` to %% split the inbound Env into parts that are useful for dispatching. %% In this case we're dispatching on method, path, and env - which %% creates a reasonably d...
null
https://raw.githubusercontent.com/gar1t/psycho/6335b9c27559f417e613372776edbea760720559/src/sample_rest.erl
erlang
sample_rest This module illustrates a simple approach to building RESTful apps. The only novelty here is the use of `psycho_util:dispatch_app` to split the inbound Env into parts that are useful for dispatching. In this case we're dispatching on method, path, and env - which creates a reasonably declarative map...
-module(sample_rest). -export([start_server/1]). start_server(Port) -> psycho_server:start(Port, create_app()). create_app() -> psycho_util:dispatch_app(fun handle/3, [method, path, env]). handle("GET", Path, Env) -> handle_get(Path, Env); handle("PUT", Path, Env) -> handle_put(Path, Env); handle(M...
4165b4bf1a273257c2137db0bae236983df1b3dc681587d6856d6560d16467e1
dmjio/stripe
Main.hs
# LANGUAGE CPP # module Main where import Control.Monad.Trans.Free (FreeF(..), FreeT(..)) #if MIN_VERSION_http_client(0,5,13) import Network.HTTP.Client hiding (withConnection) #else import Network.HTTP.Client #endif import Web.Stripe.Client (StripeConfig(..), StripeError(..)) import Web.Stripe.Clie...
null
https://raw.githubusercontent.com/dmjio/stripe/967334629933fcb55247eb3270c7801c05d6bf61/stripe-http-client/tests/Main.hs
haskell
# LANGUAGE CPP # module Main where import Control.Monad.Trans.Free (FreeF(..), FreeT(..)) #if MIN_VERSION_http_client(0,5,13) import Network.HTTP.Client hiding (withConnection) #else import Network.HTTP.Client #endif import Web.Stripe.Client (StripeConfig(..), StripeError(..)) import Web.Stripe.Clie...
bc7b61b5e500e55da3d32a77c8d2268f9112bd99cf44da83c41bb238489526f6
mu-chaco/ReWire
Fixity.hs
{-# LANGUAGE ScopedTypeVariables, FlexibleContexts #-} {-# LANGUAGE Safe #-} module ReWire.Crust.Fixity ( fixLocalOps , deuniquifyLocalOps , getFixities ) where import ReWire.SYB import ReWire.Error import ReWire.Annotation (Annote) import Control.Monad (void) import Control.Monad.Identity (Id...
null
https://raw.githubusercontent.com/mu-chaco/ReWire/b04686a4cd6cb36ca9976a4b6c42bc195ce69462/src/ReWire/Crust/Fixity.hs
haskell
# LANGUAGE ScopedTypeVariables, FlexibleContexts # # LANGUAGE Safe # | Renames local operators and fixes local and file-scope fixities. applyFixities appears to be intended to handle this automatically, but it seems to be buggy and not allow inner fixity declarations to shadow outer ones (on operators with th...
module ReWire.Crust.Fixity ( fixLocalOps , deuniquifyLocalOps , getFixities ) where import ReWire.SYB import ReWire.Error import ReWire.Annotation (Annote) import Control.Monad (void) import Control.Monad.Identity (Identity (..)) import Control.Monad.State (MonadState, StateT, runStateT, get, ...
520f304c64974fad220c1a843518214323e89fdfdf4034075bf7cfa158512f90
fulcro-legacy/fulcro3
tx_processing.cljc
(ns com.fulcrologic.fulcro.algorithms.tx-processing "The transaction processing in Fulcro is pluggable. This namespace is the implementation for the default transaction processing ." (:require [clojure.set :as set] [clojure.spec.alpha :as s] [com.fulcrologic.fulcro.algorithms.lookup :as ah] [com.f...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro3/5d1b9ab274406afd68b792192d5a783f29963314/src/main/com/fulcrologic/fulcro/algorithms/tx_processing.cljc
clojure
parallel items are removed from the queues, since they don't block anything sequential items are kept in queue to prevent out-of-order operation
(ns com.fulcrologic.fulcro.algorithms.tx-processing "The transaction processing in Fulcro is pluggable. This namespace is the implementation for the default transaction processing ." (:require [clojure.set :as set] [clojure.spec.alpha :as s] [com.fulcrologic.fulcro.algorithms.lookup :as ah] [com.f...
18ce1c1deb40dca859d31c8f0d865a72e610811a07759e9e6cd0be8492056c4b
wdebeaum/step
http.lisp
(in-package :domiknows) (defun count-dupes (l) "Return a list of pairs like (count item) describing how many times each item appears in the given list, sorted from most to least frequent. Items are assumed to be strings." (loop with ret = nil for item in (stable-sort (copy-list l) #'string<) do (if (or (nu...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/Domiknows/http.lisp
lisp
& gt ; & amp ; . " ") only handle our requests
(in-package :domiknows) (defun count-dupes (l) "Return a list of pairs like (count item) describing how many times each item appears in the given list, sorted from most to least frequent. Items are assumed to be strings." (loop with ret = nil for item in (stable-sort (copy-list l) #'string<) do (if (or (nu...
9cf45bb7271505812734079e010289be13ac6a8baa49a134ce099e4957222f08
janestreet/merlin-jst
types.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_413/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...
83302ae6ed7d4eaf24255c2d407f2df3750f1dff755c0eed1cef7b9c3ff85d91
FlowForwarding/lincx
linc_us3_packet_edit.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %%...
null
https://raw.githubusercontent.com/FlowForwarding/lincx/7795923b51fa1e680511669f4a27404b2ed1f1dc/apps/linc_us3/src/linc_us3_packet_edit.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, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2012 FlowForwarding.org -module(linc_us3_packet_edit). -export([binary_to_record/3, find/2...
517321d9d211e1d59adcb31e029a8d5f1937ff3a96f9e044d940737dd933f734
RobBlackwell/cl-azure
acs.lisp
;;;; acs.lisp Copyright ( c ) 2012 , . All rights reserved . (in-package :cl-azure) Experimental support for the Access Control Service ;; -us/library/windowsazure/ee706734.aspx (defparameter *plaintext-token-request-body-template* "wrap_scope=~a&wrap_name=~a&wrap_password=~a") (defun plaintext-token-reque...
null
https://raw.githubusercontent.com/RobBlackwell/cl-azure/03b097256d85ea09f090987c0c833c61eb7b9b5d/acs.lisp
lisp
acs.lisp -us/library/windowsazure/ee706734.aspx
Copyright ( c ) 2012 , . All rights reserved . (in-package :cl-azure) Experimental support for the Access Control Service (defparameter *plaintext-token-request-body-template* "wrap_scope=~a&wrap_name=~a&wrap_password=~a") (defun plaintext-token-request (acs-url wrap-scope wrap-name wrap-password &key (han...
b8423f8fb815c5d5cfd5c36b1852dd6e3f85edf8ce9ff94c3af16bfa8c84eba0
brendanhay/gogol
Delete.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-servicemanagement/gen/Gogol/ServiceManagement/Services/Delete.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Resource ** Constructing a Request | A resource alias for @servicemanagement.services.delete@ method which the 'ServiceManagementServicesDelete' request conforms to. /See:/ 'newServiceManagementServicesDelete' smart constr...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
b76f8332de674372f6992495a61de6d0f67de588620fd3945850faedda982179
nikomatsakis/a-mir-formality
well-formed-mir.rkt
#lang racket (require redex/reduction-semantics "grammar.rkt" ) (provide well-formed/Γ ) well - formed / MirBody -- basic syntactical checks and criteria ;; ;; Checks: ;; ;; * Each basic block name is distinct ;; * All references to basic blocks are to a valid, defined name ;; * Each...
null
https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/bc951e21bff2bae1ccab8cc05b2b39cfb6365bfd/racket-src/body/well-formed-mir.rkt
racket
Checks: * Each basic block name is distinct * All references to basic blocks are to a valid, defined name * Each local variable name is distinct * All references to local variables are to a valid, defined name each basic block id is distinct each local id is distinct FIXME: check const well formedness has th...
#lang racket (require redex/reduction-semantics "grammar.rkt" ) (provide well-formed/Γ ) well - formed / MirBody -- basic syntactical checks and criteria define-judgment-form formality-body #:mode (well-formed/Γ I) #:contract (well-formed/Γ Γ) [(where/error (LocalDecls (BasicBloc...
88e230a2d279d8bd84cd478e9e78b3c8fde4067e4230d74c4bc16de5e5de5135
pink-gorilla/demo-goldly
greeter.cljs
(ns page.greeter (:require [reagent.core :as r] [re-frame.core :as rf] [lib.ui :refer [add-page-site]])) (defn greeter-details-page [route-data] [:div [:p "this shows how to do master-detail relations"] [:p "Access this component only via greeter."] [:p.bg-blue-300.mg-3 "the best dad in the worl...
null
https://raw.githubusercontent.com/pink-gorilla/demo-goldly/b2a3ee47540913c3129203ee88c85033e2f9242b/src/page/greeter.cljs
clojure
(ns page.greeter (:require [reagent.core :as r] [re-frame.core :as rf] [lib.ui :refer [add-page-site]])) (defn greeter-details-page [route-data] [:div [:p "this shows how to do master-detail relations"] [:p "Access this component only via greeter."] [:p.bg-blue-300.mg-3 "the best dad in the worl...
ae80d9d4e7250c60d60cb82b59881e82b1935db4b621a3794ab48ba24c3e1cb0
Octachron/codept
atlas.ml
module A = A module B = B module C = C
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/complex/aliased_cycle/atlas.ml
ocaml
module A = A module B = B module C = C
4f1860123d01dc6050b0bbc4b138d8677e47eecdf5f3dcbadc6c7f4ec142bbe0
aprolog-lang/aprolog
index.ml
(* Very simple term indexing for proof search *) (* For each toplevel program clause, we parse it to find the clause head symbol and add it to the program maintained for that symbol. That program is just a conjunction of all such programs seen so far. We optimize out "true", which is a pretty pointless top-...
null
https://raw.githubusercontent.com/aprolog-lang/aprolog/410327a615919eb6827d71661e69de14279b8c50/src/index.ml
ocaml
Very simple term indexing for proof search For each toplevel program clause, we parse it to find the clause head symbol and add it to the program maintained for that symbol. That program is just a conjunction of all such programs seen so far. We optimize out "true", which is a pretty pointless top-level g...
open Internal;; open Types;; type 'a t = (Unique.uniq,'a prog) Hashtbl.t;; let create i = Hashtbl.create i;; let rec add idx p0 = let rec index_prog p = match p with | Datomic(t) -> let sym = find_head t in if Hashtbl.mem idx sym then let p' = Hashtbl.find idx sym in Hashtbl.add idx sym...
d602b863830b7f8a41ba4b414aad88ee7c75c433fdbbeb9f03e4fe68a8967f45
yi-editor/yi
Misc.hs
# LANGUAGE BangPatterns # # LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleConte...
null
https://raw.githubusercontent.com/yi-editor/yi/69953f00d48cc1b811310ce48c24269816e0f14b/yi-core/src/Yi/Buffer/Misc.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskell # # OPTIONS_HADDOCK show-extensions # | Module : Yi.Buffer.Misc License ...
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE DeriveFoldable # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables ...
10fddca92e70ea8c0685714579dd89ccad59b859918e9528a90da5949bc3404e
fused-effects/fused-effects
Internal.hs
{-# LANGUAGE GADTs #-} module Control.Effect.Reader.Internal ( Reader(..) ) where | @since 0.1.0.0 data Reader r m k where Ask :: Reader r m r Local :: (r -> r) -> m a -> Reader r m a
null
https://raw.githubusercontent.com/fused-effects/fused-effects/9790ed4fb2cbaaf8933ce0eb42d7c55bc38f12ac/src/Control/Effect/Reader/Internal.hs
haskell
# LANGUAGE GADTs #
module Control.Effect.Reader.Internal ( Reader(..) ) where | @since 0.1.0.0 data Reader r m k where Ask :: Reader r m r Local :: (r -> r) -> m a -> Reader r m a
3150a68d6c737efedf74c6bd3bc0c06904c0dce6d546d004fa0beb6c15d52395
reenberg/xmonad
xmonad.hs
-- -- xmonad example config file. -- -- A template showing all available configuration hooks, -- and how to override the defaults in your own xmonad.hs conf file. -- -- Normally, you'd only override those defaults you care about. -- import XMonad import Data.Monoid import System.Exit import qualified XMonad.StackSet ...
null
https://raw.githubusercontent.com/reenberg/xmonad/c4f471bfb6ffe70741fe76c3b154f6bae920da7f/man/xmonad.hs
haskell
xmonad example config file. A template showing all available configuration hooks, and how to override the defaults in your own xmonad.hs conf file. Normally, you'd only override those defaults you care about. The preferred terminal program, which is used in a binding below and by certain contrib modules. Wh...
import XMonad import Data.Monoid import System.Exit import qualified XMonad.StackSet as W import qualified Data.Map as M myTerminal = "xterm" myFocusFollowsMouse :: Bool myFocusFollowsMouse = True myBorderWidth = 1 myModMask = mod1Mask > workspaces = [ " web " , " irc " , " code " ] + + map...
924b2b0ad1d24f0e4ce9af30b11c0749d5a569aeac80ba124e833ef690751caa
garrigue/lablgl
togl.mli
$ I d : togl.mli , v 1.6 2000 - 04 - 03 02:57:44 garrigue Exp $ type w type widget = w Widget.widget val render : widget -> unit val swap_buffers : widget -> unit val height : widget -> int val width : widget -> int type font = [ `Fixed_8x13 | `Fixed_9x15 | `Times_10 | `Times_24 | `Helvetica_10 | `Hel...
null
https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/Togl/src/togl.mli
ocaml
$ I d : togl.mli , v 1.6 2000 - 04 - 03 02:57:44 garrigue Exp $ type w type widget = w Widget.widget val render : widget -> unit val swap_buffers : widget -> unit val height : widget -> int val width : widget -> int type font = [ `Fixed_8x13 | `Fixed_9x15 | `Times_10 | `Times_24 | `Helvetica_10 | `Hel...
29ecb251b29d577691d8a38501c6724d58b5329c80e3d3fc4efe8d1ebde4ac72
bwo/monads
test_rws.clj
(ns monads.test-rws (:require [monads.core :refer :all :exclude [fail]] [monads.error :as e] [monads.rws :as r] [monads.types :as t]) (:use [expectations :only [expect]])) (expect [[1 [2]] :state [3 2]] (seq (r/run-rws (mdo x <- (return 3) (...
null
https://raw.githubusercontent.com/bwo/monads/a3fdfa1414dc6efae39ea289022f14449119da89/test/monads/test_rws.clj
clojure
(ns monads.test-rws (:require [monads.core :refer :all :exclude [fail]] [monads.error :as e] [monads.rws :as r] [monads.types :as t]) (:use [expectations :only [expect]])) (expect [[1 [2]] :state [3 2]] (seq (r/run-rws (mdo x <- (return 3) (...
22fad4462b715cdd5b01b58f271a0a911f9c750df106ac950b843a81f57bc760
futurice/haskell-mega-repo
Account.hs
-- | Copyright : ( c ) 2015 Futurice Oy -- License : BSD3 Maintainer : < > module PlanMill.Types.Account (Account(..), Accounts, AccountId) where -- Account is defined in 'User' because they form a loop. import PlanMill.Types.User (Account (..), Accounts, AccountId)
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/planmill-client/src/PlanMill/Types/Account.hs
haskell
| License : BSD3 Account is defined in 'User' because they form a loop.
Copyright : ( c ) 2015 Futurice Oy Maintainer : < > module PlanMill.Types.Account (Account(..), Accounts, AccountId) where import PlanMill.Types.User (Account (..), Accounts, AccountId)
f7f1bf964ee0c7fe8e51beffd8343ffb9d0cffa515ea3ea2ac42cf6bc7303d25
Cantido/clj-bittorrent
schema.clj
(ns clj-bittorrent.metainfo.schema "Schemas for metainfo data" (:require [schema.core :as schema] [clj-bittorrent.math.binary :as bin] [clj-bittorrent.math.hash :as hash] [clj-bittorrent.math.numbers :as n])) (def InfoHash "An identifier for a torrent, calculated by taking the...
null
https://raw.githubusercontent.com/Cantido/clj-bittorrent/5fea93e318f9d07e4bbee6aced12e10ae0f46f2a/src/clj_bittorrent/metainfo/schema.clj
clojure
(ns clj-bittorrent.metainfo.schema "Schemas for metainfo data" (:require [schema.core :as schema] [clj-bittorrent.math.binary :as bin] [clj-bittorrent.math.hash :as hash] [clj-bittorrent.math.numbers :as n])) (def InfoHash "An identifier for a torrent, calculated by taking the...
9ab61f91b900dff49bc92f0fa0ac5339f8869c0219c2fb9f6908207b67263b42
binaryage/cljs-zones
core.cljs
(ns zones.core (:require-macros [zones.core :refer [get-prototype make-zone get-current-version]]) (:require [goog.object])) (def ^:dynamic default-zone (make-zone)) (def version (get-current-version)) ; -- macro apis -----------------------------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/binaryage/cljs-zones/17402d8b51ca6a56ce6ffdedf20b563a966cfe47/src/lib/zones/core.cljs
clojure
-- macro apis -------------------------------------------------------------------------------------------------------------
(ns zones.core (:require-macros [zones.core :refer [get-prototype make-zone get-current-version]]) (:require [goog.object])) (def ^:dynamic default-zone (make-zone)) (def version (get-current-version)) (defn prototype-with-own-property [o name] (if (some? o) (if (.hasOwnProperty o name) o (rec...
df9ebb8abbbd125dd28002439b2f3ccb2bd6c4cc3b42cb671051ba5c39ed67e4
eareese/htdp-exercises
181-list-example-1.rkt
#lang htdp/bsl+ ;;--------------------------------------------------------------------------------------------------- Exercise 181 . Use list to construct the equivalent of these lists : ;; (cons "a" (cons "b" (cons "c" (cons "d" '())))) ( cons ( cons 1 ( cons 2 ' ( ) ) ) ' ( ) ) ;; (cons "a" (cons (cons 1 ...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part02-arbitrarily-large-data/181-list-example-1.rkt
racket
--------------------------------------------------------------------------------------------------- (cons "a" (cons "b" (cons "c" (cons "d" '())))) (cons "a" (cons (cons 1 '()) (cons #false '()))) (cons (cons "a" (cons 2 '())) (cons "hello" '())) Also try your hands at this one: '())) Start by determi...
#lang htdp/bsl+ Exercise 181 . Use list to construct the equivalent of these lists : ( cons ( cons 1 ( cons 2 ' ( ) ) ) ' ( ) ) ( cons ( cons 1 ( cons 2 ' ( ) ) ) ( cons ( cons 2 ' ( ) ) (check-expect (cons "a" (cons "b" (cons "c" (cons "d" '())))) (list "a" "b" "c" "d")) ( cons...
6b559ef48c1f06904b2b45811924884fcb7d951b104d13b358b86400497088d4
input-output-hk/ouroboros-network
ControlMessage.hs
# LANGUAGE FlexibleContexts # module Ouroboros.Network.ControlMessage where import Control.Monad.Class.MonadSTM -- | Control signal sent to a mini-protocol. Expected to exit, on 'Continue' it -- should continue its operation -- data ControlMessage = -- | Continue operation. Continue -- | Hol...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2793b6993c8f6ed158f432055fa4ef581acdb661/ouroboros-network-api/src/Ouroboros/Network/ControlMessage.hs
haskell
| Control signal sent to a mini-protocol. Expected to exit, on 'Continue' it should continue its operation | Continue operation. | Hold on, e.g. do not sent messages until resumed. This is not used for any hot protocol. | The client is expected to terminate as soon as possible. | 'ControlMessageSTM' should ...
# LANGUAGE FlexibleContexts # module Ouroboros.Network.ControlMessage where import Control.Monad.Class.MonadSTM data ControlMessage = Continue | Quiesce | Terminate deriving (Eq, Show) type ControlMessageSTM m = STM m ControlMessage continueForever :: Applicative (STM m) ...
63b8d3fcf2ae441960fbaabdba4fd3a4e5b02aa63801ebe8cbccd4a5c2a8c445
nick8325/quickspec
Geometry.hs
Henderson 's functional geometry . See the QuickSpec paper . -- -- Illustrates: -- * Observational equality * Running on a progressively larger set of signatures # LANGUAGE DeriveDataTypeable , TypeOperators , FlexibleInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses # import QuickSpec import Test...
null
https://raw.githubusercontent.com/nick8325/quickspec/cb61f719d3d667674431867037ff44dec22ca4f9/examples/Geometry.hs
haskell
Illustrates: * Observational equality We use our own number type for efficiency purposes. This can represent numbers of the form x/2^e where x and e are integers. Rat x e = x / 2^e A class for types (like Rat) which can be added, subtracted and A vector is a pair of points. We represent a geometrical object ...
Henderson 's functional geometry . See the QuickSpec paper . * Running on a progressively larger set of signatures # LANGUAGE DeriveDataTypeable , TypeOperators , FlexibleInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses # import QuickSpec import Test.QuickCheck import qualified Data.Set as Set impo...
1a85ec1971f925c4e1a52f21d77f788997485e75adeb8ad1bebc439ae75fddeb
TrustInSoft/tis-kernel
export_coq.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/wp/qed/src/export_coq.mli
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 - 2015 ...
8cb87f3637c1231c3892e9de6ed0b39f00ee77448711ec94f864686d9ec34c82
schemeorg-community/index.scheme.org
srfi.99.records.procedural.scm
(((name . "make-rtd") (signature case-lambda (((symbol? name) (vector? fieldspecs)) rtd?) (((symbol? name) (vector? fieldspecs) ((or rtd? #f) parent)) rtd?)) (tags pure)) ((name . "rtd?") (signature lambda (obj) boolean?) (tags pure predicate)) ((name . "rtd-constructor") (signature case-lambda (...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.99.records.procedural.scm
scheme
(((name . "make-rtd") (signature case-lambda (((symbol? name) (vector? fieldspecs)) rtd?) (((symbol? name) (vector? fieldspecs) ((or rtd? #f) parent)) rtd?)) (tags pure)) ((name . "rtd?") (signature lambda (obj) boolean?) (tags pure predicate)) ((name . "rtd-constructor") (signature case-lambda (...
a3ef2daa19a233102042827215a598c941808d23c9306597a114319ac61506a1
shop-planner/shop3
problem-converter.lisp
(defpackage shop3-rovers (:use common-lisp shop3) (:nicknames #:shop2-rovers) (:intern #:communicated_image_data #:communicated_rock_data #:communicated_soil_data ;; rewrite for goals #:communicate_image_data #:communicate_rock_data #:communicate_soil_data ;; key predicates #:rover ...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/rovers/strips/problem-converter.lisp
lisp
rewrite for goals key predicates top level goal rewrite for goals key predicates top level goal *** Problem Converter *** It mainly adds the the time lines for rovers domain. *** USAGE NOTE *** It may not be a good idea to have all characters capitalized in the output file. If you want to avoid that, y...
(defpackage shop3-rovers (:use common-lisp shop3) (:nicknames #:shop2-rovers) (:intern #:communicated_image_data #:communicated_rock_data #:communicated_soil_data #:communicate_image_data #:communicate_rock_data #:communicate_soil_data #:rover #:waypoint #:can_traverse #:achieve-g...
4671b102a04698dd84c87134ea327898c9284aedebb0a74f724bd1f222dfb15c
defclass/sasori
core.clj
(ns sasori.core (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.walk :as walk] [clojure.set :as set]) (:require [sasori [utils :as u] [exec :as exec] [dsl :as dsl] [log :as log] [color :as color...
null
https://raw.githubusercontent.com/defclass/sasori/86806d12db85598a08289902662e9b81b107871c/src/sasori/core.clj
clojure
Tools Compose tasks Context are keys/values (map) that shared between tasks. information, and error if ever produced. Read from cli
(ns sasori.core (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.walk :as walk] [clojure.set :as set]) (:require [sasori [utils :as u] [exec :as exec] [dsl :as dsl] [log :as log] [color :as color...
28853157e588068eaf5c3299910b23bd281516f42b4cd31e0e92a0a4783b5872
resilience4clj/resilience4clj-circuitbreaker
core_test.clj
(ns core-test (:require [resilience4clj-circuitbreaker.core :as breaker] [clojure.test :refer :all])) ;; mock for an external call (defn ^:private external-call ([n] (external-call n nil)) ([n {:keys [fail? wait]}] (when wait (Thread/sleep wait)) (if-not fail? (str "Hello " n "!") ...
null
https://raw.githubusercontent.com/resilience4clj/resilience4clj-circuitbreaker/98e7947a0d9e03a96b1b23764a393caaee2250ef/test/core_test.clj
clojure
mock for an external call it should still be closed... threshold not met the successful ones are going dowm still closed the successful ones are going dowm now it's open the successful ones are going dowm service restored still blocking the successful ones are going dowm because it's still open let's wait 1150m...
(ns core-test (:require [resilience4clj-circuitbreaker.core :as breaker] [clojure.test :refer :all])) (defn ^:private external-call ([n] (external-call n nil)) ([n {:keys [fail? wait]}] (when wait (Thread/sleep wait)) (if-not fail? (str "Hello " n "!") (throw (ex-info "Couldn'...
4e61ceee02d11070ed78f7310236c35a5321db49854011aaa6378c232b9b6df3
YoshikuniJujo/test_haskell
HeteroList.hs
# LANGUAGE BlockArguments # # LANGUAGE ScopedTypeVariables , TypeApplications , RankNTypes # # LANGUAGE MonoLocalBinds # # LANGUAGE DataKinds # {-# LANGUAGE KindSignatures, TypeOperators #-} # LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE PatternSynonyms, ViewPatterns #-} # OPTIONS_GHC -Wall -fno - warn - tabs # module ...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/16981f6d9cfe0e2da792cb4386b87777cf2f61e4/features/ffi/pointer/try-storable-hetero-list/src/Foreign/Storable/HeteroList.hs
haskell
# LANGUAGE KindSignatures, TypeOperators # # LANGUAGE PatternSynonyms, ViewPatterns # * Size and Alignment * WithPoked ** Plain Size and Alignment
# LANGUAGE BlockArguments # # LANGUAGE ScopedTypeVariables , TypeApplications , RankNTypes # # LANGUAGE MonoLocalBinds # # LANGUAGE DataKinds # # LANGUAGE AllowAmbiguousTypes # # OPTIONS_GHC -Wall -fno - warn - tabs # module Foreign.Storable.HeteroList ( SizableList(..), sizeAlignments, wholeSize, * Pokable Po...
ad2587665d9873c4055f3937a20123993c40889ed72c39531cd0344d365cf124
dcos/lashup
lashup_sup.erl
-module(lashup_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> lashup_kv:init_metrics(), lashup_kv_sync_rx_fsm:init_m...
null
https://raw.githubusercontent.com/dcos/lashup/a0661006c38237147252ebe0b98cc2c29352c976/src/lashup_sup.erl
erlang
-module(lashup_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> lashup_kv:init_metrics(), lashup_kv_sync_rx_fsm:init_m...
2dd65a35687dabb568d5cffda71c2343ca9a61889019764bac52f89b9babff9d
byorgey/diagrams-play
ShrinkPathAnim.hs
# LANGUAGE NoMonomorphismRestriction # import Control.Monad import Control.Monad.Random import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude import ShrinkPath randomTrail :: (MonadRandom m, Applicative m) => Int -> m (Trail R2) randomTrail n = fromOffsets <$>...
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/ShrinkPathAnim.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Control.Monad import Control.Monad.Random import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude import ShrinkPath randomTrail :: (MonadRandom m, Applicative m) => Int -> m (Trail R2) randomTrail n = fromOffsets <$>...
ee862cb66a975d2cf784713cc146cfb8bab89e2a04eba738818c96d8dbe2ec4e
vbrankov/hdf5-ocaml
h5d.ml
open Bigarray module Layout = struct type t = | COMPACT | CONTIGUOUS | CHUNKED | NLAYOUTS end module Alloc_time = struct type t = | DEFAULT | EARLY | LATE | INCR end module Space_status = struct type t = | NOT_ALLOCATED | PART_ALLOCATED | ALLOCATED end module Fill_time = struct type t ...
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/raw/h5d.ml
ocaml
open Bigarray module Layout = struct type t = | COMPACT | CONTIGUOUS | CHUNKED | NLAYOUTS end module Alloc_time = struct type t = | DEFAULT | EARLY | LATE | INCR end module Space_status = struct type t = | NOT_ALLOCATED | PART_ALLOCATED | ALLOCATED end module Fill_time = struct type t ...
a235743f6d68bbc2f21fa6db7079553c2f071977c2fcb75f51489b214d904fcd
LeventErkok/sbv
Concrete.hs
----------------------------------------------------------------------------- -- | -- Module : Data.SBV.Core.Concrete Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Operations on concrete values -----------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/9351068e5e509e415b64570be4c4bd747855e0fd/Data/SBV/Core/Concrete.hs
haskell
--------------------------------------------------------------------------- | Module : Data.SBV.Core.Concrete License : BSD3 Maintainer: Stability : experimental Operations on concrete values --------------------------------------------------------------------------- # LANGUAGE Rank2Types # # OPTI...
Copyright : ( c ) # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Data.SBV.Core.Concrete ( module Data.SBV.Core.Concrete ) where import Control.Monad (replicateM) import Data.Bits import System.Random (randomIO, randomRIO) import Data.Char (chr, isSpace) import Data.List (isPrefi...
c089b85377c3fd2e72b1a45afbc4571001eb2848214675918ce613a0a7ca38d9
Clozure/ccl-tests
equal.lsp
;-*- Mode: Lisp -*- Author : Created : Thu Oct 17 21:38:16 2002 Contains : Tests for EQUAL (in-package :cl-test) (deftest equal.1 (loop for x in *symbols* always (loop for y in *symbols* always (if (eq x y) (equal x y) (not (equal x y))))) t) (deftest equal.2 (equalt (cons 'a ...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/equal.lsp
lisp
-*- Mode: Lisp -*- Should add more pathname equality tests Error tests
Author : Created : Thu Oct 17 21:38:16 2002 Contains : Tests for EQUAL (in-package :cl-test) (deftest equal.1 (loop for x in *symbols* always (loop for y in *symbols* always (if (eq x y) (equal x y) (not (equal x y))))) t) (deftest equal.2 (equalt (cons 'a 'b) (cons 'a 'b)) t) ...
1a864deae00631aff6b077c415bd03660bcd219796b3fb412b08b1ad55694f8f
jackfirth/rebellion
contract-projection.rkt
#lang racket/base (require racket/contract/base) (provide (contract-out [projection/c contract?] [contract-get-projection (-> predicate/c blame? projection/c)] [projection-and (-> projection/c ... projection/c)] [projection-convert (-> projection/c (-> any/c any/c) (-> any/c any/c) projection/c)] [proje...
null
https://raw.githubusercontent.com/jackfirth/rebellion/64f8f82ac3343fe632388bfcbb9e537759ac1ac2/private/contract-projection.rkt
racket
@------------------------------------------------------------------------------
#lang racket/base (require racket/contract/base) (provide (contract-out [projection/c contract?] [contract-get-projection (-> predicate/c blame? projection/c)] [projection-and (-> projection/c ... projection/c)] [projection-convert (-> projection/c (-> any/c any/c) (-> any/c any/c) projection/c)] [proje...
821fb447a50687fb06e326307dcdef8e1a43b9d1741ab620174a6cc4b686dacd
pyr/himpy
Cisco.hs
module System.Himpy.Recipes.Cisco where import System.Himpy.Recipes.Utils import System.Himpy.Mib import System.Himpy.Types import System.Himpy.Logger import Control.Concurrent.STM.TChan (TChan) import qualified Data.Map as M cisco_rcp :: TChan ([Metric]) -> TChan (String) -> HimpyHost -> IO () cisco_rcp chan logchan ...
null
https://raw.githubusercontent.com/pyr/himpy/0412592b879b7ebce24c6bbef88373b253140025/System/Himpy/Recipes/Cisco.hs
haskell
module System.Himpy.Recipes.Cisco where import System.Himpy.Recipes.Utils import System.Himpy.Mib import System.Himpy.Types import System.Himpy.Logger import Control.Concurrent.STM.TChan (TChan) import qualified Data.Map as M cisco_rcp :: TChan ([Metric]) -> TChan (String) -> HimpyHost -> IO () cisco_rcp chan logchan ...
58eac5e8e21da52f883a51b291b1b2beecf20258d56953a0f39aa2fd67386801
well-typed/basic-sop
NFData.hs
-- | Generic reduction to normal form. -- -- This module contains a generic function that reduces a value to normal form , defined using @generics - sop@. -- module Generics.SOP.NFData (grnf) where import Control.DeepSeq import Generics.SOP -- | Generic reduction to normal form. -- -- This function is a generic im...
null
https://raw.githubusercontent.com/well-typed/basic-sop/ee82c22aa5f2e552b02bec8f3d6be44d82dce0a0/src/Generics/SOP/NFData.hs
haskell
| Generic reduction to normal form. This module contains a generic function that reduces | Generic reduction to normal form. This function is a generic implementation of the 'rnf' function that can be used to instantiate the 'NFData' class in @deepseq@. for your datatype @T@, you can use 'grnf' as follows: ...
a value to normal form , defined using @generics - sop@. module Generics.SOP.NFData (grnf) where import Control.DeepSeq import Generics.SOP Assuming you have a ' Generics . SOP.Generic ' instance grnf :: (Generic a, All2 NFData (Code a)) => a -> () grnf = rnf . hcollapse . hcliftA p (K . rnf . unI) . from p :: ...
e60de46b5a53a2b05ca9ecc01c682868ffa56e6a77068b2224703aa4757b3a27
UU-ComputerScience/uhc
Bool.hs
# LANGUAGE CPP # # OPTIONS_GHC -XNoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Bool Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stabilit...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/base/Data/Bool.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Bool License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable The 'Bool' type and related functions. ------------------------------------...
# LANGUAGE CPP # # OPTIONS_GHC -XNoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 module Data.Bool ( * Booleans Bool(..), : : Bool : : ) where #ifdef __GLASGOW_HASKELL__ import GHC.Base #endif #ifdef __NHC__ import Prelude import Prelude ( Bool(..) , (&&) , (||) , no...
18d7bad3ead96a22fd7add71d2be2b56c074bbd5d4f5cfdf98f28049fa72e85e
evolutics/haskell-formatter
Input.hs
predecessor = predecessor -- comment 0 -- |comment 1 successor :: a successor = successor
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/testsuite/resources/source/comments/depends_on_displacement/single_annotation/line_pair/none_before/Input.hs
haskell
comment 0 |comment 1
predecessor = predecessor successor :: a successor = successor
1550a68698c2e2c098b6f5691092fc4ba74add7a96e57fa5e9b6d6f897e38213
diku-dk/futhark
JavaScript.hs
# LANGUAGE TemplateHaskell # | Code snippets used by the JS backends . module Futhark.CodeGen.RTS.JavaScript ( serverJs, valuesJs, wrapperclassesJs, ) where import Data.FileEmbed import Data.Text qualified as T -- | @rts/javascript/server.js@ serverJs :: T.Text serverJs = $(embedStringFile "rts/javascr...
null
https://raw.githubusercontent.com/diku-dk/futhark/98e4a75e4de7042afe030837084764bbf3c6c66e/src/Futhark/CodeGen/RTS/JavaScript.hs
haskell
| @rts/javascript/server.js@ | @rts/javascript/values.js@ | @rts/javascript/wrapperclasses.js@
# LANGUAGE TemplateHaskell # | Code snippets used by the JS backends . module Futhark.CodeGen.RTS.JavaScript ( serverJs, valuesJs, wrapperclassesJs, ) where import Data.FileEmbed import Data.Text qualified as T serverJs :: T.Text serverJs = $(embedStringFile "rts/javascript/server.js") valuesJs :: T.T...
1c0a87beb6122f3e646eaf028728fe74c9cf29124ee1c44c410a6a3450eeb0f3
replikativ/hitchhiker-tree
nippy.cljc
(ns hitchhiker.tree.codec.nippy (:require [hitchhiker.tree :as tree] [hitchhiker.tree.node :as n] #?(:clj [taoensso.nippy :as nippy]))) TODO share with konserve (declare encode) (defn nilify [m ks] (reduce (fn [m k] (assoc m k nil)) m ks)) (defn encode-index-node [node] (-> ...
null
https://raw.githubusercontent.com/replikativ/hitchhiker-tree/e8f5dd7aec343437aac1dc84ef2b92ddd7fa5a45/src/hitchhiker/tree/codec/nippy.cljc
clojure
(ns hitchhiker.tree.codec.nippy (:require [hitchhiker.tree :as tree] [hitchhiker.tree.node :as n] #?(:clj [taoensso.nippy :as nippy]))) TODO share with konserve (declare encode) (defn nilify [m ks] (reduce (fn [m k] (assoc m k nil)) m ks)) (defn encode-index-node [node] (-> ...
3334b66af9d586f1e052dfa33526f1590cd2c94aeba386749ab4c660811c8ade
erlang/corba
orber.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2016 . 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 ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/orber/src/orber.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 K...
Copyright Ericsson AB 1997 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , This file contains the Orber application interface -module(orber). -include_lib("orber/include/corba.hrl"). -in...
cfc0ea617cf1774700f430b57cd452e34472fa1485fac288cef297147846c02e
basho/riak_core
riak_core_location.erl
-module(riak_core_location). %% API -export([get_node_location/2, has_location_set_in_cluster/1, stripe_nodes_by_location/2, check_ring/1, check_ring/2, check_ring/3]). -spec get_node_location(node(), dict:dict()) -> string() | undefined. get_node_location(Node, Locations)...
null
https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/src/riak_core_location.erl
erlang
API Order nodes list by having a different location after each other no location set, not needed to check
-module(riak_core_location). -export([get_node_location/2, has_location_set_in_cluster/1, stripe_nodes_by_location/2, check_ring/1, check_ring/2, check_ring/3]). -spec get_node_location(node(), dict:dict()) -> string() | undefined. get_node_location(Node, Locations) -> c...
b22431540505f62c9b08959195c34444b38271d50d2c3b6d010ce7f8776c123b
leftaroundabout/constrained-categories
TupMat.hs
class TupMat t where type TupleComps t :: * fromTups :: TupleComps t -> t instance where -- type TupleComps t = Double -- fromTups = id instance ( s , t ) where -- type TupleComps (s,t) = (s,t) -- fromTups = id -- newtype Row v = R v deriving (AdditiveGroup) instance (VectorSpace v) => VectorSpace ...
null
https://raw.githubusercontent.com/leftaroundabout/constrained-categories/9537e0a638b77aa6caed41f66d864ad2259ef43a/wild-ideas/TupMat.hs
haskell
type TupleComps t = Double fromTups = id type TupleComps (s,t) = (s,t) fromTups = id
class TupMat t where type TupleComps t :: * fromTups :: TupleComps t -> t instance where instance ( s , t ) where newtype Row v = R v deriving (AdditiveGroup) instance (VectorSpace v) => VectorSpace (Row v) where type Scalar(Row v)=Scalar v instance ( CountablySpanned u, CountablySpanned v , Sc...
c35200ef5a95012321e588a609633536a6765e0894c78aae937d1085f6c5b277
javalib-team/sawja
jNativeStubs.ml
* This file is part of SAWJA * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * ...
null
https://raw.githubusercontent.com/javalib-team/sawja/da39f9c1c4fc52a1a1a6350be0e39789812b6c00/src/jNativeStubs.ml
ocaml
* This file is part of SAWJA * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * ...
217459b4e26ec8ce9f12ef6227679ab33ac372640428a368449975fb84cc992d
gerlion/secure-e-voting-with-coq
authority_j.mli
Auto - generated from " authority.atd " [@@@ocaml.warning "-27-32-35-39"] type public_key = Authority_t.public_key = { g: string; p: string; q: string; y: string } type proofDLog = Authority_t.proofDLog = { challenge: string; commitment: string; response: string } type commitment = Authority_t.commit...
null
https://raw.githubusercontent.com/gerlion/secure-e-voting-with-coq/c85f58f5759b960cc9d90a96fe7970e038523a9a/OCaml/authority_j.mli
ocaml
* Output a JSON value of type {!proofDLog}. * Input JSON data of type {!proofDLog}. * Output a JSON value of type {!commitment}. * Input JSON data of type {!commitment}. * Output a JSON value of type {!proof}. * Input JSON data of type {!proof}. * Output a JSON value of type {!authority}. * Input JSON data of ty...
Auto - generated from " authority.atd " [@@@ocaml.warning "-27-32-35-39"] type public_key = Authority_t.public_key = { g: string; p: string; q: string; y: string } type proofDLog = Authority_t.proofDLog = { challenge: string; commitment: string; response: string } type commitment = Authority_t.commit...
6f1c02b43ef1fec9f6059cac201ac2292aca440eda312792abb1c3efdcc907d9
jumarko/clojure-experiments
graphs.clj
(ns clojure-experiments.stats.kixi.graphs (:require [thi.ng.geom.viz.core :as viz] [thi.ng.geom.svg.core :as svg] [thi.ng.geom.vector :as v] [thi.ng.color.core :as col] [thi.ng.math.core :as m :refer [PI TWO_PI]] [kixi.stats.core :as kixi] [kixi....
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/stats/kixi/graphs.clj
clojure
#items x fraction in bin SVG layouts These are used as geom-viz's :layout parameter, they do the actual drawing using the specified coordinate system. setting up an actual graph function that returns a renderable graph-specification. crossbar box = inter quartile range median whiskers outliers Bits and...
(ns clojure-experiments.stats.kixi.graphs (:require [thi.ng.geom.viz.core :as viz] [thi.ng.geom.svg.core :as svg] [thi.ng.geom.vector :as v] [thi.ng.color.core :as col] [thi.ng.math.core :as m :refer [PI TWO_PI]] [kixi.stats.core :as kixi] [kixi....
beb5213030eec4484b4ec7ab3798cf971a5b9d632221a04d556138b5b48cc632
sjl/advent
day-05.lisp
(advent:defpackage* :advent/2016/05) (in-package :advent/2016/05) (defparameter *fancy* nil) (defparameter *spinner* '#1=(#\◴ #\◷ #\◶ #\◵ . #1#)) (defun string->bytes (string) (map 'vector #'char-code string)) (defun progress (i) (when *fancy* (format t "~C~C Iteration: ~D" #\Return (pop *spinner*) i)) (f...
null
https://raw.githubusercontent.com/sjl/advent/dc3debda9bd1a0570a6ab06919b1af7b285413dc/src/2016/days/day-05.lisp
lisp
Instead create a fresh string of the entire ID every time, we could keep a buffer and just replace the numeric portion on each iteration. a fill pointer. Welp. hex digit -> array index valid index not already seen Scratch --------------------------------------------------------------------
(advent:defpackage* :advent/2016/05) (in-package :advent/2016/05) (defparameter *fancy* nil) (defparameter *spinner* '#1=(#\◴ #\◷ #\◶ #\◵ . #1#)) (defun string->bytes (string) (map 'vector #'char-code string)) (defun progress (i) (when *fancy* (format t "~C~C Iteration: ~D" #\Return (pop *spinner*) i)) (f...
7122b6a9b358eacfe75289c00a4e7feae1d182866f8cffe54b90650187474a00
evilbinary/scheme-lib
scanf.scm
;;;;"scanf.scm" implemenation of formatted input Copyright ( C ) 1996 , 1997 , 2003 , 2010 ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is ;granted, subject to the following restrictions and understandings. ; 1 . Any copy made...
null
https://raw.githubusercontent.com/evilbinary/scheme-lib/6df491c1f616929caa4e6569fa44e04df7a356a7/packages/slib/scanf.scm
scheme
"scanf.scm" implemenation of formatted input Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. this software will be error-free, and I am under no obligation...
Copyright ( C ) 1996 , 1997 , 2003 , 2010 1 . Any copy made of this software must include this copyright notice 2 . I have made no warranty or representation that the operation of 3 . In conjunction with products arising from the use of this Originally ( ) wrote some public extend to POSIX pattern compl...
02506d7f4f9278160e814b4e6e7f51534e15a9be673eac26a5f97b633a11f564
zadean/xqerl
op_hexBinary_greater_than_SUITE.erl
-module('op_hexBinary_greater_than_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['hexBinary-gt-1'/1]). -export(['hexBinary-gt-2'/1]). -export(['hexBin...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/op/op_hexBinary_greater_than_SUITE.erl
erlang
-module('op_hexBinary_greater_than_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['hexBinary-gt-1'/1]). -export(['hexBinary-gt-2'/1]). -export(['hexBin...
4430de244d8f75c9523274c908f128b573b28d456dd65ee19ed65de0119c02a2
repl-acement/repl-acement
text_parsing.cljc
(ns replacement.protocol.text-parsing #?(:cljs (:require [replacement.protocol.data :as spec-data] [cljs.spec.alpha :as s] [cljs.tools.reader.reader-types :as readers] [cljs.tools.reader :as reader]) :clj (:require [replacement.protocol.data :as spe...
null
https://raw.githubusercontent.com/repl-acement/repl-acement/ba60e2f0c58e1143235d147396b310bdd30791a0/repl-shared/replacement/protocol/text_parsing.cljc
clojure
(ns replacement.protocol.text-parsing #?(:cljs (:require [replacement.protocol.data :as spec-data] [cljs.spec.alpha :as s] [cljs.tools.reader.reader-types :as readers] [cljs.tools.reader :as reader]) :clj (:require [replacement.protocol.data :as spe...
5fd4caca81e44f42a62e8ab3644c9ae9ef8933c5198f1f65921c9de744342672
TrustInSoft/tis-kernel
gtk_helper.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/gui/gtk_helper.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 Frama - C. Copyright ( C ) 2007 - 2015 ...
fa40208c91b1e8f46fd57f4f3ee991f0c205ffea47f41f1c003aa12d72f648f9
goblint/analyzer
libraryFunctions.mli
(** This allows us to query information about library functions. *) open GoblintCil val add_lib_funs : string list -> unit val use_special : string -> bool (** This is for when we need to use special transfer function on functions calls that have definitions. *) val is_safe_uncalled : string -> bool (** Find librar...
null
https://raw.githubusercontent.com/goblint/analyzer/f6dab194177da048057694ec4183b2adacc4800c/src/analyses/libraryFunctions.mli
ocaml
* This allows us to query information about library functions. * This is for when we need to use special transfer function on functions calls that have definitions. * Find library function descriptor for {e special} function (as per {!is_special}). * Check if function is treated specially.
open GoblintCil val add_lib_funs : string list -> unit val use_special : string -> bool val is_safe_uncalled : string -> bool val find: Cil.varinfo -> LibraryDesc.t val is_special: Cil.varinfo -> bool val verifier_atomic_var: Cil.varinfo
36b288a5cf2e6ef6e6d0f4c3417385a84790046cf1793e95a87cdbffcf3941e3
samoht/ocaml-arg
subCommand.ml
(******************************************************************************) (* *) Copyright ( C ) 2008 - 2010 , OCamlCore SARL Copyright ( C ) 2011 , camlunity ...
null
https://raw.githubusercontent.com/samoht/ocaml-arg/0aeab8f619de0b809b60083ab83429e4cf85e095/src/subCommand.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
Copyright ( C ) 2008 - 2010 , OCamlCore SARL Copyright ( C ) 2011 , camlunity Copyright ( C ) 2012 , the Free Software Foundation ; either version 2.1 of the License , or ( at is distributed in the hope that it w...