_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
91279f8c62cc4dfbfc88b569c6b5403e6032cf095f767f579de8ddf5b8028dae
aryx/fork-efuns
default_config.ml
(*s: config/default_config.ml *) (*s: copyright header2 *) (***********************************************************************) (* *) xlib for (* *) ...
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/config/default_config.ml
ocaml
s: config/default_config.ml s: copyright header2 ********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Efuns module Parameter = Parameter_option let standard...
1c20fe871fcaf522f90e83d5f7ee11ffb87f614070e2efd50c33867a5a047510
ocaml/dune
b.ml
let buy_it = "buy " ^ Lib.A.it
null
https://raw.githubusercontent.com/ocaml/dune/fc7b95148e1c71c4cb322dc852b6b6514044c611/test/blackbox-tests/test-cases/melange/public.t/my_project/app/b.ml
ocaml
let buy_it = "buy " ^ Lib.A.it
0f9096b1c5d0239baf7e40b697f586ef2ff86fac0607451405bf166b83e65eb9
ejgallego/HOARe2
support.ml
Copyright ( c ) 2013 , The Trustees of the University of Pennsylvania All rights reserved . LICENSE : 3 - clause BSD style . See the LICENSE file for details on licensing . All rights reserved. LICENSE: 3-clause BSD style. See the LICENSE file for details on licensing. *) (* Common defini...
null
https://raw.githubusercontent.com/ejgallego/HOARe2/48d8760696fdf4b8a3eda5a4d2a53eeba53072d8/src/support.ml
ocaml
Common definitions We reverse the usual order Components of the compiler Pretty printing options Printing level Use unicode output Print type annotations in the expressions Print expression annotations in types Default printing depth Ouput names of vars Only names in ctx Don't bail on assertio...
Copyright ( c ) 2013 , The Trustees of the University of Pennsylvania All rights reserved . LICENSE : 3 - clause BSD style . See the LICENSE file for details on licensing . All rights reserved. LICENSE: 3-clause BSD style. See the LICENSE file for details on licensing. *) module Util = st...
7d7dc0480cb0a37ef365c80768171c177d04d3205fb8163ce18d3099a5f2adf5
choener/ADPfusion
Fill.hs
module ADPfusion.Core.SynVar.Fill where import Control.Monad import Control.Monad.Morph (hoist, MFunctor (..)) import Control.Monad.Primitive import Control.Monad.ST import Control.Monad.Trans.Class (lift, MonadTrans (..)) import Control.Monad (when,forM_) i...
null
https://raw.githubusercontent.com/choener/ADPfusion/fcbbf05d0f438883928077e3d8a7f1cbf8c2e58d/ADPfusion/Core/SynVar/Fill.hs
haskell
TODO we want to keep only classes in here, move instances to the corresponding modules | A vanilla context - free grammar | This grammar is a multi - cfg in a monotone setting * Unsafely mutate ' ITbls ' and similar tables in the forward phase . | Mutate a cell in a stack of syntactic variables . TODO gener...
module ADPfusion.Core.SynVar.Fill where import Control.Monad import Control.Monad.Morph (hoist, MFunctor (..)) import Control.Monad.Primitive import Control.Monad.ST import Control.Monad.Trans.Class (lift, MonadTrans (..)) import Control.Monad (when,forM_) i...
165f393a3210b6c438cde9fd4f16ec434ee532e7925b65905dabeaaddf80c032
fetburner/Coq2SML
preferences.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/ide/preferences.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** mutable use_utf8_notation : b...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type project_behavior = Ignor...
2421b795d09f8782ff3af49c20572b608114a3fad16435931d67211603d35fdc
ujamjar/hardcaml
verilog.mli
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) (** Generation of verilog netlists *) (** write a verilog netlist to the...
null
https://raw.githubusercontent.com/ujamjar/hardcaml/65f32f543348e81cbb7f6d0e77f1f1203bf4e335/archive/verilog.mli
ocaml
* Generation of verilog netlists * write a verilog netlist to the given channel from the given circuit
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) val write : Circuit.t -> Buffer.t module Testbench : sig val write...
7cfda1340bbc602989b497d0346eb4770473cce0d6473b6c7ce3cdeb58378b8e
janestreet/async_smtp
multispool_intf.ml
open Core open Async * { 0 Multispool } Multispool allows multiple , separate processes to cooperate via a filesystem - based queue . The design was influenced by various UNIX tools that use typical POSIX - y write / fsync / close / rename semantics to provide atomic filesystem operations ( Maildir...
null
https://raw.githubusercontent.com/janestreet/async_smtp/f900fa3f028725539f1336900b5631d2522fc154/src/multispool_intf.ml
ocaml
* Generates filenames for enqueued [Spoolable]s. [t] is a user-supplied input to name generation via [name]. * [Spoolable.Metadata.t] should be smallish since it is read and written more frequently than [Spoolable.Data.t]. * [of_string] and [to_string] are used to persist and read [t] on disk. * [Spoo...
open Core open Async * { 0 Multispool } Multispool allows multiple , separate processes to cooperate via a filesystem - based queue . The design was influenced by various UNIX tools that use typical POSIX - y write / fsync / close / rename semantics to provide atomic filesystem operations ( Maildir...
908a05c36271b35c2e301b6ba075ef5952842707bb6fd66d038ffabed3df9ff3
polymeris/re-frame-realword-example-app
fixtures.cljs
(ns conduit.fixtures (:require [re-frame.core :as re-frame])) (defn re-frame-state [] (let [restore-re-frame (atom nil)] {:before #(do (reset! restore-re-frame (re-frame/make-restore-fn)) (re-frame/reg-event-db :api-request-failure (fn [_ request] ...
null
https://raw.githubusercontent.com/polymeris/re-frame-realword-example-app/f57f3f62551bf9a13be1c5561ec3acc6eea1ca46/test/cljs/conduit/fixtures.cljs
clojure
(ns conduit.fixtures (:require [re-frame.core :as re-frame])) (defn re-frame-state [] (let [restore-re-frame (atom nil)] {:before #(do (reset! restore-re-frame (re-frame/make-restore-fn)) (re-frame/reg-event-db :api-request-failure (fn [_ request] ...
2eee942fa3db102507e7450e4191081b7458c9801a0fa26f5b13b87d59c32162
5outh/textlunky
Tools.hs
module Random.Tools( randomFromList', randomsFromList', randomFromList, randomsFromList ) where import qualified System.Random as R import Control.Monad.Trans.State import Control.Monad import Data.Universe -- | Statefully get a random value from a given list of possibilities randomFromList' :: [a] -> State R...
null
https://raw.githubusercontent.com/5outh/textlunky/8dd4d975ed86b761262e3026dd4c22a36b532104/src/Random/Tools.hs
haskell
| Statefully get a random value from a given list of possibilities | Statefully get an infinite list of random values from a list of | possibilities | Get a random value from a list of possibilities | Get an infinite stream of random values from a list of possibilities | Get randoms based on some finite universe
module Random.Tools( randomFromList', randomsFromList', randomFromList, randomsFromList ) where import qualified System.Random as R import Control.Monad.Trans.State import Control.Monad import Data.Universe randomFromList' :: [a] -> State R.StdGen a randomFromList' xs = do gen <- get let (idx, gen') = R.r...
ae0f36a31158661af58b450fbc17f4fc34ff14fea2e6070dd9458db529d7cd39
commercialhaskell/curator
Constants.hs
module Curator.Constants ( snapshotFilename , constraintsFilename , snapshotsRepo , constraintsRepo , haddockBucket ) where import RIO (Text, fromString) snapshotFilename :: FilePath snapshotFilename = "snapshot.yaml" constraintsFilename :: FilePath constraintsFilename = "constraints.yaml" ...
null
https://raw.githubusercontent.com/commercialhaskell/curator/8bf6978fc0c3556a2c85b72b48d516ed55834d47/src/Curator/Constants.hs
haskell
module Curator.Constants ( snapshotFilename , constraintsFilename , snapshotsRepo , constraintsRepo , haddockBucket ) where import RIO (Text, fromString) snapshotFilename :: FilePath snapshotFilename = "snapshot.yaml" constraintsFilename :: FilePath constraintsFilename = "constraints.yaml" ...
45e21913db4a250ae826845fabc09ed4e9998180e36e1d5f56a510fe8590a352
clojure-interop/java-jdk
DetailEntry.clj
(ns javax.xml.soap.DetailEntry "The content for a Detail object, giving details for a SOAPFault object. A DetailEntry object, which carries information about errors related to the SOAPBody object that contains it, is application-specific." (:refer-clojure :only [require comment defn ->]) (:import [javax.xm...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/soap/DetailEntry.clj
clojure
(ns javax.xml.soap.DetailEntry "The content for a Detail object, giving details for a SOAPFault object. A DetailEntry object, which carries information about errors related to the SOAPBody object that contains it, is application-specific." (:refer-clojure :only [require comment defn ->]) (:import [javax.xm...
7bfd55a6ce344c6594fd855bc1bab45edc477f927c77b159ac4389b885a82d70
janestreet/core_bench
bench_command_column.ml
open Core (* module T = struct * type t = * [ `Name * | `Cycles * | `Nanos * | `Confidence * | `Allocated * | `Percentage * | `GC * | `Speedup * | `Samples * ] with sexp, compare * end * * module Map = Map.Make (T) * include T *) (* include String *) let name_desc_assoc_list = ...
null
https://raw.githubusercontent.com/janestreet/core_bench/746d2440aa10795f1ef286df64be46e7d4ff768c/internals/bench_command_column.ml
ocaml
module T = struct * type t = * [ `Name * | `Cycles * | `Nanos * | `Confidence * | `Allocated * | `Percentage * | `GC * | `Speedup * | `Samples * ] with sexp, compare * end * * module Map = Map.Make (T) * include T include String
open Core let name_desc_assoc_list = [ * ( " cycles " , ` Cycles , " Number of CPU cycles ( RDTSC ) taken . " ) ; * ( " time " , ` Nanos , " Number of nano secs taken . " ) ; * ( " confidence " , ` Confidence , " 95 % confidence interval and R^2 error for predictors . " ) ...
924dd069715557c997c85b66b414dd56e20d62e8816b3d4c657615c2ab47546b
tpapp/cl-random
regressions.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- (in-package #:cl-random-tests) (deftestsuite regressions-tests (cl-random-tests) () (:equality-test #'==)) (addtest (regressions-tests) dummy-regenerate (let+ ((k 2) (n 10) ((&values y x) (random-y-x n k)) (r1 (...
null
https://raw.githubusercontent.com/tpapp/cl-random/5bb65911037f95a4260bd29a594a09df3849f4ea/tests/regressions.lisp
lisp
Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- single step (addtest (regressions-tests) linear-regression-random (let* (;; sample (x (rs:replicate n (lambda () (+ 5 (draw-standard-normal)))) :flatten? t :element-type 'double-float)...
(in-package #:cl-random-tests) (deftestsuite regressions-tests (cl-random-tests) () (:equality-test #'==)) (addtest (regressions-tests) dummy-regenerate (let+ ((k 2) (n 10) ((&values y x) (random-y-x n k)) (r1 (linear-regression y x)) (d1 (linear-regression-dummies r1)) ...
387664c08b87fe545249202c491902877e615bece23b5957f53398b9e8391483
7c6f434c/lang-os
read-eval-print-once.lisp
(defpackage :lisp-os-helpers/read-eval-print-once (:use :common-lisp) (:export #:read-eval-print #:package-rep #:load-rep ) (:nicknames :rep1)) (in-package :lisp-os-helpers/read-eval-print-once) (defun read-eval-print () (handler-case (format t "~s~%" (eval (read))) (error (e) (format *...
null
https://raw.githubusercontent.com/7c6f434c/lang-os/be4331d225629bff322facf603a89ac707acea83/lisp-os-helpers/read-eval-print-once.lisp
lisp
(defpackage :lisp-os-helpers/read-eval-print-once (:use :common-lisp) (:export #:read-eval-print #:package-rep #:load-rep ) (:nicknames :rep1)) (in-package :lisp-os-helpers/read-eval-print-once) (defun read-eval-print () (handler-case (format t "~s~%" (eval (read))) (error (e) (format *...
746c53ed2182716c3c0e4e53075f130fb93c4a332b5fac4e5e4dd078efdc48f4
mpelleau/AbSolute
uniontree.ml
open Signature open Consistency (* This module implements the tree abstract domain described in "Abstract Domains for Constraint Programming with Differential Equations". It provides an efficient pre-calculus for meets and filter on large disjunctions, based on dichotomy and convex hulls. *) module Make (D :...
null
https://raw.githubusercontent.com/mpelleau/AbSolute/219a23870d899d7438b54d69e25861387b956a1d/lib/domains/boolean/uniontree.ml
ocaml
This module implements the tree abstract domain described in "Abstract Domains for Constraint Programming with Differential Equations". It provides an efficient pre-calculus for meets and filter on large disjunctions, based on dichotomy and convex hulls. helper that folds over tree all elements defined on...
open Signature open Consistency module Make (D : Numeric) : Domain = struct type t = Leaf of D.t | Union of {envelopp: D.t; sons: t list} type internal_constr = D.internal_constr Constraint.boolean let internalize ?elem c = match elem with | Some (Leaf n) -> let c' = Constraint.remove_not c in...
85177012f83e4ed720a023053503b1b2d34fc0c43959cc2e512ebf781f096cf5
Netflix/PigPen
runtime_test.clj
;; ;; Copyright 2015 Netflix , Inc. ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writ...
null
https://raw.githubusercontent.com/Netflix/PigPen/18d461d9b2ee6c1bb7eee7324889d32757fc7513/pigpen-cascading/src/test/clojure/pigpen/cascading/runtime_test.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the speci...
Copyright 2015 Netflix , Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns pigpen.cascading.runtime-test (:require [clojure.test :refer :all] [pigpen.cascading.runtime]))
201fced1e990d9a3010a2f5aaae5b644f213677c0e39c5369c09d7a3232416e4
B-Lang-org/bsc
Pred2Yices.hs
module Pred2Yices( YState, initYState, solvePred ) where import Control.Monad.State import qualified Data.Map as M import qualified Yices as Y --import Flags import PFPrint import Id import PreIds import CType import Type import Pred import Debug.Trace(traceM) import IOUtil(progArgs) traceTest ...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/91ad4276a74525410a9efe132785b812af5c9fc3/src/comp/Pred2Yices.hs
haskell
import Flags ------------------------- flags :: Flags, so keep a handle to the type a map from types to their converted form (this is used both to avoid duplicate conversion and as a list of possible terms for solving) (since that provides a division operator and log/exp via shifting) -------------------...
module Pred2Yices( YState, initYState, solvePred ) where import Control.Monad.State import qualified Data.Map as M import qualified Yices as Y import PFPrint import Id import PreIds import CType import Type import Pred import Debug.Trace(traceM) import IOUtil(progArgs) traceTest :: Bool traceTe...
2f340e7ecc0358acd372f03d9ea1221befa15c5c20568be53b4e4e338899b48c
rvantonder/hack_parallel
script_utils.ml
* * Copyright ( c ) 2013 - 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) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENS...
null
https://raw.githubusercontent.com/rvantonder/hack_parallel/c9d0714785adc100345835c1989f7c657e01f629/scripts/script_utils.ml
ocaml
* * Copyright ( c ) 2013 - 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) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENS...
7940860dad6b7d2a1d8ac460b91c9c30676e02d77d25d7af686beb333938dd31
okeuday/pqueue
pqueue.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 nomod : %%% %%%------------------------------------------------------------------------ %%% @doc %%% ==Static Priority Queue.== %%% This priority queue implementation depends on a stati...
null
https://raw.githubusercontent.com/okeuday/pqueue/32bb6233e1eda782c09ca19905115abcb810d33f/src/pqueue.erl
erlang
------------------------------------------------------------------------ @doc ==Static Priority Queue.== This priority queue implementation depends on a static number of priorities quick in/out priority queue operations. This implementation was created to (). @end Permission is hereby granted, free of charg...
-*-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 nomod : ( -20 ( high ) to 20 ( low ) ) so that tuple access times can be exploited for avoid the slowness within the priority queue used by both RabbitMQ and MIT License Copyri...
166f162b2f053e277bda890cab1e4627a8022c930c94afea636a8d2f385db8c3
YouyouCong/ppl-summer-school-2022
flip.ml
計算を true と false let flip () = shift (fun k -> (k true, k false)) ;; テスト let test1 = reset (fun () -> if flip () then 1 else 0) = (1, 0) ;; let test2 = reset (fun () -> if flip () then "hello" else "bye") = ("hello", "bye") ;;
null
https://raw.githubusercontent.com/YouyouCong/ppl-summer-school-2022/201e1f4c209333cf21a274a8b1be976d17000898/cong/solution/flip.ml
ocaml
計算を true と false let flip () = shift (fun k -> (k true, k false)) ;; テスト let test1 = reset (fun () -> if flip () then 1 else 0) = (1, 0) ;; let test2 = reset (fun () -> if flip () then "hello" else "bye") = ("hello", "bye") ;;
5b3c31631591c62d6989a02c6742998e4df1c2721f8b802b805b2c5f72b3fb10
picty/parsifal
eCKey.ml
open Asn1PTypes alias ec_params = der_object alias ec_public_key = binstring asn1_struct ecdsa_signature = { ecdsa_x : der_integer; ecdsa_y : der_integer }
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/crypto/eCKey.ml
ocaml
open Asn1PTypes alias ec_params = der_object alias ec_public_key = binstring asn1_struct ecdsa_signature = { ecdsa_x : der_integer; ecdsa_y : der_integer }
7a46d9c1c09e6a877a01fc350bcc5df964eb0a0b70e35ff559e39aea3b59a247
keechma/keechma-entitydb
data.cljs
(ns keechma.entitydb.data (:require [keechma.entitydb.core :as edb])) (def user-1-data {:username "retro" :id 1 :posts {:pageInfo {:hasNextPage true} :edges [{:cursor "1" :node {:slug "my-post-1" ...
null
https://raw.githubusercontent.com/keechma/keechma-entitydb/100f1871bbd62b688901fd1359e8b0a2bbf3153c/test/keechma/entitydb/data.cljs
clojure
(ns keechma.entitydb.data (:require [keechma.entitydb.core :as edb])) (def user-1-data {:username "retro" :id 1 :posts {:pageInfo {:hasNextPage true} :edges [{:cursor "1" :node {:slug "my-post-1" ...
ac193c511f672f91d67e9ec8b7af2d39c9d1019d926bd2b8a93f6eb600091f81
melhadad/fuf
ir5.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ;;; ----------------------------------------------------------------------- ;;; File: ir5.l ;;; Description: Example inputs for GR5 Author : Created : 10 Mar 1989 Modified : 18 May 90 Package : FUG5 ;;; -----------------...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/examples/ir5.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; Package: FUG5 -*- ----------------------------------------------------------------------- File: ir5.l Description: Example inputs for GR5 ----------------------------------------------------------------------- no car given no cdr given
Author : Created : 10 Mar 1989 Modified : 18 May 90 Package : FUG5 (in-package "FUG5") (defun isetup5 () (clear-tests) (format t "~%GR5: list manipulation in FUF~%") (format t "(test-append (ir51))~%") (format t "(test-append (ir52))~%") (format t "The gensym symbols stand ...
3aeac65c819bde6bd70f9397100f33f2c864f45d7c6c2ff18c65c70c9cd30510
mk270/archipelago
aperture.mli
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
null
https://raw.githubusercontent.com/mk270/archipelago/4241bdc994da6d846637bcc079051405ee905c9b/src/model/aperture.mli
ocaml
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012 This programme is free software ; you may redistribute and/or modify it under the terms of the GNU Affero General Public Licence as published by the Free Software Foundation , either version 3 of said Licence , or ( ...
7dbe2911ecb65bf07a588f0c55a49825142ca2b1ba950fb2c0ee63bcd4de5d6a
ferd/alias_transform
alias_transform_SUITE.erl
-module(alias_transform_SUITE). -compile({parse_transform, alias_transform}). -alias({?MODULE, chk}). -export([all/0, remote_call/1, remote_fun/1]). %% Test exports -export([a/0, a/1, b/0]). all() -> [remote_call, remote_fun]. %% @doc check `Mod:Fun(Args)' calls. If the parse transform does not work %% this...
null
https://raw.githubusercontent.com/ferd/alias_transform/5b3a80865a8db044dbfddd97728800e9d9b3e8fe/test/alias_transform_SUITE.erl
erlang
Test exports @doc check `Mod:Fun(Args)' calls. If the parse transform does not work this test fails with `undef' exceptions. HELPERS %%%
-module(alias_transform_SUITE). -compile({parse_transform, alias_transform}). -alias({?MODULE, chk}). -export([all/0, remote_call/1, remote_fun/1]). -export([a/0, a/1, b/0]). all() -> [remote_call, remote_fun]. remote_call(_Config) -> chk:a(), chk:a(2), chk:b(), ok. remote_fun(_Config) -> ...
8faae7080173fdc502d62c7c1a7fbad800008c82fdfddec67536a772bd9fa3ce
ocurrent/macos-infra
main.ml
open Cmdliner let reporter = let report src level ~over k msgf = let k _ = over (); k () in let src = Logs.Src.name src in msgf @@ fun ?header ?tags:_ fmt -> Fmt.kpf k Fmt.stdout ("%a %a @[" ^^ fmt ^^ "@]@.") Fmt.(styled `Magenta string) (Printf.sprintf "%14s" src) ...
null
https://raw.githubusercontent.com/ocurrent/macos-infra/6310e81a0c76c5848ee8f44463b10a7d8404d5f7/src/bin/main.ml
ocaml
open Cmdliner let reporter = let report src level ~over k msgf = let k _ = over (); k () in let src = Logs.Src.name src in msgf @@ fun ?header ?tags:_ fmt -> Fmt.kpf k Fmt.stdout ("%a %a @[" ^^ fmt ^^ "@]@.") Fmt.(styled `Magenta string) (Printf.sprintf "%14s" src) ...
58a5eb6b5ff718f9e1d2aef53e9ed9411875c3f755f0cbb9c8b4f9d5b37e15e3
weblocks-framework/weblocks
widget.lisp
(in-package :weblocks) (export '(defwidget widget make-widget widget-name widget-propagate-dirty widget-continuation widget-parent widget-parents widgets-roots widget-children widget-prefix-fn widget-suffix-f...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/widgets/widget/widget.lisp
lisp
Process the :name initarg and set the dom-id accordingly. Note that it is possible to pass :name nil, which simply means that objects will render without id in generated HTML. TODO: we might want to ensure that the old parent doesn't keep a reference to the widget. when this is implemented. Rational...
(in-package :weblocks) (export '(defwidget widget make-widget widget-name widget-propagate-dirty widget-continuation widget-parent widget-parents widgets-roots widget-children widget-prefix-fn widget-suffix-f...
9b70e31753cd0b335ab93eb120ae6581807880533e45e589d081724519614d57
Mattiemus/LaneWars
WaypointMovement.hs
{-# LANGUAGE Arrows #-} module Game.Server.Components.WaypointMovement where import FRP.Yampa as Yampa import FRP.Yampa.Geometry import Safe import IdentityList import Network.Socket import Data.Maybe import Numeric.IEEE import Game.Shared.Types import Game.Shared.Networking import Game.Shared.Arro...
null
https://raw.githubusercontent.com/Mattiemus/LaneWars/4c4a0a11f49cbd9ff722aedf3e0f352e49b140fe/Game/Server/Components/WaypointMovement.hs
haskell
# LANGUAGE Arrows # --------------------- --------------------- |Input structure for the waypoint movement component ^The speed at which the object should move at ^The current position of the object ^The list of all other objects in the scene ^The enemy game team ^True if the the object is the front of the pack ...
module Game.Server.Components.WaypointMovement where import FRP.Yampa as Yampa import FRP.Yampa.Geometry import Safe import IdentityList import Network.Socket import Data.Maybe import Numeric.IEEE import Game.Shared.Types import Game.Shared.Networking import Game.Shared.Arrows import Game.Shared.Ob...
27d2b7e33cf98bda6cd08a7325da56b7238dd37f8b650a03113123553bb8e90a
metabase/metabase
id.cljc
(ns metabase.lib.schema.id (:require [metabase.lib.schema.common :as common] [metabase.util.malli.registry :as mr])) ;;; these aren't anything special right now, but maybe in the future we can do something special/intelligent with ;;; them, e.g. when we start working on the generative stuff (mr/def ::database...
null
https://raw.githubusercontent.com/metabase/metabase/02e9aa420ef910138b9b5e05f74c96e31286bcf2/src/metabase/lib/schema/id.cljc
clojure
these aren't anything special right now, but maybe in the future we can do something special/intelligent with them, e.g. when we start working on the generative stuff
(ns metabase.lib.schema.id (:require [metabase.lib.schema.common :as common] [metabase.util.malli.registry :as mr])) (mr/def ::database ::common/int-greater-than-or-equal-to-zero) (mr/def ::table ::common/int-greater-than-or-equal-to-zero) (mr/def ::field ::common/int-greater-than-or-equal-to-zero)
a8621e8257e64a074e0d439e9d9c452256ff0af519249fdf9883dbed9398437f
FundingCircle/jackdaw
lambdas.clj
(ns jackdaw.streams.lambdas "Wrappers for the Java 'lambda' functions." {:license "BSD 3-Clause License <>"} (:import org.apache.kafka.streams.KeyValue [org.apache.kafka.streams.kstream Aggregator ForeachAction Initializer KeyValueMapper Merger Predicate Reducer Transformer Tran...
null
https://raw.githubusercontent.com/FundingCircle/jackdaw/e0c66d386277282219e070cfbd0fe2ffa3c9dca5/src/jackdaw/streams/lambdas.clj
clojure
(ns jackdaw.streams.lambdas "Wrappers for the Java 'lambda' functions." {:license "BSD 3-Clause License <>"} (:import org.apache.kafka.streams.KeyValue [org.apache.kafka.streams.kstream Aggregator ForeachAction Initializer KeyValueMapper Merger Predicate Reducer Transformer Tran...
0f922f77a86bed893b242ff7ca2c3a830949cd1a616081b5b6608cad2c7b60a1
MinaProtocol/mina
mina_state.ml
module Registers = Mina_state_registers module Local_state = Mina_state_local_state module Blockchain_state = Mina_state_blockchain_state module Protocol_state = Mina_state_protocol_state module Snarked_ledger_state = Mina_state_snarked_ledger_state
null
https://raw.githubusercontent.com/MinaProtocol/mina/57e2ea1b87fe1a24517e1c62f51cc59fe9bc87cd/src/lib/mina_wire_types/mina_state/mina_state.ml
ocaml
module Registers = Mina_state_registers module Local_state = Mina_state_local_state module Blockchain_state = Mina_state_blockchain_state module Protocol_state = Mina_state_protocol_state module Snarked_ledger_state = Mina_state_snarked_ledger_state
96e8cf6a6107240074da9c9af994ecfad8b90e1f69225545bee29d95ee3ee388
Helium4Haskell/helium
Thompson18.hs
predecessor n :: Int -> Int predecessor n | n>0 = n-1 | n==0 = 0 predecessor n : : a = > a - > a
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/thompson/Thompson18.hs
haskell
predecessor n :: Int -> Int predecessor n | n>0 = n-1 | n==0 = 0 predecessor n : : a = > a - > a
2ea70ffa4bcfa07db5def6f8f164ee84786fc9f8501c6e4578b03cf02df74e6d
skanev/playground
14.scm
SICP exercise 1.14 ; ; Draw the tree illustrating the process generated by the count-change procedure of section 1.2.2 in making charge for 11 cents . What are the orders ; of growth of the space and number of steps used by this process as the amount ; to be changed increases. ; The spaces grows in Θ(n), since the...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/01/14.scm
scheme
Draw the tree illustrating the process generated by the count-change of growth of the space and number of steps used by this process as the amount to be changed increases. The spaces grows in Θ(n), since the maximum depth of the tree is a function of n (number-of-denominations + n / smallest-denomination + 1). ...
SICP exercise 1.14 procedure of section 1.2.2 in making charge for 11 cents . What are the orders roughly double every time we add 5 to n , but this is oversimplifying it ( it gets more complex when we start adding 50 in increments . And about draing a tree ? In ASCII ? Seriously ? , sure : ...
b2864b28c75f67ea6e4ba876331c53a878d4bdb8bed856611f6c0ff97728bbb9
draperlaboratory/VIBES
runner.ml
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/7f978d66d0b022d1a9262fdfc608b7a2b7c95dff/tools/vibes-init/lib/runner.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . open Core open Bap.Std open Bap_core_theory module T = Theory module CT = Vibes_utils.C...
514f37bb8f788fda2f1f36247c93f8d6fb6a8c72036b41011d2d8529f99983a8
nokia/web-assembly-self-certifying-compilation-framework
test_spec_core_identity.ml
* Copyright 2020 Nokia Licensed under the BSD 3 - Clause License . SPDX - License - Identifier : BSD-3 - Clause Copyright 2020 Nokia Licensed under the BSD 3-Clause License. SPDX-License-Identifier: BSD-3-Clause *) open Sys open Filename open File_reader open File_writer open Pass_header open...
null
https://raw.githubusercontent.com/nokia/web-assembly-self-certifying-compilation-framework/8c31df0bd7d2d94cfbc22089944f5cabb3a61158/src/validator/test/test_spec_core_identity.ml
ocaml
Makes sure that we can do the following identity pass: * WAST file * -> Script.script * -> Script_types.script_ir * -> Script.script * -> WAST * * That is, the functionalities converting to and from IR is an identity. * Assumes that /usr/bin/wasm or equivalent is present, * which is the executable from t...
* Copyright 2020 Nokia Licensed under the BSD 3 - Clause License . SPDX - License - Identifier : BSD-3 - Clause Copyright 2020 Nokia Licensed under the BSD 3-Clause License. SPDX-License-Identifier: BSD-3-Clause *) open Sys open Filename open File_reader open File_writer open Pass_header open...
b9637acf17d967e3ad7f3c3b01b58eb0f2363a906221e7d0e7d37218ba7ba861
rtrusso/scp
sasm-visitor.scm
;; sasm-visitor.scm ;; AST visitor infrastructure for SASM . (need scheme/tag) (define-syntax sasm-node-visitor (syntax-rules (:preorder :postorder) ;; preorder , postorder both specified ;; ((_ ((<node-variable> <node-type-1> <node-type-2> ...) (<property-variable> <propert...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/sasm/sasm-visitor.scm
scheme
sasm-visitor.scm only preorder specified only postorder specified no traversal ordering specified => postorder Syntax which defines a visitor and then runs a visit operation on the specified tree where the body expressions may refer to a specified "accumulate keyword" to accumulate result...
AST visitor infrastructure for SASM . (need scheme/tag) (define-syntax sasm-node-visitor (syntax-rules (:preorder :postorder) preorder , postorder both specified ((_ ((<node-variable> <node-type-1> <node-type-2> ...) (<property-variable> <property-name>) ...) (:preorder <preord...
bf2eca923c957f1ff911aa201486dee4dfad3d2a7c2177f7c82839f20b9e936d
ghcjs/jsaddle-dom
NodeFilter.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.NodeFilter (newNodeFilter, newNodeFilterSync, newNodeFilterAsync, pattern FILTER_ACCEPT, pattern FILTER_REJ...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/NodeFilter.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.NodeFilter (newNodeFilter, newNodeFilterSync, newNodeFilterAsync, pattern FILTER_ACCEPT, pattern FILTER_REJECT, pattern FILTER_SKIP, pattern SHOW_ALL, pattern SHOW_ELEMENT, pattern SHOW_ATTRIBUTE, ...
e3452c974813f346ea95cf01a8176b76e87a3e079152e2cb24a4c4fd6386b7ff
ds26gte/tex2page
chez-tex2page.rkt
last change : 2022 - 12 - 28 (scmxlate-eval (define *chez-name* (if (eqv? *dialect* 'petite) "petite" or " chez " ? ))) (scmxlate-cond ((eqv? *operating-system* 'unix) (scmxlate-insert "#! /usr/local/bin/" *chez-name* " --script\n\n" )) ((eqv? *operating-system* 'windows) (...
null
https://raw.githubusercontent.com/ds26gte/tex2page/0f954539bfb7c0c42d5b3a02a7db59430a086b43/dialects/chez-tex2page.rkt
racket
(scmxlate-include "seconds-to-date.scm")
last change : 2022 - 12 - 28 (scmxlate-eval (define *chez-name* (if (eqv? *dialect* 'petite) "petite" or " chez " ? ))) (scmxlate-cond ((eqv? *operating-system* 'unix) (scmxlate-insert "#! /usr/local/bin/" *chez-name* " --script\n\n" )) ((eqv? *operating-system* 'windows) (...
13151dcb730c30807003065f6c1dc17eec6681dd386264feaf40bb2b6edf8854
GlideAngle/flare-timing
Double.hs
module Internal.Sphere.Cylinder.Double (circumSample, direct) where import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.LatLng (Lat(..), Lng(..), LatLng(..)) import Flight.Zone ( Zone(..) , QRadius , Radius(..) , Bearing(..) , ArcSweep(..) , center ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/library/Internal/Sphere/Cylinder/Double.hs
haskell
geodesy solution. | Using a method from the <#LL Aviation Formulary> a point on a cylinder wall is found by going out to the distance of the <-type.co.uk/scripts/latlong.html Movable Type Scripts> has working examples in Javascript backed HTML pages. | Generates a pair of lists, the lat/lng of each generated p...
module Internal.Sphere.Cylinder.Double (circumSample, direct) where import Data.UnitsOfMeasure (u) import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.LatLng (Lat(..), Lng(..), LatLng(..)) import Flight.Zone ( Zone(..) , QRadius , Radius(..) , Bearing(..) , ArcSweep(..) , center ...
9482fac589b148c99af3f8e26d50c75a452abae9c0a63b46048b4b1340b04bdf
melange-re/melange
ast_derive_util.mli
Copyright ( C ) 2017 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/frontend/ast_derive_util.mli
ocaml
* Given a type declaration, extaract the type expression, mostly used in code gen later val mk_fun : loc:Location.t -> Parsetree.core_type -> string -> Parsetree.expression -> Parsetree.expression val destruct_label_declarations : loc:Location.t -> string -> Parsetree.label_declar...
Copyright ( C ) 2017 Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ....
1766d7fe7d1dd2da9c9536b0fe501a8a219c9b257b2552f0413f5e3cb6af96fd
isovector/thinking-with-types
SingletonsTH.hs
-- # pragmas {-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} # LANGUAGE UndecidableInstances # module SingletonsTH where -- # imports import Data.Ord.Singletons import Data.Singletons.TH import Prelude.Singletons ...
null
https://raw.githubusercontent.com/isovector/thinking-with-types/481bbb9fc02ecf11230cce7097e0ca4e04516b0d/code/SingletonsTH.hs
haskell
# pragmas # LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # imports # TimeOfDay
# LANGUAGE UndecidableInstances # module SingletonsTH where import Data.Ord.Singletons import Data.Singletons.TH import Prelude.Singletons singletons [d| data TimeOfDay = Morning | Afternoon | Evening | Night deriving (Eq, Ord, Show) |]
e3c4ffef6207871f48647c1daa0f179aee6f25f42c50af176634df8eac342b21
haskell-opengl/OpenGL
Shaders.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.Shaders Copyright : ( c ) 2002 - 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- This module corresponds to sect...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/Shaders.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.Shaders License : BSD3 Stability : stable Portability : portable specs. ------------------------------------------------------------------------------
Copyright : ( c ) 2002 - 2019 Maintainer : < > This module corresponds to section 7 ( Programs and Shaders ) of the OpenGL 4.4 module Graphics.Rendering.OpenGL.GL.Shaders ( module Graphics.Rendering.OpenGL.GL.Shaders.ShaderObjects, module Graphics.Rendering.OpenGL.GL.Shaders.ShaderBinaries, ...
a5d0abf81a6e4e0fd7a507d021867c51e80c79fdc6fd910d4a7b9cec8b99b844
conreality/conreality
network.mli
(* This is free and unencumbered software released into the public domain. *) module CCCP : sig type t val is_configured : t -> bool val listen : t -> Messaging.CCCP.Callback.t -> Messaging.CCCP.Server.t Lwt.t end #ifdef ENABLE_IRC module IRC : sig type t val is_configured : t -> bool val connect : t -> M...
null
https://raw.githubusercontent.com/conreality/conreality/e03328ef1f0056b58e4ffe181a279a1dc776e094/src/consensus/config/network.mli
ocaml
This is free and unencumbered software released into the public domain.
module CCCP : sig type t val is_configured : t -> bool val listen : t -> Messaging.CCCP.Callback.t -> Messaging.CCCP.Server.t Lwt.t end #ifdef ENABLE_IRC module IRC : sig type t val is_configured : t -> bool val connect : t -> Messaging.IRC.Callback.t -> Messaging.IRC.Connection.t Lwt.t end #endif module...
30f92db042b09b6227f7aeff2ea04a575a111a3da5b62869e7ef8e890b095c55
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2015 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns xmltest03.core) (use '[clojure....
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/xmltest03/src/xmltest03/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns xmltest03.core) (use '[clojure.xml]) (use '[clojure.pprint]) (defn print-xml-seq [parsed-xml] (doseq [item (xml-seq parsed-xml)] (println item))) (defn xmltest03 [] (let [parsed-xml (clojure.xml/parse "nested.xml")] (clojur...
7e014b94cc7b8a8e8e8c0c02262b378131c18b451690b6e5b86edf0a92335a7d
mrkkrp/text-metrics
Main.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - orphans # module Main (main) where import Data.Ratio import Data.Text (Text) import qualified Data.Text as T import Data.Text.Metrics import Test.Hspec import Test.QuickCheck instance Arbitrary Text where arbitrary = T.pack <$> arbitrary main :: IO ()...
null
https://raw.githubusercontent.com/mrkkrp/text-metrics/001d8a696f74a9054008da0992ed870a4112a1b2/tests/Main.hs
haskell
# LANGUAGE OverloadedStrings # | Test that given function returns the same results when order of arguments is swapped. and comparing the result with expected one. | Function to test | Expected result
# OPTIONS_GHC -fno - warn - orphans # module Main (main) where import Data.Ratio import Data.Text (Text) import qualified Data.Text as T import Data.Text.Metrics import Test.Hspec import Test.QuickCheck instance Arbitrary Text where arbitrary = T.pack <$> arbitrary main :: IO () main = hspec spec spec :: Spec sp...
b3b51315da748df9968d8d5b798dc30d50c2a72f20d5ede5f448a4a5a4b2789e
sgbj/MaximaSharp
zuchk.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/zuchk.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
4e787ed49212f99d009081b2ae67f36ebda7bcbb2bf3956c041e6094b79a2f37
twosigma/waiter
project.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software...
null
https://raw.githubusercontent.com/twosigma/waiter/9177d392d1f01caea1d07d9358e447a6968cb6d3/waiter/project.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 permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (defproject waiter "0.1.0-SNAPSHOT" :test-paths ["test" "integration"] :test-selectors {:default (every-pred (complement :dev) (complement ...
b1a93663e60159e78e34a04ba7fefa3b896e80011e3a08e79405699f9497d0ee
tschady/advent-of-code
d04_test.clj
(ns aoc.2015.d04-test (:require [aoc.2015.d04 :as sut] [clojure.test :refer :all])) (deftest part-1-examples (are [output input] (= output (sut/part-1 input)) 609043 "abcdef" 1048970 "pqrstuv")) (deftest challenge (is (= 346386 (sut/part-1 sut/input))) (is (= 9958218 (sut/part-2 sut/input)...
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2015/d04_test.clj
clojure
(ns aoc.2015.d04-test (:require [aoc.2015.d04 :as sut] [clojure.test :refer :all])) (deftest part-1-examples (are [output input] (= output (sut/part-1 input)) 609043 "abcdef" 1048970 "pqrstuv")) (deftest challenge (is (= 346386 (sut/part-1 sut/input))) (is (= 9958218 (sut/part-2 sut/input)...
9441e250010360eb16bbc8b0af9d07007738a28466c714a115de052e7b9928ff
nodew/haskell-dapr
Actor.hs
-- | Module : . Core . Types . Actor -- Description : Defines the types used by Actor module -- Copyright : (c) -- License : Apache-2.0 -- Defines the types used by Actor module. module Dapr.Core.Types.Actor where import Dapr.Core.Types.Common (ExtendedMetadata, StateKey, TransactionOperation) import Da...
null
https://raw.githubusercontent.com/nodew/haskell-dapr/95f807dc5a5deb29507c0aca9dc1421b36e88472/dapr-core/src/Dapr/Core/Types/Actor.hs
haskell
| Description : Defines the types used by Actor module Copyright : (c) License : Apache-2.0 Defines the types used by Actor module. | 'RegisterActorTimerRequest' is the message to register a timer for an actor of a given type and id. | Actor | Name of actor timer | Event handler | Extra data | Time to ...
Module : . Core . Types . Actor module Dapr.Core.Types.Actor where import Dapr.Core.Types.Common (ExtendedMetadata, StateKey, TransactionOperation) import Dapr.Core.Types.Internal (customParseJSON) import Data.Aeson (FromJSON (parseJSON)) import qualified Data.ByteString.Lazy as L import Data.Text (Text) impo...
b7b29a851c8fa79ff9513e2744e84c709c7e519e7cb23d579441acb491e6807a
FlowForwarding/loom
tap_ofsh.erl
%%------------------------------------------------------------------------------ Copyright 2014 FlowForwarding.org %% 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 %%...
null
https://raw.githubusercontent.com/FlowForwarding/loom/86a9c5aa8b7d4776062365716c9a3dbbf3330bc5/tapestry/apps/tapestry/src/tap_ofsh.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, eithe...
Copyright 2014 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2014 FlowForwarding.org -module(tap_ofsh). -include_lib("ofs_handler/include/ofs_handler.hrl"). -...
587c820954989cc06fe9f498324513e2857e27c4b3d4551efa8fd175689f33bd
TheLortex/protocaml
test.ml
open Eio 3 : Budget Chat Modern messaging software uses too many computing resources , so we 're going back to basics . Budget Chat is a simple TCP - based chat room protocol . Each message is a single line of ASCII text terminated by a newline character ( ' \n ' , or ASCII 10 ) . Clients can send multiple me...
null
https://raw.githubusercontent.com/TheLortex/protocaml/735ca7818d3d75959b14a264e93bfc24f4d94e8b/3/test.ml
ocaml
Abstract names with an enforced policy state for the chat room create a new chat room register a new user and obtain a handle check if the corresponding user has messages. blocks if it doesn't write a message to user users remove user from the room for each user, we ask who they are, then the name is regi...
open Eio 3 : Budget Chat Modern messaging software uses too many computing resources , so we 're going back to basics . Budget Chat is a simple TCP - based chat room protocol . Each message is a single line of ASCII text terminated by a newline character ( ' \n ' , or ASCII 10 ) . Clients can send multiple me...
d89c5bb720d630de1f2c73111121c8524accaad15eb48d5f3be86803aa79b89d
project-oak/hafnium-verification
InferAnalyze.mli
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * 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) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/backend/InferAnalyze.mli
ocaml
* Main module for the analysis after the capture phase
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * 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) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
1a02a79353d1cf653ba2af90e2be39ad708fc4257c1de094a029c9dd401a0bd7
raml-org/api-modeling-framework
openapi.cljc
(ns api-modeling-framework.parser.document.openapi (:require [clojure.string :as string] [api-modeling-framework.model.vocabulary :as v] [api-modeling-framework.model.syntax :as syntax] [api-modeling-framework.model.document :as document] [api-modeling-framework.model.d...
null
https://raw.githubusercontent.com/raml-org/api-modeling-framework/34bb3b6c3e3f91b775e27f8e389e04eb2c36beb7/src/api_modeling_framework/parser/document/openapi.cljc
clojure
just tags here, the libraries have been processed just above only use of this is that when we parse the encoded element, we will not generate an annotation for this library annotation, but the parser will already find it in the map of annotations Only doc-annotations are stored in the model. we parse traits and ...
(ns api-modeling-framework.parser.document.openapi (:require [clojure.string :as string] [api-modeling-framework.model.vocabulary :as v] [api-modeling-framework.model.syntax :as syntax] [api-modeling-framework.model.document :as document] [api-modeling-framework.model.d...
21b3e292148510bcc35fdef8e5a6366e651ad16420773a17476d675c37ecb8f4
typelead/eta
tc086.hs
From : < > Date : Sat , 31 May 1997 ( BST ) panic ! ( the ` impossible ' happened ): tcLookupTyVar : a_r6F Please report it as a compiler bug to . If the instance definition for ( * ) at the end of this toy module is replaced by the definition that is commented , this all c...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/tc086.hs
haskell
class (Group a) => Ring a where (*) :: a -> a -> a (*) a b = EQ -> b _ -> b + ((*) (a - one) b)
From : < > Date : Sat , 31 May 1997 ( BST ) panic ! ( the ` impossible ' happened ): tcLookupTyVar : a_r6F Please report it as a compiler bug to . If the instance definition for ( * ) at the end of this toy module is replaced by the definition that is commented , this all c...
76ecbcf4092ad8e7b49c8221345138a537abca86e37a3ceb5eeaabde08a6cc22
janestreet/vcaml
color.ml
open Core module True_color = struct type t = { red : char ; green : char ; blue : char } let to_string { red; green; blue } = sprintf "#%02x%02x%02x" (Char.to_int red) (Char.to_int green) (Char.to_int blue) ;; let sexp_of_t t = Sexp.of_string (to_string t) let of_24bit_int x = mat...
null
https://raw.githubusercontent.com/janestreet/vcaml/60e2e8216d0b5cfe80b6e5c397ca790d01e576f9/src/color.ml
ocaml
open Core module True_color = struct type t = { red : char ; green : char ; blue : char } let to_string { red; green; blue } = sprintf "#%02x%02x%02x" (Char.to_int red) (Char.to_int green) (Char.to_int blue) ;; let sexp_of_t t = Sexp.of_string (to_string t) let of_24bit_int x = mat...
9374e6316fc35a86b0132fda5319cb009960b5f9cce241fefabb50f049c320d3
DHSProgram/DHS-Indicators-SPSS
!FPmain.sps
* Encoding: windows-1252. * Encoding: . ******************************************************************************************************************************* Program: FPmaster.sps Purpose: Master file for the Family Planning Chapter The master file will call other do files that will produce the ...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap07_FP/!FPmain.sps
scheme
* Encoding: windows-1252. * Encoding: . ******************************************************************************************************************************* Program: FPmaster.sps Purpose: Master file for the Family Planning Chapter The master file will call other do files that will produce the ...
2c75984ff52281cdbcd1207e2e00e540116591936786538061b5efae88d3e734
jrm-code-project/LISP-Machine
lmmac.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; ; : ZL -*- These are the macros in the Lisp Machine system . * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * (DEFUN MACRO-TYPE-CHECK-WARNING (MACRO OBJECT) (declare (dbg:error-reporter)) "Detect attempts by macros to check type at c...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/sys2/lmmac.lisp
lisp
Package : SYSTEM - INTERNALS ; ; : ZL -*- use select-processor These are evaluated at read time and compared with CASE instead of SELECT to avoid losing in the cold load. Problem is, the setqs for lambda-type-code, etc, are on the LISP-CRASH-LIST which doesn't get evaluated soon enough. dont generate warnings for...
These are the macros in the Lisp Machine system . * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * (DEFUN MACRO-TYPE-CHECK-WARNING (MACRO OBJECT) (declare (dbg:error-reporter)) "Detect attempts by macros to check type at compile time of an eval-at-load-time. A macro should call this fu...
5aff1d1e0d70d45218b5b5b5ec4ccd2644b2c5ce73124e36860c6bfc0e0809c9
luminus-framework/examples
figwheel.clj
(ns multi-client-ws-immutant.figwheel (:require [figwheel-sidecar.repl-api :as ra])) (defn start-fw [] (ra/start-figwheel!)) (defn stop-fw [] (ra/stop-figwheel!)) (defn cljs [] (ra/cljs-repl))
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-immutant/env/dev/clj/multi_client_ws_immutant/figwheel.clj
clojure
(ns multi-client-ws-immutant.figwheel (:require [figwheel-sidecar.repl-api :as ra])) (defn start-fw [] (ra/start-figwheel!)) (defn stop-fw [] (ra/stop-figwheel!)) (defn cljs [] (ra/cljs-repl))
eaa5e87de2a64eff6531719d0a52c033418ec6366601a62ce95d4f7f9677064d
snowleopard/alga
Typed.hs
----------------------------------------------------------------------------- -- | -- Module : Data.Graph.Typed Copyright : ( c ) , 2016 - 2022 License : MIT ( see the file LICENSE ) -- Maintainer : , -- Stability : unstable -- -- __Alga__ is a library for algebraic construction and manipulation of ...
null
https://raw.githubusercontent.com/snowleopard/alga/32b1dbe8b76aea6b042b1ec4508d67564700186f/src/Data/Graph/Typed.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Graph.Typed Maintainer : , Stability : unstable __Alga__ is a library for algebraic construction and manipulation of graphs motivation behind the library, the underlying theory, and implementation details. This mo...
Copyright : ( c ) , 2016 - 2022 License : MIT ( see the file LICENSE ) in Haskell . See < -paper this paper > for the the " Data . Graph " module of the containers library . It is for internal use only module Data.Graph.Typed ( GraphKL(..), fromAdjacencyMap, fromAdjacencyIntMap, dfsForest, df...
39b128f60444bbde7f9a97957577191cb7ad512390a64945d0ff696ed0d7fb32
binsec/binsec
dwarf_expr.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/dwarf/dwarf_expr.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
a164eb7c52c27d6e94272c467c1c5783442acd5114fa267da2fde24adf2286a9
acl2/acl2
proof-function-lemmas@useless-runes.lsp
(RP::EVAL-AND-ALL-APPEND (1160 29 (:DEFINITION RP::RP-TRANS)) (548 365 (:REWRITE DEFAULT-CAR)) (522 29 (:DEFINITION RP::TRANS-LIST)) (519 377 (:REWRITE DEFAULT-CDR)) (377 29 (:REWRITE RP::RP-TRANS-IS-TERM-WHEN-LIST-IS-ABSENT)) (290 29 (:DEFINITION RP::INCLUDE-FNC)) (261 261 (:TYPE-PRESCRIPTION RP::RP-TRANS-LST))...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/projects/rp-rewriter/proofs/.sys/proof-function-lemmas%40useless-runes.lsp
lisp
(RP::EVAL-AND-ALL-APPEND (1160 29 (:DEFINITION RP::RP-TRANS)) (548 365 (:REWRITE DEFAULT-CAR)) (522 29 (:DEFINITION RP::TRANS-LIST)) (519 377 (:REWRITE DEFAULT-CDR)) (377 29 (:REWRITE RP::RP-TRANS-IS-TERM-WHEN-LIST-IS-ABSENT)) (290 29 (:DEFINITION RP::INCLUDE-FNC)) (261 261 (:TYPE-PRESCRIPTION RP::RP-TRANS-LST))...
6914ceb38d12797fd1709012bf6ce7ece1a8b4787ff9519994df0cbfb62cd172
nickzuber/infrared
check_command.ml
open InfraredParser open InfraredCompiler open InfraredUtils open Ast @TODO : Once we start working on the checker , this type will become useful . * @NOTE : I do n't think we need to encode type " errors " in the typing routine . * Like a type contradiction is n't something we have a type for in our AST . ...
null
https://raw.githubusercontent.com/nickzuber/infrared/4cf06dc9573dbb32a81b121c6254db68daa23ead/Infrared/commands/check_command.ml
ocaml
open InfraredParser open InfraredCompiler open InfraredUtils open Ast @TODO : Once we start working on the checker , this type will become useful . * @NOTE : I do n't think we need to encode type " errors " in the typing routine . * Like a type contradiction is n't something we have a type for in our AST . ...
6c07cc406f284f048e97ebc702b5e5e2ad8574876b790da6caf99df267f73e66
tatut/clj-chrome-devtools
media.clj
(ns clj-chrome-devtools.commands.media "This domain allows detailed inspection of media elements" (:require [clojure.spec.alpha :as s] [clj-chrome-devtools.impl.command :as cmd] [clj-chrome-devtools.impl.connection :as c])) (s/def ::player-id string?) (s/def ::timestamp number?) (s/de...
null
https://raw.githubusercontent.com/tatut/clj-chrome-devtools/48a77f8cd64dae88acc271b46c48a647e41a7580/src/clj_chrome_devtools/commands/media.clj
clojure
(ns clj-chrome-devtools.commands.media "This domain allows detailed inspection of media elements" (:require [clojure.spec.alpha :as s] [clj-chrome-devtools.impl.command :as cmd] [clj-chrome-devtools.impl.connection :as c])) (s/def ::player-id string?) (s/def ::timestamp number?) (s/de...
73e2fde9cfb1d63538d7acf30a72e5bdc97a5edab00122d588ae9f4e4cc267c0
shirok/Gauche
compiler-performance.scm
;; ;; To measure compiler performance. ;; Load as many non-precompiled library as possible. ;; (use binary.ftype) (use binary.pack) (use control.cseq) (use control.future) (use control.pmap) (use control.scheduler) (use data.cache) (use data.heap) (use data.imap) (use data.priority-map) (use data.random) (use data.ran...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/test/compiler-performance.scm
scheme
To measure compiler performance. Load as many non-precompiled library as possible. (use srfi.209) (use text.segmented-match)
(use binary.ftype) (use binary.pack) (use control.cseq) (use control.future) (use control.pmap) (use control.scheduler) (use data.cache) (use data.heap) (use data.imap) (use data.priority-map) (use data.random) (use data.range) (use data.skew-list) (use data.ulid) (use dbm) (use dbm.fsdbm) (use file.filter) (use gauch...
269bb5fd9fa98e9d67e9a95084a8e055c3d9c9ac8c4bbb1411b587a5c742c996
avsm/mirage-duniverse
protocol_9p_request.ml
* Copyright ( C ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/protocol-9p/lib/protocol_9p_request.ml
ocaml
We assume the int32 length field has already been read
* Copyright ( C ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
cc8a60c8b75e9503201e1ca7c7ac447153e1980569370343737734258cede065
jafingerhut/clojure-benchmarks
knucleotide.clj-14-web-site.clj
The Computer Language Benchmarks Game ;; / contributed by (ns knucleotide (:gen-class)) (set! *warn-on-reflection* true) (definterface ITallyCounter (^int get_count []) (inc_BANG_ [])) (deftype TallyCounter [^{:unsynchronized-mutable true :tag int} cnt] ITallyCounter (get-count [this] cnt) ...
null
https://raw.githubusercontent.com/jafingerhut/clojure-benchmarks/474a8a4823727dd371f1baa9809517f9e0b508d4/knucleotide/knucleotide.clj-14-web-site.clj
clojure
/ parallelism as specified by the parameter num-threads. Uses my-lazy-map instead of map from core.clj, since that version of map can use unwanted additional parallelism for chunked collections, like ranges. Return true when the line l is a FASTA description line Return true when the line l is a FASTA descrip...
The Computer Language Benchmarks Game contributed by (ns knucleotide (:gen-class)) (set! *warn-on-reflection* true) (definterface ITallyCounter (^int get_count []) (inc_BANG_ [])) (deftype TallyCounter [^{:unsynchronized-mutable true :tag int} cnt] ITallyCounter (get-count [this] cnt) (inc! [...
6eea3f09ebf127fea04c7151ed3d4da60de947a84e83f89e88dc776dfce4efbd
SparkFund/spec-tacular
query_test.clj
(ns spark.spec-tacular.datomic.query-test "tests sd/q and sd/query" (:refer-clojure :exclude [assoc!]) (:require [clojure.test :refer :all] [datomic.api :as d] [spark.spec-tacular :refer [refless= recursive-ctor]] [spark.spec-tacular.datomic :refer :all :exclude [db]] ...
null
https://raw.githubusercontent.com/SparkFund/spec-tacular/2ddeaa0a33593a5e71f377368ded4701fa223e20/test/spark/spec_tacular/datomic/query_test.clj
clojure
lol printing it out draws an early error
(ns spark.spec-tacular.datomic.query-test "tests sd/q and sd/query" (:refer-clojure :exclude [assoc!]) (:require [clojure.test :refer :all] [datomic.api :as d] [spark.spec-tacular :refer [refless= recursive-ctor]] [spark.spec-tacular.datomic :refer :all :exclude [db]] ...
18d185bf9a6e24596bfe56a88bf20f87f16acd1b0e6e84bbbb5f131bc63e6979
mbj/stratosphere
CustomResponseProperty.hs
module Stratosphere.WAFv2.WebACL.CustomResponseProperty ( module Exports, CustomResponseProperty(..), mkCustomResponseProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.Cus...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/CustomResponseProperty.hs
haskell
# SOURCE #
module Stratosphere.WAFv2.WebACL.CustomResponseProperty ( module Exports, CustomResponseProperty(..), mkCustomResponseProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Strat...
999bed1bc8f22dd3beadbb262fb062c9c02da86dc3a78a5eb1459e2c3f2fa0a3
dmitryvk/sbcl-win32-threads
cell.lisp
;;;; various primitive memory access VOPs for the x86 VM This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in th...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/x86/cell.lisp
lisp
various primitive memory access VOPs for the x86 VM more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. data object ref/set stuff symbol hacking VOPs This code has to pathological cases: NO-TL...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") (define-vop (slot) (:args (object :scs (descriptor-reg))) (:info name offset lowtag) (:ignore n...
66a2847d239135f686245b85b83f5ab4717cca604257ce8cc5df1762b213b0de
manuel-serrano/bigloo
s2cfun.scm
;;;--------------------------------------------------------------------*/ geffroy / Match3.0 / s2cfun.scm ... * / ;;; */ Author : * / Creation : We d Mar 10 ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Match/s2cfun.scm
scheme
--------------------------------------------------------------------*/ */ */ Some non-standard utilities... */ ------------------------------------...
geffroy / Match3.0 / s2cfun.scm ... * / Author : * / Creation : We d Mar 10 14:48:39 1993 * / Last change : Mon May 3 17:50:00 1993 ( geffroy ) * / (module __match_s2cfun ...
a43033fa491094407a22d180460dac0e4518e069525d48f63a0ac97d7a6ed27e
static-analysis-engineering/codehawk
jCHPoly.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHPoly.ml
ocaml
chutil jchlib jchpre jchsys jchpoly No projections, just removes the columns map is a list of (old_col, new_col) and the result switches the columns * old_index with new_index set the constant remove last n variable columns. constant column var = var + const Add (coeff of var) * (-const) to the...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
899f97268ae9821b0ce2aec21da0da7a0cf9c77ab955a50835fef55fe4e3bf4c
census-instrumentation/opencensus-erlang
oc_tags_SUITE.erl
%%% --------------------------------------------------------------------------- %%% @doc %%% @end %%% --------------------------------------------------------------------------- -module(oc_tags_SUITE). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). all() ->...
null
https://raw.githubusercontent.com/census-instrumentation/opencensus-erlang/7fb276ff73d677c00458922c9180df634f45e018/test/oc_tags_SUITE.erl
erlang
--------------------------------------------------------------------------- @doc @end ---------------------------------------------------------------------------
-module(oc_tags_SUITE). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). all() -> [ basic, ctx, encode_decode, encode_decode_headers, invalid_tags ]. encode_decode(_Config) -> Empty = #{}, {ok, EmptyIOList} = oc_tag_c...
c7b8c30e610584e983f84242da25dc7bcb36c63bfe556c8f540a09ab46426d77
Mon-Ouie/blocky
rgb.lisp
rgb.lisp --- X11 color data for BLOCKY ;; This file has been reformatted from its original version so as to be directly readable by , and is under the MIT ;; License. The license and original copyright notice are reprinted ;; below. ;; Copyright (C) 1994 X Consortium ;; Permission is hereby granted, free of ch...
null
https://raw.githubusercontent.com/Mon-Ouie/blocky/ebc4f4309a15603fb1ef3153050748c17a44e300/rgb.lisp
lisp
This file has been reformatted from its original version so as to License. The license and original copyright notice are reprinted below. Copyright (C) 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, includi...
rgb.lisp --- X11 color data for BLOCKY be directly readable by , and is under the MIT files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED ...
bb23573a8864cf9b6fa8236c2cd7edab65862314fbe7f9debfdc742296354486
ska80/thinlisp
tl-prim.lisp
(in-package "TL") ;;;; Module TL-PRIM Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1996 Gensym Corporation . ;;; All rights reserved. This file is part of ThinLisp . ThinLisp is open source ; you can redistribute it and/or modify it under the terms of the ThinLisp License as published by...
null
https://raw.githubusercontent.com/ska80/thinlisp/173573a723256d901887f1cbc26d5403025879ca/tl/lisp/tl-prim.lisp
lisp
Module TL-PRIM All rights reserved. you can redistribute it and/or modify it either version 1 or ( at your option ) any later version . WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. the TLI built-in looping special forms are available. Systems T...
(in-package "TL") Copyright ( c ) 1999 - 2001 The ThinLisp Group Copyright ( c ) 1996 Gensym Corporation . This file is part of ThinLisp . under the terms of the ThinLisp License as published by the ThinLisp ThinLisp is distributed in the hope that it will be useful , but For additional information se...
6220068af77d0fa6c1e468221d48a487445494e754f1552916212ce7c5481133
BinaryAnalysisPlatform/bap
regular_data_read.mli
open Core_kernel[@@warning "-D"] open Regular_data_types type 'a t type bytes = Regular_bytes.t (** A minimal complete definition is any method except [from_channel]. If a class is defined only with [from_bigstring] or [from_bytes] then [from_channel] function will consume all input and pass it to th...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/regular/regular_data_read.mli
ocaml
* A minimal complete definition is any method except [from_channel]. If a class is defined only with [from_bigstring] or [from_bytes] then [from_channel] function will consume all input and pass it to the correspondings function.
open Core_kernel[@@warning "-D"] open Regular_data_types type 'a t type bytes = Regular_bytes.t val create : ?of_channel : (In_channel.t -> 'a) -> ?of_lexbuf : (lexbuf -> 'a) -> ?of_scanbuf : (scanbuf -> 'a) -> ?of_bigstring : (bigstring -> 'a) -> ?of_bytes : (bytes -> 'a) -> unit -> ...
d90b981ad4c125b204d36987cbef5cf0ff4bd31f9594ea64d0bc37e40a4449eb
paurkedal/ocaml-prime
prime_cache.mli
Copyright ( C ) 2014 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-prime/14d27f45bed83a323a07de32cfd9d3327fe33643/lib/prime_cache.mli
ocaml
* Memory cache based on hash tables ({e prime.unstable}). * [create ~cache_metric n] creates a cache initially scaled for about [n] entries. @param cache_metric The heuristics for when to retain a cache entry. * [clear ct] removes all cached entries from [ct]. * [app ck k] is the cached mapping of [k] if any...
Copyright ( C ) 2014 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
9dfdecc56f8d919d1b3ad7ffcb68104565eaf5f60d9323f53a63ac74d2f92103
xu-hao/QueryArrow
Gen.hs
module QueryArrow.Gen where configFilePath :: String configFilePath = "../QueryArrow-gen/tdb-plugin-gen-config.yaml"
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-gen/src/QueryArrow/Gen.hs
haskell
module QueryArrow.Gen where configFilePath :: String configFilePath = "../QueryArrow-gen/tdb-plugin-gen-config.yaml"
84ed8f2487a6685198ac8924a9ea5dfc7c83b4e2926b3423bc20e65dd0e4056d
may-liu/qtalk
ejabberd_riak.erl
%%%------------------------------------------------------------------- @author < > %%% @doc Interface for Riak database %%% @end Created : 29 Dec 2011 by < > ( C ) 2002 - 2014 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under the terms of the GNU Genera...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/ejabberd_riak.erl
erlang
------------------------------------------------------------------- @doc @end This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty ...
@author < > Interface for Riak database Created : 29 Dec 2011 by < > ( C ) 2002 - 2014 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License ...
9f47151ce7362722413c881598470ca52a7c1b1c70be77467539d957f0a3eb11
robert-strandh/SICL
boot.lisp
(cl:in-package #:sicl-boot-trucler) (defclass client (sicl-boot:client) ()) (defun boot (boot) (with-accessors ((e5 sicl-boot:e5)) boot (let* ((client (make-instance 'client)) (sicl-client:*client* client)) (with-temporary-function-imports client e5 '(format) (ensure-asd...
null
https://raw.githubusercontent.com/robert-strandh/SICL/07e5b9fbbaf71d150e9e6c04b581097190deb6de/Code/Boot/Trucler/boot.lisp
lisp
(cl:in-package #:sicl-boot-trucler) (defclass client (sicl-boot:client) ()) (defun boot (boot) (with-accessors ((e5 sicl-boot:e5)) boot (let* ((client (make-instance 'client)) (sicl-client:*client* client)) (with-temporary-function-imports client e5 '(format) (ensure-asd...
c06867e41441da4a580cbca14a4d9e2836255cea4df827af5cf0e15d8938f5e5
satos---jp/mincaml_self_hosting
lettuple2dest.ml
open Syntax open Knorm open Type open Genint ・関数の引数のTupleを分解する ・LetTupleを分解する(これは、縮むならConstFoldに投げる ) この変換は、たぶん、最初の数回だけでよさそう ・関数の引数のTupleを分解する ・LetTupleを分解する(これは、縮むならConstFoldに投げる) この変換は、たぶん、最初の数回だけでよさそう *) let genname () = Printf.sprintf "@let_dest_%d" (genint ()) let type_flatten t = match t with |...
null
https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/src/compiler/lettuple2dest.ml
ocaml
open Syntax open Knorm open Type open Genint ・関数の引数のTupleを分解する ・LetTupleを分解する(これは、縮むならConstFoldに投げる ) この変換は、たぶん、最初の数回だけでよさそう ・関数の引数のTupleを分解する ・LetTupleを分解する(これは、縮むならConstFoldに投げる) この変換は、たぶん、最初の数回だけでよさそう *) let genname () = Printf.sprintf "@let_dest_%d" (genint ()) let type_flatten t = match t with |...
78f1d625d3f576af34a7ba2a983701c32ff9312cfa18aa2bcd60777422d04888
brownplt/lambda-py
stx-util.rkt
#lang racket (provide syntax->datum+stx-hash) Transform a syntax - object ( only S - Expressions handled right now ) into an s - expression , as with syntax - datum , AND hasheq mapping each non - atom item to its original syntax object (define (syntax->datum+stx-hash stx) (local ((define stx-hash (make-hasheq)) ...
null
https://raw.githubusercontent.com/brownplt/lambda-py/c3ee39502c8953d36b886e5a203f2eb51d2f495b/base/parser/stx-util.rkt
racket
The syntax object produced by ragg is a touch odd in structure. Identifiers, AND (ugh) all string literals in grammar productions Non-literal terminals
#lang racket (provide syntax->datum+stx-hash) Transform a syntax - object ( only S - Expressions handled right now ) into an s - expression , as with syntax - datum , AND hasheq mapping each non - atom item to its original syntax object (define (syntax->datum+stx-hash stx) (local ((define stx-hash (make-hasheq)) ...
714c4fe2521a8743b98a4cdb45d38b4e9d4d3ec025582853df851fd1894e7077
janestreet/hardcaml
test_parameter.mli
open! Import val create_instantiation_test : string -> Circuit.t
null
https://raw.githubusercontent.com/janestreet/hardcaml/4126f65f39048fef5853ba9b8d766143f678a9e4/test/lib/test_parameter.mli
ocaml
open! Import val create_instantiation_test : string -> Circuit.t
bd97849c3da0b2a5d3a55065df57d6b51f50cecf755ee564de48f2ceb36f64a7
cbaggers/nineveh
color-space-conversions.lisp
(in-package :nineveh.color) ;;------------------------------------------------------------ ;; ;; Props to -rgb-to-grayscale/ ;; for the clear explanation of the formula and why it's needed ;; ;;------------------------------------------------------------ (defun-g rgb->greyscale ((rgb :vec3)) (+ (* (x rgb) 0.3) ...
null
https://raw.githubusercontent.com/cbaggers/nineveh/0a10a84669cd9d1c584f54b9eab062986a5f1c47/color/color-space-conversions.lisp
lisp
------------------------------------------------------------ Props to -rgb-to-grayscale/ for the clear explanation of the formula and why it's needed ------------------------------------------------------------ ------------------------------------------------------------ for doing all the hard work of bringing th...
(in-package :nineveh.color) (defun-g rgb->greyscale ((rgb :vec3)) (+ (* (x rgb) 0.3) (* (y rgb) 0.59) (* (z rgb) 0.11))) Mad ♥ to of of and of / (defconstant +hcx-epsilon+ 1e-10) (defun-g hue->rgb ((hue :float)) (saturate (v! (- (abs (- (* hue 6) 3)) 1) (- 2 (abs (- (* hue 6)...
afe9918a9df3f338680f3edc5afc5bfd88b628c9aadded4a687b4b1e1cb8f3e2
lspitzner/multistate
Common.hs
# LANGUAGE CPP # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeApplications # # LANGUAGE UndecidableSuperClasses # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # -- | Common definitions for MultiGST.Strict and MultiGST.Lazy module Control.Monad.Trans.MultiGST.Common ( HListM(..) , CanReadWrite(.....
null
https://raw.githubusercontent.com/lspitzner/multistate/5f49eff342443ef719158b00e329c860f2e2f54e/src/Control/Monad/Trans/MultiGST/Common.hs
haskell
# LANGUAGE ConstraintKinds # | Common definitions for MultiGST.Strict and MultiGST.Lazy # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING #
# LANGUAGE CPP # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeApplications # # LANGUAGE UndecidableSuperClasses # # LANGUAGE FlexibleContexts # module Control.Monad.Trans.MultiGST.Common ( HListM(..) , CanReadWrite(..) , CanReadWriteFlag(..) , HListMContainsImplication , HListMContains(..) , ContainsRea...
9fea157398ff029c71c1be6b32100c18ce9d86bd94ba0521741c4d7f35464e73
dyoo/whalesong
required-3.rkt
#lang s-exp "../../lang/base.ss" (require "required-4.rkt") (provide (rename-out (-hypo hypo)) h) (define (-hypo a b) (sqrt (+ (sqr a) (sqr b))))
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/older-tests/moby-programs/required-3.rkt
racket
#lang s-exp "../../lang/base.ss" (require "required-4.rkt") (provide (rename-out (-hypo hypo)) h) (define (-hypo a b) (sqrt (+ (sqr a) (sqr b))))
6f289a2dddd639d24286a120f29f8b502a77afbfea3db0e65b1332cfb24af5e1
d-cent/mooncake
time_translations.cljs
(ns lang.time-translations (:require [cljsjs.moment.locale.fi] [cljsjs.moment.locale.en-gb] ;; add a language using the format [cljsjs.moment.locale.{language}] ;; where language is taken from a filename in ))
null
https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/resources/lang/time_translations.cljs
clojure
add a language using the format [cljsjs.moment.locale.{language}] where language is taken from a filename in
(ns lang.time-translations (:require [cljsjs.moment.locale.fi] [cljsjs.moment.locale.en-gb] ))
dd59ff0bd5dad53c9f54fb49f423f0058678e491dd403454ce3464aca56be852
esl/MongooseIM
ct_groups_summary_hook.erl
%% @doc Count successful and failed groups in the test suite. %% %% Use by adding the following line to `test.spec`: %% {ct_hooks, [ct_results_summary_hook]}. -module(ct_groups_summary_hook). %% Callbacks -export([id/1, init/2, pre_init_per_suite/3, post_end_per_suite/4, post_end_pe...
null
https://raw.githubusercontent.com/esl/MongooseIM/8b8c294b1b01dc178eed1b3b28ca0fbbd73f382c/big_tests/src/ct_groups_summary_hook.erl
erlang
@doc Count successful and failed groups in the test suite. Use by adding the following line to `test.spec`: {ct_hooks, [ct_results_summary_hook]}. Callbacks @doc Return a unique id for this CTH. @doc Always called before any other callback function. Use this to initiate any common state. ct:pal("init opts: ~p",...
-module(ct_groups_summary_hook). -export([id/1, init/2, pre_init_per_suite/3, post_end_per_suite/4, post_end_per_group/4, terminate/1]). -include_lib("common_test/include/ct.hrl"). id(_Opts) -> "ct_results_summary_hook_001". init(_Id, _Opts) -> {ok, #{total_ok =>...
92bfe8b09dcf500bd9c72dcf9a2b980b18bcb67f192108df4bc5f551d81b2cf2
squaresLab/SynthLift
synth_types.ml
open Bap.Std module Sketch_db = Synth_sketch_db module Lift_db = Synth_lift_db * A base synthesizer defines a CPU , var_of_reg conversion ( so that synthesizer can convert operands to bil operands ) and filter ops ( so synthesizer can remove annoying operands ) (so that synthesizer can...
null
https://raw.githubusercontent.com/squaresLab/SynthLift/6831b23db539bfacfcf59acb97d6de04522719db/lib/synth_types.ml
ocaml
* A synthesizer that learns val lift : lifter * return all candidates for an instruction, by (#regs,#imms)
open Bap.Std module Sketch_db = Synth_sketch_db module Lift_db = Synth_lift_db * A base synthesizer defines a CPU , var_of_reg conversion ( so that synthesizer can convert operands to bil operands ) and filter ops ( so synthesizer can remove annoying operands ) (so that synthesizer can...
2044429518f8e64120ddb8b9d510ad3efa73a7b494e1199ad137e6e3d8d76741
ahungry/pseudo
centos.lisp
;; Pseudo - A pseudo 3d multiplayer roguelike Copyright ( C ) 2013 ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any l...
null
https://raw.githubusercontent.com/ahungry/pseudo/a3e6329313e334941f211a991e5853bbe6d247f1/centos.lisp
lisp
Pseudo - A pseudo 3d multiplayer roguelike This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PA...
Copyright ( C ) 2013 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License (push #P"/usr/lib/mysql" CLSQL-SYS:*FOREIGN-LIBRARY-SEARCH-PATHS*) (cls...
40b579e7b228f42d336cc82c3c7d9d065efc3b33741100a92c5927d16b95030a
haskell-tools/haskell-tools
ExternalInstanceReOrder.hs
module Refactor.AutoCorrect.ExternalInstanceReOrder where x = f 3 () f :: (Show a, Num b) => a -> b -> () f _ _ = () a :: Integer a = 3
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/AutoCorrect/ExternalInstanceReOrder.hs
haskell
module Refactor.AutoCorrect.ExternalInstanceReOrder where x = f 3 () f :: (Show a, Num b) => a -> b -> () f _ _ = () a :: Integer a = 3
b2b9b724cd85fa4e99a3c154a6dade00572f839c06ea23ed3e28fa490b6b2538
haskell-opengl/GLUT
Mipmap.hs
Mipmap.hs ( adapted from mipmap.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates using mipmaps for texture maps . To overtly ...
null
https://raw.githubusercontent.com/haskell-opengl/GLUT/36207fa51e4c1ea1e5512aeaa373198a4a56cad0/examples/RedBook4/Mipmap.hs
haskell
resolve overloading, not needed in "real" programs
Mipmap.hs ( adapted from mipmap.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2018 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates using mipmaps for texture maps . To overtly ...
f171d3c83b42422e5676d79d2465b899f99d8c6f33173444933d3094c0b7f940
8bitgentleman/Roam-Render-Components
namespace-pages-list.cljs
(ns namespace-display-v1 (:require [reagent.core :as r] [datascript.core :as d] [roam.datascript.reactive :as dr] [clojure.string :as string] [roam.util :as u] [clojure.pprint :as pp])) (defn get-pages [namespace] "Gets all pages that start with the namespace" @(dr/q '[:find ?title:name ...
null
https://raw.githubusercontent.com/8bitgentleman/Roam-Render-Components/3bdfaac1d670a5101f9b273e95efd96835314292/Namespace%20Pages%20List/namespace-pages-list.cljs
clojure
(ns namespace-display-v1 (:require [reagent.core :as r] [datascript.core :as d] [roam.datascript.reactive :as dr] [clojure.string :as string] [roam.util :as u] [clojure.pprint :as pp])) (defn get-pages [namespace] "Gets all pages that start with the namespace" @(dr/q '[:find ?title:name ...
ce453604900a93337d0090904e81b8431f006b5eb1fc18020fc22cfbda637460
fragnix/fragnix
Data.Aeson.Types.Class.hs
{-# LANGUAGE Haskell2010 #-} # LINE 1 " Data / Aeson / Types / Class.hs " # # LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE Mu...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/application/Data.Aeson.Types.Class.hs
haskell
# LANGUAGE Haskell2010 # # LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE TypeSynonymInstances # | Module: Data.Aeson.Types.Class Stability: experimental Portability: portable Types for working with JSON data. * Core JSON classes * Generic JSON classes * Classes and types for map keys * Objec...
# LINE 1 " Data / Aeson / Types / Class.hs " # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # Copyright : ( c ) 2011 -...
0816de5830e1b219c9460ec053abf5ec3b346e1081ffef64cc2cec8600f38541
johnswanson/tictag
routes.cljc
(ns tictag.routes) (def app-routes ["/" {"login" :login "signup" :signup "settings" :settings "editor" :editor "logout" :logout "slack-callback" :slack-callback "about" :about "query" :query "" ...
null
https://raw.githubusercontent.com/johnswanson/tictag/89140b5084817690ec417b07b7d095ba7677f4e0/src/cljc/tictag/routes.cljc
clojure
(ns tictag.routes) (def app-routes ["/" {"login" :login "signup" :signup "settings" :settings "editor" :editor "logout" :logout "slack-callback" :slack-callback "about" :about "query" :query "" ...
4a305bf1a22626ab3c41873f1ddd07b4ef6aa45e8937e65ae300dbb579842470
eareese/htdp-exercises
147-nelist-of-booleans.rkt
#lang htdp/bsl Exercise 147 . Develop a data definition for NEList - of - Booleans , a representation of non - empty lists of Boolean values . Then re - design the functions all - true and one - true from exercise 140 . A NEList - of - Booleans is one of : ; - (cons #true '()) ; - (cons #false '()) - ( cons # t...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part02-arbitrarily-large-data/147-nelist-of-booleans.rkt
racket
- (cons #true '()) - (cons #false '()) determines whether all of the list items are true. If there is any #false on the list, the function produces #false. determines whether #true appears at least once in the list.
#lang htdp/bsl Exercise 147 . Develop a data definition for NEList - of - Booleans , a representation of non - empty lists of Boolean values . Then re - design the functions all - true and one - true from exercise 140 . A NEList - of - Booleans is one of : - ( cons # true NEList - of - Booleans ) - ( cons # f...
323d6630b528cf1e521f20fe46fa07e3ed1e2241696c6d9101f17646e5daa1ba
Ericsson/ered
ered_info_msg.erl
-module(ered_info_msg). %% Functions used to format and send info messages -export([connection_status/3, slot_map_updated/3, cluster_slots_error_response/2, cluster_ok/1, cluster_nok/2 ]). -export_type([info_msg/0]). %%%===================================================...
null
https://raw.githubusercontent.com/Ericsson/ered/9119b308b7af4b933a3f29435d3a1677afa72d9d/src/ered_info_msg.erl
erlang
Functions used to format and send info messages =================================================================== Definitions =================================================================== =================================================================== API =================================================...
-module(ered_info_msg). -export([connection_status/3, slot_map_updated/3, cluster_slots_error_response/2, cluster_ok/1, cluster_nok/2 ]). -export_type([info_msg/0]). -type node_info(MsgType, Reason) :: #{msg_type := MsgType, reason := Reason, ...
17343a71147feec4e8bb0a0cb4e45ea7c45bf49be90c70a5a3b9d044cc69cb17
jacekschae/learn-reitit-course-files
project.clj
(defproject cheffy "0.1.0-SNAPSHOT" :description "Cheffy REST API" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.10.1"] [ring "1.8.1"] [integrant "0.8.0"] [environ "1.2.0"] [metosin/reitit "0.5.5"] [s...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/39-ingredient-tests/project.clj
clojure
(defproject cheffy "0.1.0-SNAPSHOT" :description "Cheffy REST API" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.10.1"] [ring "1.8.1"] [integrant "0.8.0"] [environ "1.2.0"] [metosin/reitit "0.5.5"] [s...
0c4c69ff0c8f13eeab7a98fd50d5692c1c9f848171529b2f72f2eaaed24da039
input-output-hk/plutus
PlutusPrelude.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} # LANGUAGE UndecidableInstances # module PlutusPrelude * from base (&) , (&&&) , (<&>) , toList , first ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/00b2fc41080e544e3e93ac6f1274745100e81dd3/plutus-core/prelude/PlutusPrelude.hs
haskell
# LANGUAGE RankNTypes # * Lens * Debugging * Custom functions * Pretty-printing * GHCi * Text | A newtype wrapper around @a@ whose point is to provide a 'Show' instance for anything that has a 'Pretty' instance. | Default pretty-printing for the __spine__ of 'Either' (elements are pretty-printed the...
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE UndecidableInstances # module PlutusPrelude * from base (&) , (&&&) , (<&>) , toList , first , second , on , isNothing ...
af31caaac02abdd09d26deadeaa2c68e024d0501e78ff1487c8ae99e37aca2d9
pokepay/aws-sdk-lisp
config.lisp
(defpackage #:aws-sdk/utils/config (:use #:cl) (:import-from #:aws-sdk/utils #:getenv) (:import-from #:parser.ini #:*include-empty-sections?* #:parse) (:export #:parse-file #:read-from-file #:*aws-profile*)) (in-package #:aws-sdk/utils/config...
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/7d3d0d2050f98d95aa9bed019fde3e78d9de7cb3/utils/config.lisp
lisp
(defpackage #:aws-sdk/utils/config (:use #:cl) (:import-from #:aws-sdk/utils #:getenv) (:import-from #:parser.ini #:*include-empty-sections?* #:parse) (:export #:parse-file #:read-from-file #:*aws-profile*)) (in-package #:aws-sdk/utils/config...
8986928e3b9e578dc73ca2e6ff87781d609c3b9bac035a6c71147f7edf1b95e6
links-lang/links
typeSugar.mli
module Check : sig open Sugartypes val program : Types.typing_environment -> program -> program * Types.datatype * Types.typing_environment val sentence : Types.typing_environment -> sentence -> sentence * Types.datatype * Types.typing_enviro...
null
https://raw.githubusercontent.com/links-lang/links/2923893c80677b67cacc6747a25b5bcd65c4c2b6/core/typeSugar.mli
ocaml
module Check : sig open Sugartypes val program : Types.typing_environment -> program -> program * Types.datatype * Types.typing_environment val sentence : Types.typing_environment -> sentence -> sentence * Types.datatype * Types.typing_enviro...