_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
8b8616e9fcc8ea0392ed19c6f59239f2903b861f5bf61f3cc90e6f6d73989809
mirage/ocaml-git
nss.ml
module Fetch = Fetch module Push = Push
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/src/not-so-smart/nss.ml
ocaml
module Fetch = Fetch module Push = Push
4d448cdb593685051e1a4df080d5b64c0a08403238f3f4e070116d77f115003b
ont-app/igraph-vocabulary
core.cljc
(ns ont-app.igraph-vocabulary.core (:require [clojure.string :as str] ;; local libraries [ont-app.igraph.core :as igraph :refer [traverse add]] [ont-app.igraph.graph :as g] [ont-app.vocabulary.core :as voc] [ont-app.vocabulary.format :as fmt] [ont-app.igraph-vocabulary.ont :as ont] ) ) (voc...
null
https://raw.githubusercontent.com/ont-app/igraph-vocabulary/e044ae713318b9ad0820dd1e1f782abb746beb08/src/ont_app/igraph_vocabulary/core.cljc
clojure
local libraries FUN WITH READER MACROS TODO: quick temporary fix <head-kwi> + hash of sorted args. reduce-spo function this is already assigned a namespace else no namespace assume encoded http uri... else not a kw TODO: move to ont-app/rdf library traversal function TODO: this should probably be moved ...
(ns ont-app.igraph-vocabulary.core (:require [clojure.string :as str] [ont-app.igraph.core :as igraph :refer [traverse add]] [ont-app.igraph.graph :as g] [ont-app.vocabulary.core :as voc] [ont-app.vocabulary.format :as fmt] [ont-app.igraph-vocabulary.ont :as ont] ) ) (voc/put-ns-meta! 'ont-ap...
2312fd96f86fb8a57d9ac6bb13ecb2a3a4d17d4e7271cfaed8febf3c445f8eac
nickzuber/infrared
loc.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 * LICENSE...
null
https://raw.githubusercontent.com/nickzuber/infrared/b67bc728458047650439649605af7a8072357b3c/InfraredParser/flow_parser/lib/loc.ml
ocaml
* * If `a` spans (completely contains) `b`, then returns 0. * If `b` starts before `a` (even if it ends inside), returns < 0. * If `b` ends after `a` (even if it starts inside), returns > 0. Returns true if loc1 entirely overlaps loc2 Returns true if loc1 intersects loc2 at all * * This is mostly useful for de...
* * 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 * LICENSE...
49a7d4839736f45e7a611647bed3f833c967ed362d9059635847aa49cc48daa9
fukamachi/clozure-cl
cocoa-window.lisp
;;;-*-Mode: LISP; Package: GUI -*- ;;; Copyright ( C ) 2002 - 2007 Clozure Associates ;;; This file is part of OpenMCL. ;;; OpenMCL is licensed under the terms of the Lisp Lesser GNU Public ;;; License , known as the LLGPL and distributed with OpenMCL as the ;;; file "LICENSE". The LLGPL consists of a ...
null
https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/cocoa-ide/cocoa-window.lisp
lisp
-*-Mode: LISP; Package: GUI -*- This file is part of OpenMCL. License , known as the LLGPL and distributed with OpenMCL as the file "LICENSE". The LLGPL consists of a preamble and the LGPL, which is distributed with OpenMCL as the file "LGPL". Where these conflict, the preamble takes precedence. ...
Copyright ( C ) 2002 - 2007 Clozure Associates OpenMCL is licensed under the terms of the Lisp Lesser GNU Public (in-package "GUI") (eval-when (:compile-toplevel :load-toplevel :execute) (def-cocoa-default *default-font-name* :string "Courier" "Name of font to use in editor windows") (def-cocoa-default *...
ecb7858cc055a6879328f975ffdfb02f6887b3c7f865984761673e19e2a1fd83
satori-com/mzbench
mzb_string_tests.erl
-module(mzb_string_tests). -include_lib("eunit/include/eunit.hrl"). char_substitute_test() -> ?assertEqual("abc_DEF_jhi", mzb_string:char_substitute("abc DEF jhi", $ , $_)). str_to_bstr_test() -> ?assertEqual([#{<<"foo">> => <<"bar">>, <<"zoo">> => [true, <<"ding">>, <<"dont">>]}], mzb_string...
null
https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/common_apps/mzbench_utils/test/mzb_string_tests.erl
erlang
-module(mzb_string_tests). -include_lib("eunit/include/eunit.hrl"). char_substitute_test() -> ?assertEqual("abc_DEF_jhi", mzb_string:char_substitute("abc DEF jhi", $ , $_)). str_to_bstr_test() -> ?assertEqual([#{<<"foo">> => <<"bar">>, <<"zoo">> => [true, <<"ding">>, <<"dont">>]}], mzb_string...
eb8e11a40b12e4c375ad6b3bb1f75ee1cb38bc8953e6b54c6a12536cbc3ecdd6
ocaml-multicore/tezos
destination_repr.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Marigold < > Copyright ( c ) 2...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/destination_repr.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Marigold < > Copyright ( c ) 2022 Nomadic Labs < > Copyright ( c ) 2022 Oxhead Alpha < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to ...
7650787adccba3b2dd3f1bf2d50d8bf39e7df814ae7afcb31161cebc4bc8630f
bitblaze-fuzzball/fuzzball
exec_set_options.mli
Copyright ( C ) BitBlaze , 2009 - 2010 , and copyright ( C ) 2010 Ensighta Security Inc. All rights reserved . Copyright (C) BitBlaze, 2009-2010, and copyright (C) 2010 Ensighta Security Inc. All rights reserved. *) val set_defaults_for_concrete : unit -> unit val cmdline_opts : (strin...
null
https://raw.githubusercontent.com/bitblaze-fuzzball/fuzzball/b9a617b45e68fa732f1357fedc08a2a10f87a62c/execution/exec_set_options.mli
ocaml
Copyright ( C ) BitBlaze , 2009 - 2010 , and copyright ( C ) 2010 Ensighta Security Inc. All rights reserved . Copyright (C) BitBlaze, 2009-2010, and copyright (C) 2010 Ensighta Security Inc. All rights reserved. *) val set_defaults_for_concrete : unit -> unit val cmdline_opts : (strin...
32641aeb6b8ce887be673657b9037f5cca32bb62b5247c5ee1e0911a39a261fe
acl2/acl2
types-to-recognizers.lisp
C Library ; Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/44f76f208004466a9e6cdf3a07dac98b3799817d/books/kestrel/c/atc/types-to-recognizers.lisp
lisp
C Library Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "../language/types") (include-book "defstruct") (local (include-book "kest...
f45a2889a8d9be993a7bf89c4d500a32a08fee1f769b66c587b5c4ed065fe7e2
deepfire/cl-org-mode
utils.lisp
(in-package :cl-org-mode-utils) ;; set (defun make-hashset (xs &key (test 'eql)) (let ((set (make-hash-table :test test))) (dolist (x xs) (setf (gethash x set) set)) set)) (defun copy-hashset (xs) (copy-hash-table xs)) (defun hashset-add (x xs) (setf (gethash x xs) x) xs) (defun hashset-add-li...
null
https://raw.githubusercontent.com/deepfire/cl-org-mode/a45eadade90d64ec0d543b6a2befcb302d63fdbb/src/utils.lisp
lisp
set from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum from pergamum
(in-package :cl-org-mode-utils) (defun make-hashset (xs &key (test 'eql)) (let ((set (make-hash-table :test test))) (dolist (x xs) (setf (gethash x set) set)) set)) (defun copy-hashset (xs) (copy-hash-table xs)) (defun hashset-add (x xs) (setf (gethash x xs) x) xs) (defun hashset-add-list (lis...
a95486669b9480a4fa7513d71396bfdbbc6a9f828228c83b5e75b45fcc97e10b
biocaml/biocaml
biocaml_fasta.mli
* FASTA files . The FASTA family of file formats has different incompatible descriptions ( { { : -fasta/fasta.jsp } 1 } , { { : } , { { : }3 } , etc . ) . Roughly FASTA files are in the format : { v # comment # comment ... > header sequence > hea...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/src/tmp/biocaml_fasta.mli
ocaml
* A sequence of characters. * A sequence of integer quality scores. * A named FASTA item. * The format details for any kind of FASTA file. * The default tags (for [char_seq]). * The default tags (for [int_seq]). * Test the value of [t.sequence]. * Test the value of [t.sequence]. * Errors raised when converting ...
* FASTA files . The FASTA family of file formats has different incompatible descriptions ( { { : -fasta/fasta.jsp } 1 } , { { : } , { { : }3 } , etc . ) . Roughly FASTA files are in the format : { v # comment # comment ... > header sequence > hea...
28c825625c3c16a0724f08e7d75cbaedac283dbc5e9540c119868df8baa920b2
b-social/zebra
sources_test.clj
(ns zebra.sources-test (:require [clojure.test :refer :all] [zebra.sources :as sources] [zebra.helpers.constants :refer [api-key tokens]]) (:import [com.stripe.exception InvalidRequestException])) (deftest create-source (let [source (sources/create {:type "card" ...
null
https://raw.githubusercontent.com/b-social/zebra/0dac502c2a493d3eeb74b35195dbcae206978d55/test/zebra/sources_test.clj
clojure
(ns zebra.sources-test (:require [clojure.test :refer :all] [zebra.sources :as sources] [zebra.helpers.constants :refer [api-key tokens]]) (:import [com.stripe.exception InvalidRequestException])) (deftest create-source (let [source (sources/create {:type "card" ...
7c8e6bd72b68d0448e98f7070bbfb1e8f09a749ca83ab0675a1ba4daaacd4f43
cfelde/ebbs-social-frontend
event_dispatch.cljs
(ns ebbs-social-frontend.frontpage.event-dispatch (:require [re-frame.core :as rf] [clojure.string :as str])) -- Domino 1 - Event Dispatch ----------------------------------------------- (defn dispatch-create-new-forum [_] (rf/dispatch [:create-new-forum])) (defn dispatch-edit-forum [field valu...
null
https://raw.githubusercontent.com/cfelde/ebbs-social-frontend/ad47de958f3e60bbafe0867f3e192981d3acf3d6/src/ebbs_social_frontend/frontpage/event_dispatch.cljs
clojure
(ns ebbs-social-frontend.frontpage.event-dispatch (:require [re-frame.core :as rf] [clojure.string :as str])) -- Domino 1 - Event Dispatch ----------------------------------------------- (defn dispatch-create-new-forum [_] (rf/dispatch [:create-new-forum])) (defn dispatch-edit-forum [field valu...
fd48a027854daf48955e5c361ecdc66e962d9d1b5c44df5876f2c2bc09c009c8
brianhempel/maniposynth
sort.ml
let rec insert_into_sorted elem list = match list with | hd :: tail -> if elem <= hd then elem :: list else hd :: insert_into_sorted elem tail | [] -> [ elem ] [@@pos 429, 108] let rec sort list = match list with | hd2 :: tail2 -> let tail_sorted = sort tail2 [@@pos 117, 5] in insert_into...
null
https://raw.githubusercontent.com/brianhempel/maniposynth/8cb8e0c84db2ffb51feae2fccb10dbff40c4e0e0/expert_eval_manual/sort.ml
ocaml
let rec insert_into_sorted elem list = match list with | hd :: tail -> if elem <= hd then elem :: list else hd :: insert_into_sorted elem tail | [] -> [ elem ] [@@pos 429, 108] let rec sort list = match list with | hd2 :: tail2 -> let tail_sorted = sort tail2 [@@pos 117, 5] in insert_into...
635ee317397a04cf44fc0cabc8240519d8746f04a6fe35afb363a1d2d95cc6b6
pascalpoizat/fbpmn
Html.hs
# LANGUAGE QuasiQuotes # module Fbpmn.Analysis.Tla.IO.Html where import Data.Map.Strict ((!?)) import qualified Data.Map.Strict as M ( toList, ) import qualified Data.Text as T import Fbpmn.Analysis.Tla.Model import Fbpmn.Helper (FWriter (FW)) import NeatInterpolation (text) | FWriter from TLA Log to HTML . wr...
null
https://raw.githubusercontent.com/pascalpoizat/fbpmn/7a2fb9ef9bfc878710125098cb4813fb72597a5f/src/Fbpmn/Analysis/Tla/IO/Html.hs
haskell
| The model file must be in the same place than the log file. success log, nothing to generate --> not possible
# LANGUAGE QuasiQuotes # module Fbpmn.Analysis.Tla.IO.Html where import Data.Map.Strict ((!?)) import qualified Data.Map.Strict as M ( toList, ) import qualified Data.Text as T import Fbpmn.Analysis.Tla.Model import Fbpmn.Helper (FWriter (FW)) import NeatInterpolation (text) | FWriter from TLA Log to HTML . wr...
3db066466ef0eb409bc5609bbb904cc1099838a0c6bcff81010b279712e9b0b7
zenhack/haskell-capnp
Common.hs
Data types that are used by more than one intermediate form . -- See also IR.Name, which defines identifiers, which are also used in more than one IR . # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # module IR.Common where import qualified Capnp.Basics as B import Capnp.Repr.Parsed (Parsed) import Data.Bifunct...
null
https://raw.githubusercontent.com/zenhack/haskell-capnp/6cf9fae35189a3668f2740d64c634675ec5fbdec/cmd/capnpc-haskell/IR/Common.hs
haskell
See also IR.Name, which defines identifiers, which are also | Return the size in bits of a type that belongs in the data section of a struct. which may be different in different stages of the pipeline. Likewise, the 'b' parameter is the "Brand." | The type and location of a field. | The field is in the struct's d...
Data types that are used by more than one intermediate form . used in more than one IR . # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # module IR.Common where import qualified Capnp.Basics as B import Capnp.Repr.Parsed (Parsed) import Data.Bifunctor (Bifunctor (..)) import qualified Data.Map.Strict as M impor...
a1033557b4c1251ed0402db9088b817fc32b1921735b53d33a94137b997a688b
minad/intro
BaseCompat.hs
# LANGUAGE NoImplicitPrelude # module BaseCompat ( module X ) where import Intro as X import Control.Applicative as X import Control.Arrow as X hiding (first, second) import Control.Category as X import Control.Concurrent as X import Control.Exception as X import Control.Exception.Base as X import Control.Monad as ...
null
https://raw.githubusercontent.com/minad/intro/45a0bbcfebae747c77e39d30f7ed9c7bb52ac098/test/BaseCompat.hs
haskell
# LANGUAGE NoImplicitPrelude # module BaseCompat ( module X ) where import Intro as X import Control.Applicative as X import Control.Arrow as X hiding (first, second) import Control.Category as X import Control.Concurrent as X import Control.Exception as X import Control.Exception.Base as X import Control.Monad as ...
313ded9006f979c0578c23acd877177c24610e5877b4eaeffb7290b34efddc84
dyoo/whalesong
impl.rkt
#lang s-exp "../../lang/js/js.rkt" (require "../structs.rkt") (declare-implementation #:racket "racket-impl.rkt" #:javascript ("js-impl.js") #:provided-values (specialize!))
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/resource/specialize/impl.rkt
racket
#lang s-exp "../../lang/js/js.rkt" (require "../structs.rkt") (declare-implementation #:racket "racket-impl.rkt" #:javascript ("js-impl.js") #:provided-values (specialize!))
6d6c71fd6345a74ea4cb0e1c6ba58664be0ae459b835632a3e71e6a77671bfcd
weavejester/clojure-dbm
memory.clj
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) which ;; can be found in the file epl-v10.html at the root of this distribution. By ;; using this software in any fashion, you are agreeing to be bound by the ;; ter...
null
https://raw.githubusercontent.com/weavejester/clojure-dbm/5742dccbb248736735b9f158a56dc43cbec1e2f5/src/clojure_dbm/memory.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright ( c ) . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns clojure-dbm.memory "Implementation of the clojure-dbm to an in-memory map. Primarily for testing purposes." (:use clojure-dbm)) (def memory-stores (ref {})) (defn- get-store "Find or ...
545cf8ef67cd0b5abe503c11d753e9345cc0a9c6d8025aa6a3af0c558fc909e0
ocamllabs/ocaml-effects
odoc_name.ml
(***********************************************************************) (* *) (* OCamldoc *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/ocamldoc/odoc_name.ml
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 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 . let infix_chars = [ '|' ; ...
c273ae6c14bf6ffed793e1180f55f3aebaa10713c999241f8e5a1470f6856482
sile/passage
passage_sampler_probabilistic.erl
2017 < > %% %% @doc Probabilistic Sampler. %% %% This sampler samples the spans probabilistically. %% %% === Examples === %% %% ``` %% Context = passage_span_context_null, %% Sampler = passage_sampler_probabilistic:new(0.5), %% Reporter = passage_reporter_null:new(), %% %% ok = passage_tracer_registry:register(fo...
null
https://raw.githubusercontent.com/sile/passage/2bbc1847e172e28c766fcc62fb66f6643fb52679/src/passage_sampler_probabilistic.erl
erlang
@doc Probabilistic Sampler. This sampler samples the spans probabilistically. === Examples === ``` Context = passage_span_context_null, Sampler = passage_sampler_probabilistic:new(0.5), Reporter = passage_reporter_null:new(), ok = passage_tracer_registry:register(foo, Context, Sampler, Reporter). ''' ----...
2017 < > -module(passage_sampler_probabilistic). -behaviour(passage_sampler). -export([new/1]). -export([is_sampled/3]). This will sample spans by the given ` SamplingRate ' . E.g. , if ` SamplingRate = 0.5 ' , the half of the spans are sampled probabilistically . The value of ` SamplingRate ' must be b...
b3e9b63b9921057e0ccd6694e965285df03f6d0cbce3b53344a76018a6f3e05f
2600hz/community-scripts
doubles.erl
[10, 10, 3.141569, 1000].
null
https://raw.githubusercontent.com/2600hz/community-scripts/b0b81342bf02300fcdbda99e4cecc1ee93823c70/CloneTools/lib/ejson-0.1.0/t/cases/doubles.erl
erlang
[10, 10, 3.141569, 1000].
930b82a35e3eca5d42a266647f4cf21f480f8d7f9d9be41b6988e80cac48559d
ijvcms/chuanqi_dev
server_app.erl
%% Author: Administrator Created : 2012 - 6 - 10 %% Description: TODO: Add description to server_app -module(server_app). -behaviour(application). %% -------------------------------------------------------------------- %% Include files %% -------------------------------------------------------------------- -include(...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/system/server_app.erl
erlang
Author: Administrator Description: TODO: Add description to server_app -------------------------------------------------------------------- Include files -------------------------------------------------------------------- -------------------------------------------------------------------- Behavioural exports ...
Created : 2012 - 6 - 10 -module(server_app). -behaviour(application). -include("common.hrl"). -include("record.hrl"). -export([ start/2, stop/1 ]). -export([]). Macros Records Returns : { ok , Pid } | { ok , Pid , State } | start(normal, []) -> inets:start(), ssl:start(), IsTty ...
671175905bb285d2817d6d5434b11dc01d33c2b0b5e9f1da96ae82fc8f76b528
xtdb/core2
build.clj
(ns build (:require [clojure.tools.build.api :as b])) (def basis (b/create-basis {:project "deps.edn"})) (defn prep [_opts] (b/javac {:basis basis :src-dirs ["src/main/java"] :javac-opts ["-source" "11" "-target" "11" "-XDignore.symbol.file" ...
null
https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/modules/s3/build.clj
clojure
(ns build (:require [clojure.tools.build.api :as b])) (def basis (b/create-basis {:project "deps.edn"})) (defn prep [_opts] (b/javac {:basis basis :src-dirs ["src/main/java"] :javac-opts ["-source" "11" "-target" "11" "-XDignore.symbol.file" ...
3e58a543916397143c2cee70fddb72a92340c0e5df2a9bb2259e93c51bd7668a
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
ReceivedPaymentMethodDetailsFinancialAccount.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema ReceivedPaymentMethodDetailsFinancialAccount module StripeAPI.Types.Receive...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/ReceivedPaymentMethodDetailsFinancialAccount.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema ReceivedPaymentMethodDetailsFinancialAccount | Defines the object schema located at @components.schemas.received_payment_method_details_financial_account@ in the specification. | id: The FinancialAccount ID. Const...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.ReceivedPaymentMethodDetailsFinancialAccount where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encodin...
99a17fa5404df94f44224b764d49d19685ebd680486c52f2ee1d770dd8e64a44
pauleve/pint
ph_types.ml
Copyright or © or Copr . , Morgan Magnin , ( 2010 ) This software is a computer program whose purpose is to provide Process Hitting related tools . This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software . You can use , m...
null
https://raw.githubusercontent.com/pauleve/pint/7cf943ec60afcf285c368950925fd45f59f66f4a/phlib/ph_types.ml
ocaml
* Generic types TODO: move to commonlib * * Process Hitting types * name * level (a,i) * (b,j) * j' STATE * Context Proc level couple set Objectives
Copyright or © or Copr . , Morgan Magnin , ( 2010 ) This software is a computer program whose purpose is to provide Process Hitting related tools . This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software . You can use , m...
1f7a137fbbf542552c2dcda07c594989e48815f1442c39c80ab6677383e78a1f
evturn/haskellbook
15.10-optional-monoid.hs
import Data.Monoid data Optional a = Nada | Only a deriving (Eq, Show) instance Monoid a => Monoid (Optional a) where mempty = Nada mappend (Only a) (Only b) = Only (mappend a b) mappend Nada (Only b) = Only b mappend (Only a) Nada = Only a ...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/15/15.10-optional-monoid.hs
haskell
import Data.Monoid data Optional a = Nada | Only a deriving (Eq, Show) instance Monoid a => Monoid (Optional a) where mempty = Nada mappend (Only a) (Only b) = Only (mappend a b) mappend Nada (Only b) = Only b mappend (Only a) Nada = Only a ...
2bad5983a52ccab82c35c5f5f3bb9e13d1b898e8104cc5e3a0d5866de8bf500f
jeromesimeon/Galax
code_nestedloop.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_nestedloop.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_nestedloop.ml , v 1.15 2007/02/01 22:08:45 simeon Exp $ open Error open Xquery_algebra_ast open Xquery_algebra_ast_util open Algebra_type open Code_selection_context open Execution_context open Datatypes open Dm open Dm_util o...
38828d32276c6df8157762fed22be1e6d4bb3d37f704e9e69b3e86e436da930c
gedge-platform/gedge-platform
sysmon_handler_sup.erl
Copyright ( c ) 2011 Basho Technologies , Inc. All Rights Reserved . Copyright ( c ) 2018 Pivotal Software , Inc. All rights reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtai...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/sysmon_handler/src/sysmon_handler_sup.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 permissions and limitations under the License. API Supervisor callbacks ====...
Copyright ( c ) 2011 Basho Technologies , Inc. All Rights Reserved . Copyright ( c ) 2018 Pivotal Software , Inc. All rights reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on ...
68dc96c5764cec5fbbc634de77bd9b9485c090e8cdc6dca5b7cc8ce7970e08eb
witheve/eve-experiments
renderer.cljs
(ns ui.renderer) (def empty-obj (js-obj)) (defn glom [renderer inserts removes] (as-> {} updates (reduce (fn [elems [elem-id attribute value]] (let [elem (get elems elem-id (js-obj "inserts" (js-obj)))] (aset elem "inserts" attribute value) (assoc elems elem-id elem...
null
https://raw.githubusercontent.com/witheve/eve-experiments/8a1cdb353b3e728bc768b315e5b9a9f9dc785ae1/server/src/ui/renderer.cljs
clojure
@NOTE: If any props still need partial removal on update add them into a condp as the else clause (.log js/console "INSERT " child "into" parent "at" target-ix "vs" greatest-ix "of" cnt) @NOTE: This is a linear scan for simplicity, if it's slow it can be replaced w/ a binary search Preprocessing phase to ensure that...
(ns ui.renderer) (def empty-obj (js-obj)) (defn glom [renderer inserts removes] (as-> {} updates (reduce (fn [elems [elem-id attribute value]] (let [elem (get elems elem-id (js-obj "inserts" (js-obj)))] (aset elem "inserts" attribute value) (assoc elems elem-id elem...
9cd7f4a162a12937199a455842c7cf91d1266404f8067a2680cc0291475c3bc6
ml4tp/tcoq
vnorm.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/pretyping/vnorm.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Environ * { 6...
9d7e2e9493c6d8253fa9a6ccd9c9591df8caa3d6b54bb19019daa3e0dfc286e6
TerrorJack/ghc-alter
T7853.hs
import qualified Data.ByteString as BS import System.IO import GHC.Foreign import Control.Exception import Data.Word decode :: TextEncoding -> BS.ByteString -> IO (Either SomeException String) decode enc bs = try $ BS.useAsCStringLen bs $ peekCStringLen enc main :: IO () ( just fits into 1 byte ) ( just large eno...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/IO/T7853.hs
haskell
(largest allowed codepoint)
import qualified Data.ByteString as BS import System.IO import GHC.Foreign import Control.Exception import Data.Word decode :: TextEncoding -> BS.ByteString -> IO (Either SomeException String) decode enc bs = try $ BS.useAsCStringLen bs $ peekCStringLen enc main :: IO () ( just fits into 1 byte ) ( just large eno...
d74f58af6a98eb5f615d912234a984dbadb15da9b285fae55c24cba57bf823ec
NorfairKing/the-notes
Terms.hs
module GraphTheory.Terms where import Notes makeDefs [ "graph" , "vertex" , "edge" ]
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/GraphTheory/Terms.hs
haskell
module GraphTheory.Terms where import Notes makeDefs [ "graph" , "vertex" , "edge" ]
adebbbb4cb3404bc74ea246c979325277efa72572ba18b0a0ff72376f88c77f8
AccelerateHS/accelerate-llvm
Native.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeAppl...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/0dec9b4deeb86a28fe89fb330f93aa025ef38745/accelerate-llvm-native/src/Data/Array/Accelerate/LLVM/Native.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE TypeSynonymInstances # | Module ...
# LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # Copyright : [ 2014 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) multicore CPUs . Expressions are on - line translated into LLVM code , which is environment variable ' ACCELERATE_LLV...
7d77f7569980c554ffe886f909618775b39e5167af2c93b5170678ed9922ae37
camllight/camllight
main.mli
$ Id$ value read_fun : unit -> char;; value go : unit -> unit;; value input_stream : in_channel ref;; value trace_parsing : bool ref;;
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/asl/main.mli
ocaml
$ Id$ value read_fun : unit -> char;; value go : unit -> unit;; value input_stream : in_channel ref;; value trace_parsing : bool ref;;
54e03cc1df5f2c100d7034592be15091605a13117709b8608c686ce47726d556
wavejumper/rehook
project.clj
(defproject rehook/test "2.1.11" :description "React Hooks for Clojurescript" :url "" :dependencies [[org.clojure/clojurescript "1.10.520" :scope "provided"] [org.clojure/clojure "1.10.1" :scope "provided"] [rehook/dom "2.1.11" :scope "provided"] [rehook/core "2.1.11" :scope "provided"] [zprint "0....
null
https://raw.githubusercontent.com/wavejumper/rehook/c1a4207918827f4b738cdad9a9645385e5e10ff4/rehook-test/project.clj
clojure
-cljs/issues/488
(defproject rehook/test "2.1.11" :description "React Hooks for Clojurescript" :url "" :dependencies [[org.clojure/clojurescript "1.10.520" :scope "provided"] [org.clojure/clojure "1.10.1" :scope "provided"] [rehook/dom "2.1.11" :scope "provided"] [rehook/core "2.1.11" :scope "provided"] [zprint "0....
dd518b21cc7c4594fe0954d255e5b01d97df629c5a8abb1be6d3fa7c9f1055d5
TrustInSoft/tis-kernel
logic_print.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/ast_printing/logic_print.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
fb95392024227d832f3f2e8689df03692149a01d174930e4db9d987ee73c8e38
coinmetrics/haskell-tools
Prometheus.hs
{-# LANGUAGE OverloadedStrings #-} module CoinMetrics.Prometheus ( OptionPrometheus(..) , optionPrometheus , forkPrometheusMetricsServer , measureTime ) where import Control.Concurrent import Control.Exception import Control.Monad import Data.String import qualified Network.HTTP.Types as H import qualified ...
null
https://raw.githubusercontent.com/coinmetrics/haskell-tools/94d59497b6c4d829dd680df82c71fe607877ae76/coinmetrics/CoinMetrics/Prometheus.hs
haskell
# LANGUAGE OverloadedStrings #
module CoinMetrics.Prometheus ( OptionPrometheus(..) , optionPrometheus , forkPrometheusMetricsServer , measureTime ) where import Control.Concurrent import Control.Exception import Control.Monad import Data.String import qualified Network.HTTP.Types as H import qualified Network.Wai as W import qualified N...
b59951f15af53dd95d8824ebfb032f826ce2d158b72c4bcce730379541195dd1
mikera/alchemy
engine.clj
(ns mikera.alchemy.engine (:require [mikera.cljutils.find :as find]) (:use mikera.orculje.util) (:use mikera.orculje.core) (:use mikera.orculje.rules) (:use mikera.cljutils.error) (:require [mikera.orculje.engine :as en]) (:require [mikera.alchemy.config :as config]) (:require [mikera.orculje.mapmaker ...
null
https://raw.githubusercontent.com/mikera/alchemy/57d47eea6ecbef20e97c9a360b57d50985039bf0/src/main/clojure/mikera/alchemy/engine.clj
clojure
message logging ====================================================== query functions ========================================================= messages ======================================================= item creation (these are set later by lib) ======================================================= d...
(ns mikera.alchemy.engine (:require [mikera.cljutils.find :as find]) (:use mikera.orculje.util) (:use mikera.orculje.core) (:use mikera.orculje.rules) (:use mikera.cljutils.error) (:require [mikera.orculje.engine :as en]) (:require [mikera.alchemy.config :as config]) (:require [mikera.orculje.mapmaker ...
b15055dedc6cf4c15b6cc7c72d777b769bf8e932e2bee339108dcd748600f55e
wenkokke/priority-sesh
Session.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # module Control.Concurrent.Channel.Session ( Send, Recv, End, Session (..), OneShot.Communication...
null
https://raw.githubusercontent.com/wenkokke/priority-sesh/51b2a8a8c53804ae90d645f9b3223d8d7d6160b8/src/Control/Concurrent/Channel/Session.hs
haskell
| A channel endpoint over which one sends an 'a' before continuing as 's'. | A channel endpoint over which one receives an 'a' before continuing as 's'. | A channel endpoint over which one synchronised before ending the session. | The class of session types. NOTE: 'new' can be used to construct deadlocking proc...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # module Control.Concurrent.Channel.Session ( Send, Recv, End, Session (..), OneShot.Communication...
1bcd16b30dea355031af1acb02ba110f118ea682e870b48e03070da64ace7f3b
karlhof26/gimp-scheme
FU_artist_inkpen.scm
; FU_artist_inkpen.scm version 2.9 [ gimphelp.org ] last modified / tested by 02/15/2014 on GIMP-2.8.10 ; ; 02/13/2014 - work with non-rgb, merge option and install info added ;============================================================== ; ; Installation: ; This script should be placed in the user or system-w...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/2a1258bc3771287f83bd0ae94b6e7341a7bb4371/FU_artist_inkpen.scm
scheme
FU_artist_inkpen.scm 02/13/2014 - work with non-rgb, merge option and install info added ============================================================== Installation: This script should be placed in the user or system-wide script folder. Windows Vista/7/8) or or C:\Documents and Settings\yourname\.gimp-2.8\...
version 2.9 [ gimphelp.org ] last modified / tested by 02/15/2014 on GIMP-2.8.10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\.gimp-2.8\scripts Windows XP C:\Program Files\GIMP 2\share\gimp\2.0\scripts /home / yourname/.gimp-2.8 / scripts it under the terms of the GNU Gen...
e25fa582759b5ae07f802f7714ce89eb8e57bda457c40bc6fdfaa4e8604f7067
ocamllabs/ocaml-modular-implicits
Tests.ml
(* Le sous-typage est "syntaxique" *) fun (x : < x : int >) y z -> (y :> 'a), (x :> 'a), (z :> 'a);; (* - : (< x : int > as 'a) -> 'a -> 'a * 'a = <fun> *) des classes class ['a] c () = object method f = (new c (): int c) end and ['a] d () = object inherit ['a] c () end;; (* class ['a] c : unit -> object cons...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-objects/Tests.ml
ocaml
Le sous-typage est "syntaxique" - : (< x : int > as 'a) -> 'a -> 'a * 'a = <fun> class ['a] c : unit -> object constraint 'a = int method f : 'a c end and ['a] d : unit -> object constraint 'a = int method f : 'a c end 'a libre dans classe d Instancie #c class virtual c : unit -> object end and ['a] d :...
fun (x : < x : int >) y z -> (y :> 'a), (x :> 'a), (z :> 'a);; des classes class ['a] c () = object method f = (new c (): int c) end and ['a] d () = object inherit ['a] c () end;; class ['a] c () = object method f (x : 'a) = () end and d () = object inherit ['a] c () end;; class virtual c () = object en...
749c3c019e7012d92c2f9ebe74e9253ad2ad250a3522edd638fd6b534fecf238
alexandergunnarson/quantum
amazon.cljc
(ns quantum.test.deploy.amazon (:require [quantum.deploy.amazon :as ns])) #_(defn test:default-account []) #_(defn test:default-instance-name [ ]) #_(defn test:default-user [ ]) #_(defn test:get-instance-id [& [instance-name]]) #_(defn test:get-server-region [& ...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/deploy/amazon.cljc
clojure
(ns quantum.test.deploy.amazon (:require [quantum.deploy.amazon :as ns])) #_(defn test:default-account []) #_(defn test:default-instance-name [ ]) #_(defn test:default-user [ ]) #_(defn test:get-instance-id [& [instance-name]]) #_(defn test:get-server-region [& ...
d1976840f864984074ef8f5ef39389995b54b6b4c539d6eef7f5a3b4bf70bac0
naveensundarg/prover
pattern-match.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-lisp -*- ;;; File: pattern-match.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; So...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/pattern-match.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-lisp -*- File: pattern-match.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the sp...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2012 . ...
d927158a2a6b6e4add7663817472f49aa40004d3ba5583cfed09fbb104a4eb9e
ekmett/eq
Hetero.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # #if __GLASGOW_HASKELL__ < 806 {-# LANGUAGE TypeInType #-} #endif ------------------------...
null
https://raw.githubusercontent.com/ekmett/eq/0e672df911209ca7234e8b4851a30e450e1c6e27/src/Data/Eq/Type/Hetero.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TypeInType # --------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : provisional Leibnizian equality à la "Data.Eq.Type", generalized to be heterogeneous using higher-rank ki...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # #if __GLASGOW_HASKELL__ < 806 #endif Module : Data . Eq . Type . Copyright : ( C ) 2011 - 2014 , 2018 Maintainer :...
5a11d2c210bf6a8845a7d19fac8176a0c22a64338411037bf4b0c69d5fa266d9
nikita-volkov/rebase
Concurrent.hs
module Rebase.Foreign.Concurrent ( module Foreign.Concurrent ) where import Foreign.Concurrent
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Foreign/Concurrent.hs
haskell
module Rebase.Foreign.Concurrent ( module Foreign.Concurrent ) where import Foreign.Concurrent
3e3d42b71b5c59fe0b25d7bfbb836e8e8e1f51b40fba292e6632f1e252a12c01
nivertech/github-backup
Branch.hs
git branch stuff - - Copyright 2011 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2011 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Git.Branch where import qualified Data.ByteString.Lazy.Char8 as L import Common import Git import Git.Sha...
null
https://raw.githubusercontent.com/nivertech/github-backup/490bc0e1fe0395a54e70de5aa0201c81d1a64476/Git/Branch.hs
haskell
The currently checked out branch. cannot fast-forward. divergent fail better worse same Commits the index into the specified branch (or other ref), - with the specified parent refs, and returns the committed sha
git branch stuff - - Copyright 2011 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2011 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Git.Branch where import qualified Data.ByteString.Lazy.Char8 as L import Common import Git import Git.Sha...
a7f10c0ba953b94ae76dc8b447d507effcb26a62323848c516c95d12a81dffde
janestreet/ecaml
ecaml_test_helpers.ml
open! Core open! Async open! Ecaml open! Expect_test_helpers_core module Buffer_helper = Buffer_helper let show ?(show_point = true) () = if show_point then Buffer_helper.show_point () else Current_buffer.contents () |> Text.to_utf8_bytes |> message ;; let raise_if_in_minibuffer_key = "<f13>" let minibuffer_was...
null
https://raw.githubusercontent.com/janestreet/ecaml/6828e48c252e7bd756e2e37a5bacefe6c4af4ba9/ecaml_test_helpers/src/ecaml_test_helpers.ml
ocaml
open! Core open! Async open! Ecaml open! Expect_test_helpers_core module Buffer_helper = Buffer_helper let show ?(show_point = true) () = if show_point then Buffer_helper.show_point () else Current_buffer.contents () |> Text.to_utf8_bytes |> message ;; let raise_if_in_minibuffer_key = "<f13>" let minibuffer_was...
4910d2be88e77ec3fc4f6d85e5f42e4ef29497411f5dfff112673bf8427695ba
craigl64/clim-ccl
color-ed.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - USER ; Base : 10 ; Lowercase : Yes -*- ;; ;; ;; See the file LICENSE for the full license governing this code. ;; (in-package :clim-user) (define-application-frame color-editor () ((red :initform 0) (green :initform 0) (blue :initform...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/test/color-ed.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : CLIM - USER ; Base : 10 ; Lowercase : Yes -*- See the file LICENSE for the full license governing this code.
(in-package :clim-user) (define-application-frame color-editor () ((red :initform 0) (green :initform 0) (blue :initform 0) (ihs :initform :rgb)) (:command-table (color-editor :inherit-from (accept-values-pane))) (:pane (scrolling () (make-pane 'application-pane :width :compute :h...
5f266b6e6da4759fffa5b48c81afea7042e1934ce292f430dab9fae45e9325e1
polymeris/cljs-aws
application_auto_scaling.cljs
(ns cljs-aws.application-auto-scaling (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "ApplicationAutoScaling" "application-autoscaling-2016-02-06.min.json")
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/src/cljs_aws/application_auto_scaling.cljs
clojure
(ns cljs-aws.application-auto-scaling (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "ApplicationAutoScaling" "application-autoscaling-2016-02-06.min.json")
23ae1c6a78b98683688b4b8bdff7de9ba6b370230c6b30fd7c94b4725dfeac56
berke/aurochs
stringifier.ml
(* Stringifier *) open Pffpsf let print_indent oc n = for i = 0 to n - 1 do output_char oc ' ' done let print_ocaml_string ?(indent=4) ?(cols=32) () oc u = let m = String.length u in print_indent oc (indent - 1); fp oc "\""; let rec loop i = if i = m then fp oc "\"\n" else begin ...
null
https://raw.githubusercontent.com/berke/aurochs/637bdc0d4682772837f9e44112212e7f20ab96ff/backends/stringifier.ml
ocaml
Stringifier
open Pffpsf let print_indent oc n = for i = 0 to n - 1 do output_char oc ' ' done let print_ocaml_string ?(indent=4) ?(cols=32) () oc u = let m = String.length u in print_indent oc (indent - 1); fp oc "\""; let rec loop i = if i = m then fp oc "\"\n" else begin if i > 0 &&...
bbfa2dd5f1835ba484a653edb6b9b864e903ec88fa3e358ffc93cc6b98c8a3ab
synrc/cr
cr_interconnect.erl
-module(cr_interconnect). -copyright('Synrc Research Center s.r.o.'). -include("cr.hrl"). -compile(export_all). -record(state, {succ,pred,port,name,socket,module,nodes}). sup() -> interconnect_sup. init([Name,Mod,Socket,Nodes]) -> #state{name=Name,module=Mod,socket=Socket,nodes=Nodes}. reply(Socket,Result,State) -> g...
null
https://raw.githubusercontent.com/synrc/cr/b4a30dc55d30500a1c239d6234444e1ecff5aab5/src/tcp/cr_interconnect.erl
erlang
-module(cr_interconnect). -copyright('Synrc Research Center s.r.o.'). -include("cr.hrl"). -compile(export_all). -record(state, {succ,pred,port,name,socket,module,nodes}). sup() -> interconnect_sup. init([Name,Mod,Socket,Nodes]) -> #state{name=Name,module=Mod,socket=Socket,nodes=Nodes}. reply(Socket,Result,State) -> g...
6cdbc53c52dc72e4943648c7d1692adddfe7031c6e63278e0ed732abfc871f70
arjunguha/haskell-couchdb
JSON.hs
-- |Convenient functions for parsing JSON responses. Use these functions to write the ' readJSON ' method of the ' JSON ' class . module Database.CouchDB.JSON ( jsonString , jsonInt , jsonObject , jsonField , jsonBool , jsonIsTrue ) where import Text.JSON import Data.Ratio (numerator,denominator) jso...
null
https://raw.githubusercontent.com/arjunguha/haskell-couchdb/c541f3024b358a11239f469a1fb0d82558e6bb5f/src/Database/CouchDB/JSON.hs
haskell
|Convenient functions for parsing JSON responses. Use these |Extract a field as a value of type 'a'. If the field does not exist or cannot be parsed as type 'a', fail. |'True' when the field is defined and is true. Otherwise, 'False'.
functions to write the ' readJSON ' method of the ' JSON ' class . module Database.CouchDB.JSON ( jsonString , jsonInt , jsonObject , jsonField , jsonBool , jsonIsTrue ) where import Text.JSON import Data.Ratio (numerator,denominator) jsonString :: JSValue -> Result String jsonString (JSString s) = re...
5394bfa6b46444f34fa91f9a0dcc84f8c539a05ed42e70920d68b8ebee224bd6
Dasudian/DSDIN
dsdtx_tests.erl
-module(dsdintx_tests). -include_lib("eunit/include/eunit.hrl"). -include_lib("apps/dsdcore/include/blocks.hrl"). -define(TEST_MODULE, dsdintx). -define(RECIPIENT_PUBKEY, <<"recipient_pubkey">>). %% Probably to be moved to common tests apply_signed_txs_test_() -> {setup, fun() -> ok = meck:n...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdtx/test/dsdtx_tests.erl
erlang
Probably to be moved to common tests Initial balance - spend_tx amount - spend_tx fee + spend_tx fee + block mining reward
-module(dsdintx_tests). -include_lib("eunit/include/eunit.hrl"). -include_lib("apps/dsdcore/include/blocks.hrl"). -define(TEST_MODULE, dsdintx). -define(RECIPIENT_PUBKEY, <<"recipient_pubkey">>). apply_signed_txs_test_() -> {setup, fun() -> ok = meck:new(dsdc_chain, [passthrough]), ...
fd725eb5c98515c92534b0cd8de0cca99435574ef72f1018127b92d3bfcc006f
janestreet/incr_dom_partial_render
table_id.mli
open Core type t [@@deriving hash, sexp_of] include Comparable.S_binable with type t := t include Hashable with type t := t val create : unit -> t val to_int_exn : t -> int val to_string : t -> string
null
https://raw.githubusercontent.com/janestreet/incr_dom_partial_render/82be6e4688d8491c9a71a2aa7d1591da7aa61eee/src/table_id.mli
ocaml
open Core type t [@@deriving hash, sexp_of] include Comparable.S_binable with type t := t include Hashable with type t := t val create : unit -> t val to_int_exn : t -> int val to_string : t -> string
bfce5e8faaaf83ecfb77bac22d8f761f74244eff8ca79c9cf9f7ed706d536232
levand/quiescent
lifecycle_callbacks.cljs
(ns lifecycle_callbacks (:require [quiescent.core :as q] [quiescent.dom :as d])) (def data (atom {:show-it false :text "Hello"})) (declare Parent) (defn render [] (q/render (Parent @data) (.getElementById js/document "content"))) (defn listener [type] (fn [& args] (....
null
https://raw.githubusercontent.com/levand/quiescent/2063ebcaffb2c62e48a177c894a10f9066b7f2cc/examples/lifecycle-callbacks/src/lifecycle_callbacks.cljs
clojure
(ns lifecycle_callbacks (:require [quiescent.core :as q] [quiescent.dom :as d])) (def data (atom {:show-it false :text "Hello"})) (declare Parent) (defn render [] (q/render (Parent @data) (.getElementById js/document "content"))) (defn listener [type] (fn [& args] (....
48538d23521a64127ae9881e636f507ff5953462a85728591bf0ee1c123158fd
AdaCore/why3
eliminate_if.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/transform/eliminate_if.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Ident open Term open Decl let rec has_if t = match t.t_node with | Tif _ -> true | _ -> TermTF.t...
49a42d40d1a5d35bcd14b624b3cff6ef5aa3be06af888f9f4ac8f9fe6374a16a
patrickt/bracer
Syntax.hs
module Language.Bracer.Syntax ( module X ) where import Language.Bracer.Syntax.Names as X import Language.Bracer.Syntax.Lenses as X import Language.Bracer.Syntax.Variables as X
null
https://raw.githubusercontent.com/patrickt/bracer/ebad062d421f7678ddafc442245e361c0423cb1b/Language/Bracer/Syntax.hs
haskell
module Language.Bracer.Syntax ( module X ) where import Language.Bracer.Syntax.Names as X import Language.Bracer.Syntax.Lenses as X import Language.Bracer.Syntax.Variables as X
a3392c22b9c880cdbe7ec3b4588764cdd34f496847d2a0adaa452055f878d4e2
wavewave/hoodle
Hook.hs
module Hoodle.Script.Hook where import Data.Hoodle.Simple (Hoodle, Item) import Graphics.Hoodle.Render.Type.Hoodle (RPage) -- | data Hook = Hook { saveAsHook :: Maybe (Hoodle -> IO ()), afterSaveHook :: Maybe (FilePath -> Hoodle -> IO ()), afterOpenHook :: Maybe (FilePath -> Hoodle -> IO ()), afterUpdat...
null
https://raw.githubusercontent.com/wavewave/hoodle/fa7481d14a53733b2f6ae9debc95357d904a943c/core/src/Hoodle/Script/Hook.hs
haskell
|
module Hoodle.Script.Hook where import Data.Hoodle.Simple (Hoodle, Item) import Graphics.Hoodle.Render.Type.Hoodle (RPage) data Hook = Hook { saveAsHook :: Maybe (Hoodle -> IO ()), afterSaveHook :: Maybe (FilePath -> Hoodle -> IO ()), afterOpenHook :: Maybe (FilePath -> Hoodle -> IO ()), afterUpdateClip...
b13b723c768b923b0e106fd8a2755970c1ac4a99130510cc6ca688e7437863c6
1rre/compiler
mips_op.erl
-module(mips_op). -export([gen_op/7]). -record(context,{fn=#{},types=#{},sp=0,s_reg=#{},reg=#{},args=[],ra_pos=0,ra_add=0, a_sp=0,i_reg,f_reg,labels=[],stack_size=0,fp=0,lb_sp=#{}}). Putting boilerplate for built in functions here because it clutters the mips file simple_int_op(Op,Type,Reg_1,Reg_2,...
null
https://raw.githubusercontent.com/1rre/compiler/40c3357ba46e1e388c6674ffb66122b9117e1b18/src/codegen/mips/mips_op.erl
erlang
Make sure all registers are consecutive double registers They should be though... && is multi-instruction & uses dest as temp so we need to avoid overwriting an operand uses dest as temp
-module(mips_op). -export([gen_op/7]). -record(context,{fn=#{},types=#{},sp=0,s_reg=#{},reg=#{},args=[],ra_pos=0,ra_add=0, a_sp=0,i_reg,f_reg,labels=[],stack_size=0,fp=0,lb_sp=#{}}). Putting boilerplate for built in functions here because it clutters the mips file simple_int_op(Op,Type,Reg_1,Reg_2,...
5f52675acbd81e4b37803542ba13d422708ce11a67912778b78f4485c9ed4098
Isaac-DeFrain/simple-compiler
gen.ml
(* RISC code generation *) open Ast open Risc open Register let counter = ref 1 let next_reg () = let curr = !counter in counter := curr + 1; R curr let rec translateExpr r = function | Add (e1, e2) -> let r1 = next_reg () in let r2 = next_reg () in translateExpr r1 e1 @ translateExpr r2 e2 @ [ ...
null
https://raw.githubusercontent.com/Isaac-DeFrain/simple-compiler/26f25a62bdf743daf9d0d8a4a8b29e8533e1fdd1/lib/instructions/gen.ml
ocaml
RISC code generation
open Ast open Risc open Register let counter = ref 1 let next_reg () = let curr = !counter in counter := curr + 1; R curr let rec translateExpr r = function | Add (e1, e2) -> let r1 = next_reg () in let r2 = next_reg () in translateExpr r1 e1 @ translateExpr r2 e2 @ [ ADD (r, r1, r2) ] | Sub (...
18ce208ecf476520195b71580e3e512629dfee9c0843ca83f32bd26984fb7350
Beluga-lang/Beluga
lex_check.ml
* * usage : lex_check FILE * synopsis : verifies that the Beluga EOI token appears at the actual end of the input , as measured by counting the Unicode code points in the file . Traditionally , this was done directly in the TEST script ( by calling out to wc -m to count code points ) , but for...
null
https://raw.githubusercontent.com/Beluga-lang/Beluga/57cbfe5e399126f9414d49b88acae7b7b21f87e5/src/beluga/lex_check.ml
ocaml
* From a token stream, finds to location of the EOI token.
* * usage : lex_check FILE * synopsis : verifies that the Beluga EOI token appears at the actual end of the input , as measured by counting the Unicode code points in the file . Traditionally , this was done directly in the TEST script ( by calling out to wc -m to count code points ) , but for...
c5fb87f036b4e746a504c93ae84a3b1bf864e3eb3e6a34b368652f5d0ce8dff9
typedclojure/typedclojure
load_if_needed.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/25a3433b1c0c05c4f06e2583440713834371d8c8/typed/clj.runtime/src/clojure/core/typed/load_if_needed.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:no-doc clojure.core.typed.load-if-needed (:require [clojure.core.typed.errors :as err] [clojure.java.io :as io] [clojure.core.typed.util-vars :as vs])) (defn load-if-needed "Load and initialize all of core.typed if not already" ([] (load...
0a4b1a32f8477124f4a670cdfeb566d5bd2ebcee8b5a22fc3c2db5be4e916fbb
realworldocaml/book
dep_rules.mli
(** Get dependencies for a set of modules using either ocamldep or ocamlobjinfo *) open Import val for_module : Ocamldep.Modules_data.t -> Module.t -> Module.t list Action_builder.t Ml_kind.Dict.t Memo.t val rules : Ocamldep.Modules_data.t -> Dep_graph.t Ml_kind.Dict.t Memo.t
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_rules/dep_rules.mli
ocaml
* Get dependencies for a set of modules using either ocamldep or ocamlobjinfo
open Import val for_module : Ocamldep.Modules_data.t -> Module.t -> Module.t list Action_builder.t Ml_kind.Dict.t Memo.t val rules : Ocamldep.Modules_data.t -> Dep_graph.t Ml_kind.Dict.t Memo.t
4689ac78cdf61ffdb3325efde446dadf8aecf2f7f874a7df3821d7ce0f6626b7
dparis/gen-phzr
graphics_data.cljs
(ns phzr.pixi.graphics-data (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->GraphicsData "A GraphicsData object." ([] (js/PIXI.GraphicsData.)))
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/pixi/graphics_data.cljs
clojure
(ns phzr.pixi.graphics-data (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->GraphicsData "A GraphicsData object." ([] (js/PIXI.GraphicsData.)))
a65d4b85fa092c8574d4fada2f48f7bd7cdf807512c27fec93d12d23adc3f3bc
AbstractMachinesLab/caramel
extend_main.mli
open Extend_protocol module Description : sig type t val make_v0 : name:string -> version:string -> t end module Utils : sig val notify : string -> unit val debug : string -> unit end module Reader : sig type t val make_v0 : (module Reader.V0) -> t end module Handshake : sig val magic_number : string ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/extend/extend_main.mli
ocaml
* The main entry point of an extension.
open Extend_protocol module Description : sig type t val make_v0 : name:string -> version:string -> t end module Utils : sig val notify : string -> unit val debug : string -> unit end module Reader : sig type t val make_v0 : (module Reader.V0) -> t end module Handshake : sig val magic_number : string ...
ab95dd03fda6950508c8a6858c8c7c33782a208226613ea211e568ec8384b87b
Gbury/archsat
unif_test.ml
This file is free software , part of Archsat . See file " LICENSE " for more details . open Misc_test.Infix module E = Expr_test let section = Section.make "unif_test" Unifier generation ( no type subst for now ) (* ************************************************************************ *) let print m = Format...
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/test/unif_test.ml
ocaml
************************************************************************ ************************************************************************ Problem generation ************************************************************************ Small hack to get the same printer/shrinker than for pairs, but still ...
This file is free software , part of Archsat . See file " LICENSE " for more details . open Misc_test.Infix module E = Expr_test let section = Section.make "unif_test" Unifier generation ( no type subst for now ) let print m = Format.asprintf "%a" Mapping.print m let small u = let aux _ t acc = acc + E.Term....
2e48dd6dd74cc0c0046f5924c278186642b16eb766cb6dd19942bab7aa541538
ocaml-sf/learn-ocaml-corpus
test.ml
open Printf let iter = List.iter let map = List.map let force = Lazy.force module T = Test_lib module R = Report type report = R.t (* Determinism. *) let () = Random.init 0 (* The auto-grader. *) (* -------------------------------------------------------------------------- *) (* Some of the code below should move to...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/sat/test.ml
ocaml
Determinism. The auto-grader. -------------------------------------------------------------------------- Some of the code below should move to separate library files. -------------------------------------------------------------------------- Miscellaneous. --------------------------------------------------...
open Printf let iter = List.iter let map = List.map let force = Lazy.force module T = Test_lib module R = Report type report = R.t let () = Random.init 0 let postincrement c = let n = !c in c := n + 1; n let rec drop k xs = match k, xs with | 0, _ | _, [] -> xs | _, x :: xs -> drop (k -...
a2572609cce3d5e43d8bf197e8c48e4e236cdde571e674cdf4f2bed68936a6f7
cstar/ejabberd-old
ejabberd_config.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_config.erl Author : < > %%% Purpose : Load config file Created : 14 Dec 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you can redistribute it a...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/ejabberd_config.erl
erlang
---------------------------------------------------------------------- File : ejabberd_config.erl Purpose : Load config file 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 WITH...
Author : < > Created : 14 Dec 2002 by < > ejabberd , Copyright ( C ) 2002 - 2010 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 Founda...
7b51224ca058038e2cef5d2bb576b271399c0180322b7206e42795fb4c6d1af0
mzp/ocaml-hoogle
cli.ml
open Base let q = let rev_args = ref [] in Arg.parse [] (fun x -> rev_args := x::!rev_args) @@ Printf.sprintf "%s <query strings>" Sys.argv.(0); String.concat " " @@ List.rev !rev_args let configs = Chconfig.read "modules.txt" let modules = HList.concat_map (fun {Chconfig.modules=m} -> m) configs let pa...
null
https://raw.githubusercontent.com/mzp/ocaml-hoogle/dbfb2e970d65e41936baa0ba51c7f7596cc6c369/cli.ml
ocaml
To print the path name with module names, we hack outcometree
open Base let q = let rev_args = ref [] in Arg.parse [] (fun x -> rev_args := x::!rev_args) @@ Printf.sprintf "%s <query strings>" Sys.argv.(0); String.concat " " @@ List.rev !rev_args let configs = Chconfig.read "modules.txt" let modules = HList.concat_map (fun {Chconfig.modules=m} -> m) configs let pa...
34e2d368c2223b85b396cb67145eda137aa73652a4ec4b5957a1ba2eb082dcad
logaan/promise-stream
pcell.cljs
(ns promise-stream.pcell (:require [jayq.core :as jq])) (defn deferred [value] (jq/resolve (jq/$deferred) value)) (deftype PCell [deferred-wrapping-cell]) (defn closed-container [v] (PCell. (deferred v))) (defn open-container [] (PCell. (jq/$deferred))) (defn empty-cell [] (closed-container nil)) (defn ...
null
https://raw.githubusercontent.com/logaan/promise-stream/98a1b021f509c559ce694bfb509bd6acd95c8023/src/promise_stream/pcell.cljs
clojure
(ns promise-stream.pcell (:require [jayq.core :as jq])) (defn deferred [value] (jq/resolve (jq/$deferred) value)) (deftype PCell [deferred-wrapping-cell]) (defn closed-container [v] (PCell. (deferred v))) (defn open-container [] (PCell. (jq/$deferred))) (defn empty-cell [] (closed-container nil)) (defn ...
3cb301d8399a8b9f84b04911f34de5f4662d7d2bd122899765fbdc0d4c962d5a
PEZ/rich4clojure
problem_027.clj
(ns rich4clojure.easy.problem-027 (:require [hyperfiddle.rcf :refer [tests]])) ;; = Palindrome Detector = By 4Clojure user : ;; Difficulty: Easy ;; Tags: [seqs] ;; ;; Write a function which returns true if the given ;; sequence is a palindrome. ;; ;; Hint : " racecar " does not equal ' ( \r \a \c \e \c \a \r...
null
https://raw.githubusercontent.com/PEZ/rich4clojure/28ea575ede8677f3a97437a646cdb3376a28ebc9/src/rich4clojure/easy/problem_027.clj
clojure
= Palindrome Detector = Difficulty: Easy Tags: [seqs] Write a function which returns true if the given sequence is a palindrome. Share your solution, and/or check how others did it:
(ns rich4clojure.easy.problem-027 (:require [hyperfiddle.rcf :refer [tests]])) By 4Clojure user : Hint : " racecar " does not equal ' ( \r \a \c \e \c \a \r ) (def __ :tests-will-fail) (comment ) (tests (__ '(1 2 3 4 5)) := (__ "racecar") := (__ [:foo :bar :foo]) := (__ '(1 1 3 3 1 1)) := (__ ...
9a66008dfbd7bb22ee8a33fa446b0296207bae82a778178fbdc3d20ae891dce4
g000001/MacLISP-compat
EXTHUK.lisp
EXTHUK -*-Mode : Lisp;Package : SI;Lowercase : T-*- ;;; **************************************************************** * * * * * * * EXTended datatype scheme , compiler helper * * * * * ;;; **************************************************************** * * ( c ) Copyright 1981 Massachusetts Ins...
null
https://raw.githubusercontent.com/g000001/MacLISP-compat/a147d09b98dca4d7c089424c3cbaf832d2fd857a/EXTHUK.lisp
lisp
Package : SI;Lowercase : T-*- **************************************************************** **************************************************************** **************************************************************** This function MUST be available as a macro, so that the Watch out for bootstrapping ...
* * * * * * * EXTended datatype scheme , compiler helper * * * * * * * ( c ) Copyright 1981 Massachusetts Institute of Technology * * * * (herald EXTHUK /28) (include ((lisp) subload lsp)) (eval-when (eval compile) (subload EXTMAC) ) (eval-when (eval compile load) (if (fboundp 'SPECIAL) #.`(SPECI...
1d7f01e5d732bd3a1c8ef83d494801a9b4667e70f021e7e10fc7df1f295d63bc
rmloveland/scheme48-0.53
record.scm
Copyright ( c ) 1994 by . See file COPYING . (define-data-type list (pair? (cons car cdr) (car integer car set-car!) (cdr list cdr set-cdr!)) (null? null)) (define (member? list x) (let loop ((list list)) (cond ((null? list) #f) ((= x (car list)) #t) (else (loop (cdr list)))...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/ps-compiler/prescheme/test/record.scm
scheme
Copyright ( c ) 1994 by . See file COPYING . (define-data-type list (pair? (cons car cdr) (car integer car set-car!) (cdr list cdr set-cdr!)) (null? null)) (define (member? list x) (let loop ((list list)) (cond ((null? list) #f) ((= x (car list)) #t) (else (loop (cdr list)))...
35c8a192e4084e934c47986fd5c7f47b22767a16c1a7e0109a62d0e657adfcb5
roman01la/clojurescript-workshop
core.cljs
;; Number 1 4.5 +1 -100 33e8 12e-14 3.2e-4 ;; String "Single line string" "Multiline string" ;; "Multiline\n string" ;; Character \g ;; "g" ;; Keyword :foo (keyword "foo") ;; :foo :zero? :visible? ;; Symbol 'x (symbol "x") ( def x 1 ) ;; ^_____ symbol ;; List (list 1 :foo "bar") '(1 :foo "bar")...
null
https://raw.githubusercontent.com/roman01la/clojurescript-workshop/48b02266d65cae8113edd4ce34c4ab282ad256d1/02.data_types/core.cljs
clojure
Number String Character "g" Keyword :foo Symbol ^_____ symbol List (inc 1) Vector (efficient index access) Map Set #{1 2 3 4}
1 4.5 +1 -100 33e8 12e-14 3.2e-4 "Single line string" "Multiline string" ;; "Multiline\n string" :foo :zero? :visible? 'x (symbol "x") ( def x 1 ) (list 1 :foo "bar") '(1 :foo "bar") 2 (vector 1 :foo "bar") [1 :foo "bar"] (hash-map :a 1 :b 2) {:a 1 :b 2} (hash-set 1 2 3 4 4) clojure.lang ...
d8b3238bc6218f8f27b21bedfce83fb2efd6b76a1c0bd4433ed65652f63ed2f0
hyperfiddle/rcf
queue.clj
(ns hyperfiddle.rcf.queue (:require [hyperfiddle.rcf.time :as time]) (:import (java.util.concurrent LinkedBlockingQueue TimeUnit))) (defn queue [] (LinkedBlockingQueue.)) (defn get-queue [^LinkedBlockingQueue q] (map :value q)) (defn poll! ([^LinkedBlockingQueue q, start, timeout, timeout-value] (let [now...
null
https://raw.githubusercontent.com/hyperfiddle/rcf/89ce7b01091a0b74036e5130b3e9202c27b61439/src/hyperfiddle/rcf/queue.clj
clojure
(ns hyperfiddle.rcf.queue (:require [hyperfiddle.rcf.time :as time]) (:import (java.util.concurrent LinkedBlockingQueue TimeUnit))) (defn queue [] (LinkedBlockingQueue.)) (defn get-queue [^LinkedBlockingQueue q] (map :value q)) (defn poll! ([^LinkedBlockingQueue q, start, timeout, timeout-value] (let [now...
415f127e5d746de5cc94191fb7a5828bea6c3af0043d8261dace1cb8b6e5cf56
tomjaguarpaw/haskell-opaleye
SqlTypes.hs
-- | SQL types and functions to create 'Opaleye.Field.Field_'s of -- those types. To create fields you may find it more convenient to use " Opaleye . ToFields " instead . module Opaleye.SqlTypes ( -- * Numeric -- ** Creating values sqlInt4, sqlDouble, sqlInt8, sqlNumeric, -- ** Types SqlInt4, SqlF...
null
https://raw.githubusercontent.com/tomjaguarpaw/haskell-opaleye/5c5e1dafe998d7ed713d1cc019bee87811093dea/src/Opaleye/SqlTypes.hs
haskell
| SQL types and functions to create 'Opaleye.Field.Field_'s of those types. To create fields you may find it more convenient to use * Numeric ** Creating values ** Types ** Type classes * Date and time ** Creating values ** Types * JSON ** Creating values ** Types * JSONB ** Creating values ** Types * ...
" Opaleye . ToFields " instead . module Opaleye.SqlTypes ( sqlInt4, sqlDouble, sqlInt8, sqlNumeric, SqlInt4, SqlFloat8, SqlNumeric, SqlInt8, SqlInt2, SqlFloat4, IC.SqlNum, IC.SqlIntegral, IC.SqlFractional, sqlDay, sqlUTCTime, sqlLocalTime, sqlZonedTime, sqlTimeOfDay, P.sqlInterv...
640ee7b7b98494ac9e8738b60af0d94980fb81a29230f2ae14c6a1e2c3f93073
xh4/web-toolkit
xsalsa20.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; xsalsa20.lisp -- implementation of the XSalsa20 stream cipher (in-package :crypto) (defclass xsalsa20 (salsa20) ()) (defclass xsalsa20/12 (xsalsa20) () (:default-initargs :core-function #'salsa20/12-core)) (defclass xsalsa20/8 (xsalsa20) () (:default-ini...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/ironclad-v0.47/src/ciphers/xsalsa20.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- xsalsa20.lisp -- implementation of the XSalsa20 stream cipher
(in-package :crypto) (defclass xsalsa20 (salsa20) ()) (defclass xsalsa20/12 (xsalsa20) () (:default-initargs :core-function #'salsa20/12-core)) (defclass xsalsa20/8 (xsalsa20) () (:default-initargs :core-function #'salsa20/8-core)) (defmethod shared-initialize :after ((cipher xsalsa20) slot-names ...
ccce70a1a1eaa2712887d5750c7616e2219d51e6ff7b9c5c1aa03ecb0ae51c94
janestreet/ppx_sexp_conv
test_regular_variants.ml
open Base [@@@warning "-37"] module _ = struct type 'a t = | A | B [@@deriving_inline sexp_grammar] let _ = fun (_ : 'a t) -> () let t_sexp_grammar : 'a. 'a Sexplib0.Sexp_grammar.t -> 'a t Sexplib0.Sexp_grammar.t = fun _'a_sexp_grammar -> { untyped = Variant { case_sensitiv...
null
https://raw.githubusercontent.com/janestreet/ppx_sexp_conv/d9f92275eaff71fd721f7902756e621c22e6d118/test/sexp_grammar/test_regular_variants.ml
ocaml
open Base [@@@warning "-37"] module _ = struct type 'a t = | A | B [@@deriving_inline sexp_grammar] let _ = fun (_ : 'a t) -> () let t_sexp_grammar : 'a. 'a Sexplib0.Sexp_grammar.t -> 'a t Sexplib0.Sexp_grammar.t = fun _'a_sexp_grammar -> { untyped = Variant { case_sensitiv...
7d674f6a74bc5ca8fc2f122d5fd6ce40d57ae4aa5bc231526e082b4f04eed4ad
surganov/cis194
High-order.hs
import Data.List Exercise 1 . Wholemeal programming fun1 :: [Integer] -> Integer fun1 [] = 1 fun1 (x:xs) | even x = (x - 2) * fun1 xs | otherwise = fun1 xs fun2 :: Integer -> Integer fun2 1 = 0 fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1) fun1' :: [Integer] -> Integer fun1' = p...
null
https://raw.githubusercontent.com/surganov/cis194/e727f29389fb01c6d221940d45b394fd67e068c4/04/High-order.hs
haskell
import Data.List Exercise 1 . Wholemeal programming fun1 :: [Integer] -> Integer fun1 [] = 1 fun1 (x:xs) | even x = (x - 2) * fun1 xs | otherwise = fun1 xs fun2 :: Integer -> Integer fun2 1 = 0 fun2 n | even n = n + fun2 (n `div` 2) | otherwise = fun2 (3 * n + 1) fun1' :: [Integer] -> Integer fun1' = p...
f32fd15146eec49d66a37c4f260475adb441482b29b9fad3b2a6e568a6946eca
processone/tsung
oauth_rsa_sha1.erl
Copyright ( c ) 2008 - 2009 < / > %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without %% restriction, including without limitation the rights to use, %% copy, modify, merge...
null
https://raw.githubusercontent.com/processone/tsung/e9babe2acfb4298e3b51bd56886561b052979884/src/lib/oauth_rsa_sha1.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following condi...
Copyright ( c ) 2008 - 2009 < / > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(oauth_rsa_sh...
b98772e1850b5444bd47feed8b3a891762b982d888352edff0edd7c3fecd85f0
balint99/sfpl
Base.hs
# LANGUAGE DerivingVia , FlexibleInstances , KindSignatures , LambdaCase , MultiParamTypeClasses # LambdaCase, MultiParamTypeClasses #-} -- | Common definitions needed in various modules. module SFPL.Base ( -- * Type synonyms Name, TyName, Keyword, -- * Newtypes I...
null
https://raw.githubusercontent.com/balint99/sfpl/7cf8924e6f436704f578927ce2904e45caa76725/app/SFPL/Base.hs
haskell
| Common definitions needed in various modules. * Type synonyms * Newtypes * Data types * Classes * Constants ** Keywords for types ** Keywords for primitive operations ** Desugaring ---------------------------------------------------------- Type synonyms | Names for term identifiers. @since 1.0.0 | Names...
# LANGUAGE DerivingVia , FlexibleInstances , KindSignatures , LambdaCase , MultiParamTypeClasses # LambdaCase, MultiParamTypeClasses #-} module SFPL.Base Name, TyName, Keyword, Ix (..), Lvl (..), lvl2Ix, Metavar (..), Prec (..), intToPrec, A...
1d662c6e5d2c613a4147e70bb619a1a5226b59986f7ca2793273e216ba266b5e
noinia/hgeometry
Helpers.hs
module Algorithms.Geometry.ConvexHull.Helpers where import Algorithms.Geometry.ConvexHull.Types import Control.Applicative ((<|>)) import Control.Lens (view) import Control.Monad.Trans import Data.Foldable (toList) import Geometry.Point import Data....
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry-devel/src/Algorithms/Geometry/ConvexHull/Helpers.hs
haskell
-------------------------------------------------------------------------------- * Convienience Functions in the Hull Monad. | Computes the position of the given point at time t | Applies the actual event, mutating the current representation of the hulls. returns an element that is on the hull (after applying the...
module Algorithms.Geometry.ConvexHull.Helpers where import Algorithms.Geometry.ConvexHull.Types import Control.Applicative ((<|>)) import Control.Lens (view) import Control.Monad.Trans import Data.Foldable (toList) import Geometry.Point import Data....
2316687030f821d22ca1851027187a55bd2d77a850c3961c01075dd542f3afc8
fra/ecron
ecron.erl
%%------------------------------------------------------------------------------ @author < > @doc The API module . %% The Ecron application executes scheduled functions . %% A list of functions to execute might be specified in the ecron application %% resource file as value of the `scheduled' environment vari...
null
https://raw.githubusercontent.com/fra/ecron/d959d1e1954bdbff8bda0b804116bca5f132edbc/src/ecron.erl
erlang
------------------------------------------------------------------------------ A list of functions to execute might be specified in the ecron application resource file as value of the `scheduled' environment variable. tuple `{Module, Function, Arguments}'. It's also possible to configure options for a retry algor...
@author < > @doc The API module . The Ecron application executes scheduled functions . Each entry specifies a job and must contain the scheduled time and a MFA MFA fails . Job = { { Date , Time } , MFA , Retry , Seconds } | { { Date , Time } , MFA } [ { { { ' * ' , ' * ' , ' * ' } , ...
9377db86b3eba7c62c28a81047254309fbcd8e980147e5dd02569ef884a4d2c3
static-analysis-engineering/codehawk
xSumTypeSerializer.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/45f39248b404eeab91ae225243d79ec0583c3331/CodeHawk/CH/xprlib/xSumTypeSerializer.mli
ocaml
* Serialization of sum types chutil xprlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
97a08b21d6c621e246b6021dd14794765400db504ad855a4c3cb871155662447
ocsigen/js_of_ocaml
binary_trees.ml
The Computer Language Benchmarks Game * / * * Contributed by Troestler Modified by * / * * Contributed by Troestler Christophe * Modified by Fabrice Le Fessant *) type 'a tree = | Empty | Node of 'a tree * 'a * 'a tree let rec make i d = (* if d = 0 then Empty *) if d = 0 then Node ...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/58210fabc947c4839b6e71ffbbf353a4ede0dbb7/benchmarks/sources/ml/binary_trees.ml
ocaml
if d = 0 then Empty flush stdout;
The Computer Language Benchmarks Game * / * * Contributed by Troestler Modified by * / * * Contributed by Troestler Christophe * Modified by Fabrice Le Fessant *) type 'a tree = | Empty | Node of 'a tree * 'a * 'a tree let rec make i d = if d = 0 then Node (Empty, i, Empty) else ...
d5e3efd57c729fa7f8190980b5284f58ff4a6dc66387ff69303fee632a38dd5b
CUTE-Lang/miniCUTE
Main.hs
-- | Copyright : ( c ) 2018 - present -- License: BSD 3-Clause -- -- miniCUTE compiler module Main ( main ) where import Options import Control.Lens.Operators import Data.Text.Prettyprint.Doc.Minicute ( PrettyMC, prettyMC0 ) import Minicute.Parser.Minicute.Parser ( mainProgramMC ) import Minicute.Transpilers...
null
https://raw.githubusercontent.com/CUTE-Lang/miniCUTE/b6c8a48b10e2af0786a50175d57b5339be7be2de/main-packages/minicute-compiler/minicute/Main.hs
haskell
| License: BSD 3-Clause miniCUTE compiler
Copyright : ( c ) 2018 - present module Main ( main ) where import Options import Control.Lens.Operators import Data.Text.Prettyprint.Doc.Minicute ( PrettyMC, prettyMC0 ) import Minicute.Parser.Minicute.Parser ( mainProgramMC ) import Minicute.Transpilers.Lifting.Lambda ( lambdaLifting ) import System.Enviro...
7ff4505aadf6417f45bf15bba6e0755f282ed345af8c747d20e4975f5e00e0b6
DeathKing/Hit-DataStructure-On-Scheme
heap-sort.scm
(load "../library/vector.scm") (define (heap-sort! vec less?) sorts vector vec according to less ? (define (siftup n) (let loop ((child n)) (if (> child 0) (let ((parent (quotient (- child 1) 2))) (if (not (less? (vector-ref vec child) (vector-ref vec pa...
null
https://raw.githubusercontent.com/DeathKing/Hit-DataStructure-On-Scheme/11677e3c6053d6c5b37cf0509885f74ab5c2bab9/application5/heap-sort.scm
scheme
heap-sort!
(load "../library/vector.scm") (define (heap-sort! vec less?) sorts vector vec according to less ? (define (siftup n) (let loop ((child n)) (if (> child 0) (let ((parent (quotient (- child 1) 2))) (if (not (less? (vector-ref vec child) (vector-ref vec pa...
afaafc31319f80d0933e609b2f7d56d73285af27f79ec7ede76adf8539343b29
well-typed/large-records
Util.hs
{-# LANGUAGE DeriveLift #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE CPP # module Test.Record.Util ( * Tasty / HUnit auxiliary assertP...
null
https://raw.githubusercontent.com/well-typed/large-records/fb983aa136c2602499c2421323bd52b6a54b7c9a/large-records/test/Test/Record/Util.hs
haskell
# LANGUAGE DeriveLift # # LANGUAGE DerivingStrategies # # LANGUAGE TemplateHaskell # * TH error collection opaque ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- --------------...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE CPP # module Test.Record.Util ( * Tasty / HUnit auxiliary assertPrefix , assertJust , expectException , Problem(..) , collectProblems , collectOnlyProblems ) where import Control.Excep...
3f48c2378d54af155d6e687781a0a3507caddc0ec845b6975e2577dbf321314d
ThatGeoGuy/chicken-miniKanren
run.scm
(import test mini-kanren) (test-group "miniKanren" (include "==-tests.scm") (include "symbolo-tests.scm") (include "numbero-tests.scm") (include "symbolo-numbero-tests.scm") (include "disequality-tests.scm") (include "absento-closure-tests.scm") (include "absento-tests.scm") (include "numbers-t...
null
https://raw.githubusercontent.com/ThatGeoGuy/chicken-miniKanren/4371396a8cb5798cd4d8a6ea42ba2587b2a77ed9/tests/run.scm
scheme
(import test mini-kanren) (test-group "miniKanren" (include "==-tests.scm") (include "symbolo-tests.scm") (include "numbero-tests.scm") (include "symbolo-numbero-tests.scm") (include "disequality-tests.scm") (include "absento-closure-tests.scm") (include "absento-tests.scm") (include "numbers-t...
ebec03e5d0b15cce0f3d596bab7881510d51935afa7dd86cfd212e739fa44ea5
spawnfest/nakaz
nakaz_pt.erl
@author < > %%% %%% @doc %%% The current implementation simply parses all records in the transformed %%% module, and inserts parsed typespecs in a magic function, which can %%% then be callsed by {@see nakaz_core} internals to get specs for any %%% particular record. %%% @end -module(nakaz_pt). -include("nakaz_i...
null
https://raw.githubusercontent.com/spawnfest/nakaz/9570f338b42ddbb5a12e4d75126a2a4ebcaf65f2/src/nakaz_pt.erl
erlang
@doc The current implementation simply parses all records in the transformed module, and inserts parsed typespecs in a magic function, which can then be callsed by {@see nakaz_core} internals to get specs for any particular record. @end API API definitions. @doc Generate 'export' module attribute for magick ...
@author < > -module(nakaz_pt). -include("nakaz_internal.hrl"). -export([parse_transform/2]). parse_transform(Forms, _Options) -> Fun = generate_magic_fun(Forms), Export = generate_export(), ): we should insert export before any other function parse_trans:do_insert_forms(above, [Export, Fun...
938dd4cd3deaa7d5075f9c9d6e6056aa8c085a2776a37c9c92df5da176917e38
mbuczko/cerber-oauth2-provider
system.clj
(ns cerber.oauth2.standalone.system (:require [clojure.tools.namespace.repl :as tn] [mount.core :refer [defstate] :as mount] [cerber.oauth2.standalone.server])) (defn go "Starts entire system and inititalizes all states defined by mount's `defstate`." [] (mount/start)) (defn stop "St...
null
https://raw.githubusercontent.com/mbuczko/cerber-oauth2-provider/56ef50366bc83630ae41d438fa017e5411c20fdd/src/cerber/oauth2/standalone/system.clj
clojure
(ns cerber.oauth2.standalone.system (:require [clojure.tools.namespace.repl :as tn] [mount.core :refer [defstate] :as mount] [cerber.oauth2.standalone.server])) (defn go "Starts entire system and inititalizes all states defined by mount's `defstate`." [] (mount/start)) (defn stop "St...
1af0d5ad845fb1ded3bafb04adf425aac99273416b5d925199c14c3c40e80b52
kennknowles/aspcc
aspcheck.ml
* Commandline documentation generator frontend to the ASPCC libraries open AspParser open Printf module Arg = MyArg * { 4 Command line } let _ = let input_file = ref "" in Arg.parse [] (fun s -> input_file := s) "aspcheck [no options yet] [filenames]"; Process the file or stdin let lexbuf = ...
null
https://raw.githubusercontent.com/kennknowles/aspcc/951a91cc21e291b1d3c750bbbca7fa79209edd08/frontends/aspcheck.ml
ocaml
* Commandline documentation generator frontend to the ASPCC libraries open AspParser open Printf module Arg = MyArg * { 4 Command line } let _ = let input_file = ref "" in Arg.parse [] (fun s -> input_file := s) "aspcheck [no options yet] [filenames]"; Process the file or stdin let lexbuf = ...
f43d6b71528cd0b5e37fe5ce54b379c03b38a7d5ae78932d3e3c87379c808e21
sarabander/p2pu-sicp
2.74.scm
Suppose we have two divisions with different personnel files : (define division1 '(div1 ("Mark Morning" (address "23 Sunny St.") (salary 1240)) ("Edna Evening" (address "41 Moon St.") (salary 1710)))) (define division2 '(div2 ((name "Kelly Gardner") (wage 1305) (addr "12 Main Rd.")) ((name...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/2.4/2.74.scm
scheme
A hash table to hold file reading operations: Getter and setter to access the hash table: a. Populating the table with procedures: Tests 8-D :-( 8-D :-( :-( 8-D 8-D 8-D b. Populating the table with procedures: Tests employee not found employee not found employee not found c. "Employee not found" ...
Suppose we have two divisions with different personnel files : (define division1 '(div1 ("Mark Morning" (address "23 Sunny St.") (salary 1240)) ("Edna Evening" (address "41 Moon St.") (salary 1710)))) (define division2 '(div2 ((name "Kelly Gardner") (wage 1305) (addr "12 Main Rd.")) ((name...
e4ccbf9812d346601f3e9891aa08ed7d40ba4014c2f0f667f568c4c3f61fda0b
haskellari/lattices
M2.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE Safe #-} ---------------------------------------------------------------------------- -- | -- Module : Algebra.Lattice.M2 Copyright : ( C ) 2019 -- License : BSD-3-Clause (see the file LICENSE) -- Maint...
null
https://raw.githubusercontent.com/haskellari/lattices/4db00f12756d092805f3e9e2583065bb7aaa804f/src/Algebra/Lattice/M2.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE Safe # -------------------------------------------------------------------------- | Module : Algebra.Lattice.M2 License : BSD-3-Clause (see the file LICENSE) -------------------------------------------------------------------------- <<m2.png>>
# LANGUAGE DeriveGeneric # Copyright : ( C ) 2019 Maintainer : < > module Algebra.Lattice.M2 ( M2 (..), toSetBool, fromSetBool, ) where import Prelude () import Prelude.Compat import Control.DeepSeq (NFData (..)) import Data.Data (Data, Typeable) import Data.Hasha...
35b30a9bf0c6bf9e992193fbfec2625b5133a20821380136fbf46ddda9199100
lambdamikel/DLMAPS
os3.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : SQD ; Base : 10 -*- (in-package sqd) (defparameter *os* (sort '(("Zollgrenze" 75 17 text 1 20) ("Abrenzung der BAB, usw. geg. Ausfahrt, unsichtbar" 3105 linie 1 3) ("Abgrenzung flaechenhafter Gewaesser, unsichtbar" 5005 linie 1 13) ...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/sqd/os3.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : SQD ; Base : 10 -*-
(in-package sqd) (defparameter *os* (sort '(("Zollgrenze" 75 17 text 1 20) ("Abrenzung der BAB, usw. geg. Ausfahrt, unsichtbar" 3105 linie 1 3) ("Abgrenzung flaechenhafter Gewaesser, unsichtbar" 5005 linie 1 13) ("Abgrenzung zu anderen Ebenen, unsichtbar" 3805 linie 1 5) ("Ac...
2abdb509159573c1a7798b20131b15caf81b4605fb13fa94daf47b0cb51d01a2
aliaksandr-s/prototyping-with-clojure
core.cljs
(ns visitera.core (:require [day8.re-frame.http-fx] [reagent.core :as r] [re-frame.core :as rf] [goog.events :as events] [goog.history.EventType :as HistoryEventType] [markdown.core :refer [md->html]] [visitera.ajax :as ajax] [visitera.events] [reitit.core :as reitit] [clojure....
null
https://raw.githubusercontent.com/aliaksandr-s/prototyping-with-clojure/e1f90bf66c315de1dfa72624895637f1c609c42e/app/chapter-06/start/visitera/src/cljs/visitera/core.cljs
clojure
------------------------- Routes ------------------------- History must be called after routes have been defined -------------------------
(ns visitera.core (:require [day8.re-frame.http-fx] [reagent.core :as r] [re-frame.core :as rf] [goog.events :as events] [goog.history.EventType :as HistoryEventType] [markdown.core :refer [md->html]] [visitera.ajax :as ajax] [visitera.events] [reitit.core :as reitit] [clojure....
23108885a5627834a31a700dd63bc3660ca29947732ad49441a9615a5a48e255
Mercerenies/net-game
combat.lisp
(in-package #:net-game) (defgeneric do-attack (obj target atk)) (defmethod do-attack ((obj t) (target damageable) atk) (subf (hp target) atk)) (defmethod do-action ((act (eql 'attack)) (obj animal) preps) (typecase (getf preps 'with) (null (format t "Attack with what?~%")) ((eql fists) (do-attack *p...
null
https://raw.githubusercontent.com/Mercerenies/net-game/da30ca36a7f468e6f9c062fd7bc5e4fed4ee95f9/lisp/combat.lisp
lisp
TODO Weapon wieldiness (or possibly change it to be a durability stat, not wieldiness)
(in-package #:net-game) (defgeneric do-attack (obj target atk)) (defmethod do-attack ((obj t) (target damageable) atk) (subf (hp target) atk)) (defmethod do-action ((act (eql 'attack)) (obj animal) preps) (typecase (getf preps 'with) (null (format t "Attack with what?~%")) ((eql fists) (do-attack *p...
36badb6fea2a39f2655d90662067c132ef8278e0b164ccd0729f24d301f182d5
awakesecurity/grpc-mqtt
Option.hs
module Test.Network.GRPC.MQTT.Option (tests) where --------------------------------------------------------------------------------- import Hedgehog (Property, forAll, property, tripping) import Test.Tasty (TestTree, testGroup) import Test.Tasty.Hedgehog (testProperty) ----------------------------------------------...
null
https://raw.githubusercontent.com/awakesecurity/grpc-mqtt/c2033de14b46168643b835c3e1934a7af6ef820b/test/Test/Network/GRPC/MQTT/Option.hs
haskell
------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ...
module Test.Network.GRPC.MQTT.Option (tests) where import Hedgehog (Property, forAll, property, tripping) import Test.Tasty (TestTree, testGroup) import Test.Tasty.Hedgehog (testProperty) import Test.Network.GRPC.MQTT.Option.CLevel qualified import Test.Network.GRPC.MQTT.Option.Gen qualified as Gen import Proto3...
5b51828490003610c1e3f6d389e918466c3b9e18bfc66c526b51b7519f236c84
chenyukang/eopl
interp.scm
(module interp (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "store.scm") (require "scheduler.scm") (require "semaphores.scm") (provide value-of-program trace-interp) (define trace-interp (make-parameter #f)) ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter5/thread-lang/interp.scm
scheme
the interpreter ;;;;;;;;;;;;;;;; value-of/k : Exp * Env * Cont -> FinalAnswer implemented like a macro! this one, too apply-cont : Cont * Exp -> FinalAnswer
(module interp (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "store.scm") (require "scheduler.scm") (require "semaphores.scm") (provide value-of-program trace-interp) (define trace-interp (make-parameter #f)) ...
3759a892b4398c5b1010a8fab315a55c38bb02d38ad1048520e53053362eba02
softlab-ntua/bencherl
class_Mammal.erl
Copyright ( C ) 2003 - 2014 % This file is part of the WOOPER examples . % % It has been placed in the public domain. % Author : ( ) % -module(class_Mammal). % Determines what are the mother classes of this class (if any): -define( wooper_superclasses, [ class_Creature ] ). % Parameters taken by the cons...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/wooper/examples/class_Mammal.erl
erlang
It has been placed in the public domain. Determines what are the mother classes of this class (if any): Parameters taken by the constructor ('construct'). They are here the ones of the mother class (creature) plus fur color: Declarations of class-specific methods (besides inherited ones). Import common types ...
Copyright ( C ) 2003 - 2014 This file is part of the WOOPER examples . Author : ( ) -module(class_Mammal). -define( wooper_superclasses, [ class_Creature ] ). -define( wooper_construct_parameters, Age, Gender, FurColor ). Declaring all variations of WOOPER standard life - cycle operations : ( templ...