_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
d39fbba4fc2e6627d549e923c958f247d7a4d9f2b65a40eadfc5f0ba3523a2df
seagreen/hjsonschema
Types.hs
module JSONSchema.Types where import Import import JSONSchema.Validator.Types (Validator(..)) newtype Spec schema err = Spec { _unSpec :: [Validator schema schema err] } -- | Return a schema's immediate subschemas. -- The first list is subschemas validating the same level of the document ,...
null
https://raw.githubusercontent.com/seagreen/hjsonschema/fde6e676f79f3f3320a558f20492ad816a2543a7/src/JSONSchema/Types.hs
haskell
| Return a schema's immediate subschemas. | A basic schema type that doesn't impose much structure.
module JSONSchema.Types where import Import import JSONSchema.Validator.Types (Validator(..)) newtype Spec schema err = Spec { _unSpec :: [Validator schema schema err] } The first list is subschemas validating the same level of the document , the second list is subschemas validating lowe...
aab1567a999f84575b802e6d4a868f5666d4b37108483502c571c25467255a66
ocaml-omake/omake
omake_exec.mli
* Utilities for program execution . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2003 , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/exec/omake_exec.mli
ocaml
! * @docoff * * -*- * Local Variables: * Caml-master: "compile" * End: * -*-
* Utilities for program execution . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2003 , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
2f4267645219cdfc237eb30ceef6dfb60c0bd27eae18fb06ddfcd7298b93715f
NorfairKing/autodocodec
Encode.hs
{-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PartialTypeSignatures # # OPTIONS_GHC -fno - warn - partial - type - signatures -fno - warn - orphans # module Autodocodec.Yaml.Encode where import qualified Autodocodec.Aeson.Compat as Compat import Autodocodec.Aeson.Encode ...
null
https://raw.githubusercontent.com/NorfairKing/autodocodec/71c4dcb3c890590cf1a4e42fb9f9f422a7c49ec0/autodocodec-yaml/src/Autodocodec/Yaml/Encode.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | Implement 'Yaml.toYaml' using a type's codec | Implement 'Yaml.toYaml' using a given codec We use type-annotations here for readability of type information that is This may be optimisable? This may be optimisable? Encode a 'Scientific' value 'safely' by refusing...
# LANGUAGE LambdaCase # # LANGUAGE PartialTypeSignatures # # OPTIONS_GHC -fno - warn - partial - type - signatures -fno - warn - orphans # module Autodocodec.Yaml.Encode where import qualified Autodocodec.Aeson.Compat as Compat import Autodocodec.Aeson.Encode import Autodocodec.Class import Autodocodec.Codec import A...
ac202a6d5a6bbdda408253a8d591c2bb1dfdc98d691aec0cbecaad5b9c98ef76
c-cube/ocaml-containers
CCParse.ml
(* This file is free software. See file "license" for more details. *) (** {1 Very Simple Parser Combinators} *) open CCShims_ module Memo_tbl = Hashtbl.Make (struct type t = int * int (* id of parser, position *) let equal ((a, b) : t) (c, d) = a = c && b = d let hash = Hashtbl.hash end) module Memo_state =...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/core/CCParse.ml
ocaml
This file is free software. See file "license" for more details. * {1 Very Simple Parser Combinators} id of parser, position table of closures, used to implement universal type unique ID for each parser state common to all parser instances TODO: use pos_cs.line_offsets actually re-compute line and column ...
open CCShims_ module Memo_tbl = Hashtbl.Make (struct let equal ((a, b) : t) (c, d) = a = c && b = d let hash = Hashtbl.hash end) module Memo_state = struct type t = (unit -> unit) Memo_tbl.t let id_ = ref 0 end type common_state = { str: string; mutable line_offsets: int array option; mutable memo:...
983bd7b2b0c9b73dc6a50a7e20d08da58efe8af4edfd682cc0bf0f9544a8e786
input-output-hk/plutus
AST.hs
-- editorconfig-checker-disable-file -- | This module defines generators for PIR syntax trees for testing purposes. It should only contain those generators that ca n't be reused from PLC ( PIR - exclusive constructs , Term , and Program ) {-# LANGUAGE OverloadedStrings #-} module PlutusIR.Generators.AST ( modul...
null
https://raw.githubusercontent.com/input-output-hk/plutus/bb9b5a18c26476fbf6b2f446ab267706426fec3a/plutus-core/testlib/PlutusIR/Generators/AST.hs
haskell
editorconfig-checker-disable-file | This module defines generators for PIR syntax trees for testing purposes. # LANGUAGE OverloadedStrings #
It should only contain those generators that ca n't be reused from PLC ( PIR - exclusive constructs , Term , and Program ) module PlutusIR.Generators.AST ( module Export , genProgram , genTerm , genBinding , genDatatype , genTyVarDecl , genVarDecl , genRecursivity ) where import...
497c6bb925f91fb32ef14f6e623694bdf6e9cca77ac207768ffc2d8ee6d0f491
r0man/sqlingvo
insert_test.cljc
(ns sqlingvo.insert-test (:require #?(:clj [sqlingvo.test :refer [db sql=]] :cljs [sqlingvo.test :refer [db] :refer-macros [sql=]]) [clojure.test :refer [deftest is]] [sqlingvo.core :as sql])) (deftest test-insert-keyword-db (sql= (sql/insert :postgresql :films [] (...
null
https://raw.githubusercontent.com/r0man/sqlingvo/1f13624ed60ec0866fe51311d92da73638708172/test/sqlingvo/insert_test.cljc
clojure
(ns sqlingvo.insert-test (:require #?(:clj [sqlingvo.test :refer [db sql=]] :cljs [sqlingvo.test :refer [db] :refer-macros [sql=]]) [clojure.test :refer [deftest is]] [sqlingvo.core :as sql])) (deftest test-insert-keyword-db (sql= (sql/insert :postgresql :films [] (...
cea07033a2ef7b942178541e15aa629fb38dc29bd0cfe2158f99266e0da81a36
thephoeron/black-stone
qft.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- ;;;; file: lib/qft.lisp Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > ;;;; See LICENSE for additional information. (in-package :black-stone) EOF
null
https://raw.githubusercontent.com/thephoeron/black-stone/c8f1d76d81de3c9862520c8ddac62e73e831ea55/lib/qft.lisp
lisp
Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*- file: lib/qft.lisp See LICENSE for additional information.
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com > (in-package :black-stone) EOF
b1e166c6a3ef1073020ef4c2909ee05da22a74f96a3cd4318a58999ee5d630be
pokepay/aws-sdk-lisp
request.lisp
(defpackage #:aws-sdk/request (:use #:cl) (:import-from #:aws-sdk/session #:*session*) (:import-from #:quri #:url-encode-params #:make-uri #:render-uri) (:import-from #:assoc-utils #:alistp) (:export #:request #:request...
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/426d9c65f5709aba022cac661cac9754e7d82556/request.lisp
lisp
(defpackage #:aws-sdk/request (:use #:cl) (:import-from #:aws-sdk/session #:*session*) (:import-from #:quri #:url-encode-params #:make-uri #:render-uri) (:import-from #:assoc-utils #:alistp) (:export #:request #:request...
8365a4776e7a3ea5d7e735ebc022735e5e462c9d32b178b73f46168b98ddc8cb
ocaml-multicore/tezos
roll_repr_legacy.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/roll_repr_legacy.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
abfbcf9ff5d6086cd6a74272a378ddf9bbd82d9007aae715d464ef321af4c310
Netflix/PigPen
runtime.clj
;; ;; Copyright 2013 - 2015 Netflix , Inc. ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to ...
null
https://raw.githubusercontent.com/Netflix/PigPen/18d461d9b2ee6c1bb7eee7324889d32757fc7513/pigpen-pig/src/main/clojure/pigpen/pig/runtime.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the speci...
Copyright 2013 - 2015 Netflix , Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns pigpen.pig.runtime "Contains functions that are used when interacting with Pig. This includes mapping of data from Pig to Clojure and back, serializing and deserializing data, and executing user cod...
7c01f3c21b1c184fd2863e8300db4c07b236c58923325f7a3db2726d9f97e367
jarohen/yoyo
file_watcher.clj
(ns yoyo.cljs.file-watcher (:require [clojure.core.async :as a :refer [go]] [clojure.java.io :as io]) (:import [com.sun.nio.file SensitivityWatchEventModifier] [java.io File] [java.nio.file Path Paths Files StandardWatchEventKinds WatchKey ClosedWatchServiceException Wa...
null
https://raw.githubusercontent.com/jarohen/yoyo/b579d21becd06b5330dee9f5963708db03ce1e25/modules/cljs/src/yoyo/cljs/file_watcher.clj
clojure
we've been told to stop.
(ns yoyo.cljs.file-watcher (:require [clojure.core.async :as a :refer [go]] [clojure.java.io :as io]) (:import [com.sun.nio.file SensitivityWatchEventModifier] [java.io File] [java.nio.file Path Paths Files StandardWatchEventKinds WatchKey ClosedWatchServiceException Wa...
b769dc25a15a0049ce61f7e7c9c8da666f1c6151e7deebd6593262ae07121bfd
CodyReichert/qi
compress.lisp
;;; Copyright ( c ) 2007 , All Rights Reserved ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list of condit...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/salza2/compress.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form...
Copyright ( c ) 2007 , All Rights Reserved DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package #:salza2) (defun compress (input chains start end literal-fun length-fun distance-fun) (declare (type...
4afb2adc5c08dd3fd4c101e74383bdffd0ac977e98cf0dc9d6da7d2b64dad4cd
xkcd/kurita
Main.hs
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Main where import Control.Concurrent import Control.Time import Crypto.MAC.SipHash import Data.Bits....
null
https://raw.githubusercontent.com/xkcd/kurita/090655eaa44f21046e868d303cb35493dff257d7/app/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Main where import Control.Concurrent import Control.Time import Crypto.MAC.SipHash import Data.Bits.Extras (w32) import Data....
e02b7c018e9fc7eebc66ee101cf940d929b7d05e9588a847906547336e450e34
mirage/cactus
ext_intf.ml
module type S = sig type key type value type t type cache val empty_cache : unit -> cache (** [empty_cache ()] returns a fresh, empty cache. *) val create : ?cache:cache -> ?record:string -> string -> t (** [create ?cache ?record root] creates a btree storage in directory [root]. If no [cache] is ...
null
https://raw.githubusercontent.com/mirage/cactus/85378dd8e2d217cc8338742ed241f4faf3b72e2c/src/ext_intf.ml
ocaml
* [empty_cache ()] returns a fresh, empty cache. * [create ?cache ?record root] creates a btree storage in directory [root]. If no [cache] is specified each call to create opens a fresh instance. If [record] is specified then a trace is recorded in file [record]. * [replay ?prog path t] replays the operat...
module type S = sig type key type value type t type cache val empty_cache : unit -> cache val create : ?cache:cache -> ?record:string -> string -> t val replay : string -> ?prog:[ `None | `Single | `Multiple ] -> t -> unit val init : root:string -> int -> read:(int -> string) -> t val reconstr...
fb818a6d418047bfc30b0a37e602a54c2b60f0bde2fe4efc4bd74d48c1752816
AshleyYakeley/Truth
TypeDecl.hs
module Pinafore.Language.Grammar.Interpret.TypeDecl ( interpretSequentialTypeDeclaration , interpretRecursiveTypeDeclarations ) where import Data.Graph import Pinafore.Language.Error import Pinafore.Language.Grammar.Interpret.TypeDecl.Data import Pinafore.Language.Grammar.Interpret.TypeDecl.DynamicEntity i...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/81bd7564de6a3f647c631a248802028bd472a28c/Pinafore/pinafore-language/lib/Pinafore/Language/Grammar/Interpret/TypeDecl.hs
haskell
module Pinafore.Language.Grammar.Interpret.TypeDecl ( interpretSequentialTypeDeclaration , interpretRecursiveTypeDeclarations ) where import Data.Graph import Pinafore.Language.Error import Pinafore.Language.Grammar.Interpret.TypeDecl.Data import Pinafore.Language.Grammar.Interpret.TypeDecl.DynamicEntity i...
067a729ae5b4b556c766b0ed111972951fc7b4b55c1d672a9c366431cfbd2c84
typedclojure/typedclojure
record_no_nil.clj
(ns clojure.core.typed.test.fail.record-no-nil (:require [typed.clojure :as t])) (t/ann-record Foo [a :- t/Num]) (defrecord Foo [a]) (map->Foo {})
null
https://raw.githubusercontent.com/typedclojure/typedclojure/5fd7cdf7941c6e7d1dd5df88bf44474fa35e1fca/typed/clj.checker/test/clojure/core/typed/test/fail/record_no_nil.clj
clojure
(ns clojure.core.typed.test.fail.record-no-nil (:require [typed.clojure :as t])) (t/ann-record Foo [a :- t/Num]) (defrecord Foo [a]) (map->Foo {})
879651e6203a879975e95ce6e01f80194cf453dd5e5bde11d2db9218d4d6e78d
fetburner/Coq2SML
sequent.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/firstorder/sequent.mli
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 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Util open Form...
925d7e945081e31844837de0ebf580d4fd0213c278821024e54c33fd0a05c9eb
alanzplus/EOPL
2.3-test.rkt
#lang eopl (require rackunit "2.3.rkt") (require rackunit/text-ui) (define diff-tree-test (test-suite "Tests for diff tree" (check-equal? (diff (one) (diff (one) (one))) (one)) (check-equal? (diff (diff (one) (one)) (one)) -1))) (run-tests diff-tree-test)
null
https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/ch2/2.3-test.rkt
racket
#lang eopl (require rackunit "2.3.rkt") (require rackunit/text-ui) (define diff-tree-test (test-suite "Tests for diff tree" (check-equal? (diff (one) (diff (one) (one))) (one)) (check-equal? (diff (diff (one) (one)) (one)) -1))) (run-tests diff-tree-test)
709c1b032829350e04367508517a7f72a2305630a5726e06bc3b46d41d10aed6
iokasimov/pandora
Adaptable.hs
# LANGUAGE UndecidableInstances # module Pandora.Paradigm.Controlflow.Effect.Adaptable where import Pandora.Core.Functor (type (>), type (>>>), type (<)) import Pandora.Pattern.Semigroupoid (Semigroupoid ((.))) import Pandora.Pattern.Category (Category (identity)) import Pandora.Pattern.Functor.Covariant (Covariant) i...
null
https://raw.githubusercontent.com/iokasimov/pandora/68662a508749f1cf02d0178679435a24f07dcaf2/Pandora/Paradigm/Controlflow/Effect/Adaptable.hs
haskell
>)) # OVERLAPS #
# LANGUAGE UndecidableInstances # module Pandora.Paradigm.Controlflow.Effect.Adaptable where import Pandora.Core.Functor (type (>), type (>>>), type (<)) import Pandora.Pattern.Semigroupoid (Semigroupoid ((.))) import Pandora.Pattern.Category (Category (identity)) import Pandora.Pattern.Functor.Covariant (Covariant) i...
19770124938f896271ec951f890bca79b7cdab493e5875cd60d72b00b7adc398
OCamlPro/ocp-build
buildOCPPrinter.mli
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/buildOCPPrinter.mli
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file val string_of_project : BuildOCPTypes.project -> string val string_of_package : (OcpCompat.Buffer.t -> string -> 'a -> unit) -> 'a BuildOCPTypes.package -> string va...
e9e43106c40d9d3a7e435d980b6eb66d421d6be7e1360471d7bbb438b4e6372a
lambe-lang/compiler
ast.mli
module Common = Common module Kind = Kind module Type = Type module Expr = Expr
null
https://raw.githubusercontent.com/lambe-lang/compiler/79d7937c06ca30e231855ec4ce99012ca0395cd5/lib/ast/ast.mli
ocaml
module Common = Common module Kind = Kind module Type = Type module Expr = Expr
7e20f6c6c198037da83fd16461c85fd000e32bd9f15e7cdf241f59ed637dfcb5
batterseapower/supercompilation-by-evaluation
PreludeTest.hs
#include "Prelude.hs" root = () tests = [ (0 == 1, False), (1 == 1, True), (0 /= 1, True), (1 /= 1, False), (1 + 2, 3), (3 - 2, 1), (3 * 2, 6), (3 `div` 2, 1), (4 `div` 2, 2), (1 <= 2, True), (2 <= 2, True), (1 < 2, True), (2 < 2, False), (2 >= 2, True), (1 >= 2, False), (3 > 2, True), (...
null
https://raw.githubusercontent.com/batterseapower/supercompilation-by-evaluation/daeb3e12ca8319a5144dd48a763cf7e7825a1999/examples/PreludeTest.hs
haskell
#include "Prelude.hs" root = () tests = [ (0 == 1, False), (1 == 1, True), (0 /= 1, True), (1 /= 1, False), (1 + 2, 3), (3 - 2, 1), (3 * 2, 6), (3 `div` 2, 1), (4 `div` 2, 2), (1 <= 2, True), (2 <= 2, True), (1 < 2, True), (2 < 2, False), (2 >= 2, True), (1 >= 2, False), (3 > 2, True), (...
474838035f0d87e32fe3f08b10eedf55961fc1ee9beab067df777ebaf11fe951
falsetru/htdp
28.2.3.scm
(define-struct posn (x y)) (define p make-posn) (define (threatened? p1 p2) (or (= (posn-x p1) (posn-x p2)) (= (posn-y p1) (posn-y p2)) (= (- (posn-x p1) (posn-y p1)) (- (posn-x p2) (posn-y p2))) (= (+ (posn-x p1) (posn-y p1)) (+ (posn-x p2) (posn-y p2))))) (require rackunit) (re...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/28/28.2.3.scm
scheme
(define-struct posn (x y)) (define p make-posn) (define (threatened? p1 p2) (or (= (posn-x p1) (posn-x p2)) (= (posn-y p1) (posn-y p2)) (= (- (posn-x p1) (posn-y p1)) (- (posn-x p2) (posn-y p2))) (= (+ (posn-x p1) (posn-y p1)) (+ (posn-x p2) (posn-y p2))))) (require rackunit) (re...
ee6e95b391e682f6321e12b6a8886df83b8ae62c5f030ff0ce4b03c129d85279
hackwaly/ocamlearlybird
value_object.ml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
null
https://raw.githubusercontent.com/hackwaly/ocamlearlybird/165174e3cc749ba416ec7ebfb4b521e5fac744db/src/debugger/inspect/value_object.ml
ocaml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
9acd85b3ba150e81fc8538a12590cd3bc68e2da8df3fc976a9fce969598a8a22
janestreet/bin_prot
blob.ml
open Common module T = struct type 'a t = 'a [@@deriving compare, sexp_of] let bin_shape_t t = Shape.(basetype (Uuid.of_string "85a2557e-490a-11e6-98ac-4b8953d525fe") [ t ]) ;; let bin_size_t bin_size_a a = Utils.size_header_length + bin_size_a a let bin_write_t bin_write_a buf ~pos a = let start_...
null
https://raw.githubusercontent.com/janestreet/bin_prot/754fd507eb94fbf88f633aed7cec672e7259d180/src/blob.ml
ocaml
Strings are a primitive type that polymorphic compare handles well.
open Common module T = struct type 'a t = 'a [@@deriving compare, sexp_of] let bin_shape_t t = Shape.(basetype (Uuid.of_string "85a2557e-490a-11e6-98ac-4b8953d525fe") [ t ]) ;; let bin_size_t bin_size_a a = Utils.size_header_length + bin_size_a a let bin_write_t bin_write_a buf ~pos a = let start_...
a7b5121a2c04c49cc0b8cbf39e4ece0376cb6b71cb8f065116c12cddac35c76b
noinia/hgeometry
FloydWarshall.hs
-------------------------------------------------------------------------------- -- | Module : Data . Geometry . Polygon . Core Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- -- Implementation of Floyd-Warshall shortest path algorithm. -- -- See Wikipedia article for...
null
https://raw.githubusercontent.com/noinia/hgeometry/a6abecb1ce4a7fd96b25cc1a5c65cd4257ecde7a/hgeometry-combinatorial/src/Algorithms/FloydWarshall.hs
haskell
------------------------------------------------------------------------------ | License : see the LICENSE file Implementation of Floyd-Warshall shortest path algorithm. See Wikipedia article for details: ------------------------------------------------------------------------------ | Compute the index of...
Module : Data . Geometry . Polygon . Core Copyright : ( C ) Maintainer : module Algorithms.FloydWarshall ( mkIndex , mkGraph , floydWarshall ) where import Control.Monad (forM_, when) import Control.Monad.ST (ST) import Data.Vect...
18f797da950b3954fe3f964f8cb79900e5049a61baab74828f2067e444a73d65
racket/gui
dynamic.rkt
#lang racket/base ;; This module is for use by racket/gui/dynamic. It is required by mred / mred so that it gets carried ;; along when mred/mred is attached to a new namespace. (provide kernel-initialized) (define kernel-initialized 'done)
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/dynamic.rkt
racket
This module is for use by racket/gui/dynamic. along when mred/mred is attached to a new namespace.
#lang racket/base It is required by mred / mred so that it gets carried (provide kernel-initialized) (define kernel-initialized 'done)
8d15670b0809ee9638d1d9beee9d5e080175e449b13be492fa1b29e2983bc617
tari3x/csec-modex
types.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/tari3x/csec-modex/5ab2aa18ef308b4d18ac479e5ab14476328a6a50/deps/cryptoverif1.12/src/types.ml
ocaml
Types module declares types of the abstract syntax tree and of sets of messages. There are recursive dependencies between these types, that is why they are included in the same module integer parameter probability channel types terms set of binders represented by a hash table Definition graph ...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
1f562d95acc49be980d6f696746c5a7d1b355bd42b160a399c7bd25d69cbe530
dbuenzli/mtime
min_clock.ml
Compile with : ocamlfind ocamlopt \ -package mtime.clock.os -linkpkg -o min_clock.native min_clock.ml ocamlfind ocamlc \ -package mtime.clock.os -linkpkg -o min_clock.byte min_clock.ml js_of_ocaml \ $ ( ocamlfind query -format " % + ( ) " -r mtime.clock.os ) \ min_...
null
https://raw.githubusercontent.com/dbuenzli/mtime/81239d1272f09c79a31b420b5b11114402d8b69c/test/min_clock.ml
ocaml
Compile with : ocamlfind ocamlopt \ -package mtime.clock.os -linkpkg -o min_clock.native min_clock.ml ocamlfind ocamlc \ -package mtime.clock.os -linkpkg -o min_clock.byte min_clock.ml js_of_ocaml \ $ ( ocamlfind query -format " % + ( ) " -r mtime.clock.os ) \ min_...
bfd1a01b1d7c5e54eeab2d92c338e03a69c7c088a265bdb430c6521fe27f5298
hunt-framework/hunt
Smart.hs
# LANGUAGE CPP # -- ---------------------------------------------------------------------------- | ' ByteString ' compression that is only used if the result is sufficiently large ( 80 characters ) . This is based on observation for the BZIP compression where small compressed ' ByteString 's tend to...
null
https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-compression/src/Codec/Compression/Snappy/Lazy/Smart.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- TODO: This is based on bzip - test if this is also the case with snappy. ------------------------------------------------------------ select the default compres...
# LANGUAGE CPP # | ' ByteString ' compression that is only used if the result is sufficiently large ( 80 characters ) . This is based on observation for the BZIP compression where small compressed ' ByteString 's tend to be bigger than the source ' ByteString ' . This may not apply to the Snappy...
8c3bc632b8d436b4ca5e47e796aede8f54b401cdd9e1bca90e9dd95f9ee0c534
hamler-lang/hamler
Mnesia.erl
%%--------------------------------------------------------------------------- %% | Module : Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. %% License : BSD-style (see the LICENSE file) %% Maintainer : , , %% Stability : experimental %% Portability : por...
null
https://raw.githubusercontent.com/hamler-lang/hamler/3ba89dde3067076e112c60351b019eeed6c97dd7/lib/Database/Mnesia.erl
erlang
--------------------------------------------------------------------------- | License : BSD-style (see the LICENSE file) Stability : experimental Portability : portable --------------------------------------------------------------------------- -----------------------------------------------------------...
Module : Copyright : ( c ) 2020 - 2021 EMQ Technologies Co. , Ltd. Maintainer : , , The Database FFI module . -module('Mnesia'). -include("../Foreign.hrl"). -export([ addTableCopy/3 , addTableIndex/2 , clearTable/1 , createSchema/1 , cr...
ec0c34bc05cff5788085c456377e9c616cff6c23909408804635369cb64b4a6a
dalaing/little-languages
Infer.hs
module Test.Type.Infer ( inferTests ) where import Test.Tasty import Test.Tasty.QuickCheck import Control.Monad.Except (runExcept) import Term.Gen import Type.Infer inferTests :: TestTree inferTests = testGroup "infer" [ testProperty "wellTypedInfer" propWellTypedInfer , testProperty "illTypedInfer" pro...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/stlc-b/tests/Test/Type/Infer.hs
haskell
module Test.Type.Infer ( inferTests ) where import Test.Tasty import Test.Tasty.QuickCheck import Control.Monad.Except (runExcept) import Term.Gen import Type.Infer inferTests :: TestTree inferTests = testGroup "infer" [ testProperty "wellTypedInfer" propWellTypedInfer , testProperty "illTypedInfer" pro...
2edb4a1fbf0cbe4e41f7d36fe3165001125be6c791620ebe5254361ee8a7ea92
mfikes/fifth-postulate
ns452.cljs
(ns fifth-postulate.ns452) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns452.cljs
clojure
(ns fifth-postulate.ns452) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
2744ee8cd05d6f7b4230f969cf60405517ab58baad44071c200cf35fe1ba9b71
RefactoringTools/HaRe
StrategoType.hs
module StrategoType where import Parentheses data Type = TVar (P String) | TConst (P String) | TTuple (P [Type]) | TInst (String,[Type]) | TArrow (Type, Type) | TApp (Type, Type) deriving (Show{-,Read-}) data DataDecl = DCons (String,[(Strictness,Type)]) deriving (Show{-,Read-}) data Strictness = L...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/hs2stratego/AST/StrategoType.hs
haskell
,Read ,Read ,Read
module StrategoType where import Parentheses data Type = TVar (P String) | TConst (P String) | TTuple (P [Type]) | TInst (String,[Type]) | TArrow (Type, Type) | TApp (Type, Type) data DataDecl = DCons (String,[(Strictness,Type)]) data Strictness = Lazy | Strict tVar = TVar . P tConst = TConst . P tTup...
57d6bb61bd4954baea08bddaa6644669b2e71def8cd0f5430fd95dbb100053d8
threatgrid/ctia
collection_test.clj
(ns ctia.lib.collection-test (:require [ctia.lib.collection :as sut] [clojure.test :refer [deftest is]])) (deftest add-colls-test (let [input [#{:a :b} [:c :d] nil [:e]]] (is (= #{:a :b :c :d :e} (apply sut/add-colls input))))) (deftest remove-colls-test (let [input [[:a :b :c :d :e] ...
null
https://raw.githubusercontent.com/threatgrid/ctia/e92263ff7a021335c6a4990602f6b12159aa566e/test/ctia/lib/collection_test.clj
clojure
(ns ctia.lib.collection-test (:require [ctia.lib.collection :as sut] [clojure.test :refer [deftest is]])) (deftest add-colls-test (let [input [#{:a :b} [:c :d] nil [:e]]] (is (= #{:a :b :c :d :e} (apply sut/add-colls input))))) (deftest remove-colls-test (let [input [[:a :b :c :d :e] ...
0e7ab80c581b0cb69476f16901c838596ad10acdc3100eb0295da3ccdc0eca2f
shayne-fletcher/zen
btree.mli
type 'a t val nil : 'a t val make_tree : 'a t * 'a * 'a t -> 'a t module type Cursor_sig = sig type 'a cursor exception Top exception Bottom val of_tree : 'a t -> 'a cursor val to_tree : 'a cursor -> 'a t val replace : 'a cursor -> 'a t -> 'a cursor val delete : 'a cursor -> 'a cursor val move_up...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/btree_zipper/btree.mli
ocaml
type 'a t val nil : 'a t val make_tree : 'a t * 'a * 'a t -> 'a t module type Cursor_sig = sig type 'a cursor exception Top exception Bottom val of_tree : 'a t -> 'a cursor val to_tree : 'a cursor -> 'a t val replace : 'a cursor -> 'a t -> 'a cursor val delete : 'a cursor -> 'a cursor val move_up...
e953408f8c8f1a0706154c6d1c785d226b2923d334da3357b431c2dcb47f53be
tcsprojects/ocaml-sat-solvers
internalsatwrapper.ml
open Satwrapper;; exception Unsat;; let show_clause cl = " { " ^ String.concat " , " ( List.map string_of_int cl ) ^ " } " let show_clauses cls = " { " ^ String.concat " , " ( List.map show_clause cls ) ^ " } " let show_clause cl = "{" ^ String.concat "," (List.map string_of_int cl) ^ "}" let show_clauses cls ...
null
https://raw.githubusercontent.com/tcsprojects/ocaml-sat-solvers/2c36605fb3e38a1bee41e079031ab5b173794910/src/internalsat/internalsatwrapper.ml
ocaml
let time_solve = Timing.time timetable "SAT solving" in collect all literals forming unit clauses unit propagation print_string ("Calling DPLL on clauses " ^ show_clauses !auxcls ^ "\n"); flush stdout; print_string "Unit propagation ... \n"; flush stdout; print_string ("Unit...
open Satwrapper;; exception Unsat;; let show_clause cl = " { " ^ String.concat " , " ( List.map string_of_int cl ) ^ " } " let show_clauses cls = " { " ^ String.concat " , " ( List.map show_clause cls ) ^ " } " let show_clause cl = "{" ^ String.concat "," (List.map string_of_int cl) ^ "}" let show_clauses cls ...
b07217f621ff5096d03d0d7f4d47fdbadf580f0c24e0d60460bf453a4cfeed65
domsj/orocksdb
rocks_common.ml
open Ctypes open Foreign module Views = struct open Unsigned let bool_to_int = view ~read:(fun i -> i <> 0) ~write:(function true -> 1 | false -> 0) int let bool_to_uchar = view ~read:(fun u -> u <> UChar.zero) ~write:(function true -> UChar.one | false -> UChar.zero) ...
null
https://raw.githubusercontent.com/domsj/orocksdb/36bd561f5cd75299b2bb5f8e707427626d4c9025/rocks_common.ml
ocaml
open Ctypes open Foreign module Views = struct open Unsigned let bool_to_int = view ~read:(fun i -> i <> 0) ~write:(function true -> 1 | false -> 0) int let bool_to_uchar = view ~read:(fun u -> u <> UChar.zero) ~write:(function true -> UChar.one | false -> UChar.zero) ...
fecc2275f8f059def3d6ba393acc852b6d25ec32e73ad3ad1fc45fb42cc9bb91
GaloisInc/semmc
Load.hs
# LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # {-# LANGUAGE GADTs #-} -- | Utilities for loading formulas from disk module SemMC.Formula.Load ( formulaEnv, loadFormulas, loadFormulasFromFile...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc/src/SemMC/Formula/Load.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE GADTs # | Utilities for loading formulas from disk | Load formulas when formula contents are already held in memory. This will throw an exception if any of the formula strings is malformed | Load formulas from disk Only formulas for the provided values with shape parameters wil...
# LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module SemMC.Formula.Load ( formulaEnv, loadFormulas, loadFormulasFromFiles, loadLibrary, loadLibraryFromFiles, listFunctionFiles, FormulaParseError(..), ) where...
090f10449ed85d8496e6e71b8a28df2ed98d2de0598888e9b92a8ca10c7330c4
digitallyinduced/ihp-forum
Routes.hs
module Admin.Routes where import IHP.RouterPrelude import Generated.Types import Admin.Types -- Generator Marker instance AutoRoute SessionsController instance AutoRoute UserBadgesController instance AutoRoute AdminsController
null
https://raw.githubusercontent.com/digitallyinduced/ihp-forum/ac36ad4ab5dfe7b3aa85ea92d642aec12e4fa6ad/Admin/Routes.hs
haskell
Generator Marker
module Admin.Routes where import IHP.RouterPrelude import Generated.Types import Admin.Types instance AutoRoute SessionsController instance AutoRoute UserBadgesController instance AutoRoute AdminsController
ad1ce9c9af2e89fd6c1b42e60959a24e72852b50a9864fca669a6dfc9eb34372
bgamari/b-tree
Types.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # # LANGUAGE StandaloneDeriving # # LANGUAGE RecordWildCards # module BTree.Types where import Control.Applicative import Data.Maybe (fromMaybe) import GHC.Generics import C...
null
https://raw.githubusercontent.com/bgamari/b-tree/dc4e7196895fa144501b14ad5fa0eb84f8a5c969/src/BTree/Types.hs
haskell
| An offset within the stream | The number of entries in a B-tree | The maximum number of children of a B-tree inner node # INLINE get # | A tree leaf (e.g. key/value pair) | This only compares on the keys | This only compares on the keys # INLINE get # | @'BTree' k f e@ is a B* tree of key type @k@ with element...
# LANGUAGE DeriveGeneric # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # # LANGUAGE StandaloneDeriving # # LANGUAGE RecordWildCards # module BTree.Types where import Control.Applicative import Data.Maybe (fromMaybe) import GHC.Generics import C...
32005368a7446a6c5e4a9eb5deedf3633547c11383231c8d73db44d525d7e956
lwhjp/ecmascript
array.rkt
#lang racket/base (require racket/class racket/lazy-require racket/string "../private/array.rkt" "../private/environment.rkt" "../private/function.rkt" "../private/object.rkt" "../private/primitive.rkt" "../private/this.rkt" (only-in "obj...
null
https://raw.githubusercontent.com/lwhjp/ecmascript/69fcfa42856ea799ff9d9d63a60eaf1b1783fe50/lib/array.rkt
racket
TODO: concat TODO: reverse TODO: sort TODO: splice TODO: indexOf TODO: lastIndexOf TODO: every TODO: some TODO: forEach TODO: map TODO: filter TODO: reduce
#lang racket/base (require racket/class racket/lazy-require racket/string "../private/array.rkt" "../private/environment.rkt" "../private/function.rkt" "../private/object.rkt" "../private/primitive.rkt" "../private/this.rkt" (only-in "obj...
dd6c3f78bbdbe9f9513236b744dc123450a2861a848aebe502494a9f77a5f952
TrustInSoft/tis-kernel
property_navigator.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/gui/property_navigator.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
59119dff8a6b28b20354cdf36bf18d21575659b974fc66aaa7b84d4bed3800f3
avsm/eeww
ocamloptp.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/23ca8b36127b337512e13c6fb8e86b3a7254d4f9/boot/ocaml/tools/ocamloptp.mli
ocaml
************************************************************************ OCaml ...
, Tarides , Paris Copyright 2022 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the
d4f4424f8aeaa873af817e441a7a9be1acebe10578df79d3608c4b24e573b454
jeromesimeon/Galax
glx_jabber.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/extensions/jabber/glx_jabber.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : glx_jabber.mli , v 1.2 2007/02/01 22:08:46 simeon Exp $ val get_presence_information : string -> string -> int -> bool -> string
321c5ad4073d3b7f0880fd5958dc03e228baefa6ddfd0f76cfbedd45c37695c7
vincenthz/hs-hourglass
Tests.hs
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # module Main where import Control.Applicative import Test.Tasty import Test.Tasty.QuickCheck import Test.Tasty.HUnit import Data.Ratio import Data.Word import Data.Int import Data.Hourglass import Data.Hourg...
null
https://raw.githubusercontent.com/vincenthz/hs-hourglass/36bd2e6d5d0eb316532f13285d1c533d6da297ef/tests/Tests.hs
haskell
# LANGUAGE BangPatterns # specifically dates with a day field outside of the range of dates in the month. This function validates a @Date@. windows native functions to convert time cannot handle time before year 1601 ~ year 1601 ~ year 0 in a future far far away Make sure our Arbitrary instance only generates va...
# LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # module Main where import Control.Applicative import Test.Tasty import Test.Tasty.QuickCheck import Test.Tasty.HUnit import Data.Ratio import Data.Word import Data.Int import Data.Hourglass import Data.Hourglass.Epoch import Foreign.Sto...
4cf776389d679bb33633df5f68da947840777bf1601fe019380fe806a843c00b
racket/typed-racket
prop-rep.rkt
#lang racket/base (require "../utils/utils.rkt" (contract-req) "fme-utils.rkt" "rep-utils.rkt" "free-variance.rkt" "core-rep.rkt" "object-rep.rkt" racket/match racket/lazy-require (only-in racket/unsafe/ops unsafe-fx<=)) (lazy-require [...
null
https://raw.githubusercontent.com/racket/typed-racket/755a71add82899d70739834f8b4b98512e89b2c6/typed-racket-lib/typed-racket/rep/prop-rep.rkt
racket
Abbreviation for props `i` can be an integer or name-ref/c for backwards compatibility FIXME: Make all callers pass in an object and remove backwards compatibility Abbreviation for not props `i` can be an integer or name-ref/c for backwards compatibility FIXME: Make all callers pass in an object and remove backwa...
#lang racket/base (require "../utils/utils.rkt" (contract-req) "fme-utils.rkt" "rep-utils.rkt" "free-variance.rkt" "core-rep.rkt" "object-rep.rkt" racket/match racket/lazy-require (only-in racket/unsafe/ops unsafe-fx<=)) (lazy-require [...
c09b75ad001b34d66f2bb409505902253c25d05924283f5374a110d927dacdb2
gga/json-path
regression_test.clj
(ns json-path.test.regression-test (:use [json-path]) (:require [yaml.core :as yaml] [clojure.data.json :as json] [clojure [test :refer :all]])) (defn queries_from_suite [suite-yaml] (:queries (yaml/from-file suite-yaml))) (defn- query-implementation-for [{:keys [selector do...
null
https://raw.githubusercontent.com/gga/json-path/bfb1e78433b0b56c175b7334c489fe10b2b8fc92/test/json_path/test/regression_test.clj
clojure
This section is for warning us if we are moving away from previously recorded results which however are not backed by a consensus based on -path-comparison
(ns json-path.test.regression-test (:use [json-path]) (:require [yaml.core :as yaml] [clojure.data.json :as json] [clojure [test :refer :all]])) (defn queries_from_suite [suite-yaml] (:queries (yaml/from-file suite-yaml))) (defn- query-implementation-for [{:keys [selector do...
03617f45ed4a654c52d1d82a8d834ac442db113fee541b9578f44bf8d8a363c4
argp/bap
piqi_cc.ml
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/piqi-tools/piqi_cc.ml
ocaml
compiler compiler: convert an (extended) self-spec into one of portable * formats command-line arguments find the "piqi" typedef from the module we've just loaded we need it for converting to JSON
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at ...
8c39479be8fc8ccefb6ba9d43822fd1898c9bdb1ecfdfb7624f5157de528fdd2
ryanpbrewster/haskell
nqueens.hs
-- nqueens.hs - A generalization of the 8 - queens puzzle - - A very useful exploration of what Monads can do to clean up code . - A generalization of the 8-queens puzzle - - A very useful exploration of what Monads can do to clean up code. -} import Control.Monad main = print $ head (nQueens' 20) nQ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/hello-world/nqueens.hs
haskell
nqueens.hs
- A generalization of the 8 - queens puzzle - - A very useful exploration of what Monads can do to clean up code . - A generalization of the 8-queens puzzle - - A very useful exploration of what Monads can do to clean up code. -} import Control.Monad main = print $ head (nQueens' 20) nQueens n = nest...
95354654cf2516a464e64770b80594ded3bd3039de61893929f82fb4e03e5d79
PLSysSec/lio
TCB.hs
# LANGUAGE Unsafe # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ScopedTypeVariables # | This module exports the basic interface for creating and using the labeled file system , implemented as a file store . Trusted code should use ' initializeLIOFS ' to set the root of the l...
null
https://raw.githubusercontent.com/PLSysSec/lio/622a3e7bc86a3b42ab4ce8be954064a5f142247a/lio-fs/LIO/FS/TCB.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveDataTypeable # * Initializing labeled filesystem * Handling path labels * Helpers for creating labeled objects * Filesystem errors Exception thrown by the file store interface | Filesystem errors ^ Root structure is corrupt. ^ Root is invalid (must be absolute). ...
# LANGUAGE Unsafe # # LANGUAGE ScopedTypeVariables # | This module exports the basic interface for creating and using the labeled file system , implemented as a file store . Trusted code should use ' initializeLIOFS ' to set the root of the labeled file system . Moreover , trusted code should implement all t...
80e82147d9418152e37c0ae65249c7fa6069ccce2eef19011fda521cbb86dab5
lingnand/VIMonad
Ssh.hs
----------------------------------------------------------------------------- -- | -- Module : XMonad.Prompt.Ssh Copyright : ( C ) 2007 -- License : BSD3 -- -- Maintainer : -- Stability : unstable -- Portability : unportable -- -- A ssh prompt for XMonad -- -----------------------------------...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Prompt/Ssh.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Prompt.Ssh License : BSD3 Maintainer : Stability : unstable Portability : unportable A ssh prompt for XMonad --------------------------------------------------------------------------- * Usage $us...
Copyright : ( C ) 2007 module XMonad.Prompt.Ssh sshPrompt, Ssh, ) where import XMonad import XMonad.Util.Run import XMonad.Prompt import System.Directory import System.Environment import Control.Exception as E import Control.Monad import Data.Maybe import Data.List(elemIndex) econst :: Mon...
a9328649699a4d01b1d97e89fe0eddfb95e1578d3c1b1b452b110ca65f29c65a
souenzzo/into-curl
core.clj
(ns into-curl.core (:require [clojure.string :as string])) (def cmap {\$ "\\$" \" "\\\"" \\ "\\\\"}) (defmulti argument (fn [k v] k)) (defmethod argument :default [_ _] []) (defmethod argument :method [k v] (if (= v "GET") [] {:type :short :option "X" :value v})) (defmethod ar...
null
https://raw.githubusercontent.com/souenzzo/into-curl/8057a321c4d80e0372bd77c51d84b223eae20237/src/into_curl/core.clj
clojure
(ns into-curl.core (:require [clojure.string :as string])) (def cmap {\$ "\\$" \" "\\\"" \\ "\\\\"}) (defmulti argument (fn [k v] k)) (defmethod argument :default [_ _] []) (defmethod argument :method [k v] (if (= v "GET") [] {:type :short :option "X" :value v})) (defmethod ar...
3e045f52c5283eee31f7fdccd9057e4e6a5cdf33ff359d4893f3fa7915a12da0
ChrisPenner/update-monad
UpdateT.hs
# LANGUAGE DeriveFunctor # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE FunctionalDependencies # module UpdateT where import Control.Monad.IO.Class import Data.Monoid class (Monoid p) => ApplyAc...
null
https://raw.githubusercontent.com/ChrisPenner/update-monad/632aff1b4b9d2d3683004efa85a1f41947864316/src/UpdateT.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE DeriveFunctor # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE FunctionalDependencies # module UpdateT where import Control.Monad.IO.Class import Data.Monoid class (Monoid p) => ApplyAction p s where applyActi...
1fc654d5275422d26d80c4d0d7539a100a54361fb04ac72bce54d7c35d0c3ba0
solita/laundry
project.clj
(defproject laundry "0.0.0-SNAPSHOT" :dependencies [[clj-http "3.10.0"] [com.fzakaria/slf4j-timbre "0.3.14"] [com.taoensso/timbre "4.10.0"] [enlive "1.1.6"] [hiccup "1.0.5"] ; ring-swagger-ui upgraded manually due to compojure-api ; having issue -api/swagger-ui/issues...
null
https://raw.githubusercontent.com/solita/laundry/4e1fe96ebae19cde14c3ba5396929ba1578b7715/project.clj
clojure
ring-swagger-ui upgraded manually due to compojure-api having issue -api/swagger-ui/issues/2547 which breaks image uploads from swagger-ui allow connections from outside the vm
(defproject laundry "0.0.0-SNAPSHOT" :dependencies [[clj-http "3.10.0"] [com.fzakaria/slf4j-timbre "0.3.14"] [com.taoensso/timbre "4.10.0"] [enlive "1.1.6"] [hiccup "1.0.5"] [metosin/compojure-api "1.1.13" :exclusion [metosin/ring-swagger-ui]] [metosin/ring-swagger-ui ...
c45e8d218fc9c103b7576ff3b8146f163070d9ca2f55a2b94f33438eb776e4f6
ghc/nofib
Main.hs
From , Oct 99 This pretends to be the " fair " improved Cryptarithm solver test for the performance comparison between Haskell and C++ . -------------------------------------------------------------------- Compilation : g++ -O3 t.cc ghc-4.04 -c -...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/spectral/cryptarithm1/Main.hs
haskell
------------------------------------------------------------------ ------------------------------------------------------------------ ---------------------------------------------------------------- ---------------------------------------------------------------- ---------------- ----------------------------------...
From , Oct 99 This pretends to be the " fair " improved Cryptarithm solver test for the performance comparison between Haskell and C++ . Compilation : g++ -O3 t.cc ghc-4.04 -c -fvia - C -O2 -O2 - for - C t.hs RESULTS : Platform1 - C++ ...
5a7fe772adef73dfd09b64bc621bd71fcaa34b17a9e2ebd099a6669a60640966
macourtney/Dark-Exchange
currency.clj
(ns darkexchange.model.currency (:require [darkexchange.model.terms :as terms])) (defn sort-currencies [currencies] (sort-by :name currencies)) (def currencies (sort-currencies [ { :code "AED" :name (terms/united-arab-emirates-dirhams) } { :code "AFN" :name (terms...
null
https://raw.githubusercontent.com/macourtney/Dark-Exchange/1654d05cda0c81585da7b8e64f9ea3e2944b27f1/src/darkexchange/model/currency.clj
clojure
Simply allows the given currency to be displayed in a combobox or such.
(ns darkexchange.model.currency (:require [darkexchange.model.terms :as terms])) (defn sort-currencies [currencies] (sort-by :name currencies)) (def currencies (sort-currencies [ { :code "AED" :name (terms/united-arab-emirates-dirhams) } { :code "AFN" :name (terms...
54614c4eb0aca352933e9a788d0fc7d74e12406ea37b48937cbbc72e7eb57dea
racket/web-server
tests.rkt
#lang racket/base (require net/url racket/port rackunit) (provide make-tests) (define get-response (compose1 port->string get-pure-port string->url)) (define (make-tests port) (define (make-uri [path "/"]) (format ":~a/~a" port path)) (test-suite "echo" (test-equal? "no query...
null
https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-test/tests/web-server/e2e/echo/tests.rkt
racket
#lang racket/base (require net/url racket/port rackunit) (provide make-tests) (define get-response (compose1 port->string get-pure-port string->url)) (define (make-tests port) (define (make-uri [path "/"]) (format ":~a/~a" port path)) (test-suite "echo" (test-equal? "no query...
d2a5e7598eef01dab7f6fb56768096141ecd6831b634ec6dbcf5399ae5f37f08
dradtke/Lisp-Text-Editor
gobject.gvalue.lisp
(in-package :gobject) (defun g-value-zero (g-value) "Initializes the GValue in \"unset\" state. @arg[g-value]{a C pointer to the GValue structure}" (loop for i from 0 below (foreign-type-size 'g-value) do (setf (mem-ref g-value :uchar i) 0))) (defun g-value-type (gvalue) (foreign-slot-value gvalue 'g...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/cl-gtk2/glib/gobject.gvalue.lisp
lisp
Enums Flags
(in-package :gobject) (defun g-value-zero (g-value) "Initializes the GValue in \"unset\" state. @arg[g-value]{a C pointer to the GValue structure}" (loop for i from 0 below (foreign-type-size 'g-value) do (setf (mem-ref g-value :uchar i) 0))) (defun g-value-type (gvalue) (foreign-slot-value gvalue 'g...
7c9b7a2abdc86799d2149c2084620d34b66d5570bea9e5feb7ca9a742ec58a1a
linoscope/okasaki-book-ocaml
bench_heaps.ml
open Core_bench open Okasaki_book open Base module LH = Leftist_heap.Make(Int) module WBLH = Weight_biased_leftist_heap.Make(Int) module BH = Binomial_heap.Make(Int) module PH = Pairing_heap.Make(Int) let () = let nums = List.init 1_000_000 ~f:(fun _ -> Random.int Int.max_value) in let insert_and_delete (module H...
null
https://raw.githubusercontent.com/linoscope/okasaki-book-ocaml/b5a10b0b9b714eccd2b35f76aa402ab5e0e5c1d7/bench/bench_heaps.ml
ocaml
open Core_bench open Okasaki_book open Base module LH = Leftist_heap.Make(Int) module WBLH = Weight_biased_leftist_heap.Make(Int) module BH = Binomial_heap.Make(Int) module PH = Pairing_heap.Make(Int) let () = let nums = List.init 1_000_000 ~f:(fun _ -> Random.int Int.max_value) in let insert_and_delete (module H...
9f6e7b1fac342a04c54d824bf8bf9528024840815d5407b458a913f300501b38
jaredly/belt
belt_HashSet.ml
Copyright ( C ) 2017 Authors of BuckleScript * * 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 versi...
null
https://raw.githubusercontent.com/jaredly/belt/4d07f859403fdbd3fbfc5a9547c6066d657a2131/belt_src/belt_HashSet.ml
ocaml
cell put at the end no overflow keep track of tail so that indexfun sees the new bucket count
Copyright ( C ) 2017 Authors of BuckleScript * * 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 versi...
cde7468b06bc64ef1ca097eba5762a5cadab9e8afcdba120a9ce1076937483d3
ocamllabs/ocaml-modular-implicits
meta.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/bytecomp/meta.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . external global_data : unit -> Obj.t ar...
62cc9cd6063fe05b59cf905f1479dfe11108aa884e5a2f8b3f18dbfeccdb5db9
Rhywun/get-programming-with-haskell
simple_calc_ans.hs
calc :: [String] -> Int calc (val1:"+":val2:rest) = read val1 + read val2 calc (val1:"*":val2:rest) = read val1 * read val2 main :: IO () main = do userInput <- getContents let values = lines userInput print (calc values)
null
https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit04/Lesson22/simple_calc_ans.hs
haskell
calc :: [String] -> Int calc (val1:"+":val2:rest) = read val1 + read val2 calc (val1:"*":val2:rest) = read val1 * read val2 main :: IO () main = do userInput <- getContents let values = lines userInput print (calc values)
c727537e738d6340a0c7a55112f1d7da85cb5162d2d6b58fa708044c63d1fe82
vernemq/vernemq
vmq_cowboy_websocket.erl
Copyright 2019 Octavo Labs AG Zurich Switzerland ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing...
null
https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_server/src/vmq_cowboy_websocket.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2019 Octavo Labs AG Zurich Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_cowboy_websocket). -behaviour(cowboy_sub_protocol). -export([is_upgrade_request/1]). -export([upgrade/4]). ...
6946208dae51f1cc56f728589eeac08916cd4f9202ab2ee76d020814e23d4898
wargrey/schema
progress.rkt
#lang typed/racket/base (require "../csv.rkt") (require racket/file) (require racket/math) (require racket/format) (port-count-lines-enabled #false) (define StateDepartment.csv : Path (build-path (#%dir) "StateDepartment.csv")) (define range : Natural (file-size StateDepartment.csv)) (define chars-width : Index 64)...
null
https://raw.githubusercontent.com/wargrey/schema/4824a1fecea1dc557941b08f05a457da9f628f78/tamer/csv/reader/performance/progress.rkt
racket
#lang typed/racket/base (require "../csv.rkt") (require racket/file) (require racket/math) (require racket/format) (port-count-lines-enabled #false) (define StateDepartment.csv : Path (build-path (#%dir) "StateDepartment.csv")) (define range : Natural (file-size StateDepartment.csv)) (define chars-width : Index 64)...
d621778bcb2dea3a4a7bce27d3cd74787a61dc406f46c0fe5852e43591a9804e
travelping/capwap
capwap_config_SUITE.erl
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any later version. %% Thi...
null
https://raw.githubusercontent.com/travelping/capwap/c2e503c5ad7d6b4c0ff3df2a4d5deed73d5f7c51/test/capwap_config_SUITE.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General P...
Copyright ( C ) 2013 - 2023 , Travelping GmbH < > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License -module(capwap_config_SUITE). -compile(...
643762959fff3b9a94fdeb031f793ece87a92c8804ce3a58774b0f22a201a441
fogfish/cache
cache_heap.erl
%% Copyright 2012 , All Rights Reserved %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing...
null
https://raw.githubusercontent.com/fogfish/cache/8697b0246be280b8dd679b15f16293d3222c1d87/src/cache_heap.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language g...
Copyright 2012 , All Rights Reserved Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(cache_heap). -export([ new/5 , refs/1 , split/1 , split/2 , slip/2 , purge/2 ]). -type segment() :: [{integer...
3a92244f224600fc34769c13404b52a3f4553c16dea63c6811851bb0dfa8e392
haskell-tools/haskell-tools
Use.hs
# LANGUAGE TemplateHaskell # module Use where import Define defHello $(let x = return [] in x)
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/RenameDefinition/SpliceDecls/Use.hs
haskell
# LANGUAGE TemplateHaskell # module Use where import Define defHello $(let x = return [] in x)
4612939893f5571d34089a0cd936f00ad927cd2181252381bcc290aa1941d36b
lojic/LearningRacket
raindrops.rkt
#lang racket (provide convert) (define drops #hash((3 . "Pling") (5 . "Plang") (7 . "Plong"))) (define (convert number) (join number (sounds number))) (define (sounds number) (for/list ([(value sound) drops] #:when (= 0 (remainder number value))) sound)) (define (join number lst) (if (null? lst) ...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/raindrops/raindrops.rkt
racket
#lang racket (provide convert) (define drops #hash((3 . "Pling") (5 . "Plang") (7 . "Plong"))) (define (convert number) (join number (sounds number))) (define (sounds number) (for/list ([(value sound) drops] #:when (= 0 (remainder number value))) sound)) (define (join number lst) (if (null? lst) ...
2f58ccc52b5ccd67be72e033ff1f58b8c5a10304865fe2b0d7bdcecc65ccfddc
elsys/fp-haskell
MdTableTests.hs
import Test.Hspec import MdTable main :: IO () main = hspec $ do describe "padWith" $ do it "pads an array with the provided element" $ do padWith 42 5 [1, 2, 3] `shouldBe` [1, 2, 3, 42, 42] padWith 42 5 [] `shouldBe` [42, 42, 42, 42, 42] it "returns the array intact if padding is not ap...
null
https://raw.githubusercontent.com/elsys/fp-haskell/9a2d0cf8b99739c4fee21dc2e2d142de8e87df73/exercises/md-table/MdTableTests.hs
haskell
import Test.Hspec import MdTable main :: IO () main = hspec $ do describe "padWith" $ do it "pads an array with the provided element" $ do padWith 42 5 [1, 2, 3] `shouldBe` [1, 2, 3, 42, 42] padWith 42 5 [] `shouldBe` [42, 42, 42, 42, 42] it "returns the array intact if padding is not ap...
3737d6926afc34331cd8ec6986a8b884225abe53c27cf390c145b4844de7178d
clojure-interop/java-jdk
Binder.clj
(ns javax.xml.bind.Binder "Enable synchronization between XML infoset nodes and JAXB objects representing same XML document. An instance of this class maintains the association between XML nodes of an infoset preserving view and a JAXB representation of an XML document. Navigation between the two views is p...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/bind/Binder.clj
clojure
not all XML elements not all XML elements
(ns javax.xml.bind.Binder "Enable synchronization between XML infoset nodes and JAXB objects representing same XML document. An instance of this class maintains the association between XML nodes of an infoset preserving view and a JAXB representation of an XML document. Navigation between the two views is p...
42871313e9637d2ba17208fd3a66b757d6d004d9a9e1cf7a72526a411fb9a7cf
ghc/packages-Cabal
Configuration.hs
-fno - warn - deprecations for use of Map.foldWithKey # OPTIONS_GHC -fno - warn - deprecations # ----------------------------------------------------------------------------- -- | -- Module : Distribution.PackageDescription.Configuration Copyright : , 2007 -- License : BSD3 -- -- Maintainer : -...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/Cabal/Distribution/PackageDescription/Configuration.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.PackageDescription.Configuration License : BSD3 Maintainer : Portability : portable This is about the cabal configurations feature. It exports functions for converting 'GenericPackageDescription's...
-fno - warn - deprecations for use of Map.foldWithKey # OPTIONS_GHC -fno - warn - deprecations # Copyright : , 2007 ' ' and ' flattenPackageDescription ' which are ' PackageDescription 's . It has code for working with the tree of conditions module Distribution.PackageDescription.Configuration ( fi...
a37bac78bea9885a53427f00b4665673228a4f26690dbedcb776b5bd4c955a2b
pjotrp/guix
zsh.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/packages/zsh.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages zsh) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use...
3a81828e8505fa009cbdfba88e7b4e4f0439ebc3f5d0cb8cb1d1a6e45a944078
tsloughter/kuberl
kuberl_v1_persistent_volume.erl
-module(kuberl_v1_persistent_volume). -export([encode/1]). -export_type([kuberl_v1_persistent_volume/0]). -type kuberl_v1_persistent_volume() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1_persistent_volume...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_persistent_volume.erl
erlang
-module(kuberl_v1_persistent_volume). -export([encode/1]). -export_type([kuberl_v1_persistent_volume/0]). -type kuberl_v1_persistent_volume() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1_persistent_volume...
ce9668efe23fb87b55379de670b26f86967012f9259c309ee7e8d4374515282b
zkincaid/duet
cra.ml
open Core open Srk open CfgIr open BatPervasives module RG = Interproc.RG module WG = WeightedGraph module TLLRF = TerminationLLRF module TDTA = TerminationDTA module G = RG.G module Ctx = Syntax.MakeSimplifyingContext () module Int = SrkUtil.Int module TF = TransitionFormula let srk = Ctx.context include Log.Make(s...
null
https://raw.githubusercontent.com/zkincaid/duet/162d3da830f12ab8e8d51f7757cddcb49c4084ca/duet/cra.ml
ocaml
Redundant encoding is robust under negation w.r.t. LIRR Todo: width and pos aren't correct. No real translations for anything else -- just return a free var "tr" (which just acts like a havoc). a mod b = k <==> (a - k)/b is an integer (+ sign constraints) a mod b != k <==> (a + r - k)/b is an integer fo...
open Core open Srk open CfgIr open BatPervasives module RG = Interproc.RG module WG = WeightedGraph module TLLRF = TerminationLLRF module TDTA = TerminationDTA module G = RG.G module Ctx = Syntax.MakeSimplifyingContext () module Int = SrkUtil.Int module TF = TransitionFormula let srk = Ctx.context include Log.Make(s...
05dd784abb69d21d9b3f7a8cd350ac45f84edee9af257b988fee7311bd97766d
bcc32/advent-of-code
polymer.ml
open! Core open! Async open! Import let reactable_re = let lower = Char.all |> List.filter ~f:Char.is_lowercase in Re.compile (Re.alt (List.concat_map lower ~f:(fun c -> [ Re.seq [ Re.char c; Re.char (Char.uppercase c) ] ; Re.seq [ Re.char (Char.uppercase c); Re.char c ] ])...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2018/05/polymer.ml
ocaml
open! Core open! Async open! Import let reactable_re = let lower = Char.all |> List.filter ~f:Char.is_lowercase in Re.compile (Re.alt (List.concat_map lower ~f:(fun c -> [ Re.seq [ Re.char c; Re.char (Char.uppercase c) ] ; Re.seq [ Re.char (Char.uppercase c); Re.char c ] ])...
3422a687d6245b304dd279bda7b6ee55c653ab058b1d2a7e94f0bf1158ce28be
dbuenzli/ptime
ptime.ml
--------------------------------------------------------------------------- Copyright ( c ) 2015 The ptime programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
null
https://raw.githubusercontent.com/dbuenzli/ptime/5eb4ab9fab22307fc2682efb4d0c868845319808/src/ptime.ml
ocaml
the Julian day of the POSIX epoch POSIX time spans Arithmetic POSIX time spans always positive positive overflow nan Guard against a potential overflow in the computation of [rem_s] Predicates Rounding Pretty printing Warning laborious code follows. Is there a better way ? POSIX timestamps Pr...
--------------------------------------------------------------------------- Copyright ( c ) 2015 The ptime programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
276719d13fb5fc34d015c63f256b433531e3ba4333384dce44b7abf842128735
vaibhavsagar/experiments
XmlImplementation.hs
module Dotnet.System.Xml.XmlImplementation where import Dotnet import qualified Dotnet.System.Object import Dotnet.System.Xml.XmlDocumentTy data XmlImplementation_ a type XmlImplementation a = Dotnet.System.Object.Object (XmlImplementation_ a) foreign import dotnet "method Dotnet.System.Xml.XmlImplementation.Creat...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Xml/XmlImplementation.hs
haskell
module Dotnet.System.Xml.XmlImplementation where import Dotnet import qualified Dotnet.System.Object import Dotnet.System.Xml.XmlDocumentTy data XmlImplementation_ a type XmlImplementation a = Dotnet.System.Object.Object (XmlImplementation_ a) foreign import dotnet "method Dotnet.System.Xml.XmlImplementation.Creat...
c02a6c80e1e79c80dab3c5e6e2212fe42a6b56b1e9cc20f94bec521d2ab963e6
taiki45/hs-vm
Machine.hs
# LANGUAGE TupleSections # module VM.Machine ( Machine (..) , mapDS , mapMem , mapLDS , mapLabels , cup , setCounter , pushCS , popCS , initMachine , takeResult , DataStack , push , pop , fetch , appBinOp , appF , initDS , Mem , Adress ...
null
https://raw.githubusercontent.com/taiki45/hs-vm/c979d594e957179c64b42ffa82e3022167cc8ad6/src/VM/Machine.hs
haskell
Machine and functions initialize machine with empty value Memory and functions Call stack Local stack Label set Value
# LANGUAGE TupleSections # module VM.Machine ( Machine (..) , mapDS , mapMem , mapLDS , mapLabels , cup , setCounter , pushCS , popCS , initMachine , takeResult , DataStack , push , pop , fetch , appBinOp , appF , initDS , Mem , Adress ...
dc72f906d1e58129663706d86f64d452d31adcd5e05c9c08b7801b1add4e984b
simmone/racket-simple-xlsx
styles-test.rkt
#lang racket (require simple-xml) (require rackunit/text-ui rackunit) (require "../../../../lib/lib.rkt") (require "../../../../xlsx/xlsx.rkt") (require "../../../../sheet/sheet.rkt") (require "../../../../style/style.rkt") (require "../../../../style/number-style.rkt") (require "../../../../style/font-style.rkt") (...
null
https://raw.githubusercontent.com/simmone/racket-simple-xlsx/e0ac3190b6700b0ee1dd80ed91a8f4318533d012/simple-xlsx/tests/xl/styles/styles/styles-test.rkt
racket
#lang racket (require simple-xml) (require rackunit/text-ui rackunit) (require "../../../../lib/lib.rkt") (require "../../../../xlsx/xlsx.rkt") (require "../../../../sheet/sheet.rkt") (require "../../../../style/style.rkt") (require "../../../../style/number-style.rkt") (require "../../../../style/font-style.rkt") (...
5496cd46aba05279ffc89a73902e57c6decd87ec6f3730816c003cac16ee5864
bennn/dissertation
quads.rkt
#lang racket/base (provide block block-break box column column-break line make-quadattrs optical-kern optical-kern? page page-break piece quad->string quad-attr-ref quad-attrs quad-car quad-has-attr? quad-list quad-name quads->block quads->column quads->doc quads->line q...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/quadU/untyped/quads.rkt
racket
----------------------------------------------------------------------------- ============================================================================= ============================================================================= (: quad-name (-> Quad Symbol)) bg also very bad bg do not understand, this is bad (...
#lang racket/base (provide block block-break box column column-break line make-quadattrs optical-kern optical-kern? page page-break piece quad->string quad-attr-ref quad-attrs quad-car quad-has-attr? quad-list quad-name quads->block quads->column quads->doc quads->line q...
666cc92e4ce7ca3fec02e2a596e8e92863ce541b01efd1494c1596b0db343afd
pavlobaron/ErlangOTPBookSamples
make_boot.erl
-module(make_boot). -export([write_scripts/1]). write_scripts(Args) -> [Name] = Args, io:format("write_scripts for ~p~n", [Name]), Erts = erlang:system_info(version), application:load(sasl), Version = "0.2", {value, {kernel, _, Kernel}} = lists:keysearch(kernel, 1, application:lo...
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/entwicklung/wechselkurs/src/make_boot.erl
erlang
-module(make_boot). -export([write_scripts/1]). write_scripts(Args) -> [Name] = Args, io:format("write_scripts for ~p~n", [Name]), Erts = erlang:system_info(version), application:load(sasl), Version = "0.2", {value, {kernel, _, Kernel}} = lists:keysearch(kernel, 1, application:lo...
94dc4dd607f2eaccb591155482599de11cfc225f2fc9cbd051004846042a1391
sgbj/MaximaSharp
sheafa.lisp
;;; -*- mode: lisp; package: cl-maxima; syntax: common-lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;;;; Copyright ( c ) 1984 by , University of Texas ; ; ; ; ; ;;; All rights reserved ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/affine/sheafa.lisp
lisp
-*- mode: lisp; package: cl-maxima; syntax: common-lisp -*- ;;;;; ; ; ; ; All rights reserved ;;;;; head tail) (defstruct (subscheme (:type list) :named ) s-var ;; for each open of the s-...
(in-package :maxima) ( defstruct ( bil (: type list ) : named (: conc - name go- ) ) (defun update (ldata) (cond ((< (length ldata) 6) (nconc ldata (loop for i from (length ldata) below 6 collecting nil))))) denom ) ( ( make - open ) ) ( setf ( open - variables tem ) ( open - variables w...
97c83cc4b3db9aa180b5946f27469c701dd6c6dd6755cd21ccea00e221152ec3
vbmithr/ocaml-actor
actor_s.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/vbmithr/ocaml-actor/d1c7dd1ad81a8e33efb1de07d5ce7db2edb91273/src/actor_s.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
fe727d5edde4e06d649d45109c34a6b476346fbedf3ef6d5404df3f0fbb18b38
Naupio/pigame
game_ws_login.erl
-module(game_ws_login). -author("Naupio Z.Y. Huang"). -include("common_pb.hrl"). -include("game_user.hrl"). -export([ login/3 ]). login(Cmd, Bin, #{ws_pid := WsPid} = WsState) -> Module = game_massage:decoder_for(Cmd), RecordName = game_massage:msg_type(Cmd), RecordData = Module:decode_msg(Bin, Reco...
null
https://raw.githubusercontent.com/Naupio/pigame/2290241bb74e6a3a6c2af815ad69dc2926e14f3e/apps/game_server/src/game_web/game_ws_login.erl
erlang
-module(game_ws_login). -author("Naupio Z.Y. Huang"). -include("common_pb.hrl"). -include("game_user.hrl"). -export([ login/3 ]). login(Cmd, Bin, #{ws_pid := WsPid} = WsState) -> Module = game_massage:decoder_for(Cmd), RecordName = game_massage:msg_type(Cmd), RecordData = Module:decode_msg(Bin, Reco...
839c42a5fc7d5717a4f8669ff4682647c0f362f4c9917d7bddf663dfd678f3e3
resttime/cl-liballegro
mouse.lisp
(in-package :cl-liballegro) (defcstruct mouse-state (x :int) (y :int) (z :int) (w :int) (more-axis :int :count #.+mouse-max-extra-axes+) (buttons :int) (pressure :float) (display :pointer)) (defmacro with-mouse-state (state &body body) `(with-foreign-object (,state '(:struct mouse-state)) ,@bod...
null
https://raw.githubusercontent.com/resttime/cl-liballegro/0f8a3a77d5c81fe14352d9a799cba20e1a3a90b4/src/types/mouse.lisp
lisp
(in-package :cl-liballegro) (defcstruct mouse-state (x :int) (y :int) (z :int) (w :int) (more-axis :int :count #.+mouse-max-extra-axes+) (buttons :int) (pressure :float) (display :pointer)) (defmacro with-mouse-state (state &body body) `(with-foreign-object (,state '(:struct mouse-state)) ,@bod...
8a3575cb1a33db8ac7c4bf01781e0772e661e2c58ff46a04e9b5f3b8ed6f0929
mhkoji/Senn
inputting.lisp
(defpackage :senn.t.ibus.inputting (:use :cl)) (in-package :senn.t.ibus.inputting) (defun resp= (expected consumed-p view) (destructuring-bind (consumed-p-expected view-expected) expected (and (eq consumed-p-expected consumed-p) (string= view-expected view)))) (de...
null
https://raw.githubusercontent.com/mhkoji/Senn/74f909bfe10ba360523be5b3b162688f21f5b333/senn/t/ibus/inputting.lisp
lisp
(defpackage :senn.t.ibus.inputting (:use :cl)) (in-package :senn.t.ibus.inputting) (defun resp= (expected consumed-p view) (destructuring-bind (consumed-p-expected view-expected) expected (and (eq consumed-p-expected consumed-p) (string= view-expected view)))) (de...
7e4537176450683dc2951663e7254c2e41b82c90dd63f6ee997c33b5c4314778
haskellari/postgresql-simple
FromField.hs
# LANGUAGE CPP , DeriveDataTypeable , DeriveFunctor # # LANGUAGE FlexibleInstances , TypeSynonymInstances # # LANGUAGE PatternGuards , ScopedTypeVariables # {-# LANGUAGE RecordWildCards #-} # LANGUAGE PolyKinds # | Module : Database . PostgreSQL.Simple . FromField Copyright ...
null
https://raw.githubusercontent.com/haskellari/postgresql-simple/6cabb13959310f32a15285f8e41c2d053403d687/src/Database/PostgreSQL/Simple/FromField.hs
haskell
# LANGUAGE RecordWildCards # value fails. type did not permit it. ^ The SQL value could not be parsed, or could not unexpected low-level error occurred (e.g. mismatch between metadata and actual data in a row). | A type that may be converted from a SQL type. Returns a list of exceptions ...
# LANGUAGE CPP , DeriveDataTypeable , DeriveFunctor # # LANGUAGE FlexibleInstances , TypeSynonymInstances # # LANGUAGE PatternGuards , ScopedTypeVariables # # LANGUAGE PolyKinds # | Module : Database . PostgreSQL.Simple . FromField Copyright : ( c ) 2011 MailRank , Inc. ( c ) 2011...
83e8b84644a005a6e762dee4a5f6e5f4a5e011957c9180a14b876fb7cd617efc
jeluard/lucuma
util.cljs
(ns lucuma.util (:require [clojure.string :as string])) (defn call-with-first-argument "Injects arg as first argument to f." ([f arg] (call-with-first-argument f arg nil)) ([f arg args] (apply f (apply conj [] arg args)))) (defn wrap-with-callback-this-value [f] (fn [& args] (this-as this (call-with-first...
null
https://raw.githubusercontent.com/jeluard/lucuma/110e35327bff98e5421d0e7e03f0e0a3dc2995c3/src/lucuma/util.cljs
clojure
(ns lucuma.util (:require [clojure.string :as string])) (defn call-with-first-argument "Injects arg as first argument to f." ([f arg] (call-with-first-argument f arg nil)) ([f arg args] (apply f (apply conj [] arg args)))) (defn wrap-with-callback-this-value [f] (fn [& args] (this-as this (call-with-first...
99d1bf6be69a35cfe802f291d35bcd981d29d4aaf156a1f1e626fa6fb6d5773d
juji-io/datalevin
search_utils.clj
(ns datalevin.search-utils "Some useful utility functions that can be passed as options to search engine to customize search" (:require [clojure.string :as str] [datalevin.interpret :as i] [datalevin.constants :as c]) (:import [java.text Normalizer Normalizer$Form])) (defn create-analyz...
null
https://raw.githubusercontent.com/juji-io/datalevin/499b47c26db394a940f198a89bcdc909e20a6112/src/datalevin/search_utils.clj
clojure
(ns datalevin.search-utils "Some useful utility functions that can be passed as options to search engine to customize search" (:require [clojure.string :as str] [datalevin.interpret :as i] [datalevin.constants :as c]) (:import [java.text Normalizer Normalizer$Form])) (defn create-analyz...
d81de3cf9d4629c2e25163c755f771b12155bb4749539444564d1424441c50d3
clingen-data-model/genegraph
variation_archive.clj
(ns genegraph.transform.clinvar.variation-archive (:require [genegraph.database.load :as l] [genegraph.database.query :as q] [genegraph.transform.clinvar.common :as common] [genegraph.transform.clinvar.iri :as iri :refer [ns-cg]] [genegraph.transform.jsonld.common :as j...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/baae07c26b8ac4913a47d93e2959a8de5b9d63c3/src/genegraph/transform/clinvar/variation_archive.clj
clojure
"@type" (ns-cg "ClinVarVCVStatement") make VariationRuleDescriptor proposition-iri (l/blank-node) SEPIO Statement (ClinVarVCVStatement) statement: <proposition> <has confidence + direction> <strength> For tracking clinvar objects ex: "criteria provided, conflicting interpretations" [subject-iri :rdf/type (ns-vrs "...
(ns genegraph.transform.clinvar.variation-archive (:require [genegraph.database.load :as l] [genegraph.database.query :as q] [genegraph.transform.clinvar.common :as common] [genegraph.transform.clinvar.iri :as iri :refer [ns-cg]] [genegraph.transform.jsonld.common :as j...
7a38b6d5093e1aa7871632a699388905755a4ca465a9605b0730186d95db38bc
emmabastas/elm-embed
Variable.hs
# OPTIONS_GHC -Wall # # LANGUAGE BangPatterns , MagicHash , OverloadedStrings , UnboxedTuples # module Parse.Variable ( lower , upper , moduleName , Upper(..) , foreignUpper , foreignAlpha , chompInnerChars , getUpperWidth , getInnerWidth , getInnerWidthHelp , reservedWords ) where import qu...
null
https://raw.githubusercontent.com/emmabastas/elm-embed/c2c4f9dcc5c4f47480f728247ff7b4d0700d7476/compiler/src/Parse/Variable.hs
haskell
LOCAL UPPER LOCAL LOWER PERF try using a trie instead MODULE NAME FOREIGN UPPER FOREIGN ALPHA -- CHAR CHOMPERS ---- . UPPER CHARS A Z LOWER CHARS a z INNER CHARS a z A Z _ EXTRACT CHARACTERS
# OPTIONS_GHC -Wall # # LANGUAGE BangPatterns , MagicHash , OverloadedStrings , UnboxedTuples # module Parse.Variable ( lower , upper , moduleName , Upper(..) , foreignUpper , foreignAlpha , chompInnerChars , getUpperWidth , getInnerWidth , getInnerWidthHelp , reservedWords ) where import qu...
f41729273f3300e2c27231879ce96dd942e892108246af7e2281299f17600172
olleharstedt/subsetphp
fbpath.mli
* * Copyright ( c ) 2014 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the " hack " directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . ...
null
https://raw.githubusercontent.com/olleharstedt/subsetphp/37f7967594bdda38531f4fbde6ffc5ae33a307a3/fbpath.mli
ocaml
* * Copyright ( c ) 2014 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the " hack " directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . ...
47c5fdf39cdf7b65e4d8b99a94354d0f9ec2c3526ff2eb33f000cf27a45a26ab
nixeagle/cl-irc
utility.lisp
$ Id$ $ URL$ ;;;; See the LICENSE file for licensing information. (in-package :irc) (defun get-day-name (day-number) "Given a number, such as 1, return the appropriate day name, abbrevated, such as \"Tue\". Index 0 is Monday." (case day-number (0 "Mon") (1 "Tue") (2 "Wed") (3 "Thu") (4 "...
null
https://raw.githubusercontent.com/nixeagle/cl-irc/efaea15f2962107ea9b1a2fad5cd9db492b4247b/tags/0.8.0/utility.lisp
lisp
See the LICENSE file for licensing information. stream creation parameters), so this loop should be quite efficient For others, if this becomes an efficiency problem, please report... Message arguments binding macro required start && end required start && end && optionals we want to raise a cl-irc condition he...
$ Id$ $ URL$ (in-package :irc) (defun get-day-name (day-number) "Given a number, such as 1, return the appropriate day name, abbrevated, such as \"Tue\". Index 0 is Monday." (case day-number (0 "Mon") (1 "Tue") (2 "Wed") (3 "Thu") (4 "Fri") (5 "Sat") (6 "Sun") (otherwise ...
ca447335a1e0dba77f515b34fd4ac2943bf6077ea30f05a87f6062b0091a1c8c
7theta/via
schema.cljc
(ns via.schema (:require [malli.core :as m] [malli.error :as me] [malli.util :as mu] #?(:clj [manifold.stream :as s] :cljs [vectio.util.manifold.stream :as s]) #?(:clj [manifold.deferred :as d] :cljs [vectio.util.manifold.deferred :as d])))...
null
https://raw.githubusercontent.com/7theta/via/8e13308e6859d2e13f3f324baa6bd04092891640/src/via/schema.cljc
clojure
(ns via.schema (:require [malli.core :as m] [malli.error :as me] [malli.util :as mu] #?(:clj [manifold.stream :as s] :cljs [vectio.util.manifold.stream :as s]) #?(:clj [manifold.deferred :as d] :cljs [vectio.util.manifold.deferred :as d])))...
ef9b582d1589e59a03f1c3d31af4d6885087696172f34dc99a8fde83ae65516b
Carnap/Carnap
Hurley.hs
# LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.PurePropositional.Logic.Hurley (parseHurleySL, parseHurleySLProof, HurleySL(..), hurleySLCalc) where import Data.Map as M (lookup, Map) import Data.Char import Text.Parsec import Carnap.Core.Data.Types (Form) import ...
null
https://raw.githubusercontent.com/Carnap/Carnap/99546e377008247c5a1e8de1e294aac8e22584d7/Carnap/src/Carnap/Languages/PurePropositional/Logic/Hurley.hs
haskell
A system for propositional logic resembling the proof system fron the rest are rules of replacement
# LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.PurePropositional.Logic.Hurley (parseHurleySL, parseHurleySLProof, HurleySL(..), hurleySLCalc) where import Data.Map as M (lookup, Map) import Data.Char import Text.Parsec import Carnap.Core.Data.Types (Form) import ...
af329b096bd7adb1f7c1c5ad723d458e1da8232f7baa31cb67d49ad7d4db415d
mgsloan/th-orphans
Spec.hs
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # import Control.Exception (evaluate) import Language.Haskell.TH import Language.Haskell.TH.Instances import Language.Haskell.TH.Lift import System.Timeout import System.Mem import Test.Hspec hiding (runIO) import TestUtil import qualified Data.ByteString as BS main :: IO (...
null
https://raw.githubusercontent.com/mgsloan/th-orphans/685c109935b776ab50bce6fe0fb6ffd8913efe8a/test/Spec.hs
haskell
See -orphans/issues/13 versions define the constructors in different orders. See -orphans/issues/14
# LANGUAGE CPP # # LANGUAGE TemplateHaskell # import Control.Exception (evaluate) import Language.Haskell.TH import Language.Haskell.TH.Instances import Language.Haskell.TH.Lift import System.Timeout import System.Mem import Test.Hspec hiding (runIO) import TestUtil import qualified Data.ByteString as BS main :: IO (...
913ba623a9f012d4d95a54cfa483ec453cec721e6150ef3b52a66d6b9c78d017
ltoth/unison
sortri.mli
Unison file synchronizer : src / sortri.mli Copyright 1999 - 2010 , ( see COPYING for details ) (* Sort a list of recon items according to the current setting of various preferences (defined in sort.ml, and accessible from the profile and via the functions below) *) val sortReconItems : Common.reconItem ...
null
https://raw.githubusercontent.com/ltoth/unison/e763510165e3d93c5140a4c5f2ea0dcbf5825a0c/sortri.mli
ocaml
Sort a list of recon items according to the current setting of various preferences (defined in sort.ml, and accessible from the profile and via the functions below) Set the global preferences so that future calls to sortReconItems will sort in particular orders
Unison file synchronizer : src / sortri.mli Copyright 1999 - 2010 , ( see COPYING for details ) val sortReconItems : Common.reconItem list -> Common.reconItem list The underlying comparison function for sortReconItems ( in case we want to use it to sort something else , like stateItems in the UI ) wa...
86fcb3fc0cf25ae4c2cd7c3cb7c6402326c6c055c06228f377353dad41e0d487
aleator/Simple-SVM
Base.hs
# LANGUAGE ForeignFunctionInterface , BangPatterns , ScopedTypeVariables , TupleSections , ViewPatterns , RecordWildCards , FlexibleInstances # TupleSections, ViewPatterns, RecordWildCards, FlexibleInstances #-} ------------------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/aleator/Simple-SVM/591b86e645e04ac8e7b73246e9a6b573840fb251/AI/SVM/Base.hs
haskell
----------------------------------------------------------------------------- | License : BSD3 ----------------------------------------------------------------------------- This module is a medium level interface to libsvm toolkit. For a high-level description of the C API, refer to the README file included...
# LANGUAGE ForeignFunctionInterface , BangPatterns , ScopedTypeVariables , TupleSections , ViewPatterns , RecordWildCards , FlexibleInstances # TupleSections, ViewPatterns, RecordWildCards, FlexibleInstances #-} Module : Bindings . SVM Copyright : ( c ) 2011 Maintainer : Ville...
571acbe929507800bf9528903b71c667588dea7baa5e104713dec986f6dc163b
zotonic/mqtt_packet_map
mqtt_packet_map_decoder.erl
%% @doc MQTT packet decoder Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) Copyright 2018 %% 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 r...
null
https://raw.githubusercontent.com/zotonic/mqtt_packet_map/15732f5443a6392d9c81867fd1f7488baa25fbee/src/mqtt_packet_map_decoder.erl
erlang
@doc MQTT packet decoder you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specif...
Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) Copyright 2018 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mqtt_packet_map_decoder). -author('Marc Worrell <>'). -author('Feng Lee <>'). -export([ ...