_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
8eee406df02ffe949e821c287c2d61ca4ff4c2c198138f102d3cd0dc558ec05d
aryx/xix
channel.ml
open Common type chan_kind = | CRed | CGreen | CBlue | CAlpha | CGrey | CMap type chan = chan_kind * int (* nb bits *) less : opti : int because can fit all channels in 32 bits usually 4 , like let grey1 = [ CGrey, 1] let grey8 = [ CGrey, 8] let rgb16 = [ CRed, 5; CGreen, 6; CBlue, 6] let r...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_graphics/draw/channel.ml
ocaml
nb bits todo: sanity checks when serializing to /dev/draw when reading from /dev/draw/new deserializing serializing do not pass an img here otherwise mutually dependent modules
open Common type chan_kind = | CRed | CGreen | CBlue | CAlpha | CGrey | CMap less : opti : int because can fit all channels in 32 bits usually 4 , like let grey1 = [ CGrey, 1] let grey8 = [ CGrey, 8] let rgb16 = [ CRed, 5; CGreen, 6; CBlue, 6] let rgb24 = [ CRed, 8; CGreen, 8; CBlue, 8] l...
15278b1e6b4c7d841006c1da2340a14560bf944d92234d68b66e7421a3524635
schibsted/spid-tech-docs
types.clj
(ns spid-docs.pimp.types "Converts <spid-types> element into list with client types. Used in endpoint pages to show which client type has access to said endpoint. Content between opening and closing tags will determine where checkboxes are shown." (:require [clojure.string :as str] [hiccup.core :a...
null
https://raw.githubusercontent.com/schibsted/spid-tech-docs/ee6a4394e9732572e97fc3a55506b2d6b9a9fe2b/src/spid_docs/pimp/types.clj
clojure
(ns spid-docs.pimp.types "Converts <spid-types> element into list with client types. Used in endpoint pages to show which client type has access to said endpoint. Content between opening and closing tags will determine where checkboxes are shown." (:require [clojure.string :as str] [hiccup.core :a...
df81b0258e1e0d66a7d84a09e43fdc9dd96cef70dbd14c3fcc8cc01bc0bb3f2a
mhaemmerle/grimoire
timer.clj
(ns grimoire.timer)
null
https://raw.githubusercontent.com/mhaemmerle/grimoire/1fe3506838ec125888fe9241bb14ad57018c3835/src/grimoire/timer.clj
clojure
(ns grimoire.timer)
59ba61fe032d90f07690e8a34084e2ffae96524c2aa9863dcf53e80261949ca2
haskell-numerics/hmatrix
Matrix.hs
# LANGUAGE ForeignFunctionInterface # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE DeriveGeneric ...
null
https://raw.githubusercontent.com/haskell-numerics/hmatrix/f8393311c0f355cf7417dc267314e1f187ac5425/packages/base/src/Internal/Matrix.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # LANGUAGE DeriveGeneric # | Module : Internal.Matrix License : BSD3 Stability : provisional Internal matrix representation ------------...
# LANGUAGE ForeignFunctionInterface # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ConstrainedClassMethods # Copyright : ( c ) 2007 - 15 Maintainer : module Internal.Matrix where import Internal.Vector import Internal.Devel import Internal.Vectorized hid...
5214e5792e6fa7cb5b7f802013fd9a8e5dd7a60fb8590796b641c25294a93d8c
uroboros/haskell_design_patterns
3_lazy_io.hs
import System.IO import Control.Monad import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as B8 import Data.Char (chr) import qualified Data.ByteString.Lazy as LB import qualified Data.ByteString.Lazy.Char8 as L8 main1 = do let ios = map putStrLn ["this", "won't", "run"] putStrLn "until ...
null
https://raw.githubusercontent.com/uroboros/haskell_design_patterns/9786e4f21555e1850ef8ccb8176e838f731a9f38/chapter2/3_lazy_io.hs
haskell
------------------------------------------------------ perform action perform actions ------------------------------------------------------ (lazy) stream ------------------------------------------------------ line stream ------------------------------------------------------ line stream using mapM_ ---------...
import System.IO import Control.Monad import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as B8 import Data.Char (chr) import qualified Data.ByteString.Lazy as LB import qualified Data.ByteString.Lazy.Char8 as L8 main1 = do let ios = map putStrLn ["this", "won't", "run"] putStrLn "until ...
8cdc0e23bbe83e0c2ba46ef4958184e9f972923c2a9c8639a36944b80d89878c
paoloo/blockchainPOC
handler_test.clj
(ns bcpoc.handler-test (:require [clojure.test :refer :all] [ring.mock.request :as mock] [bcpoc.handler :refer :all])) (deftest test-app (testing "main route" (let [response (app (mock/request :get "/"))] (is (= (:status response) 200)) (is (= (:body response) "Hello World")...
null
https://raw.githubusercontent.com/paoloo/blockchainPOC/18593423a70ec4294a66a40ada562d7dc23612d8/test/bcpoc/handler_test.clj
clojure
(ns bcpoc.handler-test (:require [clojure.test :refer :all] [ring.mock.request :as mock] [bcpoc.handler :refer :all])) (deftest test-app (testing "main route" (let [response (app (mock/request :get "/"))] (is (= (:status response) 200)) (is (= (:body response) "Hello World")...
ddcb69987865e09c2a8ec046134c05567ce76e9f58ffe9ff3866336aca980f5b
sjl/temperance
bytecode.lisp
(in-package :temperance) ;;;; Opcodes (defun opcode-name (opcode) (eswitch (opcode) (+opcode-noop+ "NOOP") (+opcode-get-structure+ "GET-STRUCTURE") (+opcode-get-variable-local+ "GET-VARIABLE") (+opcode-get-variable-stack+ "GET-VARIABLE") (+opcode-get-value-local+ "GET-VALUE") (+opcode-get-v...
null
https://raw.githubusercontent.com/sjl/temperance/f7e68f46b7afaeecf643c009eb2e130500556e31/src/bytecode.lisp
lisp
Opcodes Instructions Cells
(in-package :temperance) (defun opcode-name (opcode) (eswitch (opcode) (+opcode-noop+ "NOOP") (+opcode-get-structure+ "GET-STRUCTURE") (+opcode-get-variable-local+ "GET-VARIABLE") (+opcode-get-variable-stack+ "GET-VARIABLE") (+opcode-get-value-local+ "GET-VALUE") (+opcode-get-value-stack+ "...
a0d67444c62e5a2ae0d0278b84a3b1d622c05b13ad00385b60205c7657009c06
sneeuwballen/zipperposition
HO_unif.mli
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Higher - Order Unification } type term = Term.t type penalty = int (** penalty on the search space *) val enum_prop : ?mode:[`And | `Or | `Neg |`Quants | `TF | `Eq | `Combinators | `Full | `Pragmatic | ...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/333c4a5b0f8a726f414db901a77ca30921178da5/src/core/HO_unif.mli
ocaml
* penalty on the search space * Given a variable of type [τ1…τn -> prop], enumerate possible shapes for it @param v the variable to refine + its scope. Must return [prop]. @param offset to create fresh variables (should be unused elsewhere) @param mode if [`Neg], only tries negation; [`None], do nothin...
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Higher - Order Unification } type term = Term.t type penalty = int val enum_prop : ?mode:[`And | `Or | `Neg |`Quants | `TF | `Eq | `Combinators | `Full | `Pragmatic | `Simple | `None] -> ?add_var:bool...
c666078467a117544edd59eee081a50590cd11b130b27a6a51089302e635d930
fjames86/fsocket
test3.lisp
Copyright ( c ) 2015 < > This code is licensed under the MIT license . (defpackage #:fsocket.test3 (:use #:cl #:fsocket)) (in-package #:fsocket.test3) (defun hd (buffer &key (start 0) end (stream *standard-output*)) "Hexdump output" (let ((lbuff (make-array 16)) (len (- (or end (length buffer)) ...
null
https://raw.githubusercontent.com/fjames86/fsocket/faa315c05074b345a971cfd890074a11ece8389a/test/test3.lisp
lisp
Copyright ( c ) 2015 < > This code is licensed under the MIT license . (defpackage #:fsocket.test3 (:use #:cl #:fsocket)) (in-package #:fsocket.test3) (defun hd (buffer &key (start 0) end (stream *standard-output*)) "Hexdump output" (let ((lbuff (make-array 16)) (len (- (or end (length buffer)) ...
994bea1274abe37862136fa26bd877fad2e05c575e6f47be86b89fc86c6c0baf
melange-re/melange
ast_config.mli
Copyright ( C ) 2020 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
null
https://raw.githubusercontent.com/melange-re/melange/b595c2647a285e8bb8b16f109d0ab0fbfa22afa3/jscomp/common/ast_config.mli
ocaml
Copyright ( C ) 2020 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
48636554061395e14ac09c3fd8ad834874f1ed1a7f91ef1736240b5b9953bf83
gbour/letsencrypt-erlang
test_webroot_handler.erl
-module(test_webroot_handler). -behaviour(elli_handler). -include_lib("elli/include/elli.hrl"). -export([handle/2, handle_event/3]). handle(Req, _Args) -> Path = elli_request:raw_path(Req), File = <<"/tmp", Path/binary>>, ct:pal(info, "webroot_handler: reading ~p file", [File]), case file:read_file...
null
https://raw.githubusercontent.com/gbour/letsencrypt-erlang/566f16d289f8c968e76fafe26ded22b73d38a3cb/test/test_webroot_handler.erl
erlang
request events. Unused
-module(test_webroot_handler). -behaviour(elli_handler). -include_lib("elli/include/elli.hrl"). -export([handle/2, handle_event/3]). handle(Req, _Args) -> Path = elli_request:raw_path(Req), File = <<"/tmp", Path/binary>>, ct:pal(info, "webroot_handler: reading ~p file", [File]), case file:read_file...
3dd4bdd0ed2815bcc63edec117576816b018dbdb5c0f6ef1a491aa98140f84e6
MyDataFlow/ttalk-server
exml.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , Erlang Solutions Ltd. %%% @doc %%% %%% @end Created : 12 Jul 2011 by < > %%%------------------------------------------------------------------- -module(exml). -include("exml_stream.hrl"). -export([parse/1]). ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/exml/src/exml.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- node is builtin type ;( Self-closing: </> Opening and closing: <></> ="" and whitespace before ensure we return io*list* by passing an empty string as `Indent', but ...
@author < > ( C ) 2011 , Erlang Solutions Ltd. Created : 12 Jul 2011 by < > -module(exml). -include("exml_stream.hrl"). -export([parse/1]). -export([to_list/1, to_binary/1, to_iolist/1, xml_size/1, to_pretty_iolist/1, to_pretty_iolist/3]). -export([escape_attr/1, ...
1229b764b70c7c46066ab5807f32583a7a8f8f0c055e0d36febcc0fa30fbf191
mirage/irmin
store.mli
* Copyright ( c ) 2013 - 2022 < > * * 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...
null
https://raw.githubusercontent.com/mirage/irmin/9bcce092a500e7e7e88dab3e0240091488e46abe/src/irmin-test/store.mli
ocaml
* Copyright ( c ) 2013 - 2022 < > * * 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...
f1870ed988f806f659410523ca0c6c41fc16dff8b41833d6862edaf3fa24aa47
ZHaskell/z-data
Hex.hs
| Module : Z.Data . Vector . Hex Description : Hex codec for bytes . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable This module provides hex encoding & decoding tools , as well as ' HexBytes ' newtype with hex textu...
null
https://raw.githubusercontent.com/ZHaskell/z-data/82e31fea77ab9384000a21cb3fedcfd3eee6cc4a/Z/Data/Vector/Hex.hs
haskell
* Encoding & Decoding functions * Internal C FFIs ^ uppercase? ^ uppercase? ^ uppercase? | Decode a hex encoding string, return Nothing on illegal bytes or incomplete input. # INLINABLE hexDecode # | Decode a hex encoding string, ignore ASCII whitespace(space, tab, newline, vertical tab, form feed, carriage retu...
| Module : Z.Data . Vector . Hex Description : Hex codec for bytes . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable This module provides hex encoding & decoding tools , as well as ' HexBytes ' newtype with hex textu...
64007bdc8b57c8ba45789eef4fdc23f2bb8a60090b59fd1e9ad301489add5bd4
spurious/sagittarius-scheme-mirror
builtin-keywords.scm
;; -*- Scheme -*- (cond-expand (sagittarius (import (rnrs))) (else #t)) (define c-file "../src/builtin-keywords.c") (define c-header "../src/sagittarius/builtin-keywords.h") (define (header out) (format out "/* This file is automatically generated by builtin-keywords.scm. DO NOT EDIT! */~%") (format out "#...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/script/builtin-keywords.scm
scheme
-*- Scheme -*- for export end of file Local Variables: End:
(cond-expand (sagittarius (import (rnrs))) (else #t)) (define c-file "../src/builtin-keywords.c") (define c-header "../src/sagittarius/builtin-keywords.h") (define (header out) (format out "/* This file is automatically generated by builtin-keywords.scm. DO NOT EDIT! */~%") (format out "#ifndef BUILTIN_KEY...
c040f9d043e5a4dc18961bbd5dff429a49a50256f95e33c2c6ce0a9358d5b80e
ekataglobal/github-changelog
git_test.clj
(ns github-changelog.git-test (:require [clojure.spec.alpha :as s] [clojure.test :refer [are deftest is testing]] [github-changelog.fs :as fs] [github-changelog.git :as sut] [github-changelog.git-helper :as gh] [github-changelog.spec :as spec])) (def config...
null
https://raw.githubusercontent.com/ekataglobal/github-changelog/29dcaab03407c69584549a79ed449bdddebc1e16/test/github_changelog/git_test.clj
clojure
(ns github-changelog.git-test (:require [clojure.spec.alpha :as s] [clojure.test :refer [are deftest is testing]] [github-changelog.fs :as fs] [github-changelog.git :as sut] [github-changelog.git-helper :as gh] [github-changelog.spec :as spec])) (def config...
c339995f0c43dea62d491b1d2937e8dd4dbfe9d02088539621075782d44ea809
2600hz-archive/whistle
jonny5_acct.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , VoIP INC %%% @doc Handles authorizing flat - rate and per - minute calls for Crossbar accounts %%% TODO: Convert to gen_listener %%% @end Created : 7 Jul 2011 by < > %%%--------------------------------------...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/whistle_apps/apps/jonny5/src/jonny5_acct.erl
erlang
------------------------------------------------------------------- @doc TODO: Convert to gen_listener @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =========================================...
@author < > ( C ) 2011 , VoIP INC Handles authorizing flat - rate and per - minute calls for Crossbar accounts Created : 7 Jul 2011 by < > -module(jonny5_acct). -behaviour(gen_server). -export([start_link/0, get_cache_pid/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate...
f98d69611cde2e5be37dbded8a187f7902ce85db2d893f1e212ea38fd018dc24
DavidAlphaFox/RabbitMQ
rabbit_mirror_queue_sync.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_mirror_queue_sync.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. slave(s). The s...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2010 - 2012 GoPivotal , Inc. All rights reserved . -module...
8ab3c47cec9be653c7c62c6510ec1cd1740e04b6d31d02f934cf4d91873255b2
jackfirth/lens
deflenses.rkt
#lang racket (require scribble/manual (for-label lens)) (provide deflens deflenses) (define-syntax-rule (deflens lens-id pre-flow ...) (defthing lens-id lens? pre-flow ...)) (define-syntax-rule (deflenses (lens-id ...) pre-flow ...) (deftogether [(defthing lens-id lens?) ...] pre-flow ...))
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-doc/lens/private/doc-util/deflenses.rkt
racket
#lang racket (require scribble/manual (for-label lens)) (provide deflens deflenses) (define-syntax-rule (deflens lens-id pre-flow ...) (defthing lens-id lens? pre-flow ...)) (define-syntax-rule (deflenses (lens-id ...) pre-flow ...) (deftogether [(defthing lens-id lens?) ...] pre-flow ...))
77b8065c4367e6857d3e6d28f94b00e28acef9e2ecfaf63ac1ff268f40467786
jimmythompson/halboy
argutils.clj
(ns halboy.argutils) (defn- map->key-value-pairs [m] (->> (seq m) (reduce concat))) (defn- arg-map? [kvs] (and (= 1 (count kvs)) (map? (first kvs)))) (defn ensure-key-value-pairs [n] (if (arg-map? n) (-> (first n) map->key-value-pairs) n)) (defn apply-pairs [f resource kvs] (if (empty...
null
https://raw.githubusercontent.com/jimmythompson/halboy/aef94a2b6a94e63045c369bc7679a7d6fc57b43c/src/halboy/argutils.clj
clojure
(ns halboy.argutils) (defn- map->key-value-pairs [m] (->> (seq m) (reduce concat))) (defn- arg-map? [kvs] (and (= 1 (count kvs)) (map? (first kvs)))) (defn ensure-key-value-pairs [n] (if (arg-map? n) (-> (first n) map->key-value-pairs) n)) (defn apply-pairs [f resource kvs] (if (empty...
bffe7fac504c585b91febc0c366ec03ec0af35aa394bc2921099b055ccc3222d
emqx/emqx
emqx_ee_bridge_pgsql_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %%-------------------------------------------------------------------- -module(emqx_ee_bridge_pgsql_SUITE). -compile(nowarn_export_all). -compile(export_all). -includ...
null
https://raw.githubusercontent.com/emqx/emqx/3587c4c04aaf681f32e80ed2ebe6aef60549bd4c/lib-ee/emqx_ee_bridge/test/emqx_ee_bridge_pgsql_SUITE.erl
erlang
-------------------------------------------------------------------- -------------------------------------------------------------------- SQL definitions DB defaults ------------------------------------------------------------------------------ CT boilerplate ---------------------------------------------------------...
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . -module(emqx_ee_bridge_pgsql_SUITE). -compile(nowarn_export_all). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("snabbkaffe/include/snabbkaffe.hrl"). -define(SQL_...
206cfe42ba1926350b0f06a1388e54f06185e89db1cbad777bee99a06de0a4eb
carliros/Simple-San-Simon-Functional-Web-Browser
CounterScope.hs
module Process.CounterScope where import qualified Data.Map as Map import Data.DataTreeCSS data Scope = ChildScope [Int] -- on reset, I create a new scope | SiblingScope [Int] -- on reset, I overwrite the last scope -- on increment, both incr...
null
https://raw.githubusercontent.com/carliros/Simple-San-Simon-Functional-Web-Browser/9b035cb91f127910c07fb6c1b652577642b81a20/src/Process/CounterScope.hs
haskell
on reset, I create a new scope on reset, I overwrite the last scope on increment, both increment the last scope
module Process.CounterScope where import qualified Data.Map as Map import Data.DataTreeCSS resetScope scopes value = case value of KeyValue "none" -> scopes ListValue values -> foldl updateReset scopes values where updateReset (childScope, siblingScope) (CounterValue str m...
bdcb8f6e2e9fe64d92c377dad1715058637ed4dd02cddb7ba4794737323faaad
JShermanSteele/dxo
mk-guile.scm
(define-module (faster-miniKanren mk-guile) #:export (run run* == =/= fresh conde symbolo numbero absento matche)) (import (rnrs (6))) (import (rnrs records syntactic (6))) (define sub1 1-) (define add1 1+) (define fx= fx=?) (define fxsla fxar...
null
https://raw.githubusercontent.com/JShermanSteele/dxo/52fd7d995cf072e5278a3b6cc5c85a193b61a0cf/faster-miniKanren/mk-guile.scm
scheme
(define-module (faster-miniKanren mk-guile) #:export (run run* == =/= fresh conde symbolo numbero absento matche)) (import (rnrs (6))) (import (rnrs records syntactic (6))) (define sub1 1-) (define add1 1+) (define fx= fx=?) (define fxsla fxar...
bc3d496eb13311f5966ca22f886aaf236d8ef53e025f1391fe37088737ce387b
JoelSanchez/ventas
tax.clj
(ns ventas.entities.tax (:require [clojure.spec.alpha :as spec] [clojure.test.check.generators :as gen] [ventas.database :as db] [ventas.database.entity :as entity] [ventas.database.generators :as generators] [ventas.entities.i18n :as entities.i18n] [ventas.utils :as utils])) (spec/def :tax/name...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/clj/ventas/entities/tax.clj
clojure
(ns ventas.entities.tax (:require [clojure.spec.alpha :as spec] [clojure.test.check.generators :as gen] [ventas.database :as db] [ventas.database.entity :as entity] [ventas.database.generators :as generators] [ventas.entities.i18n :as entities.i18n] [ventas.utils :as utils])) (spec/def :tax/name...
526fea9ea654fdc9525d8954bbdc185facb98fa443f7123d30e96bf941eebf3d
ejgallego/coq-serapi
sername.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * INRIA , CNRS and contributors - Copyright 1999 - 2018 (* <O___,, * (see CREDITS file for the list of authors) *) \VV/ * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/2ee6100a4ee25f84918a176ea4751fc0406e6189/sertop/sername.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team <O___,, * (see CREDITS file for the list of authors) // * This file is distributed under the terms of the * (see LICENSE file for...
v * INRIA , CNRS and contributors - Copyright 1999 - 2018 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser General Public License Version 2.1 Written by : ...
d930e88937d7daf456853558f2fe4c07d97e33879f1fc5b4dc5b58b6a611e109
google/ormolu
unboxed-sums.hs
# LANGUAGE UnboxedSums # foo = (# 1 | #) bar = (# | |2| #) baz = (# | | | 10 | | | | | #)
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/value/function/unboxed-sums.hs
haskell
# LANGUAGE UnboxedSums # foo = (# 1 | #) bar = (# | |2| #) baz = (# | | | 10 | | | | | #)
29449c077e5d05b584eddb01cf631d6a83d8bcfdd73d5b3864767b517ba38402
nilenso/time-tracker
test_helpers.clj
(ns time-tracker.invoices.test-helpers (:require [clojure.java.jdbc :as jdbc] [time-tracker.db :as db] [time-tracker.invoices.db :as invoices-db] [yesql.core :refer [defqueries]] [time-tracker.invoices.db :as invoices-db])) (defn create-invoice! "Creates a single inv...
null
https://raw.githubusercontent.com/nilenso/time-tracker/054d0dc6d6b89a4ed234d8f0b0a260b6deeef9e3/test/clj/time_tracker/invoices/test_helpers.clj
clojure
(ns time-tracker.invoices.test-helpers (:require [clojure.java.jdbc :as jdbc] [time-tracker.db :as db] [time-tracker.invoices.db :as invoices-db] [yesql.core :refer [defqueries]] [time-tracker.invoices.db :as invoices-db])) (defn create-invoice! "Creates a single inv...
30a6831d4974e6141e010717c07a25498681d9a259a68bb4f1f1b9ddb27f0121
klarna/erlavro
avro_enum_tests.erl
%% coding: latin-1 %%%------------------------------------------------------------------- Copyright ( c ) 2013 - 2016 Klarna AB %%% This file is provided to you 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...
null
https://raw.githubusercontent.com/klarna/erlavro/c55e55238ed879642c65d00c8105e498b4acc8db/test/avro_enum_tests.erl
erlang
coding: latin-1 ------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language gove...
Copyright ( c ) 2013 - 2016 Klarna AB This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(avro_enum_tests). -import(avro_e...
316ba910a8b5ecd1b47c775f066d51f791c10985c7ae81e0528feb7c07912a77
janestreet/async_unix
clock.ml
open! Core open! Import open Async_kernel.Clock_ns module Or_timeout = Or_timeout let run_at time f a = run_at (Time_ns.of_time_float_round_nearest time) f a let run_after span f a = run_after (Time_ns.Span.of_span_float_round_nearest span) f a let at time = at (Time_ns.of_time_float_round_nearest time) let after span...
null
https://raw.githubusercontent.com/janestreet/async_unix/2562a6b9316d7c6757726305482380bd7e6dba06/src/clock.ml
ocaml
open! Core open! Import open Async_kernel.Clock_ns module Or_timeout = Or_timeout let run_at time f a = run_at (Time_ns.of_time_float_round_nearest time) f a let run_after span f a = run_after (Time_ns.Span.of_span_float_round_nearest span) f a let at time = at (Time_ns.of_time_float_round_nearest time) let after span...
cedb3dc61a7d8844f65498727002b2bfeb9bf1c34cfeedbc4ea9bd524778a15e
lynkia/lynkia
lynkia_spawn_sup.erl
%%%------------------------------------------------------------------- %% @doc lynkia_spawn supervisor. @author and %% @end %%%------------------------------------------------------------------- -module(lynkia_spawn_sup). -behaviour(supervisor). -export([ init/1 ]). -export([ start_link/0 ]). %% @doc Sta...
null
https://raw.githubusercontent.com/lynkia/lynkia/bde4d0bb1e0304b0dec42ff4df1e74b18d5e797c/src/lynkia_spawn_sup.erl
erlang
------------------------------------------------------------------- @doc lynkia_spawn supervisor. @end ------------------------------------------------------------------- @doc Start the supervisor Supervisor: @doc Initialize the supervisor
@author and -module(lynkia_spawn_sup). -behaviour(supervisor). -export([ init/1 ]). -export([ start_link/0 ]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> SupFlags = #{ strategy => one_for_all, intensity => 1, period => 5 }, ...
84b760c7d8aab4325b0d5770cbe6da199abaea8e14afdfc0fc664431848799d1
DSTOQ/haskell-stellar-sdk
Lens.hs
# LANGUAGE TemplateHaskell # module Stellar.Core.Lens where import Control.Lens import Stellar.Core.Types makeFieldsNoPrefix ''TransactionEnvelope makeFieldsNoPrefix ''DecoratedSignature makeFieldsNoPrefix ''Signature makeFieldsNoPrefix ''SignatureHint makeFieldsNoPrefix ''Transaction makeFieldsNoPrefix ''TimeBounds ...
null
https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/core/src/Stellar/Core/Lens.hs
haskell
# LANGUAGE TemplateHaskell # module Stellar.Core.Lens where import Control.Lens import Stellar.Core.Types makeFieldsNoPrefix ''TransactionEnvelope makeFieldsNoPrefix ''DecoratedSignature makeFieldsNoPrefix ''Signature makeFieldsNoPrefix ''SignatureHint makeFieldsNoPrefix ''Transaction makeFieldsNoPrefix ''TimeBounds ...
df428ab1cc46a025203717439714b25d1c53b61ce915d386eb923a071da686f1
ekmett/algebra
Characteristic.hs
module Numeric.Rig.Characteristic ( Characteristic(..) , charInt , charWord ) where import Data.Int import Data.Word import Numeric.Rig.Class import Numeric.Natural import Prelude hiding ((^)) data Proxy p = Proxy class Rig r => Characteristic r where char :: proxy r -> Natural charInt :: (Integral s, Bou...
null
https://raw.githubusercontent.com/ekmett/algebra/12dd33e848f406dd53d19b69b4f14c93ba6e352b/src/Numeric/Rig/Characteristic.hs
haskell
| NB: we're using the boolean semiring, not the boolean ring
module Numeric.Rig.Characteristic ( Characteristic(..) , charInt , charWord ) where import Data.Int import Data.Word import Numeric.Rig.Class import Numeric.Natural import Prelude hiding ((^)) data Proxy p = Proxy class Rig r => Characteristic r where char :: proxy r -> Natural charInt :: (Integral s, Bou...
44d06fd2de2fd639868713e186ecb9f3cad2a4b6dd62d001f9bd33382185683f
aligusnet/mltool
WeightInitializationTest.hs
module MachineLearning.NeuralNetwork.WeightInitializationTest ( tests ) where import Test.Framework (testGroup) import Test.Framework.Providers.HUnit import Test.HUnit import Test.HUnit.Approx import Test.HUnit.Plus import Control.Monad (replicateM) import qualified Data.Vector.Storable as V import qualified Numeri...
null
https://raw.githubusercontent.com/aligusnet/mltool/92d74c4cc79221bfdcfb76aa058a2e8992ecfe2b/test/MachineLearning/NeuralNetwork/WeightInitializationTest.hs
haskell
module MachineLearning.NeuralNetwork.WeightInitializationTest ( tests ) where import Test.Framework (testGroup) import Test.Framework.Providers.HUnit import Test.HUnit import Test.HUnit.Approx import Test.HUnit.Plus import Control.Monad (replicateM) import qualified Data.Vector.Storable as V import qualified Numeri...
07920365569255637003ef09bf5719e9c90d8ec96039e888172c8bb4f5c7b7e6
portkey-cloud/aws-clj-sdk
translate.clj
(ns portkey.aws.translate (:require [portkey.aws])) (def endpoints '{"us-east-2" {:credential-scope {:service "translate", :region "us-east-2"}, :ssl-common-name "translate.us-east-2.amazonaws.com", :endpoint "-east-2.amazonaws.com", :signature-version :v4}, "us-west-2" {:credential-scope {:serv...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/translate.clj
clojure
(ns portkey.aws.translate (:require [portkey.aws])) (def endpoints '{"us-east-2" {:credential-scope {:service "translate", :region "us-east-2"}, :ssl-common-name "translate.us-east-2.amazonaws.com", :endpoint "-east-2.amazonaws.com", :signature-version :v4}, "us-west-2" {:credential-scope {:serv...
9f46d1415019860b0ceead60538f3d9a85b41954b0c0744d4f50b939de60f34e
facebook/pyre-check
type.mli
* 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/pyre-check/2314ed3ee8d71ef687eac9d603addd64b9f804a2/source/analysis/type.mli
ocaml
* Used to indicate * when passing in a list of parameters and creating a callable Contains `Bottom` or variables. Takes a map generated from Preprocessing.dequalify_map and a type and dequalifies the type The value in the domain directly corresponding to the variable, i.e. the replacement that would leave ...
* 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...
1ff3cac126e23bd97dace9efb25e9c2021f0b550105e1141267d3ca5455c4725
plumatic/grab-bag
query.clj
(ns model-explorer.query "Query language for querying over documents. Ultimate goal is for to incorporate labels and other models, relations and aggregation, functions, and serve as select and where clauses as well as feature fns." (:refer-clojure :exclude [some]) (:use plumbing.core) (:require [sch...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/service/model-explorer/src/model_explorer/query.clj
clojure
TODO: auto-labels nested query list aggregation function call literal string match not sure if re-find is right semantics leaf feature fn Functions that query can access. deleted :retweeted_status boolean
(ns model-explorer.query "Query language for querying over documents. Ultimate goal is for to incorporate labels and other models, relations and aggregation, functions, and serve as select and where clauses as well as feature fns." (:refer-clojure :exclude [some]) (:use plumbing.core) (:require [sch...
f70dbac5c3179ff487a4fce7b7568f2cd457eae3663a0c741816191cd1b3d37c
OCamlPro/ocp-build
copWorkspace.mli
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/cop/driver/copWorkspace.mli
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file exception NoWorkspace of string val lookup_root : root:string option -> local:bool -> workspace:string -> val scan_workspace :
ac0b1a770c5b66335709e524a611f799fb328dcfb01bb180a58ed4b8b4b0af96
ekmett/ekmett.github.com
Pointed.hs
------------------------------------------------------------------------------------------- -- | -- Module : Control.Category.Functor.Pointed Copyright : 2008 -- License : BSD-style (see the LICENSE file in the distribution) -- Maintainer : < > -- Stability : experimental -- Portability : non-portable (cla...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/categories/_darcs/pristine/src/Control/Category/Functor/Pointed.hs
haskell
----------------------------------------------------------------------------------------- | Module : Control.Category.Functor.Pointed License : BSD-style (see the LICENSE file in the distribution) Stability : experimental Portability : non-portable (class-associated types) Endofunctors, Monads and Comonads <> ...
Copyright : 2008 Maintainer : < > Defines the notion of a ' Pointed ' ( and ' Copointed ' ) functor in the sense of Lenisa , Power and Watanabe ' 's , Pointed and Co - Pointed A simple wrapper @newtype@ is basically just a ' Pointed ' ' Copointed ' ' Functor ' . When NB : There is another notion...
08a4a1d317e9ac956cb1134cde4dfe391fce625f66368c7b03d1c684ae798588
Kakadu/fp2022
util.ml
* Copyright 2021 - 2022 , Danila Pechenev & * SPDX - License - Identifier : LGPL-3.0 - or - later open Ast open Base (** Finds all identifiers in an expression. Used in pattern-matching inference *) let rec find_identifiers = function | EBinaryOperation (_, left_operand, right_operand) -> find_identifiers le...
null
https://raw.githubusercontent.com/Kakadu/fp2022/7f9035ae2d6fb779e2cb075ab1a0c76883f30b00/OCamlWithEffects/lib/util.ml
ocaml
* Finds all identifiers in an expression. Used in pattern-matching inference
* Copyright 2021 - 2022 , Danila Pechenev & * SPDX - License - Identifier : LGPL-3.0 - or - later open Ast open Base let rec find_identifiers = function | EBinaryOperation (_, left_operand, right_operand) -> find_identifiers left_operand @ find_identifiers right_operand | EUnaryOperation (_, operand) -> fi...
4abb8e197ccc9a1cab06db7b253954839f9734d2d2912772ba2987fa3169b462
nyu-acsys/drift
call_back.ml
let mk_adder (x:int) = let adder (i:int) = i + x in adder let main (mx:int(*-:{v:Int | true}*)) (mi:int(*-:{v:Int | true}*)) = let addr = mk_adder mx in assert (addr mi = mi + mx)
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/DRIFT/high/call_back.ml
ocaml
-:{v:Int | true} -:{v:Int | true}
let mk_adder (x:int) = let adder (i:int) = i + x in adder let addr = mk_adder mx in assert (addr mi = mi + mx)
22667ba04ba4f02f03779b76c2f29840602bf47543dba62495a4c8fddee14f3f
purescript/spago
PscPackage.hs
module Spago.PscPackage where import Spago.Prelude hiding (set) data PscPackage = PscPackage { name :: Text , set :: Text , source :: Text , depends :: [Text] } deriving (Show, Generic) instance ToJSON PscPackage instance FromJSON PscPackage configPath :: IsString t => t configPath = ...
null
https://raw.githubusercontent.com/purescript/spago/8e466899c322d1c561788e5fac1148570bff71d5/src/Spago/PscPackage.hs
haskell
module Spago.PscPackage where import Spago.Prelude hiding (set) data PscPackage = PscPackage { name :: Text , set :: Text , source :: Text , depends :: [Text] } deriving (Show, Generic) instance ToJSON PscPackage instance FromJSON PscPackage configPath :: IsString t => t configPath = ...
f019d1a8ccdbbf51d11df640fa1c75904159080e302b32299c4f9481609cd6ce
mvr/at
Effective.hs
# LANGUAGE PatternSynonyms # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # module Math.ValueCategory.Effective where import Math.ValueCategory import Math.ValueCategory.Abelian import Math.ValueCategory.Sequential -------------------------------------------------------------------------------- -- Following "...
null
https://raw.githubusercontent.com/mvr/at/f08b25ee2d83f761fd288a66f05dad1943879db1/old/Math/ValueCategory/Effective.hs
haskell
------------------------------------------------------------------------------ Following ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ The Five Lemma Algorithm exact sequence: We are trying to determine e...
# LANGUAGE PatternSynonyms # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # module Math.ValueCategory.Effective where import Math.ValueCategory import Math.ValueCategory.Abelian import Math.ValueCategory.Sequential " Effective Algebraic Topology " by Mem . . Math . Soc . 92 ( 1991 ) , no . 451 , vi+63...
ea16fd891fdad85716bb27141d769d2c46a4b2f7d7d934a9cbc9236f5e8ba56c
pirapira/coq2rust
refl_tauto.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/plugins/rtauto/refl_tauto.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * module Search = Explore.Make(...
f8373562acd56d036ef9b122d9f361cae084bd9ab08dfcd1a6c9df248f28c5d5
NorfairKing/validity
OrdSpec.hs
# LANGUAGE TypeApplications # module Test.Validity.OrdSpec where import Data.GenValidity import Test.Hspec import Test.Validity.Ord import Test.Validity.Utils spec :: Spec spec = do ordSpec @Rational failsBecause "NaN >= NaN is False" $ ordSpec @Double ordSpec @Int ordSpecOnArbitrary @Int ordSpecOnGen ((* ...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-hspec/test/Test/Validity/OrdSpec.hs
haskell
# LANGUAGE TypeApplications # module Test.Validity.OrdSpec where import Data.GenValidity import Test.Hspec import Test.Validity.Ord import Test.Validity.Utils spec :: Spec spec = do ordSpec @Rational failsBecause "NaN >= NaN is False" $ ordSpec @Double ordSpec @Int ordSpecOnArbitrary @Int ordSpecOnGen ((* ...
7cfbd8918624af584b4b4530537364ac502e4bef5927312c799de8c1952f304d
cemerick/friend
credentials.clj
(ns cemerick.friend.credentials (:import org.mindrot.jbcrypt.BCrypt)) (defn hash-bcrypt "Hashes a given plaintext password using bcrypt and an optional :work-factor (defaults to 10 as of this writing). Should be used to hash passwords included in stored user credentials that are to be later verified usin...
null
https://raw.githubusercontent.com/cemerick/friend/75bb607179515c6abd0a76a11ee97895fb758963/src/cemerick/friend/credentials.clj
clojure
if the credentials-loading function will return a credentials
(ns cemerick.friend.credentials (:import org.mindrot.jbcrypt.BCrypt)) (defn hash-bcrypt "Hashes a given plaintext password using bcrypt and an optional :work-factor (defaults to 10 as of this writing). Should be used to hash passwords included in stored user credentials that are to be later verified usin...
dee97aa66930b76b1ea4ff60090e611a313c41660ace2d9cc0544394f3c95fa2
codinuum/cca
keyword.ml
Copyright 2013 - 2018 RIKEN Copyright 2018 - 2020 Chiba Institude of Technology 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 b...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/fortran/parsing/src/keyword.ml
ocaml
F2003 ??? ADVANCE REC non-standard ext. non-standard ext. F2003 F2003 F2008 F2003
Copyright 2013 - 2018 RIKEN Copyright 2018 - 2020 Chiba Institude of Technology 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 b...
c6cd1ef2f097d93c1b3b657a8caeaf1312ec9b7571f7d5680656df78e71dbcce
flavioc/cl-hurd
dir-lookup.lisp
(in-package :translator-test) (defun %my-lookup (under name &key flags retry) (multiple-value-bind (retry-type retry-name port) (dir-lookup under name :flags flags) (declare (ignore retry-type)) (cond ((null port) retry-name) (t (port-deallocate...
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/tests/dir-lookup.lisp
lisp
Lookup inexistent file Try to create an existing file Try to open in a non existent directory Try to lookup a circular link Try a normal lookup
(in-package :translator-test) (defun %my-lookup (under name &key flags retry) (multiple-value-bind (retry-type retry-name port) (dir-lookup under name :flags flags) (declare (ignore retry-type)) (cond ((null port) retry-name) (t (port-deallocate...
facf433c3feef62aab51ce0cd9f7edd16006a974cf14d81a5c53b6071d16252c
wdebeaum/step
adverb.lisp
;;;; ;;;; W::adverb ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::adverb (SENSES ((LF-PARENT ONT::linguistic-component) ;inguistic-object) (meta-data :origin caloy3 :entry-date 20070330 :change-date nil :comments y3-test-data :wn ("adverb%1:10:00")) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/adverb.lisp
lisp
W::adverb inguistic-object)
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::adverb (SENSES (meta-data :origin caloy3 :entry-date 20070330 :change-date nil :comments y3-test-data :wn ("adverb%1:10:00")) ) ) ) ))
d659ab20a0e85fe0917a697a11e7bfb385c2354082674ba842ca130eb454e719
pepeiborra/schemas
Unions.hs
# LANGUAGE DeriveGeneric # # LANGUAGE OverloadedLabels # # LANGUAGE OverloadedLists # module Unions where import Data.Generics.Labels () import Schemas import GHC.Generics (Generic) data Some a = Some a | None deriving (Eq, Generic, Show) schemaSomeNone, schemaNoneSome :: HasSchema a => TypedSchema (Some a) sche...
null
https://raw.githubusercontent.com/pepeiborra/schemas/b8e6cf3cf5866384b85b19058c5673fe8fc4d4a5/test/Unions.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE OverloadedLabels # # LANGUAGE OverloadedLists # module Unions where import Data.Generics.Labels () import Schemas import GHC.Generics (Generic) data Some a = Some a | None deriving (Eq, Generic, Show) schemaSomeNone, schemaNoneSome :: HasSchema a => TypedSchema (Some a) sche...
9c7f3cf884998a0eedcb8c2e9343d2328dd53871bcc6db4b837ab9bdb2ab7316
pfdietz/ansi-test
ceiling-aux.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Aug 19 06:52:02 2003 ;;;; Contains: Aux. functions for CEILING (defun ceiling.1-fn () (loop for n = (- (random 2000000000) 1000000000) for d = (1+ (random 10000)) for vals = (multiple-value-list (ceiling n d)) for ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/auxiliary/ceiling-aux.lsp
lisp
-*- Mode: Lisp -*- Contains: Aux. functions for CEILING
Author : Created : Tue Aug 19 06:52:02 2003 (defun ceiling.1-fn () (loop for n = (- (random 2000000000) 1000000000) for d = (1+ (random 10000)) for vals = (multiple-value-list (ceiling n d)) for (q r) = vals for n2 = (+ (* q d) r) repeat 1000 ...
54d2067e56b9103f155956ac5ecb1fb259385edb2d331847dbf707d07108f5d8
replikativ/kabel
pingpong.clj
(ns kabel.examples.pingpong (:require [kabel.client :as cli] [kabel.http-kit :as http-kit] [kabel.peer :as peer] [superv.async :refer [<?? go-try S go-loop-try <? >? put?]] [clojure.core.async :refer [chan]] ;; you can use below transit if you prefer ...
null
https://raw.githubusercontent.com/replikativ/kabel/d3a75385b4ff60f2bbc406763e830483b324f936/examples/pingpong.clj
clojure
you can use below transit if you prefer this url is needed for the server to open the proper socket and for the client to know where to connect to server peer code we just mirror the messages back Note that we pass through the supervisor, peer and new channels this is useful to track messages, so each peer shoul...
(ns kabel.examples.pingpong (:require [kabel.client :as cli] [kabel.http-kit :as http-kit] [kabel.peer :as peer] [superv.async :refer [<?? go-try S go-loop-try <? >? put?]] [clojure.core.async :refer [chan]] [kabel.middleware.transit :refer [transit]] ...
dc251769b3c185f719e1913774b47b914fa43f3794eafafb4608faee08c84e43
michaelklishin/neocons
relationships_test.clj
Copyright ( c ) 2011 - 2018 , , and The ClojureWerkz Team ;; ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreei...
null
https://raw.githubusercontent.com/michaelklishin/neocons/30f30e95686a01f7a34082600bc1221877c2acbd/test/clojurewerkz/neocons/rest/test/relationships_test.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. di...
Copyright ( c ) 2011 - 2018 , , and The ClojureWerkz Team Eclipse Public License 1.0 ( -1.0.php ) (ns clojurewerkz.neocons.rest.test.relationships-test (:require [clojurewerkz.neocons.rest :as neorest] [clojurewerkz.neocons.rest.nodes :as nodes] [clojurewerkz....
b6694ebc32e717fb5f5a0e279764eae85e7714606108812904d31f6c76f18a31
alexpeits/harg
All.hs
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # module Options.Harg.Het.All ( All, ) where import Data.Kind (Constraint, Type) -- | @All c xs@ returns a constraint which is constructed by applying @c@ to all the types in @xs@. type family All (c :: k -> Constraint) (xs :: [k]) :: Constraint wh...
null
https://raw.githubusercontent.com/alexpeits/harg/a5a684ba974a788f97836888e8631199c550a73f/src/Options/Harg/Het/All.hs
haskell
| @All c xs@ returns a constraint which is constructed by | @AllF c xs f@ is similar to 'All', but types in @xs@ have the kind @(Type -> Type) -> Type@ so they require an extra @f :: Type -> Type@ in order to be of fully saturated.
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # module Options.Harg.Het.All ( All, ) where import Data.Kind (Constraint, Type) applying @c@ to all the types in @xs@. type family All (c :: k -> Constraint) (xs :: [k]) :: Constraint where All _ '[] = () All c (x ': xs) = (c x, All c xs) typ...
ebd324cbdd581ab624d96dd2fc45bb09ba960544c06c5aab9109287dfeb40007
clojure/core.match
bench.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/clojure/core.match/1a57329c01507d3eb479a4f5461e012edaa6e4de/src/main/clojure/clojure/core/match/bench.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns ^{:skip-wiki true} clojure.core.match.bench (:use [clojure.core.match :only [match]])) (comment (dotimes [_ 5] (time (dotimes [i 1e6] (let [x (zero? (mod i 2)) y (zero? (mod i 3)) z (zero? (mod i 5))] (mat...
643b7eadc98fb718a1d59678bc13b7502306811ed05a89b6411c3015b6a0b1ea
avsm/eeww
emitaux.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/asmcomp/emitaux.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type error = | Stack_frame_too_large of int exception Error of error let output_channel = ref stdout...
dd20e0a48035ee9ff377905e7138afe9bbbb69ebad6a80038ad538c4ed2e9795
filmor/ierl
ierl_kernelspec.erl
-module(ierl_kernelspec). -export([create/1]). TODO : Allow installing additional files like icons or JS helper scripts -spec create(map()) -> ok. create(Options) -> #{ display_name := DisplayName, backend := BackendModule, backend_name := BackendName, args := BackendArgs, ...
null
https://raw.githubusercontent.com/filmor/ierl/451517219c4a79b7e57d98cfa2244f5ebc08cf4a/apps/ierl/src/ierl_kernelspec.erl
erlang
-module(ierl_kernelspec). -export([create/1]). TODO : Allow installing additional files like icons or JS helper scripts -spec create(map()) -> ok. create(Options) -> #{ display_name := DisplayName, backend := BackendModule, backend_name := BackendName, args := BackendArgs, ...
ac712312d522093dcea54f0b6a1dc5f34fa84546c23cb8a8ac137d022fd3cddb
softwarelanguageslab/maf
R5RS_various_fact-5.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((fact (lambda (n) (<change> () -) (if (= n 0) 1 (* n (fact (- n 1))))))) (fact 5))
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_fact-5.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 (letrec ((fact (lambda (n) (<change> () -) (if (= n 0) 1 (* n (fact (- n 1))))))) (fact 5))
1b7e86473bd9ba943f4685fa68040450ec06f282b84a516937375d7b6e043b0e
TerrorJack/ghc-alter
Buffer.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.IO.Buffer Copyright : ( c ) The University of Glasgow 2008 -- License : see libraries/base/LICENSE...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/GHC/IO/Buffer.hs
haskell
# OPTIONS_GHC -funbox-strict-fields # --------------------------------------------------------------------------- | Module : GHC.IO.Buffer License : see libraries/base/LICENSE Maintainer : Stability : internal Buffers used in the IO system ------------------------------------------------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2008 Portability : non - portable ( GHC Extensions ) module GHC.IO.Buffer ( Buffer(..), BufferState(..), CharBuffer, CharBufElem, newByteBuffer, newCharBuffer, newBuffer, emptyBuff...
22430fe7ec72343699bdd477efbb7dde805d3e886442daf7055ef16859165d57
2600hz/kazoo
kazoo_oauth_client.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_oauth/src/kazoo_oauth_client.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- ============================================================================== API functions =========================================================...
( C ) 2010 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kazoo_oauth_client). -include("kazoo_oauth.hrl"). -export([authenticate/1, authenticate/3]). -spec aut...
6507c0dc173e917a888528fd7258e4de8f4c46665e0d2fbdfc972f632701644b
rametta/retros
FrontController.hs
module Web.FrontController where import IHP.RouterPrelude import IHP.LoginSupport.Middleware import Web.Controller.Prelude import Web.View.Layout (defaultLayout) -- Controller Imports import Web.Controller.TeamMembers import Web.Controller.Teams import Web.Controller.Users import Web.Controller.Comments import Web.Co...
null
https://raw.githubusercontent.com/rametta/retros/624290889df98cd2eb3c37848eeae15281eeda54/Web/FrontController.hs
haskell
Controller Imports Generator Marker
module Web.FrontController where import IHP.RouterPrelude import IHP.LoginSupport.Middleware import Web.Controller.Prelude import Web.View.Layout (defaultLayout) import Web.Controller.TeamMembers import Web.Controller.Teams import Web.Controller.Users import Web.Controller.Comments import Web.Controller.Items import ...
7f0afcf573c302d9e4658f5c2eda3448cbc501a4552498a5340afdd0ed351411
ocsigen/eliomlang
eliom_lwt.mli
* Implementation of { ! Eliom_runtime . Request_data.set_functions } using lwt 's " thread storage " . This module is aimed at people who want to implement an interface between a given webserver and eliom . If you simply want to use eliom , this module is not for you . using lwt's "threa...
null
https://raw.githubusercontent.com/ocsigen/eliomlang/42e55856574e058caca191e50edcb0023900b664/runtime/lwt/eliom_lwt.mli
ocaml
* [handle_request ~debug f] calls [f] with fresh request data. When f is done, it returns both the result and the data. This should be called when starting the handling of a request. All code that could lead to the execution of client fragments should be inside [f].
* Implementation of { ! Eliom_runtime . Request_data.set_functions } using lwt 's " thread storage " . This module is aimed at people who want to implement an interface between a given webserver and eliom . If you simply want to use eliom , this module is not for you . using lwt's "threa...
fd3d08d587bd7131e3cce141da591788d1798d34d37c621b3778bd2898066cd7
xh4/web-toolkit
reload.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; indent - tabs - mode : nil ; coding : utf-8 ; show - trailing - whitespace : t -*- ;;; Copyright ( C ) 2001 , 2003 Copyright ( C ) 2005 " the conditions and ENSURE - SSL - FUNCALL are by . " ;;; ;;; See LICENSE for details. ;;; We do this in an extra file so...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cl%2Bssl-20191130-git/src/reload.lisp
lisp
Syntax : COMMON - LISP ; indent - tabs - mode : nil ; coding : utf-8 ; show - trailing - whitespace : t -*- See LICENSE for details. We do this in an extra file so that it happens - after the asd file has been loaded, so that users can customize *libssl-pathname* between loading the asd and LOAD-OPing ...
Copyright ( C ) 2001 , 2003 Copyright ( C ) 2005 " the conditions and ENSURE - SSL - FUNCALL are by . " - but not every time ffi.lisp is re - loaded as would happen if we put this directly into ffi.lisp #+xcvb (module (:depends-on ("package"))) (in-package :cl+ssl) Windows builds have ...
c909241549e3d9932e5c50e09f2bbce1cc2a0452ce07e00bb6049744e6fb4e29
0xYUANTI/eon
test_list.erl
-module(test_list). -behaviour(eon_type_list). -export([name/0, parameters/0, element_type/2]). name() -> int_list. parameters() -> [min, max]. element_type(_Lst, Params) -> {test_prim, Params}.
null
https://raw.githubusercontent.com/0xYUANTI/eon/528a23513921e2be99486210dda60e8c8e069c2d/test/test_list.erl
erlang
-module(test_list). -behaviour(eon_type_list). -export([name/0, parameters/0, element_type/2]). name() -> int_list. parameters() -> [min, max]. element_type(_Lst, Params) -> {test_prim, Params}.
e8783eaecb4949684b4dbc371b120d30909fc8bfe38b359c874cc60f87e9257b
PLTools/GT
pp_gt.ml
(* TODO: make -pretty option to be a default *) * Generic Transformers PPX syntax extension . * Copyright ( C ) 2016 - 2019 * aka Kakadu * St. Petersburg State University , JetBrains Research * Generic Transformers PPX syntax extension. * Copyright (C) 2016-2019 * Dmitrii Kosarev aka Kakadu *...
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/ppx/pp_gt.ml
ocaml
TODO: make -pretty option to be a default
* Generic Transformers PPX syntax extension . * Copyright ( C ) 2016 - 2019 * aka Kakadu * St. Petersburg State University , JetBrains Research * Generic Transformers PPX syntax extension. * Copyright (C) 2016-2019 * Dmitrii Kosarev aka Kakadu * St.Petersburg State University, JetBrains Resea...
8baf990508417de0e4c9d6248ff874cb9baff7598ccc33d02e2cb9467ec88f72
LdBeth/CLFSWM
wallpaper.lisp
;;; -------------------------------------------------------------------------- ;;; CLFSWM - FullScreen Window Manager ;;; ;;; -------------------------------------------------------------------------- ;;; Documentation: Wallpaper utilities ;;; -------------------------------------------------------------------------- ;...
null
https://raw.githubusercontent.com/LdBeth/CLFSWM/4e936552d1388718d2947a5f6ca3eada19643e75/contrib/wallpaper.lisp
lisp
-------------------------------------------------------------------------- CLFSWM - FullScreen Window Manager -------------------------------------------------------------------------- Documentation: Wallpaper utilities -------------------------------------------------------------------------- This program is ...
( C ) 2015 < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . ( load - contrib " wallpaper.lisp " ) Note : You need the ' convert ' ...
b2ce3294aaa46ec8c7efe67cf36e0b26ff85fbf6f38a5833dea2ebb34c581225
haskell/lsp
DocumentHighlight.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE TemplateHaskell #-} module Language.LSP.Types.DocumentHighlight where import Data.Aeson import Data.Aeson.TH import Language.LSP.Types.Location import Language.LSP.Types.Progress import Language.LSP.Types.TextDocument import Language.LSP.Types.Utils -- -----------...
null
https://raw.githubusercontent.com/haskell/lsp/73df35690afbeca4666620a3350e7ff8b5104de2/lsp-types/src/Language/LSP/Types/DocumentHighlight.hs
haskell
# LANGUAGE TemplateHaskell # ------------------------------------- | Whether document highlight supports dynamic registration. | A textual occurrence. | Read-access of a symbol, like reading a variable. | Write-access of a symbol, like writing to a variable. ------------------------------------- | A docume...
# LANGUAGE DuplicateRecordFields # module Language.LSP.Types.DocumentHighlight where import Data.Aeson import Data.Aeson.TH import Language.LSP.Types.Location import Language.LSP.Types.Progress import Language.LSP.Types.TextDocument import Language.LSP.Types.Utils data DocumentHighlightClientCapabilities = Documen...
41701241ad5ae0f111c587df2ebac16efa5504f33b85e309251e80efdb0d20ac
nextjournal/viewers
command_bar_state.cljs
(ns nextjournal.commands.command-bar-state (:require [applied-science.js-interop :as j] [clojure.set :as set] [clojure.string :as str] [kitchen-async.promise :as p] [nextjournal.commands.core :as commands] [nextjournal.commands.state :as commands.state] ...
null
https://raw.githubusercontent.com/nextjournal/viewers/1a8e3300601780dccb18d5548f7d35b31b7934f9/modules/command-bar/src/nextjournal/commands/command_bar_state.cljs
clojure
util categories / shortlists state access view-state recompute subcommands whenever the last command in the stack has changed, or its query has changed (for commands that search/filter ignore result for stale requests adds context to view-state when opening the command bar, doesn't overwrite context if al...
(ns nextjournal.commands.command-bar-state (:require [applied-science.js-interop :as j] [clojure.set :as set] [clojure.string :as str] [kitchen-async.promise :as p] [nextjournal.commands.core :as commands] [nextjournal.commands.state :as commands.state] ...
56fe0361afbb5cc88d56476159bcb71e0a416c8737e79addf10ad31362730726
metabase/metabase
pulse_card.clj
(ns metabase.models.pulse-card (:require [metabase.models.interface :as mi] [metabase.models.serialization.base :as serdes.base] [metabase.models.serialization.hash :as serdes.hash] [metabase.models.serialization.util :as serdes.util] [metabase.util :as u] [metabase.util.schema :as su] [schema.co...
null
https://raw.githubusercontent.com/metabase/metabase/18d190cf05df4233aa6d14d6580faa68293ba980/src/metabase/models/pulse_card.clj
clojure
----------------------------------------------------- Serialization ------------------------------------------------- Depends on the Pulse, Card and (optional) dashboard card.
(ns metabase.models.pulse-card (:require [metabase.models.interface :as mi] [metabase.models.serialization.base :as serdes.base] [metabase.models.serialization.hash :as serdes.hash] [metabase.models.serialization.util :as serdes.util] [metabase.util :as u] [metabase.util.schema :as su] [schema.co...
d7a57d59623c6048a8342b85fb4b8a272e51de93ecf5356aad1fb55a5ce0be49
ocaml-ppx/ppx_tools_versioned
ast_convenience_411.mli
open Migrate_parsetree.Ast_411 (* This file is part of the ppx_tools package. It is released *) under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi * { 1 Convenience functions to help build and deconstruct AST fragments . } open Asttypes open ...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_tools_versioned/00a0150cdabfa7f0dad2c5e0e6b32230d22295ca/ast_convenience_411.mli
ocaml
This file is part of the ppx_tools package. It is released * Convert Asttypes.constant to Constant.t * Convert Constant.t to Asttypes.constant * Return [()] if the list is empty. Tail rec. * {2 Patterns} * {2 Types}
open Migrate_parsetree.Ast_411 under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi * { 1 Convenience functions to help build and deconstruct AST fragments . } open Asttypes open Ast_helper open Parsetree * { 2 Compatibility modules } module Lab...
50533d19311d9413b934bd951a04d57a0351b01a5972c8e2726cc9249f7cacac
NorfairKing/the-notes
Multiset.hs
module Sets.Multiset where import Notes import Sets.Basics.Terms import Sets.Multiset.Macro import Sets.Multiset.Terms multisetS :: Note multisetS = section "Multisets" $ do multisetDefinition multisetNotation exneeded multisetDifferenceDefinition multise...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Sets/Multiset.hs
haskell
module Sets.Multiset where import Notes import Sets.Basics.Terms import Sets.Multiset.Macro import Sets.Multiset.Terms multisetS :: Note multisetS = section "Multisets" $ do multisetDefinition multisetNotation exneeded multisetDifferenceDefinition multise...
f61a354634c0843b7cdacee8214869c84938e3628c8fcdfef10baeb6e3ada2f8
freedesktop/bustle
Translation.hs
module Bustle.Translation ( initTranslation , __ ) where import Text.I18N.GetText import System.Locale.SetLocale import System.IO.Unsafe import GetText_bustle initTranslation :: IO () initTranslation = do setLocale LC_ALL (Just "") domain <- getMessageCatalogDomain dir <- getMessageCata...
null
https://raw.githubusercontent.com/freedesktop/bustle/e506b5ca71e14af3d2ebd0a63c1b8d3ea0fb1795/src-hgettext/Bustle/Translation.hs
haskell
module Bustle.Translation ( initTranslation , __ ) where import Text.I18N.GetText import System.Locale.SetLocale import System.IO.Unsafe import GetText_bustle initTranslation :: IO () initTranslation = do setLocale LC_ALL (Just "") domain <- getMessageCatalogDomain dir <- getMessageCata...
a37049b62ca72f27d00df2ffa9fb7ea80ccde390cb07a454aa8bac893359e8b6
lpeterse/koka
Unify.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/lpeterse/koka/43feefed258b9a533f07967d3f8867b02384df0e/src/Type/Unify.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- --------------------------------------------------------------------------- Unification and...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Type.Unify ( Unify, UnifyError(..), runUnify , unify , subsume , overl...
7cf4097409893fb345654ec52f080415ac73fcbf5414e62337f89a168ec115af
lokke-org/lokke
promise.scm
Copyright ( C ) 2020 < > SPDX - License - Identifier : LGPL-2.1 - or - later OR EPL-1.0 + (define-module (lokke scm promise) #:use-module ((ice-9 atomic) #:select (atomic-box-compare-and-swap! atomic-box-ref atomic-box-set! ...
null
https://raw.githubusercontent.com/lokke-org/lokke/a6616b3de60b62d787bf9b98206f8ad9eeb10844/mod/lokke/scm/promise.scm
scheme
state is (#f . mutex) until delivery state is (value) after delivery
Copyright ( C ) 2020 < > SPDX - License - Identifier : LGPL-2.1 - or - later OR EPL-1.0 + (define-module (lokke scm promise) #:use-module ((ice-9 atomic) #:select (atomic-box-compare-and-swap! atomic-box-ref atomic-box-set! ...
3cddf1afac455d4c90455d40e272b2392f92a193cb924abff044c36e224b9277
haskell-tools/haskell-tools
SynonymNestedUnitTyCon.hs
# LANGUAGE FlexibleInstances # #-} module SynonymNestedUnitTyCon where import Definitions instance C1 (TS3 a b TS0) where {-* FlexibleInstances, TypeSynonymInstances *-} f1 _ = True instance C1 (TS3 a TS0 c) where {-* FlexibleInstances, TypeSynonymInstances *-} f1 _ = True instan...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/test/ExtensionOrganizerTest/FlexibleInstancesTest/SynonymNestedUnitTyCon.hs
haskell
* FlexibleInstances, TypeSynonymInstances * * FlexibleInstances, TypeSynonymInstances * * FlexibleInstances, TypeSynonymInstances * * FlexibleInstances, TypeSynonymInstances * False positive * FlexibleInstances, TypeSynonymInstances *
# LANGUAGE FlexibleInstances # #-} module SynonymNestedUnitTyCon where import Definitions f1 _ = True f1 _ = True f1 _ = True * FlexibleInstances , FlexibleInstances , TypeSynonymInstances * f1 _ = True * FlexibleInstances , FlexibleInstances , TypeSynonymInstances * f1 _ =...
f43c6fa96d2af3864b3c50f7dbbb81aac92d1dda784a4cca8d13b175d21d0367
BranchTaken/Hemlock
byte.mli
* Byte ( 8 - bit unsigned integer ) . include (module type of U8)
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/61c3d1aa744b8976385aa4574e30b958e95d7f2d/bootstrap/src/basis/byte.mli
ocaml
* Byte ( 8 - bit unsigned integer ) . include (module type of U8)
9190e25afc4513f9196f256bfa3a4380e93f30e1156d32b2c5d71dcbedbb070d
ztellman/virgil
virgil.clj
(ns virgil (:require [clojure.java.io :as io] [clojure.tools.namespace.repl :refer (refresh-all)] [virgil.watch :refer (watch-directory)] [virgil.compile :refer (compile-all-java java-file?)])) (def watches (atom #{})) (defn- consume-queue-and-callback-when-idle [queue idle-time-in-ms f] (loop [call...
null
https://raw.githubusercontent.com/ztellman/virgil/0aaf05a69a3d1639622be48a766eac372231047c/src/virgil.clj
clojure
We need to create a thread binding for *ns* so that refresh-all can use in-ns.
(ns virgil (:require [clojure.java.io :as io] [clojure.tools.namespace.repl :refer (refresh-all)] [virgil.watch :refer (watch-directory)] [virgil.compile :refer (compile-all-java java-file?)])) (def watches (atom #{})) (defn- consume-queue-and-callback-when-idle [queue idle-time-in-ms f] (loop [call...
408f64b1c8fe65f8ff95d7292adf03e18cea47f62cac41d0122c45f1beb50b1c
billstclair/trubanc-lisp
early-types.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; early-types.lisp --- Low-level foreign type operations. ;;; Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2005 - 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated docum...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cffi_0.10.4/src/early-types.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- early-types.lisp --- Low-level foreign type operations. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish,...
Copyright ( C ) 2005 - 2006 , < > Copyright ( C ) 2005 - 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOU...
12ee0aa6f63515a0535c821d226ebe61c4c2b16adef98bdbee5089e40c2623cc
open-telemetry/opentelemetry-erlang-api
ot_tracer_noop.erl
%%%------------------------------------------------------------------------ Copyright 2019 , OpenTelemetry Authors 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 %% %% Unl...
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang-api/41cb700d60a7dcfdb4165aca73634bbe1c07a33f/src/ot_tracer_noop.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 o...
Copyright 2019 , OpenTelemetry Authors Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ot_tracer_noop). -behaviour(ot_tracer). -export([start_span/3, start_span/4, start_inactive_span/3, ...
79209be11e7ba3099df0316ddabe60388cff339e4c606fc59746c0406144809c
input-output-hk/project-icarus-importer
Safe.hs
| Module for safe ( zero - memory ) signing module Pos.Crypto.Signing.Types.Safe ( EncryptedSecretKey (..) , PassPhrase (..) , SafeSigner (..) , passphraseLength , emptyPassphrase , mkEncSecretWithSaltUnsafe , mkEncSecretUnsafe , encToSecret , encToPubli...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/crypto/Pos/Crypto/Signing/Types/Safe.hs
haskell
| Encrypted HD secret key. ^ Secret key itself, encrypted with passphrase. ^ Hash of passphrase used for key creation. it is a security issue to compare secret keys. But it can be derived in tests where it doesn't matter. | Empty passphrase used in development. | Parameters used to evaluate hash of passphrase. ...
| Module for safe ( zero - memory ) signing module Pos.Crypto.Signing.Types.Safe ( EncryptedSecretKey (..) , PassPhrase (..) , SafeSigner (..) , passphraseLength , emptyPassphrase , mkEncSecretWithSaltUnsafe , mkEncSecretUnsafe , encToSecret , encToPubli...
8939797f309a7a832ef13dd101d67943ba14c5ca5c38bebdf77d28ac5d44cc51
shayan-najd/NativeMetaprogramming
wouldrm.hs
module Main (main) where import System.Environment data CleanWhat = CleanFile FilePath | CleanRec FilePath deriving (Read, Show) main :: IO () main = do args <- getArgs ls <- case args of "CLEAN_FILES" : files -> return $ map CleanFile files "CLEAN_REC" ...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/utils/testremove/wouldrm.hs
haskell
module Main (main) where import System.Environment data CleanWhat = CleanFile FilePath | CleanRec FilePath deriving (Read, Show) main :: IO () main = do args <- getArgs ls <- case args of "CLEAN_FILES" : files -> return $ map CleanFile files "CLEAN_REC" ...
d4539407e1058f441f2fd789286eb303afc85174055b4afe61b8abe9dcc94020
dsorokin/aivika
Simulation.hs
# LANGUAGE RecursiveDo , ExistentialQuantification , DeriveDataTypeable , RankNTypes # -- | -- Module : Simulation.Aivika.Internal.Simulation Copyright : Copyright ( c ) 2009 - 2017 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental Tested with : GHC 8.0.1 -- -- This is an inte...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/Simulation/Aivika/Internal/Simulation.hs
haskell
| Module : Simulation.Aivika.Internal.Simulation License : BSD3 Stability : experimental This is an internal implementation module that should never be used directly. The module defines the 'Simulation' monad that represents a computation within the simulation run. * Simulation * Error Handling * ...
# LANGUAGE RecursiveDo , ExistentialQuantification , DeriveDataTypeable , RankNTypes # Copyright : Copyright ( c ) 2009 - 2017 , < > Maintainer : < > Tested with : GHC 8.0.1 module Simulation.Aivika.Internal.Simulation Simulation(..), SimulationLift(..), invokeSimulation, ...
ca4c2eabba67047cc8fa70ec4db66876a57798300b8780da8bcad3154480d139
pascal-knodel/haskell-craft
E'5''6.hs
-- -- -- ---------------- Exercise 5.6 . ---------------- -- -- -- module E'5''6 where type = ( String , Int ) data ShopItem = ShopItem String Int deriving ( Eq , Show )
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%205/E'5''6.hs
haskell
-------------- --------------
Exercise 5.6 . module E'5''6 where type = ( String , Int ) data ShopItem = ShopItem String Int deriving ( Eq , Show )
e062234edd3be216434c38b3cc0563cfb0bdadc571028d613c98413c09498e82
GaloisInc/LIMA
Periodic.hs
-- | -- Module: Periodic -- Description: Example design which shows off periodic Atoms Copyright : ( c ) 2017 -- module Language.LIMA.C.Example.Periodic ( compileExample , example ) where import Language.LIMA import Language.LIMA.C | Invoke the LIMA compiler compileExample :: IO () compileExample = do ...
null
https://raw.githubusercontent.com/GaloisInc/LIMA/8006bb52b2fb5d3264fe55ef8c9b7c89ab7f4630/lima-c/src/Language/LIMA/C/Example/Periodic.hs
haskell
| Module: Periodic Description: Example design which shows off periodic Atoms | An example design that executes multiple tasks with different periodicity. increments every tick | Print to stdout all probe values
Copyright : ( c ) 2017 module Language.LIMA.C.Example.Periodic ( compileExample , example ) where import Language.LIMA import Language.LIMA.C | Invoke the LIMA compiler compileExample :: IO () compileExample = do let cfg = defaults { cCode = prePostCode } CompileResult schedule _ _ _ _ _ <- compile "...
99bab0cad85388990258bb1f1717754216a97c723f295471189cfd83fe42d6c2
McCLIM/McCLIM
output.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) Copyright 1998 - 2000 by < > ( c ) Copyright 2014 by < > ;;; ;;; ------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/904e3aced7b1cdd947a7e427078925de7d44055c/Core/windowing/output.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- medium arg is really a shee...
( c ) Copyright 1998 - 2000 by < > ( c ) Copyright 2014 by < > (in-package #:clim-internals) (defclass standard-sheet-output-mixin () ()) (defclass sheet-mute-output-mixin () ()) (defclass sheet-with-medium-mixin () ((medium :initform nil :reader sheet-medium :writer (setf %s...
1c05438fef11a9e7484c31bd02d28ebaa8535e7d668ea3ba4c55277ac03f226f
danboykis/affable-async
core.clj
(ns affable-async.core (:require [clojure.core.async :as a]) (:import [java.util.concurrent.atomic AtomicInteger])) (defn u-pipeline-async [{:keys [n to af from close?] :or {close? true}}] "Unordered Pipeline for async operations. Takes elements from the 'from' channel and applies 'af' function then puts the...
null
https://raw.githubusercontent.com/danboykis/affable-async/531ffef1e4ac6faf07c66940d6e7b3e1a3cdfba4/src/affable_async/core.clj
clojure
(ns affable-async.core (:require [clojure.core.async :as a]) (:import [java.util.concurrent.atomic AtomicInteger])) (defn u-pipeline-async [{:keys [n to af from close?] :or {close? true}}] "Unordered Pipeline for async operations. Takes elements from the 'from' channel and applies 'af' function then puts the...
8553580770e4d0f5db8c09516c57124fce08886322a7b53389b9160203ac3c6a
elldritch/hipsterfy
Database.hs
module Hipsterfy.Database ( runSelect, runSelectOne, runUpdate, runInsert, runInsertOne, runDelete, QueryParameters (..), runTransaction, ) where import Control.Monad.Trace.Class (childSpanWith) import Data.Profunctor.Product.Default (Default) import Database.PostgreSQL.Simple (Connecti...
null
https://raw.githubusercontent.com/elldritch/hipsterfy/7d455697c1146d89fc6b2f78effe6694efe69120/src/Hipsterfy/Database.hs
haskell
module Hipsterfy.Database ( runSelect, runSelectOne, runUpdate, runInsert, runInsertOne, runDelete, QueryParameters (..), runTransaction, ) where import Control.Monad.Trace.Class (childSpanWith) import Data.Profunctor.Product.Default (Default) import Database.PostgreSQL.Simple (Connecti...
dcd9996d4f7cba6b2638d39885937e50fbe849a3910a38a12aee3dcce216d4a1
huangz1990/SICP-answers
p68-append.scm
(define (append list1 list2) (if (null? list1) list2 (cons (car list1) (append (cdr list1) list2))))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/p68-append.scm
scheme
(define (append list1 list2) (if (null? list1) list2 (cons (car list1) (append (cdr list1) list2))))
f90f72008f864d9335362ecb2b33e9b025cacba03b64ce26dccd334d4d5c5709
russell/cl-git
message.lisp
-*- Mode : Lisp ; Syntax : COMMON - LISP ; Base : 10 -*- ;; cl-git is a Common Lisp interface to git repositories. Copyright ( C ) 2011 - 2022 < > ;; ;; This program is free software: you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free ...
null
https://raw.githubusercontent.com/russell/cl-git/ab58b1dcf34649899085e9df95962ef1c9d902c3/tests/message.lisp
lisp
Syntax : COMMON - LISP ; Base : 10 -*- cl-git is a Common Lisp interface to git repositories. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
Copyright ( C ) 2011 - 2022 < > as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public (in-package #:cl-git-tests) (in-suite :cl-git) (def-test message-trailers () (is (e...
a784db7b9de688a3d83759ff0dc3294372bf040ef2b9ad59a9aed4d5241a897e
YoshikuniJujo/test_haskell
MultisampleState.hs
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.Pipeline.MultisampleState (CreateInfo(..)) where import Gpu.Vulkan.Pipeline.MultisampleState.Middle
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/c2f9062151211ac6cf785a00f282a99ce23c7c42/themes/gui/vulkan/try-my-vulkan-snd/src/Gpu/Vulkan/Pipeline/MultisampleState.hs
haskell
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.Pipeline.MultisampleState (CreateInfo(..)) where import Gpu.Vulkan.Pipeline.MultisampleState.Middle
2a22b4ec1450d353dc49ac8d282c6af57896dfa162929b5b4802b7c573335fe6
DSiSc/why3
pdriver.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/mlw/pdriver.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception val debug : Debug.flag type driver = private { drv_env : Env.env; drv_printer : string op...
9969f39050958c8301409fdb0431f9a035e5b69adbe5e44929066e6c85f807e0
brendanhay/amazonka
OperatingSystem.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/Types/OperatingSystem.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpaces.Types.OperatingSystem Stability : auto-generated | The operating system that the image is running. | The operating system. | Create a value of 'OperatingSystem' with all optional fields omitted. The following record ...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
4a2631df56326afd529932de556c8a897c093ae92e9864b7d14713e6e46db304
Dasudian/DSDIN
dsdc_sync.erl
-module(dsdc_sync). -include("blocks.hrl"). -behaviour(gen_server). -import(dsdu_debug, [pp/1]). -import(dsdc_peers, [ppp/1]). %% API -export([start_link/0]). %% API called from strongly connected component dsdc_peers -export([schedule_ping/1]). -export([start_sync/3, fetch_mempool/1]). %% gen_server callbacks ...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdcore/src/dsdc_sync.erl
erlang
API API called from strongly connected component dsdc_peers gen_server callbacks ============================================================================= API ============================================================================= ===========================================================================...
-module(dsdc_sync). -include("blocks.hrl"). -behaviour(gen_server). -import(dsdu_debug, [pp/1]). -import(dsdc_peers, [ppp/1]). -export([start_link/0]). -export([schedule_ping/1]). -export([start_sync/3, fetch_mempool/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3...
33ea6c14e1473392615b19b1e9068d8b21bf7b0eb92d588c7391c782cf5bc994
zotonic/zotonic
action_wires_mask_progress.erl
@author < > 2015 %% @doc Show progress on a mask element. Copyright 2015 %% 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 applic...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_wires/src/actions/action_wires_mask_progress.erl
erlang
@doc Show progress on a mask element. 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 f...
@author < > 2015 Copyright 2015 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(action_wires_mask_progress). -include_lib("zotonic_core/include/zotonic.hrl"). -export([render_action/4]). render_action...
7712249c03b6aa081bb1706abb47f4f13bd56f459c388154cafb48d1a03fcbcd
robert-strandh/SICL
enable-printing.lisp
(cl:in-package #:sicl-boot-phase-6) (defun define-posix-write (e5) (load-source-file "POSIX/Low/packages.lisp" e5) (load-source-file "POSIX/High/packages.lisp" e5) (let* ((client (env:client e5)) (aref-function (env:fdefinition client e5 'aref)) (array-total-size-function (env:fdefin...
null
https://raw.githubusercontent.com/robert-strandh/SICL/18dc0fb3a61cde092450adf2ea25f7bb2f6ddba7/Code/Boot/Phase-6/enable-printing.lisp
lisp
(cl:in-package #:sicl-boot-phase-6) (defun define-posix-write (e5) (load-source-file "POSIX/Low/packages.lisp" e5) (load-source-file "POSIX/High/packages.lisp" e5) (let* ((client (env:client e5)) (aref-function (env:fdefinition client e5 'aref)) (array-total-size-function (env:fdefin...
ac4625bff219c8ff6953157702ac00788e142b1d7cd9d6d075ab1f85c231e3b6
albertoruiz/easyVision
arrIO.hs
import Vision.GUI import Image.Processing main = run $ observe "img" rgb >>> arrIO (print . size . grayscale)
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/arrIO.hs
haskell
import Vision.GUI import Image.Processing main = run $ observe "img" rgb >>> arrIO (print . size . grayscale)
e99ab45b266b6f0ab1cddfe2aea56ee128a7aa85b27b2a6f063736ae062c798b
ocaml-flambda/ocaml-jst
tsl_ast.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/ocamltest/tsl_ast.mli
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Paris Copyright 2016 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Abstract Syntax Tree for the Tests Specification Language type 'a located = { node : 'a; loc : Location....
5ba4f591e71afab8f0f8645abbc5d16f6780a88033c98532a2dbebdd7bbed984
TheLortex/mirage-monorepo
functions.ml
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) (* Foreign function bindings ...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ocaml-ctypes/tests/test-returning-errno-lwt-preemptive/stubs/functions.ml
ocaml
Foreign function bindings for the errno / Lwt_preemptive tests.
* Copyright ( c ) 2016 . * * This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * Copyright (c) 2016 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open Ctypes module Stubs (F...
2a62d97ebe26010b110282e1b1d5462a768be42f3ffae7e01fb38aad0b655826
van-clj/zetta-parser
combinators_test.clj
(ns zetta.combinators-test (:require [clojure.test :refer :all] [zetta.core :refer :all] [zetta.parser.seq :as p] [zetta.combinators :as c])) (deftest <?>-test-success (let [result (parse-once (c/<?> p/digit "test-failure") "1")] (is (not (failure? result))) (is (= \1 (:result result))))) (def...
null
https://raw.githubusercontent.com/van-clj/zetta-parser/303cee3dab514ba615fd032cb1fff2405a33ce82/test/zetta/combinators_test.clj
clojure
(ns zetta.combinators-test (:require [clojure.test :refer :all] [zetta.core :refer :all] [zetta.parser.seq :as p] [zetta.combinators :as c])) (deftest <?>-test-success (let [result (parse-once (c/<?> p/digit "test-failure") "1")] (is (not (failure? result))) (is (= \1 (:result result))))) (def...
9945295bcadebba4583faa5766d854aaa749c55d7ffffb6adba834da6e10481b
quil-lang/quilc
type-safety.lisp
;;;; type-safety.lisp ;;;; Author : (in-package #:cl-quil.frontend) (define-condition quil-type-error (simple-error) () (:documentation "Representation of an error type-checking Quil.")) (defun quil-type-error (format-control &rest format-args) "Signal a QUIL-TYPE-ERROR with a descriptive error message des...
null
https://raw.githubusercontent.com/quil-lang/quilc/6c9d20892cfc71d8814af0526b78b8215365b512/src/analysis/type-safety.lisp
lisp
type-safety.lisp utilities ;;; helper functions for type-check-instr ;;; quietly convert integer literals to real literals when assigned to real places # Comparison EQ r a b # r := (a == b) GT r a b # r := (a > b) LE r a b # r := (a <= b) <bit> <bit> <bit>...
Author : (in-package #:cl-quil.frontend) (define-condition quil-type-error (simple-error) () (:documentation "Representation of an error type-checking Quil.")) (defun quil-type-error (format-control &rest format-args) "Signal a QUIL-TYPE-ERROR with a descriptive error message described by FORMAT-CONTROL an...
b5dc612fab8587ef31d2f74314822703481ee5c6a1a2b3baf5c720933fdf14cd
static-analysis-engineering/codehawk
cHNumRecordTable.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/f2891d9120d5a776ea9ac1feec7bf98cce335e12/CodeHawk/CH/chutil/cHNumRecordTable.ml
ocaml
* data structure to store records identified by numerical id's chutil index -> (tags,args)
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...