_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
18db25ca0a77a46015c9a0fd65a3073984af9466fb7fdd25ecf89fe7497e075d
dmjio/stripe
Util.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- Module : Web.Stripe.Types.Util Copyright : ( c ) , 2014 -- Maintainer : -- Stability : experimental -- Portability : POSIX module Web.Stripe.Types.Util ( -- * Getters getTransactionId , getCustomerId , getCardId , getRecipie...
null
https://raw.githubusercontent.com/dmjio/stripe/967334629933fcb55247eb3270c7801c05d6bf61/stripe-core/src/Web/Stripe/Types/Util.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Web.Stripe.Types.Util Maintainer : Stability : experimental Portability : POSIX * Getters ---------------------------------------------------------------------------- | Helper for retrieving `TransactionId` -------------------------------------------------------...
Copyright : ( c ) , 2014 module Web.Stripe.Types.Util getTransactionId , getCustomerId , getCardId , getRecipientCardId , getRecipientId , getAccountId , getChargeId , getInvoiceId , getInvoiceItemId ) where import Data.Text ...
2aeadaaf04635286ac9539163167c68d41e8d74911a8e768b822ca36d5daedc1
babashka/babashka
main2.clj
(ns my.main2) (defn -main [& _args] (System/getProperty "babashka.main"))
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/test-resources/babashka/src_for_classpath_test/my/main2.clj
clojure
(ns my.main2) (defn -main [& _args] (System/getProperty "babashka.main"))
7e0dd54e689d2a6afb4533090cfea1cf17d59a10bdffaad13a7483b0af0640b2
ocaml/ocaml-re
str.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocaml/ocaml-re/72989d119da7cc0bf38da1203c8a2d2f36a3ffe2/lib/str.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with Modified by for integration in RE ...
e70e49aa4c68fedb4b314911834b2045149c525476e6a465746e389f1df81046
ocamllabs/vscode-ocaml-platform
dune_formatter.ml
open Import let get_formatter instance ~document ~options:_ ~token:_ = let endLine = TextDocument.lineCount document - 1 in let endCharacter = TextDocument.lineAt document ~line:endLine |> TextLine.text |> String.length in (* selects entire document range *) let range = Range.makeCoordinates ~startLi...
null
https://raw.githubusercontent.com/ocamllabs/vscode-ocaml-platform/93e88b7799830dc4711cf6b61957715460eac1fa/src/dune_formatter.ml
ocaml
selects entire document range text of entire document
open Import let get_formatter instance ~document ~options:_ ~token:_ = let endLine = TextDocument.lineCount document - 1 in let endCharacter = TextDocument.lineAt document ~line:endLine |> TextLine.text |> String.length in let range = Range.makeCoordinates ~startLine:0 ~startCharacter:0 ~endLine ~endCh...
3134d59e00d424dfaeb020f6db8e30028ad53c0a7d8b2bd1f7f4d8524ef81fef
kmi/irs
load.lisp
Mode : Lisp ; Package : File created in WebOnto (in-package "OCML") (def-ontology international-system-units :includes (physical-quantities standard-dimensions standard-prefixes) :type :domain :namespace-uri "-system-units#" :namespaces (("phys-q" physical-quantities) ("si-dim" standard-...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/international-system-units/load.lisp
lisp
Package :
File created in WebOnto (in-package "OCML") (def-ontology international-system-units :includes (physical-quantities standard-dimensions standard-prefixes) :type :domain :namespace-uri "-system-units#" :namespaces (("phys-q" physical-quantities) ("si-dim" standard-dimensions) ...
8b678f86afcb8550f9b64f3b446a3906f3109aba3fe10781f926492b91e4317c
ramsay-t/mu2
blank_test.erl
-module(blank_test). -include_lib("eunit/include/eunit.hrl"). fake_test() -> ?assert(true).
null
https://raw.githubusercontent.com/ramsay-t/mu2/fd84a1966e81921f08f510e8876e6ad9b6eb89b1/test/blank_test.erl
erlang
-module(blank_test). -include_lib("eunit/include/eunit.hrl"). fake_test() -> ?assert(true).
cec58ad5bfea1e653a0169d5e2fbd605233baefeb204c30d89a79577da18ca87
grin-compiler/ghc-wpc-sample-programs
MediaBag.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Text . Pandoc . Lua . Module . MediaBag Copyright : Copyright © 2017 - 2020 License : GNU GPL , version 2 or above Maintainer : > Stability : alpha The lua module Module : Text.Pandoc.Lua.Module.MediaBag Copy...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Lua/Module/MediaBag.hs
haskell
# LANGUAGE OverloadedStrings # MediaBag submodule TODO: reuse existing functions. | Delete a single item from the media bag. | Delete all items from the media bag. | Insert a new item into the media bag.
| Module : Text . Pandoc . Lua . Module . MediaBag Copyright : Copyright © 2017 - 2020 License : GNU GPL , version 2 or above Maintainer : > Stability : alpha The lua module Module : Text.Pandoc.Lua.Module.MediaBag Copyright : Copyright © 2017-2020 Alb...
2bd3e82dce51905af71e21ed46501ec02a1a784d4c2242f602b903215da07a41
Engelberg/instaparse
auto_flatten_seq_test.cljc
(ns instaparse.auto-flatten-seq-test (:require [instaparse.auto-flatten-seq :refer [auto-flatten-seq conj-flat convert-afs-to-vec]] #?(:clj [clojure.test :refer [deftest are is]] :cljs [cljs.test])) #?(:cljs (:require-macros [cljs.test :refer [deftest are is]]))) (defn rand-mutation [v iv] (let [r...
null
https://raw.githubusercontent.com/Engelberg/instaparse/4d1903b059e77dc0049dfbc75af9dce995756148/test/instaparse/auto_flatten_seq_test.cljc
clojure
(ns instaparse.auto-flatten-seq-test (:require [instaparse.auto-flatten-seq :refer [auto-flatten-seq conj-flat convert-afs-to-vec]] #?(:clj [clojure.test :refer [deftest are is]] :cljs [cljs.test])) #?(:cljs (:require-macros [cljs.test :refer [deftest are is]]))) (defn rand-mutation [v iv] (let [r...
94e9cf879c5d098bb909b83959e49a562abc68b5c9b8b18ee46cce7ea52d8b96
spell-music/amsterdam
WaveAndEnvelope.hs
| Variable waveform and envelope The basic instrument to synthesize pitched sounds consists of a periodic waveform and an amplitude envelope . In this is realized in the most general way by two oscillators : the envelope is generated by setting one oscillator 's frequency to 1 / idur . This way the oscilla...
null
https://raw.githubusercontent.com/spell-music/amsterdam/ab491022c7826c74eab557ecd11794268f5a5ae0/01-basic-instruments/WaveAndEnvelope.hs
haskell
instrument tables sine waveforms fundamental fibonacci twice ca. alternating phase diff linear waveforms steeper square sawtooth triangle linear envelopes softer plucked percussive twin peaks 1/5th delay reverse f52 moderate
| Variable waveform and envelope The basic instrument to synthesize pitched sounds consists of a periodic waveform and an amplitude envelope . In this is realized in the most general way by two oscillators : the envelope is generated by setting one oscillator 's frequency to 1 / idur . This way the oscilla...
507dec9dad3509748c1f6f23827dc2f06a5a7c6fae15169366860d389646fecb
well-typed-lightbulbs/ocaml-esp32
accepted_batch.ml
(* TEST *) open Set.Make(String) let e = empty open struct let x = singleton "hidden" end let () = iter print_endline (union x (of_list ["a"; "b"])) let f = let open Set.Make(Int32) in let e2 = empty in let open struct let y = 3 end in (e, e2, y) module type S = sig open Set.Make(Bool) type n...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/generalized-open/accepted_batch.ml
ocaml
TEST
open Set.Make(String) let e = empty open struct let x = singleton "hidden" end let () = iter print_endline (union x (of_list ["a"; "b"])) let f = let open Set.Make(Int32) in let e2 = empty in let open struct let y = 3 end in (e, e2, y) module type S = sig open Set.Make(Bool) type nonrec t = t...
42564b848c95e98b0b4beb61e7c4d2a17423b8eaede1694b396687363f94d5de
ananthakumaran/eopl
1.clj
Implement the four required operations for . Then use your implementation to calculate the factorial of 10 . How does the ;; execution time vary as this argument changes? How does the excution ;; time vary as the base changes? Explain why. (ns eopl.chap-2.1 (:use clojure.test)) (defn base [] 16) (defn zero []...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/chap_2/1.clj
clojure
execution time vary as this argument changes? How does the excution time vary as the base changes? Explain why.
Implement the four required operations for . Then use your implementation to calculate the factorial of 10 . How does the (ns eopl.chap-2.1 (:use clojure.test)) (defn base [] 16) (defn zero [] (list (base) 0)) (defn is-zero? [n] (= (zero) n)) (defn successor [n] (let [base (first n) lsb (secon...
852b65bda37b4068f18d137c89892081cc68100973d47e7cc98c3e02f41ee567
larrychristensen/orcpub
party.clj
(ns orcpub.routes.party (:require [clojure.spec.alpha :as spec] [datomic.api :as d] [orcpub.dnd.e5.party :as party] [orcpub.entity.strict :as se])) (defn create-party [{:keys [db conn identity] party :transit-params}] (if (spec/valid? ::party/party party) (let [username (:us...
null
https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/clj/orcpub/routes/party.clj
clojure
(ns orcpub.routes.party (:require [clojure.spec.alpha :as spec] [datomic.api :as d] [orcpub.dnd.e5.party :as party] [orcpub.entity.strict :as se])) (defn create-party [{:keys [db conn identity] party :transit-params}] (if (spec/valid? ::party/party party) (let [username (:us...
57e583f67f35255c64cf7cd96cd8c29c8bf61e20b7cdd213821c31a34a8e2f5b
heroku/logplex
live_upgrade.erl
f(UpgradeNode). UpgradeNode = fun () -> case logplex_app:config(git_branch) of "v67" -> io:format(whereis(user), "at=upgrade_start cur_vsn=67~n", []); "v67.1" -> io:format(whereis(user), "at=upgrade type=retry cur_vsn=67 old_vsn=67.1~n", []); Else -> ...
null
https://raw.githubusercontent.com/heroku/logplex/fc520c44cf4687726d5d51464d3264ddc6abb0ba/upgrades/v67_v67.1/live_upgrade.erl
erlang
stateless
f(UpgradeNode). UpgradeNode = fun () -> case logplex_app:config(git_branch) of "v67" -> io:format(whereis(user), "at=upgrade_start cur_vsn=67~n", []); "v67.1" -> io:format(whereis(user), "at=upgrade type=retry cur_vsn=67 old_vsn=67.1~n", []); Else -> ...
37c002ffd8a7c8b088859c9c4a85cb5359bd9206d7df57b8d7744a47933b536c
erlang/otp
target_system.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2011 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/eccc556e79f315d1f87c10fb46f2c4af50a63f20/lib/sasl/examples/src/target_system.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2011 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(target_system). -export([create/1, create/2, install/2]). create(RelFileName) -> create(RelFileName,[])...
6ee86b8ddf984ab11d671a5d469b8c65b826cd1931629e4025d4f8c7bcdd5718
charlieg/Sparser
psi.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1998 -- all rights reserved ;;; ;;; File: "psi" ;;; Module: "objects;model:lattice-points:" version : 0.0 March 1998 initiated 3/7/98 . (in-package :sparser) ;;;---------- ;;; resource ;;;---------- (defun get-ps...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/model/lattice-points/psi.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "psi" Module: "objects;model:lattice-points:" ---------- resource ---------- just a stub ------- cases ------- ------------- find / make -------------
copyright ( c ) 1998 -- all rights reserved version : 0.0 March 1998 initiated 3/7/98 . (in-package :sparser) (defun get-psi () (make-psi :id (gensym "P"))) (defun make-psi-with-just-a-type (category lattice-point) (let ((psi (get-psi))) (setf (psi-lattice-point psi) lattice-point) (set...
7fb18414b7386beb042f39a1e6a3bdf000baa6d808650f839788134bc4d970bc
VisionsGlobalEmpowerment/webchange
editor_frame.cljs
(ns webchange.interpreter.renderer.scene.modes.editor-frame (:require [re-frame.core :as re-frame] [webchange.editor.events :as edit-scene] [webchange.interpreter.pixi :refer [Container Graphics Rectangle Sprite WHITE Text]] [webchange.interpreter.renderer.state.editor :as editor] [webchange.inter...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/a9010b046126d20d5ee3bd8a16bb6c07cb7230d6/src/cljs/webchange/interpreter/renderer/scene/modes/editor_frame.cljs
clojure
(ns webchange.interpreter.renderer.scene.modes.editor-frame (:require [re-frame.core :as re-frame] [webchange.editor.events :as edit-scene] [webchange.interpreter.pixi :refer [Container Graphics Rectangle Sprite WHITE Text]] [webchange.interpreter.renderer.state.editor :as editor] [webchange.inter...
be0c52f0a9ccd283fde823dae84a9c05a7fdfcfa02db6611ccdf7b932252ce12
PrecursorApp/precursor
utils.clj
(ns pc.utils (:require clojure.pprint [clojure.tools.logging :as log] [pc.rollbar :as rollbar] [schejulure.core :as schejulure] [slingshot.slingshot :refer (try+)]) (:import [java.net URL MalformedURLException])) (defmacro inspect "prints the expression '<name> is ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/utils.clj
clojure
(ns pc.utils (:require clojure.pprint [clojure.tools.logging :as log] [pc.rollbar :as rollbar] [schejulure.core :as schejulure] [slingshot.slingshot :refer (try+)]) (:import [java.net URL MalformedURLException])) (defmacro inspect "prints the expression '<name> is ...
9ea3560eb8a6a12427cf2c4d5da3cc4bd5808c6a31471b25fe56cf9ac81c20ff
gulige/neuroevo
gstk_text.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/gulige/neuroevo/09e67928c2417f2b27ec6522acc82f8b3c844949/apps/gs/src/gstk_text.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 1996 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(gstk_text). stipple scale { Xo , Yo , , Sy } keyrelease [ Bool | { Bool , Data } ] R...
200c3c7d62aae9d87eb5465b1b1b5874882faeaa56fd2842ec38919164ea3d17
timothypratley/leaderboardx
login.cljs
(ns algopop.leaderboardx.app.views.login (:require [algopop.leaderboardx.app.firebase :as firebase])) (defn login-view [] [:div {:style {:float "right"}} (if-let [{:keys [photo-url display-name]} @firebase/user] [:span [:button.btn.btn-default {:on-click (fn logout-click [e] ...
null
https://raw.githubusercontent.com/timothypratley/leaderboardx/ad1719b3bb49fb7ab495ed833f1a451ebb3aec4d/src/algopop/leaderboardx/app/views/login.cljs
clojure
(ns algopop.leaderboardx.app.views.login (:require [algopop.leaderboardx.app.firebase :as firebase])) (defn login-view [] [:div {:style {:float "right"}} (if-let [{:keys [photo-url display-name]} @firebase/user] [:span [:button.btn.btn-default {:on-click (fn logout-click [e] ...
cd7304882b042a3b085467f918582ddecb92816f32bb4fbc6495e6de760ce831
samrushing/irken-compiler
keysched.scm
;; -*- Mode: Irken -*- (require "lib/crypto/hkdf.scm") (require "doom/tls/codec.scm") (define (keysched/make hash cipher draft-version) (let ((tscript '()) (hsize hash.size) (zeros (format (repeat hsize "\x00"))) (hempty (hash.oneshot "")) (hkdf (hkdf/make hash)) ;; ...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/doom/tls/keysched.scm
scheme
-*- Mode: Irken -*- XXX wipe secrets when no longer needed handshake secret master secret this XORs the sequence number as a big-endian u64 how to encrypt pkt[s]: PT = pkts + ctype-byte + padding IV = hs-w-iv XOR sequence-number the mac is at the end of the ciphertext AD == packet header == opaque_t...
(require "lib/crypto/hkdf.scm") (require "doom/tls/codec.scm") (define (keysched/make hash cipher draft-version) (let ((tscript '()) (hsize hash.size) (zeros (format (repeat hsize "\x00"))) (hempty (hash.oneshot "")) (hkdf (hkdf/make hash)) (secrets { curr...
70fc830cf151067afa77e41da07843031cff054ef816394ac7efc717de62decb
bpringe/coinbase-pro-clj
utilities.clj
(ns coinbase-pro-clj.utilities (:require [clojure.data.json :as json] [ring.util.codec :refer [form-encode]])) (defn edn->json [edn-content] (json/write-str edn-content)) (defn json->edn [json-content] (json/read-str json-content :key-fn keyword)) (defn contains-many? [m & ks] (every? #(contains?...
null
https://raw.githubusercontent.com/bpringe/coinbase-pro-clj/e3495e0bee5b32535d2d6253af82ae054946e5e7/src/coinbase_pro_clj/utilities.clj
clojure
(ns coinbase-pro-clj.utilities (:require [clojure.data.json :as json] [ring.util.codec :refer [form-encode]])) (defn edn->json [edn-content] (json/write-str edn-content)) (defn json->edn [json-content] (json/read-str json-content :key-fn keyword)) (defn contains-many? [m & ks] (every? #(contains?...
ab2890bf505df6f07b53b497fa352b3c1107e9e84ea821288be37139431ba69f
boxp/sorcerer
slack_rtm.clj
(ns sorcerer.infra.client.slack-rtm (:require [clojure.spec.alpha :as s] [slack-rtm.core :as rtm] [clojure.core.async :refer [chan put! close!]] [com.stuartsierra.component :as component])) (s/def ::rtm-connection (s/nilable map?)) (s/def ::message-channel (s/nilable #(instance? (...
null
https://raw.githubusercontent.com/boxp/sorcerer/38fa7706439c35613cba7e04d715f5340e8a404c/src/sorcerer/infra/client/slack_rtm.clj
clojure
(ns sorcerer.infra.client.slack-rtm (:require [clojure.spec.alpha :as s] [slack-rtm.core :as rtm] [clojure.core.async :refer [chan put! close!]] [com.stuartsierra.component :as component])) (s/def ::rtm-connection (s/nilable map?)) (s/def ::message-channel (s/nilable #(instance? (...
d75370f568dde1aea86e755e2a68d097879e3ac8c7158f123cd66db5349e9d85
iu-parfunc/verified-instances
List.hs
{-@ LIQUID "--higherorder" @-} {-@ LIQUID "--exactdc" @-} {-@ LIQUID "--noadt" @-} {-# LANGUAGE Rank2Types #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module GenericProofs.VerifiedFunctor.Examples.List where import Language.Haskell.Liquid.ProofCombinators import GenericPr...
null
https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/generic-proofs/src/GenericProofs/VerifiedFunctor/Examples/List.hs
haskell
@ LIQUID "--higherorder" @ @ LIQUID "--exactdc" @ @ LIQUID "--noadt" @ # LANGUAGE Rank2Types # @ axiomatize fromList @ @ axiomatize toList @ @ tofList :: forall a. l:List a -> { toList (fromList l) == l } @ @ axiomatize fromList @ @ axiomatize toList @ @ tofList :: forall a. l:List a -> {...
# LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module GenericProofs.VerifiedFunctor.Examples.List where import Language.Haskell.Liquid.ProofCombinators import GenericProofs.Iso import GenericProofs.TH import GenericProofs.VerifiedFunctor import GenericProofs.VerifiedFunctor.Generics import Generics.Deriving....
cdf00329128d80ccc4307f8f5007b3405d839cbbad29adf7bde183dabf169bb7
Rainist/kubeletter
reporter.clj
(ns kubeletter.reporter (:require [kubeletter.deliver.deliverer :as deliverer]) (:use [clojure.pprint])) (defn report [ready-report] (-> ready-report deliverer/hand-over))
null
https://raw.githubusercontent.com/Rainist/kubeletter/da326a067147f45b069a49d22730ea07675f9e16/kubeletter/src/kubeletter/reporter.clj
clojure
(ns kubeletter.reporter (:require [kubeletter.deliver.deliverer :as deliverer]) (:use [clojure.pprint])) (defn report [ready-report] (-> ready-report deliverer/hand-over))
da5aa086895eb174721f73908d36dbc5a253c90c26f2b898e7597c7b45d08120
golems/motion-grammar-kit
regex.lisp
;;;; -*- Lisp -*- ;;;; Copyright ( c ) 2012 , Georgia Tech Research Corporation ;;;; All rights reserved. ;;;; Author(s ): < > Georgia Tech Humanoid Robotics Lab Under Direction of Prof. ;;;; ;;;; This file is provided under the following "BSD-style" License: ;;;; ;;;; Redistribution and use in source a...
null
https://raw.githubusercontent.com/golems/motion-grammar-kit/42e8e19e25c4333f76cba4b3c4e589b24f98d660/src/regex.lisp
lisp
-*- Lisp -*- All rights reserved. This file is provided under the following "BSD-style" License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above c...
Copyright ( c ) 2012 , Georgia Tech Research Corporation Author(s ): < > Georgia Tech Humanoid Robotics Lab Under Direction of Prof. CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMA...
699060140835eb1ae69afb32cf8b73563abcb7c728d82836b3a4a81bc19053ce
DrakeAxelrod/mrclean
Lib.hs
Lab 4 Date : 2022 - 12 - 14 Authors : , Lab group : 68 Date: 2022-12-14 Authors: Hugo Lom, Drake Axelrod Lab group: 68 -} module Lib (cli) where import MrClean (cli)
null
https://raw.githubusercontent.com/DrakeAxelrod/mrclean/1fe5d422e9eb88b03f034e792b8ebe97fdbe5fb5/src/Lib.hs
haskell
Lab 4 Date : 2022 - 12 - 14 Authors : , Lab group : 68 Date: 2022-12-14 Authors: Hugo Lom, Drake Axelrod Lab group: 68 -} module Lib (cli) where import MrClean (cli)
37adf27ccd00eef3638e005a9b004ee0c187a6402bc0c0d70bf67f38215442c1
mindreframer/clojure-stuff
acceptance_test.clj
(ns yesql.acceptance-test (:require [expectations :refer :all] [clojure.java.jdbc :as jdbc] [yesql.core :refer :all]) (:import [java.sql SQLException])) (def derby-db {:subprotocol "derby" :subname (gensym "memory:") :create true}) ;;; Single query. (defquery ...
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/krisajenkins/yesql/test/yesql/acceptance_test.clj
clojure
Single query. Multiple-query workflow. Create Insert -> Select. Select with IN. Update -> Select. Delete -> Select. Failing transaction: Insert with abort. Drop
(ns yesql.acceptance-test (:require [expectations :refer :all] [clojure.java.jdbc :as jdbc] [yesql.core :refer :all]) (:import [java.sql SQLException])) (def derby-db {:subprotocol "derby" :subname (gensym "memory:") :create true}) (defquery current-time "yesq...
13b11f678d078e1aeb62194a8869d597b26bd1e5ea408c291b49770b87508361
cram2/cram
machine.lisp
;; Constants specifying limits of floating point calculations in hardware Time - stamp : < 2014 - 01 - 21 12:41:48EST machine.lisp > ;; Copyright 2010 , 2014 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under ...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/test-unit/machine.lisp
lisp
Constants specifying limits of floating point calculations in hardware This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN...
Time - stamp : < 2014 - 01 - 21 12:41:48EST machine.lisp > Copyright 2010 , 2014 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have recei...
d398c3ad14bca1858df2ede29bcfbadb1efa32dc0375280569a1fd156c58836d
ndmitchell/catch
Internal.hs
module Data.Proposition.Internal where import Control.Monad.Identity import Control.Monad.State data PropFold lit res = PropFold {foldOr :: [res] -> res, foldAnd :: [res] -> res, foldNot :: res -> res , foldLit :: lit -> res } class Prop p where propTrue :: p a propFa...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/proposition/Data/Proposition/Internal.hs
haskell
non essential methods based on the instance for Maybe | Try and simplify an Or, using implies | Try and simplify an And, using implies
module Data.Proposition.Internal where import Control.Monad.Identity import Control.Monad.State data PropFold lit res = PropFold {foldOr :: [res] -> res, foldAnd :: [res] -> res, foldNot :: res -> res , foldLit :: lit -> res } class Prop p where propTrue :: p a propFa...
918aca04d7014d94f1b37fad382920a92e407b8cc283021c56c148ef05a0498f
rwmjones/guestfs-tools
ssh_key.mli
virt - customize * Copyright ( C ) 2014 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later v...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/3a498512f58bc431db490e96cdb712b19389bda4/customize/ssh_key.mli
ocaml
Default key from the user in the system, in * the style of ssh-copy-id(1)/default_ID_file. Key from the specified file. Key specified as string.
virt - customize * Copyright ( C ) 2014 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later v...
063fc72f3f0ac257bbb9e41827d9caafa714085734df67d7d83b8a5cd20dd560
nsg-ethz/O4
context.rkt
#lang racket/base ; Compiler Context ; --------------------------------------- (provide (all-from-out o4/context/base o4/context/factory o4/context/parameter-argument o4/context/variable)) ; Implementation ; --------------------------------------- (require o4/context/base ...
null
https://raw.githubusercontent.com/nsg-ethz/O4/870f6f78a6f7bb1e9e1502e29ff0048e5e1723c5/o4/context.rkt
racket
Compiler Context --------------------------------------- Implementation ---------------------------------------
#lang racket/base (provide (all-from-out o4/context/base o4/context/factory o4/context/parameter-argument o4/context/variable)) (require o4/context/base o4/context/factory o4/context/parameter-argument o4/context/variable)
89fe7ec42ff811b859b5bf6aaecf7d34b1207c9d0a1ff8c3b6467c52ebdfd668
hipsleek/hipsleek
share_prover_w.ml
#include "xdebug.cppo" open Gen let no_pos = no_pos let report_error = Gen.report_error module Ts = Tree_shares.Ts module CP = Cpure module Sv : Share_prover . SV = struct type t = CP.spec_var let = ref 1 let eq = CP.eq_spec_var ( * type t_spec = CP.spec_var let rconv v = v let conv v = v l...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/share_prover_w.ml
ocaml
type t_spec = CP.spec_var let rconv v = v let conv v = v let string_of_s v1 = CP.string_of_spec_var v1 let get_name_s v = CP.string_of_spec_var v Debug.devel_print ("r: "^(string_of_bool r)^"\n"); t_var list -> nz_cons -> eq_syst -> t_var list -> nz_cons -> eq_syst -> (t_var*bool) list -> (t_var*t_var) list-> b...
#include "xdebug.cppo" open Gen let no_pos = no_pos let report_error = Gen.report_error module Ts = Tree_shares.Ts module CP = Cpure module Sv : Share_prover . SV = struct type t = CP.spec_var let = ref 1 let eq = CP.eq_spec_var ( * type t_spec = CP.spec_var let rconv v = v let conv v = v l...
09df97c6a990c7360f67d2769f185f9bf92679427449dc4177c49de760227bda
vbmithr/ocaml-kraken
kraken_rest.ml
open Core open Kraken open Fastrest open Json_encoding module Asset = struct type t = { name: string ; altname: string ; aclass: aclass ; decimals: int ; display_decimals: int ; } let encoding name = conv (fun _ -> assert false) (fun (altname, aclass, decimals, display_decima...
null
https://raw.githubusercontent.com/vbmithr/ocaml-kraken/a330826b5f2ce1a20d34c67f5080e6d7ebccd177/src/kraken_rest.ml
ocaml
open Core open Kraken open Fastrest open Json_encoding module Asset = struct type t = { name: string ; altname: string ; aclass: aclass ; decimals: int ; display_decimals: int ; } let encoding name = conv (fun _ -> assert false) (fun (altname, aclass, decimals, display_decima...
b8991eb1338db6d933822d3c69bd9603fd519846cee8066313a2706cf8793161
input-output-hk/cardano-sl
Node.hs
# OPTIONS_GHC -fno - warn - name - shadowing # # LANGUAGE BangPatterns # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE GADTSyntax # # LANGUAGE Generalize...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/networking/src/Node.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE RankNTypes # # LANGUAGE RecursiveDo # | Custom exception thrown by recvNext This carries the fields of the 'Fail' constructor of 'Decoder' constraints on them. | A listener that handles an in...
# OPTIONS_GHC -fno - warn - name - shadowing # # LANGUAGE BangPatterns # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE GADTSyntax # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns ...
0a787f9cd42ce426ea839170c63cee1aca9d49cd49a9c00b1e31c0fcc82a5401
dgtized/shimmers
sketches.cljs
(ns shimmers.sketches (:require [shimmers.common.sequence :as cs] [shimmers.macros.loader :as loader :include-macros true] [shimmers.registry :as registry] shimmers.sketches.additive-displacement shimmers.sketches.all-the-shapes-in-between shimmers.sketches.angle-of-ascent shimmers.sketches.asce...
null
https://raw.githubusercontent.com/dgtized/shimmers/c91dbb3e927396d0e43ee63c31e6ca0e9c191d04/src/shimmers/sketches.cljs
clojure
(ns shimmers.sketches (:require [shimmers.common.sequence :as cs] [shimmers.macros.loader :as loader :include-macros true] [shimmers.registry :as registry] shimmers.sketches.additive-displacement shimmers.sketches.all-the-shapes-in-between shimmers.sketches.angle-of-ascent shimmers.sketches.asce...
ee81cb9928914b44079756050fca8d575667c5a3e5ad30191a16aae189f90a85
let-def/cuite
mlgen.ml
open Utils open Mlspec open Mangle TODO - replace " Invalid_value"/fallback by some abstraction - ... - replace "Invalid_value"/fallback by some abstraction - ... *) let ml_postype oc = function | QClass cl -> fprintf oc "%s qt" (QClass.ml_shadow_type cl) | QEnum en -> fprintf oc "%s" (QEnum....
null
https://raw.githubusercontent.com/let-def/cuite/42629a91c573ecbf1b01f213f1bf35a456d2b1af/gen/mlgen.ml
ocaml
open Utils open Mlspec open Mangle TODO - replace " Invalid_value"/fallback by some abstraction - ... - replace "Invalid_value"/fallback by some abstraction - ... *) let ml_postype oc = function | QClass cl -> fprintf oc "%s qt" (QClass.ml_shadow_type cl) | QEnum en -> fprintf oc "%s" (QEnum....
d28fa3c8046ca71276112dd8fc4ed13b5b022d2b500a55cc0b24ba12cb05c4cd
racket/rackunit
gui.rkt
#lang typed/racket (require typed/rackunit typed/private/utils) (require/typed/provide rackunit/gui [test/gui (Test * -> Any)] [make-gui-runner (-> (Test * -> Any))]) this library transitively imports the gui framework and fails in due ;; to gui-related configuration not being set, so we don't run ...
null
https://raw.githubusercontent.com/racket/rackunit/f94364891f201f90c055adb1521e5f038ce75411/rackunit-typed/rackunit/gui.rkt
racket
to gui-related configuration not being set, so we don't run it in tests
#lang typed/racket (require typed/rackunit typed/private/utils) (require/typed/provide rackunit/gui [test/gui (Test * -> Any)] [make-gui-runner (-> (Test * -> Any))]) this library transitively imports the gui framework and fails in due (module test racket/base)
855e1b9d1e4368be74ce857d7d676617e9b3c74fa62a7a88df86089dd03f5610
helvm/helma
FileExtra.hs
module HelVM.HelMA.Automata.FileExtra ( readSourceFile, buildAbsoluteLangFileName, buildAbsoluteModeFileName, buildAbsoluteLambdaFileName, buildAbsoluteIlFileName, buildAbsoluteExtFileName, buildAbsoluteOutFileName, buildAbsoluteLogFileName, buildAbsoluteEvalFileName, showAscii, options, ) where ...
null
https://raw.githubusercontent.com/helvm/helma/3dc4e01f7f020397e34f4a8313f54b08b27f33e9/hs/test/HelVM/HelMA/Automata/FileExtra.hs
haskell
module HelVM.HelMA.Automata.FileExtra ( readSourceFile, buildAbsoluteLangFileName, buildAbsoluteModeFileName, buildAbsoluteLambdaFileName, buildAbsoluteIlFileName, buildAbsoluteExtFileName, buildAbsoluteOutFileName, buildAbsoluteLogFileName, buildAbsoluteEvalFileName, showAscii, options, ) where ...
dfe65726bd664c76bdf61a9a114913c8a4da532a9fcc3f54f7c1448699b0bce2
finnishtransportagency/harja
sivupalkki.cljs
(ns harja.ui.sivupalkki (:require [harja.loki :refer [log logt tarkkaile!]])) (defn oikea "Leveys on sivupalkin leveys. Normaalisivupalkki on 600px ja normaalin päälle avattava palkki on 570px. Järjestys numero on väliltä 1-2. Järejestys 1 on leveä normaali sivupalkki ja järjestys 2 on kapeampi normaalin pääll...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/73bbb06f5a6db59e568898afe1d2cb0dc749c803/src/cljs/harja/ui/sivupalkki.cljs
clojure
(ns harja.ui.sivupalkki (:require [harja.loki :refer [log logt tarkkaile!]])) (defn oikea "Leveys on sivupalkin leveys. Normaalisivupalkki on 600px ja normaalin päälle avattava palkki on 570px. Järjestys numero on väliltä 1-2. Järejestys 1 on leveä normaali sivupalkki ja järjestys 2 on kapeampi normaalin pääll...
b5e3c601c4c1b61d2cf2a89ab8003873f92a20239e388f313e76f8d7ccc67593
ollef/sixty
Run.hs
# LANGUAGE BlockArguments # module Command.Run where import qualified Command.Compile import Protolude import System.Process run :: Command.Compile.Options -> IO () run = Command.Compile.withCompiledExecutable \exe -> callProcess exe []
null
https://raw.githubusercontent.com/ollef/sixty/5d630ca6fde91da5a691dc7cd195f5cbf6491eb0/src/Command/Run.hs
haskell
# LANGUAGE BlockArguments # module Command.Run where import qualified Command.Compile import Protolude import System.Process run :: Command.Compile.Options -> IO () run = Command.Compile.withCompiledExecutable \exe -> callProcess exe []
fb72e861c276fccb3e59ec36f3f4653978411e0f356e72cb8afe58ceb94cd102
gsakkas/rite
20060323-20:07:14-1ff99f5b5d1579e4b5f2712f7687bb64.seminal.ml
exception Unimplemented exception AlreadyDone exception InvalidAngle let pi = 4.0 *. atan 1.0 let rec loopFor moves lst index acc2 = if (index = (moves-1)) then acc2 else loopFor moves lst (index+1) ((List.nth lst index)::acc2) (*** part a ***) type move = Home | Forward of float | Turn...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060323-20%3A07%3A14-1ff99f5b5d1579e4b5f2712f7687bb64.seminal.ml
ocaml
** part a ** ** part b ** ** part c ** ** part d ** ** part e ** ** part f ** ** possibly helpful testing code **
exception Unimplemented exception AlreadyDone exception InvalidAngle let pi = 4.0 *. atan 1.0 let rec loopFor moves lst index acc2 = if (index = (moves-1)) then acc2 else loopFor moves lst (index+1) ((List.nth lst index)::acc2) type move = Home | Forward of float | Turn of float | For...
8c3aafe04ac9e8626c79593be759a532860f16e0adfe4e533cdd2d8cfae95a25
binsec/haunted
trace_type.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/base/trace_type.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
6ccb19f211779767ea2e5d4e6d0d1167b4a80ff2e5715403d2c9ec8614e97232
rbkmoney/fistful-server
ff_provider.erl
%%% %%% Wallet provider %%% TODOs %%% %%% - If an identity class is essentially a contract template then there's no %%% way we could tell which currencies provider does provide without knowing %%% what identity class we're talking about. %%% - It's generally considerably easier to reference any referencable o...
null
https://raw.githubusercontent.com/rbkmoney/fistful-server/f6155acb0475987e47a4fbc911758c595e129c80/apps/fistful/src/ff_provider.erl
erlang
Wallet provider - If an identity class is essentially a contract template then there's no way we could tell which currencies provider does provide without knowing what identity class we're talking about. - It's generally considerably easier to reference any referencable object with a single ID, like...
TODOs -module(ff_provider). -include_lib("damsel/include/dmsl_domain_thrift.hrl"). -type contract_template_ref() :: dmsl_domain_thrift:'ContractTemplateRef'(). -type contractor_level() :: dmsl_domain_thrift:'ContractorIdentificationLevel'(). -type id() :: binary(). -type provider() :: #{ id := id(), payin...
be38cb2a1e2c15f57c9dc2541624be207719d54c6ad16f952245e515d1916a5f
tmattio/js-bindings
vscode_languageserver_protocol_protocol_color_provider.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 open Vscode_jsonrpc open Vscode_languageserver_types open Vscode_languageserver_protocol_messages open Vscode_languageserver_protocol_protocol module DocumentColorClientCapabilitie...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageserver-protocol/vscode_languageserver_protocol_protocol_color_provider.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 open Vscode_jsonrpc open Vscode_languageserver_types open Vscode_languageserver_protocol_messages open Vscode_languageserver_protocol_protocol module DocumentColorClientCapabilitie...
e5080e429ecd71d1f2bc0ca8c98a7a7997f8de31067063b195166c939e78d6bc
mbutterick/aoc-racket
22.rkt
#lang br (require racket/file rackunit racket/set) (struct result (who cards) #:transparent) (match-define (list p1s p2s) (let* ([str (file->string "22.rktd")] [strs (string-split str "\n\n")]) (map (λ (str) (cdr (map string->number (string-split str "\n")))) strs))) (define (play-game p1s p2s [recur...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2020/22.rkt
racket
#lang br (require racket/file rackunit racket/set) (struct result (who cards) #:transparent) (match-define (list p1s p2s) (let* ([str (file->string "22.rktd")] [strs (string-split str "\n\n")]) (map (λ (str) (cdr (map string->number (string-split str "\n")))) strs))) (define (play-game p1s p2s [recur...
752ad1f98aa85cc1870ea84a48a3bf8ce35c4bb30934d2065e07f3df391ff940
vans163/stargate
stargate_template.erl
-module(stargate_template). -compile(export_all). -define(RE_ATOM, " :(.*?) "). -define(RE_DEFAULT_REIKSGUARD, "<%=(.*?)%>"). TODO : Open pull request to OTP for this binary_replace(Binary, {StartPos, Len}, Replacement) -> Prefix = binary:part(Binary, 0, StartPos), SuffixLen = byte_size(Binary) - (StartPos + ...
null
https://raw.githubusercontent.com/vans163/stargate/0860dc5f8901dcb51db25224d35885ed6e0f5ff3/src/plugin/stargate_template.erl
erlang
= case :category of <<\"index\">>-> 'my-nav-list-active'; _-> '' end. %>'> = case :category of <<\"feature\">>-> 'my-nav-list-active'; _-> '' end. %>'> = :category %> ></li>
-module(stargate_template). -compile(export_all). -define(RE_ATOM, " :(.*?) "). -define(RE_DEFAULT_REIKSGUARD, "<%=(.*?)%>"). TODO : Open pull request to OTP for this binary_replace(Binary, {StartPos, Len}, Replacement) -> Prefix = binary:part(Binary, 0, StartPos), SuffixLen = byte_size(Binary) - (StartPos + ...
a294811cac43d992822d57ec081a5492ac76fa43460295c5ca650234c3690afd
nunchaku-inria/nunchaku
AnalyzeType.mli
(* This file is free software, part of nunchaku. See file "license" for more details. *) (** {1 Analyze Types : Cardinalities, Abstract, Incomplete} *) exception Error of string exception Polymorphic exception EmptyData of ID.t module Make(T : TermInner.S) : sig type ty = T.t type 'a env = ('a, ty) Env.t (...
null
https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/core/AnalyzeType.mli
ocaml
This file is free software, part of nunchaku. See file "license" for more details. * {1 Analyze Types : Cardinalities, Abstract, Incomplete} * We only consider monomorphic types * @param default_card if provided, the uninterpreted types we know nothing about will be considered as having this card * Is the ...
exception Error of string exception Polymorphic exception EmptyData of ID.t module Make(T : TermInner.S) : sig type ty = T.t type 'a env = ('a, ty) Env.t type cache * Cache for cardinality computations val create_cache : ?default_card:int -> unit -> cache val cardinality_ty : ?cache:cac...
5290db02fd140ce920faef80569648eedde3a1c77b22425ecd89d8d14bf62c80
dinosaure/cri
protocol.ml
[@@@warning "-8"] type nick = { nick : Nickname.t; hopcount : int option; } type user = { username : string ; mode : int ; realname : string } type server = { servername : [ `raw ] Domain_name.t ; hopcount : int ; info : string } type oper = { user : string; passw...
null
https://raw.githubusercontent.com/dinosaure/cri/d75b8006f5e560ef4865450e3baa424272c41fbf/lib/protocol.ml
ocaml
XXX(dinosaure): time-zone?
[@@@warning "-8"] type nick = { nick : Nickname.t; hopcount : int option; } type user = { username : string ; mode : int ; realname : string } type server = { servername : [ `raw ] Domain_name.t ; hopcount : int ; info : string } type oper = { user : string; passw...
fd6644e10fc9c652be157ad18b5b311871d1174a6115f9823c2156ce7dfbfb3a
wireless-net/erlang-nommu
reltool_server_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/reltool/test/reltool_server_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2009 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(reltool_server_SUITE). -export([a...
4b798a9fac0a6711c939d8992aa97cc85151a1a2255ef3ebf2971b7dec8e72b4
sunshineclt/Racket-Helper
homework7-1.rkt
#lang racket (require scheme/mpair) (define map-graph (mlist)) (define row 0) (define column 0) (define pace 0) (define four-direction (list (cons 1 0) (cons 0 1) (cons -1 0) (cons 0 -1))) (define answer 100000000) (define (update-answer now-answer) (if (< now-answer answer) (set! answer now-answer) (voi...
null
https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E9%99%88%E4%B9%90%E5%A4%A9/Week7/homework7-1.rkt
racket
start with 0
#lang racket (require scheme/mpair) (define map-graph (mlist)) (define row 0) (define column 0) (define pace 0) (define four-direction (list (cons 1 0) (cons 0 1) (cons -1 0) (cons 0 -1))) (define answer 100000000) (define (update-answer now-answer) (if (< now-answer answer) (set! answer now-answer) (voi...
1bd092bdf22d3251767943e5f5bd5130a786ba700cdbcfd2652cefc30687ff43
softwarelanguageslab/maf
R5RS_scp1_merge-4.scm
; Changes: * removed : 3 * added : 1 * swaps : 0 * negated predicates : 1 * swapped branches : 1 ; * calls to id fun: 0 (letrec ((first-el (lambda (best) (if (not (null? best)) (caar best) #f))) (smaller? (lambda (el1 el2) (string<? (symbol->string el1) (symb...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_merge-4.scm
scheme
Changes: * calls to id fun: 0
* removed : 3 * added : 1 * swaps : 0 * negated predicates : 1 * swapped branches : 1 (letrec ((first-el (lambda (best) (if (not (null? best)) (caar best) #f))) (smaller? (lambda (el1 el2) (string<? (symbol->string el1) (symbol->string el2)))) (same?...
c59c9a7ac409d5c2906b1cf873812b9b4bb8043800323bc4b6a20e0ea23e4576
8l/asif
Parse.hs
module Language.FOmega.Parse where import Language.FOmega.Syntax (Stmt(..), Tm(..), Pgm(..), pgm2Tm) import Prelude hiding (pi) import Control.Applicative hiding ((<|>), many) import Text.Parsec import qualified Text.Parsec.Token as P import Text.Parsec.String (parseFromFile) import Text.Parsec.Language parseExpr ...
null
https://raw.githubusercontent.com/8l/asif/3a0b0909e71a2e19e0773b3c77eadfa753751b41/src/Language/FOmega/Parse.hs
haskell
recursively parse loads <|> delta The lexer
module Language.FOmega.Parse where import Language.FOmega.Syntax (Stmt(..), Tm(..), Pgm(..), pgm2Tm) import Prelude hiding (pi) import Control.Applicative hiding ((<|>), many) import Text.Parsec import qualified Text.Parsec.Token as P import Text.Parsec.String (parseFromFile) import Text.Parsec.Language parseExpr ...
8971aba370f33390202fe9c376ebce5171975bf170c8715e1dbfea5952d58c1b
yjqww6/drcomplete
utils.rkt
#lang racket/base (require syntax/parse/define (for-syntax racket/base)) (define-syntax-parser cond-bound [(_ [(X:id ...) Body:expr ...] Rest ...) (if (andmap identifier-binding (syntax->list #'(X ...))) #'(begin Body ...) (syntax/loc this-syntax (cond-bound Rest ...)))] [(_ [(~literal else) Body...
null
https://raw.githubusercontent.com/yjqww6/drcomplete/9bb41e031280794d8e395d834ff49ebfc52569a5/drcomplete-required/private/utils.rkt
racket
#lang racket/base (require syntax/parse/define (for-syntax racket/base)) (define-syntax-parser cond-bound [(_ [(X:id ...) Body:expr ...] Rest ...) (if (andmap identifier-binding (syntax->list #'(X ...))) #'(begin Body ...) (syntax/loc this-syntax (cond-bound Rest ...)))] [(_ [(~literal else) Body...
e81a68745ba2ce5b23fa4568325ce1fab021575c63e38c037d3000c33180ee20
namin/staged-miniKanren
staged-interp.scm
(define (booleano x) (conde ((== x #t)) ((== x #f)))) (define (groundo x) (fresh () (non-varo x) (conde ((== #t x)) ((== #f x)) ((symbolo x)) ((numbero x)) ((== x '())) ((fresh (a d) (== (cons a d) x) (groundo a) (groundo d)))))) (defi...
null
https://raw.githubusercontent.com/namin/staged-miniKanren/66d53a24ca1a5bef106fa08545c6f3b7cdfe0136/staged-interp.scm
scheme
Multi-argument Multi-argument need to make sure lambdas are well formed. grammar constraints would be useful here!!! a match fails if no clause matches; in unstaged this happens when reaching match-clauses with an empty list of clauses. in staged, defer to runtime. a variable pattern cannot fail when it is fa...
(define (booleano x) (conde ((== x #t)) ((== x #f)))) (define (groundo x) (fresh () (non-varo x) (conde ((== #t x)) ((== #f x)) ((symbolo x)) ((numbero x)) ((== x '())) ((fresh (a d) (== (cons a d) x) (groundo a) (groundo d)))))) (defi...
052b5a16c67b7550fb71239eb7a2d2df537f56182b0810f23777b67146add5c1
uw-unsat/serval
load-store-multiple.rkt
#lang rosette (require "common.rkt") (provide stmdb ldmia) (define (decode-stmdb W Rn register_list) (define n Rn) (define registers register_list) (define wback (equal? W (bv 1 1))) (when (|| (r15? n) (bvzero? (bit-count registers))) (unpredictable)) (values n registers wback)) (define (interpr...
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/arm32/interp/load-store-multiple.rkt
racket
#lang rosette (require "common.rkt") (provide stmdb ldmia) (define (decode-stmdb W Rn register_list) (define n Rn) (define registers register_list) (define wback (equal? W (bv 1 1))) (when (|| (r15? n) (bvzero? (bit-count registers))) (unpredictable)) (values n registers wback)) (define (interpr...
72120e07dc7f1c58737321f5c38eb160272f79f86150da4bc13ace5f018870f0
ekmett/sparse
HLint.hs
import "hint" HLint.Default
null
https://raw.githubusercontent.com/ekmett/sparse/8de744d4c1f3520b84b0e841f7b24178f9a1ea2f/HLint.hs
haskell
import "hint" HLint.Default
09a3cdd88fd93f00bff3e39a9ae2dbbfdb55d971f00de3135277cdee0b4565d7
erlang/otp
receive_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2010 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/7f3aa9601b5411c86cbc65fc332d5a3d8a1e1c67/erts/emulator/test/receive_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2010 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(receive_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0, suite/0, init_per_testcase/2,...
5b2b5dc30ab5ca5182d68c44c1444b89c3033acd769515d94246e1d447f2f546
xavierleroy/camlidl
idlarray.ml
(***********************************************************************) (* *) (* CamlIDL *) (* *) , projet ...
null
https://raw.githubusercontent.com/xavierleroy/camlidl/7cf0fb8b7433d36ea092927b4cd5892a1ec7f5e4/compiler/idlarray.ml
ocaml
********************************************************************* CamlIDL ...
, projet Cristal , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed $ I d : array.ml , v 1.17 2002 - 01 - 16 09:42:00 xleroy Exp $ open Printf open Utils open Variables open I...
d7b40a13a4797be1351412aaf60e7e08e3f18efe10c55c711e93a65156dd6058
AdRoll/rebar3_format
truncate_strings.erl
-module(truncate_strings). -format #{truncate_strings => true}. -compile([export_all]). simple() -> "simple". multi() -> "mul" "ti". rows() -> "row1" "row2". newline() -> "new line". newlines() -> "new line1 with\ninside" "new line2". char() -> "\x61a". chars() ->...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/5ffb11341796173317ae094d4e165b85fad6aa19/test_app/src/strings/truncate_strings.erl
erlang
-module(truncate_strings). -format #{truncate_strings => true}. -compile([export_all]). simple() -> "simple". multi() -> "mul" "ti". rows() -> "row1" "row2". newline() -> "new line". newlines() -> "new line1 with\ninside" "new line2". char() -> "\x61a". chars() ->...
7e4ad6ef9394b99ffd6d5a9d431069fdf7d150f25bf562af3c7dda2efa052c50
yurug/ocaml4.04.0-copatterns
evaluation_order_1.ml
test evaluation order ' y ' is translated into a constant , and is therefore considered non - recursive . With the current letrec compilation method , it should be evaluated before x and 'y' is translated into a constant, and is therefore considered non-recursive. With the current letrec comp...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/testsuite/tests/letrec/evaluation_order_1.ml
ocaml
test evaluation order ' y ' is translated into a constant , and is therefore considered non - recursive . With the current letrec compilation method , it should be evaluated before x and 'y' is translated into a constant, and is therefore considered non-recursive. With the current letrec comp...
3cc7e9d6fd00994edd1067670e257274a2b3377c5d0e216ce1a1f1e1a79f7d92
malcolmreynolds/GSLL
cholesky.lisp
Cholesky Decomposition , We d May 3 2006 - 16:38 Time - stamp : < 2009 - 09 - 26 12:36:23EDT cholesky.lisp > $ Id$ (in-package :gsl) ;;; A symmetric, positive definite square matrix A has a Cholesky ;;; decomposition into a product of a lower triangular matrix L and its transpose L^T , ;;; A = L L^T ...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/linear-algebra/cholesky.lisp
lisp
A symmetric, positive definite square matrix A has a Cholesky decomposition into a product of a lower triangular matrix L and A = L L^T This is sometimes referred to as taking the square-root of a matrix. The Cholesky decomposition can only be carried out when all the eigenvalues of the matrix are positive. This...
Cholesky Decomposition , We d May 3 2006 - 16:38 Time - stamp : < 2009 - 09 - 26 12:36:23EDT cholesky.lisp > $ Id$ (in-package :gsl) its transpose L^T , GSL version 1.10 introduced functions for complex matrices . (defmfun cholesky-decomposition ((A matrix)) ("gsl_linalg" :complex "_cholesky_de...
663d92552030ef2117e248769343b4030fe6c72a0994c6fad911d252db95ed55
mtesseract/nakadi-client
Base.hs
{-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/src/Network/Nakadi/Internal/Types/Base.hs
haskell
# LANGUAGE DefaultSignatures # # LANGUAGE DeriveFunctor # # LANGUAGE GADTs # # LANGUAGE UndecidableInstances # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPING # # OVERLAPPABLE # # OVERLAPPABLE # # OVERLAPPABLE # # OVERLAPPABLE # # OVERLAPPABLE # # OVERLAPPA...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Network.Nakadi.Internal.Types.Base where import Control.Monad.Base import Control.Monad...
3caf8a47394ce9128698ad07cad038c54242342c00cf850a99cc8ddd5aa83a25
susanemcg/pandoc-tufteLaTeX2GitBook
ConTeXt.hs
{-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2007 - 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ver...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Writers/ConTeXt.hs
haskell
# LANGUAGE OverloadedStrings # number of next URL reference level of ordered list writer options title beginning with fig: indicates that the image is a figure If this is ever executed, provide a default for the reference identifier. ^ Inline to convert Handle HTML-like internal document references to sections ...
Copyright ( C ) 2007 - 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
3096c4703a18dd7c94ea8849feb9e441522b4911436f1ef83900aab959b03f7a
sgbj/MaximaSharp
ndotsimp.lisp
-*- Package : CL - MAXIMA ; Mode : LISP ; Syntax : Common - lisp -*- (in-package :maxima) ;(defun $check_associative (a b c &aux tem tem1 tem2) ;; (show (dotsimp (n. a b))) ;; (show (dotsimp (n. b c))) ;; (show (n. a (dotsimp (n. b c)))) ( show ( setq hee(n . ( dotsimp ( n. a b ) ) c ) ) ) ; (setq tem1 (new...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/affine/ndotsimp.lisp
lisp
Mode : LISP ; Syntax : Common - lisp -*- (defun $check_associative (a b c &aux tem tem1 tem2) (show (dotsimp (n. a b))) (show (dotsimp (n. b c))) (show (n. a (dotsimp (n. b c)))) (setq tem1 (new-dotsimp(n. (new-dotsimp (n. a b)) c))) (setq tem2 (new-dotsimp(n. a (new-dotsimp (n. b c))))) (show tem1 tem2) ...
(in-package :maxima) ( show ( setq hee(n . ( dotsimp ( n. a b ) ) c ) ) ) ( ( n- tem1 tem2 ) ) ( cond ( ( ) ) (defun $check_associative (a b c &aux tem tem1 tem2) (setq tem1 (n. (new-dotsimp (n. a b)) c)) (setq tem2 (n. a (new-dotsimp (n. b c)))) (setq tem (n- tem1 tem2)) (setq tem (new-dotsim...
18f4faa3d72ec20c2dfa3433c3c9cc0ef5066508e8e06046122b2b0e9cab1f55
bcc32/projecteuler-ocaml
numerics.ml
open! Core open! Import include Numerics_intf module Make (Real : Real) : S with type real = Real.t = struct open Real type real = Real.t let zero = of_int 0 let two = of_int 2 let four = of_int 4 let six = of_int 6 let[@cold] raise_expected_positive_epsilon epsilon = raise_s [%message "expected p...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/src/numerics.ml
ocaml
open! Core open! Import include Numerics_intf module Make (Real : Real) : S with type real = Real.t = struct open Real type real = Real.t let zero = of_int 0 let two = of_int 2 let four = of_int 4 let six = of_int 6 let[@cold] raise_expected_positive_epsilon epsilon = raise_s [%message "expected p...
13bca8aafedc137ce236097a2e0f59c35ebf290bda905c0edb50f7dbf133366c
jepsen-io/jepsen
monotonic.clj
(ns jepsen.cockroach.monotonic "Monotonic inserts over multiple tables" (:refer-clojure :exclude [test]) (:require [jepsen [cockroach :as cockroach] [client :as client] [checker :as checker] [generator :as gen] [independent :as indepe...
null
https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/cockroachdb/src/jepsen/cockroach/monotonic.clj
clojure
creates table-count tables for that key. juuust in case deterministic read orders matter we ca n't use parameters for tables :( a string in the table and an arbitrary-precision integer in clojure if global? is false, only checks on a Lost records are those we definitely added but weren't read Revived records are...
(ns jepsen.cockroach.monotonic "Monotonic inserts over multiple tables" (:refer-clojure :exclude [test]) (:require [jepsen [cockroach :as cockroach] [client :as client] [checker :as checker] [generator :as gen] [independent :as indepe...
b2032690dbca16b761bed8228d99216131c1f56db438300ae29162bcc5147a80
melisgl/mgl-pax
document.lisp
(in-package :mgl-pax) (in-readtable pythonic-string-syntax) (defsection @generating-documentation (:title "Generating Documentation") (document function) (mgl-pax/document asdf:system) (@markdown-support section) (@codification section) (@linking-to-code section) (@linking-to-the-hyperspec section) (@li...
null
https://raw.githubusercontent.com/melisgl/mgl-pax/849ae416216e3ff32b4a016f48de2e8a7fc43ba0/src/document/document.lisp
lisp
A PAGE is basically a single markdown or html file, to where the documentation of some references is written. See the DOCUMENT function. Documentation starts out being sent to a certain stream, but the output is redirected to different stream if it is for a reference on the current page (see COLLECT-REACHABLE-OB...
(in-package :mgl-pax) (in-readtable pythonic-string-syntax) (defsection @generating-documentation (:title "Generating Documentation") (document function) (mgl-pax/document asdf:system) (@markdown-support section) (@codification section) (@linking-to-code section) (@linking-to-the-hyperspec section) (@li...
108c309889354f8f15a1e6946b21a3f7c4f1020b7cc00bb2bded49c8732e7517
sicmutils/sicmutils
compile_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.expression.compile-test (:require [clojure.test :refer [is deftest testing]] [clojure.walk :as w] #?(:cljs [goog.string :refer [format]]) [same :refer [ish?]] [sicmutils.abstract.number] [sicmutils.expressi...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/4ddd4da5934261473abc39fe32b87af5eaa68dc6/test/sicmutils/expression/compile_test.cljc
clojure
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.expression.compile-test (:require [clojure.test :refer [is deftest testing]] [clojure.walk :as w] #?(:cljs [goog.string :refer [format]]) [same :refer [ish?]] [sicmutils.abstract.number] [sicmutils.expressi...
b3ab5e21eb52cb0a1285c38d223e2b166244dc840ffdb09b4d4b25ce7d60d0a5
djblue/portal
user.clj
(ns user (:require [clojure.java.io :as io] [portal.api :as p] [portal.viewer :as-alias v])) (defn with-viewer [viewer] (with-meta [:<> [:h1 [::v/inspector viewer]] [:div {:style {:padding 40}} [viewer [:h1 "hello, world"]]]] {::v/default ::v/hiccup})) ...
null
https://raw.githubusercontent.com/djblue/portal/f5a216aab7a09977434df5e55c93eddf07c83b37/examples/portal-present/src/user.clj
clojure
for debugging start nrepl subrepl
(ns user (:require [clojure.java.io :as io] [portal.api :as p] [portal.viewer :as-alias v])) (defn with-viewer [viewer] (with-meta [:<> [:h1 [::v/inspector viewer]] [:div {:style {:padding 40}} [viewer [:h1 "hello, world"]]]] {::v/default ::v/hiccup})) ...
07c68b116d5fccbf863039f9f403fbb83e82518d647939d5a01f6be2a60d471e
Kalimehtar/gir
property.rkt
#lang racket/base (require "loadlib.rkt" "object.rkt" "gtype.rkt" ffi/unsafe racket/list) (define-cstruct _gparam ([instance _pointer] [name _string] [_flags _int] [gtype _gtype] [owner-gtype _gtype])) (define-gobject...
null
https://raw.githubusercontent.com/Kalimehtar/gir/a9854262a438070334cfd8ff98cb86dd3803d7e3/gir/property.rkt
racket
#lang racket/base (require "loadlib.rkt" "object.rkt" "gtype.rkt" ffi/unsafe racket/list) (define-cstruct _gparam ([instance _pointer] [name _string] [_flags _int] [gtype _gtype] [owner-gtype _gtype])) (define-gobject...
d57669e25e1099dd563c3062ea5084506bf8a7bd02ec5de14602c3a382f7f6cd
scalar-labs/scalar-jepsen
elle_write_read_2pc_test.clj
(ns scalardb.elle-write-read-2pc-test (:require [clojure.test :refer :all] [jepsen.client :as client] [scalardb.core :as scalar] [scalardb.elle-write-read-2pc :as elle-wr] [spy.core :as spy]) (:import (com.scalar.db.api TwoPhaseCommitTransaction ...
null
https://raw.githubusercontent.com/scalar-labs/scalar-jepsen/7b0c6bc37457fac4e2a23ca8bde4493ca0398996/scalardb/test/scalardb/elle_write_read_2pc_test.clj
clojure
setup isn't executed
(ns scalardb.elle-write-read-2pc-test (:require [clojure.test :refer :all] [jepsen.client :as client] [scalardb.core :as scalar] [scalardb.elle-write-read-2pc :as elle-wr] [spy.core :as spy]) (:import (com.scalar.db.api TwoPhaseCommitTransaction ...
94cdf758ef7436fbb32b77c2ff3841341acff3830f8992f001cc2189a2c79e69
processone/ejabberd
mod_stun_disco_opt.erl
%% Generated automatically %% DO NOT EDIT: run `make options` instead -module(mod_stun_disco_opt). -export([access/1]). -export([credentials_lifetime/1]). -export([offer_local_services/1]). -export([secret/1]). -export([services/1]). -spec access(gen_mod:opts() | global | binary()) -> 'local' | acl:acl(). access(Opt...
null
https://raw.githubusercontent.com/processone/ejabberd/b860a25c82515ba51b044e13ea4e040e3b9bbc41/src/mod_stun_disco_opt.erl
erlang
Generated automatically DO NOT EDIT: run `make options` instead
-module(mod_stun_disco_opt). -export([access/1]). -export([credentials_lifetime/1]). -export([offer_local_services/1]). -export([secret/1]). -export([services/1]). -spec access(gen_mod:opts() | global | binary()) -> 'local' | acl:acl(). access(Opts) when is_map(Opts) -> gen_mod:get_opt(access, Opts); access(Host...
cfa2756e08ceb828bd1b2021f8ab345d788df0353e9274288825c8a450748a96
hypernumbers/hypernumbers
hn_logs.erl
@author < > ( C ) 2011 - 2014 , Hypernumbers Ltd %%% @doc Produces the log view %%% %%% @end Created : 23 Mar 2011 by %%%------------------------------------------------------------------- %%% %%% LICENSE %%% %%% This program is free software: you can redistribute it and/or modify it under the te...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/hypernumbers-1.0/src/hn_logs.erl
erlang
@doc Produces the log view @end ------------------------------------------------------------------- LICENSE This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ...
@author < > ( C ) 2011 - 2014 , Hypernumbers Ltd Created : 23 Mar 2011 by it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 You should have received a copy of the GNU Affero General Public License -module(hn_logs). -export([ ...
2ba5c4b9c0e6e75477f1c4ad75d08005865cf567ea1b8609a4c06b81f9cc7407
garrigue/lablgl
scene.ml
$ I d : scene.ml , v 1.1 2003 - 09 - 25 13:54:10 raffalli Exp $ converted to lablglut by Issac Trotts on July 25 , 2002 Initialize material property and light source . *) let myinit () = let light_ambient = 0.0, 0.0, 0.0, 1.0 and light_diffuse = 1.0, 1.0, 1.0, 1.0 and light_specular = 1.0, 1.0, 1.0, 1...
null
https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/LablGlut/examples/lablGL/scene.ml
ocaml
light_position is NOT default value
$ I d : scene.ml , v 1.1 2003 - 09 - 25 13:54:10 raffalli Exp $ converted to lablglut by Issac Trotts on July 25 , 2002 Initialize material property and light source . *) let myinit () = let light_ambient = 0.0, 0.0, 0.0, 1.0 and light_diffuse = 1.0, 1.0, 1.0, 1.0 and light_specular = 1.0, 1.0, 1.0, 1...
a0b90ab8a0ec15035b18da477c47fd1063026a693cea6d8f87d279506a708102
sgbj/MaximaSharp
sparsemat.lisp
-*- mode : lisp ; package : cl - maxima ; syntax : common - lisp ; base : 10 ; -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;;;; Copyright ( c ) 1984 by , University of Texas ; ; ; ; ; ;;; Al...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/affine/sparsemat.lisp
lisp
package : cl - maxima ; syntax : common - lisp ; base : 10 ; -*- ;;;;; ; ; ; ; All rights reserved ;;;;; key is the column ==>row number (aref column-used-in-row row-num) ==>column for row row-num lis...
(in-package :maxima) (defstruct (sparse-matrix :named (:conc-name sp-)) rows number-of-rows type-of-entries current-row current-row-number current-row-length pivot-row pivot-row-number characteristic inverse-array special-inverse special-plus (minimum-size-to-grow 1) (allow-reorder t) la...
f1ab48fe2b8e3ca946929e355fb5bd6d44ddfd76980b6a5712547346d72f7069
per-gron/termite
supervisor.scm
;; This supervisor is intended to be a transparent wrapper for a ;; process. ;; The code of the process must be in a thunk. ;; The only interface requirement for the supervised process is to ;; answer to the message 'shutdown (define (take lst n) (cond ((< n 1) '()) (else (cons (car lst) (take ...
null
https://raw.githubusercontent.com/per-gron/termite/d8b72aa5970d68c99953cf58e10e9eca7cb156be/examples/supervisor.scm
scheme
This supervisor is intended to be a transparent wrapper for a process. The code of the process must be in a thunk. The only interface requirement for the supervised process is to answer to the message 'shutdown the exception doesn't concern us, relay it to the process if an exception is signaled during the exec...
(define (take lst n) (cond ((< n 1) '()) (else (cons (car lst) (take (cdr lst) (- n 1)))))) (define (spawn-supervised thunk #!key (threshold 5) (window 1000) (...
d6f104846ff02903b2b932f91b65bca7145e337aaa48ec3b7e0bc813eca4a0a0
Drup/dowsing
Variable.mli
type t [@@ocaml.immediate] type var = t val as_int : t -> int val equal : t CCEqual.t val compare : t CCOrd.t module Map : CCMap.S with type key = t module HMap : CCHashtbl.S with type key = t module Set : CCSet.S with type elt = t module Namespace : sig type t = Data | Query val seed : t -> var val next : ...
null
https://raw.githubusercontent.com/Drup/dowsing/25f95c78c02deeee8bf9e203fb84fe87d723a76d/lib/common/Variable.mli
ocaml
type t [@@ocaml.immediate] type var = t val as_int : t -> int val equal : t CCEqual.t val compare : t CCOrd.t module Map : CCMap.S with type key = t module HMap : CCHashtbl.S with type key = t module Set : CCSet.S with type elt = t module Namespace : sig type t = Data | Query val seed : t -> var val next : ...
d99ee35881051501fa9c72528f19a0c1c4f4cfc58f6f7215650b7ad164bc811d
nokijp/pietc
VerboseMessage.hs
module VerboseMessage ( printVerboseMessage ) where import Language.Piet import System.IO printVerboseMessage :: PietStep -> IO () printVerboseMessage = hPutStrLn stderr . stepToMessage stepToMessage :: PietStep -> String stepToMessage StepReadImage = "reading image..." stepToMessage StepParse = "parsing..." ste...
null
https://raw.githubusercontent.com/nokijp/pietc/da6699c286a7b428b01211c8e467ce4ec1f7967e/app/VerboseMessage.hs
haskell
module VerboseMessage ( printVerboseMessage ) where import Language.Piet import System.IO printVerboseMessage :: PietStep -> IO () printVerboseMessage = hPutStrLn stderr . stepToMessage stepToMessage :: PietStep -> String stepToMessage StepReadImage = "reading image..." stepToMessage StepParse = "parsing..." ste...
d67392780176373b920f19139165d796cf10ba3d60a0eed4d444bf9bff126b85
electric-sql/vaxine
antidote_sup.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/5f88829a513a076e9928f389995d913ea381ccb6/apps/antidote/src/antidote_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 expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
e69053805e209f1e2dc9cfee4d1b3fd7ae2810574be25bb9a5bbda7dea46a0a7
RyanGlScott/text-show
SumSpec.hs
| Module : Spec . Data . Functor . SumSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ test for ' Sum ' . Module: Spec.Data.Functor.SumSpec Copyright: (C) 2014-2017 Ryan Scott L...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Spec/Data/Functor/SumSpec.hs
haskell
| Module : Spec . Data . Functor . SumSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ test for ' Sum ' . Module: Spec.Data.Functor.SumSpec Copyright: (C) 2014-2017 Ryan Scott L...
a0408273ad737ab6ad493ddd0a5bd738de67906065b061d8bc997457b45a601e
input-output-hk/cardano-ledger-byron
Compact.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Test.Cardano.Chain.Common.Compact ( tests ) where import Cardano.Prelude import Hedgehog (MonadTest, assert, forAll, property, tripping) import Cardano.Chain.Common (fromCompactAddress, toCompactAddress) im...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/Common/Compact.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ Compact Address ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Tripping util --------------------...
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Test.Cardano.Chain.Common.Compact ( tests ) where import Cardano.Prelude import Hedgehog (MonadTest, assert, forAll, property, tripping) import Cardano.Chain.Common (fromCompactAddress, toCompactAddress) import Test.Cardano.Chain.Common.Gen ...
f7199df3fb414272a781a3c9fd2e337d7062774ce3ccebffe48181887df91a66
duncanatt/detecter
hello.erl
%%% ---------------------------------------------------------------------------- @author %%% %%% @doc Hello world. %%% %%% @end %%% Copyright ( c ) 2021 , < > %%% %%% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
null
https://raw.githubusercontent.com/duncanatt/detecter/5c06c277b8168f85b6f2a85d372cf9320e324d0b/examples/erlang/src/demo/hello.erl
erlang
---------------------------------------------------------------------------- @doc Hello world. @end This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT FITNESS FOR A PARTICULAR PURPOSE. See ...
@author Copyright ( c ) 2021 , < > under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or You should have received a copy of the GNU...
5fced2f3c0fed36ddb17099fba4b5ab1d5a6351051e73d9df0d2abc807a05500
tonyg/racket-abnf
core.rkt
#lang racket/base (provide text) (require racket/match) (require (only-in racket/list flatten)) (require "../main.rkt") (define (text cst [f (lambda (walk cst) (walk cst))]) (list->string (flatten (traverse (lambda (walk cst) (f (lambda (cst) (match cst ...
null
https://raw.githubusercontent.com/tonyg/racket-abnf/1079bc5b30a227f52ac00a84dc3fcd539da5f8db/abnf/rfc5234/core.rkt
racket
#lang racket/base (provide text) (require racket/match) (require (only-in racket/list flatten)) (require "../main.rkt") (define (text cst [f (lambda (walk cst) (walk cst))]) (list->string (flatten (traverse (lambda (walk cst) (f (lambda (cst) (match cst ...
b7794bfae98e757fda7a522d501279103e086445fa943a86e52b46eb7b9ff748
lambdamikel/Common-Lisp-Tangram-Solver
tests.lisp
;;; -*- Mode: LISP; Syntax: Common-Lisp; Package: TANGRAM -*- (in-package :tangram) (progn (setf a1 (poly-from-xy-list '((0 0) (80 0) (40 40) (0 0))) b1 (poly-from-xy-list '((0 0) (0 80) (40 40) (0 0))) c1 (poly-from-xy-list '((80 80) (80 40) (40 80) (80 80))) d1 (poly-from-xy-list '((80 0...
null
https://raw.githubusercontent.com/lambdamikel/Common-Lisp-Tangram-Solver/0598dbe14ebd1e1564f00e5947227348ebf48f73/src/main/tests.lisp
lisp
-*- Mode: LISP; Syntax: Common-Lisp; Package: TANGRAM -*- a SET of set of tiles a SET of set of tiles
(in-package :tangram) (progn (setf a1 (poly-from-xy-list '((0 0) (80 0) (40 40) (0 0))) b1 (poly-from-xy-list '((0 0) (0 80) (40 40) (0 0))) c1 (poly-from-xy-list '((80 80) (80 40) (40 80) (80 80))) d1 (poly-from-xy-list '((80 0) (80 40) (60 20) (80 0))) e1 (poly-from-xy-list '((20...
842efb6b14e87867ed9a6ab4c74f88fbfdb3d8509165a8ad6bde07292b4aeadf
janestreet/base
type_equal.mli
* The purpose of [ Type_equal ] is to represent type equalities that the type checker otherwise would not know , perhaps because the type equality depends on dynamic data , or perhaps because the type system is n't powerful enough . A value of type [ ( a , b ) Type_equal.t ] represents that types [ a...
null
https://raw.githubusercontent.com/janestreet/base/d1a78c707487d75c1c2025679afda60672933739/src/type_equal.mli
ocaml
* just an alias, needed when [t] gets shadowed below * It is always safe to conclude that if type [a] equals [b], then for any type ['a t], type [a t] equals [b t]. The OCaml type checker uses this fact when it can. However, sometimes, e.g., when using [conv], one needs to explicitly use this fact to constru...
* The purpose of [ Type_equal ] is to represent type equalities that the type checker otherwise would not know , perhaps because the type equality depends on dynamic data , or perhaps because the type system is n't powerful enough . A value of type [ ( a , b ) Type_equal.t ] represents that types [ a...
2e028f05786eacdbcafab5507f51a149ac5b4915422eff5c4d1dcb2e7fada59f
yzhs/ocamlllvm
selection.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/asmcomp/hppa/selection.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 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 . $ I d : selection.ml 10296 2010 - 04 ...
ab8f3d3bfc5a72769868f1830ee0634a2e734fb7b094b761cbc73efc09d358b3
otto-de-legacy/machroput
deployment_test.clj
(ns de.otto.machroput.marathon.deployment-test (:require [de.otto.machroput.marathon.deployment :as mdep] [de.otto.machroput.marathon.mocks :as mocks] [de.otto.machroput.deploy-api :as dapi] [clojure.test :refer :all] [de.otto.machroput.marathon.checks :as checks])) (deftest not-starting-deployme...
null
https://raw.githubusercontent.com/otto-de-legacy/machroput/5bf000bc9408d440babfd75e73d777819e65e50d/test/de/otto/machroput/marathon/deployment_test.clj
clojure
(ns de.otto.machroput.marathon.deployment-test (:require [de.otto.machroput.marathon.deployment :as mdep] [de.otto.machroput.marathon.mocks :as mocks] [de.otto.machroput.deploy-api :as dapi] [clojure.test :refer :all] [de.otto.machroput.marathon.checks :as checks])) (deftest not-starting-deployme...
9623e126cef79ce757d2f59fbd74c1b3f50cbe77a5eef0aeacb2051927502d81
camllight/camllight
Equal.ml
(*************************************************************************) (* *) (* Projet Formel *) (* *) (* ...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/search_isos/Equal.ml
ocaml
*********************************************************************** Projet Formel CAML...
78150 Rocquencourt France and #open "const";; #open "globals";; #open "pr_type";; #open "myTypes";; #open "TypeRewrite";; #open "LC_unify";; let rec findiso flat_list flat_coord = ...
6a4f772fe61366ec13f4b83c78747739adb0b4310594a6deaca333071f912aba
KestrelInstitute/Specware
Tests.lisp
(test-directories ".") (test ("Bug 0102 : Extra variable in gnerated proof obligation [see test for 0101]" :show "ObligationsOfInteger.sw" expected output is the same as for test 101 :output '((:optional "") (:optional "") ";;; Elaborating obligator at $TESTDIR/ObligationsOfInt...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/TestSuite/Bugs/Bug_0102/Tests.lisp
lisp
j zdvd i\\<rbrakk>" ( j::int ) \\<noteq > 0 ; " 0 < x\\<rbrakk> \\<Longrightarrow> 0 < ld (x, base)\"" 0 < x\\<rbrakk> \\<Longrightarrow> x \\<ge> base ^ (ld (x, base) - 1)\""
(test-directories ".") (test ("Bug 0102 : Extra variable in gnerated proof obligation [see test for 0101]" :show "ObligationsOfInteger.sw" expected output is the same as for test 101 :output '((:optional "") (:optional "") ";;; Elaborating obligator at $TESTDIR/ObligationsOfInt...
cd65515f4df3c8d68294cd89210df408f37ce41d7df0f272cfee859faade27cc
zellerin/http2
dispatch.lisp
Copyright 2022 , 2023 by ;;;; As an example of how a server could be built, define class ;;;; vanilla-server-connection that dispatches incoming requests based on their ;;;; path to a handler function. Handlers are mapped either to specific path ;;;; (exact handler) or to a prefix (prefix handler). ;;;; use HAN...
null
https://raw.githubusercontent.com/zellerin/http2/6b3216a2743d303686c3c94bacaee66abccd9d1e/server/dispatch.lisp
lisp
As an example of how a server could be built, define class vanilla-server-connection that dispatches incoming requests based on their path to a handler function. Handlers are mapped either to specific path (exact handler) or to a prefix (prefix handler). it provides convenient and exported much more. I would p...
Copyright 2022 , 2023 by function for the handler to use ( SEND - DATA , SEND - TEXT , SEND - HEADERS , SEND - GOAWAY ) . Of course , existing framework arount http/1.1 ( Hunchentoot , ... ) provide (in-package :http2) (defclass dispatcher-mixin () ((exact-handlers :accessor get-exact-handlers :initar...
1a422e0372543b8ce69031b06b1f7bf6fa71e1ef8ff2e0902eda154de934cba5
ocaml/oasis
FormatExt.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/FormatExt.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
9afbe5f33a93d8ac4cfb05601916c4a807c6febcfdf16d60c2240b878717efe2
ermine-language/ermine
Env.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} # LANGUAGE TupleSections # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # -------------------------------------------------------------------- -- | Copyright : ( c ) and 2013 - 2014 License : BSD2 Maintain...
null
https://raw.githubusercontent.com/ermine-language/ermine/bd58949ab56311be9e0d2506a900f3d77652566b/src/Ermine/Pattern/Env.hs
haskell
# LANGUAGE RankNTypes # ------------------------------------------------------------------ | Stability : experimental Portability: non-portable ------------------------------------------------------------------ pieces of information: 1) The signatures (full list of constructors) associated with each par...
# LANGUAGE CPP # # LANGUAGE TupleSections # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # Copyright : ( c ) and 2013 - 2014 License : BSD2 Maintainer : < > module Ermine.Pattern.Env ( PatternEnv(..) , dummyPatternEnv , MonadPattern(..) ...
21ac030ee3a4739bebfd68dcca98dca98bb34e233728dc03d86c906075978cfb
racket/eopl
tests.rkt
#lang eopl (require eopl/tests/private/utils) (require "data-structures.rkt") ; for expval constructors (require "lang.rkt") ; for scan&parse (require "interp.rkt") ; for value-of-program run : String - > ExpVal (define run (lambda (string) (value-of-program (scan&parse string)))) (def...
null
https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/chapter4/mutable-pairs/tests.rkt
racket
for expval constructors for scan&parse for value-of-program tests ;;;;;;;;;;;;;;;; simple arithmetic nested arithmetic simple variables simple unbound variables simple conditionals test dynamic typechecking make sure that the test and both arms get evaluated properly. and make sure the other arm doesn't g...
#lang eopl (require eopl/tests/private/utils) run : String - > ExpVal (define run (lambda (string) (value-of-program (scan&parse string)))) (define equal-answer? (lambda (ans correct-ans) (equal? ans (sloppy->expval correct-ans)))) (define sloppy->expval (lambda (sloppy-val) (cond ((numbe...
66b9c35d29bcf3dc522ebbe08d1913e6642253fa0fbd2fc69d22e6768f580bb8
darrenldl/ProVerif-ATP
fileprint.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/fileprint.ml
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
b610a8b926bc85ad77a441cd7fcae8a8b87418d70bfa9262b5522dd27912630e
Bogdanp/koyo
info.rkt
#lang info (define license 'BSD-3-Clause) (define collection "tests") (define deps '()) (define build-deps '("base" "at-exp-lib" "component-lib" "db-lib" "gregor-lib" "koyo-lib" "libargon2" ...
null
https://raw.githubusercontent.com/Bogdanp/koyo/0c3ff367bfb87b0e3d9376c7bf34df026d6da1f0/koyo-test/info.rkt
racket
#lang info (define license 'BSD-3-Clause) (define collection "tests") (define deps '()) (define build-deps '("base" "at-exp-lib" "component-lib" "db-lib" "gregor-lib" "koyo-lib" "libargon2" ...
b494fd72cae4d058b3c1b42fd7e80317009d355b485ef204ed48ccc2c6a4ba67
CloudI/cloudi_core
cloudi_core_i_services_external_sup.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc = = CloudI External Service Supervisor== %%% @end %%% MIT License %%% Copyright ( ...
null
https://raw.githubusercontent.com/CloudI/cloudi_core/1b6c6d2aeb3565a7fd2265185a892b20b8aeccec/src/cloudi_core_i_services_external_sup.erl
erlang
------------------------------------------------------------------------ @doc @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Softwar...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : = = CloudI External Service Supervisor== MIT License Copyright ( c ) 2011 - 2018 < mjtruog at protonmail dot com > to deal in the Software without restriction , includ...
12f45218391fc150de78a31221b6fd47d45126fe5f41ea4b97c5f11662e70a93
juxt/joplin
project.clj
(defproject joplin.elasticsearch "0.3.12-SNAPSHOT" :description "ElasticSearch support for Joplin" :url "" :scm {:name "git" :url ""} :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [joplin.core "0.3.12-SNAPSHOT"] ...
null
https://raw.githubusercontent.com/juxt/joplin/d190f883c47b11efafc5154237a80d36af0087d3/joplin.elasticsearch/project.clj
clojure
(defproject joplin.elasticsearch "0.3.12-SNAPSHOT" :description "ElasticSearch support for Joplin" :url "" :scm {:name "git" :url ""} :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [joplin.core "0.3.12-SNAPSHOT"] ...
c30e5e3009e26d3091971c57973a6bbc0fc9ba46a9ca515be407fb7854d74a1e
qmuli/qmuli
Types.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE GeneralizedNewtypeDeriving # module Qi.AWS.Types where import Data.Aeson import qualified Data.Text as T import Network.AWS (Logger) import ...
null
https://raw.githubusercontent.com/qmuli/qmuli/6ca147f94642b81ab3978d502397efb60a50215b/library/Qi/AWS/Types.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies #
# LANGUAGE GeneralizedNewtypeDeriving # module Qi.AWS.Types where import Data.Aeson import qualified Data.Text as T import Network.AWS (Logger) import Protolude import Qi.AWS.Cognito newtype Arn = Arn Text deriving (Eq, Show, Read, Generic) deriving newtype (ToJSO...
87d1df678eb3c663a0e02c6ee81999e3b3c991f3ea4ff48a75c83eb4b7c2c885
quark-lang/quark
Pretty.hs
# LANGUAGE StandaloneDeriving # module Core.Inference.Type.Pretty where import Core.Utility.Color (bold, bBlack, bGreen, bYellow, bBlue, bCyan) import Core.Inference.Type.AST import qualified Core.Parser.AST as A import Data.List (intercalate) instance Show TypedAST where show = flip showAST 0 createI...
null
https://raw.githubusercontent.com/quark-lang/quark/707b3a12173ed90569189f6b5063965fe1e9ffc9/app/Core/Inference/Type/Pretty.hs
haskell
# LANGUAGE StandaloneDeriving # module Core.Inference.Type.Pretty where import Core.Utility.Color (bold, bBlack, bGreen, bYellow, bBlue, bCyan) import Core.Inference.Type.AST import qualified Core.Parser.AST as A import Data.List (intercalate) instance Show TypedAST where show = flip showAST 0 createI...
db1b48354533760c41c7af121a878aba9ae05235930f43e1d9d9ee4ef82c3509
ssor/erlangDemos
cowboy_http_rest.erl
Copyright ( c ) 2011 - 2012 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/cowboy_old/src/cowboy_http_rest.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2012 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN Based on the Webmachine Diagram from and , whic...