_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
ec0ee252931525c2d1bbac371da5a156f867f167fd17b41416ec64d04b474bc3
DIJamner/lambda-compiler
test-utils.rkt
#lang racket (require racket/system racket/runtime-path) (provide run-mips run-x64) (define-runtime-path mars "mars/Mars4_5.jar") (define-runtime-path build "../x64/lib/build.sh") ;; run-mips : MIPSString -> String (define (run-mips assembly) (define temp-file (make-temporary-file)) (display-to-file assembly ...
null
https://raw.githubusercontent.com/DIJamner/lambda-compiler/5597f631e538ddb738fbe38d1cc0143ce69875a4/test/test-utils.rkt
racket
run-mips : MIPSString -> String
#lang racket (require racket/system racket/runtime-path) (provide run-mips run-x64) (define-runtime-path mars "mars/Mars4_5.jar") (define-runtime-path build "../x64/lib/build.sh") (define (run-mips assembly) (define temp-file (make-temporary-file)) (display-to-file assembly temp-file #:exists 'replace) (def...
f6f3b70781f8241bb09859bd6c436ca2d45703ca651c577339d17ad3c46cd660
soegaard/pyffi
python-list.rkt
#lang racket/base (provide (all-defined-out)) (require "structs.rkt" "python-c-api.rkt" "python-environment.rkt" "python-types.rkt") (require (for-syntax racket/base syntax/parse racket/syntax)) ;;; ;;; Lists (Python lists) ;;; (define (pylist? x) (and (obj? x) (or (equal? (obj-...
null
https://raw.githubusercontent.com/soegaard/pyffi/cd58de35045e0e6d406e7497af9b55b93071637f/pyffi-lib/pyffi/python-list.rkt
racket
Lists (Python lists) (PyList_Check (obj-the-obj x))))) new reference since PyList_SetItem steals reference succes out of range since PyList_SetItem steals reference succes out of range returns new pylist since PyList_SetItem steals reference succes succes
#lang racket/base (provide (all-defined-out)) (require "structs.rkt" "python-c-api.rkt" "python-environment.rkt" "python-types.rkt") (require (for-syntax racket/base syntax/parse racket/syntax)) (define (pylist? x) (and (obj? x) (or (equal? (obj-type-name x) "list") (define (py...
7aadcd7ebff3a3a5a85626de8d67a6168e89f31fc86504cbaeb818bb6ef5f60e
lanl/APPFL
AST.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE RecordWildCards # module AST ( Var, Atom(..), Expr(..), Alt(..), Alts(..), Obj(..), Def(..), PrimType(..), PrimOpInfo(..), PrimOp(..), opArity, mkOpInfo, primOpTab, primTyTab, show, objListDoc, projectAto...
null
https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/codegen/AST.hs
haskell
# LANGUAGE NamedFieldPuns # See Parser.hs for grammar primitive string e.g. const char *str = "hello world"; We know everything about an op at parse time, so we save it here Grab the variable name of the scrutinee binding, enforce the invariant above when calculating free variables we need an enclosing environ...
# LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # module AST ( Var, Atom(..), Expr(..), Alt(..), Alts(..), Obj(..), Def(..), PrimType(..), PrimOpInfo(..), PrimOp(..), opArity, mkOpInfo, primOpTab, primTyTab, show, objListDoc, projectAtoms, scrtVarName, maybeTypeOfAto...
4cf67b3c2f7075820bd9e1454b9fe90b76c64c7a3f15eb53d130bd766da94ea4
jyh/metaprl
ilc_listtest.mli
extends Ilc_core extends Ilc_term
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/ilc/ilc_listtest.mli
ocaml
extends Ilc_core extends Ilc_term
1dd930ad23aeb0a52156261a32d594a9e6ecc229bb62f9b846cd74bb4f468d28
jtdaugherty/vty
benchmark.hs
# LANGUAGE QuasiQuotes # module Main where import Graphics.Vty import qualified BenchImageFuzz import qualified BenchNoDiffOpt import qualified BenchRenderChar import qualified BenchVerticalScroll import Control.Monad import Data.Maybe import Data.List import System.Environment import System.Posix.Process import ...
null
https://raw.githubusercontent.com/jtdaugherty/vty/a4cb4cfc386a4bc0e46921d878b808e76567ebc9/examples/benchmark.hs
haskell
drop the dash-dash "--"
# LANGUAGE QuasiQuotes # module Main where import Graphics.Vty import qualified BenchImageFuzz import qualified BenchNoDiffOpt import qualified BenchRenderChar import qualified BenchVerticalScroll import Control.Monad import Data.Maybe import Data.List import System.Environment import System.Posix.Process import ...
f8349a67b9eabe48f20d781b6f910b1530bbcec7479928289191fb136f15e4ad
zcaudate/hara
meta_test.clj
(ns hara.deploy.package.meta-test (:use hara.test) (:require [hara.deploy.package.meta :refer :all] [hara.io.project :as project] [hara.lib.jsoup :as html])) ^{:refer hara.deploy.package.meta/pom-properties :added "3.0"} (comment "creates a pom.properties file" (pom-properties (project/p...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/deploy/package/meta_test.clj
clojure
(ns hara.deploy.package.meta-test (:use hara.test) (:require [hara.deploy.package.meta :refer :all] [hara.io.project :as project] [hara.lib.jsoup :as html])) ^{:refer hara.deploy.package.meta/pom-properties :added "3.0"} (comment "creates a pom.properties file" (pom-properties (project/p...
7abbc5493ba0c8c5e973ae54e89b6ec57bcc13eb67106861c3a85cf72d51615c
camsaul/methodical
cloverage_runner.clj
(ns methodical.cloverage-runner (:require cloverage.coverage)) (defn run-project "Shim for running tests using Cloverage to get code coverage metrics. See comments in `deps.edn` for more information." [options] parse regex lists into actual regex Patterns since regex literals are n't allowed in EDN . (let ...
null
https://raw.githubusercontent.com/camsaul/methodical/de05a43afe93d6732f8630b16dc512302703a30c/test/methodical/cloverage_runner.clj
clojure
(ns methodical.cloverage-runner (:require cloverage.coverage)) (defn run-project "Shim for running tests using Cloverage to get code coverage metrics. See comments in `deps.edn` for more information." [options] parse regex lists into actual regex Patterns since regex literals are n't allowed in EDN . (let ...
dcd6b0baa78df8ef4f87ac40fa0fd5404540df5cb8ae93dfa3434b72a32b8c38
eWert-Online/OSnap
OSnap_Paths.ml
let get_snapshot_root_path (config : OSnap_Config.Types.global) = Filename.concat config.root_path config.snapshot_directory ;; let get_base_images_dir (config : OSnap_Config.Types.global) = let base_path = get_snapshot_root_path config in Filename.concat base_path "__base_images__" ;; let get_updated_dir (conf...
null
https://raw.githubusercontent.com/eWert-Online/OSnap/9010a45469ef069fffec2c9d992a7bc0808f04d8/lib/OSnap_Paths/OSnap_Paths.ml
ocaml
let get_snapshot_root_path (config : OSnap_Config.Types.global) = Filename.concat config.root_path config.snapshot_directory ;; let get_base_images_dir (config : OSnap_Config.Types.global) = let base_path = get_snapshot_root_path config in Filename.concat base_path "__base_images__" ;; let get_updated_dir (conf...
dca8ad9275f8806d2af8c95d766794a4a2e6a7aeb7731cf55636e7ee883e88d4
facebookarchive/duckling_old
temperature.clj
( ; Context map {} "37°C" "37 ° celsius" "37 degres Celsius" "37 degré C" "trente sept celsius" "37 degré C" "trente sept celsius" (temperature 37 "celsius") "70°F" "70 ° Fahrenheit" "70 degrès F" "soixante-dix Fahrenheit" (temperature 70 "fahrenheit") "45°" "45 degrés" "45 deg." (te...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/fr/corpus/temperature.clj
clojure
Context map
( {} "37°C" "37 ° celsius" "37 degres Celsius" "37 degré C" "trente sept celsius" "37 degré C" "trente sept celsius" (temperature 37 "celsius") "70°F" "70 ° Fahrenheit" "70 degrès F" "soixante-dix Fahrenheit" (temperature 70 "fahrenheit") "45°" "45 degrés" "45 deg." (temperature 45 "d...
bf3753ebf14e93a88719bed1f31a6c97634707f52d52cd45b7f5554d06f66bd1
lem-project/lem
swank-asdf.lisp
;;; swank-asdf.lisp -- ASDF support ;; Authors : < > < > < > < > ;; and others ;; License: Public Domain ;; (in-package :micros) (eval-when (:compile-toplevel :load-toplevel :execute) ;;; The best way to load ASDF is from an init file of an ;;; implementation....
null
https://raw.githubusercontent.com/lem-project/lem/c1c3d35905bfd0c6d1af1df4f7c6a7f415a1c7e9/lib/micros/contrib/swank-asdf.lisp
lisp
swank-asdf.lisp -- ASDF support and others License: Public Domain The best way to load ASDF is from an init file of an implementation. If ASDF is not loaded at the time swank-asdf is doesn't help and *asdf-path* is set, it will be loaded from that file. To set *asdf-path* put the following into ~/.s...
Authors : < > < > < > < > (in-package :micros) (eval-when (:compile-toplevel :load-toplevel :execute) loaded , it will be tried first with ( require " asdf " ) , if that (defvar *asdf-path* nil "Path to asdf.lisp file, to be loaded in case (require \"asdf\") fa...
64e827bd684b68fad27cf5ccb23967b81bd70492189314160246f2d1c58143f0
robert-strandh/Climacs
window-commands.lisp
;;; -*- Mode: Lisp; Package: CLIMACS-GUI -*- ( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2007 by ( ) ;;; This library is free soft...
null
https://raw.githubusercontent.com/robert-strandh/Climacs/68ccba6a2a9cc78c1a84f1698c31c78a215f3d90/window-commands.lisp
lisp
-*- Mode: Lisp; Package: CLIMACS-GUI -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License ...
( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2004 - 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2005 by ( ) ( c ) copyright 2007 by ( ) modify it under the terms of the GNU Library General Public version 2 ...
5a51c6cad413308405b656aab33aac359f2931b9dcdf80760260ec30ea79a23d
mransan/ocaml-protoc
pbrt.ml
Copyright ( c ) 2014 < > Copyright ( c ) 2016 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights ...
null
https://raw.githubusercontent.com/mransan/ocaml-protoc/e43b509b9c4a06e419edba92a0d3f8e26b0a89ba/src/runtime/pbrt.ml
ocaml
safe: we won't modify the bytes strings are always shorter than range of int strings are always shorter than range of int keys are always in the range of int, * but prefix might only fit into int32 strings are always shorter than range of int strings are always shorter than range of int safe: we're ...
Copyright ( c ) 2014 < > Copyright ( c ) 2016 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights ...
1c21061f4f6d32266e2f668b9c2071de65b21bb292b7f193d34d8946039568a7
tonyg/kali-scheme
read-form.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . ; The value of $NOTE-FILE-PACKAGE is called whenever a file is loaded into ; a package. env/debug.scm uses this to associate packages with files so that code stuffed to the REPL will be eval'ed ...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/bcomp/read-form.scm
scheme
The value of $NOTE-FILE-PACKAGE is called whenever a file is loaded into a package. env/debug.scm uses this to associate packages with files so Is there any point in having this be a fluid?
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . that code stuffed to the REPL will be eval'ed in the correct package . (define $note-file-package (make-fluid (lambda (filename package) (values)))) (define (read-forms pathname package) ...
09d185a3169efeaae8fa58ac1be6ffeefd605a5a7ec87c7aa68f49d05778ddaf
sveri/ffdc
globals.clj
(ns de.sveri.structconverter.globals (:require [de.sveri.clojure.commons.files.edn :as commons])) (def ^:const friendui-config-name "friendui-config.edn") (def ^:const friendui-config (commons/from-edn friendui-config-name)) (def ^:const partition-id (:partition-id friendui-config)) (def ^:const db-uri (:db-uri fr...
null
https://raw.githubusercontent.com/sveri/ffdc/303c94b9e3b1bd0e4aa13ca948d08eac26f96acf/src/clj/de/sveri/structconverter/globals.clj
clojure
(ns de.sveri.structconverter.globals (:require [de.sveri.clojure.commons.files.edn :as commons])) (def ^:const friendui-config-name "friendui-config.edn") (def ^:const friendui-config (commons/from-edn friendui-config-name)) (def ^:const partition-id (:partition-id friendui-config)) (def ^:const db-uri (:db-uri fr...
dbde217fee26aceb75bc09b12707e791d8491b7d75dcb4622fb58c4bafe2c511
clojure-emacs/cider-nrepl
profile.clj
(ns cider.nrepl.middleware.profile "This profiler is intended for interactive profiling applications where you do not expect a profiling tool to automatically compensate for JVM warm-up and garbage collection issues. If you are doing numeric computing or writing other purely functional code that can be execut...
null
https://raw.githubusercontent.com/clojure-emacs/cider-nrepl/fbdb6e6111d3b69381233b94759e20032e6a744c/src/cider/nrepl/middleware/profile.clj
clojure
(ns cider.nrepl.middleware.profile "This profiler is intended for interactive profiling applications where you do not expect a profiling tool to automatically compensate for JVM warm-up and garbage collection issues. If you are doing numeric computing or writing other purely functional code that can be execut...
4563d65ec1577455ee4a8c42b28701fbed219136ff0fd75ca1bf4ae54517758a
cmsc430/www
compile-define.rkt
#lang racket (provide (all-defined-out)) (require "stdlib.rkt" "ast.rkt" "types.rkt" "fv.rkt" "utils.rkt" "compile-expr.rkt" "a86/ast.rkt" "registers.rkt") [ ] - > [ I d ] (define (define-ids ds) (match ds ['() '()] [(cons (Defn f l) ds) ...
null
https://raw.githubusercontent.com/cmsc430/www/68019ca1be5d1ac87469582eaa0f41a48f907588/langs/outlaw/compile-define.rkt
racket
Defn GEnv -> Asm (%%% (symbol->string f)) pop env pop env
#lang racket (provide (all-defined-out)) (require "stdlib.rkt" "ast.rkt" "types.rkt" "fv.rkt" "utils.rkt" "compile-expr.rkt" "a86/ast.rkt" "registers.rkt") [ ] - > [ I d ] (define (define-ids ds) (match ds ['() '()] [(cons (Defn f l) ds) ...
6c782479a53078ecfd11988ffd9fe0962f74eb79c7bb000f5e0990b1f0c5f8bb
ocaml-sf/learn-ocaml-corpus
solution.ml
(* A histogram maps characters to integer frequencies. *) module CharMap = Map.Make(Char) type histogram = int CharMap.t (* Building a histogram out of a string. *) let histogram (s : string) : histogram = let table = ref CharMap.empty in String.iter (fun c -> let freq = try CharMap.find c !table with N...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/anagrams/solution.ml
ocaml
A histogram maps characters to integer frequencies. Building a histogram out of a string.
module CharMap = Map.Make(Char) type histogram = int CharMap.t let histogram (s : string) : histogram = let table = ref CharMap.empty in String.iter (fun c -> let freq = try CharMap.find c !table with Not_found -> 0 in table := CharMap.add c (freq + 1) !table ) s; !table let anagrams (s1 : stri...
c046b7324009bfd502c80fe9dc338f83e1f1ddf9cb27692a532b61a859f6b111
nandor/llir-ocaml
t092-pushacc3.ml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = false in let y = true in let z = true in let a = true in if...
null
https://raw.githubusercontent.com/nandor/llir-ocaml/9c019f15c444e30c825b1673cbe827e0497868fe/testsuite/tests/tool-ocaml/t092-pushacc3.ml
ocaml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = false in let y = true in let z = true in let a = true in if...
82f97476bd0833bc12a7965bb29d831eb985173e2126831f91689119917e0f72
synduce/Synduce
mls.ml
(* Trees *) type 'a tree = | Empty | Node of 'a * 'a tree * 'a tree (* Lists *) type 'a list = | Nil | Cons of 'a * 'a list (* Representation function from tree to list *) pmrs repr = repr Empty - > Nil | repr Node(a , l , r ) - > , repr l ) r | | , ll , lr ) - > , ll ) ...
null
https://raw.githubusercontent.com/synduce/Synduce/42d970faa863365f10531b19945cbb5cfb70f134/benchmarks/list_to_tree/mls.ml
ocaml
Trees Lists Representation function from tree to list A simple spec: search on lists.
type 'a tree = | Empty | Node of 'a * 'a tree * 'a tree type 'a list = | Nil | Cons of 'a * 'a list pmrs repr = repr Empty - > Nil | repr Node(a , l , r ) - > , repr l ) r | | , ll , lr ) - > , ll ) lr repr Empty -> Nil | repr Node(a, l, r) -> dec Cons(a, repr l...
5d307e9671e28540fce8ed4b25f3fcd9cb5ea02ed6990b839dde103744365b91
OctopiChalmers/dragen
Optimization.hs
module Optimization where import Data.List import Data.Maybe import Data.Ord import qualified Data.Map.Strict as Map import Prediction import TypeInfo import System.IO.Unsafe import System.IO dot :: a -> a dot x = unsafePerformIO (putStr "*" >> hFlush stdout >> return x) epsilon :: Double epsilon = 0.00001 type C...
null
https://raw.githubusercontent.com/OctopiChalmers/dragen/df393db2defb4f75ced719cd5f9993bb72109e31/src/Optimization.hs
haskell
------------------------------------------------------------------------------ Local search optimization method.
module Optimization where import Data.List import Data.Maybe import Data.Ord import qualified Data.Map.Strict as Map import Prediction import TypeInfo import System.IO.Unsafe import System.IO dot :: a -> a dot x = unsafePerformIO (putStr "*" >> hFlush stdout >> return x) epsilon :: Double epsilon = 0.00001 type C...
1a315f00fe020e9b122f098ac2d24b125081361dba8474034fa8d5456e8c61bd
ocamllabs/ocaml-modular-implicits
predef.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/typing/predef.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Path open Types open Btype let b...
f15f809c4c9ef819930fe7b70149d9618fd469c038c724ad88a5e8f58353a950
exercism/ocaml
example.ml
open Base let transform data = let assign points letter = (Char.lowercase letter, points) in let gather (points, letters) = List.map letters ~f:(assign points) in let compare (a, _) (b, _) = Char.compare a b in List.sort ~compare (List.concat_map data ~f:gather)
null
https://raw.githubusercontent.com/exercism/ocaml/914e58d48e58a96fe7635fe4b06cc103af4ed683/exercises/practice/etl/.meta/example.ml
ocaml
open Base let transform data = let assign points letter = (Char.lowercase letter, points) in let gather (points, letters) = List.map letters ~f:(assign points) in let compare (a, _) (b, _) = Char.compare a b in List.sort ~compare (List.concat_map data ~f:gather)
d37d481a6369fa39210778d00c508197002042359fea685125e91fdf57d5f88c
kit-ty-kate/visitors
VisitorsPlugin.ml
(* The name of our [ppx_deriving] plugin. *) let plugin = "visitors"
null
https://raw.githubusercontent.com/kit-ty-kate/visitors/fc53cc486178781e0b1e581eced98e07facb7d29/src/VisitorsPlugin.ml
ocaml
The name of our [ppx_deriving] plugin.
let plugin = "visitors"
c667fbf8431365705eb5e5dcee7e595bc19e77dd21429f7dfcd5fd729f5539fd
argp/bap
oUnit.ml
(***********************************************************************) (* The OUnit library *) (* *) Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright ( C ) 20...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ounit/src/oUnit.ml
ocaml
********************************************************************* The OUnit library See LICENSE for details. ...
Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright ( C ) 2010 OCamlCore SARL open Format let global_verbose = ref false let buff_printf f = let buff = Buffer.create 13 in let fmt = formatter_of_buffer buff in f fmt; pp_print_flu...
f237a1c75bbd9e967408a0754908963de1061c0d9735d905c8bb346c14376966
dharrigan/startrek
metrics.clj
(ns startrek.shared.middleware.metrics {:author "David Harrigan"} (:require [iapetos.collector.jvm :as jvm] [iapetos.collector.ring :as ring] [iapetos.core :as prometheus])) (set! *warn-on-reflection* true) (def ^:private uri-matcher (re-pattern "/api/.*")) (def ^:private request-methods #{:delete :get :...
null
https://raw.githubusercontent.com/dharrigan/startrek/a91caa3f504ffea502b79cfd29d0499574aaced6/src/startrek/shared/middleware/metrics.clj
clojure
(ns startrek.shared.middleware.metrics {:author "David Harrigan"} (:require [iapetos.collector.jvm :as jvm] [iapetos.collector.ring :as ring] [iapetos.core :as prometheus])) (set! *warn-on-reflection* true) (def ^:private uri-matcher (re-pattern "/api/.*")) (def ^:private request-methods #{:delete :get :...
da0d434bba75e723282fc42f818a7cb114fd20a9401f8408c5e9fc42761a8fd2
hyperfiddle/electric
evaluator1.clj
(ns dustin.evaluator1) let ; let UserGreeting = ( props ) = > < h1 > Welcome back!</h1 > ; ;let GuestGreeting = (props) => <h1>Please sign up.</h1>; let Greeting = ( props ) = > props.isLoggedIn ? < UserGreeting / > : ; ReactDOM.render(<Greeting isLoggedIn={false } / > , document.getElementById('root ' ) ) ; (de...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2021/via/evaluator1.clj
clojure
let GuestGreeting = (props) => <h1>Please sign up.</h1>; greeting2 greeting2 GuestGreeting GuestGreeting reactive-eval note the clojure stack unwinds before the react AST evals ! React needs an external evaluator engine / trampoline thing Scope crossing is explicit. Clojure stack unwinds Like React, needs ...
(ns dustin.evaluator1) (defn GuestGreeting [props] (println 'GuestGreeting) 42) (defn UserGreeting [props] (println 'UserGreeting) 43) (defn Greeting1 [props] (UserGreeting props)) (defn Greeting2 [props] (println 'greeting2) (if (:is-logged-in props) `(UserGreeting ~props) `(GuestGreeting ~props))) (d...
be08b1919d86152bfb058de430a6e8ba1c7a7e203e1750b2634bbfd4b5e56d52
janestreet/bonsai
bonsai_quickcheck_test.mli
(*_ This file is left intentionally blank *)
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/test/quickcheck/test/bonsai_quickcheck_test.mli
ocaml
_ This file is left intentionally blank
42a251641dcf7b09ea3838791552752e45590183b9b3c232d34ed4c693e3dd7d
elastic/runbld
middleware.clj
(ns runbld.scheduler.middleware (:require [runbld.scheduler :as scheduler] [runbld.scheduler.default :as default] [runbld.scheduler.jenkins :as jenkins] [runbld.schema :refer :all] [schema.core :as s] [slingshot.slingshot :refer [throw+]])) (s/defn make-scheduler :- (s/protocol scheduler/Scheduler)...
null
https://raw.githubusercontent.com/elastic/runbld/7afcb1d95a464dc068f95abf3ad8a7566202ce28/src/clj/runbld/scheduler/middleware.clj
clojure
(ns runbld.scheduler.middleware (:require [runbld.scheduler :as scheduler] [runbld.scheduler.default :as default] [runbld.scheduler.jenkins :as jenkins] [runbld.schema :refer :all] [schema.core :as s] [slingshot.slingshot :refer [throw+]])) (s/defn make-scheduler :- (s/protocol scheduler/Scheduler)...
fb1d7be4843e6c1fadedc273142ddc5cf41a764d5b32d626c56819ab365ae7bc
falsetru/htdp
43.1.2.scm
#lang racket (define (in-place-sort V) sort - aux : ( vectorof number ) N - > void effect : to sort the interval [ ) of V in place (define (sort-aux i) (cond [(zero? i) (void)] [else (begin sort the segment [ 0,(sub1 i ) ): (sort-aux (sub1 i)) ;; insert (vector-ref V (s...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/43/43.1.2.scm
scheme
insert (vector-ref V (sub1 i)) into the segment
#lang racket (define (in-place-sort V) sort - aux : ( vectorof number ) N - > void effect : to sort the interval [ ) of V in place (define (sort-aux i) (cond [(zero? i) (void)] [else (begin sort the segment [ 0,(sub1 i ) ): (sort-aux (sub1 i)) [ ) so that it becomes sorted '...
c9f522e135b09839a428f650feb70861321b1733fd4a2e552c7556e78cfbc858
okeuday/erlbench
json_encode.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : -module(json_encode). -export([test/1, run/3]). -include("erlbench.hrl"). -define(FILE1, "data/sample1.json"). -define(FILE2, "data/sample1_pretty.json"). -define(FILE3, "data/sam...
null
https://raw.githubusercontent.com/okeuday/erlbench/9fc02a2e748b287b85f6e9641db6b2ca68791fa4/src/json_encode.erl
erlang
results
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et : -module(json_encode). -export([test/1, run/3]). -include("erlbench.hrl"). -define(FILE1, "data/sample1.json"). -define(FILE2, "data/sample1_pretty.json"). -define(FILE3, "data/sam...
e9f4e44b9ffd45e9a17e3d0db209796735ed1e4a0a4a691b655ce1ca50359642
weavejester/ring-serve
project.clj
(defproject ring-serve "0.1.2" :description "Ring development web server" :dependencies [[org.clojure/clojure "1.2.1"] [ring/ring-devel "1.0.0"] [ring/ring-jetty-adapter "1.0.0"]])
null
https://raw.githubusercontent.com/weavejester/ring-serve/d922c569740b4c56264219104e98f30f8c24514b/project.clj
clojure
(defproject ring-serve "0.1.2" :description "Ring development web server" :dependencies [[org.clojure/clojure "1.2.1"] [ring/ring-devel "1.0.0"] [ring/ring-jetty-adapter "1.0.0"]])
7bc3ee316db48ec87a2476f7f6ac09dd4cc18fa2d62574ad37da2587e1c8a9ae
nikita-volkov/rerebase
Show.hs
module GHC.Show ( module Rebase.GHC.Show ) where import Rebase.GHC.Show
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/Show.hs
haskell
module GHC.Show ( module Rebase.GHC.Show ) where import Rebase.GHC.Show
edbfe99ce6b62e87d1702fb0f91fec16f2ff55502baf324d8b946ce308cf1109
chef/chef-server
oc_chef_authz_test_utils.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > %% @version 0.0.1 %% @end Copyright Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this fi...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/oc_chef_authz/test/oc_chef_authz_test_utils.erl
erlang
ex: ts=4 sw=4 et @version 0.0.1 @end Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the ...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > Copyright Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is d...
e29f6fdd040a01d16a008559eca5488800c1270009c7dafaa2e806ffa3c061a7
ghc/packages-Cabal
Utils.hs
module UnitTests.Distribution.Solver.Modular.QuickCheck.Utils ( testPropertyWithSeed ) where import Data.Tagged (Tagged, retag) import System.Random (getStdRandom, random) import Test.Tasty (TestTree) import Test.Tasty.Options (OptionDescription, lookupOption, setOption) import Test.Tasty.Providers (IsTest (..)...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-install/tests/UnitTests/Distribution/Solver/Modular/QuickCheck/Utils.hs
haskell
| Create a QuickCheck test that prints the seed before testing the property. The seed can be useful for debugging non-terminating test cases. This is related to .
module UnitTests.Distribution.Solver.Modular.QuickCheck.Utils ( testPropertyWithSeed ) where import Data.Tagged (Tagged, retag) import System.Random (getStdRandom, random) import Test.Tasty (TestTree) import Test.Tasty.Options (OptionDescription, lookupOption, setOption) import Test.Tasty.Providers (IsTest (..)...
619c30924f92159cd0945450cfa1929c1df464a6ab1aba2f3406b7ff1614a29b
metametadata/clj-fakes
functions.cljc
(ns unit.fixtures.functions) (defn sum [x y] (+ x y)) (defn variadic ([] "[]") ([_] "[a]") ([_ _] "[a b]") ([_ _ & _] "[a b & c]")) (defmulti fib int) (defmethod fib 0 [_] 1) (defmethod fib 1 [_] 1) (defmethod fib :default [n] (+ (fib (- n 2)) (fib (- n 1))))
null
https://raw.githubusercontent.com/metametadata/clj-fakes/d928ddfd11b150b1cd2df5621265c447bf42395a/test/unit/fixtures/functions.cljc
clojure
(ns unit.fixtures.functions) (defn sum [x y] (+ x y)) (defn variadic ([] "[]") ([_] "[a]") ([_ _] "[a b]") ([_ _ & _] "[a b & c]")) (defmulti fib int) (defmethod fib 0 [_] 1) (defmethod fib 1 [_] 1) (defmethod fib :default [n] (+ (fib (- n 2)) (fib (- n 1))))
5db6a8ef5cf5767405fe150300417bb87abf029d1955e24f56de7c4cb5545373
racket/racket7
check.rkt
#lang racket/base (require "../../common/check.rkt" (for-syntax racket/base)) (provide (all-from-out "../../common/check.rkt") check-range check-immutable-field) (define (check-range who start-pos end-pos max-end in-value) (when (start-pos . > . max-end) (raise-range-error who ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/common/check.rkt
racket
#lang racket/base (require "../../common/check.rkt" (for-syntax racket/base)) (provide (all-from-out "../../common/check.rkt") check-range check-immutable-field) (define (check-range who start-pos end-pos max-end in-value) (when (start-pos . > . max-end) (raise-range-error who ...
ff48aded825dd9a795cf861566ab9131a75fbe5bf70c8e48b86daa470f6bac79
ghcjs/ghcjs-dom
Gamepad.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.Gamepad (js_getId, getId, js_getIndex, getIndex, js_getConnected, getConnected,...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/Gamepad.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/Gamepad.id Mozilla Gamepad.id documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.Gamepad (js_getId, getId, js_getIndex, getIndex, js_getConnected, getConnected, js_getTimestamp, getTimestamp, js_getMapping, getMapping, js_getAxes, getAxes, js_getButto...
93b2274a4ffb68878fb1bc4430bb0282db783019233ee66e8ff71734713013fb
RadNi/uniswap-plutus
OnChain.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamT...
null
https://raw.githubusercontent.com/RadNi/uniswap-plutus/6b2ba8a39dfa9da82214a4890a3ee14b59476409/src/Uniswap/OnChain.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # ...
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies ...
a4ed647eb3b9660905a757714158e15364129f9893b0ccfa95b3f36ac84b0f3f
mmontone/cl-sparql
package.lisp
(defpackage #:sparql (:use #:cl #:parser-combinators) (:export #:sparql-query #:sparql-query* #:sparql #:sparql-compile #:sparql-eval #:enable-uri-syntax #:parse-literal #:render-literal #:make-uri #:define-uri-prefix...
null
https://raw.githubusercontent.com/mmontone/cl-sparql/79806e8fb2f52ae73f7c50a27b2b93c39ccea628/package.lisp
lisp
(defpackage #:sparql (:use #:cl #:parser-combinators) (:export #:sparql-query #:sparql-query* #:sparql #:sparql-compile #:sparql-eval #:enable-uri-syntax #:parse-literal #:render-literal #:make-uri #:define-uri-prefix...
4e799eae6d4c81357ed10cab53265de24db679d0fbb1b95eed51078203fd94f0
acl2/acl2
heap0.lisp
A model of the JVM heap ; Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2022 Kestrel Institute ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-pack...
null
https://raw.githubusercontent.com/acl2/acl2/69204c321c7948154d5912e65544f3826c5fd14b/books/kestrel/jvm/heap0.lisp
lisp
FIXME think hard about this new heap model to make sure it's faithful to the semantics of the JVM now they are just integers ) the heap is now a map, which admits nice g/s reasoning the new-ad functions (and related functions are guaranteed to return fresh addresses, without needing a heap invariant) for rules li...
A model of the JVM heap Copyright ( C ) 2008 - 2011 and Stanford University Copyright ( C ) 2013 - 2022 Kestrel Institute License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") This book contains a model of the JVM heap . (include-book "kestrel/maps...
5c9deecb0c8e47fd1f899bce524226e72396acf601b4eb8eed8f216ddd0ab3e9
mikeizbicki/HLearn
Univariate.hs
| This module provides numerical routines for minimizing / maximizing one dimensional functions . These methods are guaranteed to converge to the correct solution if your function has exactly one minimum . -- -- The module is divided into simple and advanced interface. -- The simple interface is reminiscent of most...
null
https://raw.githubusercontent.com/mikeizbicki/HLearn/c6c0f5e7593be3867f20c56c79b998e7d7ded9fc/src/HLearn/Optimization/Univariate.hs
haskell
The module is divided into simple and advanced interface. The simple interface is reminiscent of most optimization packages. The advanced interface uses the "History" monad to provide complex debugging information. * Simple interface They are recommended for quick prototypes and working from within GHCI. Here's ...
| This module provides numerical routines for minimizing / maximizing one dimensional functions . These methods are guaranteed to converge to the correct solution if your function has exactly one minimum . module HLearn.Optimization.Univariate ( | These simple functions provide an interface similar to Matlab ...
4f47eeafc471023de5f9ec23ebff96457112ebe0091c134b3fe900e1c4a81a8f
practicalli/covid19-dashboard
data_transform.clj
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Data Transformation helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (ns practicalli.data-transform)
null
https://raw.githubusercontent.com/practicalli/covid19-dashboard/0d3cd5d7958881268620beaf05722c5b20f8f3dd/src/practicalli/data_transform.clj
clojure
Data Transformation helpers (ns practicalli.data-transform)
47e919e8a4be4e76c4c6be31d9488dc3c670cfc8da736714bea36ad63aad2af3
nervous-systems/kvlt
util.cljc
(ns kvlt.test.util (:require [promesa.core :as p] [cats.core] #? (:clj [clojure.test :refer [is]] :cljs [cljs.test :refer-macros [is]]) #? (:clj [clojure.core.async :as async :refer [<!! go alt!]] :cljs [cljs.core.async :as async :refer [<!]])) #...
null
https://raw.githubusercontent.com/nervous-systems/kvlt/26fe43eb9de6d7cc7ad8a466953fa0ffe09889ca/test/kvlt/test/util.cljc
clojure
env this
(ns kvlt.test.util (:require [promesa.core :as p] [cats.core] #? (:clj [clojure.test :refer [is]] :cljs [cljs.test :refer-macros [is]]) #? (:clj [clojure.core.async :as async :refer [<!! go alt!]] :cljs [cljs.core.async :as async :refer [<!]])) #...
7660d2eb60918a18a0f0d2689b0b13f666e8a04210ff1b2dd6b4220cef3eb7f8
lancelet/wgpu-hs
CommandEncoder.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # -- | -- Module : WGPU.Internal.CommandEncoder -- Description : Command encoding. module WGPU.Internal.CommandEncoder ( -- * Types CommandEncoder (..), -- * Functions createCommandEncoder, commandEncoderFinish, ) where import Con...
null
https://raw.githubusercontent.com/lancelet/wgpu-hs/29c6a7a3f21ec074f3b23e282ea69396bad337cb/wgpu-hs/src-internal/WGPU/Internal/CommandEncoder.hs
haskell
| Module : WGPU.Internal.CommandEncoder Description : Command encoding. * Types * Functions ----------------------------------------------------------------------------- A command encoder can record render passes, compute passes, and transfer operations between driver-managed resources like buffers and tex...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module WGPU.Internal.CommandEncoder CommandEncoder (..), createCommandEncoder, commandEncoderFinish, ) where import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Text (Text) import Foreign (nullPtr) import WGPU.Internal.CommandBuffe...
9d6d5ff53e0f18749700201534e9f7df117ac10f39339cdb1d1d17f96927edca
DavidAlphaFox/RabbitMQ
rabbit_stomp_test.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/rabbitmq-stomp/test/src/rabbit_stomp_test.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
9e62388d5b439763675bbe3477ce3291d1e143fd834b9614e25cb0c72dc54ee2
aamedina/transducers
vector.lisp
(in-package :transducers) (define-constant empty-node (cons nil (make-array 32))) (defclass persistent-vector (sb-mop:funcallable-standard-object sequence) ((count :type fixnum :initform 0 :initarg :count :accessor :count) (shift :type fixnum :initform 5 :initarg :shift :accessor :shift) (root :type cons :ini...
null
https://raw.githubusercontent.com/aamedina/transducers/ba6a3f4a4828fd44487828588422ecec3c4c3905/src/vector.lisp
lisp
(in-package :transducers) (define-constant empty-node (cons nil (make-array 32))) (defclass persistent-vector (sb-mop:funcallable-standard-object sequence) ((count :type fixnum :initform 0 :initarg :count :accessor :count) (shift :type fixnum :initform 5 :initarg :shift :accessor :shift) (root :type cons :ini...
b81ba33123f098a1c5f505491141d564cdc95a0c9961fac52e3c7ba0488498db
rametta/retros
Layout.hs
module Web.View.Layout (defaultLayout, Html) where import IHP.ViewPrelude import IHP.Environment import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A import Generated.Types import IHP.Controller.RequestContext import Web.Types import Web.Routes defaultLayout :: Html -> H...
null
https://raw.githubusercontent.com/rametta/retros/36c26245b35c28446283268659c5cc20db37ffd1/Web/View/Layout.hs
haskell
module Web.View.Layout (defaultLayout, Html) where import IHP.ViewPrelude import IHP.Environment import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A import Generated.Types import IHP.Controller.RequestContext import Web.Types import Web.Routes defaultLayout :: Html -> H...
73df87db0a38e9a98eb05d7ed4b039de267e6fb138f4407dc47eae73b2044b5a
kcsongor/generic-lens
Param.hs
{-# LANGUAGE PackageImports #-} # LANGUAGE DeriveGeneric # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs ...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/8e1fc7dcf444332c474fca17110d4bc554db08c8/generic-optics/src/Data/Generics/Product/Param.hs
haskell
# LANGUAGE PackageImports # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # ------------------------------------------------------------------------------ | Module : Data.Generics.P...
# LANGUAGE DeriveGeneric # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE KindSignatures # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # Copyright : ( C )...
b11a3bbaee239e41575738e735a6c3ff8d0b93d6542a5a85e01dd758c6cf26f4
vincenthz/hs-cli
Simple.hs
module Main where import Console.Options import Data.Char (isDigit) import Data.Monoid data MyADT = A | B | C deriving (Show,Eq) main = defaultMain $ do programName "my-simple-program" programDescription "an optional description of your program that can be found in the help" -- a simple boolean fla...
null
https://raw.githubusercontent.com/vincenthz/hs-cli/c9e0953aa4bc8bb872b3509da825c58cb8fefd28/examples/Simple.hs
haskell
a simple boolean flag -v or --verbose a flag '-n' or '--name' requiring a string as parameter a flag 'i' or '--int' requiring an integer as parameter a flag with an optional parameter, defaulting to some value
module Main where import Console.Options import Data.Char (isDigit) import Data.Monoid data MyADT = A | B | C deriving (Show,Eq) main = defaultMain $ do programName "my-simple-program" programDescription "an optional description of your program that can be found in the help" showFlag <- flag (FlagS...
80407b923505bd994f4fbe7a61cad37257c5d2d433ace537f47c4261792efadf
sanette/bogue
b_text_display.ml
open Str open B_utils open Tsdl open Tsdl_ttf module Theme = B_theme module Var = B_var module Draw = B_draw module Label = B_label (* TODO: use TTF_RenderUTF8_Blended_Wrapped *) (* cf SDL_ttf.h *) (* TODO: use Tsdl_extra.TTF.style *) TODO horiz . align text ( Min , Center or ) type entity = | Word of string ...
null
https://raw.githubusercontent.com/sanette/bogue/0ba3637108ea8355e05e86251fd45ebee38a1c7f/lib/b_text_display.ml
ocaml
TODO: use TTF_RenderUTF8_Blended_Wrapped cf SDL_ttf.h TODO: use Tsdl_extra.TTF.style FONT size width of the widget in pixels. Currently it is not used, since rendering is done with the geometry of the housing layout. height in pixels. See above....
open Str open B_utils open Tsdl open Tsdl_ttf module Theme = B_theme module Var = B_var module Draw = B_draw module Label = B_label TODO horiz . align text ( Min , Center or ) type entity = | Word of string | Space | Style of Ttf.Style.t remark : Styles are cumulative . Thus in [ Style bold ; Word " Bla ...
0d960efd351aeca017a5d31e2ac33f2d656d233b2ec5385763aede4e7102cf7d
source-c/clj-jasper
core.clj
(ns clj-jasper.core (:gen-class) (:require [clojure.java.io :as io] [clojure.walk :as walk] [clojure.string :as string]) (:import (clojure.lang ExceptionInfo) (java.io ByteArrayOutputStream OutputStream) (java.util HashMap Map ArrayList) (net.sf.jasperreports.engine JasperC...
null
https://raw.githubusercontent.com/source-c/clj-jasper/65a614f1209ed50ff81202a86d8333bf5e7173f4/src/clj_jasper/core.clj
clojure
(ns clj-jasper.core (:gen-class) (:require [clojure.java.io :as io] [clojure.walk :as walk] [clojure.string :as string]) (:import (clojure.lang ExceptionInfo) (java.io ByteArrayOutputStream OutputStream) (java.util HashMap Map ArrayList) (net.sf.jasperreports.engine JasperC...
e3cdcd7ef0792f1251c1fd8ec6005c8054604287b169e9ef88459909c28d2522
mstepniowski/project-euler
euler_042.clj
Solution to Project Euler problem 42 ;; ;; ;; The nth term of the sequence of triangle numbers is given by, t_n = ( 1/2 ) * n * ( n + 1 ) ; so the first ten triangle numbers are : ;; 1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 45 , 55 , ... ;; ;; By converting each letter in a word to a number corresponding to ;; its a...
null
https://raw.githubusercontent.com/mstepniowski/project-euler/01d64aa46b21d96fc5291fdf216bf4bad8249029/src/com/stepniowski/euler_042.clj
clojure
The nth term of the sequence of triangle numbers is given by, so the first ten triangle numbers are : By converting each letter in a word to a number corresponding to its alphabetical position and adding these values we form a word t10. If the word value is a triangle number then we shall call the word a tri...
Solution to Project Euler problem 42 1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 45 , 55 , ... value . For example , the word value for SKY is 19 + 11 + 25 = 55 = Using words.txt ( data / euler_042 / words.txt ) , a 16 K text file containing nearly two - thousand common English words , how many are (ns com.stepniows...
f6e75cec002ae5883bacac78d849ec0e2a0ff5e8927f5a9b55db7b5593716f2b
Bodigrim/arithmoi
TestingTests.hs
-- | Module : Math . . Primes . TestingTests Copyright : ( c ) 2017 Licence : MIT Maintainer : < > -- Tests for Math . . Primes . Testing -- # OPTIONS_GHC -fno - warn - type - defaults # module Math.NumberTheory.Primes.TestingTests ( testSuite ) where import Test.Tasty import Tes...
null
https://raw.githubusercontent.com/Bodigrim/arithmoi/df789d23341247e9cdb4f690595ea99c89836d09/test-suite/Math/NumberTheory/Primes/TestingTests.hs
haskell
|
Module : Math . . Primes . TestingTests Copyright : ( c ) 2017 Licence : MIT Maintainer : < > Tests for Math . . Primes . Testing # OPTIONS_GHC -fno - warn - type - defaults # module Math.NumberTheory.Primes.TestingTests ( testSuite ) where import Test.Tasty import Test.Tasty.HUn...
62d76ad69ced9e9c1b615100f393e5fbae43bf20d880f5a2a738c04292eb2f37
haskell-mafia/tinfoil
Data.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE GeneralizedNewtypeDeriving # {-# OPTIONS_GHC -funbox-strict-fields #-} module Tinfoil.AEAD.AESGCM.Data ( AuthenticatedCiphertext(..) , Cleartext(..) , AssociatedData(..) , GcmIv(..) , packGcmIv , unpackGcmIv , FixedField(..)...
null
https://raw.githubusercontent.com/haskell-mafia/tinfoil/f46b2ea0b9984ac9a97073932b5584ce0a2e0554/src/Tinfoil/AEAD/AESGCM/Data.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_GHC -funbox-strict-fields # | This is a truncated hash identifying the context of encryption - machine and target file. | Number of invocations of the encryption function with the same key since startup. | This identifies the operation relative to the context. It consists o...
# LANGUAGE NoImplicitPrelude # # LANGUAGE GeneralizedNewtypeDeriving # module Tinfoil.AEAD.AESGCM.Data ( AuthenticatedCiphertext(..) , Cleartext(..) , AssociatedData(..) , GcmIv(..) , packGcmIv , unpackGcmIv , FixedField(..) , InvocationField(..) , packInvocationField , unpackInvocationField ...
ed730f6ae11b5c35d3983b970af70197108598c42a0c828f528567703ca4245c
bennn/iPoe
bad-rhyme.rkt
#lang ipoe/clerihew Oliver North Went South After the Iran Contra Affair
null
https://raw.githubusercontent.com/bennn/iPoe/4a988f6537fb738b4fe842c404f9d78f658ab76f/examples/clerihew/bad-rhyme.rkt
racket
#lang ipoe/clerihew Oliver North Went South After the Iran Contra Affair
d579dc09070bb36757677d1201964f295df099dbb68ecab12895f592db3ad8cc
ghc/nofib
DomainExpr.hs
-- ==========================================================-- -- === Domain expressions. ===-- -- === DomainExpr.hs ===-- -- ==========================================================-- module DomainExpr where import BaseDefs import Utils import M...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/anna/DomainExpr.hs
haskell
==========================================================-- === Domain expressions. ===-- === DomainExpr.hs ===-- ==========================================================-- ==========================================================-- *** klud...
module DomainExpr where import BaseDefs import Utils import MyUtils dxApplyDSubst_2 :: DExpr -> Domain dxApplyDSubst_2 DXTwo = Two dxApplyDSubst_2 (DXVar _) = Two dxApplyDSubst_2 (DXLift1 dxs) = Lift1 (map dxApplyDSubst_2 dxs) dxApplyDSubst_2 (DXLift2 []) = Lift1 [Two] dxApplyD...
3c1654b53b9d8fc0b7487dceb6b4008416fab186c7ce500c377699c3099111f7
relaypro-open/imetrics
icount_tests.erl
-module(icount_tests). -include_lib("eunit/include/eunit.hrl"). start() -> {ok, C} = icount:start_link(#{size => 32, opts => [], hwm => 32*1024*1024}), C. stop(C) -> unlink(C), exit(C, brutal_kill). icount_test_() -> {setup, fun start/0, fun stop/1, fun icount_test/1}. i...
null
https://raw.githubusercontent.com/relaypro-open/imetrics/786d6b4f21a37ce0877f94539e061238cab562e7/test/icount_tests.erl
erlang
localize the counters object induce sleep on gen_server make sure execution time is less than the sleep time allow gen_server to exit sleep clean up sleep again to allow counter cleanup counter should have been cleaned up after delocalizing fake it
-module(icount_tests). -include_lib("eunit/include/eunit.hrl"). start() -> {ok, C} = icount:start_link(#{size => 32, opts => [], hwm => 32*1024*1024}), C. stop(C) -> unlink(C), exit(C, brutal_kill). icount_test_() -> {setup, fun start/0, fun stop/1, fun icount_test/1}. i...
f3ff2da2a44383fd6f04abb5879b7ed8b41dd662e7f8aeda1e772316eeee9368
pguillebert/pravda
reader.clj
(ns pravda.reader (:require [taoensso.nippy :as nippy]) (:import [java.io DataInputStream InputStream] [org.apache.commons.compress.compressors.gzip GzipCompressorInputStream] [com.amazonaws.auth DefaultAWSCredentialsProviderChain] [com.amazonaws.services.s3 AmazonS3Clie...
null
https://raw.githubusercontent.com/pguillebert/pravda/e1d1db093143465cdcd48155155d17d9a45ae5fe/src/pravda/reader.clj
clojure
event by event. This defines the AWS S3 client. Uses the default credentials provider chain. Define a proxy extending this input stream, adding the nextEvent method by implementing ReadableEventStream.
(ns pravda.reader (:require [taoensso.nippy :as nippy]) (:import [java.io DataInputStream InputStream] [org.apache.commons.compress.compressors.gzip GzipCompressorInputStream] [com.amazonaws.auth DefaultAWSCredentialsProviderChain] [com.amazonaws.services.s3 AmazonS3Clie...
99d49b8a8bc121b8f76c908659e755618a1fd1636d4a9d9fd3aef95a6e21c133
addy-dclxvi/dotfiles
goode-animation-settings.scm
; ; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; Animation settings script for GIMP 2.4 Created by ; ; Tags: animation, tool ; ; Author statement: ; ; ; -------------------------------------------------------------------- Distributed by Gimp FX Foundry project ; -----------------...
null
https://raw.githubusercontent.com/addy-dclxvi/dotfiles/6f48e73699c32e647e4c1a71802572c225dba602/.config/GIMP/2.10/scripts/goode-animation-settings.scm
scheme
The GIMP -- an image manipulation program Tags: animation, tool Author statement: -------------------------------------------------------------------- -------------------------------------------------------------------- - Changelog - -------------------------------------------------------------------- ...
Copyright ( C ) 1995 and Animation settings script for GIMP 2.4 Created by Distributed by Gimp FX Foundry project it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the...
8ed859ffa017e2b54f166a2f4caa2ccba47031d60c5f92a6208dfe8cac82a7fb
xmonad/xmonad-contrib
xmonadpropread.hs
#!/usr/bin/env runhaskell # LANGUAGE LambdaCase # Copyright < > -- BSD3 (see LICENSE) -- -- Reads from an X property on the root window and writes to standard output. -- May be used together with XMonad . Hooks . StatusBar.xmonadPropLog and a -- status bar that doesn't support reading from properties itself, s...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/e0c7e35b3dcdf0e1f9ceccf9c11b3c053ec7cf61/scripts/xmonadpropread.hs
haskell
BSD3 (see LICENSE) Reads from an X property on the root window and writes to standard output. status bar that doesn't support reading from properties itself, such as dzen. Usage: or
#!/usr/bin/env runhaskell # LANGUAGE LambdaCase # Copyright < > May be used together with XMonad . Hooks . StatusBar.xmonadPropLog and a $ xmonadpropread | dzen2 $ xmonadpropread _ XMONAD_LOG_CUSTOM | dzen2 import Control.Monad import Graphics.X11 import Graphics.X11.Xlib.Extras import Codec.Binary.UTF8...
3609ac9a67041531e16264fa88e0f96e28c7fca246aadafc366e44ccc8e6614a
smallhadroncollider/taskell
TrelloTest.hs
# LANGUAGE TemplateHaskell # module Taskell.IO.TrelloTest ( test_trello ) where import ClassyPrelude import Control.Lens ((^.)) import Test.Tasty import Test.Tasty.HUnit import Data.Aeson (decodeStrict) import Data.FileEmbed (embedFile) import Taskell.IO.HTTP.Trello.ChecklistItem (ChecklistItem, check...
null
https://raw.githubusercontent.com/smallhadroncollider/taskell/3c731476e9a58ede300cfa83aba412509b132a3e/test/Taskell/IO/TrelloTest.hs
haskell
tests
# LANGUAGE TemplateHaskell # module Taskell.IO.TrelloTest ( test_trello ) where import ClassyPrelude import Control.Lens ((^.)) import Test.Tasty import Test.Tasty.HUnit import Data.Aeson (decodeStrict) import Data.FileEmbed (embedFile) import Taskell.IO.HTTP.Trello.ChecklistItem (ChecklistItem, check...
32c42cb3e0c6e9537e3821962e7c6c0cef5bd7522c672d6b16d8ff5322e28759
MLstate/opalang
qmlRenamingMap.ml
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/qmlRenamingMap.ml
ocaml
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
70f12f20100bec1403c76367ca8dfb9bf53de91bdcc26d2aa1b72d6acbbc92a4
argp/bap
test_hashcons.ml
open OUnit open BatHashcons type lterm = lterm_ hobj and lterm_ = | Var of string | App of lterm * lterm | Lam of string * lterm module LtermFuncs = struct type t = lterm_ let equal lt1 lt2 = match lt1, lt2 with | Var j, Var k -> j = k | App (lt11, lt12), App (lt21, lt22) -> lt11 == lt21 && ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/testsuite/test_hashcons.ml
ocaml
open OUnit open BatHashcons type lterm = lterm_ hobj and lterm_ = | Var of string | App of lterm * lterm | Lam of string * lterm module LtermFuncs = struct type t = lterm_ let equal lt1 lt2 = match lt1, lt2 with | Var j, Var k -> j = k | App (lt11, lt12), App (lt21, lt22) -> lt11 == lt21 && ...
b3909a88c10ff4480124f43a0ff74d4871bae91535866d6d4d467c35522049d3
factisresearch/graph-core
NodeManager.hs
# OPTIONS_GHC -F -pgmF htfpp # module Test.NodeManager where import Data.Core.Graph.NodeManager import Test.Arbitrary import Test.Framework import Control.Monad.State.Strict import qualified Data.IntMap.Strict as IM import qualified Data.List as L assertConsistent :: StateT (NodeManager Char) IO () assertConsistent ...
null
https://raw.githubusercontent.com/factisresearch/graph-core/9cae5a3c6e2b3a8a9b2b5c402514f1b0521619d3/src/Test/NodeManager.hs
haskell
# OPTIONS_GHC -F -pgmF htfpp # module Test.NodeManager where import Data.Core.Graph.NodeManager import Test.Arbitrary import Test.Framework import Control.Monad.State.Strict import qualified Data.IntMap.Strict as IM import qualified Data.List as L assertConsistent :: StateT (NodeManager Char) IO () assertConsistent ...
82a5c2cffaf9432de9349e8383400fbd03a0ff00264d15697596395cf9c328a3
eareese/htdp-exercises
208-boolean-attributes.rkt
#lang htdp/bsl+ ;;--------------------------------------------------------------------------------------------------- Exercise 208 . Design boolean - attributes . The function consumes an LLists and produces the that are associated with a Boolean attribute . Hint Use create - set from exercise 201 . Once you a...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part02-arbitrarily-large-data/208-boolean-attributes.rkt
racket
--------------------------------------------------------------------------------------------------- its tracks. Do they make sense? LAssoc -> List-of-strings List-of-strings -> List-of-strings produces a new List-of-strings that contains every String from the given list exactly once
#lang htdp/bsl+ Exercise 208 . Design boolean - attributes . The function consumes an LLists and produces the that are associated with a Boolean attribute . Hint Use create - set from exercise 201 . Once you are done , determine how many Boolean - valued attributes your iTunes library employs for (define exam...
d4835359d44b1a65dc9a78de81cc87bea5a0769131d051aaa1a49ac51645321b
dundalek/closh
history_common.cljc
(ns closh.zero.service.history-common (:require #?(:cljs [path] :clj [clojure.java.io :as io]) [clojure.string :as str] [closh.zero.platform.process :as process]) #?(:clj (:import (java.io File)))) (def ^:no-doc table-history "CREATE TABLE IF NOT EXISTS history ( id INTEGE...
null
https://raw.githubusercontent.com/dundalek/closh/b1a7fd310b6511048fbacb8e496f574c8ccfa291/src/common/closh/zero/service/history_common.cljc
clojure
") ")
(ns closh.zero.service.history-common (:require #?(:cljs [path] :clj [clojure.java.io :as io]) [clojure.string :as str] [closh.zero.platform.process :as process]) #?(:clj (:import (java.io File)))) (def ^:no-doc table-history "CREATE TABLE IF NOT EXISTS history ( id INTEGE...
6720b9e4fafecf46f53b5f94d828578f7279b6ed891c17ab6fc7e930056d0de1
kronkltd/jiksnu
album_actions.clj
(ns jiksnu.modules.core.actions.album-actions (:require [ciste.config :refer [config]] [ciste.event :as event] [clojure.set :as set] [jiksnu.modules.core.model.album :as model.album] [jiksnu.modules.core.templates.actions :as templates.actions] [jiksnu.sessi...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/core/actions/album_actions.clj
clojure
TODO: validate user TODO: implement TODO: I'm not sure these should be removed
(ns jiksnu.modules.core.actions.album-actions (:require [ciste.config :refer [config]] [ciste.event :as event] [clojure.set :as set] [jiksnu.modules.core.model.album :as model.album] [jiksnu.modules.core.templates.actions :as templates.actions] [jiksnu.sessi...
e2a373bdb8a984b81ef5077861169967c6c9b79583fda4edb72d3110ab439f9d
tek/polysemy-log
Log.hs
# language NoImplicitPrelude # {-# options_haddock prune #-} -- |Description: Polysemy Effects for Logging module Polysemy.Log ( -- * Introduction -- $intro -- * Arbitrary Data Messages -- $datalog DataLog(DataLog), Logger, dataLog, local, -- ** Interpreters interpretDataLogStderrWith, interpre...
null
https://raw.githubusercontent.com/tek/polysemy-log/385efb9043de0fef84943982723cbf32ed6caee4/packages/polysemy-log/lib/Polysemy/Log.hs
haskell
# options_haddock prune # |Description: Polysemy Effects for Logging * Introduction $intro * Arbitrary Data Messages $datalog ** Interpreters $messages ** Interpreters * Concurrent Logging $intro An author of a library who wants to provide log messages faces the problem that committing to a backend requires ...
# language NoImplicitPrelude # module Polysemy.Log ( DataLog(DataLog), Logger, dataLog, local, interpretDataLogStderrWith, interpretDataLogStderr, interpretDataLogStdoutWith, interpretDataLogStdout, interpretDataLogAtomic', interpretDataLogAtomic, interpretDataLog, * Text Messages with Sever...
5275a62db59595456d61ee9853d25e903af43e4d118fb308a4b66a4bf95582d2
kupl/LearnML
patch.ml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec check_list ((lambda : lambda), (lst : string list)) : bool = match lambda with | V var -> if List.mem var lst then true else false | P (var, lambda) -> check_list (lambda, lst @ [ var ]) | C (lambda1, lambda2) -> ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/lambda/sub66/patch.ml
ocaml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec check_list ((lambda : lambda), (lst : string list)) : bool = match lambda with | V var -> if List.mem var lst then true else false | P (var, lambda) -> check_list (lambda, lst @ [ var ]) | C (lambda1, lambda2) -> ...
92a517f7d37786f47657645c17ac63edd7635de4799b040b547c7a6931e219e0
DomainDrivenArchitecture/dda-managed-vm
serverspec.clj
Licensed to the Apache Software Foundation ( ASF ) under one ; or more contributor license agreements. See the NOTICE file ; distributed with this work for additional information ; regarding copyright ownership. The ASF licenses this file to you under the Apache License , Version 2.0 ( the ; "License"); you may not...
null
https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-managed-vm/ed44f97ef89468a4dd4bc514439df3f936c86d26/main/src/dda/pallet/dda_managed_vm/domain/serverspec.clj
clojure
or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required b...
Licensed to the Apache Software Foundation ( ASF ) under one to you under the Apache License , Version 2.0 ( the distributed under the License is distributed on an " AS IS " BASIS , (ns dda.pallet.dda-managed-vm.domain.serverspec (:require [schema.core :as s])) (s/defn serverspec-prerequisits "serverspec ...
c0f467c7fa66a0fc0ab333111e1fe0ea2b79ff4191a0c47a2833fa68ad73a5a2
8c6794b6/guile-tjit
x-cpstak.scm
cpstak from racket benchmark (define (cpstak x y z) (define (tak x y z k) (if (not (< y x)) (k z) (tak (- x 1) y z (lambda (v1) (tak (- y 1) z x (lambda (v2) (...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/x-cpstak.scm
scheme
cpstak from racket benchmark (define (cpstak x y z) (define (tak x y z k) (if (not (< y x)) (k z) (tak (- x 1) y z (lambda (v1) (tak (- y 1) z x (lambda (v2) (...
e73160ca3e1a09b1d696fcdfa0d71f81321432ab2a7ccd61edccdf9eece9ec51
freckle/yesod-auth-oauth2
Slack.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- OAuth2 plugin for / -- -- * Authenticates against slack -- * Uses slack user id as credentials identifier -- module Yesod.Auth.OAuth2.Slack ( SlackScope(..) , oauth2Slack , oauth2SlackScoped ) where import Yesod.Auth.OAuth2.Prelude import Network.HTTP.Client (htt...
null
https://raw.githubusercontent.com/freckle/yesod-auth-oauth2/8976e193e94ab4f0c38bea446a77d30b694780f4/src/Yesod/Auth/OAuth2/Slack.hs
haskell
# LANGUAGE OverloadedStrings # | OAuth2 plugin for / * Authenticates against slack * Uses slack user id as credentials identifier
module Yesod.Auth.OAuth2.Slack ( SlackScope(..) , oauth2Slack , oauth2SlackScoped ) where import Yesod.Auth.OAuth2.Prelude import Network.HTTP.Client (httpLbs, parseUrlThrow, responseBody, setQueryString) import Yesod.Auth.OAuth2.Exception as YesodOAuth2Exception data SlackScope = SlackBasicScope ...
02cb0c40d6c2b8bc3f15eb33f364fe6896ab16a874938f4573fcbcb4064de571
awslabs/s2n-bignum
bignum_cmul.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_cmul.ml
ocaml
========================================================================= Multiplication of bignum by a single word. ========================================================================= *** print_literal_from_elf "arm/generic/bignum_cmul.o";; *** -----------------------------...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) let bignum_cmul_mc = define_assert_from_elf "bignum_cmul_mc" "ar...
8cfeb6617e7988d8e6a30b6e689abb8043599500c4bfedceaa6ed5ca6b7d94a1
haskell-foundation/foundation
Monad.hs
-- | -- Module : Basement.Monad -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : portable -- Allow to run operation in ST and IO , without having to distinguinsh between the two . Most operations exposes the bare nuts and bolts of how IO and ST actually -- wor...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/c87c00c5988398f7fb6bbf8ebc79250fc3e9a363/basement/Basement/Monad.hs
haskell
| Module : Basement.Monad License : BSD-style Stability : experimental Portability : portable works, and relatively easy to shoot yourself in the foot in the primitive package # LANGUAGE ConstraintKinds # | Primitive monad that can handle mutation. | Unwrap the State# token to pass to a function...
Maintainer : < > Allow to run operation in ST and IO , without having to distinguinsh between the two . Most operations exposes the bare nuts and bolts of how IO and ST actually this is highly similar to the Control . Monad . Primitive # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # LANGUAGE Existent...
242e6d2e67ae440839a4d41a89c0e3cd0280333d3d2c3c16d59e161fe3d1a870
me-box/core-network
test.ml
open Lwt.Infix open Lib_core_network module R = Rresult.R module Basic = Basic_backend.Make module Vnet = Vnetif.Make(Basic) module Eth = Ethif.Make(Vnet) module Arp = Arpv4.Make(Eth)(Mclock)(OS.Time) let arp_query_pkt src_mac src_ip ip = let arp_t = Arpv4_packet.{ op = Arpv4_wire.Request; sha = src_mac; ...
null
https://raw.githubusercontent.com/me-box/core-network/3dca69bc7610ab51f93ea49dcc3d8e43842cd2ae/test/test.ml
ocaml
test acquire_fake_ip and release_fake_ip
open Lwt.Infix open Lib_core_network module R = Rresult.R module Basic = Basic_backend.Make module Vnet = Vnetif.Make(Basic) module Eth = Ethif.Make(Vnet) module Arp = Arpv4.Make(Eth)(Mclock)(OS.Time) let arp_query_pkt src_mac src_ip ip = let arp_t = Arpv4_packet.{ op = Arpv4_wire.Request; sha = src_mac; ...
54574d7b142709d1ccde50d922cb090326a5b169f2c2ee3b5075af0be165fc80
fortytools/holumbus
SlaveCounter.hs
module Main(main) where import Holumbus.Common.Logging import Holumbus.Distribution.DNode import Holumbus.Distribution.DFunction main :: IO () main = do initializeLogging [] initDNode $ defaultDNodeConfig "" addForeignDNode $ mkDNodeAddress "Master" "apri...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/distribution/Examples/Distribution/CounterDFunction/SlaveCounter.hs
haskell
addForeignDNodeHandler (mkDNodeId "Master") listener
module Main(main) where import Holumbus.Common.Logging import Holumbus.Distribution.DNode import Holumbus.Distribution.DFunction main :: IO () main = do initializeLogging [] initDNode $ defaultDNodeConfig "" addForeignDNode $ mkDNodeAddress "Master" "apri...
f5c247328022c9939b30274df2f77779cf7cbf7e7fa1fdceb00a13d9136bdf09
janestreet/ppx_sexp_conv
test_test.ml
open! Base module _ = struct type t = int [@@deriving_inline sexp_grammar] let _ = fun (_ : t) -> () let (t_sexp_grammar : t Sexplib0.Sexp_grammar.t) = int_sexp_grammar let _ = t_sexp_grammar [@@@deriving.end] end module _ = struct type 'a t = T of 'a and 'a u = U of 'a t option [@@deriving_inline sex...
null
https://raw.githubusercontent.com/janestreet/ppx_sexp_conv/d9f92275eaff71fd721f7902756e621c22e6d118/test/sexp_grammar/test_test.ml
ocaml
Avoid unused constructor warnings.
open! Base module _ = struct type t = int [@@deriving_inline sexp_grammar] let _ = fun (_ : t) -> () let (t_sexp_grammar : t Sexplib0.Sexp_grammar.t) = int_sexp_grammar let _ = t_sexp_grammar [@@@deriving.end] end module _ = struct type 'a t = T of 'a and 'a u = U of 'a t option [@@deriving_inline sex...
900dfaed63ac545e7d9dfcbf91952970fc958546c04a6748ef8a2a59c797c445
riverford/clojure-exchange-demo-2019
buttons.cljs
(ns clojure-exchange-demo-2019.buttons (:require ["react-native" :as rn] [hx.react :as hx :refer [defnc]] [clojure-exchange-demo-2019.style :refer [s]] ["@expo/vector-icons" :refer [Entypo]])) (defnc HelpButton [props] [rn/TouchableOpacity (merge props {:style (merge (s [:s...
null
https://raw.githubusercontent.com/riverford/clojure-exchange-demo-2019/a12878141e0f42739ea227b5eaec1a3aadbba407/src/clojure_exchange_demo_2019/buttons.cljs
clojure
(ns clojure-exchange-demo-2019.buttons (:require ["react-native" :as rn] [hx.react :as hx :refer [defnc]] [clojure-exchange-demo-2019.style :refer [s]] ["@expo/vector-icons" :refer [Entypo]])) (defnc HelpButton [props] [rn/TouchableOpacity (merge props {:style (merge (s [:s...
f15070b6b23067154bc97ff030e2d19680a6fe795fb765d51aebd63debf58a28
ghc/packages-Cabal
cabal.test.hs
import Test.Cabal.Prelude main = cabalTest $ withSourceCopy $ do cabal "v2-sdist" ["a", "--list-only"]
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/NewSdist/Globbing/cabal.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest $ withSourceCopy $ do cabal "v2-sdist" ["a", "--list-only"]
40f7dce9f86bd866f7d60b6e27c2323187243ca7c26a29b917f7f6b8437da58f
tmattio/device-detector
referers.ml
type test_fixture = { spec : string; uri : string; medium : string; source : string option; term : string option; known : bool; } [@@deriving yojson] type test_fixtures = test_fixture list [@@deriving yojson] let fixtures = let json = Yojson.Safe.from_file "../data/referer-parser/referers-tests.json...
null
https://raw.githubusercontent.com/tmattio/device-detector/7153345a305c441b2393016cd32153c6ab8e7c95/test/referers.ml
ocaml
type test_fixture = { spec : string; uri : string; medium : string; source : string option; term : string option; known : bool; } [@@deriving yojson] type test_fixtures = test_fixture list [@@deriving yojson] let fixtures = let json = Yojson.Safe.from_file "../data/referer-parser/referers-tests.json...
25524fa00a1c1af94bc046848e7a5733067c5fd66203c8c455300d0b4020bb58
tfoldi/cljs-tableau-cnake
tableau.cljs
(ns cnake.tableau (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :as async] [cnake.game :as game] [cnake.utils.dom :as dom] [cnake.score :as score] [cnake.intercom :as intercom :refer [tableau-viz-ready-channel]])) Workb...
null
https://raw.githubusercontent.com/tfoldi/cljs-tableau-cnake/a1ecc852bf2d3fa993097a9d90956ec06a9d65f0/src/cnake/tableau.cljs
clojure
The public URL of the tableau viz Hide things from the embedded viz If the pill count is bellow the minimum, we are only adding them to the board, no scoring necesary TODO: add a better method of detecting if the snake has eaten pill render events merge with parameter names not implemented yet
(ns cnake.tableau (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :as async] [cnake.game :as game] [cnake.utils.dom :as dom] [cnake.score :as score] [cnake.intercom :as intercom :refer [tableau-viz-ready-channel]])) Workb...
9d1a16267fd4ab5018eb7de85e11a75f244964b253a0a50e3bc7f9d0276c2e1c
basho/riak_test
ts_simple_unicode_create_table_not_allowed.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ts_simple_unicode_create_table_not_allowed.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY because of decoding . -modu...
2de375beaf4aafbd8c17f33649496c3e4687690bd5f441d40726f9ea12cabcce
funcool/buddy-core
codecs_tests.clj
Copyright 2014 - 2015 < > ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distributed un...
null
https://raw.githubusercontent.com/funcool/buddy-core/bd31ff9b802e689b046afae0f8c29ed70bb15ab5/test/buddy/core/codecs_tests.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2014 - 2015 < > Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns buddy.core.codecs-tests (:require [clojure.test :refer :all] [buddy.core.codecs :as codecs :refer :all] [buddy.core.c...
09c4ffc7347caecbe86e1dfa3e19f2197927c8c2f3a52a5c280c7c92b346e9ee
dgiot/dgiot
prop_emqx_base62.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2022 EMQ Technologies Co. , Ltd. 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 o...
null
https://raw.githubusercontent.com/dgiot/dgiot/c601555e45f38d02aafc308b18a9e28c543b6f2c/test/props/prop_emqx_base62.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 ...
Copyright ( c ) 2020 - 2022 EMQ Technologies Co. , Ltd. 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(prop_emqx_base62). -include_lib("proper/include/proper.hrl"). prop_symmetric() -> ...
b13863ac3cfaff8067f9f0064328c7002acc24b49e569c91e8c1fc8d2eb05188
derektmueller/algorithms-in-haskell
AdjacencyList.hs
module AdjacencyList where import qualified Data.Set as Set import Data.Tuple newtype AdjacencyList = AdjacencyList [[Int]] deriving (Eq, Show) initAdjacencyList :: Int -> AdjacencyList initAdjacencyList n = AdjacencyList $ take n $ repeat [] mkAdjacencyList :: [(Int, Int)] -> AdjacencyList mkAdjacencyList edges = ...
null
https://raw.githubusercontent.com/derektmueller/algorithms-in-haskell/e6b8555d83d30f5b94d3c1c90865c8e881c96a0e/src/AdjacencyList.hs
haskell
module AdjacencyList where import qualified Data.Set as Set import Data.Tuple newtype AdjacencyList = AdjacencyList [[Int]] deriving (Eq, Show) initAdjacencyList :: Int -> AdjacencyList initAdjacencyList n = AdjacencyList $ take n $ repeat [] mkAdjacencyList :: [(Int, Int)] -> AdjacencyList mkAdjacencyList edges = ...
60955e6939124ea83a2f5634f60aafe7c9eb4302b1fd0ca6a44b041cdb26c875
input-output-hk/plutus
HandWritten.hs
-- editorconfig-checker-disable-file # LANGUAGE TypeApplications # module PlutusBenchmark.Lists.Sum.HandWritten where import PlutusBenchmark.Common (Term, compiledCodeToTerm) import Control.Monad.Except import Data.Either import PlutusCore.Compiler.Erase (eraseTerm) import PlutusCore.StdLib.Data.List qualified as Bu...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c8d4364d0e639fef4d5b93f7d6c0912d992b54f9/plutus-benchmark/lists/src/PlutusBenchmark/Lists/Sum/HandWritten.hs
haskell
editorconfig-checker-disable-file ------------ Hand - written folds , using stuff from PlutusCore . StdLib . Data ----------------
# LANGUAGE TypeApplications # module PlutusBenchmark.Lists.Sum.HandWritten where import PlutusBenchmark.Common (Term, compiledCodeToTerm) import Control.Monad.Except import Data.Either import PlutusCore.Compiler.Erase (eraseTerm) import PlutusCore.StdLib.Data.List qualified as BuiltinList import PlutusCore.StdLib.Da...
94d51bdcc170d08bc7d1ab39b28db206dfdcf09d876bd1aa3ddd5644d458366e
cabol/erlbus
ebus_supervisor.erl
%%%------------------------------------------------------------------- %%% @doc %%% Utility module to start/work with supervisors. %%% @end %%%------------------------------------------------------------------- -module(ebus_supervisor). -behaviour(supervisor). %% API -export([start_link/2, start_link/3]). %% Supervi...
null
https://raw.githubusercontent.com/cabol/erlbus/050cb728ef09a0ad51c9297281602e362b5e233d/src/utils/ebus_supervisor.erl
erlang
------------------------------------------------------------------- @doc Utility module to start/work with supervisors. @end ------------------------------------------------------------------- API Supervisor callbacks =================================================================== Types ======================...
-module(ebus_supervisor). -behaviour(supervisor). -export([start_link/2, start_link/3]). -export([init/1]). -type name() :: atom() | {global, term()} | {via, module(), term()}. -type options() :: #{ name => name(), strategy => supervisor:strategy(), intensity => non_neg_integer(), period => pos_i...
f5f3037af312c1856b6bf79ba70a5a0ff9bacfef7d4124e6d4f9ee1976259bff
dcavar/schemeNLP
arithmetic3.scm
(+ #b10 3) (+ #o02 3) (+ #x02 3) (+ #x02 #d03) (* #b100 #b100) #x0a #o10 (eqv? #o10 #d08)
null
https://raw.githubusercontent.com/dcavar/schemeNLP/daa0ddcc4fa67fe00dcf6054c4d30d11a00b2f7f/src/arithmetic3.scm
scheme
(+ #b10 3) (+ #o02 3) (+ #x02 3) (+ #x02 #d03) (* #b100 #b100) #x0a #o10 (eqv? #o10 #d08)
b02ef2468c3efdefd697aacff894b53aaa2f2e324344fe251e766282884ccb10
stuhlmueller/jschurch
development.html.scm
(html-doctype) (html (convert-file "_head.html.scm") (body (convert-file "_header.html.scm") (div :id "content" (h2 "Development") (h3 "Source code") (p "The repository of BiwaScheme is " (link-to "hosted in github" "") ".") (h3 "Mailing lists") (dl ...
null
https://raw.githubusercontent.com/stuhlmueller/jschurch/58a94802ba987c92cb81e556341f86dba66a8fd1/external/biwascheme/website/development.html.scm
scheme
(html-doctype) (html (convert-file "_head.html.scm") (body (convert-file "_header.html.scm") (div :id "content" (h2 "Development") (h3 "Source code") (p "The repository of BiwaScheme is " (link-to "hosted in github" "") ".") (h3 "Mailing lists") (dl ...
25a2558aee38ec8ead9a8f488b06d829ceb5ba7271c0acbdd37fbad4068ad358
FlowerWrong/mblog
irc.erl
%% --- Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . %% Copyrights apply to this code. It may not be used to create training material, %% courses, books, articles, and the like. Contact us if you are in doubt. %% We make no guarantees that this code is fit for...
null
https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/jaerlang2_code/websockets/irc.erl
erlang
--- Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . -module(irc). -export([start/0]). start() -> register(irc, spawn(fun() -> start1() end)). start1() -> process_flag(trap_exit, true), loop([]). loop(L) -> receive {join, Pid, Who} -> case lists:...
ca5e34f9ed1c98915361743c878a640bd0bef349b82f2ab8dcbe4ed55e5e2141
BitGameEN/bitgamex
timer2.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 - 2012 Juan Jose Comellas , %%% @doc High performance timer module %%% @end %%% This source file is subject to the New BSD License . You should have received %%% a copy of the New BSD license with this software...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/timer2/src/timer2.erl
erlang
------------------------------------------------------------------- @doc High performance timer module @end a copy of the New BSD license with this software. If not, it can be retrieved from: -license.php ------------------------------------------------------------------- Custom Types for compatibility ------...
@author < > ( C ) 2011 - 2012 Juan Jose Comellas , This source file is subject to the New BSD License . You should have received -module(timer2). -author('Mahesh Paolini-Subramanya <>'). -define(APP, ?MODULE). -compile([{parse_transform, lager_transform}]). -export([apply_after/4, send_after/3, se...
5fd7a8cfe795c50c633d2ab605a48af79c58611503f5469abfe097b25f3a152a
degree9/uikit-hl
offcanvas.cljs
(ns uikit-hl.offcanvas (:require [hoplon.core :as h] [uikit-hl.core :as uk])) (defmulti uk-offcanvas! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-offcanvas! elem key val)) (defn- format-offcanvas [offcanvas] (str "uk-offcanvas-" offcanvas)) (defmethod uk-off...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/offcanvas.cljs
clojure
(ns uikit-hl.offcanvas (:require [hoplon.core :as h] [uikit-hl.core :as uk])) (defmulti uk-offcanvas! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-offcanvas! elem key val)) (defn- format-offcanvas [offcanvas] (str "uk-offcanvas-" offcanvas)) (defmethod uk-off...
418f4a36002c6f176b9574c02662223b6594cba867350b9507a804bbb1016eb7
kovasb/gamma-driver
gol.cljs
(ns gamma.webgl.gol (:require [gamma.api :as g] [gamma.webgl.api :as gd] [gamma.webgl.shader :as shader] [gamma.webgl.routines.basic :as r] [gamma.webgl.drivers.basic :as driver] [gamma.webgl.compiler.core] [gamma.webgl.platform.constants :as c] [gamma.webgl.compiler.texture :as tex]))...
null
https://raw.githubusercontent.com/kovasb/gamma-driver/abe0e1dd01365404342f4e8e04263e48c4648b6e/test/gamma/webgl/gol.cljs
clojure
GOL SHADER
(ns gamma.webgl.gol (:require [gamma.api :as g] [gamma.webgl.api :as gd] [gamma.webgl.shader :as shader] [gamma.webgl.routines.basic :as r] [gamma.webgl.drivers.basic :as driver] [gamma.webgl.compiler.core] [gamma.webgl.platform.constants :as c] [gamma.webgl.compiler.texture :as tex]))...
b5fdc5f5a342e510983d89cc99fd0858a88ea01fdc40adf5b016e9a2e8c8fc0e
marcelosousa/llvmvf
ConstantClass.hs
------------------------------------------------------------------------------- Module : Language . . Copyright : ( c ) 2012 ------------------------------------------------------------------------------- module Language.LLVMIR.Extractor.ConstantClass where import Foreign.C.Types data ConstantClass =...
null
https://raw.githubusercontent.com/marcelosousa/llvmvf/c314e43aa8bc8bb7fd9c83cebfbdcabee4ecfe1b/src/Language/LLVMIR/Extractor/ConstantClass.hs
haskell
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Module : Language . . Copyright : ( c ) 2012 module Language.LLVMIR.Extractor.ConstantClass where import Foreign.C.Types data ConstantClass = BlockAddr | ConstantAggregateZero | ConstantArray | ConstantDataSequential | ConstantExpr | ConstantFP | ConstantInt | ConstantPointerNull ...
7f98581df2658ad5852a4175172aae84b9ff37b8794d7af5cb129d912e57b206
merijn/Belewitte
Set.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} module Commands.Set (commands) where import Control.Monad (guard) import qualified Control.Monad.Catch as Except import qualified Data.Text as T import qualified Options.Applicative.Help.Pretty as Pretty import System.Exit (exitFai...
null
https://raw.githubusercontent.com/merijn/Belewitte/1175455d4568cc3877b197a903ee344672c419ec/benchmark-analysis/ingest-src/Commands/Set.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # module Commands.Set (commands) where import Control.Monad (guard) import qualified Control.Monad.Catch as Except import qualified Data.Text as T import qualified Options.Applicative.Help.Pretty as Pretty import System.Exit (exitFailure) import Core import Options import Schema import Sql...
607ee6b7e34ad389f237de236de7a9d37f772fbab0de254866e420b48a8f6599
sim642/odep
dune_describe.ml
open Sexplib.Std module Digest = struct include String let hash = Hashtbl.hash let t_of_sexp = string_of_sexp end type module_deps = { for_intf: string list; for_impl: string list; } [@@deriving of_sexp] [@@sexp.allow_extra_fields] type module_ = { name: string; module_deps: module_deps option [@sexp.o...
null
https://raw.githubusercontent.com/sim642/odep/9494db20806519bf5b89306bd0d88793fd7ba92f/src/dune_describe/dune_describe.ml
ocaml
open Sexplib.Std module Digest = struct include String let hash = Hashtbl.hash let t_of_sexp = string_of_sexp end type module_deps = { for_intf: string list; for_impl: string list; } [@@deriving of_sexp] [@@sexp.allow_extra_fields] type module_ = { name: string; module_deps: module_deps option [@sexp.o...
a3fb6195a687b6f3468cf0b132152a01b49f025c169d581196e3878b488ed590
pmatos/racket-loci
locus_gen.rkt
#lang racket/base ;; --------------------------------------------------------------------------------------------------- (require racket/generic) (provide gen:locus locus/c locus? locus-pid locus-wait locus-running? locus-exit-code locus-kill) ;; ------...
null
https://raw.githubusercontent.com/pmatos/racket-loci/ce063c7e45d5abb7c187766b3ab7045ef2f84099/loci/private/locus_gen.rkt
racket
--------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- A locus wraps a call to a subprocess, whose executable is the racket executable that's running when the call is made
#lang racket/base (require racket/generic) (provide gen:locus locus/c locus? locus-pid locus-wait locus-running? locus-exit-code locus-kill) (define-generics locus (locus-pid locus) (locus-wait locus) (locus-running? locus) (locus-exit-code loc...
654fdcfca655dbc699dc2e509bb14dddc58c113b1dd4cb9ba97077e45675ff9c
project-everest/MLCrypto
DHDB.ml
open CoreCrypto type bytes = string let string_of_bytes b = b let bytes_of_string s = s type key = bytes * bytes type value = bytes * bool type dhdb = DB.db let defaultFileName = "" let defaultDHPrimeConfidence = Z.of_int 0 let defaultPQMinLength = (Z.of_int 1024, Z.of_int 512) let ser_key (k:key) = let u,v = ...
null
https://raw.githubusercontent.com/project-everest/MLCrypto/190250bbb8f16e7c3f6a8d443b13600ada4fbe79/DHDB.ml
ocaml
let create s = DB.create s
open CoreCrypto type bytes = string let string_of_bytes b = b let bytes_of_string s = s type key = bytes * bytes type value = bytes * bool type dhdb = DB.db let defaultFileName = "" let defaultDHPrimeConfidence = Z.of_int 0 let defaultPQMinLength = (Z.of_int 1024, Z.of_int 512) let ser_key (k:key) = let u,v = ...
84f6a0fdf3b78781d77b10912c4b75a4acb0ecfda98e502590314434377eb221
eugeneia/athens
specials.lisp
(in-package :trivial-types) (defvar *standard-optimize-qualities* '((speed 3) (safety 0) (space 0) (debug 1) (compilation-speed 0)))
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/trivial-types-20120407-git/src/specials.lisp
lisp
(in-package :trivial-types) (defvar *standard-optimize-qualities* '((speed 3) (safety 0) (space 0) (debug 1) (compilation-speed 0)))
a41752265637c806c97b5d7dc6225112b3a3c6f9951331039f4058c3d1f4432c
lpw25/ocaml-typed-effects
array.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/stdlib/array.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with external length : 'a array -> int = "%...