_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
d6813df901384a4b58eb66cbcda1b7122d66883611484b4d1e2e59f9fe7f6ede
fredlund/McErlang
mce_mon_wrap.erl
Copyright ( c ) 2009 , %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of conditions a...
null
https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/monitors/src/mce_mon_wrap.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: %% Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. %% Redi...
Copyright ( c ) 2009 , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR @author 2006 - 2009 @private -module(mce_mon_wrap). -export([init/1,stateChange/3,monitorType/0]). -behaviour(mce_behav...
0893657198953bf74c914e51f43d9c7ae4ce3a0725df65decab68b5b16482d61
turtl/api
admin.lisp
(in-package :turtl) (defparameter *admin-page* (file-contents (concatenate 'string (namestring *root*) "views/admin.html")) "Holds the admin page.") (route (:get "/admin") (req res) "Get the admin page, populated with our data." ( setf * admin - page * ( file - contents ( concatenate ' string ( namestring * roo...
null
https://raw.githubusercontent.com/turtl/api/20ab4cc91128921300913b885eb1e201a5e0fc3f/controllers/admin.lisp
lisp
(in-package :turtl) (defparameter *admin-page* (file-contents (concatenate 'string (namestring *root*) "views/admin.html")) "Holds the admin page.") (route (:get "/admin") (req res) "Get the admin page, populated with our data." ( setf * admin - page * ( file - contents ( concatenate ' string ( namestring * roo...
63653e0cd84d752e743c2f9794abffd39765db403ac881134c9be245875d5975
tochicool/bitcoin-dca
API.hs
module BitcoinDCA.Explorer.Esplora.API ( module BitcoinDCA.Explorer.Esplora.API.Types, module BitcoinDCA.Explorer.Esplora.API.Client, ) where import BitcoinDCA.Explorer.Esplora.API.Client import BitcoinDCA.Explorer.Esplora.API.Types
null
https://raw.githubusercontent.com/tochicool/bitcoin-dca/642016f54595194127fcbd24ff11e0d7b358b011/src/BitcoinDCA/Explorer/Esplora/API.hs
haskell
module BitcoinDCA.Explorer.Esplora.API ( module BitcoinDCA.Explorer.Esplora.API.Types, module BitcoinDCA.Explorer.Esplora.API.Client, ) where import BitcoinDCA.Explorer.Esplora.API.Client import BitcoinDCA.Explorer.Esplora.API.Types
bf0f6973d4cf539c74573907ba55539f426632b2797fe56a93a757f89bddafa9
ha-mo-we/Racer
tracer-interface.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : TOOLS ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are p...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/tracer-interface.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : TOOLS ; Base : 10 -*- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of c...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
88a15a280bdf18e3b74add0404e936e62dfc19337685108d39a63b7f0748bb28
henry-hz/erlang-trader
oms_sup.erl
-module(oms_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% ==============================================================...
null
https://raw.githubusercontent.com/henry-hz/erlang-trader/5ec6a20902a894e0c29712f199bb6be3fad68a3b/oms/src/oms_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(oms_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> {ok, { {one_for_one, 5, 10}, []} }.
bddc4aa842dc29a7df36f9940628fa6cff2873201abb48c37881a626f4573bef
glguy/advent2019
Day13.hs
{-# Language ImportQualifiedPost #-} | Module : Main Description : Day 13 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > Module : Main Description : Day 13 solution Copyright : (c) Eric Mertens, 2019 License : ISC Maintainer : <> -} module Main (main)...
null
https://raw.githubusercontent.com/glguy/advent2019/13f3be89535c12cbae761a6d4165432a2459ccd5/execs/Day13.hs
haskell
# Language ImportQualifiedPost #
| Module : Main Description : Day 13 solution Copyright : ( c ) , 2019 License : ISC Maintainer : < > Module : Main Description : Day 13 solution Copyright : (c) Eric Mertens, 2019 License : ISC Maintainer : <> -} module Main (main) where import Advent (getIntcodeInpu...
6251990777831869531c6afb04015d1988ff5e3f13cc7864610b521d75b3808a
hpyhacking/openpoker
deal_cards.erl
-module(deal_cards). -behaviour(op_exch_mod). -export([start/2, dispatch/2]). -include("openpoker.hrl"). start([N, Type], Ctx) -> start([N, Type, 0], Ctx); start([0, private, _T], Ctx) -> {stop, Ctx}; start([N, private, T], Ctx = #texas{b = B, seats = S}) -> Seats = seat:lookup(?PS_STANDING, S, B), start([N-1, ...
null
https://raw.githubusercontent.com/hpyhacking/openpoker/643193c94f34096cdcfcd610bdb1f18e7bf1e45e/src/mods/deal_cards.erl
erlang
private
-module(deal_cards). -behaviour(op_exch_mod). -export([start/2, dispatch/2]). -include("openpoker.hrl"). start([N, Type], Ctx) -> start([N, Type, 0], Ctx); start([0, private, _T], Ctx) -> {stop, Ctx}; start([N, private, T], Ctx = #texas{b = B, seats = S}) -> Seats = seat:lookup(?PS_STANDING, S, B), start([N-1, ...
21b273460e5be05c407a3c73ad10431ded85c479e3e73d04fc7a2b57bcd9b018
NorfairKing/smos
Import.hs
module Smos.Web.Server.Handler.Import (module X) where import Data.Text as X (Text) import Data.Time as X import Data.Word as X import Path as X import Smos.Client as X hiding (Fragment, Unique) import Smos.Web.Server.Constants as X import Smos.Web.Server.Foundation as X import Smos.Web.Server.SmosSession as X import ...
null
https://raw.githubusercontent.com/NorfairKing/smos/82707699b446bc431f5233e5dc18c7ec3dd679fd/smos-web-server/src/Smos/Web/Server/Handler/Import.hs
haskell
module Smos.Web.Server.Handler.Import (module X) where import Data.Text as X (Text) import Data.Time as X import Data.Word as X import Path as X import Smos.Client as X hiding (Fragment, Unique) import Smos.Web.Server.Constants as X import Smos.Web.Server.Foundation as X import Smos.Web.Server.SmosSession as X import ...
b03e74f3a86624d1ee918032e3b6a82beb71e56e9e88114a3225b5a346768777
binaryage/chromex
chrome_storage_area.cljs
(ns chromex.protocols.chrome-storage-area (:refer-clojure :exclude [get remove set])) (defprotocol IChromeStorageArea "a wrapper for #type-StorageArea" (get-native-storage-area [this]) (get [this] [this keys]) (get-bytes-in-use [this] [this keys]) (set [this items]) (remove [this keys]) (clear [this]))...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/lib/chromex/protocols/chrome_storage_area.cljs
clojure
(ns chromex.protocols.chrome-storage-area (:refer-clojure :exclude [get remove set])) (defprotocol IChromeStorageArea "a wrapper for #type-StorageArea" (get-native-storage-area [this]) (get [this] [this keys]) (get-bytes-in-use [this] [this keys]) (set [this items]) (remove [this keys]) (clear [this]))...
e287e7450ffc27065b1a35648b3db7fff79163fbaebbc1dd3e3cd329a5dccb5a
luxingwen/emqx_persistence_plugin
emqx_persistence_plugin_sup.erl
%%%------------------------------------------------------------------- %% @doc emqx_persistence_plugin top level supervisor. %% @end %%%------------------------------------------------------------------- -module(emqx_persistence_plugin_sup). -include("emqx_persistence_plugin.hrl"). -define(ECPOOL_WORKER, emqx_persiste...
null
https://raw.githubusercontent.com/luxingwen/emqx_persistence_plugin/5e27679c56578ba2f2f787549910702bcbc31dee/src/emqx_persistence_plugin_sup.erl
erlang
------------------------------------------------------------------- @doc emqx_persistence_plugin top level supervisor. @end -------------------------------------------------------------------
-module(emqx_persistence_plugin_sup). -include("emqx_persistence_plugin.hrl"). -define(ECPOOL_WORKER, emqx_persistence_plugin_cli). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init(_) -> case application:get_env(?A...
f68de6e97cdbdbef761345f2cb42dd3a89152a685a6602854ef11e5b50ab3060
manuel-serrano/bigloo
rgctree.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / / runtime / Rgc / rgctree.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/runtime/Rgc/rgctree.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The construction of the tree from the list representation. */ *===========================...
* serrano / prgm / project / bigloo / / runtime / Rgc / rgctree.scm * / * Author : * / * Creation : We d Sep 9 17:51:46 1998 * / * Last change : Sun Aug 25 09:11:40 2019 ( serrano ) * / (module __r...
26573671aa917b71889e032be5558fdcfb698affcfef83f6005c72cde556155f
hyperfiddle/electric
hfql6.clj
(ns dustin.hfql6 (:require [clojure.walk :refer [walk prewalk postwalk]] [contrib.do :refer [via* Do-via *this !]] [dustin.fiddle :refer :all] [dustin.hf-nav :refer :all] [meander.epsilon :as m :refer [match rewrite]] [minitest :refer [tests]])) ; Simple (def ast '{(submission needle) {:dust...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2020/hfql/hfql6.clj
clojure
Simple not yet a functor apply on the way in reconstruct on the way out rewrite :asdf := ((hf-nav :asdf %)) This is supposed to be a functor? What is the Functor type? recur with scope? Factor out the scope point? Higher order? remove v by put % in scope (let [v (apply-scope !xs scope) scope (merge scop...
(ns dustin.hfql6 (:require [clojure.walk :refer [walk prewalk postwalk]] [contrib.do :refer [via* Do-via *this !]] [dustin.fiddle :refer :all] [dustin.hf-nav :refer :all] [meander.epsilon :as m :refer [match rewrite]] [minitest :refer [tests]])) (def ast '{(submission needle) {:dustingetz/ge...
f4d2ae0f4734390e7c971fc1f8b317e6e4fdc08bd750d45efc1fa8e4992e3d02
nervous-systems/eulalie
instance_data.cljc
(ns eulalie.instance-data (:require #?@(:clj [[clj-time.format :as time.format] [clj-time.coerce :as time.coerce]] :cljs [[cljs-time.format :as time.format] [cljs-time.coerce :as time.coerce]]) [glossop.core :as g ...
null
https://raw.githubusercontent.com/nervous-systems/eulalie/ee435987278f5ed628f576700b716d9d0bc17c61/src/eulalie/instance_data.cljc
clojure
(ns eulalie.instance-data (:require #?@(:clj [[clj-time.format :as time.format] [clj-time.coerce :as time.coerce]] :cljs [[cljs-time.format :as time.format] [cljs-time.coerce :as time.coerce]]) [glossop.core :as g ...
9b35696b90177f6aaac1d70063ab28b795f2e07f4976a3dee909bd451a338266
gvannest/piscine_OCaml
ft_countdown.ml
let rec ft_countdown n = if n <= 0 then begin print_int 0; print_char '\n' end else begin print_int n; print_char '\n'; ft_countdown (n - 1) end let main () = ft_countdown 9; ft_countdown 0; ft_countdown...
null
https://raw.githubusercontent.com/gvannest/piscine_OCaml/2533c6152cfb46c637d48a6d0718f7c7262b3ba6/d00/ex01/ft_countdown.ml
ocaml
let rec ft_countdown n = if n <= 0 then begin print_int 0; print_char '\n' end else begin print_int n; print_char '\n'; ft_countdown (n - 1) end let main () = ft_countdown 9; ft_countdown 0; ft_countdown...
5bed8d64c9ef2cac0250f4d4a5f5e40591e2653e267ddeaf1f5e1067f7cf2a4b
xoken/xoken-core
Util.hs
| Module : Network . . Test . Util Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Module : Network.Xoken.Test.Util Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX -} module Network...
null
https://raw.githubusercontent.com/xoken/xoken-core/34399655febdc8c0940da7983489f0c9d58c35d2/core/src/Network/Xoken/Test/Util.hs
haskell
| Generate a Maybe from a Gen a
| Module : Network . . Test . Util Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Module : Network.Xoken.Test.Util Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX -} module Network...
86acfcf2d630a0dfd7db087d20fc2b66e689758d6c921915778a280e279b30c6
sellout/Kilns
syntax.lisp
(in-package #:kilns) (defvar *paired-chars* '((#\( . #\)) (#\[ . #\]) (#\{ . #\}))) (defvar *kilns-readtable* (copy-readtable)) (setf (readtable-case *kilns-readtable*) :invert) (defvar *reading-name-p* nil "Indicates whether we are currently reading a message name, and therefore should treat ?x as a ...
null
https://raw.githubusercontent.com/sellout/Kilns/467ba599f457812daea41a7c56f74a1ec1cdc9b2/src/syntax.lisp
lisp
FIXME: this is broken. Use in read-process once it works P ::= 0 | x | ξ␣P | νa.P | a␣P␣.P | P|P | a[P].P a∈N, x∈V Names and Variables We assume an infinite set N of names, and an infinite set V of process variables. We assume that N ∩ V = ∅. We let a, b, n, m and their decorated and p , q , x , y range over V....
(in-package #:kilns) (defvar *paired-chars* '((#\( . #\)) (#\[ . #\]) (#\{ . #\}))) (defvar *kilns-readtable* (copy-readtable)) (setf (readtable-case *kilns-readtable*) :invert) (defvar *reading-name-p* nil "Indicates whether we are currently reading a message name, and therefore should treat ?x as a ...
6a0e7a47a640021bb898355bf4a795043af60f057359de5a71ea8ec9e03cc838
bobbae/gosling-emacs
rmail.ml
; $Header: RCS/rmail.ml,v 1.5 83/05/18 13:41:16 thomas Exp $ (message "Loading the mail system, please wait...") (setq-default rmail-pathalias 0) (setq-default mail-headers-to-ignore "received|origin|via|message-id|status|remailed-to|remailed-date") (setq-default &mail-headers-to-ignore "") (sit-for 0) ; Unix Emacs...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/std/rmail.ml
ocaml
; $Header: RCS/rmail.ml,v 1.5 83/05/18 13:41:16 thomas Exp $ (message "Loading the mail system, please wait...") (setq-default rmail-pathalias 0) (setq-default mail-headers-to-ignore "received|origin|via|message-id|status|remailed-to|remailed-date") (setq-default &mail-headers-to-ignore "") (sit-for 0) ; Unix Emacs...
0b02c4f21c82410b96f2dfd14ce3313856c28fdad4beb708f95504ac5bd78b8b
RDTK/generator
package.lisp
;;;; package.lisp --- Package definition for the resources module. ;;;; Copyright ( C ) 2019 Jan Moringen ;;;; Author : < > (cl:defpackage #:build-generator.resources (:use #:cl #:alexandria #:more-conditions) ;; Conditions (:export #:entry-does-not-exist-error #:name #:group #:grou...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/resources/package.lisp
lisp
package.lisp --- Package definition for the resources module. Conditions Name protocol Size protocol Entry protocol Group protocol Resources protocol Global resource group registry
Copyright ( C ) 2019 Jan Moringen Author : < > (cl:defpackage #:build-generator.resources (:use #:cl #:alexandria #:more-conditions) (:export #:entry-does-not-exist-error #:name #:group #:group-does-not-exist-error #:name #:resources) (:export #:name) (:export #:octe...
756e6780aa566486c8d5cc934fb81a25900c7c43c9ee32803e1a679a3e62b033
finnishtransportagency/harja
kokonaishintaiset.cljs
(ns harja.tiedot.vesivaylat.urakka.toimenpiteet.kokonaishintaiset (:require [reagent.core :refer [atom]] [tuck.core :as tuck] [harja.loki :refer [log error]] [harja.domain.vesivaylat.toimenpide :as to] [harja.domain.vesivaylat.vayla :as va] [harja.domain.ves...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/488b1e096f0611e175221d74ba4f2ffed6bea8f1/src/cljs/harja/tiedot/vesivaylat/urakka/toimenpiteet/kokonaishintaiset.cljs
clojure
tunniste -> boolean
(ns harja.tiedot.vesivaylat.urakka.toimenpiteet.kokonaishintaiset (:require [reagent.core :refer [atom]] [tuck.core :as tuck] [harja.loki :refer [log error]] [harja.domain.vesivaylat.toimenpide :as to] [harja.domain.vesivaylat.vayla :as va] [harja.domain.ves...
394fc266d425c32211f8073c9f3a42dab5ed1ae31429c70fe950ac076cbbb2cc
marick/fp-oo
ts_primes.clj
(ns solutions.ts-primes (:use midje.sweet)) (load-file "solutions/primes.clj") Exercise 1 (fact (multiples 2) => [4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100] (multiples 3) => [6 9 12 15 18 21 24 27 3...
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/test/solutions/ts_primes.clj
clojure
(ns solutions.ts-primes (:use midje.sweet)) (load-file "solutions/primes.clj") Exercise 1 (fact (multiples 2) => [4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100] (multiples 3) => [6 9 12 15 18 21 24 27 3...
8a20667b88b2876cece748444a92bef172b4c7a9f76919c6d1928e991c9f0ffc
input-output-hk/ouroboros-network
ChainSel.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE EmptyCase #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # -- | ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/0aff5cf05f09bb56d4ac40f0090c636d5893dfb2/ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Protocol/ChainSel.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # | Infrastructure for doing chain selection across eras ------------------------------------------------------------------------------ Configuration ----------------------------------------------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Ouroboros.Consensus.HardFork.Combinator.Protocol.ChainSel ( AcrossEraSelection (..) , WithBlockNo (..) ...
c32a061316be73e67747a57a29b68fb80f69e5ef5d2ecd6240d33de6bb1be74d
kendroe/CoqRewriter
lex.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * REWRITELIB * * lex.mli * ...
null
https://raw.githubusercontent.com/kendroe/CoqRewriter/ddf5dc2ea51105d5a2dc87c99f0d364cf2b8ebf5/plugin/src/lex.mli
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * REWRITELIB * * lex.mli * ...
17528f6ee63d36d9c0d5b9608c0e5c48e6d9b9c871b089a1ac83b3be824699ba
JHU-PL-Lab/jaylang
uid.mli
open Batteries;; (** The abstract type of UIDs in the system. *) type uid * A function which returns a fresh UID . val next_uid : unit -> uid (** A function to compare UIDs. *) val compare_uid : uid -> uid -> int (** A function to check UIDs for equality. *) val equal_uid : uid -> uid -> bool (** A pretty-printer ...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/ddpa-utils/uid.mli
ocaml
* The abstract type of UIDs in the system. * A function to compare UIDs. * A function to check UIDs for equality. * A pretty-printer for UIDs. * An ordering module for UIDs. * A dictionary data structure for UIDs.
open Batteries;; type uid * A function which returns a fresh UID . val next_uid : unit -> uid val compare_uid : uid -> uid -> int val equal_uid : uid -> uid -> bool val pp_uid : Format.formatter -> uid -> unit * A function to convert a UID to a string . val show_uid : uid -> string module Uid_ord : Interfaces.Or...
6820c4062128e4fea1119303c54728b876779c82cf04c995a8cfe52fb44e4b18
footprintanalytics/footprint-web
add_implicit_clauses.clj
(ns metabase.query-processor.middleware.add-implicit-clauses "Middlware for adding an implicit `:fields` and `:order-by` clauses to certain queries." (:require [clojure.tools.logging :as log] [clojure.walk :as walk] [metabase.mbql.schema :as mbql.s] [metabase.mbql.util :as mbql.u...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor/middleware/add_implicit_clauses.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | Add Implicit Fields | +--------------------------------------------------------------------------------------...
(ns metabase.query-processor.middleware.add-implicit-clauses "Middlware for adding an implicit `:fields` and `:order-by` clauses to certain queries." (:require [clojure.tools.logging :as log] [clojure.walk :as walk] [metabase.mbql.schema :as mbql.s] [metabase.mbql.util :as mbql.u...
390573b020caf479b163c60ce52d7b69154127ce82b5d28830f022db5caf6edc
rabbitmq/rabbitmq-mqtt
rabbit_mqtt_sup.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mqtt_sup). -behaviour(supervisor2)...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-mqtt/817971bfec4461630a2ef7e27d4fa9f4c4fb8ff9/src/rabbit_mqtt_sup.erl
erlang
Implementation
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mqtt_sup). -behaviour(supervisor2). -in...
7d64441bdf573a1848b636e31f5fb827e6fa557c5259a346773a458076c77137
arielnetworks/cl-markup
readmacro.lisp
(in-package :cl-markup) (defun markup-reader (stream char arg) (declare (ignore char arg)) `(markup ,(read stream t nil t))) (defun %enable-markup-syntax () (setf *readtable* (copy-readtable)) (set-dispatch-macro-character #\# #\M #'markup-reader)) (defmacro enable-markup-syntax () '(eval-when (:compile-to...
null
https://raw.githubusercontent.com/arielnetworks/cl-markup/e0eb7debf4bdff98d1f49d0f811321a6a637b390/src/readmacro.lisp
lisp
(in-package :cl-markup) (defun markup-reader (stream char arg) (declare (ignore char arg)) `(markup ,(read stream t nil t))) (defun %enable-markup-syntax () (setf *readtable* (copy-readtable)) (set-dispatch-macro-character #\# #\M #'markup-reader)) (defmacro enable-markup-syntax () '(eval-when (:compile-to...
ba29bd129734860e775de93acb8c98befaf0361fe09f1b7345828a782d5ba910
thheller/shadow
api.cljs
(ns shadow.api (:require-macros [shadow.api :as m]) (:require [cljs.reader :as reader] [shadow.dom :as dom] [clojure.string :as str] [shadow.util :as util :refer (log)])) (def ready-ref (atom {})) (def load-order-ref (atom [])) (defn script->dom-el [script] (when-let [do...
null
https://raw.githubusercontent.com/thheller/shadow/beab6586a9782ceb3e2a4bfa2935fb8756e13d2c/src/main/shadow/api.cljs
clojure
and since a dom reference point is provided it makes it more use setTimeout so the blocking load of a script don't run things twice, not live-reload friendly
(ns shadow.api (:require-macros [shadow.api :as m]) (:require [cljs.reader :as reader] [shadow.dom :as dom] [clojure.string :as str] [shadow.util :as util :refer (log)])) (def ready-ref (atom {})) (def load-order-ref (atom [])) (defn script->dom-el [script] (when-let [do...
088d9f4df58cbbff88b052cd4f28251d8fb90840d7fc130cec2a183b5e18ed44
haskelling/aoc2020
11a.hs
import AOC main = interact f f = count '#' . concat . mapnbsC nbs8 g where g x ns = case x of 'L' -> if count '#' ns == 0 then '#' else 'L' '#' -> if count '#' ns >= 4 then 'L' else '#' x -> x
null
https://raw.githubusercontent.com/haskelling/aoc2020/0f0e44ad16d3eda4add1f05684070dd161010d75/11a.hs
haskell
import AOC main = interact f f = count '#' . concat . mapnbsC nbs8 g where g x ns = case x of 'L' -> if count '#' ns == 0 then '#' else 'L' '#' -> if count '#' ns >= 4 then 'L' else '#' x -> x
6968b0bd75fc03c4d99bd95e1f57db71b48471e2827c14aaf4d86731de3bdafe
OCamlPro/ocplib-endian
le_ocaml_401.ml
let get_uint16 s off = if Sys.big_endian then swap16 (get_16 s off) else get_16 s off [@@ocaml.inline] let get_int16 s off = ((get_uint16 s off) lsl ( Sys.int_size - 16 )) asr ( Sys.int_size - 16 ) [@@ocaml.inline] let get_int32 s off = if Sys.big_endian then swap32 (get_32 s off) ...
null
https://raw.githubusercontent.com/OCamlPro/ocplib-endian/10292cd3ffa4d23d737e3f855ad04f22d3d95460/src/le_ocaml_401.ml
ocaml
let get_uint16 s off = if Sys.big_endian then swap16 (get_16 s off) else get_16 s off [@@ocaml.inline] let get_int16 s off = ((get_uint16 s off) lsl ( Sys.int_size - 16 )) asr ( Sys.int_size - 16 ) [@@ocaml.inline] let get_int32 s off = if Sys.big_endian then swap32 (get_32 s off) ...
a338a56d662af540ce39f5a7c4b710e2dea2bac5b096297b25ade55a4dcb561b
clojure-garden/clojure-garden
user.clj
(ns user) (defn dev [] (require 'dev) (in-ns 'dev))
null
https://raw.githubusercontent.com/clojure-garden/clojure-garden/363c2b538aea6006e93a3fc80e3ae0becbd78736/modules/backend/dev/src/user.clj
clojure
(ns user) (defn dev [] (require 'dev) (in-ns 'dev))
c72b89e28049c2ba8ebce040a0bc99be4cb47214c2a697f9f0a6bd5c917edcc2
dbuenzli/carcass
help.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2016 Daniel C. Bün...
null
https://raw.githubusercontent.com/dbuenzli/carcass/1221231b1e3d9ba5b7697707d0e7e901d51ac376/src-bin/help.ml
ocaml
Help manuals Help command Command line interface
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2016 Daniel C. Bün...
e61e929591c2e800c8ca499a79776cad52e8b1f11b4b4b4dcafff5090d62bc7e
hjwylde/werewolf
Divine.hs
| Module : Werewolf . Command . Divine Description : Options and handler for the divine subcommand . Copyright : ( c ) , 2016 License : : Options and handler for the divine subcommand . Module : Werewolf.Command.Divine Description : Options and handler for the divine subcommand...
null
https://raw.githubusercontent.com/hjwylde/werewolf/d22a941120a282127fc3e2db52e7c86b5d238344/app/Werewolf/Command/Divine.hs
haskell
* Options * Handle
| Module : Werewolf . Command . Divine Description : Options and handler for the divine subcommand . Copyright : ( c ) , 2016 License : : Options and handler for the divine subcommand . Module : Werewolf.Command.Divine Description : Options and handler for the divine subcommand...
efdd44fc9be1f867ecc7a928451d09a3ed4aee028b23f91a31ef945d216206df
ngorogiannis/cyclist
ptos.mli
(** Multiset of points-tos. *) include Lib.OrderedContainer with type elt = Pto.t val subst : Subst.t -> t -> t val terms : t -> Term.Set.t val vars : t -> Term.Set.t val to_string_list : t -> string list val subsumed : ?total:bool -> Uf.t -> t -> t -> bool * [ subsumed eqs ptos ptos ' ] is true iff [ ptos ] can ...
null
https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/seplog/ptos.mli
ocaml
* Multiset of points-tos.
include Lib.OrderedContainer with type elt = Pto.t val subst : Subst.t -> t -> t val terms : t -> Term.Set.t val vars : t -> Term.Set.t val to_string_list : t -> string list val subsumed : ?total:bool -> Uf.t -> t -> t -> bool * [ subsumed eqs ptos ptos ' ] is true iff [ ptos ] can be rewritten using the eq...
c857438887b2bfc12e98914ae14a39f67b1a373d2252db6b63edb82b0a4a6be8
stan-dev/stanc3
Pretty.ml
(** Named signatures for types that can be pretty-printed. *) module type S = sig type t val pp : Format.formatter -> t -> unit end module type S1 = sig type 'a t val pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit end module type S2 = sig type ('a, 'b) t val pp : (For...
null
https://raw.githubusercontent.com/stan-dev/stanc3/86267798050f9a24f61263b0825f1d44395040db/src/common/Pretty.ml
ocaml
* Named signatures for types that can be pretty-printed.
module type S = sig type t val pp : Format.formatter -> t -> unit end module type S1 = sig type 'a t val pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit end module type S2 = sig type ('a, 'b) t val pp : (Format.formatter -> 'a -> unit) -> (Format.formatter -> 'b ->...
d8cfc6a1166f571b4219bd606ba6a3da81442ee530203b357335493fd1c1528e
luminus-framework/luminus-template
ajax.cljs
(ns <<project-ns>>.ajax (:require [ajax.core :as ajax])) (defn local-uri? [{:keys [uri]}] (not (re-find #"^\w+?://" uri))) (defn default-headers [request] (if (local-uri? request) (-> request<% if servlet %> (update :uri #(str js/context %))<% endif %> (update :headers #(merge {"x-csrf-token...
null
https://raw.githubusercontent.com/luminus-framework/luminus-template/3278aa727cef0a173ed3ca722dfd6afa6b4bbc8f/resources/leiningen/new/luminus/hoplon/src/cljs/ajax.cljs
clojure
(ns <<project-ns>>.ajax (:require [ajax.core :as ajax])) (defn local-uri? [{:keys [uri]}] (not (re-find #"^\w+?://" uri))) (defn default-headers [request] (if (local-uri? request) (-> request<% if servlet %> (update :uri #(str js/context %))<% endif %> (update :headers #(merge {"x-csrf-token...
ca942a2a68bf07bb661acbeb80086a8135c8db64e34372345f93a1949ff052c9
janestreet/memtrace_viewer_with_deps
bin_shape_expand.mli
open Ppxlib open Deriving val str_gen : (structure, rec_flag * type_declaration list) Generator.t val sig_gen : (signature, rec_flag * type_declaration list) Generator.t val shape_extension : loc:Location.t -> core_type -> expression val digest_extension : loc:Location.t -> core_type -> expression
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/ppx_bin_prot/shape/src/bin_shape_expand.mli
ocaml
open Ppxlib open Deriving val str_gen : (structure, rec_flag * type_declaration list) Generator.t val sig_gen : (signature, rec_flag * type_declaration list) Generator.t val shape_extension : loc:Location.t -> core_type -> expression val digest_extension : loc:Location.t -> core_type -> expression
57205ee728739d3adb8fc77d2bbb7f4ecfa0d867072c002e62374f890180408f
nvim-treesitter/nvim-treesitter
injections.scm
((operation (command) @_command (message) @bash) (#any-of? @_command "exec" "x"))
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/053f88f55622c22cfd5cf8a15ab684a3d484cd8f/queries/git_rebase/injections.scm
scheme
((operation (command) @_command (message) @bash) (#any-of? @_command "exec" "x"))
bbc632d1e390443c9c129dd21285d555b7e163f60c3afa0f683dc202e96c009f
mransan/raft
raft_helper.mli
(** Helper functions for manipulating Raft types *) module Configuration : sig val is_majority : Raft_types.configuration -> int -> bool (** [is_majority configuration nb] returns true if [nb] is a majority *) end (* Configuration *) module Follower : sig val make : ?log:Raft_log.t -> ?commit_index:i...
null
https://raw.githubusercontent.com/mransan/raft/292f99475183d67e960b3a199ed4fc01b1f183e2/src/raft_helper.mli
ocaml
* Helper functions for manipulating Raft types * [is_majority configuration nb] returns true if [nb] is a majority Configuration * [create ~configuration ~now ~server_id ()] creates an initial follower state. Follower Candidate * [become state] returns the new state with a Leader role. While only...
module Configuration : sig val is_majority : Raft_types.configuration -> int -> bool module Follower : sig val make : ?log:Raft_log.t -> ?commit_index:int -> ?current_term:int -> configuration:Raft_types.configuration -> now:float -> server_id:int -> unit -> Raft_types.state ...
6daf92fae0a9197cc5818c573b89bbacc1c4ad3263e355c703b6dcffb1941d03
input-output-hk/cardano-wallet
StakePools.hs
module Light.StakePools where import Data.Map ( Map ) import Light.Types -- | Summary of stake distribution and stake pools obtained from network data StakePoolsSummary = StakePoolsSummary ^ implementable , see ' ' , pools :: Map PoolId RewardInfoPool -- ^ implementable, See 'RewardInfoPool' } -- | Gl...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/bfacc71ada6b926ee608e5e537e7040d37842eaf/prototypes/light-mode-test/src/Light/StakePools.hs
haskell
| Summary of stake distribution and stake pools obtained from network ^ implementable, See 'RewardInfoPool' | Global parameters used for computing rewards ^ yes, '_protocolParamsNOpt' ^ yes, '_protocolParamsA0' ^ implementable, '_epochInfoFees', '_accountInfoReservesSum'? ^ yes, '_genesisMaxLovelaceSupply' | In...
module Light.StakePools where import Data.Map ( Map ) import Light.Types data StakePoolsSummary = StakePoolsSummary ^ implementable , see ' ' } data RewardParams = RewardParams , r :: Coin } data RewardInfoPool = RewardInfoPool , performanceEstimate :: Double ^ implementable , ' getPoolH...
2de29f3f40642aa1a43c43828a8bdacadacb04c19309184ff2126be734ca07d3
slyrus/mcclim-old
graphics.lisp
;;; -*- Mode: Lisp; Package: CLIM-POSTSCRIPT -*- ( c ) copyright 2001 by ( ) ;;; Lionel Salabartan () ( c ) copyright 2002 by ( ) ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General P...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Backends/PostScript/graphics.lisp
lisp
-*- Mode: Lisp; Package: CLIM-POSTSCRIPT -*- Lionel Salabartan () This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICU...
( c ) copyright 2001 by ( ) ( c ) copyright 2002 by ( ) ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have rec...
026caddb75f3654b2c7788b6be3978df3641b2f8584d3e4d8e85108bc5286cd7
AndrewRademacher/aeson-casing
Test.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Data.Aeson.Casing.Test (tests) where import Data.Aeson import GHC.Generics import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.TH import Data.A...
null
https://raw.githubusercontent.com/AndrewRademacher/aeson-casing/a6acbc40f6cffce7692cab5022d98732dc7a68b3/test/Data/Aeson/Casing/Test.hs
haskell
# LANGUAGE OverloadedStrings # --
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Data.Aeson.Casing.Test (tests) where import Data.Aeson import GHC.Generics import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.TH import Data.Aeson.Casing.Internal tests :: Test...
06794c30b5562bf72b85951cf61c5053d94834470832efbfa2342adf67a02e0b
mbutterick/pollen
test-langs.rkt
#lang at-exp racket/base (require rackunit racket/port racket/system racket/runtime-path compiler/find-exe pollen/render pollen/unstable/convert txexpr) (module test-default pollen "hello world") (require (prefix-in default: 'test-default)) (check-equal?...
null
https://raw.githubusercontent.com/mbutterick/pollen/a4910a86dc62d1147f3aad94b56cecd6499d7aa6/pollen/test/test-langs.rkt
racket
define-runtime-path only allowed at top level `find-exe` avoids reliance on $PATH of the host system
#lang at-exp racket/base (require rackunit racket/port racket/system racket/runtime-path compiler/find-exe pollen/render pollen/unstable/convert txexpr) (module test-default pollen "hello world") (require (prefix-in default: 'test-default)) (check-equal?...
c14685be109812d47c33c5047b2f60d4088530c5a38bcf131628912e746a854e
jamshidh/ethereum-client-haskell
Display.hs
module Blockchain.Display ( addPingCount, setPeers, displayMessage ) where import Control.Monad.IO.Class import Control.Monad.Trans.State import qualified Blockchain.Colors as CL import Blockchain.Context import Blockchain.Data.Peer import Blockchain.Format import Blockchain.Data.Wire setTitle::String->IO()...
null
https://raw.githubusercontent.com/jamshidh/ethereum-client-haskell/6f02781ff661b6a9687fd6fe0f3e0d99d1eacc6b/src/Blockchain/Display.hs
haskell
module Blockchain.Display ( addPingCount, setPeers, displayMessage ) where import Control.Monad.IO.Class import Control.Monad.Trans.State import qualified Blockchain.Colors as CL import Blockchain.Context import Blockchain.Data.Peer import Blockchain.Format import Blockchain.Data.Wire setTitle::String->IO()...
4c5d013fa1949dba92dd4e764a9d5439c075a8e8410941a68aa063b79cff54e3
theodormoroianu/SecondYearCourses
LambdaChurch_20210415171024.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415171024.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
a72e78665980f8cbab7aabdcbcdd5fc7c7cf7484feaf547dea4d7e8c0ac8180e
pascal-knodel/haskell-craft
E'6'52.hs
-- -- -- ----------------- Exercise 6.52 . ----------------- -- -- -- module E'6'52 where import B'C'6 ( TillType , Database , BarCode , Name , lineLength ) import E'6'44 ( formatTitle ) import E'6'45 ( look ) import Data.List ( concat ) import GHC.List ( elem ) type Sales = Int makeSalesReport ...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%206/E'6'52.hs
haskell
--------------- --------------- formatTitle, see ex. 6.44. Naive. Naive. Definition: "\n" (white space) doesn't count. Known items : Known items: Sales Unknown items : Unknown items: Sales
Exercise 6.52 . module E'6'52 where import B'C'6 ( TillType , Database , BarCode , Name , lineLength ) import E'6'44 ( formatTitle ) import E'6'45 ( look ) import Data.List ( concat ) import GHC.List ( elem ) type Sales = Int makeSalesReport :: TillType -> Database -> String makeSalesReport barC...
44bc100581f21c3eb50feac56c748f7366f10de05b931ead18cec5ddb59f6ffc
kappelmann/engaging-large-scale-functional-programming
Exercise01.hs
module Exercise01 where contestTeams :: (Integer, Integer) -> (Integer, Integer, Integer, Integer) contestTeams (n, k) = (nEins, nEins*k, nEins*(k*k), nEins*(k*k*k)) where kges = 1 + k + (k*k) + (k*k*k) nEins = div n kges
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/01/uploads/ghzi/Exercise01.hs
haskell
module Exercise01 where contestTeams :: (Integer, Integer) -> (Integer, Integer, Integer, Integer) contestTeams (n, k) = (nEins, nEins*k, nEins*(k*k), nEins*(k*k*k)) where kges = 1 + k + (k*k) + (k*k*k) nEins = div n kges
c2e0d8f60b0043fd94ff5e5c81d89982a925124610dc73cf15121aceda352821
rohitjha/ProjectEuler
PE002.hs
Author : File : PE002.hs July 5 , 2013 Problem 2 : Each new term in the Fibonacci sequence is generated by adding the previous two terms . By starting with 1 and 2 , the first 10 terms will be : 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , ... By considering the terms in the Fibonacci sequence who...
null
https://raw.githubusercontent.com/rohitjha/ProjectEuler/2f0a46bb1547b06a373c30966bba7a001b932bf4/Haskell/PE002.hs
haskell
Author : File : PE002.hs July 5 , 2013 Problem 2 : Each new term in the Fibonacci sequence is generated by adding the previous two terms . By starting with 1 and 2 , the first 10 terms will be : 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , ... By considering the terms in the Fibonacci sequence who...
2d511bef42215d102084f6f13b71e4c175629a1d103926eaeccb2d4521ed2ebd
hunt-framework/hunt
Files.hs
{-# LANGUAGE BangPatterns #-} module Hunt.IO.Files ( AppendFile , withAppendFile , append , RandomAccessFile , openRandomAccessFile , closeRandomAccessFile , readRandomAccessFile , seekRandomAccessFile ) where import Control.Exception import Data.ByteString.Internal (ByteStrin...
null
https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-searchengine/src/Hunt/IO/Files.hs
haskell
# LANGUAGE BangPatterns #
module Hunt.IO.Files ( AppendFile , withAppendFile , append , RandomAccessFile , openRandomAccessFile , closeRandomAccessFile , readRandomAccessFile , seekRandomAccessFile ) where import Control.Exception import Data.ByteString.Internal (ByteString (PS)) import qualified Data....
524c72374e3e6cd580028ae582c5e22583035604d2d009cb9ef08a04ec5e4556
fhur/eaml
scope_test.clj
(ns eaml.scope-test (:require [eaml.scope :refer :all] [eaml.parser :refer [parse-str]] [eaml.parser :refer [parse-str]] [presto.core :refer :all] [clojure.test :refer :all])) (def nodes (parse-str "color red: #f00; color main_color: red; ...
null
https://raw.githubusercontent.com/fhur/eaml/ee398417d4ec76966f3b88b61ffc9332741eeb28/test/eaml/scope_test.clj
clojure
(ns eaml.scope-test (:require [eaml.scope :refer :all] [eaml.parser :refer [parse-str]] [eaml.parser :refer [parse-str]] [presto.core :refer :all] [clojure.test :refer :all])) mixin RedText { } style ...
ffe4af5577c7a8bda36e6c660a6ea23f984c915bfba7f8c0d1d2f0ab34297bb9
billstclair/trubanc-lisp
test.lisp
(defpackage :rfc2388.test (:use :common-lisp)) (in-package :rfc2388.test) (defconstant +crlf+ (format nil "~C~C" #\return #\linefeed)) (defun generate-test-strings (parts) (flet ((prepend (left list) (mapcar (lambda (right) (format nil "~A~A" left right)) list)...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/rfc2388/test.lisp
lisp
(defpackage :rfc2388.test (:use :common-lisp)) (in-package :rfc2388.test) (defconstant +crlf+ (format nil "~C~C" #\return #\linefeed)) (defun generate-test-strings (parts) (flet ((prepend (left list) (mapcar (lambda (right) (format nil "~A~A" left right)) list)...
087703573559b58e7f3eebd74d997bd2e87ae10ccc3b87c51b48d3cf6ef81a3a
matterandvoid-space/subscriptions
reagent_ratom.cljs
(ns space.matterandvoid.subscriptions.impl.reagent-ratom (:require-macros [space.matterandvoid.subscriptions.impl.reagent-ratom]) (:refer-clojure :exclude [atom]) (:require [reagent.ratom])) ;; Make sure the Google Closure compiler sees this as a boolean constant, otherwise Dead Code Elimination wo n't happen ...
null
https://raw.githubusercontent.com/matterandvoid-space/subscriptions/a7e3a93cc94152a6b9098a4766b8796eae6b498d/src/main/space/matterandvoid/subscriptions/impl/reagent_ratom.cljs
clojure
Make sure the Google Closure compiler sees this as a boolean constant, Type hints have been liberally sprinkled. -for-compiler See -cljs.github.io/docs/UsersGuide.html#infer-externs See -cljs.github.io/docs/UsersGuide.html#infer-externs copied from reagent to allow setting an on-destroy callback to cleanup the cu...
(ns space.matterandvoid.subscriptions.impl.reagent-ratom (:require-macros [space.matterandvoid.subscriptions.impl.reagent-ratom]) (:refer-clojure :exclude [atom]) (:require [reagent.ratom])) otherwise Dead Code Elimination wo n't happen in ` : advanced ` builds . (def ^boolean debug-enabled? "@define {boolean}...
b157a1c6373453fe1e3605d79d5037764a932b067c1674d64b54244da73f7109
jrm-code-project/LISP-Machine
demo.lisp
-*- Mode : LISP ; Package : AUSCOM ; ; : CL -*- DRIVER FOR THE AUSCOM MODEL 8600 MULTIBUS CHANNEL INTERFACE ;;; 6/18/86 16:32:31 - DEMO: ;;; - GEORGE CARRETTE the system 38 side of this demo : ;;; A line is read from the terminal, then written to the channel. ;;; then he does a READ and displays tha...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/auscom/demo.lisp
lisp
Package : AUSCOM ; ; : CL -*- 6/18/86 16:32:31 - DEMO: - GEORGE CARRETTE A line is read from the terminal, then written to the channel. then he does a READ and displays that to the terminal. My side. idea, if read is chained to write, then hold off on device-end (after the write) until the read buffer is...
DRIVER FOR THE AUSCOM MODEL 8600 MULTIBUS CHANNEL INTERFACE the system 38 side of this demo : (defvar *result-string* "nothing here yet.....") (defun demo-write-data-function (string length) (string-translate-in-place *ebcdic->lispm* string 0 length) (format terminal-io "~&FROM SYSTEM-38: ~S~%" (subs...
e327bc26ba1f3baf45023d6d9667fab9ef57fe5d95c824b522f71fdc0c0a10bc
nmattia/makefile
Internal.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # module Data.Makefile.Parse.Internal where import Control.Monad import Data.Foldable import Data.Attoparsec.Text import Data.Makefile import Data.Monoid import Control.Applicative import qualified Data.Attoparsec....
null
https://raw.githubusercontent.com/nmattia/makefile/dbc21465c5195e32922aa5d0786fd1ffadb75a0d/src/Data/Makefile/Parse/Internal.hs
haskell
# LANGUAGE OverloadedStrings # $setup >>> :set -XOverloadedStrings | Parse makefile. Tries to open and parse a file name @Makefile@ in the current directory. | Parse the specified file as a makefile. | Similar to 'Atto.parseOnly' but fails if all input has not been consumed. -------------------------------------...
# LANGUAGE LambdaCase # # LANGUAGE ViewPatterns # module Data.Makefile.Parse.Internal where import Control.Monad import Data.Foldable import Data.Attoparsec.Text import Data.Makefile import Data.Monoid import Control.Applicative import qualified Data.Attoparsec.Text as Atto import qualified Data....
a94537a080f5ff89942f1337c730844b0bba888a7d7f781e553896ad113f1f84
derui/okeyfum
okeyfum_time.ml
open Ctypes open Foreign module Types = Okeyfum_types module Inner = struct let gettimeofday = foreign "gettimeofday" ~check_errno:true (ptr Types.Timeval.t @-> Types.Timezone.t @-> returning int) end (* Get time when execute this function *) let now () = let time = { Types.Timeval.tv_sec = PosixTypes....
null
https://raw.githubusercontent.com/derui/okeyfum/bc47c0bea35c00d720dcde0200256a3f2e1312bd/src/okeyfum_time.ml
ocaml
Get time when execute this function
open Ctypes open Foreign module Types = Okeyfum_types module Inner = struct let gettimeofday = foreign "gettimeofday" ~check_errno:true (ptr Types.Timeval.t @-> Types.Timezone.t @-> returning int) end let now () = let time = { Types.Timeval.tv_sec = PosixTypes.Time.of_int 0; tv_usec = 0L; } in ...
a86a6f01a2f80a7587da37eb24fe1989cbc58323336361e9e1227c6a1b6a4577
amnh/poy5
pdffun.mli
(** Parsing and Evaluating PDF functions *) type calculator = | If of calculator list | IfElse of calculator list * calculator list | Bool of bool | Float of float | Int of int32 | Abs | Add | Atan | Ceiling | Cos | Cvi | Cvr | Div | Exp | Floor | Idiv | Ln | Log ...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/camlpdf-0.3/pdffun.mli
ocaml
* Parsing and Evaluating PDF functions * The type of functions. * Raised from [eval_function] (see below) in the case of inputs which don't match the evaluation * Evaluate a function given a list of inputs. */*
type calculator = | If of calculator list | IfElse of calculator list * calculator list | Bool of bool | Float of float | Int of int32 | Abs | Add | Atan | Ceiling | Cos | Cvi | Cvr | Div | Exp | Floor | Idiv | Ln | Log | Mod | Mul | Neg | Round | Sin...
20114ca84ea211044a3d384bae53fb46e1bc86a7b72547457c4c63c61b294f1f
mbj/stratosphere
Rule.hs
module Stratosphere.WAFRegional.Rule ( module Exports, Rule(..), mkRule ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFRegional.Rule.PredicateProperty as Exports import Stratosphere.ResourcePrope...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafregional/gen/Stratosphere/WAFRegional/Rule.hs
haskell
# SOURCE #
module Stratosphere.WAFRegional.Rule ( module Exports, Rule(..), mkRule ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data Rule = Rule {metricName :: (Value Prelude....
25bef5eac23fa793cd9e128940e5e0fe704d98e4f0fccffc0d9b2495c1c74394
sansarip/owlbear
tag_open.cljs
(ns owlbear.lexer.html.tag-open (:require [owlbear.lexer.html.token-types :as html-tknt])) (defn tag-open-bracket-ctx? "Given a context, returns true if the context is an HTML tag open angular bracket e.g. <" [ctx] (and (some? ctx) (html-tknt/token-type? ctx :tag-open))) (defn tag-open-bracket-ctx "Give...
null
https://raw.githubusercontent.com/sansarip/owlbear/b25d46e3f401f5fee739889e5bc604f6b9c00c41/src/cljs/owlbear/lexer/html/tag_open.cljs
clojure
(ns owlbear.lexer.html.tag-open (:require [owlbear.lexer.html.token-types :as html-tknt])) (defn tag-open-bracket-ctx? "Given a context, returns true if the context is an HTML tag open angular bracket e.g. <" [ctx] (and (some? ctx) (html-tknt/token-type? ctx :tag-open))) (defn tag-open-bracket-ctx "Give...
a8ec4a921262672e1c30f7d6a65b8cc2475ddd3bf3a28e93c350d59609139627
Kappa-Dev/KappaTools
graph_loggers.mli
* * graph_loggers.mli * * a module for * , projet Antique , INRIA Paris * * * , Université Paris - Diderot , CNRS * * Creation : 23/05/2016 * Last modification : 25/05/2016 * * * * * Copyright 2016 Institut National de Recherche en Informatique et * en Autom...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/classical_graphs/graph_loggers.mli
ocaml
* * graph_loggers.mli * * a module for * , projet Antique , INRIA Paris * * * , Université Paris - Diderot , CNRS * * Creation : 23/05/2016 * Last modification : 25/05/2016 * * * * * Copyright 2016 Institut National de Recherche en Informatique et * en Autom...
2de886c1dc6cddaedf0a695901a87a8ad071882f869cf2e1385cb022f4770e8c
haskell-suite/haskell-src-exts
EmptyList.hs
module EmptyList where eAttrs = []
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/EmptyList.hs
haskell
module EmptyList where eAttrs = []
b73b4cefadbac172395122f8493e7db37acda71e8d0b81bf069fd7b4d663b735
coq/coq
stmargs.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/be73f2503157561b67d97d264e3820ce9caa73f2/stm/stmargs.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
d629d1bbdd2d0e8a628aeda93d46d6354e4fb678a077370e953b8634099807ba
Frechmatz/cl-synthesizer
profile-phase-waveform-converter.lisp
(defpackage :cl-synthesizer-profiling-waveform-converter (:use :cl)) (in-package :cl-synthesizer-profiling-waveform-converter) ;; ;; The tests add a bit overhead to prevent compiler from optimizations ;; (defun run-sine (&key duration-seconds phi) (let ((result 0.0)) (dotimes (i (* 44100 duration-seconds)) ...
null
https://raw.githubusercontent.com/Frechmatz/cl-synthesizer/7490d12f0f1e744fa1f71e014627551ebc4388c7/profiling/profile-phase-waveform-converter.lisp
lisp
The tests add a bit overhead to prevent compiler from optimizations
(defpackage :cl-synthesizer-profiling-waveform-converter (:use :cl)) (in-package :cl-synthesizer-profiling-waveform-converter) (defun run-sine (&key duration-seconds phi) (let ((result 0.0)) (dotimes (i (* 44100 duration-seconds)) (setf result (+ result (cl-synthesizer-util:phase-sine-converter phi 0.0...
b3af41a9ad26b841b6d81bf8651f0a5e4d8356b6fccf0650e8b9aafbd4053368
hasktorch/ffi-experimental
ParseDerivatives.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module ParseDerivatives where import GHC.Generics import Data.Yaml import qualified Data.Yaml as Y import Text.Show.Prettyprint (prettyPrint) {- derivatives.yaml -} data Derivative = Derivative { name :: String , sel...
null
https://raw.githubusercontent.com/hasktorch/ffi-experimental/54192297742221c4d50398586ba8d187451f9ee0/codegen/src/ParseDerivatives.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # derivatives.yaml
# LANGUAGE DeriveGeneric # module ParseDerivatives where import GHC.Generics import Data.Yaml import qualified Data.Yaml as Y import Text.Show.Prettyprint (prettyPrint) data Derivative = Derivative { name :: String , self :: Maybe String , other :: Maybe String , tensor1 :: Maybe String , tensor2 :: May...
0411d3cfbf7613ce84d629d85aad8af78359151f167c2cb6169d5b8b6bcff4d3
imrehg/ypsilon
container.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk container) (export gtk_container_add gtk_container_add_with_properties gtk_container_check_resize gtk_co...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gtk/container.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gtk container) (export gtk_container_add gtk_container_add_with_properties gtk_container_check_resize gtk_co...
78f9bdec27a98d65a0eecea96c9beb11bb3498ed188e78ad0c48d8b60360c247
tezos/tezos-mirror
binaries.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/774792023ac622e1c3a298a040060621c0dd2f50/tezt/tests/binaries.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
d767358ded8a1e2fa87003183204014339458ce0b29fbe50922f9e540f344663
tmattio/gettext
utils.ml
(**************************************************************************) (* ocaml-gettext: a library to translate messages *) (* *) Copyright ( C ) 2003 - 2008 < > (* ...
null
https://raw.githubusercontent.com/tmattio/gettext/edafb76a1e9c7c760634eef93b2c53aac80a2b82/lib/po/utils.ml
ocaml
************************************************************************ ocaml-gettext: a library to translate messages This library is free softw...
Copyright ( C ) 2003 - 2008 < > License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version ; You should have received a copy of the GNU Lesser General Public License along with this library ; if not ,...
aae922f916659ef868cf94f1d28cb7c43bef281d821522e6c6b60af0da504215
chunsj/TH
backprop.lisp
(declaim (optimize (speed 3) (debug 1) (safety 0))) (in-package :th) (defgeneric $parameter (object) (:documentation "Returns a wrapped, differentiable object.")) (defgeneric $parameters (object) (:documentation "Returns parameters.")) (defgeneric $parameterp (object) (:documentation "Returns whether object is a para...
null
https://raw.githubusercontent.com/chunsj/TH/890f05ab81148d9fe558be3979c30c303b448480/bp/backprop.lisp
lisp
(declaim (optimize (speed 3) (debug 1) (safety 0))) (in-package :th) (defgeneric $parameter (object) (:documentation "Returns a wrapped, differentiable object.")) (defgeneric $parameters (object) (:documentation "Returns parameters.")) (defgeneric $parameterp (object) (:documentation "Returns whether object is a para...
575104abcf545e4508a1d9d8321258686dd385edac647fe5d18063b230029a89
jrh13/hol-light
Custom_inference_rules.ml
let near_ring_axioms = `(!x. 0 + x = x) /\ (!x. neg x + x = 0) /\ (!x y z. (x + y) + z = x + y + z) /\ (!x y z. (x * y) * z = x * y * z) /\ (!x y z. (x + y) * z = (x * z) + (y * z))`;; * * * Works eventually but takes a very long time [ ] ` ( ! x. 0 + x = x ) /\ ( ! x. neg x + x = 0 ) /\ ( ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Tutorial/Custom_inference_rules.ml
ocaml
let near_ring_axioms = `(!x. 0 + x = x) /\ (!x. neg x + x = 0) /\ (!x y z. (x + y) + z = x + y + z) /\ (!x y z. (x * y) * z = x * y * z) /\ (!x y z. (x + y) * z = (x * z) + (y * z))`;; * * * Works eventually but takes a very long time [ ] ` ( ! x. 0 + x = x ) /\ ( ! x. neg x + x = 0 ) /\ ( ...
2d6db66003bb97c7cec9d00a6940b78e54c70f1f0e9f3ab1eeb5ac8987fc7667
well-typed-lightbulbs/ocaml-esp32
reg_availability_set.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/asmcomp/debug/reg_availability_set.ml
ocaml
************************************************************************ OCaml ...
, Jane Street Europe Copyright 2016 - -2017 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the [@@@ocaml.warning "+a-4-9-30-40-41-42"] module RD = Reg_with_debug_info module V = Backend_var type t =...
69a3756d5963b022f896f97b686b4680cdd04273e687b531f13bdd6792d10875
dhammikamare/Learn-OCaml
max_depth.ml
type 'a binarytree = | Empty | Node of 'a * 'a binarytree * 'a binarytree ;; let max_depth tr = let rec loop t md = match t with | Empty -> -1 | Node(value, Empty, Empty) -> md | Node(value, left, right) -> let lmax = loop left (md+1) in let rmax = loop right (md+1) in max lmax rmax in ...
null
https://raw.githubusercontent.com/dhammikamare/Learn-OCaml/2d4e3da38ee86cd7477964ffb8756a8483260322/lab10%20Binary%20Tree/max_depth.ml
ocaml
if lmax >= rmax then lmax else rmax in test
type 'a binarytree = | Empty | Node of 'a * 'a binarytree * 'a binarytree ;; let max_depth tr = let rec loop t md = match t with | Empty -> -1 | Node(value, Empty, Empty) -> md | Node(value, left, right) -> let lmax = loop left (md+1) in let rmax = loop right (md+1) in max lmax rmax in ...
ba4e360d7adc51d6e9cb85d3a898719763e89d401a8a1aa029fe8cbf25a88955
omcljs/om
core.cljs
(ns examples.mixins.core (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true]) (:import [goog.ui IdGenerator])) (enable-console-print!) (def TestMixin #js {:componentWillMount (fn [] (println "TextMixin componentWillMount"))}) (def MyComponent (let...
null
https://raw.githubusercontent.com/omcljs/om/3a1fbe9c0e282646fc58550139b491ff9869f96d/examples/mixins/src/core.cljs
clojure
(ns examples.mixins.core (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true]) (:import [goog.ui IdGenerator])) (enable-console-print!) (def TestMixin #js {:componentWillMount (fn [] (println "TextMixin componentWillMount"))}) (def MyComponent (let...
b22af9f67823a13f5bd47109aabec9c0b269f21cc9d57f0025131cdb3abcb8b0
katcipis/sicp
numbers.rkt
#lang racket (require "stream.rkt") (define (ones) (kstream 1 ones)) (define (naturals-from i) (kstream i (lambda () (naturals-from (+ i 1))))) (define (naturals) (naturals-from 0)) (provide ones naturals naturals-from)
null
https://raw.githubusercontent.com/katcipis/sicp/d365de58e106d54f83d0ca236ea5ea666253da89/stream/numbers.rkt
racket
#lang racket (require "stream.rkt") (define (ones) (kstream 1 ones)) (define (naturals-from i) (kstream i (lambda () (naturals-from (+ i 1))))) (define (naturals) (naturals-from 0)) (provide ones naturals naturals-from)
fe17b7ab0e673b06877ee3b20ae90534c58d830e0c45ef0ea8746504a546e906
liqd/thentos
Missing.hs
module LIO.Missing where import LIO.Core (MonadLIO, liftLIO, taint, guardWrite) import LIO.Error (AnyLabelError) import LIO.Label (Label) import LIO.DCLabel (DCLabel, (%%)) import qualified LIO.Exception as LE tryTaint :: (MonadLIO l m, Label l) => l -> m r -> (AnyLabelError -> m r) -> m r tryTaint label onSuccess ...
null
https://raw.githubusercontent.com/liqd/thentos/f7d53d8e9d11956d2cc83efb5f5149876109b098/thentos-core/src/LIO/Missing.hs
haskell
| Test whether guard-write against a given label violates current clearance. In other words: whether given label can flow to clearance.
module LIO.Missing where import LIO.Core (MonadLIO, liftLIO, taint, guardWrite) import LIO.Error (AnyLabelError) import LIO.Label (Label) import LIO.DCLabel (DCLabel, (%%)) import qualified LIO.Exception as LE tryTaint :: (MonadLIO l m, Label l) => l -> m r -> (AnyLabelError -> m r) -> m r tryTaint label onSuccess ...
97dd38fba2042cabc05122728ba55fca802d6cdade8d652053793119313a31f7
artyom-poptsov/metabash
tee.scm
tee.scm -- Tee implementation for . Copyright ( C ) 2020 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any later ver...
null
https://raw.githubusercontent.com/artyom-poptsov/metabash/8a0979ca1a1d411f0d15916e0affca8989094679/modules/metabash/core/plumbing/tee.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
tee.scm -- Tee implementation for . Copyright ( C ) 2020 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License two output ports effectively copyi...
928f1f2615c2146e7fe28122a5e2f6e37db83597a474923943629a0fdd5d52eb
eslick/cl-registry
ilr-surveys.lisp
;;; -*- Mode:Lisp; tab-width:2; indent-tabs-mode:nil -*- Copyright ( c ) 2008 - 2010 , Massachusetts Institute of;Technology . All rights reserved . Copyright ( c ) 2008 - 2010 , LAM Treatment Alliance . All rights reserved . ;;; Released under a BSD-style license: -license.php ;;; See LICENSE file (in-package ...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/plugins/ilr-surveys/ilr-surveys.lisp
lisp
-*- Mode:Lisp; tab-width:2; indent-tabs-mode:nil -*- Technology . All rights reserved . Released under a BSD-style license: -license.php See LICENSE file UI macros Returns (format t "~&Add group ~S to groups ~S" group groups) Returns
Copyright ( c ) 2008 - 2010 , LAM Treatment Alliance . All rights reserved . (in-package :registry) (define-plugin ilr-surveys () ) (defmacro dropdown-options (var &rest args &key (help t) &allow-other-keys) (remf args ':help) `(list :data-type :choice :view-type :dropdown ,@(if help '(:help "Plea...
b7048460081e2cda41015e98978f984f573cc5f6b188f9ffffcdd336428263d7
christian-marie/oauth2-server
Token.hs
-- Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others -- -- The code in this file, and the program it is a part of, is -- made available to you by its authors as open source software: -- you can redistribute it and/or modify it under the terms of the 3 - clause BSD licence . -- {-# LANGUAGE DeriveDataType...
null
https://raw.githubusercontent.com/christian-marie/oauth2-server/ebb75be9d05dd52d478a6e069d32461d4e54544e/lib/Network/OAuth2/Server/Types/Token.hs
haskell
The code in this file, and the program it is a part of, is made available to you by its authors as open source software: you can redistribute it and/or modify it under the terms of # LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # | Description: Internal representation of OAuth2 tok...
Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others the 3 - clause BSD licence . # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # Internal representation of OAuth2 tokens , token identifiers and token types Access / Bearer tokens : #appendix-A.12 module Network.OAuth2.S...
6c335ace33273a9c93d8f31ca00e872380a2d0cda14513f84fd72e97a8a61bf2
heidihoward/ocaml-raft
test_spl_wrapper.ml
open Core_kernel.Std open OUnit open RaftMonitorWrapper let apply x y = tick y x let test_general2 _ = let monitor = init () in apply `Startup monitor |> apply `StartElection |> apply `WinElection |> apply `RestartElection |> (fun _ -> ()) let test_general1 _ = let monitor = init () in apply `Recov...
null
https://raw.githubusercontent.com/heidihoward/ocaml-raft/b1502ebf8c19be28270d11994abac68e5a6418be/test/test_spl_wrapper.ml
ocaml
open Core_kernel.Std open OUnit open RaftMonitorWrapper let apply x y = tick y x let test_general2 _ = let monitor = init () in apply `Startup monitor |> apply `StartElection |> apply `WinElection |> apply `RestartElection |> (fun _ -> ()) let test_general1 _ = let monitor = init () in apply `Recov...
a0ae2178142cd5a2338ee095aa8aa4901ce4b91eae365a7107d33109610b623f
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.PT.Corpus ( corpus , negativeCorpus ) where ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/PT/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.PT.Corpus ( corpus , negativeCorpus ) where import Data.String import Prelude import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types hiding (examples) import Duckling.Time.Corpus import Duckling.Time.Types hiding (M...
d910e3fad5a60930febf7657e48cba88447c3c82f2502bf96e7d0b8c967c8191
ucsd-progsys/mist
mochi-l-isort.hs
undefined as rforall a. a undefined = 0 assert as {safe:Bool | safe == True} -> Int assert = 0 makePair as rforall a, b. fst:a -> snd:b -> Pair >a >b makePair = undefined fst as rforall a, b. pair:(Pair >a >b) -> a fst = undefined snd as rforall a, b. pair:(Pair >a >b) -> b snd = undefined nil :: Pair >Int >({v:In...
null
https://raw.githubusercontent.com/ucsd-progsys/mist/0a9345e73dc53ff8e8adb8bed78d0e3e0cdc6af0/tests/Tests/Integration/todo/mochi-l-isort.hs
haskell
hd :: out:Int ~> (Pair >Int >(i:Int -> {v:Int | (i = 0) => (v = out)})) -> {v:Int | v = out} forAll = \f xs -> if isNil xs then True else (f (hd xs)) /\ (forAll f (tl xs)) main :: Int -> Unit
undefined as rforall a. a undefined = 0 assert as {safe:Bool | safe == True} -> Int assert = 0 makePair as rforall a, b. fst:a -> snd:b -> Pair >a >b makePair = undefined fst as rforall a, b. pair:(Pair >a >b) -> a fst = undefined snd as rforall a, b. pair:(Pair >a >b) -> b snd = undefined nil :: Pair >Int >({v:In...
95c9149433fad51d1575544f45a35eec5a5c5296fc043b84f7d551e649a91bc2
TheClimateCorporation/lemur
sample-jobdef.clj
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Sample ;;; This job does nothing ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; The symbols of lemur.core and lemur.command-line are ; automatically refer'ed in and the following namespaces are required for you: ; clojure.java.io :as i...
null
https://raw.githubusercontent.com/TheClimateCorporation/lemur/00eb21b6f534ceefe354ab89042826188d156991/examples/sample-jobdef.clj
clojure
Sample This job does nothing The symbols of lemur.core and lemur.command-line are automatically refer'ed in and the following namespaces are required for you: clojure.java.io :as io clojure.string :as s clojure.tools.logging :as log com.climate.shell ...
com.climate.services.aws.emr : as (comment *** Run "lemur help" for an overview and description of the concepts and syntax in this file. ***) Essentially , this does a Clojure ( use ) , so all symbols from each base are automatically control , you can use require or other standard Clojure constructs ...
aed3eb326ff4b7a7c7c19c5bdae753616a6b20fd3e38f83547923cb3b0a6cdbb
aryx/yacfe
test.ml
open Common (* try put stuff in parsing_c/test_parsing_c.ml or analyze_c/test_analyze_c.ml * instead of in this file. *) open Ast_c (*****************************************************************************) (* to be called by ocaml toplevel, to test. *) (*******************************************************...
null
https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/test.ml
ocaml
try put stuff in parsing_c/test_parsing_c.ml or analyze_c/test_analyze_c.ml * instead of in this file. *************************************************************************** to be called by ocaml toplevel, to test. *************************************************************************** useful only when ...
open Common open Ast_c let cprogram_of_file file = Flag_parsing_c.std_h := "/home/pad/c-yacfe/config/macros/standard.h"; Parse_c.init_defs !Flag_parsing_c.std_h; let (program2, _stat) = Parse_c.parse_c_and_cpp file in program2 let actions () = [ ]
51527d671b88a45ee55f1a9d1e95dafb169f34b3d3f5a6b673761a2e827bc4d9
t-cool/cl-lemma
main.lisp
(defpackage cl-lemma/tests/main (:use :cl :cl-lemma :rove)) (in-package cl-lemma/tests/main) ;; NOTE: To run this test file, execute `(asdf:test-system :cl-lemma)' in your Lisp. (deftest lemmatize (testing "noun" (ok (equal (cl-lemma:lemma "leaves" :noun) "leaf")) (ok (equal (cl-lemma:lemm...
null
https://raw.githubusercontent.com/t-cool/cl-lemma/e93f73d1cff2623cd0ba14083076c43d366e72f7/tests/main.lisp
lisp
NOTE: To run this test file, execute `(asdf:test-system :cl-lemma)' in your Lisp.
(defpackage cl-lemma/tests/main (:use :cl :cl-lemma :rove)) (in-package cl-lemma/tests/main) (deftest lemmatize (testing "noun" (ok (equal (cl-lemma:lemma "leaves" :noun) "leaf")) (ok (equal (cl-lemma:lemma "libraries" :noun) "library")) ) (testing "verb" (ok (equal (cl-lemma:lem...
4c6c15d7d3c5022dc49e2bbcfb7eb5edd235887826b9bc805cb75597567bf0ca
re-path/studio
styles.cljs
(ns repath.studio.styles (:require [stylefy.core :as stylefy] [clojure.string :as str])) (defn square-styles [size] {:width size :height size :line-height size}) (defn ->!important [value] (str value " !important")) (defn ->px [value] (str value "px")) ;; Load Source Sans Pr...
null
https://raw.githubusercontent.com/re-path/studio/811a5cd24e5a467807057893eefd30c9cf1110f6/src/repath/studio/styles.cljs
clojure
Load Source Sans Pro font Load Source Code Pro font SEE -and-palettes (def error-color "#BF616A") (def font-color-muted "##D8DEE9") (def background-error "#BF616A") (def background-warning "#D08770") (def background-success "#A3BE8C") Light Theme (def level-1 "#e1e1e1") (def level-2 "#eee") (def level-3 "#f...
(ns repath.studio.styles (:require [stylefy.core :as stylefy] [clojure.string :as str])) (defn square-styles [size] {:width size :height size :line-height size}) (defn ->!important [value] (str value " !important")) (defn ->px [value] (str value "px")) (stylefy/font-face {:...
95aaa463b44a4bc091b9dfbd8a02abda88ece0ab60796ffc4439f3bd8217cb6a
chrisdone/duet
Spec.hs
# LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # -- | import Control.Monad.Logger import Control.Monad.Supply import Control.Monad.Writer import Data.Bifunctor ...
null
https://raw.githubusercontent.com/chrisdone/duet/959d40db68f4c2df04cabb7677724900d4f71db4/test/Spec.hs
haskell
# LANGUAGE OverloadedStrings # |
# LANGUAGE TemplateHaskell # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE LambdaCase # import Control.Monad.Logger import Control.Monad.Supply import Control.Monad.Writer import Data.Bifunctor import Duet.Infer import Duet.Parser imp...
c94a41e15d24319c3f864acd120415bd3a266da963659f3d4734c35a3577e818
ijvcms/chuanqi_dev
map_10402.erl
-module(map_10402). -export([ range/0, data/0 ]). range() -> {20, 12}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_10402.erl
erlang
-module(map_10402). -export([ range/0, data/0 ]). range() -> {20, 12}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0...
22264ff8279777c269da53086c18e82ec7e87d71509ccb6a1eb72ed2af5db4ec
coalton-lang/coalton
ast-subsitutions.lisp
(defpackage #:coalton-impl/codegen/ast-substitutions (:use #:cl #:coalton-impl/util #:coalton-impl/codegen/ast) (:export #:ast-substitution ; STRUCT CONSTRUCTOR ACCESSOR ACCESSOR #:ast-substitution-list ; TYPE )) (in-package #:coalton-impl/codegen/ast-substitu...
null
https://raw.githubusercontent.com/coalton-lang/coalton/a8d779e824bb362c01d3218cfbb3394f9858850f/src/codegen/ast-subsitutions.lisp
lisp
STRUCT TYPE
(defpackage #:coalton-impl/codegen/ast-substitutions (:use #:cl #:coalton-impl/util #:coalton-impl/codegen/ast) (:export CONSTRUCTOR ACCESSOR ACCESSOR )) (in-package #:coalton-impl/codegen/ast-substitutions) (defstruct ast-substitution (from (required 'from) :type symbol :read-only t) (to ...
aa94f5a9465734316a8bbe7e520220c9060b300a1b7fd764eec6ece54e011ca2
bmeurer/ocaml-arm
genprintval.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/toplevel/genprintval.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Types open Format module t...
8c1697734afcf753cf007e26126266cc92fe46c43556288fea518730625516de
yuriy-chumak/ol
callcc.scm
;; funny call/cc tests ;; defining y with self application via call/cc (define Y (λ (e) ((call/cc call/cc) (λ (f) (e (λ (x) (((call/cc (call/cc call/cc)) f) x))))))) (define fakt (Y (λ (self) (λ (x) (if (= x 0) 1 (* x (self (- x 1)))))))) (print (fakt 10))
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/tests/callcc.scm
scheme
funny call/cc tests defining y with self application via call/cc
(define Y (λ (e) ((call/cc call/cc) (λ (f) (e (λ (x) (((call/cc (call/cc call/cc)) f) x))))))) (define fakt (Y (λ (self) (λ (x) (if (= x 0) 1 (* x (self (- x 1)))))))) (print (fakt 10))
fd4241814ccfb6e41456baa493672575beac1cf022cdf5fb95f93b4a67fc959b
greg42/openOfficeMarkup
DocumentParser.hs
- ---------------------------------------------------------------------------- - " THE BEER - WARE LICENSE " ( Revision 42 ): - < > wrote this file . As long as you retain this notice you - can do whatever you want with this stuff . If we meet some day , and you - think this stuff is worth it , you can ...
null
https://raw.githubusercontent.com/greg42/openOfficeMarkup/46b99482625e945eb4b0f57c905c3c0e7224a2ca/markupParser/Text/Udoc/DocumentParser.hs
haskell
-------------------------------------------------------------------------- -------------------------------------------------------------------------- -------------------------------------------------------------------------- -------------------------------------------------------------------------- | A parser state ...
- " THE BEER - WARE LICENSE " ( Revision 42 ): - < > wrote this file . As long as you retain this notice you - can do whatever you want with this stuff . If we meet some day , and you - think this stuff is worth it , you can buy me a beer in return . - "THE BEER-WARE LICENSE" (Revision 42): - <> wro...
ac49671863bd8de7caffa278de4880817e0e3ebc77f20c53bd32ec8062fa779f
JHU-PL-Lab/jaylang
mc91_95.ml
let rec m x = if x > 100 then x - 10 else m (m (x + 11)) let main n = if n <= 95 then assert (m n = 91) else ()
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/benchmark/cases/mochi_origin/mochi/mc91_95.ml
ocaml
let rec m x = if x > 100 then x - 10 else m (m (x + 11)) let main n = if n <= 95 then assert (m n = 91) else ()
e025748559f1f5c088b012133a53382c18762f2b8b8f7b1f586009f2e3f85f29
mariachris/Concuerror
workers.erl
-module(workers). -export([workers/0]). -export([scenarios/0]). -define(LOW, 1). -define(HIGH, 2). -define(ADD, 10). -define(WORKERS, 2). scenarios() -> [{?MODULE, inf, dpor}]. workers() -> Self = self(), Pid = spawn(fun() -> server(?WORKERS, lists:seq(?LOW, ?HIGH), [], Self) end), spawner(?WORK...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/dpor/src/workers.erl
erlang
-module(workers). -export([workers/0]). -export([scenarios/0]). -define(LOW, 1). -define(HIGH, 2). -define(ADD, 10). -define(WORKERS, 2). scenarios() -> [{?MODULE, inf, dpor}]. workers() -> Self = self(), Pid = spawn(fun() -> server(?WORKERS, lists:seq(?LOW, ?HIGH), [], Self) end), spawner(?WORK...
f674167256b852d58f513121547d089f83937941b62ea6cfab50d0e04dfa5557
klutometis/clrs
15.4-1.scm
(require-extension syntax-case check) (require '../15.4/section) (import section-15.4) (let ((X '(1 0 0 1 0 1 0 1)) (Y '(0 1 0 1 1 0 1 1 0))) (let-values (((c b) (lcs-length X Y))) (check (lcs b X (- (length X) 1) (- (length Y) 1)) => '(1 0 0 1 1 0))))
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/15.4/15.4-1.scm
scheme
(require-extension syntax-case check) (require '../15.4/section) (import section-15.4) (let ((X '(1 0 0 1 0 1 0 1)) (Y '(0 1 0 1 1 0 1 1 0))) (let-values (((c b) (lcs-length X Y))) (check (lcs b X (- (length X) 1) (- (length Y) 1)) => '(1 0 0 1 1 0))))
8a0e02fcce9eed7df0c11ef876e44e80ed8a684f340d0bcc659ed26350db89b8
ku-fpg/natural-transformation
Natural.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE Safe #-} # LANGUAGE TypeOperators # | Module : Control . Natural Co...
null
https://raw.githubusercontent.com/ku-fpg/natural-transformation/24d05f3e63f716f04ba78fd35a0da33a1fe0c5c6/src/Control/Natural.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE Safe # * Type Synonym for a Natural Transformation * Conversion functions between the newtype and the synonym * Class for Natural Transformations ------------------------------------------------------------------------- -----------...
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # # LANGUAGE TypeOperators # | Module : Control . Natural Copyright : ( C ) 2015 The University of Kansas License : BSD - style ( see the file LICENSE ) Main...
5a23f8d485eacdf37eedde9c96c2b96c9c5121510390e35e4686c1596b54e4b5
mbj/stratosphere
BatchTransformInputProperty.hs
module Stratosphere.SageMaker.ModelExplainabilityJobDefinition.BatchTransformInputProperty ( module Exports, BatchTransformInputProperty(..), mkBatchTransformInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/ModelExplainabilityJobDefinition/BatchTransformInputProperty.hs
haskell
# SOURCE #
module Stratosphere.SageMaker.ModelExplainabilityJobDefinition.BatchTransformInputProperty ( module Exports, BatchTransformInputProperty(..), mkBatchTransformInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import...
b5caa5cdecfc74c6d1be9126a11a733038818a0125213a412d409871e172e4fa
babashka/babashka
yaml_test.clj
(ns babashka.yaml-test (:require [babashka.test-utils :as test-utils] [clojure.string :as str] [clojure.test :refer [deftest is testing]])) (def simple-yaml-str "topic: [point 1, point 2]") (deftest yaml-edn-read-test (let [parsed-edn (test-utils/bb nil (str "(yaml/parse-string \"" simpl...
null
https://raw.githubusercontent.com/babashka/babashka/407bd74a00395bdec8d89ab36ff330593859bb94/test/babashka/yaml_test.clj
clojure
(ns babashka.yaml-test (:require [babashka.test-utils :as test-utils] [clojure.string :as str] [clojure.test :refer [deftest is testing]])) (def simple-yaml-str "topic: [point 1, point 2]") (deftest yaml-edn-read-test (let [parsed-edn (test-utils/bb nil (str "(yaml/parse-string \"" simpl...
7a0a0cb8892881e0457dac1fb492900c215cafd178fd94fa81551f6ff11ead36
basho/sidejob
sidejob_worker.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/sidejob/1c377578c0956e91ebbb98a798c5d4b6d0959c99/src/sidejob_worker.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY proce...
f226af3ffc23728d855e3fe4b5d2943a476ff93c88f65221003b165214f7e4cc
nrnrnr/qc--
x86i.ml
module type S = sig module Reloc : Sledlib.RELOCATABLE type rel8 type rel16 type rel32 type mem type eaddr type t val rel8 : reloc:nativeint Reloc.relocatable -> rel8 val rel16 : reloc:nativeint Reloc.relocatable -> rel16 val rel32 : reloc:nativeint Reloc.relocatable -> rel32 ...
null
https://raw.githubusercontent.com/nrnrnr/qc--/ec56191b669729e7ce8181a2bd97a912842ea716/gen/x86i.ml
ocaml
module type S = sig module Reloc : Sledlib.RELOCATABLE type rel8 type rel16 type rel32 type mem type eaddr type t val rel8 : reloc:nativeint Reloc.relocatable -> rel8 val rel16 : reloc:nativeint Reloc.relocatable -> rel16 val rel32 : reloc:nativeint Reloc.relocatable -> rel32 ...
60ad84fd0a34e9ea6e4e4e57459de3c0fe444812d5a9ea47ce89aebaab8e2ea2
mirage/ocaml-qcow
qcow_metadata.mli
* Copyright ( C ) 2017 Docker Inc * * 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 TH...
null
https://raw.githubusercontent.com/mirage/ocaml-qcow/2418c66627dcce8420bcb06d7547db171528060a/lib/qcow_metadata.mli
ocaml
* Construct a qcow metadata structure given a set of cluster read/write/flush operations * Set the associated cluster map (which will be updated on every cluster write) * Interpret the given cluster as a refcount cluster * [get t n] return the [n]th refcount within [t] * [set t n v] set the [n]th refcount w...
* Copyright ( C ) 2017 Docker Inc * * 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 TH...
2997d44aafc133c758765425e7c7788e1faba498f5f571d1e65bb3fdcc804679
dongcarl/guix
node.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 < > Copyright © 2019 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ei...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/build-system/node.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 < > Copyright © 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build-system node) #:use-module (guix utils) #:use-module (guix...
2c9a75545c15fae4ac409913f19bd31e40dd7a520bc8c3fa3a8cbf96cf37b8b8
CLowcay/hgbc
CPU.hs
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Machine.GBC.CPU ( RegisterFile (..), Mode (..), State (..), Has (..), M (..), init, ports, getMode, setMode, getCycleClocks, setCycleClocks, ...
null
https://raw.githubusercontent.com/CLowcay/hgbc/76a8cf91f3c3b160eadf019bc8fc75ef07601c2f/core/src/Machine/GBC/CPU.hs
haskell
| The register file. | The current CPU mode. | The internal CPU state. True to trigger the halt bug | Initialize a new CPU. | Get the current cpu mode. | Get the CPU mode. | Get the values of all the registers. | Read data from the register file. | Write data to the register file. | Read a single register. ...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Machine.GBC.CPU ( RegisterFile (..), Mode (..), State (..), Has (..), M (..), init, ports, getMode, setMode, getCycleClocks, setCycleClocks, ...
6b4d77d03df829405974196a27d794bce6dfc42726ca8cec4269793e54ce9187
keigoi/ocaml-mpst-light
linocaml.ml
open Concur_shims type 'a lin = {__lin:'a} type 'a data = {data:'a} type (_,_,_,_) lens = | Zero : ('a,'b,[`cons of 'a * 'xs], [`cons of 'b * 'xs]) lens | Succ : ('x,'y,'xs,'ys) lens -> ('x,'y,[`cons of 'a * 'xs], [`cons of 'a * 'ys]) lens | Other : ('xs -> 'x) * ('xs -> 'y -> 'ys) -> ('...
null
https://raw.githubusercontent.com/keigoi/ocaml-mpst-light/099658369798b9588cb744ee0b95d09ff6e50d9f/packages/linocaml-light/linocaml.ml
ocaml
open Concur_shims type 'a lin = {__lin:'a} type 'a data = {data:'a} type (_,_,_,_) lens = | Zero : ('a,'b,[`cons of 'a * 'xs], [`cons of 'b * 'xs]) lens | Succ : ('x,'y,'xs,'ys) lens -> ('x,'y,[`cons of 'a * 'xs], [`cons of 'a * 'ys]) lens | Other : ('xs -> 'x) * ('xs -> 'y -> 'ys) -> ('...