_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
e365ea42f44be9541fa8e760b9021ab55cdfeac5eb7b72bf772920d414f5286d
ocaml-community/obus
nm_manager.ml
* nm_manager.ml * ------------- * Copyright : ( c ) 2010 , < > * 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * nm_manager.ml * ------------- * Copyright : (c) 2010, Pierre Chambart <> * 2010, Jer...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/bindings/network-manager/nm_manager.ml
ocaml
+-----------------------------------------------------------------+ | Types | +-----------------------------------------------------------------+ +-----------------------------------------------------------------+ | D-Bus definitions ...
* nm_manager.ml * ------------- * Copyright : ( c ) 2010 , < > * 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * nm_manager.ml * ------------- * Copyright : (c) 2010, Pierre Chambart <> * 2010, Jer...
2cc13b140cd36d3774a474e8eec1e8f100c17a33c44faab726e31e138ede5a10
omelkonian/AlgoRhythm
QuickCheck.hs
# LANGUAGE ImplicitParams # module Generate.QuickCheck where import Music import Generate.Generate import Test.QuickCheck.Gen import Export quickCheckSelector :: Selector s a quickCheckSelector s as = let conv (x, a) = ((round . (*) 100) x, elements [a]) in generate $ frequency (map conv as) >>= \a -> return (a...
null
https://raw.githubusercontent.com/omelkonian/AlgoRhythm/fdc1ccbae0b3d8a7635b24d37716123aba2d6c11/AlgoRhythm/src/Generate/QuickCheck.hs
haskell
| Runs a generator on the quickCheck state.
# LANGUAGE ImplicitParams # module Generate.QuickCheck where import Music import Generate.Generate import Test.QuickCheck.Gen import Export quickCheckSelector :: Selector s a quickCheckSelector s as = let conv (x, a) = ((round . (*) 100) x, elements [a]) in generate $ frequency (map conv as) >>= \a -> return (a...
080432f92bd7afd86a449c661f5deea6d93fb3148e9068d67a191b744ff09b45
google/hrepl
Binary.hs
Copyright 2020 Google LLC -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, software distributed un...
null
https://raw.githubusercontent.com/google/hrepl/2648a55cc38407c5b60a3a086217e2d827ca6cb6/hrepl/tests/Binary.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2020 Google LLC Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Main where import Library import System.Environment(getArgs) main = do [out] <- getArgs writeFile out libraryFunction
f582faaf08c35de78909a0b3efe4a2053a06db7349579edeec33e19dbbb77b3a
grapesmoker/cl-sfml
rectangle-shape.lisp
(in-package :sfml) (defclass rectangle (shape) ((type :initform :rectangle))) (defmethod initialize-instance :after ((r rectangle) &key) (setf (shape-pointer r) (sf-rectangle-shape-create))) ;; all the C functions (defcfun ("sfRectangleShape_create" sf-rectangle-shape-create) :pointer) (defun make-rectangle (...
null
https://raw.githubusercontent.com/grapesmoker/cl-sfml/3e587b431bbdd23dde2d0031f979d859ac436bca/graphics/rectangle-shape.lisp
lisp
all the C functions
(in-package :sfml) (defclass rectangle (shape) ((type :initform :rectangle))) (defmethod initialize-instance :after ((r rectangle) &key) (setf (shape-pointer r) (sf-rectangle-shape-create))) (defcfun ("sfRectangleShape_create" sf-rectangle-shape-create) :pointer) (defun make-rectangle (width height) (make-i...
95455c8e12843e044f1982ebfaf8795a0ae300d9350c1fe27b7e3688c8af9ca5
zotonic/zotonic
m_oauth2.erl
@author < > 2019 - 2021 %% @doc Registry for authentication tokens giving access to users/resources on %% the local site. Copyright 2019 - 2021 %% 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 ...
null
https://raw.githubusercontent.com/zotonic/zotonic/1bb4aa8a0688d007dd8ec8ba271546f658312da8/apps/zotonic_mod_oauth2/src/models/m_oauth2.erl
erlang
@doc Registry for authentication tokens giving access to users/resources on the local site. 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 ...
@author < > 2019 - 2021 Copyright 2019 - 2021 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(m_oauth2). -behaviour(zotonic_model). -include_lib("kernel/include/logger.hrl"). -export([ m_get/3, ...
1e8629aff1fdbfc27c5c7b105e368551fe5d9777af3a0684e9e09d7b1a3a3121
damballa/abracad
avro_readers.clj
{abracad.avro.edn/Meta clojure.core/with-meta, abracad.avro.edn/Element clojure.core/identity, abracad.avro.edn/Character clojure.core/char, abracad.avro.edn/Symbol clojure.core/symbol, abracad.avro.edn/Keyword clojure.core/keyword, abracad.avro.edn/Byte clojure.core/byte, abracad.avro.edn/Short clojure.core/shor...
null
https://raw.githubusercontent.com/damballa/abracad/5c16564a86b6c83ddc17b3ac5aba5f69798ec269/resources/avro_readers.clj
clojure
{abracad.avro.edn/Meta clojure.core/with-meta, abracad.avro.edn/Element clojure.core/identity, abracad.avro.edn/Character clojure.core/char, abracad.avro.edn/Symbol clojure.core/symbol, abracad.avro.edn/Keyword clojure.core/keyword, abracad.avro.edn/Byte clojure.core/byte, abracad.avro.edn/Short clojure.core/shor...
b5dbcd39f94b08a7c94a62ba8006a648bf1bc454154ca5b91f4ecb70a9b98107
nyu-acsys/drift
a-dotprod.ml
(* USED: PLDI2011 as a-prod *) let make_array n i = assert (0 <= i && i < n); 0 let rec dotprod n v1 v2 i sum = if i >= n then sum else dotprod n v1 v2 (i + 1) (sum + v1 i * v2 i) let main (z:int(*-:{v:Int|true}*)) (n:int(*-:{v:Int|true}*)) = let v1 = make_array n in let v2 = make_array n in if z=0 t...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/high/a-dotprod.ml
ocaml
USED: PLDI2011 as a-prod -:{v:Int|true} -:{v:Int|true}
let make_array n i = assert (0 <= i && i < n); 0 let rec dotprod n v1 v2 i sum = if i >= n then sum else dotprod n v1 v2 (i + 1) (sum + v1 i * v2 i) let v1 = make_array n in let v2 = make_array n in if z=0 then (dotprod n v1 v2 z z; ())
58017e0fe1e113ed701368228114e787112ea4ee4bdedc64f771c9b8534f216a
monadbobo/ocaml-core
extra_fields.mli
open Core.Std exception Not_a_record_type of Sexp.t with sexp (* The create [t_of_sexp] function will record whichever extra fields were passed in. *) module Make (M:Sexpable) : sig type t = { value : M.t; extra_fields : string list } include Sexpable with type t := t end
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/extra_fields.mli
ocaml
The create [t_of_sexp] function will record whichever extra fields were passed in.
open Core.Std exception Not_a_record_type of Sexp.t with sexp module Make (M:Sexpable) : sig type t = { value : M.t; extra_fields : string list } include Sexpable with type t := t end
1f4297313c7602a9d4d887681a450572a724edd0bb8fb2f261d9226647630ffd
donaldsonjw/bigloo
gstplugin.scm
;*=====================================================================*/ ;* .../prgm/project/bigloo/api/gstreamer/src/Llib/gstplugin.scm */ ;* ------------------------------------------------------------- */ * Author : * / * Creation : We d Jan ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/api/gstreamer/src/Llib/gstplugin.scm
scheme
*=====================================================================*/ * .../prgm/project/bigloo/api/gstreamer/src/Llib/gstplugin.scm */ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * GstPlugin ...
* Author : * / * Creation : We d Jan 2 06:53:19 2008 * / * Last change : Tue Nov 15 17:35:49 2011 ( serrano ) * / * Copyright : 2008 - 11 * / (module __gstreamer_gstplugi...
a622a069d1582b47d74c06a448632f2a2140d5f0371ae5eaf0667d113a80727b
0zat/gen-bs
js_type.ml
open Bs_type let rec to_bs_type return_or_arg : Js.type_ -> Bs_type.type_ = function | `Int -> `Int | `Float -> `Float | `String -> `String | `Unit -> `Unit | `Boolean -> `Js_boolean | `Null type_ -> `Null(to_bs_type return_or_arg type_) | `Undef type_ -> `Undef(to_bs_type return_or_arg type_) | `Arra...
null
https://raw.githubusercontent.com/0zat/gen-bs/20348991775d9ef3974c3b824968a0ab219502a8/src/intermediate/js_to_bs/js_obj_to_module/from_js/js_type.ml
ocaml
the reason of `Return is object subtype contravariant replace only toplevel boolean
open Bs_type let rec to_bs_type return_or_arg : Js.type_ -> Bs_type.type_ = function | `Int -> `Int | `Float -> `Float | `String -> `String | `Unit -> `Unit | `Boolean -> `Js_boolean | `Null type_ -> `Null(to_bs_type return_or_arg type_) | `Undef type_ -> `Undef(to_bs_type return_or_arg type_) | `Arra...
7ebc7a6d7f48f2b994126144cbcbce41c82c10e42088d7de71f9986cc805a2fd
39aldo39/klfc
Tmk.hs
# LANGUAGE UnicodeSyntax , NoImplicitPrelude # module Lookup.Tmk where import BasePrelude import Prelude.Unicode import Data.Set (Set) import qualified Data.Set as S import qualified Layout.Action as A import qualified Layout.Modifier as M import qualified Layout.Pos as P import Layout.Types posAndTmkAction ∷ [(Po...
null
https://raw.githubusercontent.com/39aldo39/klfc/83908c54c955b9c160b999bc8f0892401ba4adbf/src/Lookup/Tmk.hs
haskell
# LANGUAGE UnicodeSyntax , NoImplicitPrelude # module Lookup.Tmk where import BasePrelude import Prelude.Unicode import Data.Set (Set) import qualified Data.Set as S import qualified Layout.Action as A import qualified Layout.Modifier as M import qualified Layout.Pos as P import Layout.Types posAndTmkAction ∷ [(Po...
ac0c9fedaf40af244da8e464327cf6f58fe78ef82160c70f4afcf12165f7db06
Clozure/ccl
objc-support.lisp
-*-Mode : LISP ; Package : CCL -*- ;;; ;;; Copyright 2016 Clozure Associates ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by applicable...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/objc-bridge/objc-support.lisp
lisp
Package : CCL -*- Copyright 2016 Clozure Associates 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. ...
distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") #+darwin-target (unless (>= (parse-integer (software-version) :junk-allowed t) 10) (error "the Objective-C bridge needs at least Mac OS X 10.6")) (defloadvar *warned-deprecated-constructs* ()) (defun warn-about-deprecated-ob...
e907d3b5f9af9dd9f93c7ed76598faeb1c67e05e5096acf93f3dbadc847c53dd
antifuchs/sbcl
env.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; ;;;; The software is in the public domain and is provided with ;;;; absolutely no warranty. See the COPYING and CREDITS files for ;;;; more information. (in-package :sb-cltl2) #| TODO: (map-environment) |# (defvar *null...
null
https://raw.githubusercontent.com/antifuchs/sbcl/789bf105edca031aff991ad16a5fd207812336a0/contrib/sb-cltl2/env.lisp
lisp
more information. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. TODO: (map-environment) a null policy is used to identify a null lexenv process-decls looks in *lexenv* policy to decide what warnings to print process-de...
This software is part of the SBCL system . See the README file for (in-package :sb-cltl2) (defvar *null-lexenv* (make-null-lexenv)) (defun augment-environment (env &key variable symbol-macro function macro declare) "Create a new lexical environment by augmenting ENV with new information. VARIABLE ...
838c9d4df7e1f4a25673216b1a354d552e15da216d1ce2c318909d26e0624b9b
w3ntao/sicp-solution
connector.rkt
#lang racket (provide (all-defined-out)) (define nil '()) (define (adder a-0 a-1 sum) (define (process-new-value) (cond ((and (has-value? a-0) (has-value? a-1)) (set-value! sum (+ (get-value a-0) (get-value a-1)) ...
null
https://raw.githubusercontent.com/w3ntao/sicp-solution/00be3a7b4da50bb266f8a2db521a24e9f8c156be/ToolBox/ConstraintSystem/connector.rkt
racket
#lang racket (provide (all-defined-out)) (define nil '()) (define (adder a-0 a-1 sum) (define (process-new-value) (cond ((and (has-value? a-0) (has-value? a-1)) (set-value! sum (+ (get-value a-0) (get-value a-1)) ...
e0e73b23f6fd45d711bcf98c541948ea2115444694d6167d0a153364b09af318
vikram/lisplibraries
file-socket.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: file-socket.cl ;;;; Purpose: UFFI Example file to get a socket on a file Programmer : Date Started : Jul 2...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/uffi-1.5.17/examples/file-socket.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: file-socket.cl Purpose: UFFI Example file to get a socket on a file ************************************************************************* Values...
Programmer : Date Started : Jul 2002 $ I d : file-socket.lisp 10608 2005 - 07 - 01 00:39:48Z This file , part of UFFI , is Copyright ( c ) 2002 - 2005 by (in-package :cl-user) (uffi:def-constant PF_UNIX 1) (uffi:def-constant SOCK_STREAM 1) (uffi:def-function ("socket" c-socket) ((family :in...
9314ae96d7f48a0399353f4341c800856e7e1ea813d204d2f52b708fc38c7742
TrustInSoft/tis-interpreter
services.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/callgraph/services.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
e7e20b246235a4b8195f803150c3b0c2eb7ffd45f9a656c54713e0a932152101
aws-beam/aws-erlang
aws_codeguruprofiler.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . @doc This section provides documentation for the Amazon CodeGuru Profiler %% API operations. %% Amazon CodeGuru Profiler collects runtime performance data from your live %% applications, and provides recommendations that can h...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_codeguruprofiler.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! API operations. applications, and provides recommendations that can help you fine-tune your application performance. Using machine learning algorithms, CodeGuru Profiler can help you find your most expensive lines of code and suggest ways you can improve efficiency and ...
See -beam/aws-codegen for more details . @doc This section provides documentation for the Amazon CodeGuru Profiler Amazon CodeGuru Profiler collects runtime performance data from your live Amazon CodeGuru Profiler provides different visualizations of profiling Amazon CodeGuru Profiler currently supports appl...
4d3b30ba7e253fcda19aad0e1c99f0b229de2cf6da30b3c31da66daf77924e3b
tvraman/aster-math
cv-reading-rules.lisp
;;; -*- Mode: LISP -*- ;;; ;;; ;;; (in-package :aster) Sun Dec 20 13:21:39 EST 1992 Reading rule definitions for objects defined in VanLoan 's book . ;;; Object definitions are in <(file object definitions)> (def-reading-rule (c-vect...
null
https://raw.githubusercontent.com/tvraman/aster-math/b57d986b4beb90b3c095761be143067ebed7bd45/lisp/vanloan-book/cv-reading-rules.lisp
lisp
-*- Mode: LISP -*- ;;; ;;; Object definitions are in <(file object definitions)>
(in-package :aster) Sun Dec 20 13:21:39 EST 1992 Reading rule definitions for objects defined in VanLoan 's book . (def-reading-rule (c-vector simple) "Simple reading rule for a vector" (read-aloud (argument c-vector 1)) (read-aloud "denote a complex " ) (read-aloud (argument c-vector 2 )) (read...
a6777d92b0231aa32fc2c4b9d0d6704feb7e89e1abe158a5ddad21a869820b1b
eutro/gdlisp
extra-symbols.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) (prefix-in % racket/base)) (define-syntax (define-disallows stx) (syntax-parse stx [(_ [name:id only-in:str] ...) (syntax/loc stx (begin (define-syntax (name stx) (raise-syntax-error ...
null
https://raw.githubusercontent.com/eutro/gdlisp/b7568a793c24cb5c858ee5be224404265cbc827e/extra-symbols.rkt
racket
these are actually important for macros...
#lang racket/base (require (for-syntax racket/base syntax/parse) (prefix-in % racket/base)) (define-syntax (define-disallows stx) (syntax-parse stx [(_ [name:id only-in:str] ...) (syntax/loc stx (begin (define-syntax (name stx) (raise-syntax-error ...
4a039c4f05d0da2c557354115ca612fa43757d6ed0e4d2991b30f1ca56c867c2
janestreet/memtrace_viewer_with_deps
js_misc.ml
open! Core_kernel open Js_of_ocaml module Rect = struct type 'a t = { top : 'a ; left : 'a ; bottom : 'a ; right : 'a } [@@deriving sexp, bin_io, compare, fields] let map t ~f = { top = f t.top; left = f t.left; bottom = f t.bottom; right = f t.right } ;; let int_height t = t.bottom...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_dom/src/js_misc.ml
ocaml
* Scrolls to the item marked as "keep-in-view" [viewport_rect_of_element el] gets bounding rect of [elt]. The bounding rect is relative to the view port * Simple wrapper for the binary-search functor * Searches through elements indexed from [0] to [length - 1]. Compute the n'th element in a normalized way, a...
open! Core_kernel open Js_of_ocaml module Rect = struct type 'a t = { top : 'a ; left : 'a ; bottom : 'a ; right : 'a } [@@deriving sexp, bin_io, compare, fields] let map t ~f = { top = f t.top; left = f t.left; bottom = f t.bottom; right = f t.right } ;; let int_height t = t.bottom...
82e5dc4c1fc678a9e0f96d6cefe092fd3bde9bc4b173b4a21948513d334b89a3
JacquesCarette/Drasil
Unitals.hs
module Drasil.SWHS.Unitals where -- all of this file is exported import Language.Drasil import Language.Drasil.Display (Symbol(Atop), Decoration(Delta)) import Language.Drasil.ShortHands import Language.Drasil.Chunk.Concept.NamedCombinators import Data.Drasil.Concepts.Documentation (simulation) import Data.Drasil.Con...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/2178e68e4f62b3210eb2e3a19c2727a4ddf3912a/code/drasil-example/swhs/lib/Drasil/SWHS/Unitals.hs
haskell
all of this file is exported Symbols with Units -- ------------------- Regular Symbols -- ------------------- symbol names can't begin with a capital Not sure how to define anything after this point -------------------- -------------------- FIXME: this list should not be hand-constructed FIXME: should this have u...
import Language.Drasil import Language.Drasil.Display (Symbol(Atop), Decoration(Delta)) import Language.Drasil.ShortHands import Language.Drasil.Chunk.Concept.NamedCombinators import Data.Drasil.Concepts.Documentation (simulation) import Data.Drasil.Constraints (gtZeroConstr) import Data.Drasil.Quantities.Math (gradi...
57ec05733a730a82213ea789e8afc5186d2b665349c95ac94e48dffa2c86a941
babashka/bbin
gen_script.clj
(ns babashka.bbin.gen-script (:require [clojure.edn :as edn] [clojure.string :as str] [fipp.edn :as fipp])) (def bbin-deps (some-> (slurp "deps.edn") edn/read-string :deps)) (def version (-> (slurp "deps.edn") edn/read-string :aliases :neil :project :version)) (def prelude-template ...
null
https://raw.githubusercontent.com/babashka/bbin/c25c3e32f7f049a43528594e6b04d90ff8c92305/dev/babashka/bbin/gen_script.clj
clojure
(ns babashka.bbin.gen-script (:require [clojure.edn :as edn] [clojure.string :as str] [fipp.edn :as fipp])) (def bbin-deps (some-> (slurp "deps.edn") edn/read-string :deps)) (def version (-> (slurp "deps.edn") edn/read-string :aliases :neil :project :version)) (def prelude-template ...
cada63ae45580b6b4b7ac23e251e7bbe333aa04e97182cd49acbb57ede3cb30a
nunchaku-inria/nunchaku
Lift_undefined.mli
(* This file is free software, part of nunchaku. See file "license" for more details. *) (** {1 Lift Undefined} Individually name and declare every "undefined" occurring in the problem. The name "lifting" comes from the similar transformation of "lambda lifting"; we "lift" undefined terms at the top-...
null
https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/transformations/Lift_undefined.mli
ocaml
This file is free software, part of nunchaku. See file "license" for more details. * {1 Lift Undefined} Individually name and declare every "undefined" occurring in the problem. The name "lifting" comes from the similar transformation of "lambda lifting"; we "lift" undefined terms at the top-level.
open Nunchaku_core type term = Term.t val name : string type decode_state val encode_pb : (term, term) Problem.t -> (term, term) Problem.t * decode_state val decode_model : decode_state -> (term, term) Model.t -> (term, term) Model.t val pipe : print:bool -> check:bool -> ((term,term) Problem.t, ...
7ca24264b4c02748da57452eb37ca0ea8db30c7bc5549efcb42133d6d4ab9af9
ssor/erlangDemos
rest_hello_world.erl
%% Feel free to use, reuse and abuse the code in this file. -module(rest_hello_world). %% API. -export([start/0]). %% API. start() -> ok = application:start(crypto), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(rest_hello_world).
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/cowboy/examples/rest_hello_world/src/rest_hello_world.erl
erlang
Feel free to use, reuse and abuse the code in this file. API. API.
-module(rest_hello_world). -export([start/0]). start() -> ok = application:start(crypto), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(rest_hello_world).
3cd93b0f96c5b8698a070024e96f574893280a32c902f015290915fa3f1b18d5
jwiegley/notes
InstructionDefs.hs
outerJoin :: Ord k => Map k a -> Map k b -> Map k (Maybe a, Maybe b) outerJoin xs ys = Map.unionWith combine (Map.map (\a -> (Just a, Nothing)) xs) (Map.map (\b -> (Nothing, Just b)) ys) where combine (Just a, Nothing) (Nothing, Just b) = (Just a, Just b) combine _ _ ...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/5904762/InstructionDefs.hs
haskell
outerJoin :: Ord k => Map k a -> Map k b -> Map k (Maybe a, Maybe b) outerJoin xs ys = Map.unionWith combine (Map.map (\a -> (Just a, Nothing)) xs) (Map.map (\b -> (Nothing, Just b)) ys) where combine (Just a, Nothing) (Nothing, Just b) = (Just a, Just b) combine _ _ ...
15b12d0ff99ca60006879094c44dfa46142e13c1ecde83532ae44fe949082ae9
choener/ADPfusion
Test2V_2.hs
{- Options_GHC -fmax-worker-args=100 #-} {- Options_GHC -fforce-recomp #-} module BenchFun.Test2V_2 where import Data.Vector.Fusion.Stream.Monadic as S import Data.Vector.Fusion.Util import Data.Vector.Unboxed as VU import Debug.Trace import Data.Char (ord) import ADP.Fusion.Point import ADP.Fusion.Term.Test.Point ...
null
https://raw.githubusercontent.com/choener/ADPfusion/fcbbf05d0f438883928077e3d8a7f1cbf8c2e58d/tests/BenchFun/Test2V_2.hs
haskell
Options_GHC -fmax-worker-args=100 # Options_GHC -fforce-recomp # # Inline [0] f # # Inline [0] h #
module BenchFun.Test2V_2 where import Data.Vector.Fusion.Stream.Monadic as S import Data.Vector.Fusion.Util import Data.Vector.Unboxed as VU import Debug.Trace import Data.Char (ord) import ADP.Fusion.Point import ADP.Fusion.Term.Test.Point import ADP.Fusion.Term.Test.Type import Data.PrimitiveArray hiding (map, un...
2612c69de9656626a9c7ce522b568dcc1b0ef85eeea09ff78fa85060047f4bdb
abridgewater/nq-clim
medium.lisp
;;; nq - clim / backend / clx / medium ;;; CLX medium implementation ;;; (cl:defpackage :nq-clim/backend/clx/medium (:use :cl :nq-clim/backend/clx/port :nq-clim/ink/color :nq-clim/ink/indirect-ink :nq-clim/medium/association :nq-clim/medium/basic-medium :nq-clim/me...
null
https://raw.githubusercontent.com/abridgewater/nq-clim/11d339fd0ac77b6d624fc5537b170294a191a3de/backend/clx/medium.lisp
lisp
FIXME: Set clipping region and transform based on SHEET's relation to its mirror. X won't close a polyline automatically, we have to use XLIB:DRAW-RECTANGLES takes x, y, width, height, but we have x, y, x+width, y+height.
nq - clim / backend / clx / medium CLX medium implementation (cl:defpackage :nq-clim/backend/clx/medium (:use :cl :nq-clim/backend/clx/port :nq-clim/ink/color :nq-clim/ink/indirect-ink :nq-clim/medium/association :nq-clim/medium/basic-medium :nq-clim/medium/drawing...
1e8a2b1221d4e8dca01658866b88629201e6ece27605c5ed0ac32f6801609830
nick8325/jukebox
Main.hs
# LANGUAGE CPP # module Main where import Control.Monad import Jukebox.Options import Jukebox.Toolbox import Jukebox.Form #if __GLASGOW_HASKELL__ < 710 import Control.Applicative import Data.Monoid #endif import Data.List import System.Exit import System.Environment main = do prog <- getProgName args <- getArgs ...
null
https://raw.githubusercontent.com/nick8325/jukebox/52c3206d7def50c8ebcc0128c442fa6c2bd4e074/executable/Main.hs
haskell
# LANGUAGE CPP # module Main where import Control.Monad import Jukebox.Options import Jukebox.Toolbox import Jukebox.Form #if __GLASGOW_HASKELL__ < 710 import Control.Applicative import Data.Monoid #endif import Data.List import System.Exit import System.Environment main = do prog <- getProgName args <- getArgs ...
7f591a22316e835db4964e554fc22964d83488e6e145527c680b77bd8a00c952
ocaml-multicore/tezos
background.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/tezt/lib/background.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
89bf9c03a71bf1261868da66660591372f661bd02778e8d4b8d4b4c7a7fcb84b
sseefried/open-epidemic-game
Foreign.hs
-- I always find I have to import a lot of different Foreign.<blah > modules -- in order to get all the functions I want. This module just packages those all up into one module -- module Foreign ( module Foreign.Marshal.Alloc, module Foreign.Marshal.Array, module Foreign.Ptr, module Foreign.Storable, module F...
null
https://raw.githubusercontent.com/sseefried/open-epidemic-game/ed623269022edc056dab3fd6d424295c984febec/src/Foreign.hs
haskell
in order to get all the functions I want. This module just packages those all up
I always find I have to import a lot of different Foreign.<blah > modules into one module module Foreign ( module Foreign.Marshal.Alloc, module Foreign.Marshal.Array, module Foreign.Ptr, module Foreign.Storable, module Foreign.C.String, module Foreign.C.Types ) where import Foreign.Marshal.Alloc import For...
aa83a0869364f2065e58545acaaaeade890d3f3aa781f6692f34d9464fce118e
TrustInSoft/tis-interpreter
trace.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_services/abstract_interp/trace.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
6cc72bcfa1f5ea8ebbffcde9d89db58bc12f21367a41ea15840c9c964c385eb1
dgtized/shimmers
ascendance.cljs
(ns shimmers.sketches.ascendance (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.common.framerate :as framerate] [shimmers.math.probability :as p] [shimmers.sketch :as sketch :include-macros true])) (defrecord Particle [t0 fuel delta-v velocity radius mass]) (defn m...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/ascendance.cljs
clojure
(ns shimmers.sketches.ascendance (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.common.framerate :as framerate] [shimmers.math.probability :as p] [shimmers.sketch :as sketch :include-macros true])) (defrecord Particle [t0 fuel delta-v velocity radius mass]) (defn m...
8484c47330796dfb4d6eb6e349bf5c3c32ab39c7abbf0de69a5e3b7b1e70c4c7
chetmurthy/typpx
s.ml
(** Signatures used in [Make.F] *) module type Typemod = sig val type_implementation: string -> string -> string -> Env.t -> Parsetree.structure -> Typedtree.structure * Typedtree.module_coercion val type_interface: Env.t -> Parsetree.signature -> Typedtree.signature end module type TypedTransformatio...
null
https://raw.githubusercontent.com/chetmurthy/typpx/a740750b75739e686da49b46ded7db7d6874e108/src/s.ml
ocaml
* Signatures used in [Make.F]
module type Typemod = sig val type_implementation: string -> string -> string -> Env.t -> Parsetree.structure -> Typedtree.structure * Typedtree.module_coercion val type_interface: Env.t -> Parsetree.signature -> Typedtree.signature end module type TypedTransformation = sig open Typedtree val map_...
5b563ba6c7be4843a278d25c6b8ff8b1a9ceef5b00ca07925611ab6e731522d4
CSCfi/rems
applications.clj
(ns rems.api.applications (:require [clj-time.core :as time] [clojure.string :as str] [compojure.api.sweet :refer :all] [medley.core :refer [update-existing]] [rems.api.schema :as schema] [rems.service.attachment :as attachment] [rems.service.com...
null
https://raw.githubusercontent.com/CSCfi/rems/8a433555fab72e24d573113cc2af412156642c53/src/clj/rems/api/applications.clj
clojure
required for route :roles Response models Api implementation TODO: schema could do these coercions for us hide possibly sensitive events, but allow other explicitly returned data the path parameter matches also non-numeric paths, so this route must be after all overlapping routes could also set "attachment" here...
(ns rems.api.applications (:require [clj-time.core :as time] [clojure.string :as str] [compojure.api.sweet :refer :all] [medley.core :refer [update-existing]] [rems.api.schema :as schema] [rems.service.attachment :as attachment] [rems.service.com...
8bce555940ce1a4bf1ada4ec280909926be5eafca367b44ae46e76f795f7e424
goblint/analyzer
mainTest.ml
open OUnit2 let all_tests = ("" >::: [ IntDomainTest.test (); FloatDomainTest.test (); MapDomainTest.test (); SolverTest.test (); LvalTest.test (); CompilationDatabaseTest.tests; LibraryDslTest.tests; (* etc *) "domaintest" >::: QCheck_ounit.to_ounit2_test_list Maindomaintest.all_test...
null
https://raw.githubusercontent.com/goblint/analyzer/69d12c316e89e66d10ad655cbc4e235e4d51bc69/unittest/mainTest.ml
ocaml
etc
open OUnit2 let all_tests = ("" >::: [ IntDomainTest.test (); FloatDomainTest.test (); MapDomainTest.test (); SolverTest.test (); LvalTest.test (); CompilationDatabaseTest.tests; LibraryDslTest.tests; "domaintest" >::: QCheck_ounit.to_ounit2_test_list Maindomaintest.all_testsuite; Int...
ddc006279f4674f55f75629200fd771ed9d641e0e1c55aa97c853a6ac3ad8bac
spurious/sagittarius-scheme-mirror
test.scm
;; -*- scheme -*- (add-load-path "./threads") (add-load-path "./time") (import (srfi :64 testing) (srfi :39) (rnrs) (sagittarius) (sagittarius filewatch) (sagittarius threads) ;; need shared-queue (util concurrent)) (test-begin "Sagittarius filewatch") (test-assert make-filesystem-watcher) (let ((w (make-file...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/ext/filewatch/test.scm
scheme
-*- scheme -*- need shared-queue updating access timestamp by default. add or remove add again retry add or remove finishing watcher from event handler add or remove
(add-load-path "./threads") (add-load-path "./time") (import (srfi :64 testing) (srfi :39) (rnrs) (sagittarius) (sagittarius filewatch) (sagittarius threads) (util concurrent)) (test-begin "Sagittarius filewatch") (test-assert make-filesystem-watcher) (let ((w (make-filesystem-watcher))) (test-assert (filesy...
c87d375182ebd66c7372239cd32937eb8467e691e9e153ae80ab58b6a8494aff
Th30n/cl-shake
map.lisp
Copyright ( C ) 2016 ;;;; ;;;; This program 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 2 of the License , or ;;;; (at your option) any later version. ;;;; ;;;; This program is distribu...
null
https://raw.githubusercontent.com/Th30n/cl-shake/80550dba138fee977bf2f6deb62739dc7f381216/shake-bspc/map.lisp
lisp
This program is free software; you can redistribute it and/or modify either version 2 of the License , or (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...
Copyright ( C ) 2016 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 along 51 Franklin Street , Fifth Floor , Boston , USA . (in-package #:shake-bspc) (defconstant +clip-square+ 0.25 "Size of the square used for exp...
381d8dfa624addd334004377da2bdda86f838f0fa2a6ab7b9ca839b2671b9df3
cnuernber/tmdjs
webapp.cljs
(ns testapp.webapp (:require [goog.dom :as gdom] [reagent.dom] [reagent.ratom :refer [atom]] [tech.v3.libs.cljs-ajax :refer [GET POST] :as tech-cljs-ajax] [tech.v3.dataset :as ds] [tech.v3.datatype.functional :as dfn])) (defonce app* (atom {})) (defn mer...
null
https://raw.githubusercontent.com/cnuernber/tmdjs/c0086716801cc0fa3161813a4598772241909410/testapp/src/testapp/webapp.cljs
clojure
(ns testapp.webapp (:require [goog.dom :as gdom] [reagent.dom] [reagent.ratom :refer [atom]] [tech.v3.libs.cljs-ajax :refer [GET POST] :as tech-cljs-ajax] [tech.v3.dataset :as ds] [tech.v3.datatype.functional :as dfn])) (defonce app* (atom {})) (defn mer...
1bea9e400c9e5601ddbbe3dbb73924c639cace1dc84a76b1889bd7ed0d6800ba
startalkIM/ejabberd
mod_proxy65_sm.erl
%%%---------------------------------------------------------------------- %%% File : mod_proxy65_sm.erl Author : < > Purpose : manager . Created : 12 Oct 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free software; you can redistribute it and/or m...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_proxy65_sm.erl
erlang
---------------------------------------------------------------------- File : mod_proxy65_sm.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without eve...
Author : < > Purpose : manager . Created : 12 Oct 2006 by < > ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General ...
c56461ee24d0541633a9487ca9001393b5eb2518844e04c8e3bbaaf594ce0716
23Skidoo/raw-strings-qq
RawRegex.hs
# LANGUAGE QuasiQuotes # module Main where import Text.Regex.Posix import Text.RawString.QQ haystack :: String haystack = "My e-mail address is " needle :: String needle = [r|\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}|] multiline :: String multiline = [r|<HTML> <HEAD> <TITLE>Auto-generated html formated source</TITLE> ...
null
https://raw.githubusercontent.com/23Skidoo/raw-strings-qq/c517eb0135bbb472b1843c0bbcf50ff8b7bb1097/examples/RawRegex.hs
haskell
# LANGUAGE QuasiQuotes # module Main where import Text.Regex.Posix import Text.RawString.QQ haystack :: String haystack = "My e-mail address is " needle :: String needle = [r|\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}|] multiline :: String multiline = [r|<HTML> <HEAD> <TITLE>Auto-generated html formated source</TITLE> ...
23913a1ed78ac0fdb656edf3aa4b6ad4437eb4e26504d083c560d7a3b8f496b8
yangyang5214/asciicast2mp4
parser_test.cljc
(ns asciinema.vt.parser-test #?(:cljs (:require-macros [cljs.test :refer [is are deftest testing]])) (:require #?(:clj [clojure.test :refer [is are deftest testing]] :cljs [cljs.test]) [asciinema.vt.parser :as parser :refer [parse]])) (defn test-event [initial-state input expected-state ...
null
https://raw.githubusercontent.com/yangyang5214/asciicast2mp4/5404a53ae331d44abfada6002b9affac76073418/asciinema-player/vt/test/asciinema/vt/parser_test.cljc
clojure
(ns asciinema.vt.parser-test #?(:cljs (:require-macros [cljs.test :refer [is are deftest testing]])) (:require #?(:clj [clojure.test :refer [is are deftest testing]] :cljs [cljs.test]) [asciinema.vt.parser :as parser :refer [parse]])) (defn test-event [initial-state input expected-state ...
027c12e6e19acd6bff4f7fd8c34f52889b98e0fe5e07be60b341bfc4338e0032
RefactoringTools/HaRe
FunIn1.hs
module FunIn1 where --The application of a function is replaced by the right-hand side of the definition, --with actual parameters replacing formals. --In this example, unfold 'addthree'. --This example aims to test unfolding a constant. main :: Int -> Int main = \x -> case x of 1 -> 1 + main 0 ...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/unfoldDef/FunIn1.hs
haskell
The application of a function is replaced by the right-hand side of the definition, with actual parameters replacing formals. In this example, unfold 'addthree'. This example aims to test unfolding a constant.
module FunIn1 where main :: Int -> Int main = \x -> case x of 1 -> 1 + main 0 0 -> (app addthree 1 2 3) app :: (a -> b) -> a -> b app = \f x -> f x addthree :: Int -> Int -> Int -> Int addthree = \a b c -> a + b + c
df9406b7eaae683b0b08e6e2a27a0907270a211c180a8535eea6097628699ca7
DianaPajon/tiger
TigerEscap.hs
module TigerEscap where Ocultamos nombres del preludio , pero por algo que queremos , entonces . import Prelude hiding (error, lookup) import qualified Prelude as P (error) import qualified Data.Map.Strict as M import TigerAbs import TigerErrore...
null
https://raw.githubusercontent.com/DianaPajon/tiger/30d360f02f5fc57883f988a1cbb581208ecd2744/src/TigerEscap.hs
haskell
Debugging trace :: String -> a -> a Depth Operators | Devuelve la profundidad actual. *****DEBUGGING!! ******** errores no está en Var. ```insert name esc computacion``` computacion tiene un entorno[name -> esc] y si escapa o no. los entorno intermedios...
module TigerEscap where Ocultamos nombres del preludio , pero por algo que queremos , entonces . import Prelude hiding (error, lookup) import qualified Prelude as P (error) import qualified Data.Map.Strict as M import TigerAbs import TigerErrore...
0dfb731b7b7ffa2748249aae62b3f1c1ff49bfc5ef9457a80bb7239818fcb040
rahulmutt/codec-jvm
Field.hs
module Codec.JVM.Field where import Data.Binary.Put (Put) import Data.Set (Set) import qualified Data.List as L import Codec.JVM.Attr (Attr, putAttr, unpackAttr) import Codec.JVM.Const (Const(CUTF8)) import Codec.JVM.ConstPool (ConstPool, putIx) import Codec.JVM.Internal (putI16) import Codec.JVM.Types -- -4.html#j...
null
https://raw.githubusercontent.com/rahulmutt/codec-jvm/33c6b01b9bf463635b2ecbbd11e4e8dbdc4c53fc/src/Codec/JVM/Field.hs
haskell
-4.html#jvms-4.5
module Codec.JVM.Field where import Data.Binary.Put (Put) import Data.Set (Set) import qualified Data.List as L import Codec.JVM.Attr (Attr, putAttr, unpackAttr) import Codec.JVM.Const (Const(CUTF8)) import Codec.JVM.ConstPool (ConstPool, putIx) import Codec.JVM.Internal (putI16) import Codec.JVM.Types data FieldIn...
bb176dd2c626bede7367d6867e461cf1dfbdc15a1c79ead4dc3b9d05918ccfee
gorillalabs/sparkling
api_test.clj
(ns sparkling.api-test (:import [org.apache.spark HashPartitioner] [scala Some Tuple2] [org.apache.spark.api.java JavaSparkContext JavaRDD]) (:use clojure.test) (:require [clojure.set] [sparkling.api :as s] [sparkling.conf :as conf] [sparkling.scalaInterop...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/test/sparkling/api_test.clj
clojure
this is to have the reader macro sparkling/tuple defined this won't work due to a limitation in serializable-fn TODO: (future-fact "repartition returns a new RDD with exactly n partitions")
(ns sparkling.api-test (:import [org.apache.spark HashPartitioner] [scala Some Tuple2] [org.apache.spark.api.java JavaSparkContext JavaRDD]) (:use clojure.test) (:require [clojure.set] [sparkling.api :as s] [sparkling.conf :as conf] [sparkling.scalaInterop...
070abd1ad47eb9cec19d0ae349683744e1e06e889a0eecf8f3c85d439030e497
static-analysis-engineering/codehawk
tCHSpecification.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/a6cbbdc2da7f171e0879fb94fe707bb00c9293c6/CodeHawk/CHT/tchlib/tCHSpecification.ml
ocaml
tchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
40a408c82cc92bec906af54c7f79c6917b0ac49687588e2965988fccdd4083fb
nathell/skyscraper
db_self_pointing_test.clj
(ns skyscraper.db-self-pointing-test (:require [clojure.java.jdbc :as jdbc] [clojure.test :as test :refer [deftest is]] [net.cgrand.enlive-html :refer [select text]] [skyscraper.cache :as cache] [skyscraper.core :refer [defprocessor scrape scrape!]] [skyscraper.enlive-helpers :refer [href]] ...
null
https://raw.githubusercontent.com/nathell/skyscraper/eebc1787b7cb053db7601868545d1a93975a1651/test/skyscraper/db_self_pointing_test.clj
clojure
(ns skyscraper.db-self-pointing-test (:require [clojure.java.jdbc :as jdbc] [clojure.test :as test :refer [deftest is]] [net.cgrand.enlive-html :refer [select text]] [skyscraper.cache :as cache] [skyscraper.core :refer [defprocessor scrape scrape!]] [skyscraper.enlive-helpers :refer [href]] ...
92cce58d3bcc3a24b53bac462a19059b3a4540376e3c9fa4ff5d8d2bc06c9811
mstksg/advent-of-code-2018
Elfcode.hs
module AOC.Common.Elfcode ( Mem, IMem , ECProg , Instr(..) , OpCode(..) , runOp , execOp , runECProg , evalECProg , execECProg , traceECProg , traceECProg_ -- * Optimizers , optimizeEC , Peephole , peep , currPeepPos -- * Parsing , parseElfcode , elfcodeParser ) where import ...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2018/fc76f763ece2db87dc5e30b8540559a539665f17/src/AOC/Common/Elfcode.hs
haskell
* Optimizers * Parsing ^ expected A ^ expected B ^ expected C
module AOC.Common.Elfcode ( Mem, IMem , ECProg , Instr(..) , OpCode(..) , runOp , execOp , runECProg , evalECProg , execECProg , traceECProg , traceECProg_ , optimizeEC , Peephole , peep , currPeepPos , parseElfcode , elfcodeParser ) where import Control.Applicative imp...
227750231a90a352532d08465618d95e7fd7dab283e4cdf62f552da6bc232b6c
tschady/advent-of-code
d14_test.clj
(ns aoc.2015.d14-test (:require [aoc.2015.d14 :as sut] [clojure.test :refer :all])) (def test-input ["Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seconds." "Dancer can fly 16 km/s for 11 seconds, but then must rest for 162 seconds."]) (deftest part-1-examples (is (= 1120 (sut...
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2015/d14_test.clj
clojure
(ns aoc.2015.d14-test (:require [aoc.2015.d14 :as sut] [clojure.test :refer :all])) (def test-input ["Comet can fly 14 km/s for 10 seconds, but then must rest for 127 seconds." "Dancer can fly 16 km/s for 11 seconds, but then must rest for 162 seconds."]) (deftest part-1-examples (is (= 1120 (sut...
a0e9cab60eca59cd41686bfa8e2428d5d083acd0ddba58a7230f459c9b9ef416
atgreen/cl-etcd
package.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - ETCD ; Base : 10 -*- ;;; 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 ...
null
https://raw.githubusercontent.com/atgreen/cl-etcd/36e6fa07c069953525579115f4f143166dcd22fb/package.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - ETCD ; Base : 10 -*- This program is free software: you can redistribute it and/or This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ...
Copyright ( C ) 2021 < > 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 . You should have received a copy of the GNU Affero General Public (defpackage #:cl-etcd ...
eaaafc2b4c25886b9c70f6ce9bb9eea40d528be5f432c3a67e736afa5b129d6a
ciderpunx/57-exercises-for-programmers
P10CheckoutSpec.hs
module P10CheckoutSpec (main,spec) where import Test.Hspec import Test.Hspec.QuickCheck import P10Checkout hiding (main) main :: IO () main = hspec spec spec = do describe "getTax" $ do prop "works out tax correctly" $ \x -> getTax x `shouldReturn` x*0.055 describe "totalize" $ do it "should work o...
null
https://raw.githubusercontent.com/ciderpunx/57-exercises-for-programmers/25958ab80cc3edc29756d3bddd2d89815fd390bf/test/P10CheckoutSpec.hs
haskell
module P10CheckoutSpec (main,spec) where import Test.Hspec import Test.Hspec.QuickCheck import P10Checkout hiding (main) main :: IO () main = hspec spec spec = do describe "getTax" $ do prop "works out tax correctly" $ \x -> getTax x `shouldReturn` x*0.055 describe "totalize" $ do it "should work o...
74d353e370d10e351348d3697cf344e12761a301aa97c05321a02ab57766e17b
AndrasKovacs/ELTE-func-lang
Tut02.hs
{-# OPTIONS -fwarn-incomplete-patterns #-} module Tut02 where import Prelude hiding (Eq(..), Ord(..), Functor(..)) --- The and : -- ghci> :i Eq class Eq a where (==) :: a -> a -> Bool instance Eq Bool where -- False == False = True -- True == False = False -- False == True = False -- True == True =...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/0519a6f17f2e4d9bb5f7416750d1b8629a672632/2021-22-1/gyak_2/Tut02.hs
haskell
# OPTIONS -fwarn-incomplete-patterns # - The and : ghci> :i Eq False == False = True True == False = False False == True = False True == True = True (Eq a) (Eq [a]) ghci> :i Ord --- The Functor typeclass: ghci> :i Functor fmap :: (a -> b) -> [a] -> [b] data T a = T1 ..... ...
module Tut02 where import Prelude hiding (Eq(..), Ord(..), Functor(..)) class Eq a where (==) :: a -> a -> Bool instance Eq Bool where False == False = True True == True = True _ == _ = False instance Eq a => Eq (Maybe a) where Nothing == Nothing = True Just x == Just y = x == y ( Eq a ) ...
00ee8feedb74a666fdebd6842ac66742068759a7ad8d06bc4eb855ce07535701
nervous-systems/eulalie
mapping.cljc
(ns eulalie.test.dynamo.mapping (:require [eulalie.util.json.mapping :as mapping] [eulalie.test.dynamo.test-data :as test-data] [eulalie.dynamo.key-types :as key-types] [eulalie.util] #? (:clj [clojure.test :refer [deftest is]] :cljs ...
null
https://raw.githubusercontent.com/nervous-systems/eulalie/ee435987278f5ed628f576700b716d9d0bc17c61/test/eulalie/test/dynamo/mapping.cljc
clojure
(ns eulalie.test.dynamo.mapping (:require [eulalie.util.json.mapping :as mapping] [eulalie.test.dynamo.test-data :as test-data] [eulalie.dynamo.key-types :as key-types] [eulalie.util] #? (:clj [clojure.test :refer [deftest is]] :cljs ...
7d8f1e05d21828e9cdd0154fa0c6c82a69e9a92c9b3de2bd1e9ad5430412cc72
rajasegar/cl-bootstrap
cl-bootstrap.lisp
file : (in-package :cl-bootstrap) (defmacro bs-container ((&key (fluid nil)) &body body) "Bootstrap Grid Container. Set :fluid t for fluid layout." `(with-html-output (*standard-output*) (:div :class ,(if fluid "container-fluid" "container") ,@body))) (defmacro bs-row (&body body) "Use r...
null
https://raw.githubusercontent.com/rajasegar/cl-bootstrap/c6a1150bd3609817634d8c11d53ac1e97f114796/cl-bootstrap.lisp
lisp
file : (in-package :cl-bootstrap) (defmacro bs-container ((&key (fluid nil)) &body body) "Bootstrap Grid Container. Set :fluid t for fluid layout." `(with-html-output (*standard-output*) (:div :class ,(if fluid "container-fluid" "container") ,@body))) (defmacro bs-row (&body body) "Use r...
e280f52a00b1ef63c422c0c3cacac51d3798566fdd195653d5b833ea8b25a561
input-output-hk/cardano-sl
DB.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE TypeFamilies #-} # LANGUAGE UndecidableInstances # -- | Module containing explorer-specific logic and data module Pos.Explorer.DB ( ExplorerOp (..) , Page , Epoch , EpochPagedBlocksKey , numOfLastTxs , defaultPageSize ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/explorer/src/Pos/Explorer/DB.hs
haskell
# LANGUAGE TypeFamilies # | Module containing explorer-specific logic and data * For testing -------------------------------------------------------------------------- Types -------------------------------------------------------------------------- Left like type aliases in order to remain flexible. TODO: ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE UndecidableInstances # module Pos.Explorer.DB ( ExplorerOp (..) , Page , Epoch , EpochPagedBlocksKey , numOfLastTxs , defaultPageSize , getTxExtra , getAddrHistory , getAddrBalance , getUtxoSum ,...
5bb793bff31f50d2d82b826738e29d8b76a8e84911a292d4eaf66de5cec3a249
faylang/fay
Monad.hs
{-# LANGUAGE EmptyDataDecls #-} module Monad where main :: Fay () main = do 123 <- return 123 x <- return 456 print x >> return () x <- return 666 >>= \_ -> return 789 y <- return 101112 print x print y
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/Monad.hs
haskell
# LANGUAGE EmptyDataDecls #
module Monad where main :: Fay () main = do 123 <- return 123 x <- return 456 print x >> return () x <- return 666 >>= \_ -> return 789 y <- return 101112 print x print y
7640602d30c93d05036d831b206164028d1c08bdf67e6dcc21fd7a7ee027eb6b
mirage/mirage-tcpip
segment.mli
* Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/mirage-tcpip/efbebdf22c0b4dbc2e32cca8948a6dc1fe146aad/src/tcp/segment.mli
ocaml
* TCP segments * Individual received TCP segment * Queue of receive segments * Given the current receive queue and an incoming packet, update the window, extract any ready segments into the user receive queue, and signal any acks to the Tx queue * Pre-transmission queue * Queue of pre-transmission segm...
* Copyright ( c ) 2010 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
1985695d69834080ac23ba9dd5c2d725a6cbaf53e6cb9a9d5e92dd22132d8de5
protz/mezzo
Bash.mli
(*****************************************************************************) (* Mezzo, a programming language based on permissions *) Copyright ( C ) 2011 , 2012 and (* *) (* This program is free softwar...
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/lib/Bash.mli
ocaml
*************************************************************************** Mezzo, a programming language based on permissions This program is free software: you can redistribute it and/or modify (at your optio...
Copyright ( C ) 2011 , 2012 and it under the terms of the GNU 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 General Public License type colors = { green: string; re...
a6b323d9d0b8678346bd62c03b3b13c8ed0e9662638441513d51fd8a3f2f76cb
Data-Rx/google-cloud
oauth_test.clj
(ns google-cloud.oauth-test (:require [clojure.test :refer :all] [clj-time.core :as time] [cheshire.core :as ch] [buddy.sign.jwt :as jwt] [buddy.core.keys :as keys] [google-cloud.oauth :as sut])) (def dummy-creds...
null
https://raw.githubusercontent.com/Data-Rx/google-cloud/708f3e940e749a045d41301c36a2c647bd4fd7e9/test/google_cloud/oauth_test.clj
clojure
(ns google-cloud.oauth-test (:require [clojure.test :refer :all] [clj-time.core :as time] [cheshire.core :as ch] [buddy.sign.jwt :as jwt] [buddy.core.keys :as keys] [google-cloud.oauth :as sut])) (def dummy-creds...
7e9c3ce9669303ded02cc8b478dcdb1e677d5b85625afba27e37eda6134a999b
benoitc/cbt
cbt_backend.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/benoitc/cbt/49b99e56f406f918739adde152e8a4908e755521/src/cbt_backend.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT @doc backend behaviour to handle the btree storage . -module(cbt_backend). -type ref() :: pid() | atom(). -export_types([ref/0]). append an Erlang te...
1778c408088030176b7812b49fea9a0be0898284f3d1cfc374122e96eade0cc8
cloudant/mem3
mem3_rep.erl
-module(mem3_rep). -export([ go/2, go/3, make_local_id/2, find_source_seq/4 ]). -export([ changes_enumerator/3 ]). -include("mem3.hrl"). -include_lib("couch/include/couch_db.hrl"). -define(CTX, #user_ctx{roles = [<<"_admin">>]}). -record(acc, { batch_size, batch_count, revcount ...
null
https://raw.githubusercontent.com/cloudant/mem3/49b41333f6acd2e9154e182cf66b67efaf58ac7b/src/mem3_rep.erl
erlang
@doc Find and return the largest update_seq in SourceDb When reasoning about this function it is very important to understand the direction of replication for this comparison. We're only interesting in internal replications initiated by this node to the node being replaced. When doing a replacement the most impo...
-module(mem3_rep). -export([ go/2, go/3, make_local_id/2, find_source_seq/4 ]). -export([ changes_enumerator/3 ]). -include("mem3.hrl"). -include_lib("couch/include/couch_db.hrl"). -define(CTX, #user_ctx{roles = [<<"_admin">>]}). -record(acc, { batch_size, batch_count, revcount ...
99ab6a6a0a90298c5e4ead65164bd966466d1612d135f8b4b596eb6320d3e22a
samsergey/formica
formal-in-tests.rkt
#lang racket/base (require rackunit) (require "formal-out-test.rkt") ;; to be done with 'formal-in' form #;(require (except-in "formal-out-test.rkt" %a-provide-test% %a-provide-test%? %a-provide-test%:) (formal-in "formal-out-test.rkt" %a-provide...
null
https://raw.githubusercontent.com/samsergey/formica/b4410b4b6da63ecb15b4c25080951a7ba4d90d2c/tests/formal-in-tests.rkt
racket
to be done with 'formal-in' form (require (except-in "formal-out-test.rkt"
#lang racket/base (require rackunit) (require "formal-out-test.rkt") %a-provide-test% %a-provide-test%? %a-provide-test%:) (formal-in "formal-out-test.rkt" %a-provide-test%)) (test-case "formal-out tests" (check-pred procedure? %a-provide-test%...
5bd634500027e469ccd703aef34bb3a812eb7bfd7a5a83ca73a69cf46214ec91
johnmn3/perc
core.cljc
(ns perc.core (:require [clojure.string :as string] #?(:cljs [cljs.reader :refer [read-string]]) [clojure.walk :as w])) (defn element-starts-with-symbol? [sym el] (and (= (str sym) (->> el str (take-while #{(first (str sym))}) (apply str))) (= (str sym) (->> el st...
null
https://raw.githubusercontent.com/johnmn3/perc/5f60211132fc40ea9c6a4ebe1bdd4e67d58b390a/src/perc/core.cljc
clojure
(ns perc.core (:require [clojure.string :as string] #?(:cljs [cljs.reader :refer [read-string]]) [clojure.walk :as w])) (defn element-starts-with-symbol? [sym el] (and (= (str sym) (->> el str (take-while #{(first (str sym))}) (apply str))) (= (str sym) (->> el st...
4396ed1ed73f1394691719ddc3f149b7a9346df683351e4563ce83b326aa5773
gleber/erlhask
Syntax.hs
----------------------------------------------------------------------------- -- | -- Module : Language.CoreErlang.Syntax Copyright : ( c ) 2008 ( c ) 2008 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experimental -- Portability : ...
null
https://raw.githubusercontent.com/gleber/erlhask/0c1b0263a7226d64bd9da0fd5b441eea2f997461/src/Language/CoreErlang/Syntax.hs
haskell
--------------------------------------------------------------------------- | Module : Language.CoreErlang.Syntax License : BSD-style (see the file LICENSE) Stability : experimental Portability : portable A suite of datatypes describing the abstract syntax of CoreErlang 1.0.3. </> --------------...
Copyright : ( c ) 2008 ( c ) 2008 Maintainer : < > # LANGUAGE DeriveDataTypeable , DeriveGeneric , FlexibleInstances # module Language.CoreErlang.Syntax ( Module(..), FunDef(..), Exp(..), Exps(..), Alt(..), Guard(..), List(..), TimeOut(..), BitString(..), Functio...
9cc21438cf03618acebce73e8a3783e63b68508b2ea2730a0fc3b3020cfeb6ad
coccinelle/coccinelle
sequence.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/bundles/menhirLib/menhir-20181113/src/sequence.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
cb3c446262deba3b29c203cea8dbbe7d78394ccfcf7d0f3d01172ed9111b6ae8
AdRoll/rebar3_format
default_formatter.erl
@doc Rebar3 Pretty Printing of abstract Erlang syntax trees , following our own preferred style . Check < a target="_blank " href=" / AdRoll / rebar3_format#configuration">README.md</a > %% for more information on the available options. -module(default_formatter). -behaviour(rebar3_formatter). -behaviour(reba...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/cf2b7f59a48a109116b8120812e51558180e43e6/src/formatters/default_formatter.erl
erlang
for more information on the available options. Allow erl_syntax:syntaxTree/0 type spec 'maybe' and 'else', among others erl_syntax functions that only appear in OTP25 used internally used internally ===================================================================== @see erl_syntax @see format/1 @see layo...
@doc Rebar3 Pretty Printing of abstract Erlang syntax trees , following our own preferred style . Check < a target="_blank " href=" / AdRoll / rebar3_format#configuration">README.md</a > -module(default_formatter). -behaviour(rebar3_formatter). -behaviour(rebar3_ast_formatter). -elvis([{elvis_style, atom_nami...
f36dd45e89ffb97da435e85d7b6e24e7a65b8ef874d0672f8e88edf46b1f5370
parapluu/Concuerror
long_chain.erl
-module(long_chain). -export([long_chain/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. long_chain() -> ets:new(table, [public, named_table]), ets:insert(table, {x, 0}), ets:insert(table, {y, 0}), ets:insert(table, {z, 0}), ets:insert(table, {a, 0}), ets:insert(table, {b,...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/dpor_tests/src/long_chain.erl
erlang
Cover instruction Cover instruction
-module(long_chain). -export([long_chain/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. long_chain() -> ets:new(table, [public, named_table]), ets:insert(table, {x, 0}), ets:insert(table, {y, 0}), ets:insert(table, {z, 0}), ets:insert(table, {a, 0}), ets:insert(table, {b,...
97e4dc941d8ef283bc3b37141327af3bac43e29ae97bd1b36e3f202f799ee3e8
cmsc430/www
grift.rkt
#lang slideshow (require slideshow/text) (require slideshow/code) (require slideshow/repl) ;; Title (slide #:title "CMSC 430, Feb 25th 2020" (with-size 64 (tt "Grift"))) (slide #:title "Update" 'next (item "I have credentials!") 'next (subitem "I got UMD credentials near the end of last week, and am n...
null
https://raw.githubusercontent.com/cmsc430/www/0809867532b8ef516029ac38093a145db5b424ea/www/slides/grift.rkt
racket
Title result in rax result in rax
#lang slideshow (require slideshow/text) (require slideshow/code) (require slideshow/repl) (slide #:title "CMSC 430, Feb 25th 2020" (with-size 64 (tt "Grift"))) (slide #:title "Update" 'next (item "I have credentials!") 'next (subitem "I got UMD credentials near the end of last week, and am now jumpin...
4851a56b53b15e3743bcc87f03c8bbc9e3ca8ca6e60deaefee5554a885a7c6ca
kupl/FixML
sub45.ml
type exp = | V of var | P of var * exp | C of exp * exp and var = string let rec check : exp -> bool = fun exp -> match exp with | V a -> false | P(a, b) -> (match exp with | V c -> if a = c then true else false | P(c,d) -> check (P(c,d)) || check (P(a,d)) | C(c,d) -> check (P(a,c)) && check (P(...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/wellformedness/wellformedness/submissions/sub45.ml
ocaml
type exp = | V of var | P of var * exp | C of exp * exp and var = string let rec check : exp -> bool = fun exp -> match exp with | V a -> false | P(a, b) -> (match exp with | V c -> if a = c then true else false | P(c,d) -> check (P(c,d)) || check (P(a,d)) | C(c,d) -> check (P(a,c)) && check (P(...
db60d2a8f9cf302f616a31810ead069f600dbc08c688f3ccbdea5380d166d852
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("xrepl-lib" "xrepl-doc"))) (define implies (quote ("xrepl-lib" "xrepl-doc"))) (define pkg-desc "Console-oriented extended REPL for Racket") (define pkg-authors (quote (eli))) (define license (quote (Apache-2.0 OR MIT)))))
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/xrepl/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("xrepl-lib" "xrepl-doc"))) (define implies (quote ("xrepl-lib" "xrepl-doc"))) (define pkg-desc "Console-oriented extended REPL for Racket") (define pkg-authors (quote (eli))) (define license (quote (Apache-2.0 OR MIT)))))
ee1b75392251842ccb9176cb8325775845aff542a4ef66227b5e41a8968ef666
racket/plot
contour.rkt
#lang typed/racket/base ;; Renderers for contour lines and contour intervals (require typed/racket/class racket/match racket/list racket/vector (only-in typed/pict pict) plot/utils "../common/type-doc.rkt" "../common/utils.rkt") (provide (all-defined-out)) ;; ====================...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/plot2d/contour.rkt
racket
Renderers for contour lines and contour intervals =================================================================================================== =================================================================================================== g is a 2D-sampler, which is a memoized proc. Recalculation here sh...
#lang typed/racket/base (require typed/racket/class racket/match racket/list racket/vector (only-in typed/pict pict) plot/utils "../common/type-doc.rkt" "../common/utils.rkt") (provide (all-defined-out)) One contour line (: isoline-render-proc (-> 2D-Sampler Real Positive-Inte...
ec9df74dc51563b5015fa23961c26f8ed58ba02e2a231819d03e0ba93f9d70b0
mhuebert/re-view
view_spec.cljs
(ns re-view.view-spec (:require [re-view.util :as util] [clojure.string :as string])) (def spec-registry "Global registry for view specs" {}) (defn defspecs "Define a view spec" [specs] (set! spec-registry (merge spec-registry (reduce-kv (fn [m k v] ...
null
https://raw.githubusercontent.com/mhuebert/re-view/ba38cd09b78b3c6db6a2983f3e2cf1bd6294564f/re_view/src/re_view/view_spec.cljs
clojure
resolve specs expand :props/keys into resolved map entries expand :props/keys-req into resolved map entries collect defaults and consumed keys
(ns re-view.view-spec (:require [re-view.util :as util] [clojure.string :as string])) (def spec-registry "Global registry for view specs" {}) (defn defspecs "Define a view spec" [specs] (set! spec-registry (merge spec-registry (reduce-kv (fn [m k v] ...
9aff14a9062985b79d28a988b8f2827d5fa0c6fe8a505f52668a24c7c2641270
bugsbio/lein-tern
misc.clj
(ns tern.misc) (defn deep-merge "Deep-merge maps. Limited to two maps at the moment." [a b] (if (and (map? a) (map? b)) (merge-with deep-merge a b) b)) (defn assoc-result "Assocs the result of calling a function on a map into that map at the given key." [map k f] (assoc map k (f map))) ...
null
https://raw.githubusercontent.com/bugsbio/lein-tern/1496cc11fb343393416cc62fd874cd2fb634b2f3/src/tern/misc.clj
clojure
(ns tern.misc) (defn deep-merge "Deep-merge maps. Limited to two maps at the moment." [a b] (if (and (map? a) (map? b)) (merge-with deep-merge a b) b)) (defn assoc-result "Assocs the result of calling a function on a map into that map at the given key." [map k f] (assoc map k (f map))) ...
88d14c718ce639ec6266297cf2d9d772e64ccbf4a1241bafa3c4d62269cbc826
BinaryAnalysisPlatform/bap
thumb_core.mli
open Bap_core_theory open Thumb_opcodes open Theory type r1 and r8 and r16 and r32 type 'a reg = 'a Bitv.t var val s1 : r1 Bitv.t Value.sort val s8 : r8 Bitv.t Value.sort val s16 : r16 Bitv.t Value.sort val s32 : r32 Bitv.t Value.sort val r0 : r32 reg val r1 : r32 reg val r2 : r32 reg val r3 : r32 reg val r4 : r...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/354f8082218482d05b05598c172e0364108fd281/plugins/thumb/thumb_core.mli
ocaml
* [null] is shorcut for [Theory.Label.null] * [label] a fresh label * [goto dst] emits a resolved jump * [branch c ys ns] if [c] holds evaluates [ys] else [ns]. * [bit0] is a one bit [0] value * [nth n x] returns the [n]th bit of the value [x] * [is_clear x] evaluates to [CT.b1] if [x] is [0] * [is_zero x]...
open Bap_core_theory open Thumb_opcodes open Theory type r1 and r8 and r16 and r32 type 'a reg = 'a Bitv.t var val s1 : r1 Bitv.t Value.sort val s8 : r8 Bitv.t Value.sort val s16 : r16 Bitv.t Value.sort val s32 : r32 Bitv.t Value.sort val r0 : r32 reg val r1 : r32 reg val r2 : r32 reg val r3 : r32 reg val r4 : r...
9e108a87fcb4039181ee83fe70674a04b983ba456eae7b4f9d5b7d8c7d1e45a6
clj-commons/etaoin
cljdoc_preview.clj
#!/usr/bin/env bb (ns cljdoc-preview (:require [babashka.curl :as curl] [babashka.fs :as fs] [clojure.java.browse :as browse] [clojure.string :as string] [helper.main :as main] [helper.shell :as shell] [lread.status-line :as status])) ;; ;; hel...
null
https://raw.githubusercontent.com/clj-commons/etaoin/e4d60c8809a8d47880971db17423a5e6f5a78f87/script/cljdoc_preview.clj
clojure
helpers constants Prerequisites project build info git docker use git origin to support folks working from forks/PRs specify revision to allow for previewing when working from branch main
#!/usr/bin/env bb (ns cljdoc-preview (:require [babashka.curl :as curl] [babashka.fs :as fs] [clojure.java.browse :as browse] [clojure.string :as string] [helper.main :as main] [helper.shell :as shell] [lread.status-line :as status])) (defn- o...
ca12d4ffde517572315d3e1c453130dc76318f7c1ad4b8d17deabda860b2cd08
synduce/Synduce
minmax_sim.ml
* @synduce -s 2 -NB --no - lifting -b 3 type 'a tree = | Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec is_bst = function | Leaf x -> true | Node (a, l, r) -> a >= tree_max l && a <= tree_min r && is_bst l && is_bst r and tree_min = function | Leaf x -> x | Node (a, l, r) -> min a (min (tree_min l) ...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/incomplete/bst/minmax_sim.ml
ocaml
* @synduce -s 2 -NB --no - lifting -b 3 type 'a tree = | Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec is_bst = function | Leaf x -> true | Node (a, l, r) -> a >= tree_max l && a <= tree_min r && is_bst l && is_bst r and tree_min = function | Leaf x -> x | Node (a, l, r) -> min a (min (tree_min l) ...
f4996e2e2f1dcb534d22b91671f4405c03b8e4934f6921f4ea5b3a5cb6bb92c5
coq/coq
vars.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/d9b5f047fdad5e879184d321c86d4b62592a3432/kernel/vars.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
5053a538c3bf66c9082d074a9be14b1f51aafb1cb80fa89cb9e160009dce82b3
patricoferris/ni-forests
belfast_tree.ml
(* This module is specific to the CSV format of the Belfast Trees dataset. *) type t = { kind : [ `Park | `Street ]; species_kind : string; species : string; age : string; description : string; tree_surround : string; vigour : string; condition : string; diameter : int; spread_radius : int; (* Do...
null
https://raw.githubusercontent.com/patricoferris/ni-forests/d7636928d9ece204357e27f0e8910c7993d20c41/src/trees/common/belfast_tree.ml
ocaml
This module is specific to the CSV format of the Belfast Trees dataset. Don't want tree locationx or locationy Don't want tree locationx or locationy
type t = { kind : [ `Park | `Street ]; species_kind : string; species : string; age : string; description : string; tree_surround : string; vigour : string; condition : string; diameter : int; spread_radius : int; lng : float; lat : float; tag : int option; height : float; } let kind_of_st...
10ffa93a9f923b732ba2ed1ca35cc21da67383f5f2204951d3026cca8f61d2a2
kappamodeler/kappa
var.ml
(* 31/10/2006 *) Static analysis of BNG systems pour PlectiX I d and (* var.ml *) open Pb_sig module type Id = sig type id val string_of_id: id -> string val id_of_string: string -> id val print_id: id -> unit end module Id = struct type id = string let string_of_id x ...
null
https://raw.githubusercontent.com/kappamodeler/kappa/de63d1857898b1fc3b7f112f1027768b851ce14d/complx_rep/vars/var.ml
ocaml
31/10/2006 var.ml
Static analysis of BNG systems pour PlectiX I d and open Pb_sig module type Id = sig type id val string_of_id: id -> string val id_of_string: string -> id val print_id: id -> unit end module Id = struct type id = string let string_of_id x = x let id_of_string x = x...
dbfe6205e5c7d4d2d07ba0c69c95f7eada40d94c28f429256e5f32782d81c9f2
janestreet/ppx_pattern_bind
test_pattern_bind.ml
open Core open Ppxlib module Incr = Incremental.Make () open Incr.Let_syntax (* %pattern_bind allows arbitrary and nested patterns *) [@@@ocaml.warning "-37"] module M = struct type t = | A | B of int end type t = | Any of int | Var of int | Alias of int * bool | Constant of bool | Interval of c...
null
https://raw.githubusercontent.com/janestreet/ppx_pattern_bind/204b0255b2cf6d931079f4c458eeb563139085e2/test/test_pattern_bind.ml
ocaml
%pattern_bind allows arbitrary and nested patterns Polymorphic variants normalize the output to avoid depending on the specific evaluation order chosen by incremental match%pattern_bind should not refire unless we change cases let%pattern_bind should not refire unless the values of the variables in the...
open Core open Ppxlib module Incr = Incremental.Make () open Incr.Let_syntax [@@@ocaml.warning "-37"] module M = struct type t = | A | B of int end type t = | Any of int | Var of int | Alias of int * bool | Constant of bool | Interval of char | Tuple of (int * bool) | Multi_arg_tuple of int ...
3a5e4fa1b2927b2402e0ac9dcac377b270399bff807d865c60dec778a3e397fa
PearsonEducation/subpub
pe_audit.erl
SubPub - Copyright ( c ) 2013 Pearson . 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. -module(pe_audit). -behaviour(gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_in...
null
https://raw.githubusercontent.com/PearsonEducation/subpub/f2275c5da24d8860d206cff81d1ce87ecd956c72/src/pe_audit.erl
erlang
you may not use this file except in compliance with the License. Logs messages one per line in the format: <date_time_utc> - <node> - <Msg> - <Args> Args - an array of [<key>:<value>] pairs surrounded in brackets and separated with a comma and a space. Example:
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; -module(pe_audit). -behaviour(gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([log/2, start_link/0, reset/...
b8de2d1289fc34e99398f81b97cb0ed26bb02b439911f3f56b95758ba7e10638
mvoidex/hsdev
Symbols.hs
# LANGUAGE TypeSynonymInstances , FlexibleInstances , OverloadedStrings # # OPTIONS_GHC -fno - warn - orphans # module HsDev.Symbols ( -- * Utility locateProject, searchProject, locateSourceDir, standaloneInfo, moduleOpts, projectTargetOpts, -- * Tags setTag, hasTag, removeTag, dropTags, inspectTag, inspectUn...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Symbols.hs
haskell
* Utility * Tags | Find project file is related to | Search project up | Locate source dir of file | Make `Info` for standalone `Module` filter out unavailable packages such as unix under windows | Set tag to `Inspected` | Check whether `Inspected` has tag | Drop all tags | Set inspection tag
# LANGUAGE TypeSynonymInstances , FlexibleInstances , OverloadedStrings # # OPTIONS_GHC -fno - warn - orphans # module HsDev.Symbols ( locateProject, searchProject, locateSourceDir, standaloneInfo, moduleOpts, projectTargetOpts, setTag, hasTag, removeTag, dropTags, inspectTag, inspectUntag, * module HsDev....
eb09f76b28ebfc965a246722160e654f734ddf2389001b57fd485ce419aa1733
Eduap-com/WordMat
dprepi.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/odepack/src/dprepi.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2013-11 (20E Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format single-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
a678eafcf5a494d20744b03b2dc5aa74ca041c8289ba9bc912bcf1a213196f7f
issuu/ocaml-protoc-plugin
emit.mli
open Spec.Descriptor.Google.Protobuf val parse_proto_file: params:Parameters.t -> Scope.t -> FileDescriptorProto.t -> string * Code.t
null
https://raw.githubusercontent.com/issuu/ocaml-protoc-plugin/3d8b3eeb48e2a58dc80fbfdf9d749e69676625ab/src/plugin/emit.mli
ocaml
open Spec.Descriptor.Google.Protobuf val parse_proto_file: params:Parameters.t -> Scope.t -> FileDescriptorProto.t -> string * Code.t
722339bf66fcd37c1c0dec731f723fb8269a23697f684345afe4b2f891cd9bea
haskell-suite/haskell-src-exts
Prettify.hs
{- -} module Main ( main ) where Standard Library Modules Imported import System.Console.GetOpt ( getOpt , usageInfo , ArgOrder ( .. ) , OptDescr ( .. ) , ArgDescr ( .. ) ) import System.Directory ( createDirectoryIfMissing ) import System.Environment ( getArgs , getProgName ) import q...
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/examples/Prettify.hs
haskell
External Library Modules Imported Local Modules Imported End of Imports Options for controlling the layout style of the pretty printing Options for controlling individual indentation sizes | The main exported function Process the command line options and arguments, this basically just checks if there is ...
module Main ( main ) where Standard Library Modules Imported import System.Console.GetOpt ( getOpt , usageInfo , ArgOrder ( .. ) , OptDescr ( .. ) , ArgDescr ( .. ) ) import System.Directory ( createDirectoryIfMissing ) import System.Environment ( getArgs , getProgName ) import qualifi...
89d9bba78c387f704ff1ecbda8f09469a209ee49db9799fdf1b44975afce9e5a
metabase/metabase
query_processor.clj
(ns metabase.driver.bigquery-cloud-sdk.query-processor (:require [clojure.string :as str] [honeysql.format :as hformat] [java-time :as t] [metabase.driver :as driver] [metabase.driver.bigquery-cloud-sdk.common :as bigquery.common] [metabase.driver.common :as driver.common] [metabase.driver.sql :a...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/modules/drivers/bigquery-cloud-sdk/src/metabase/driver/bigquery_cloud_sdk/query_processor.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | Running Queries & Parsing Results | +--------------------------------------------------------------------------------------...
(ns metabase.driver.bigquery-cloud-sdk.query-processor (:require [clojure.string :as str] [honeysql.format :as hformat] [java-time :as t] [metabase.driver :as driver] [metabase.driver.bigquery-cloud-sdk.common :as bigquery.common] [metabase.driver.common :as driver.common] [metabase.driver.sql :a...
e940edc7d8963c9eb58dc87351ee39892dbe8d9d473fa2e18e5dc00b58c7e2b9
gonzojive/sbcl
interface.impure.lisp
;;;; tests for problems in the interface presented to the user/programmer This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL ...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/tests/interface.impure.lisp
lisp
tests for problems in the interface presented to the user/programmer more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Nor should it fail on ...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (load "assertoid.lisp") (load "test-util.lisp") (use-package "ASSERTOID") (use-package "TEST-UTIL") (defun (setf foo) (x) "(setf foo) documentation" x) (assert (...
312fc18abc4cbe15c168a4a27e46415f6c9a737e146357dc471a4c7c0677c5d3
jaredponn/Fly-Plane-Fly
Renderer.hs
# LANGUAGE InstanceSigs # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} module Renderer where import Control.Monad.Reader import Control.Lens import Control.Monad.State import Control.Monad.IO.Class (MonadIO(..)) import Foreign.C.Types im...
null
https://raw.githubusercontent.com/jaredponn/Fly-Plane-Fly/8e250f29216f2f75dac2dd0235a2b0243d601620/src/Renderer.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # text to render position color transform to apply to the text Wrappers: SDL.present renderer SDL.copyEx it also will reduce the CPU usage of the program. color draws the score so it is centered in the screen draws the score and the highscore for the g...
# LANGUAGE InstanceSigs # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # module Renderer where import Control.Monad.Reader import Control.Lens import Control.Monad.State import Control.Monad.IO.Class (MonadIO(..)) import Foreign.C.Types import Linear.V2 import GHC.Word import qualified SDL import qualif...
569f020d2291e695222a3f29d25fd668fa7fe441e5793b119bbef14087cb2238
yogthos/reagent-dnd
test_page.cljs
(ns react-dnd-test.test-page (:require [react-dnd-test.core :as core] [reagent.core :as r])) (defn home-page [] [core/home]) (defn mount-root [] (r/render [home-page] (.getElementById js/document "app"))) (defn init! [] (mount-root))
null
https://raw.githubusercontent.com/yogthos/reagent-dnd/9830e240b5f2e372c40a633432d0593288ec6682/env/dev/cljs/react_dnd_test/test_page.cljs
clojure
(ns react-dnd-test.test-page (:require [react-dnd-test.core :as core] [reagent.core :as r])) (defn home-page [] [core/home]) (defn mount-root [] (r/render [home-page] (.getElementById js/document "app"))) (defn init! [] (mount-root))
d1cedeb27548506a64dff8545024ec0dbf3c75481db6e1aae059a87f6d16beee
xhtmlboi/yocaml
languages.mli
(** Deal with languages identifiers.*) module ISO639 : sig * The ISO639 specification for describing languages . type t = | Af | Sq | Eu | Be | Bg | Ca | Zh_cn | Zh_tw | Hr | Cs | Da | Nl | Nl_be | Nl_nl | En | En_au | En_bz | En_ca | En_ie...
null
https://raw.githubusercontent.com/xhtmlboi/yocaml/4d207700a94b1b78bf256d11243d7fcab603d7db/lib/yocaml/languages.mli
ocaml
* Deal with languages identifiers.
module ISO639 : sig * The ISO639 specification for describing languages . type t = | Af | Sq | Eu | Be | Bg | Ca | Zh_cn | Zh_tw | Hr | Cs | Da | Nl | Nl_be | Nl_nl | En | En_au | En_bz | En_ca | En_ie | En_jm | En_nz | En_ph ...
ed8c39d98ad59ee19b03ccdd2ddb95a2113d8822bdaa9658c3d6e9c70b57e95a
catharinejm/wombat-j
core_test.clj
(ns wombat.core-test (:require [clojure.test :refer :all] [wombat.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/catharinejm/wombat-j/2620ace42a8866c79465068427e9ae8c39c89c7b/test/wombat/core_test.clj
clojure
(ns wombat.core-test (:require [clojure.test :refer :all] [wombat.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
3912f2709340d0153c10e4aa935bf15ace96412edd7812eb0098cfb99e4d42a1
yzh44yzh/practical_erlang
worker_tpl.erl
-module(worker_tpl). -behavior(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, { }). start_link() -> gen_server:start_link(?MODULE, no_args, []). %%% gen_server API init(no_args) -> State = #state{}, {ok, ...
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/14_otp_project/worker_tpl.erl
erlang
gen_server API
-module(worker_tpl). -behavior(gen_server). -export([start_link/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, { }). start_link() -> gen_server:start_link(?MODULE, no_args, []). init(no_args) -> State = #state{}, {ok, State}. handle_cal...
e3e9c0e6cd80841991286bc4cfc0ee8dc7c1e1c0e8648142c5bf5b693a27b73a
ucsd-progsys/liquidhaskell
ToFixpoint.hs
# LANGUAGE FlexibleContexts # # OPTIONS_GHC -Wno - incomplete - uni - patterns # module Language.Haskell.Liquid.Constraint.ToFixpoint ( cgInfoFInfo , fixConfig , refinementEQs , canRewrite ) where import Prelude hiding (error) import qualified Liquid.GHC.API as Ghc import Liqu...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/efef712213416c8befb68c71800a169e85864a47/src/Language/Haskell/Liquid/Constraint/ToFixpoint.hs
haskell
AT: Move to own module? (simplesymbol) makeAxioms info msg = show . map F.symbol . M.keys . tyConInfo [TODO:missing-sorts] data-constructors often have unelaboratable 'define' so either sound but imprecise approximation of a type in the logic
# LANGUAGE FlexibleContexts # # OPTIONS_GHC -Wno - incomplete - uni - patterns # module Language.Haskell.Liquid.Constraint.ToFixpoint ( cgInfoFInfo , fixConfig , refinementEQs , canRewrite ) where import Prelude hiding (error) import qualified Liquid.GHC.API as Ghc import Liqu...
4a6be217a7e26ed164e19ba613b023d1b9205e07ee2634e0c4832260db1aafd3
jaspervdj/blaze-html
String.hs
module Text.Blaze.Html.Renderer.String ( renderHtml ) where import Text.Blaze.Html (Html) import Text.Blaze.Renderer.String (renderMarkup) renderHtml :: Html -> String renderHtml = renderMarkup
null
https://raw.githubusercontent.com/jaspervdj/blaze-html/1c76db3cf02712569fd22b021fb0a367df028eb4/src/Text/Blaze/Html/Renderer/String.hs
haskell
module Text.Blaze.Html.Renderer.String ( renderHtml ) where import Text.Blaze.Html (Html) import Text.Blaze.Renderer.String (renderMarkup) renderHtml :: Html -> String renderHtml = renderMarkup
5d4506ff6aa58cfbfb81d61902804861aa7e137cd23a86aa66fef456fb24aacd
Gbury/archsat
expr.ml
This file is free software , part of Archsat . See file " LICENSE " for more details . (* Base modules that defines the terms used in the prover. *) (* let section = Section.make "expr" *) (* Type definitions *) (* ************************************************************************ *) (* Private aliases *)...
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/base/expr.ml
ocaml
Base modules that defines the terms used in the prover. let section = Section.make "expr" Type definitions ************************************************************************ Private aliases Extensible variant type for builtin operations Identifiers, parametrized by the kind of the type of the vari...
This file is free software , part of Archsat . See file " LICENSE " for more details . type hash = int type index = int type status = Hyp | Goal type tag_map = Tag.map type 'a tag = 'a Tag.t type meta_index = int type builtin = .. type builtin += Base type 'ty id = { id_type : 'ty; id_name : string; built...
d61426c5e83c3c2062163db6c07370fe10b3905b0b69484e672a7dafe26755a1
olivermg/owlisp
restructure.lisp
(in-package :owlisp/c/tests) (def-suite owlisp/c/tests) (in-suite owlisp/c/tests) (defparameter *expr-constant* (make-constant* :value 123)) (defparameter *expr-reference* (make-reference* :symbol 'a)) (defparameter *expr-abstraction* (make-abstraction* :args '(a b) :body (list *expr-reference*))) (...
null
https://raw.githubusercontent.com/olivermg/owlisp/dbf6d1d9e813f16124c170a0e1bfe155752e017b/tests/restructure.lisp
lisp
(in-package :owlisp/c/tests) (def-suite owlisp/c/tests) (in-suite owlisp/c/tests) (defparameter *expr-constant* (make-constant* :value 123)) (defparameter *expr-reference* (make-reference* :symbol 'a)) (defparameter *expr-abstraction* (make-abstraction* :args '(a b) :body (list *expr-reference*))) (...
e199a2588d59b3e0dcdf9073499eb0c2acf62fa98792dab57bbbdc4a15492d3f
mtnygard/simulant-example
project.clj
(defproject com.cognitect/simulant-example-ui "0.1.0-SNAPSHOT" :description "Demo UI for a simulation test" :source-paths ["src/clj" "src/cljs"] :dependencies [[org.clojure/clojure _] [org.clojure/clojurescript _ :scope "provided"] [io.pedestal/pedestal.service ...
null
https://raw.githubusercontent.com/mtnygard/simulant-example/dcb76b2eda47dfb6be10a2077ade319873eacce1/example-ui/project.clj
clojure
(defproject com.cognitect/simulant-example-ui "0.1.0-SNAPSHOT" :description "Demo UI for a simulation test" :source-paths ["src/clj" "src/cljs"] :dependencies [[org.clojure/clojure _] [org.clojure/clojurescript _ :scope "provided"] [io.pedestal/pedestal.service ...
9fb9eb7894c68e8d6c4276636556f7f7069e472e89f1a5c9e0c66497748f8b1f
degree9/uikit-hl
alert.cljs
(ns uikit-hl.alert (:require [hoplon.core :as hl] [uikit-hl.core :as core])) (def ^:dynamic *uk-alert* "") (defmethod hl/do! :uk-alert [elem _ v] (.alert js/UIkit elem (clj->js v))) (hl/defelem alert [attr kids] (let [alert (:uk-alert attr *uk-alert*) attr (assoc attr :uk-alert alert)] ...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/docs/docs.html.out/uikit_hl/alert.cljs
clojure
(ns uikit-hl.alert (:require [hoplon.core :as hl] [uikit-hl.core :as core])) (def ^:dynamic *uk-alert* "") (defmethod hl/do! :uk-alert [elem _ v] (.alert js/UIkit elem (clj->js v))) (hl/defelem alert [attr kids] (let [alert (:uk-alert attr *uk-alert*) attr (assoc attr :uk-alert alert)] ...
950460fc722fa398dfaec6c341c87727e964df1182b1a69f9507b3dfc4d20241
cram2/cram
matrix-min.lisp
Regression test MATRIX - MIN for GSLL , automatically generated ;; Copyright 2009 , 2011 Distributed under the terms of the GNU General Public License ;; ;; This program 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 Sof...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/matrix-min.lisp
lisp
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 General Publi...
Regression test MATRIX - MIN for GSLL , automatically generated Copyright 2009 , 2011 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have rece...
07b200022be354885b3ba94084d7ef5da97ebeaa907853ae8edc70c9752e33a7
TrustInSoft/tis-interpreter
lmap_bitwise.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_services/abstract_interp/lmap_bitwise.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...