_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
93489e3c63133930afa7985cbd85334ac9e1d115b8a4195d0f28e9259d917216
xh4/web-toolkit
aead.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; aead.lisp -- authenticated encryption with associated data (in-package :crypto) (defclass aead-mode () ((encryption-started :accessor encryption-started-p :initform nil :type boolean) (tag :accessor tag))) (defmet...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/ironclad-v0.47/src/aead/aead.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- aead.lisp -- authenticated encryption with associated data
(in-package :crypto) (defclass aead-mode () ((encryption-started :accessor encryption-started-p :initform nil :type boolean) (tag :accessor tag))) (defmethod shared-initialize :after ((mode aead-mode) slot-names &rest initargs &key tag &allow-other-keys) (declare...
2d5af03a0c4a03e522fddc871ef762afccf26ff122ce66e9b2336969c6586440
huangz1990/SICP-answers
8-cube-root.scm
8-cube-root.scm (load "8-cube.scm") (define (cube-root x) (cube-root-iter 1.0 x)) (define (cube-root-iter guess x) ; 和 sqrt-iter 是一样的 (if (good-enough? guess x) ; 改个名字,方便区别 guess (cube-root-iter (improve guess x) x))) (define (good-enough? gu...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/8-cube-root.scm
scheme
和 sqrt-iter 是一样的 改个名字,方便区别 要用 cube 来检测是否足够好 题目给出的公式
8-cube-root.scm (load "8-cube.scm") (define (cube-root x) (cube-root-iter 1.0 x)) guess (cube-root-iter (improve guess x) x))) (< (abs (- (cube guess) x)) 0.001)) (/ (+ (/ x (square guess)) (* 2 guess)) 3))
7b5418d8f9ae72659d908bf81796fe1258c63f7d9885909a41b7be797ac85a98
elastic/eui-cljs
icon_vis_pie.cljs
(ns eui.icon-vis-pie (:require ["@elastic/eui/lib/components/icon/assets/vis_pie.js" :as eui])) (def visPie eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_vis_pie.cljs
clojure
(ns eui.icon-vis-pie (:require ["@elastic/eui/lib/components/icon/assets/vis_pie.js" :as eui])) (def visPie eui/icon)
b7295cc0892889d83f158d52b1f5204d2b31ca8ede2a8b8f146ae0aea55231a5
vinted/kafka-elasticsearch-tool
polyglot.clj
(ns polyglot (:require [clojure.string :as s] [clojure.data :as data] [clojure.java.io :as io] [core.json :as json] [polyglot.js :as js] [polyglot.jq :as jq] [polyglot.sci :as sci]) (:import (java.io File))) (defn apply-js-transformation "Gi...
null
https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/5bd9db3cf39a1f76d70d6ce08d0c08bbc935f4c4/src/polyglot.clj
clojure
:polyglot (polyglot/append-timestamp-to-map options)
(ns polyglot (:require [clojure.string :as s] [clojure.data :as data] [clojure.java.io :as io] [core.json :as json] [polyglot.js :as js] [polyglot.jq :as jq] [polyglot.sci :as sci]) (:import (java.io File))) (defn apply-js-transformation "Gi...
9343a5622ac6290a8eeb2edd5686f2cda841ebff5ac6ce79f3dec51ca2ad7bfb
ds-wizard/engine-backend
QuestionnaireSchemaMigration.hs
module Wizard.Database.Migration.Development.Questionnaire.QuestionnaireSchemaMigration where import Database.PostgreSQL.Simple import Wizard.Database.DAO.Common import Wizard.Model.Context.AppContext import Wizard.Model.Context.ContextLenses () import Wizard.Util.Logger runMigration :: AppContextM () runMigration =...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Database/Migration/Development/Questionnaire/QuestionnaireSchemaMigration.hs
haskell
module Wizard.Database.Migration.Development.Questionnaire.QuestionnaireSchemaMigration where import Database.PostgreSQL.Simple import Wizard.Database.DAO.Common import Wizard.Model.Context.AppContext import Wizard.Model.Context.ContextLenses () import Wizard.Util.Logger runMigration :: AppContextM () runMigration =...
df6c59bcd8f2a190be920779ac44c7dac5033fcb78212d403e2cbee5241b2738
jeffshrager/biobike
df-n-doc.lisp
-*- Package : bbi ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :bbi) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Doc/bbldf/df-n-doc.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :bbi) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
c9127c8db36b3e5e6d93080f4c8f40e7fd83c6b4c17e414b856e1184054878c2
EasyCrypt/easycrypt
ecTypeClass.mli
(* -------------------------------------------------------------------- *) open EcPath type node = path type graph type nodes exception CycleDetected module Graph : sig val empty : graph val add : src:node -> dst:node -> graph -> graph val has_path : src:node -> dst:node -> graph -> bool val dump : graph ->...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/f87695472e70c313ef2966e20979b1afcc2e543e/src/ecTypeClass.mli
ocaml
--------------------------------------------------------------------
open EcPath type node = path type graph type nodes exception CycleDetected module Graph : sig val empty : graph val add : src:node -> dst:node -> graph -> graph val has_path : src:node -> dst:node -> graph -> bool val dump : graph -> string end module Nodes : sig val empty : graph -> nodes val add : no...
73d072b1dc3e088a4b35f4f9b946743644c4849fbae48ba6605bd519eb65ed8c
SRI-CSL/f3d
sysdef-gl.lisp
(in-package :cl-user) ;;; This needs to be set in $FREEDIUS/arch/<arch>/lisp/config.lisp If it 's NIL , then just use the file : (defvar config::*libglut-library-file* nil) (defvar config::*enable-openglut* nil) (defvar *glffi-libname* "libf3dglffi") #-asdf (st:define-system "gl" ;;:system-class 'st::mixed-l...
null
https://raw.githubusercontent.com/SRI-CSL/f3d/93285f582198bfbab33ca96ff71efda539b1bec7/f3d-geom/gl-ffi/sysdef-gl.lisp
lisp
This needs to be set in $FREEDIUS/arch/<arch>/lisp/config.lisp If :system-class 'st::mixed-lisp-system (st::find-system-named :gl)
(in-package :cl-user) it 's NIL , then just use the file : (defvar config::*libglut-library-file* nil) (defvar config::*enable-openglut* nil) (defvar *glffi-libname* "libf3dglffi") #-asdf (st:define-system "gl" : libraries ( list " $ FREEDIUS_ARCH / lib / libFREEDIUS " config::*libglut - library - file * ) :...
11abd21cdd6dd539fbe918a7122fe645c968ef2673cc337dd682ab5b4183bcae
ermine-language/ermine
Literal.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # -------------------------------------------------------------------- -- | Copyright : ( c ) and 2012 - 2013 License : BSD2 Maintainer : < > -- Stability : experimental -- Portability: non-portable -- ----------------------------------...
null
https://raw.githubusercontent.com/ermine-language/ermine/bd58949ab56311be9e0d2506a900f3d77652566b/src/Ermine/Syntax/Literal.hs
haskell
# LANGUAGE DeriveDataTypeable # ------------------------------------------------------------------ | Stability : experimental Portability: non-portable ------------------------------------------------------------------ | Primitive literal values used by patterns, terms and core.
# LANGUAGE DeriveGeneric # Copyright : ( c ) and 2012 - 2013 License : BSD2 Maintainer : < > module Ermine.Syntax.Literal ( Literal(..) ) where import Control.Monad import qualified Data.Binary as Binary import Data.Binary (Binary) import Data.Bytes.Get import Data.Bytes.Put import Data.Bytes...
d93166a1aa0693e90515539082ad1e646865efcedcf5ae1179297f4a3bb5c731
play-co/hermes
core.clj
(ns hermes.core (:import (com.thinkaurelius.titan.core TitanFactory) (com.tinkerpop.blueprints Element TransactionalGraph TransactionalGraph$Conclusion) (com.thinkaurelius.titan.graphdb.blueprints TitanInMemoryBlueprintsGraph) (com.thinkaurelius.titan.graphdb.transaction StandardPersi...
null
https://raw.githubusercontent.com/play-co/hermes/9d203ec7b239e7800c89e6ee161486f35dabd110/src/hermes/core.clj
clojure
Transactions not supported.
(ns hermes.core (:import (com.thinkaurelius.titan.core TitanFactory) (com.tinkerpop.blueprints Element TransactionalGraph TransactionalGraph$Conclusion) (com.thinkaurelius.titan.graphdb.blueprints TitanInMemoryBlueprintsGraph) (com.thinkaurelius.titan.graphdb.transaction StandardPersi...
40dd420d47e894ce735383a2f29c0ba4cf0e45d9ec5c44f36029b28272376ea1
cuplv/dai
random_edits.ml
open Dai open Import open Syntax open Ast open Frontend module Fn = Cfg.Fn let sample_list_exn xs = let n = Random.int (List.length xs) in List.nth_exn xs n let sample_seq_exn xs = let n = Random.int (Seq.length xs) in Seq.nth_exn xs n let rng_state = Splittable_random.State.of_int (Caml.Random.int 1000) le...
null
https://raw.githubusercontent.com/cuplv/dai/99117a6c5bd9a2d54eef9287472861eb508b7772/src/synthetic_benchmarks/random_edits.ml
ocaml
dummy tree edit
open Dai open Import open Syntax open Ast open Frontend module Fn = Cfg.Fn let sample_list_exn xs = let n = Random.int (List.length xs) in List.nth_exn xs n let sample_seq_exn xs = let n = Random.int (Seq.length xs) in Seq.nth_exn xs n let rng_state = Splittable_random.State.of_int (Caml.Random.int 1000) le...
67950fede46274578a9aa6d0320f5cec666a9402fd035dddb7ee44e2fed9a503
INRIA/zelus
fuelc_data.mli
val fuelc_period : float val min_press : float val max_press : float val min_speed : int val max_speed : int val min_throt : int val max_throt : int val max_ego : float val zero_thresh : int val hys : int val speed_vect : int array val press_vect : float array val throt_vect : int array val press_est :...
null
https://raw.githubusercontent.com/INRIA/zelus/685428574b0f9100ad5a41bbaa416cd7a2506d5e/examples/fuelcontroller/fuelc_data.mli
ocaml
val fuelc_period : float val min_press : float val max_press : float val min_speed : int val max_speed : int val min_throt : int val max_throt : int val max_ego : float val zero_thresh : int val hys : int val speed_vect : int array val press_vect : float array val throt_vect : int array val press_est :...
39001731afc3681a82e8cc234cdba3e3255288df08952bcb69dc31dbe6062539
chetmurthy/ensemble
stack_id.mli
(**************************************************************) (* STACK_ID.MLI *) Author : , 3/96 (**************************************************************) type t = | Primary | Bypass | Gossip | Unreliable val string_of_id : t -> string val id_of_string : string -> t
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/type/stack_id.mli
ocaml
************************************************************ STACK_ID.MLI ************************************************************
Author : , 3/96 type t = | Primary | Bypass | Gossip | Unreliable val string_of_id : t -> string val id_of_string : string -> t
2715d273dec8373b0991d91c0fa1266a71f65a70dfe02f84060dce1f3a0f639a
msempere/markhor
markhor_bid_request.erl
-module(markhor_bid_request). -compile([{parse_transform, lager_transform}]). -export([message_handler/1]). message_handler(Json) -> Ref = make_ref(), router ! {self(), Ref, bid_request, Json}, receive {_, bid_price, Price} -> {bid_price, Price}; {_, no_auctions} -> ...
null
https://raw.githubusercontent.com/msempere/markhor/37fd4d8fdc316dfb36b91068e30641c507478e24/src/markhor_bid_request.erl
erlang
-module(markhor_bid_request). -compile([{parse_transform, lager_transform}]). -export([message_handler/1]). message_handler(Json) -> Ref = make_ref(), router ! {self(), Ref, bid_request, Json}, receive {_, bid_price, Price} -> {bid_price, Price}; {_, no_auctions} -> ...
c8211c8b39c1191e9b7851c73573759ea74ad61ad56a5c952e62b3d5bc5e1921
bn-d/ppx_pyformat
test_pyformat_parser.ml
open OUnit2 open Ppx_pyformat.Types open Utils let text_tests = "text" >::: [ "simple" >:: test "123abcABC,.;' \t\n" [ Text "123abcABC,.;' \t\n" ]; "curl_escape" >:: test "{{}}}}{{" [ Text "{}}{" ]; "consolidation" >:: test "123{{}}321" [ Text "123{}321" ]; "single_left" ...
null
https://raw.githubusercontent.com/bn-d/ppx_pyformat/80784ca113ae2a7a2890fe03ed1f68f42307df3a/test/parser/test_pyformat_parser.ml
ocaml
open OUnit2 open Ppx_pyformat.Types open Utils let text_tests = "text" >::: [ "simple" >:: test "123abcABC,.;' \t\n" [ Text "123abcABC,.;' \t\n" ]; "curl_escape" >:: test "{{}}}}{{" [ Text "{}}{" ]; "consolidation" >:: test "123{{}}321" [ Text "123{}321" ]; "single_left" ...
af093326318f5b70579858e339445ce67ff1b465994dc055ea69fcede0a4e4da
jumarko/clojure-experiments
advanced_destructuring.clj
(ns four-clojure.advanced-destructuring) ;;; ;; Example - destructuring vector (let [[a b & c] ["cat" "dog" "bird" "fish"]] [a b]) (let [[a b & c] ["cat" "dog" "bird" "fish"]] c) (let [[a b :as x] ["cat" "dog" "bird" "fish"]] x) ;; Problem (= [1 2 [3 4 5] [1 2 3 4 5]] (let [[a b & c :as d] [1 2 3 4 5]] [a ...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/four_clojure/advanced_destructuring.clj
clojure
Example - destructuring vector Problem
(ns four-clojure.advanced-destructuring) (let [[a b & c] ["cat" "dog" "bird" "fish"]] [a b]) (let [[a b & c] ["cat" "dog" "bird" "fish"]] c) (let [[a b :as x] ["cat" "dog" "bird" "fish"]] x) (= [1 2 [3 4 5] [1 2 3 4 5]] (let [[a b & c :as d] [1 2 3 4 5]] [a b c d]))
1c99b60918af498df3486ccd6e0f1cab557e25b0cac9af7c62808a102f206c73
facebook/duckling
LO.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} module Duckling.Rules.LO ( defaultRules , langRules , localeRules ) where ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Rules/LO.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Rules.LO ( defaultRules , langRules , localeRules ) where import Duckling.Dimensions.Types import Duckling.Locale import Duckling.Types import qualified Duckling.Numeral.LO.Rules as Numeral defaultRules :: Seal Dimension -> [Rule] defaultR...
8b61c2bf97c722bef8958d38a16233f8a4adcb76b08c510005c95274081ecc83
realworldocaml/book
sexplib0.ml
module Sexp = Sexp module Sexp_conv = Sexp_conv module Sexp_conv_error = Sexp_conv_error module Sexp_grammar = Sexp_grammar module Sexpable = Sexpable
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/sexplib0/src/sexplib0.ml
ocaml
module Sexp = Sexp module Sexp_conv = Sexp_conv module Sexp_conv_error = Sexp_conv_error module Sexp_grammar = Sexp_grammar module Sexpable = Sexpable
b4750fec39e3e98ec28fd4c786966211d55575d7910c6be5e02e45f90a0d4d9e
samrushing/irken-compiler
ctype.scm
;; -*- Mode: Irken -*- (require-ffi 'libc) (datatype cint (:char) (:short) (:int) (:long) (:longlong) (:width int) ;; in bytes, not bits ) (define (cint-repr t signed?) (let ((suffix (match t with (cint:char) -> "char" (cint:short) -> "short" (cint:i...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/lib/ctype.scm
scheme
-*- Mode: Irken -*- in bytes, not bits size, signed? offset name type size name fields c function/object signature name return-type arg-types name type many integer types new array form (i.e. ctype2-repr) temporary, all function types are void convert all integer arguments to 'int' type. [this will probabl...
(require-ffi 'libc) (datatype cint (:char) (:short) (:int) (:long) (:longlong) ) (define (cint-repr t signed?) (let ((suffix (match t with (cint:char) -> "char" (cint:short) -> "short" (cint:int) -> "int" (cint:long) -> "long" ...
e207d73e8ed97906dfa17fb9debb01b0f9634fd9ce16cecb5f9a56a19362d91c
ha-mo-we/Racer
xml-renderer.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : OWL - SYNTAXES ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modificati...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/xml-renderer.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : OWL - SYNTAXES ; Base : 10 -*- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this ...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
0acfd64b39fcd8e055243204ae7bb31f294c25c080db3c3cf9d7112137b020f0
dsorokin/aivika
Cont.hs
-- | -- Module : Simulation.Aivika.Cont Copyright : Copyright ( c ) 2009 - 2017 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental Tested with : GHC 8.0.1 -- -- The 'Cont' monad is a variation of the standard Cont monad -- and F# async workflow, where the result of applying --...
null
https://raw.githubusercontent.com/dsorokin/aivika/7a14f460ab114b0f8cdfcd05d5cc889fdc2db0a4/Simulation/Aivika/Cont.hs
haskell
| Module : Simulation.Aivika.Cont License : BSD3 Stability : experimental The 'Cont' monad is a variation of the standard Cont monad and F# async workflow, where the result of applying the continuations is the 'Event' computation.
Copyright : Copyright ( c ) 2009 - 2017 , < > Maintainer : < > Tested with : GHC 8.0.1 module Simulation.Aivika.Cont (ContCancellation(..), Cont) where import Simulation.Aivika.Internal.Event import Simulation.Aivika.Internal.Cont
4428ddad0b1f1f69f1b392e0ec352e1970774a227e11978492dc554dacef9722
ocaml-multicore/tezos
baking_files.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_delegate/baking_files.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
b66f42b537e670a6910809be19887c3c21039afe50396ca21b784201869a314e
herbelin/coq-hh
ppvernac.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/parsing/ppvernac.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Warning: [pr_raw_tactic] globalises...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Names open Nameo...
9de6dceda0c55aa323661639903590b4acb367fcb0946accd573af1c58517028
Kappa-Dev/KappaTools
sbml_backend.ml
let print_comment logger_fmt logger_buf (s:string) : unit = match Ode_loggers_sig.get_encoding_format logger_fmt with | Loggers.DOTNET -> let () = Loggers.fprintf logger_buf "# %s" s in let () = Loggers.print_newline logger_buf in () | Loggers.SBML -> let () = Loggers.fprintf logger_buf "<!-- %s -->...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/odes/sbml_backend.ml
ocaml
break sbml or dotnet TODO Jérome: This is dead code ([alg_expr] = [ALG_VAR _, _] and [is_constant (ALG_VAR _,_)] = false) please have a look let () = do_sbml logger logger_err (fun logger logger_err -> TODO Jérome: This is dead code, please have a look TO DO ...
let print_comment logger_fmt logger_buf (s:string) : unit = match Ode_loggers_sig.get_encoding_format logger_fmt with | Loggers.DOTNET -> let () = Loggers.fprintf logger_buf "# %s" s in let () = Loggers.print_newline logger_buf in () | Loggers.SBML -> let () = Loggers.fprintf logger_buf "<!-- %s -->...
0b4df73e2a43a2d937fef8020087987001e3dc97ee91c462602c6e3561259b02
bmeurer/ocaml-experimental
jg_config.ml
(*************************************************************************) (* *) (* Objective Caml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/browser/jg_config.ml
ocaml
*********************************************************************** Objective Caml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ open StdLabels open Jg_tk le...
1ffb186aa4acd894cbc4c834b0ea5b628e834cfd56863f557f425b4f33f51812
pebrc/ninety-nine-clojure
bintrees_test.clj
(ns ninety-nine-clojure.bintrees-test (:require [clojure.test :refer :all] [ninety-nine-clojure.bintrees :refer :all] [ninety-nine-clojure.logictrees :as l] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :a...
null
https://raw.githubusercontent.com/pebrc/ninety-nine-clojure/4aec31b42bd47509c3ef3d1b874eb1f5c1172f54/test/ninety_nine_clojure/bintrees_test.clj
clojure
(ns ninety-nine-clojure.bintrees-test (:require [clojure.test :refer :all] [ninety-nine-clojure.bintrees :refer :all] [ninety-nine-clojure.logictrees :as l] [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :a...
0342f5993b664df34360aca181c66bb7238c8f1bf86f46b86696986e7360c72b
christiaanb/DE1-Cyclone-II-FPGA-Board-Support-Package
Utils.hs
module Utils where import CLaSH.Prelude import CLaSH.Prelude.Explicit import Control.Monad.State import DE1Types wordSynchronize :: SClock clkIn -> SClock clkOut -> a -> Signal' clkIn a -> Signal' clkOut a wordSynchronize clk1 clk2 initS inp = delayN clk2 (replicate...
null
https://raw.githubusercontent.com/christiaanb/DE1-Cyclone-II-FPGA-Board-Support-Package/4f816856bcda122b5a93a05e99bbab9a5c0e51d2/Utils.hs
haskell
module Utils where import CLaSH.Prelude import CLaSH.Prelude.Explicit import Control.Monad.State import DE1Types wordSynchronize :: SClock clkIn -> SClock clkOut -> a -> Signal' clkIn a -> Signal' clkOut a wordSynchronize clk1 clk2 initS inp = delayN clk2 (replicate...
899270fd0571987a2e123b51f8a08fdf1b5562ef5289d6e69acfa4209183e27f
facebook/pyre-check
targetTest.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/481ace973d4c5d5fc5571c7f1beb1a83f14da86f/source/interprocedural/test/targetTest.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
56bce9fb41e1735fa9a8e3c442bc924e2753c85d89b3b855739a982bc462b4db
facebook/infer
ResultsDir.mli
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/c87310bc24e97b9bc989cab1e2b07830c33e2425/infer/src/base/ResultsDir.mli
ocaml
* add an entry with the current run date * Check that the results dir exists and sets up logging, the database, etc. * Recursively delete the results directory. * Create the results dir and sets up logging, the database, etc. * scrub capture data in preparation of an incremental capture + analysis * Clean up the r...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
31387fd885651ec917af18b3be92c3af66318a08a434d7b47f7e374ce24a73e7
hypernumbers/hypernumbers
eunit_render_bin.erl
-module(eunit_render_bin). -include_lib("eunit/include/eunit.hrl"). %%-------------------- %% %% Tests %% %%-------------------- %% %% Render Test %% string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), ...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/sgte/test/src/eunit_render_bin.erl
erlang
-------------------- Tests -------------------- Render Test error test test callable attribute test on a non existent file -------------------- -------------------- Template String
-module(eunit_render_bin). -include_lib("eunit/include/eunit.hrl"). string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), Res = sgte:render_bin(Compiled, data()), ResultStr = [<<"This is a test:\n">>, ...
9a71f232ed67c8a8b2cfa1bd85c72796d6f1e544fd842273bbe0f1edc165a74c
ericnormand/hindley-milner
eval.clj
(ns hindley-milner.eval (:refer-clojure :exclude [eval]) (:require [hindley-milner.syntax :refer :all])) (defn tramp "deref recursively." [x] (if (instance? clojure.lang.IDeref x) (recur (deref x)) x)) (defn eval [env exp] (cond (atom? exp) exp (variable? exp) (if (contains? env exp) ...
null
https://raw.githubusercontent.com/ericnormand/hindley-milner/954aef9d40d530ea8af192e1e539067a7577a3a5/src/hindley_milner/eval.clj
clojure
(ns hindley-milner.eval (:refer-clojure :exclude [eval]) (:require [hindley-milner.syntax :refer :all])) (defn tramp "deref recursively." [x] (if (instance? clojure.lang.IDeref x) (recur (deref x)) x)) (defn eval [env exp] (cond (atom? exp) exp (variable? exp) (if (contains? env exp) ...
8b4265c42ff3f963f4ae3fd07694bdc424bd56ce9727465be7afd853839f4b95
NorfairKing/validity
Functions.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # -- | Validity tests involving functions module Test.Validity.Functions ( module Test.Validity.Functions.CanFail, module Test.Validity.Functions.Equivalence, module Test.Validity.Functions.Idempotence, module Test.Validity.Functions.Inver...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-property/src/Test/Validity/Functions.hs
haskell
| Validity tests involving functions
# LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # module Test.Validity.Functions ( module Test.Validity.Functions.CanFail, module Test.Validity.Functions.Equivalence, module Test.Validity.Functions.Idempotence, module Test.Validity.Functions.Inverse, module Test.Validity.Functions.V...
dd50af91e0bff3b8bf19ac61ff7c23765f13e4e1e67f057007cd09c1198c53a1
clash-lang/clash-compiler
benchmark-concurrency.hs
# LANGUAGE TypeApplications # module Main (main) where import Criterion.Main import Data.List (isPrefixOf, partition) import Data.Time (getCurrentTime) import System.Environment (getArgs, withArgs) import Clash.Backend import Clash.Backend.VHDL (VHDLState) import Clash.Driver import Clash.Driver.Types (ClashEnv(..),...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/4caccb4decfb604e5e30dbfd629032a74890bbdb/benchmark/benchmark-concurrency.hs
haskell
# LANGUAGE TypeApplications # module Main (main) where import Criterion.Main import Data.List (isPrefixOf, partition) import Data.Time (getCurrentTime) import System.Environment (getArgs, withArgs) import Clash.Backend import Clash.Backend.VHDL (VHDLState) import Clash.Driver import Clash.Driver.Types (ClashEnv(..),...
6b712658f95c01fc6243433a63c7ac9b25e8af8a644c12e736107c817633a135
mejgun/haskell-tdlib
Notification.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.Notification where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.NotificationType as NotificationType import qualified Utils as U -- | data Notification = -- | Contains information about a notification Notific...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Data/Notification.hs
haskell
# LANGUAGE OverloadedStrings # | | | Contains information about a notification | Notification type | True, if the notification was explicitly sent without sound | Notification date | Unique persistent identifier of this notification
module TD.Data.Notification where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.NotificationType as NotificationType import qualified Utils as U Notification _type :: Maybe NotificationType.NotificationType, is_silent :: Maybe Bool, date :: Maybe Int, ...
1ff26ee33d2c80f8f92a2a86410d9a83ba09bcaa54308d1a936ffca9d340f6ba
nunchaku-inria/nunchaku
ElimIndPreds.ml
(* This file is free software, part of nunchaku. See file "license" for more details. *) * { 1 Eliminate Inductive Predicates } open Nunchaku_core module TI = TermInner module Stmt = Statement module T = Term module PStmt = Stmt.Print(T)(T) let name = "elim_ind_pred" let section = Utils.Section.make name excepti...
null
https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/transformations/ElimIndPreds.ml
ocaml
This file is free software, part of nunchaku. See file "license" for more details. * How to eliminate inductive predicates * use pattern-matching for picking sub-cases if [t = c1(c2_1(...), c2_2(...), ...)] recursively, where each [c_] is a (co)data constructor and leaves are variables, then this returns [So...
* { 1 Eliminate Inductive Predicates } open Nunchaku_core module TI = TermInner module Stmt = Statement module T = Term module PStmt = Stmt.Print(T)(T) let name = "elim_ind_pred" let section = Utils.Section.make name exception Error of string let () = Printexc.register_printer (function | Error msg ->...
704e404ec5a96c098830b3272cdb164f2bcddf0cff5a040fafe158c8ea7cf2f9
simplegeo/erlang
supervisor_bridge_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/stdlib/test/supervisor_bridge_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(supervisor_bridge_SUITE). -export([...
07563615a4a7951197bb135e55840874df41ae82e786964795323c3f13d07e48
metosin/spec-tools
expound.cljc
(ns spec-tools.spell-spec.expound (:require [clojure.string :as string] [expound.alpha :as exp] [expound.ansi :as ansi] [expound.printer :as printer] [expound.problems :as problems])) (defn format-correction-list [options] (str (when (> (count options) 1) " one of") (let [joined (string/...
null
https://raw.githubusercontent.com/metosin/spec-tools/d05e6e3c76c3c6ff847aa3f8e66344df2705aeae/src/spec_tools/spell_spec/expound.cljc
clojure
(ns spec-tools.spell-spec.expound (:require [clojure.string :as string] [expound.alpha :as exp] [expound.ansi :as ansi] [expound.printer :as printer] [expound.problems :as problems])) (defn format-correction-list [options] (str (when (> (count options) 1) " one of") (let [joined (string/...
9596f9e7f030180bb7e128e32f6a0575f8f314719b9c343a5f50aaed57fea967
lispbuilder/lispbuilder
config.lisp
(:babel "BABEL." "-lisp.net/project/babel/releases/babel_0.3.0.tar.gz") (:alexandria "ALEXANDRIA." "-lisp.net/~loliveira/tarballs/inofficial/alexandria-2008-07-29.tar.gz") (:trivial-features "TRIVIAL-FEATURES." "-features_0.6.zip") (:cffi "CFFI." "-lisp.net/project/cffi/releases/cffi_0.10.5.tar.gz" :babel :tri...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/starter-pack/config.lisp
lisp
(:lispbuilder-openrm-binaries "lispbuilder-openrm-binaries." (:lispbuilder-openrm "lispbuilder-openrm." "-openrm.tgz" :lispbuilder-openrm-binaries
(:babel "BABEL." "-lisp.net/project/babel/releases/babel_0.3.0.tar.gz") (:alexandria "ALEXANDRIA." "-lisp.net/~loliveira/tarballs/inofficial/alexandria-2008-07-29.tar.gz") (:trivial-features "TRIVIAL-FEATURES." "-features_0.6.zip") (:cffi "CFFI." "-lisp.net/project/cffi/releases/cffi_0.10.5.tar.gz" :babel :tri...
f7d42aab27a8c03f345a66b17d5eacb31705587a06a2908969db82023cb81d77
bit-ranger/scheme-bootstrap
lambda.scm
(define (make-lambda) ;构造lambda parameters是一个列表 ;body是一个列表 (define (construct parameters body) (cons 'lambda (cons parameters body))) (define (parameters exp) (cadr exp)) ;lambda过程体 (define (body exp) (cddr exp)) (define (dispatch m) (cond ((eq? m 'parameters) parameters) ...
null
https://raw.githubusercontent.com/bit-ranger/scheme-bootstrap/a9155ebd29efe1196854b2dcd76941357dab151e/syntax/lambda.scm
scheme
构造lambda body是一个列表 lambda过程体
(define (make-lambda) parameters是一个列表 (define (construct parameters body) (cons 'lambda (cons parameters body))) (define (parameters exp) (cadr exp)) (define (body exp) (cddr exp)) (define (dispatch m) (cond ((eq? m 'parameters) parameters) ((eq? m 'body) body) ...
b8f584869ce70ed3970960fce9b4e4de3c459371c1d2372f8ab1ef71abc128da
fp-works/2019-winter-Haskell-school
Exercise01Spec.hs
module CIS194.Homework04.Exercise01Spec where import CIS194.Homework04.Exercise01 import Test.Tasty.Hspec spec_fun1 :: Spec spec_fun1 = do it "returns 1 for an empty list" $ fun1 [] `shouldBe` 1 it "returns 0 for a list containing 2" $ fun1 [2, 3, 4, 5] `shouldBe` 0 it "returns the product for all e...
null
https://raw.githubusercontent.com/fp-works/2019-winter-Haskell-school/823b67f019b9e7bc0d3be36711c0cc7da4eba7d2/cis194/week4/daniel-deng/test/Exercise01Spec.hs
haskell
module CIS194.Homework04.Exercise01Spec where import CIS194.Homework04.Exercise01 import Test.Tasty.Hspec spec_fun1 :: Spec spec_fun1 = do it "returns 1 for an empty list" $ fun1 [] `shouldBe` 1 it "returns 0 for a list containing 2" $ fun1 [2, 3, 4, 5] `shouldBe` 0 it "returns the product for all e...
5c5b3eeb8a3b1b57bd66ee6075d852888684f03c9c76e2dd6571c225c9076e7b
protz/mezzo
OCamlKeywords.mli
val keyword_table: (string, unit) Hashtbl.t
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/compiler/OCamlKeywords.mli
ocaml
val keyword_table: (string, unit) Hashtbl.t
fb4342a8481c4536e1a6b802413d214edaf5b6fa6abf76e12a2b1414877da91a
Frama-C/Frama-C-snapshot
logic.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/qed/logic.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
31ee781134601c84a55b3f559c308eebde7efb9462f0c42a0fc5d729f4c665ef
xapi-project/xen-api
xenctrlext.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/15812455c47dd62597d6d4312cdb06fb79bdf844/ocaml/xenopsd/xc/xenctrlext.ml
ocaml
* pages are mapped linearly
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
1d7efb39572711cc9acf754972d8841bc882f3aee75034115ca627839c7590fa
mokus0/junkbox
FastLog2.hs
module Functions.FastLog2 where import Foreign import Math.Polynomial.Chebyshev packFloat :: Int32 -> Float packFloat f = unsafePerformIO $ alloca $ \b -> do poke b f peek (castPtr b) unpackFloat :: Float -> Int32 unpackFloat i = unsafePerformIO $ alloca $ \b -> do poke b i peek (castPtr b) x_frac f...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Functions/FastLog2.hs
haskell
unpack to an integer so we can twiddle the bits overwrite the exponent to scale 'f' to the range [1,2). get the integer part of the logarithm as (exponent - 1), and approximate 1 + logarithm of x_frac The actual approximation at the heart of fastLog2. This accepts an argument original version (error typically a...
module Functions.FastLog2 where import Foreign import Math.Polynomial.Chebyshev packFloat :: Int32 -> Float packFloat f = unsafePerformIO $ alloca $ \b -> do poke b f peek (castPtr b) unpackFloat :: Float -> Int32 unpackFloat i = unsafePerformIO $ alloca $ \b -> do poke b i peek (castPtr b) x_frac f...
422744c2498f644e080509bfd31f40bd4a7ac3c5e48c8db894f5d78d289fafc9
patricoferris/ocaml-multicore-monorepo
fortuna.ml
open Mirage_crypto open Mirage_crypto.Uncommon module AES_CTR = Cipher_block.AES.CTR module SHAd256 = struct open Hash type t = SHA256.t let empty = SHA256.empty let get t = SHA256.(get t |> digest) let digest x = SHA256.(digest x |> digest) let digesti i = SHA256.(digesti i |> digest) let feed...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/mirage-crypto/rng/fortuna.ml
ocaml
the minimal amount of bytes in a pool to trigger a reseed number of pools XXX Locking!! XXX We might want to erase the old key.
open Mirage_crypto open Mirage_crypto.Uncommon module AES_CTR = Cipher_block.AES.CTR module SHAd256 = struct open Hash type t = SHA256.t let empty = SHA256.empty let get t = SHA256.(get t |> digest) let digest x = SHA256.(digest x |> digest) let digesti i = SHA256.(digesti i |> digest) let feed...
d72adff6b4229e395a3a2348a66b6675935f454cf3a8c076da6830dc10db24f6
lambe-lang/compiler
entity.mli
module Make_via_parser (Parser : Transept.Specs.PARSER with type e = Lambe_lexer.Lexeme.t) (Kind : Entry.API with type t = Lambe_ast.Kind.t and type 'a p = 'a Parser.t) (Type : Entry.API with type t = Lambe_ast.Type.t and type 'a p = 'a Parser.t) (Term : Entry.API with type t = Lambe_ast.Term.t and type...
null
https://raw.githubusercontent.com/lambe-lang/compiler/79d7937c06ca30e231855ec4ce99012ca0395cd5/attic/lib/syntax/entity.mli
ocaml
module Make_via_parser (Parser : Transept.Specs.PARSER with type e = Lambe_lexer.Lexeme.t) (Kind : Entry.API with type t = Lambe_ast.Kind.t and type 'a p = 'a Parser.t) (Type : Entry.API with type t = Lambe_ast.Type.t and type 'a p = 'a Parser.t) (Term : Entry.API with type t = Lambe_ast.Term.t and type...
873057819d921d2db1df60beac8d37e9605a28c68e4d5ebc3325b6325b597fa7
nyu-acsys/drift
zip00.ml
(* Assertion error *) let rec zip_without_checking_1077 x_DO_NOT_CARE_1083 x_DO_NOT_CARE_1084 x_DO_NOT_CARE_1085 xs_10311 set_flag_zip_1063 s_zip_xs_1058 s_zip_ys_1059 ys_10322 = let set_flag_zip_1063_r = true in let s_zip_ys_1059_r = ys_10322 in let s_zip_xs_1058_r = xs_10311 in if xs_10311 <= 0 then 0 ...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DRIFT/negative/zip00.ml
ocaml
Assertion error
let rec zip_without_checking_1077 x_DO_NOT_CARE_1083 x_DO_NOT_CARE_1084 x_DO_NOT_CARE_1085 xs_10311 set_flag_zip_1063 s_zip_xs_1058 s_zip_ys_1059 ys_10322 = let set_flag_zip_1063_r = true in let s_zip_ys_1059_r = ys_10322 in let s_zip_xs_1058_r = xs_10311 in if xs_10311 <= 0 then 0 else let xsp_1033 ...
a263e0686f1e01fc6638b5c55f1fd303299b0eb8019ddcbc7453090a236a4a37
juxt/tick
api_test.cljc
Copyright © 2016 - 2017 , JUXT LTD . (ns tick.api-test (:require [clojure.test :refer [deftest is testing run-tests] :refer-macros [deftest is testing run-tests]] [tick.core :as t] [tick.locale-en-us] [cljc.java-time.clock] [cljc.java-time.instant] [cljc.java-time.day-of-week] ...
null
https://raw.githubusercontent.com/juxt/tick/281a244083bc0add7ac9441481870cdf245ca62a/test/tick/api_test.cljc
clojure
TODO: Clock tests Create with a value for a fixed clock. Value can be a time or a zone Point-in-time tests Period arithmetic Between test Range test Units test Durations. Simple constructors to create durations of specific units. Durations. Convenience functions to create durations of specific units. java.ti...
Copyright © 2016 - 2017 , JUXT LTD . (ns tick.api-test (:require [clojure.test :refer [deftest is testing run-tests] :refer-macros [deftest is testing run-tests]] [tick.core :as t] [tick.locale-en-us] [cljc.java-time.clock] [cljc.java-time.instant] [cljc.java-time.day-of-week] ...
9145323732c1413331f7adcca9d8d57263ff9ed306a97d41f7bb02d5727f831d
cnuernber/dtype-next
clj_range.clj
(ns tech.v3.datatype.clj-range "Datatype bindings for clojure ranges." (:require [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.typecast :as typecast] [tech.v3.datatype.casting :as casting] [tech.v3.datatype.errors :as errors]) (:import [clojure.lang LongRange R...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/3fe3b62669bf83f6273235ae91988e4fd68d3026/src/tech/v3/datatype/clj_range.clj
clojure
(ns tech.v3.datatype.clj-range "Datatype bindings for clojure ranges." (:require [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.typecast :as typecast] [tech.v3.datatype.casting :as casting] [tech.v3.datatype.errors :as errors]) (:import [clojure.lang LongRange R...
7017404c20901be0bbe3fa40d6edbbdd3de17496593301e9ebf2e660f2c882fe
arcfide/oleg
SXML-tree-trans.scm
; XML/HTML processing in Scheme SXML expression tree transformers ; ; IMPORT ; A prelude appropriate for your Scheme system ; (myenv-bigloo.scm, myenv-mit.scm, etc.) ; ; EXPORT ( provide : send - reply ; post-order pre-post-order replace-range) ; ; See vSXML-tree-trans.scm for the validation code, which also ...
null
https://raw.githubusercontent.com/arcfide/oleg/c6826870436925fd4c873c01d7fcc24a7a7f95dc/ssax/lib/SXML-tree-trans.scm
scheme
XML/HTML processing in Scheme IMPORT A prelude appropriate for your Scheme system (myenv-bigloo.scm, myenv-mit.scm, etc.) EXPORT post-order pre-post-order replace-range) See vSXML-tree-trans.scm for the validation code, which also serves as usage examples. Output the 'fragments' The fragments are a l...
SXML expression tree transformers ( provide : send - reply $ I d : SXML - tree - trans.scm , v 1.8 2009/03/16 03:08:59 oleg Exp $ procedure : : send - reply FRAGMENT ... but causes the result of : send - reply to be # t (define (SRV:send-reply . fragments) (let loop ((fragments fragments) (result #f)...
dcab87317aee16563f8a20957856454b2ef3688b5d4db8973232ce1d507136ba
zadean/xqerl
prod_CompDocConstructor_SUITE.erl
-module('prod_CompDocConstructor_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['Constr-docnode-adjtext-1'/1]). -export(['Constr-docnode-adjtext-2'/1])...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/prod/prod_CompDocConstructor_SUITE.erl
erlang
-module('prod_CompDocConstructor_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['Constr-docnode-adjtext-1'/1]). -export(['Constr-docnode-adjtext-2'/1])...
50b2b9b53cde5ff8b6a3eed0663e047f349c3be8f0a8dcda34d25178f75122b0
jimcrayne/jhc
Calendar.hs
This is a modification of the calendar program described in section 4.5 of Bird and Wadler 's ` ` Introduction to functional programming '' , with two ways of printing the calendar ... as in B+W , or like UNIX ` cal ' : 1.3 1.3 1.3 1.3 -- Picture handling: infixr 5 `above`, `beside` type Picture = ...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/examples/Calendar.hs
haskell
Picture handling: For a standalone calendar program: End of calendar program tacked on by partain end of tack
This is a modification of the calendar program described in section 4.5 of Bird and Wadler 's ` ` Introduction to functional programming '' , with two ways of printing the calendar ... as in B+W , or like UNIX ` cal ' : 1.3 1.3 1.3 1.3 infixr 5 `above`, `beside` type Picture = [[Char]] height, wi...
e51890ed0de2224b5aa7a3a0c85ca8a4e329aa459b8f1baf943f013ae12e13a3
roburio/openvpn
openvpn_mirage.ml
An OpenVPN layer for MirageOS . Given a stackv4 and a configuration , it connects to the OpenVPN gateway in tun mode . Once the tunnel is established , an IPv4 stack is returned . connects to the OpenVPN gateway in tun mode. Once the tunnel is established, an IPv4 stack is returned. *) This effectf...
null
https://raw.githubusercontent.com/roburio/openvpn/0554c1b2da757659da5a57220aebcc28893dd21b/mirage/openvpn_mirage.ml
ocaml
TODO fragmentation!? foreach connection, call handle `Tick and follow instructions! TODO anything to do with "_act"? (apart from exit) we don't use the switch, but an earlier connection attempt may have used TCP TODO not sure, should maybe signal successful close (to be able to initiate new connection) handl...
An OpenVPN layer for MirageOS . Given a stackv4 and a configuration , it connects to the OpenVPN gateway in tun mode . Once the tunnel is established , an IPv4 stack is returned . connects to the OpenVPN gateway in tun mode. Once the tunnel is established, an IPv4 stack is returned. *) This effectf...
4b01cbc8bc53d679f99aff5417d1542c24f3705c024e73c236a97ec7603d1e37
mejgun/haskell-tdlib
ToggleSupergroupIsForum.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.ToggleSupergroupIsForum where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Toggles whether the supergroup is a forum ; requires owner privileges in the supergroup . Discussion supergroups ca n't be c...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/ToggleSupergroupIsForum.hs
haskell
# LANGUAGE OverloadedStrings # | | | |
module TD.Query.ToggleSupergroupIsForum where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Toggles whether the supergroup is a forum ; requires owner privileges in the supergroup . Discussion supergroups ca n't be converted to forums @supergroup_id Identifier ...
c1b9927db1e78fd76039c7674b5ca83ffe2afc732856dcdb2607ddba895aa600
muattiyah/udp-wrapper
project.clj
(defproject udp-wrapper "0.1.1" :description "A wrapper around the Java UDP API to make it a little nicer." :url "-wrapper" :license {:name "MIT public license" :url ""} :dependencies [[org.clojure/clojure "1.11.1"]] :profiles {:dev {:dependencies [[org.clojure/tools.nrepl "0.2.13"]] ...
null
https://raw.githubusercontent.com/muattiyah/udp-wrapper/9c8a23759b6a00621442dda86c39325c2837feb5/project.clj
clojure
(defproject udp-wrapper "0.1.1" :description "A wrapper around the Java UDP API to make it a little nicer." :url "-wrapper" :license {:name "MIT public license" :url ""} :dependencies [[org.clojure/clojure "1.11.1"]] :profiles {:dev {:dependencies [[org.clojure/tools.nrepl "0.2.13"]] ...
a676f63b2ad973d542fd569426d1ca7035990f3a54ba98b73669c6b3690e6677
helium/router
router_ics_route_get_euis_handler.erl
-module(router_ics_route_get_euis_handler). -behaviour(grpcbox_client_stream). -include("./autogen/iot_config_pb.hrl"). -export([ init/3, handle_message/2, handle_headers/2, handle_trailers/4, handle_eos/1 ]). -record(state, { options :: map(), euis :: list(iot_config_pb:iot_config_eui_p...
null
https://raw.githubusercontent.com/helium/router/7632abb28f5d5d147af8e739821f716649528ca7/src/grpc/router_ics_route_get_euis_handler.erl
erlang
-module(router_ics_route_get_euis_handler). -behaviour(grpcbox_client_stream). -include("./autogen/iot_config_pb.hrl"). -export([ init/3, handle_message/2, handle_headers/2, handle_trailers/4, handle_eos/1 ]). -record(state, { options :: map(), euis :: list(iot_config_pb:iot_config_eui_p...
51a55ac5814925d646d9d2b2b6b17a2b54229288aa93261f7238d87961529b82
joelburget/lvca
main.ml
open Base open Js_of_ocaml open Lvca module Language = struct module PT = Parsing.NonBindingTerm let language = {| { float_lit } float := | lit(float_lit()) | add(float(); float()) | sub(float(); float()) | mul(float(); float()) | div(float(); float()) p2 := p2(float(); float()) ...
null
https://raw.githubusercontent.com/joelburget/lvca/f83c92093db2beaac4246176724da679213ac70e/experimental/pages/0x-diagram-render/main.ml
ocaml
rgbi? TODO: blend, clamp, with_a, etc XXX need to trigger render on Evaluate TODO: make configurable TODO: make configurable
open Base open Js_of_ocaml open Lvca module Language = struct module PT = Parsing.NonBindingTerm let language = {| { float_lit } float := | lit(float_lit()) | add(float(); float()) | sub(float(); float()) | mul(float(); float()) | div(float(); float()) p2 := p2(float(); float()) ...
b9650f0616950ff2577321b292969fd65482cb6f4262926f21c41cdc242a0829
facebook/infer
AbstractInterpreter.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/add917b81b5541741cf8eb355639a806b282f0d1/infer/src/absint/AbstractInterpreter.ml
ocaml
* Joins the abstract states from predecessors. It returns [None] when the given list is empty and [into] is [None]. * Refines the abstract state to select non-exceptional concrete states. Should return bottom if no such states exist * Refines the abstract state to select exceptional concrete states. Shoul...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
0e23da00e4e40d03c93c200aa2789796b31aaacf0eb550742e43279e5d0cbbc9
quil-lang/quilc
suite.lisp
;;;; boondoggle/tests/suite.lisp ;;;; Author : (in-package #:boondoggle-tests) (defun run-boondoggle-tests () "Run boondoggle tests." (setf fiasco::*test-run-standard-output* (make-broadcast-stream *standard-output*)) (run-package-tests :package ':boondoggle-tests :verbose t ...
null
https://raw.githubusercontent.com/quil-lang/quilc/3f3260aaa65cdde25a4f9c0027959e37ceef9d64/boondoggle/tests/suite.lisp
lisp
boondoggle/tests/suite.lisp
Author : (in-package #:boondoggle-tests) (defun run-boondoggle-tests () "Run boondoggle tests." (setf fiasco::*test-run-standard-output* (make-broadcast-stream *standard-output*)) (run-package-tests :package ':boondoggle-tests :verbose t :describe-failures t ...
b7639b7f8a46d0be316ae95ca8d3f357f19f4e5791890a7d4f9e9109ef9edca9
bazurbat/chicken-scheme
tcp.scm
;;;; tcp.scm - Networking stuff ; Copyright ( c ) 2008 - 2016 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ; conditions are met: ; ; Redistributions of sourc...
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/tcp.scm
scheme
tcp.scm - Networking stuff All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
Copyright ( c ) 2008 - 2016 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIM...
a0e92b723900fceb2893da348851ffc767cffe83cab8b314ef177534fb81c9b5
rtoy/ansi-cl-tests
compute-applicable-methods.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Jun 2 06:40:41 2003 ;;;; Contains: Tests for COMPUTE-APPLICABLE-METHODS (in-package :cl-test) (defgeneric cam-gf-01 (x y)) (defparameter *cam-gf-01-method1* (defmethod cam-gf-01 ((x integer) (y integer)) 1)) (defparameter *cam-gf-01-method2* (defmethod...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/compute-applicable-methods.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for COMPUTE-APPLICABLE-METHODS Need tests with :around, :before, :after methods Error tests
Author : Created : Mon Jun 2 06:40:41 2003 (in-package :cl-test) (defgeneric cam-gf-01 (x y)) (defparameter *cam-gf-01-method1* (defmethod cam-gf-01 ((x integer) (y integer)) 1)) (defparameter *cam-gf-01-method2* (defmethod cam-gf-01 ((x integer) (y t)) 2)) (defparameter *cam-gf-01-method3* (def...
67265ff95c5e1e3cda5e198a0493501cc77b6854f71c47ff33bea9969da1a858
thepower/tpnode
mkblock_cont_tests.erl
-module(mkblock_cont_tests). -include_lib("eunit/include/eunit.hrl"). ledgersum(Ledger) when is_list(Ledger) -> lists:foldl( fun({_Addr, #{amount:=A}},Acc) -> maps:fold( fun(Cur, Val, Ac1) -> maps:put(Cur,maps:get(Cur,Ac1,0)+Val,Ac1) end, Acc, A) end, #{}, Ledger); ...
null
https://raw.githubusercontent.com/thepower/tpnode/a86406f732f75f28ea623a6e28c57909c6b776d4/test/mkblock_cont_tests.erl
erlang
after lists:foreach( fun(TermFun) -> TermFun() end, Servers) end. extcontract_baddeploy1_test() -> OurChain=150, TX3=tx:sign( tx:construct_tx(#{ kind=>deploy, from=>Addr1, seq=>2, t=>os:system_time(millisecond), payload=>[ ...
-module(mkblock_cont_tests). -include_lib("eunit/include/eunit.hrl"). ledgersum(Ledger) when is_list(Ledger) -> lists:foldl( fun({_Addr, #{amount:=A}},Acc) -> maps:fold( fun(Cur, Val, Ac1) -> maps:put(Cur,maps:get(Cur,Ac1,0)+Val,Ac1) end, Acc, A) end, #{}, Ledger); ...
3780a072772fe11a1235852f6fd1f82f4d76c1305e6f77aa79779ad9058adf55
circuithub/rel8
Nullify.hs
{-# language ConstraintKinds #-} # language DataKinds # {-# language DeriveAnyClass #-} # language DerivingStrategies # # language DeriveGeneric # # language FlexibleInstances # # language GADTs # # language LambdaCase # # language MultiParamTypeClasses # # language NamedFieldPuns # # language QuantifiedConstraints # #...
null
https://raw.githubusercontent.com/circuithub/rel8/032242f246434132af2cb665462ba02f72cd9750/src/Rel8/Schema/HTable/Nullify.hs
haskell
# language ConstraintKinds # # language DeriveAnyClass # # language ScopedTypeVariables # # language TypeFamilies # # language UndecidableInstances # base rel8 | Transform a 'Type' by allowing it to be @null@. # INLINABLE hnullify #
# language DataKinds # # language DerivingStrategies # # language DeriveGeneric # # language FlexibleInstances # # language GADTs # # language LambdaCase # # language MultiParamTypeClasses # # language NamedFieldPuns # # language QuantifiedConstraints # # language RankNTypes # # language RecordWildCards # # language St...
935b5a022736536a44f0cfdcfc4134dad8f6d0fe97e29db1a12c71011fb8ac60
progman1/genprintlib
show_information.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/show_information.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format;; val show_current_event : formatter -> uni...
5171a48b5d8d6ce6b41c5bf54804e1bd0c0b6241a205ebd68d8ec8b4c25beb4b
Happstack/happstack-server
Compression.hs
{-# LANGUAGE NoMonomorphismRestriction, FlexibleContexts #-} -- | Filter for compressing the 'Response' body. module Happstack.Server.Compression ( compressedResponseFilter , compressedResponseFilter' , compressWithFilter , gzipFilter , deflateFilter , identityFilter , starFilter , stand...
null
https://raw.githubusercontent.com/Happstack/happstack-server/d9cdb9af5635b1ebd9db0801b66dbf4e58aba66b/src/Happstack/Server/Compression.hs
haskell
# LANGUAGE NoMonomorphismRestriction, FlexibleContexts # | Filter for compressing the 'Response' body.
module Happstack.Server.Compression ( compressedResponseFilter , compressedResponseFilter' , compressWithFilter , gzipFilter , deflateFilter , identityFilter , starFilter , standardEncodingHandlers ) where import Happstack.Server.Internal.Compression ( compressedResponseFilter ...
38b2e6f74fb37e56835c4e593ca771e815d66089a5822acb4afd4751139f00e0
slipstream/SlipStreamServer
binding_lifecycle.clj
(ns com.sixsq.slipstream.db.binding-lifecycle (:require [clojure.spec.alpha :as s] [clojure.test :refer [are deftest is]] [com.sixsq.slipstream.db.binding :as db])) (s/def ::id string?) (s/def ::long int?) (s/def ::boolean boolean?) (s/def ::string string?) (s/def ::resource (s/keys :req-un [::id ::long...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/db-binding/test/com/sixsq/slipstream/db/binding_lifecycle.clj
clojure
initialize the database create an entry in the database ensure that the entry can be retrieved check that it shows up in a query ensure that is can be retrieved (and flush index for elasticsearch) check that query has another entry adding the same entry again must fail update the entry make sure that the updat...
(ns com.sixsq.slipstream.db.binding-lifecycle (:require [clojure.spec.alpha :as s] [clojure.test :refer [are deftest is]] [com.sixsq.slipstream.db.binding :as db])) (s/def ::id string?) (s/def ::long int?) (s/def ::boolean boolean?) (s/def ::string string?) (s/def ::resource (s/keys :req-un [::id ::long...
cd54ebc7bed7f9f5cfbd4b63cef24a9d5bc84ba50c134d2d5c5d2cec2de0bf34
njordhov/mclide
ccl-update.lisp
(in-package :ccl) mostly borrowed from builder-utilities.lisp in Clozure 1.7 (defun get-ide-bundle-info-plist () (let* ((ide-bundle (#/mainBundle ns:ns-bundle)) (ide-bundle-path-nsstring (#/bundlePath ide-bundle)) (ide-bundle-path (ensure-directory-pathname (lisp-stri...
null
https://raw.githubusercontent.com/njordhov/mclide/fab77f3b3c856ef211bbaf1158127669759f6fff/mclide/PlugIns%20SRC/_Update/Resources/ccl-update.lisp
lisp
(get-bundle-property "CFBundleVersion") bug in clozure, should be epsilon! gui::with-modal-progress-dialog "Updating MCLIDE" "Downloading update file..."
(in-package :ccl) mostly borrowed from builder-utilities.lisp in Clozure 1.7 (defun get-ide-bundle-info-plist () (let* ((ide-bundle (#/mainBundle ns:ns-bundle)) (ide-bundle-path-nsstring (#/bundlePath ide-bundle)) (ide-bundle-path (ensure-directory-pathname (lisp-stri...
2b50d5a1cf99be30d11a1291f97c53724d325ca6b8e9b812e7222318d9bbc4b2
kmi/irs
heuristic-classifierv1.lisp
-*- Mode : LISP ; Syntax : Common - lisp ; Base : 10 ; Package : OCML ; -*- ;;;; HEURISTIC-CLASSIFICATION :METHOD ;;;; (in-package "OCML") (in-ontology heuristic-classification) ;;;THE-VIRTUAL-SOLUTION-SPACE (def-function the-virtual-solution-space (?init-space ?refs) -> ?solution-space "The space generated by...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/methods/heuristic-classification/heuristic-classifierv1.lisp
lisp
Syntax : Common - lisp ; Base : 10 ; Package : OCML ; -*- HEURISTIC-CLASSIFICATION :METHOD ;;;; THE-VIRTUAL-SOLUTION-SPACE HEURISTIC-SINGLE-SOL-CLASSIFIER HEURISTIC-CLASSIFICATION-PSM (has-composers :type list) Beginning of abstraction ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; end of abstraction ;;;;;;;;;;;;;;;;;;;;;;;;...
(in-package "OCML") (in-ontology heuristic-classification) (def-function the-virtual-solution-space (?init-space ?refs) -> ?solution-space "The space generated by refinement application from an initial solution space" :constraint (and (every ?refs refiner) (solution-space ?init-space)) :de...
57143328a6c81c3d4d70e54a06e62d35a770f8b46aea1434b630e27e210db832
incoherentsoftware/defect-process
StoneFormSkill.hs
module Player.SecondarySkill.All.StoneFormSkill ( mkStoneFormSkill ) where import Control.Monad.IO.Class (MonadIO) import Control.Monad.State (execState, modify) import Data.Maybe (isJust) import qualified Data.List as L import qualified Data.Set as S import Attack import Attack.Hit import Conf...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/c39ce1f742d32a0ffcde82c03bf872adeb7d9162/src/Player/SecondarySkill/All/StoneFormSkill.hs
haskell
module Player.SecondarySkill.All.StoneFormSkill ( mkStoneFormSkill ) where import Control.Monad.IO.Class (MonadIO) import Control.Monad.State (execState, modify) import Data.Maybe (isJust) import qualified Data.List as L import qualified Data.Set as S import Attack import Attack.Hit import Conf...
ac0463fb79cd8f095c364ae8d1038e99059aade724da32d13113cc909aecfcb1
squirrel-prover/squirrel-prover
traceTactics.ml
* All reachability tactics . Tactics are organized in three classes : - Logical - > relies on the logical properties of the sequent . - Structural - > relies on properties of protocols , or of equality over messages , ... - Cryptographic - > relies on a cryptographic assumptions , that mu...
null
https://raw.githubusercontent.com/squirrel-prover/squirrel-prover/12424c7a975a54953428866908071bdf9765f398/src/traceTactics.ml
ocaml
------------------------------------------------------------------ ------------------------------------------------------------------ ------------------------------------------------------------------ * Propositional connectives ------------------------------------------------------------------ -----------------------...
* All reachability tactics . Tactics are organized in three classes : - Logical - > relies on the logical properties of the sequent . - Structural - > relies on properties of protocols , or of equality over messages , ... - Cryptographic - > relies on a cryptographic assumptions , that mu...
4eb2acff22a8bb41f66b319279112113659a128df9a1ec5e9e9c3c317606c4cb
reborg/clojure-essential-reference
7.clj
< 1 > (defonce dont-redefine "1") (def redefine "2") (defonce dont-redefine "2") redefine " 2 " dont-redefine " 1 "
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OtherFunctions/VarsandNamespaces/def%2Cdeclare%2Cinternanddefonce/7.clj
clojure
< 1 > (defonce dont-redefine "1") (def redefine "2") (defonce dont-redefine "2") redefine " 2 " dont-redefine " 1 "
ea7940bc054f1fa132280d4a5e6f5b6ce9bfd26cb99a15c34765b7e8dc597507
softwarelanguageslab/maf
R5RS_scp1_draw-umbrella-1.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (linebreak (lambda () (<change> ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_draw-umbrella-1.scm
scheme
Changes: * swapped branches: 0
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 * calls to i d fun : 1 (letrec ((result ()) (output (lambda (i) (set! result (cons i result)))) (linebreak (lambda () (<change> () (cons '...
bba81d46f9315c86831d11f8507f5ea53cf1f89edb2275233805c7d377c29eda
ghc/testsuite
tcfail007.hs
module ShouldFail where n x | True = x+1 | False = True
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail007.hs
haskell
module ShouldFail where n x | True = x+1 | False = True
5842024f3bc08f90d72ec2de79727827df3c5d1a677b2d13c01a569c24f7908e
fresnel/fresnel
Group.hs
# LANGUAGE DisambiguateRecordFields # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE TemplateHaskell # module Test.Group ( Entry(..) , mkGroup , deriveGroup , mkProp , entryName , Loc(..) , here , zero , Semiring(..) , Unital(..) , horizontal , sumWidths , vertical , maxWidths , Width(..) , HasWidth(..)...
null
https://raw.githubusercontent.com/fresnel/fresnel/8f0d267779703049568694834c25f619034ca74d/fresnel/test/Test/Group.hs
haskell
* Statuses * Tallies Statuses
# LANGUAGE DisambiguateRecordFields # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE TemplateHaskell # module Test.Group ( Entry(..) , mkGroup , deriveGroup , mkProp , entryName , Loc(..) , here , zero , Semiring(..) , Unital(..) , horizontal , sumWidths , vertical , maxWidths , Width(..) , HasWidth(..)...
e178039b79ced9af89e0cc92866926448e79c2b222e802fcfc345c1a85baaa18
polygonhell/Clash6502
Types.hs
module Types where import CLaSH.Prelude import CLaSH.Sized.Unsigned type Byte = BitVector 8 type Addr = BitVector 16
null
https://raw.githubusercontent.com/polygonhell/Clash6502/a684dd7bee153ebb43cfc26bd0f020bc08e9afd6/Types.hs
haskell
module Types where import CLaSH.Prelude import CLaSH.Sized.Unsigned type Byte = BitVector 8 type Addr = BitVector 16
5530c34f79284de862a4c3594f75868b67598c30ffe6ea15077be76bada31135
project-oak/hafnium-verification
clang_ast_yojson_validator.ml
* Copyright ( c ) 2014 - present , Facebook , Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/facebook-clang-plugins/clang-ocaml/clang_ast_yojson_validator.ml
ocaml
* Copyright ( c ) 2014 - present , Facebook , Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE ...
b44a4d146f5af1dd18577e7074ec1539fd48414c30a222168ff6563e66e400b5
fulcrologic/statecharts
events_spec.cljc
(ns com.fulcrologic.statecharts.events-spec (:require [com.fulcrologic.statecharts.events :as evts] [fulcro-spec.core :refer [specification component assertions =>]])) (specification "name-match?" (assertions "ALL events match a nil candidate" (evts/name-match? nil :a.b) => true (evts/name-matc...
null
https://raw.githubusercontent.com/fulcrologic/statecharts/e21a40123c2bbe7bf8a4d49646823507d33b4281/src/test/com/fulcrologic/statecharts/events_spec.cljc
clojure
(ns com.fulcrologic.statecharts.events-spec (:require [com.fulcrologic.statecharts.events :as evts] [fulcro-spec.core :refer [specification component assertions =>]])) (specification "name-match?" (assertions "ALL events match a nil candidate" (evts/name-match? nil :a.b) => true (evts/name-matc...
7bb3e0a21e17e6ce12452d4e3b59e316d98c0ee079c63a82ad92280652ac2b62
labra/Haws
TestFGLTGraph.hs
module Haws.TestFGLTGraph(tests) where import Test.Framework import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 import Test.QuickCheck import Test.HUnit import Haws.FGLTGraph import Haws.TGraph import Data.Set main = defaultMain tests tests = [ testGroup "Empty FGLTGraph" [...
null
https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/tests/Haws/TestFGLTGraph.hs
haskell
module Haws.TestFGLTGraph(tests) where import Test.Framework import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 import Test.QuickCheck import Test.HUnit import Haws.FGLTGraph import Haws.TGraph import Data.Set main = defaultMain tests tests = [ testGroup "Empty FGLTGraph" [...
d8c3b36851e0544a85497b8e46f9b9474b15b34e0d989f438141bcaf10226a0a
docker-in-aws/docker-in-aws
database.clj
(ns swarmpit.database (:require [clojure.tools.logging :as log] [swarmpit.couchdb.client :as cc] [swarmpit.couchdb.migration :refer [migrate]])) (defn- db-ready? [] (try (cc/db-version) (catch Exception _ false))) (defn- wait-for-db [sec] (log/info "Waiting for DB...") (loop...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/clj/swarmpit/database.clj
clojure
(ns swarmpit.database (:require [clojure.tools.logging :as log] [swarmpit.couchdb.client :as cc] [swarmpit.couchdb.migration :refer [migrate]])) (defn- db-ready? [] (try (cc/db-version) (catch Exception _ false))) (defn- wait-for-db [sec] (log/info "Waiting for DB...") (loop...
593f42e174997777b200652eeb66e9fb6636309741314a77ae5a213f90354f8f
theodormoroianu/SecondYearCourses
LambdaChurch_20210415170502.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415170502.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
2250e9f3316dbb47f068959ddc6fca4853dfb1079e124172916b585cd4414fed
wereHamster/mole
JavaScript.hs
{-# LANGUAGE OverloadedStrings #-} module Data.Mole.Builder.JavaScript where import qualified Data.Set as S import qualified Data.Map as M import Data.Map (Map) import Data.Maybe import qualified Data.Text.IO as T import qualified Data.Text.Encoding as T import Data.Mole.Types ...
null
https://raw.githubusercontent.com/wereHamster/mole/f9476a160d1e35fc720498334d292b41658f9d72/src/Data/Mole/Builder/JavaScript.hs
haskell
# LANGUAGE OverloadedStrings #
module Data.Mole.Builder.JavaScript where import qualified Data.Set as S import qualified Data.Map as M import Data.Map (Map) import Data.Maybe import qualified Data.Text.IO as T import qualified Data.Text.Encoding as T import Data.Mole.Types import Data.Mole.Builder....
e5bcb3d84d2ddf79d96f8031004db70f373c8ff20c286b26632464a01ba4fbdb
zwizwa/erl_tools
epid_proc.erl
%% Stateful multi-in, single-out event processors. -module(epid_proc). -export([start_link/1, handle/2, epid_app/2, epid_kill/1, %% The rest are all machine update routines count/3 ]). TODO : Generatlize this , by defining an epid protocol that allows the creation of other machine instances . ...
null
https://raw.githubusercontent.com/zwizwa/erl_tools/affd4060ab5b963e0cc8fcfd4a1ca5023aa518d3/src/epid_proc.erl
erlang
Stateful multi-in, single-out event processors. The rest are all machine update routines Start a service that hosts a simple epid state machine, and fits in the dataflow "applicative" processor framework, e.g. the processor is identified by its output. In the "applicative" view, a state machine's output is the m...
-module(epid_proc). -export([start_link/1, handle/2, epid_app/2, epid_kill/1, count/3 ]). TODO : Generatlize this , by defining an epid protocol that allows the creation of other machine instances . E.g. , pd , ... See also : exo_epid.erl , exo_dataflow.erl , exo.erl Note that applicative pr...
71be45ad41fc299e75a7109e20da149e22860e0d60d17b77a18c5afb65c6c955
snape/Loopless-Functional-Algorithms
LooplessGrayCyclic.hs
This file is part of " Loopless Functional Algorithms " . -- SPDX - FileCopyrightText : 2005 , Oxford University Computing Laboratory SPDX - License - Identifier : Apache-2.0 -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the Lic...
null
https://raw.githubusercontent.com/snape/Loopless-Functional-Algorithms/b96759a40fcdfad10734071776936514ace4dfa1/LooplessGrayCyclic.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 permi...
This file is part of " Loopless Functional Algorithms " . SPDX - FileCopyrightText : 2005 , Oxford University Computing Laboratory SPDX - License - Identifier : Apache-2.0 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS...
b1f2a3d647b60ca6a57344714763f0f9080b09e97987ba4ba45b3e695c4f84c7
baryluk/ex11
swCanvas.erl
-module(swCanvas). Copyright ( C ) 2004 by ( ) %% All rights reserved. %% The copyright holder hereby grants the rights of usage, distribution %% and modification of this software to everyone and for any purpose, as %% long as this license and the copyright notice above are preserved and %% not modified. There is...
null
https://raw.githubusercontent.com/baryluk/ex11/be8abc64ab9fb50611f93d6631fc33ffdee08fdb/widgets/swCanvas.erl
erlang
All rights reserved. The copyright holder hereby grants the rights of usage, distribution and modification of this software to everyone and for any purpose, as long as this license and the copyright notice above are preserved and not modified. There is no warranty for this software. A canvus with a clickable hand...
-module(swCanvas). Copyright ( C ) 2004 by ( ) Started 2004 - 02 - 29 by -export([cdraw/3, delete_obj/2, make/7, newPen/4, draw/3, delete/2]). -import(lists, [foreach/2, map/2, reverse/1]). -include("sw.hrl"). -import(ex11_lib, [ePolyText8/5, rpc/2, sleep/1, xClearArea/1, eCopyArea/9, e...
8dff163c419d9f0d082f966a19ff301284612bd98e737d5d0a6708faff9bf14b
NorfairKing/smos
Types.hs
# LANGUAGE DeriveGeneric # module Smos.Report.Agenda.Types where import Data.Validity import GHC.Generics (Generic) data AgendaHistoricity = HistoricalAgenda | FutureAgenda deriving (Show, Eq, Generic) instance Validity AgendaHistoricity
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos-report/src/Smos/Report/Agenda/Types.hs
haskell
# LANGUAGE DeriveGeneric # module Smos.Report.Agenda.Types where import Data.Validity import GHC.Generics (Generic) data AgendaHistoricity = HistoricalAgenda | FutureAgenda deriving (Show, Eq, Generic) instance Validity AgendaHistoricity
468585b632875d022f7f65f103492f9fac10e9bfb49af4ce72c8684aba4a8673
DanBurton/tardis
Main.hs
import Example import System.Exit main :: IO () main = case actualScores == expectedScores of False -> do putStrLn $ "Expected: " <> show expectedScores putStrLn $ "Actual: " <> show actualScores exitFailure True -> exitSuccess
null
https://raw.githubusercontent.com/DanBurton/tardis/cca1ee1d680b842160f2c99e032ced4e8da24a68/test/Main.hs
haskell
import Example import System.Exit main :: IO () main = case actualScores == expectedScores of False -> do putStrLn $ "Expected: " <> show expectedScores putStrLn $ "Actual: " <> show actualScores exitFailure True -> exitSuccess
22aee8c988cad8d568dd34772fc867307eb63383f40a53e634aba8fcca92489c
hemmi/coq2scala
bigint.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/lib/bigint.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * An integer is canonically ...
aeb54f50d56a03e400cad34349fbea01fc7ffac0cf7550e6973a8a4169912a2d
mirage/irmin-rpc
client.ml
include Client_intf open Capnp_rpc_lwt open Utils open Lwt.Syntax open Lwt.Infix module type S = S module type MAKER = MAKER exception Error_message of string exception Remote_error of string let unwrap = function Ok x -> x | Error (`Msg m) -> raise (Error_message m) let ( let* ) = Lwt.bind module Make : MAKER =...
null
https://raw.githubusercontent.com/mirage/irmin-rpc/e85663194efa049a44238522f1310387b4525249/src/irmin-rpc/client.ml
ocaml
include Client_intf open Capnp_rpc_lwt open Utils open Lwt.Syntax open Lwt.Infix module type S = S module type MAKER = MAKER exception Error_message of string exception Remote_error of string let unwrap = function Ok x -> x | Error (`Msg m) -> raise (Error_message m) let ( let* ) = Lwt.bind module Make : MAKER =...
f4db513d9101e19e6a640a6b243b763412ccb2c759a33f94c79e655d1e8cb410
ariesteam/aries
fisheries.clj
Copyright 2011 The ARIES Consortium ( ) ;;; ;;; This file is part of ARIES. ;;; ;;; ARIES is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at your option)...
null
https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.marine/models/fisheries.clj
clojure
This file is part of ARIES. ARIES is free software: you can redistribute it and/or modify it (at your option) any later version. ARIES 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. ...
Copyright 2011 The ARIES Consortium ( ) 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 UNEP marine project Models for subsistence fisheries in M...
2c4e45a074cad2e0b361b283f7feec94a6f68e364d020b2afc3fed149681bbc6
matijapretnar/eff
optimizer.ml
open Utils open Language type return_clause_kind = | FixedReturnClause of Term.abstraction | VaryingReturnClause exception ReturnClauseNotFixed of Language.Term.Variable.t type optimization_config = { specialize_functions : bool; eliminate_coercions : bool; push_coercions : bool; handler_reductions : boo...
null
https://raw.githubusercontent.com/matijapretnar/eff/1be07f0c7fbaadf5c28437bf11fe818aa76640e7/src/04-optimizer/optimizer.ml
ocaml
Cache of already specialized functions Optimization functions Reductions and inlining Pattern does not occur in in an abstraction body Pattern occurs, and occurs at most once in an abstraction and there is no recursion Pattern occurs more than once in a body of abstraction or it occurs recursively Do prope...
open Utils open Language type return_clause_kind = | FixedReturnClause of Term.abstraction | VaryingReturnClause exception ReturnClauseNotFixed of Language.Term.Variable.t type optimization_config = { specialize_functions : bool; eliminate_coercions : bool; push_coercions : bool; handler_reductions : boo...
f583876fd728ca3fda6927566bdb420aa4dda801892d89aaaac39137d0bf1706
gordonguthrie/pometo
pometo_errors.erl
-module(pometo_errors). -export([ make_error/5, make_index_error_for_rank/3, make_length_error_for_reduce/4, make_length_error_for_shape/4, make_domain_error_for_shape/3, ...
null
https://raw.githubusercontent.com/gordonguthrie/pometo/b4916b4efea8bc58d10f01bf6981435c3b514194/src/pometo_errors.erl
erlang
-module(pometo_errors). -export([ make_error/5, make_index_error_for_rank/3, make_length_error_for_reduce/4, make_length_error_for_shape/4, make_domain_error_for_shape/3, ...
376c50e3fb18271175dbb9b6035f08f294782d7226a450859577edd430812305
haroldcarr/learn-haskell-coq-ml-etc
Main.hs
module Main where import Lib main :: IO () main = pubServer
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/network/nanomsg/app/Main.hs
haskell
module Main where import Lib main :: IO () main = pubServer
da1781043963afde5b47d24cf03e6eda335cca85167a9c8f5433d8c5f8242a0b
erlang/otp
httpc_response.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2004 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/inets/src/http_client/httpc_response.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2004 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(httpc_response). -include_lib("inets/src/http_lib/http_internal.hrl"). -include("httpc_internal.hrl"). A...
233887fb2fa07708bd6a404dff1ebc7ee67f95d5de89d20c9c603739ac7bbbf7
clojerl/clojerl
clojerl.TupleMap.erl
-module('clojerl.TupleMap'). -compile({no_auto_import, [{apply, 2}]}). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -behavior('clojerl.IAssociative'). -behavior('clojerl.ICounted'). -behavior('clojerl.IColl'). -behavior('clojerl.IEquiv'). -behavior('clojerl.IEncodeErlang'). -behavior('clojerl.IFn'). -behavi...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/collections/clojerl.TupleMap.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ clojerl.IAssociative clojerl.ICounted clojerl.IEquiv clojerl.IFn clojerl.IStringable ------------------------------------------------------------------------...
-module('clojerl.TupleMap'). -compile({no_auto_import, [{apply, 2}]}). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -behavior('clojerl.IAssociative'). -behavior('clojerl.ICounted'). -behavior('clojerl.IColl'). -behavior('clojerl.IEquiv'). -behavior('clojerl.IEncodeErlang'). -behavior('clojerl.IFn'). -behavi...
ef5e12aa8ae799ea584de32b2cb2debc5d614c89a2fff0737f531f850e19f055
DavidAlphaFox/aiwx
ai_wx_http.erl
-module(ai_wx_http). -export([get/2,post/3,post_multipart/3]). get(HOST,Path)-> {ok, ConnPid} = gun:open(HOST,443, #{transport => tls}), {ok, _Protocol} = gun:await_up(ConnPid), StreamRef = gun:get(ConnPid,Path,[ {<<"Content-Type">>, <<"application/json">>}, {<<"accept">>, "application/js...
null
https://raw.githubusercontent.com/DavidAlphaFox/aiwx/c4817df8b8be5264b9ce93b0f20e6ae6947b5a35/src/ai_wx_http.erl
erlang
-module(ai_wx_http). -export([get/2,post/3,post_multipart/3]). get(HOST,Path)-> {ok, ConnPid} = gun:open(HOST,443, #{transport => tls}), {ok, _Protocol} = gun:await_up(ConnPid), StreamRef = gun:get(ConnPid,Path,[ {<<"Content-Type">>, <<"application/json">>}, {<<"accept">>, "application/js...
1f9393a5967c64fc95909ee6ad72ddcd796d0ebe16ee007bb0a95e544645359f
mrosset/nomad
init.scm
;; init.scm Copyright ( C ) 2017 - 2018 < > This file is part of Nomad Nomad is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any later vers...
null
https://raw.githubusercontent.com/mrosset/nomad/c94a65ede94d86eff039d2ef62d5ef3df609568a/scheme/nomad/init.scm
scheme
init.scm (at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. with this program. If not, see </>. If user-init-file exists and -Q is not passed as a command line ar...
Copyright ( C ) 2017 - 2018 < > This file is part of Nomad Nomad is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or Nomad is distributed in the hope that it wi...
8c462aeac9e485b24b57d07c906a61fa57e3f479bde1b084773bf67aa026def7
zotonic/zotonic
z_config.erl
@author < > 2010 - 2021 , 2014 @doc Wrapper for Zotonic application environment configuration Copyright 2010 - 2021 , 2014 %% 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 L...
null
https://raw.githubusercontent.com/zotonic/zotonic/71a68c5d2b1f40cdd28926e4a4122c67970dfaea/apps/zotonic_core/src/support/z_config.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
@author < > 2010 - 2021 , 2014 @doc Wrapper for Zotonic application environment configuration Copyright 2010 - 2021 , 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(z_config). -author("Marc...
c15a1f453eee0933542e0391a466728e09fc5aa8e10da2bbf464964ad6a58e96
clojure/tools.analyzer.jvm
validate_recur.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/tools.analyzer.jvm/f00d92317307c3e9e326fd99d337292925dc9db1/src/main/clojure/clojure/tools/analyzer/passes/jvm/validate_recur.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.tools.analyzer.passes.jvm.validate-recur (:require [clojure.tools.analyzer.ast :refer [update-children]] [clojure.tools.analyzer.utils :refer [-source-info]])) (defmulti validate-recur "Ensures recurs don't cross try boundaries" {:pass...
d9aa3037e9d87feb6bd9499bd10ac9d6655ac6b770ae53938ae041efdbb32b77
tolysz/ghcjs-stack
Flag.hs
# LANGUAGE DeriveFunctor # module Distribution.Client.Dependency.Modular.Flag ( FInfo(..) , Flag , FlagInfo , FN(..) , QFN , QSN , SN(..) , mkFlag , showFBool , showQFN , showQFNBool , showQSN , showQSNBool ) where import Data.Map as M import Prelude hiding (pi) ...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal/cabal-install/Distribution/Client/Dependency/Modular/Flag.hs
haskell
| Flag name. Consists of a package instance and the flag identifier itself. | Flag identifier. Just a string. | Flag info. Default value, whether the flag is manual, and whether the flag is weak. Manual flags can only be set explicitly. Weak flags are typically deferred by the solver. | Flag defaults. | Qualifie...
# LANGUAGE DeriveFunctor # module Distribution.Client.Dependency.Modular.Flag ( FInfo(..) , Flag , FlagInfo , FN(..) , QFN , QSN , SN(..) , mkFlag , showFBool , showQFN , showQFNBool , showQSN , showQSNBool ) where import Data.Map as M import Prelude hiding (pi) ...
f55e95108328b30bb344a493eb0ace88c736884eefbcb2c8beb4d7f5b4d6a674
spectrum-finance/cardano-dex-backend
Executor.hs
# LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Spectrum.Executor ( runApp ) where import RIO ( ReaderT (..), MonadReader (ask), MonadIO (liftIO), void, Alternative (..), MonadPlus (..), newQSem ) import RIO.List ( headMay...
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-backend/69d3ee06b33c966c2d21281214252c1fd2e77325/amm-executor/src/Spectrum/Executor.hs
haskell
# LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Spectrum.Executor ( runApp ) where import RIO ( ReaderT (..), MonadReader (ask), MonadIO (liftIO), void, Alternative (..), MonadPlus (..), newQSem ) import RIO.List ( headMay...