_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
5b0c8105a5f88f140e7aedc263a7444afeee66d1b17da16e77f91c18a4219bd0
mariari/Misc-Lisp-Scripts
chapter2.lisp
(defun range (first &optional (second nil) (step 1)) (macrolet ((for (second word first) `(loop :for x :from ,second ,word ,first by step collect x))) (cond ((and second (> second first)) (for first to second)) (second (for first downto second...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/book-adaptations/Purely-Functional/chapter2.lisp
lisp
(room) (print (sb-kernel::dynamic-usage))
(defun range (first &optional (second nil) (step 1)) (macrolet ((for (second word first) `(loop :for x :from ,second ,word ,first by step collect x))) (cond ((and second (> second first)) (for first to second)) (second (for first downto second...
4383d088dbec4a24e283590d17293bc63b321b196dd1f0e908c23457fc69cd43
michalkonecny/aern2
Frac.hs
module AERN2.Frac ( module AERN2.Frac.Eval , module AERN2.Frac.Maximum , module AERN2.Frac.Integration , module AERN2.Frac.Type ) where import AERN2.Frac.Eval import AERN2.Frac.Maximum import AERN2.Frac.Integration import AERN2.Frac.Ring() import AERN2.Frac.Field() import AERN2.Frac.Type
null
https://raw.githubusercontent.com/michalkonecny/aern2/1c8f12dfcb287bd8e3353802a94865d7c2c121ec/aern2-fun-univariate/src/AERN2/Frac.hs
haskell
module AERN2.Frac ( module AERN2.Frac.Eval , module AERN2.Frac.Maximum , module AERN2.Frac.Integration , module AERN2.Frac.Type ) where import AERN2.Frac.Eval import AERN2.Frac.Maximum import AERN2.Frac.Integration import AERN2.Frac.Ring() import AERN2.Frac.Field() import AERN2.Frac.Type
e6a835348c4d6a1cec6f46a8347bcd02d5f8b7b35f1e897963955c4b304da9ae
faylang/fay
records.hs
module Records where data Person1 = Person1 String String Int data Person2 = Person2 { fname :: String, sname :: String, age :: Int } data Person3 = Person3 { slot3 :: String, slot2 :: String, slot1 :: Int } p1 = Person1 "Chris" "Done" 13 p2 = Person2 "Chris" "Done" 13 p2a = Person2 { fname = "Chris", sname = "Done...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/records.hs
haskell
module Records where data Person1 = Person1 String String Int data Person2 = Person2 { fname :: String, sname :: String, age :: Int } data Person3 = Person3 { slot3 :: String, slot2 :: String, slot1 :: Int } p1 = Person1 "Chris" "Done" 13 p2 = Person2 "Chris" "Done" 13 p2a = Person2 { fname = "Chris", sname = "Done...
ccb651e2881e4842fdfa6b16796c97fdbf74d7bd52c6a7305db725c6877bf0e4
lexi-lambda/freer-simple
Fresh.hs
module Fresh (module Fresh) where import Control.Monad.Freer.Fresh (evalFresh, fresh) import Control.Monad.Freer.Trace (runTrace, trace) | Generate two fresh values . -- -- >>> traceFresh -- Fresh 0 -- Fresh 1 traceFresh :: IO () traceFresh = runTrace $ evalFresh 0 $ do n <- fresh trace $ "Fresh " ++ show n n...
null
https://raw.githubusercontent.com/lexi-lambda/freer-simple/e5ef0fec4a79585f99c0df8bc9e2e67cc0c0fb4a/examples/src/Fresh.hs
haskell
>>> traceFresh Fresh 0 Fresh 1
module Fresh (module Fresh) where import Control.Monad.Freer.Fresh (evalFresh, fresh) import Control.Monad.Freer.Trace (runTrace, trace) | Generate two fresh values . traceFresh :: IO () traceFresh = runTrace $ evalFresh 0 $ do n <- fresh trace $ "Fresh " ++ show n n' <- fresh trace $ "Fresh " ++ show n'
66bb9a3c5f149d28fa9e8193512bd350d5f41614c7ff460f2a7fdc31d92d94ee
nuvla/api-server
infrastructure_service_template.cljc
(ns sixsq.nuvla.server.resources.spec.infrastructure-service-template (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) ;; Restrict the href...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/infrastructure_service_template.cljc
clojure
Restrict the href used to create services. Keys specifications for service-template resources. As this is a "base class" for service-template resources, there is no sense in defining map resources for the resource itself. Used only to provide metadata resource for collection.
(ns sixsq.nuvla.server.resources.spec.infrastructure-service-template (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.server.util.spec :as su] [spec-tools.core :as st])) (def service-templat...
c4fa82eeeae67451b4760eab5d9261ea1ea14eef752e73c97e96092da9f1f8de
RefactoringTools/HaRe
A1.hs
module AddOneParameter.A1 where import AddOneParameter.C1 import AddOneParameter.D1 sumSq xs = sum (map sq xs) + sumSquares xs + sumSquares1 xs main = sumSq [1..4]
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/AddOneParameter/A1.hs
haskell
module AddOneParameter.A1 where import AddOneParameter.C1 import AddOneParameter.D1 sumSq xs = sum (map sq xs) + sumSquares xs + sumSquares1 xs main = sumSq [1..4]
c319cd2327aeaa57724fd26385549f2bf52861916d8572af3744c56187a7349f
mysql-otp/mysql-otp
mysql_encode.erl
@private %% @doc Functions for encoding a term as an SQL literal. This is not really %% part of the protocol; thus the separate module. -module(mysql_encode). -export([encode/1, backslash_escape/1]). @doc Encodes a term as an ANSI SQL literal so that it can be used to inside %% a query. In strings only single quo...
null
https://raw.githubusercontent.com/mysql-otp/mysql-otp/a74aff1e45b5df26240bcf2e30fe2e516cf4e2a0/src/mysql_encode.erl
erlang
@doc Functions for encoding a term as an SQL literal. This is not really part of the protocol; thus the separate module. a query. In strings only single quotes (') are escaped. If backslash escapes escape backslashes in strings. "floats are printed accurately as the shortest, correctly rounded string" Simple inje...
@private -module(mysql_encode). -export([encode/1, backslash_escape/1]). @doc Encodes a term as an ANSI SQL literal so that it can be used to inside are enabled for the connection , you should first use backslash_escape/1 to -spec encode(term()) -> iodata(). encode(null) -> <<"NULL">>; encode(Int) when is_integ...
7a142173091eafb0aebcb8542100e809a62309fe9aea5b2a668d27604e0d16da
ocaml/ocaml
scheduling.ml
# 2 "asmcomp/power/scheduling.ml" (**************************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/ocaml/ocaml/4bf5393bf3e1c55dffe00b779ca288d168ca967b/asmcomp/power/scheduling.ml
ocaml
************************************************************************ OCaml ...
# 2 "asmcomp/power/scheduling.ml" , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Arch open Mach class scheduler = object inherit Schedgen.schedu...
f4bd4348594ceb34e93de7928d175b477d316c245b0daefb5909f8d124c47c6c
cubicle-model-checker/cubicle
bitv.mli
(**************************************************************************) (* *) Cubicle (* *) ...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/common/bitv.mli
ocaml
************************************************************************ ...
Cubicle Copyright ( C ) 2011 - 2014 and Universite Paris - Sud 11 This file is distributed under the terms ...
64a5dda6090925d2b18995c51d4552dfb6480c9f8add69d4ee25d8136ef23a7a
tfausak/patrol
TransactionInfoSpec.hs
# LANGUAGE QuasiQuotes # module Patrol.Type.TransactionInfoSpec where import qualified Data.Aeson as Aeson import qualified Data.Aeson.QQ.Simple as Aeson import qualified Data.Text as Text import qualified Patrol.Type.TransactionInfo as TransactionInfo import qualified Patrol.Type.TransactionSource as TransactionSour...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/test-suite/Patrol/Type/TransactionInfoSpec.hs
haskell
# LANGUAGE QuasiQuotes # module Patrol.Type.TransactionInfoSpec where import qualified Data.Aeson as Aeson import qualified Data.Aeson.QQ.Simple as Aeson import qualified Data.Text as Text import qualified Patrol.Type.TransactionInfo as TransactionInfo import qualified Patrol.Type.TransactionSource as TransactionSour...
c771d6a22251301cb9b6abf4f38d0539c373776e422a6763398d026502ac9aa4
plewto/Cadejo
head.clj
(println "--> alias oscillators") (ns cadejo.instruments.alias.head ; (:use [overtone.core]) (:require [cadejo.modules.qugen :as qu])) (def ^:private one 0) (defcgen fm-select [array src1 depth1 lag1 src2 depth2 lag2] (:kr (+ (lag2:kr (* depth1 (select:kr src1 array)) lag1) (lag2:kr (* depth...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/alias/head.clj
clojure
pre-osc frequency signal processing f0 - reference frequency detune - osc detune ratio bias - osc linear freq shift fm - fm signal - amplitude of fm scaled by other arguments osc1 sync-saw db osc2 pulse db osc3 pulse db noise db -1.0 = osc3 +1 = noise db mutes output bus until instrument ready ...
(println "--> alias oscillators") (:use [overtone.core]) (:require [cadejo.modules.qugen :as qu])) (def ^:private one 0) (defcgen fm-select [array src1 depth1 lag1 src2 depth2 lag2] (:kr (+ (lag2:kr (* depth1 (select:kr src1 array)) lag1) (lag2:kr (* depth2 (select:kr src2 array)) lag2)))) (defcg...
d8ec2b9a5c170c192b352a4643be46822371d09402b364cca87ba1ab21a33bd5
charlieg/Sparser
required.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(CTI-source LISP) -*- copyright ( c ) 1990,1991 Content Technologies Inc. -- all rights reserved ;;; ;;; File: "required" ;;; Module: "grammar;rules:words:basics:" Version : 1.1 February 1991 1.1 ( 2/15 v1.8.1 ) Added comma and period . (in...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/words/archive%20--%20words/basics/required.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(CTI-source LISP) -*- File: "required" Module: "grammar;rules:words:basics:" --------- marking the start and end of the source character stream (define-sectionizing-marker -------- the most frequent word ---------- newline, etc. /// These are referenced (foun...
copyright ( c ) 1990,1991 Content Technologies Inc. -- all rights reserved Version : 1.1 February 1991 1.1 ( 2/15 v1.8.1 ) Added comma and period . (in-package :CTI-source) (define-punctuation end-of-source (code-char 0)) (define-punctuation source-start (code-char 1)) (d...
7274e81139f2e34a336e5ca12bc23abbc78f3a151f7504351f68295f8cb3c73b
semmons99/clojure-euler
prob-048.clj
problem 048 ; ; ; ; ; ; ; ; ; ; (use '[clojure.contrib.math :only (expt)]) (defn prob-048 [] (let [n (str (reduce + (map #(expt % %) (range 1 1001))))] (.substring n (- (count n) 10))))
null
https://raw.githubusercontent.com/semmons99/clojure-euler/3480bc313b9df7f282dadf6e0b48d96230f1bfc1/prob-048.clj
clojure
; ; ; ; ; ; ; ; ;
(use '[clojure.contrib.math :only (expt)]) (defn prob-048 [] (let [n (str (reduce + (map #(expt % %) (range 1 1001))))] (.substring n (- (count n) 10))))
b3a55563f40615c74f76b18b44034605e04029cea87251587e3b8c8abb34940c
robstewart57/rdf4h
DCTerms.hs
# LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # module Data.RDF.Vocabulary.DCTerms where import qualified Data.RDF.Namespace (mkPrefixedNS) import qualified Data.RDF.Types (unode) import Data.RDF.Vocabulary.Generator.VocabularyGenerator (genVocabulary) import qu...
null
https://raw.githubusercontent.com/robstewart57/rdf4h/22538a916ec35ad1c46f9946ca66efed24d95c75/src/Data/RDF/Vocabulary/DCTerms.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # module Data.RDF.Vocabulary.DCTerms where import qualified Data.RDF.Namespace (mkPrefixedNS) import qualified Data.RDF.Types (unode) import Data.RDF.Vocabulary.Generator.VocabularyGenerator (genVocabulary) import qu...
672b1097832dc4031871a6e2c150bc1b3f08f150487ca1e96a2b9919b45230e6
losfair/Violet
CoreGen.hs
module Violet.Gen.CoreGen where import Clash.Prelude import qualified Violet.Backend.Wiring import qualified Violet.Frontend.Wiring import qualified Violet.IP.StaticDM import qualified Violet.IP.StaticIM import qualified Violet.Types.Fifo as FifoT import qualified Violet.Types.Fetch as FetchT import qualified Violet.T...
null
https://raw.githubusercontent.com/losfair/Violet/dcdd05f8dc08a438a157347f424966da73ccc9b8/src/Violet/Gen/CoreGen.hs
haskell
module Violet.Gen.CoreGen where import Clash.Prelude import qualified Violet.Backend.Wiring import qualified Violet.Frontend.Wiring import qualified Violet.IP.StaticDM import qualified Violet.IP.StaticIM import qualified Violet.Types.Fifo as FifoT import qualified Violet.Types.Fetch as FetchT import qualified Violet.T...
faa37466887e99d88a2b2733ac2c5edca9db67c06d5e7e77ca97961281489eaa
NethermindEth/horus-checker
Arguments.hs
module Horus.Arguments ( Arguments (..) , argParser , fileArgument , specFileArgument ) where import Control.Monad.Except (throwError) import Data.List (intercalate) import Data.Text (Text, unpack) import Options.Applicative import Horus.Global (Config (..)) import Horus.Preprocessor.Solvers (MultiSolver (....
null
https://raw.githubusercontent.com/NethermindEth/horus-checker/b4ce60c7739a0d12dab6c9b2ff87719b321f6200/src/Horus/Arguments.hs
haskell
<$> switch ( long "print-models" )
module Horus.Arguments ( Arguments (..) , argParser , fileArgument , specFileArgument ) where import Control.Monad.Except (throwError) import Data.List (intercalate) import Data.Text (Text, unpack) import Options.Applicative import Horus.Global (Config (..)) import Horus.Preprocessor.Solvers (MultiSolver (....
31e621f7c3652cb169980c0ecf9c6796582f9cd9e04db812f5dbcbe71ce94952
juspay/fencer
Types.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # | Types used in . We try to keep most types in one module to avoid -- circular dependencies between modules. module Fencer.Types ( -- * Com...
null
https://raw.githubusercontent.com/juspay/fencer/db7c64ff848446d247dc8d59a1df5b50cdc104f6/lib/Fencer/Types.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # circular dependencies between modules. * Common types $sample-config * Time units * Statistics * Rate limit rule configs * Rate limit rules in tree form * Server ----------------------------------------------------------------------...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # | Types used in . We try to keep most types in one module to avoid module Fencer.Types ( DomainId(..) , unDomainId , RuleKey(..) , unRuleKey , RuleValue(..) , unRuleValue , RateLimit(..) , HasDescr...
1ba4aca36dd35576014c51078c37db1aa8f725f86d10163bed6b2fb7af137c65
phylogeography/spread
graphql.cljs
(ns ui.events.graphql (:require [ajax.core :as ajax] [camel-snake-kebab.core :as camel-snake] [camel-snake-kebab.extras :as camel-snake-extras] [clojure.core.match :refer [match]] [clojure.set :refer [rename-keys]] [clojure.string :as string] [re...
null
https://raw.githubusercontent.com/phylogeography/spread/56f3500e6d83e0ebd50041dc336ffa0697d7baf8/src/cljs/ui/events/graphql.cljs
clojure
NOTE: this is the default handler that is intented for queries and mutations that have nothing to do besides reducing over their response values start the status subscription for an ongoing analysis NOTE : parse date to an internal representation NOTE: id is the link between the ongoing analysis and what we store...
(ns ui.events.graphql (:require [ajax.core :as ajax] [camel-snake-kebab.core :as camel-snake] [camel-snake-kebab.extras :as camel-snake-extras] [clojure.core.match :refer [match]] [clojure.set :refer [rename-keys]] [clojure.string :as string] [re...
b2c8c5eed467e4bc2c555672784f5738090b2c09a4ed2218950ce67ab019930b
manuel-serrano/hop
tabslider.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / widget / tabslider.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/widget/tabslider.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / widget / tabslider.scm * / * Author : * / * Creation : Thu Aug 18 10:01:02 2005 * / * Last change : Sun Apr 28 11:01:01 2019 ( serrano ) * / * The ...
87a40ad081623f456be86e21f117a8d9a4bad4a3b691afa5445d84b285a094c6
fragnix/fragnix
Control.Concurrent.Lifted.hs
# LANGUAGE Haskell98 # # LINE 1 " Control / Concurrent / Lifted.hs " # # LANGUAGE CPP , NoImplicitPrelude , FlexibleContexts , RankNTypes # {-# LANGUAGE Safe #-} | Module : Control . Concurrent . Lifted Copyright : : BSD - style Mai...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/application/Control.Concurrent.Lifted.hs
haskell
# LANGUAGE Safe # * Concurrent Haskell * Basic concurrency operations ** Threads with affinity * Scheduling ** Blocking ** Waiting * Communication abstractions * Bound Threads * Weak references to ThreadIds ------------------------------------------------------------------------------ Imports ----------------...
# LANGUAGE Haskell98 # # LINE 1 " Control / Concurrent / Lifted.hs " # # LANGUAGE CPP , NoImplicitPrelude , FlexibleContexts , RankNTypes # | Module : Control . Concurrent . Lifted Copyright : : BSD - style Maintainer : < > ...
f3daf81387e86871bfb26567a4e093ac5c7593141360da10128d256af2c0a3ab
facebookarchive/duckling_old
time.clj
( ;; generic "intersect" sequence of two tokens with a time dimension (intersect %1 %2) same thing , with " of " in between like " Sunday of last week " "intersect by \"of\", \"from\", \"'s\"" sequence of two tokens with a time fn (intersect %1 %3) mostly for January 12 , 2005 ; this is a separat...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/nb/rules/time.clj
clojure
generic this is a separate rule, because commas separate very specific tokens so we want this rule's classifier to learn this does NOT dissoc latent does NOT dissoc latent Named things TO BE IMPROVED assumed to be strictly in the future: Ordinals Outside of this, it's safer to consider it's latent - the nt...
( "intersect" sequence of two tokens with a time dimension (intersect %1 %2) same thing , with " of " in between like " Sunday of last week " "intersect by \"of\", \"from\", \"'s\"" sequence of two tokens with a time fn (intersect %1 %3) mostly for January 12 , 2005 "intersect by \",\"" sequence ...
fac8960008ff59679fac797b245fc3ce3442e0c3df1903bf246d514e49a06f32
tommaisey/aeon
zero-crossing.help.scm
( zero - crossing in ) Zero crossing frequency follower . ;; outputs a frequency based upon the distance between interceptions ;; of the X axis. The X intercepts are determined via linear ;; interpolation so this gives better than just integer wavelength ;; resolution. This is a very crude pitch follower, but can...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/analysis/zero-crossing.help.scm
scheme
outputs a frequency based upon the distance between interceptions of the X axis. The X intercepts are determined via linear interpolation so this gives better than just integer wavelength resolution. This is a very crude pitch follower, but can be useful in some situations. in - input signal.
( zero - crossing in ) Zero crossing frequency follower . (let* ((a (mul (sin-osc ar (mul-add (sin-osc kr 1 0) 600 700) 0) 0.1)) (b (mul (impulse ar (zero-crossing a) 0) 0.25))) (audition (out 0 (mce2 a b))))
35bbbed5d7d63b871807fe678e4c4cdba70a34654d625f00a238640aa0d8c470
input-output-hk/project-icarus-importer
ConstantsSpec.hs
-- | This module tests some invariants on constants. module Test.Pos.ConstantsSpec ( spec ) where import Universum import Pos.Core (SystemTag (..)) import Pos.Update.Configuration (HasUpdateConfiguration, ourSystemTag) import Test.Hspec ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/lib/test/Test/Pos/ConstantsSpec.hs
haskell
| This module tests some invariants on constants. that represents that current system's platform (i.e. where it was compiled). As of the @cardano-sl-1.0.4@, the only officially supported systems are @win64@ and @macos64@ (@linux64@ can be built and used from source). @cardano-sl-1.0.4@, something has gone wrong.
module Test.Pos.ConstantsSpec ( spec ) where import Universum import Pos.Core (SystemTag (..)) import Pos.Update.Configuration (HasUpdateConfiguration, ourSystemTag) import Test.Hspec (Expectation, Spec, describe, it, shouldSatisfy)...
4c76d20ea5580e6d02da7914a94890dba34b03e71ed3facca54f5c85e826dab7
maitria/avi
core.clj
(ns avi.core (:import [avi.terminal Terminal]) (:require [packthread.core :refer :all] [avi.editor :as e] [clojure.stacktrace :as st] [avi.main] [avi.world :refer :all]) (:gen-class)) (defn- event-stream ([world] (event-stream world (terminal-size world))) (...
null
https://raw.githubusercontent.com/maitria/avi/c641e9e32af4300ea7273a41e86b4f47d0f2c092/src/avi/core.clj
clojure
(ns avi.core (:import [avi.terminal Terminal]) (:require [packthread.core :refer :all] [avi.editor :as e] [clojure.stacktrace :as st] [avi.main] [avi.world :refer :all]) (:gen-class)) (defn- event-stream ([world] (event-stream world (terminal-size world))) (...
d687555d6ff519fd573e470d202eeb9eff98746bd1ed2a13d241cf942b4fe35a
janestreet/bonsai
bonsai_web_ui_not_connected_warning_box.ml
open! Core open Virtual_dom open Bonsai.Let_syntax module Style = [%css stylesheet {| .connected { display: none; } .warning { font-size: 1.5rem; font-weight: bold; } |}] let message_for_async_durable time_span = sprintf "You've been disconnected from the server for %s. There is...
null
https://raw.githubusercontent.com/janestreet/bonsai/8643e8b3717b035386ac36f2bcfa4a05bca0d64f/web_ui/not_connected_warning_box/src/bonsai_web_ui_not_connected_warning_box.ml
ocaml
open! Core open Virtual_dom open Bonsai.Let_syntax module Style = [%css stylesheet {| .connected { display: none; } .warning { font-size: 1.5rem; font-weight: bold; } |}] let message_for_async_durable time_span = sprintf "You've been disconnected from the server for %s. There is...
2de3369fc4e01cb49129944a100bdac63a75073b511630ce66c1f42c3adb31fa
facebook/flow
prefix.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/heap/prefix.mli
ocaml
*************************************************************************** The prefix is used to guarantee that we are not mixing different kind of * keys in the heap. * It just creates a new prefix every time its called. *************************************************************************** Better make th...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
7ab6fbbcd1298778c5f916b31b4e425f3cb78347469ee8a20662cb6a0b348850
bobatkey/CS316-18
Lec20.hs
module Main where LECTURE 20 : CONCURRENCY import Control.Concurrent import Control.Monad (forever, forM_) import Network import System.IO import Text.Printf forkIO : : IO ( ) - > IO ThreadId muddle :: IO () muddle = do hSetBuffering stdout NoBuffering forkIO (forM_ [1..1000] (\_ -> putChar 'A')) for...
null
https://raw.githubusercontent.com/bobatkey/CS316-18/282dc3c876527c14acfed7bd38f24c9ff048627a/lectures/Lec20.hs
haskell
threadDelay :: Int -> IO () Logger example -------------------------------------------------------------------- A server -------------------------------------------------------------------- A Key-Value server --------------------------------------------------------------------
module Main where LECTURE 20 : CONCURRENCY import Control.Concurrent import Control.Monad (forever, forM_) import Network import System.IO import Text.Printf forkIO : : IO ( ) - > IO ThreadId muddle :: IO () muddle = do hSetBuffering stdout NoBuffering forkIO (forM_ [1..1000] (\_ -> putChar 'A')) for...
68c76d5ac9beb9470b08113bb7b76bb9054a9810808193c8a9dc0f7a02df3670
flipstone/haskell-for-beginners
2_an_intro_to_lists.hs
Construct the word Gazump as a string in 4 different -- ways and prove they are equal Write a function that totals top 3 numbers in a list ( assuming the list is sorted with highest first ) -- Write a function to extract a portion of a string -- based on position and length Write a function to tell if a list...
null
https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/problems/chapter_02/2_an_intro_to_lists.hs
haskell
ways and prove they are equal Write a function to extract a portion of a string based on position and length (it should return a boolean) Write a function like the one above *without* referring to the list's length Write safe versions of tail and init that return empty list if the list is empty Write safe vers...
Construct the word Gazump as a string in 4 different Write a function that totals top 3 numbers in a list ( assuming the list is sorted with highest first ) Write a function to tell if a list 's length is > 4
8697f75a6b8912db46b6d6e87755fb69b651331ff06fdb4fe4022f3063f21f4b
perf101/rage
utils.ml
open! Core.Std let debug msg = output_string stderr (msg ^ "\n"); flush stderr let index l x = let rec aux i = function | [] -> failwith "index []" | x'::xs -> if x = x' then i else aux (i+1) xs in aux 0 l let concat ?(sep = ",") l = String.concat ~sep (List.filter l ~f:(fun s -> not (String.is...
null
https://raw.githubusercontent.com/perf101/rage/e8630659b2754b6621df7c49f3663fa7c4fac5eb/src/utils.ml
ocaml
DATABASE INTERACTION PRINTING HTML RAGE-specific helper methods. Names of fields in the tc_config table WEBSERVER INTERACTION We use HTTP_HOST, which comes from the client, rather than SERVER_NAME, * which is defined by the webserver, in case it contains a port number
open! Core.Std let debug msg = output_string stderr (msg ^ "\n"); flush stderr let index l x = let rec aux i = function | [] -> failwith "index []" | x'::xs -> if x = x' then i else aux (i+1) xs in aux 0 l let concat ?(sep = ",") l = String.concat ~sep (List.filter l ~f:(fun s -> not (String.is...
3b61bf5ca9ee7a0f6a93f309fd845923a51b2cae189c31078ec4518a23817ceb
garrigue/lablgtk
gtkdoc.ml
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/garrigue/lablgtk/89383e96d768148622df4e163c3189429eccbef0/tools/gtkdoc.ml
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
7ff499614addd0d096314e7bc685a8650db321cda5a0fd83a569ce85a58060a0
TyOverby/mono
body.ml
{ { { Copyright ( c ) 2014 * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR...
null
https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/mirage-ocaml-cohttp/cohttp/src/body.ml
ocaml
TODO: maybe add a functor here that uses IO.S
{ { { Copyright ( c ) 2014 * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR...
58376994d29e88b3ec513984fdbef1128a695d06866377c258838d32dcea2ca6
kupl/FixML
sub36.ml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp =fun (aexp,x) -> match aexp with Const i-> Const 0 |Var a-> if a="x" then Const 1 else Const 0 |Power (a,i)-> Times[Const i; Power (a,i-1)] |Times (h::t)-> Times...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff1/submissions/sub36.ml
ocaml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp =fun (aexp,x) -> match aexp with Const i-> Const 0 |Var a-> if a="x" then Const 1 else Const 0 |Power (a,i)-> Times[Const i; Power (a,i-1)] |Times (h::t)-> Times...
7daa4beb79e9c43c67f4e497147d6cddcb6199f2647e362070b9235ef1739249
exercism/scheme
test.scm
(load "test-util.ss") (define test-cases `((test-success "basic" equal? acronym '("Portable Network Graphics") "PNG") (test-success "lowercase words" equal? acronym '("Ruby on Rails") "ROR") (test-success "punctuation" equal? acronym '("First In, First Out") "FIFO") (test-success "...
null
https://raw.githubusercontent.com/exercism/scheme/2064dd5e5d5a03a06417d28c33c5349bec97dad7/exercises/practice/acronym/test.scm
scheme
(load "test-util.ss") (define test-cases `((test-success "basic" equal? acronym '("Portable Network Graphics") "PNG") (test-success "lowercase words" equal? acronym '("Ruby on Rails") "ROR") (test-success "punctuation" equal? acronym '("First In, First Out") "FIFO") (test-success "...
5f4428599077aee1d173513559e08c3ad9428bc172ee36927974d812e8c9bd8f
avsm/platform
react.mli
--------------------------------------------------------------------------- Copyright ( c ) 2009 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/react.1.2.1%2Bdune/src/react.mli
ocaml
* {1 Interface} * The type for events of type ['a]. * The type for signals of type ['a]. * The type for update steps. * Event combinators. Consult their {{!evsem}semantics.} * The type for events with occurrences of type ['a]. * A never occuring event. For all t, \[[never]\]{_t} [= None]. * [retain e c] ...
--------------------------------------------------------------------------- Copyright ( c ) 2009 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
a786bb3e9459c834e173242face5ed704a681604e7306066e726e288f458874e
rnewman/clj-sip
processing.clj
(ns com.twinql.clojure.sip.processing (:refer-clojure) (:use com.twinql.clojure.sip.responses) (:import (java.lang Exception) (javax.servlet ServletException ServletInputStream) (javax.servlet.sip SipApplicationSession SipServlet SipServletMessage SipServletRequest ...
null
https://raw.githubusercontent.com/rnewman/clj-sip/0e883c13c0b4a978f0655d163b249ae61081ded7/src/com/twinql/clojure/sip/processing.clj
clojure
SIP accessors. SIP response code analysis. Inline the keyword arguments.
(ns com.twinql.clojure.sip.processing (:refer-clojure) (:use com.twinql.clojure.sip.responses) (:import (java.lang Exception) (javax.servlet ServletException ServletInputStream) (javax.servlet.sip SipApplicationSession SipServlet SipServletMessage SipServletRequest ...
4cd898d0a954ba5a98c82dc82229cebf3d9fa72cc0c1d68aa93e8daadb464436
Haskell-Things/ImplicitCAD
Benchmark.hs
{- ORMOLU_DISABLE -} Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright ( C ) 2014 2015 2016 , ( ) -- Released under the GNU AGPLV3+, see LICENSE -- Our benchmarking suite. -- Let's be explicit about where things come from :) import Prelude (pure, ($), (*), (/), String, IO, cos, pi, fmap, zip3, Either(Lef...
null
https://raw.githubusercontent.com/Haskell-Things/ImplicitCAD/87f2aee4b3c958d11e988022f512d065b812f6b0/programs/Benchmark.hs
haskell
ORMOLU_DISABLE Released under the GNU AGPLV3+, see LICENSE Our benchmarking suite. Let's be explicit about where things come from :) Use criterion for benchmarking. see </> The variables defining distance and counting in our world. Vectors. Haskell representations of objects to benchmark. FIXME: move each of ...
Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright ( C ) 2014 2015 2016 , ( ) import Prelude (pure, ($), (*), (/), String, IO, cos, pi, fmap, zip3, Either(Left, Right), fromIntegral, (<>), (<$>)) import Criterion.Main (Benchmark, bgroup, bench, nf, nfAppIO, defaultMain) The parts of ImplicitCAD we kno...
cafa568840c3db6bcc7405139452f76bcacd6cff446e0978ddd0628f52f221ed
janestreet/base
map.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/map.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 Apache 2.0 license . See .. /THIRD - PARTY.txt open! Import module List = List0 inc...
fc7f48513d9c09cbdc804af3549a1227d900ffafd3c4dbbbefe1b2e4ba7340b6
reanimate/reanimate
doc_chainT.hs
#!/usr/bin/env stack -- stack runghc --package reanimate module Main(main) where import Reanimate import Reanimate.Transition import Reanimate.Builtin.Documentation main :: IO () main = reanimate $ docEnv $ chainT (overlapT 0.5 fadeT) [drawBox, drawCircle, drawProgress]
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/examples/doc_chainT.hs
haskell
stack runghc --package reanimate
#!/usr/bin/env stack module Main(main) where import Reanimate import Reanimate.Transition import Reanimate.Builtin.Documentation main :: IO () main = reanimate $ docEnv $ chainT (overlapT 0.5 fadeT) [drawBox, drawCircle, drawProgress]
1a6f737322bb4b3b2e25bb8b0b8c02e18c7596f3084b504fd368bc01e36c64e3
mflatt/shrubbery-rhombus-0
dot.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse enforest/property enforest/syntax-local "operator-parse.rkt") "definition.rkt" "expression.rkt" "static-info.rkt" "dot-provider-key.rkt"...
null
https://raw.githubusercontent.com/mflatt/shrubbery-rhombus-0/0ced6cdba7c5f9ec7a9cb65922e386375f3162e0/rhombus/private/dot.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse enforest/property enforest/syntax-local "operator-parse.rkt") "definition.rkt" "expression.rkt" "static-info.rkt" "dot-provider-key.rkt"...
d364a3a33972c8c313b4f2791093dd9ea12fec7da49f85691b9091a99cc5b77d
jasonstolaruk/CurryMUD
EffectFuns.hs
{-# LANGUAGE OverloadedStrings #-} module Mud.Misc.EffectFuns ( effectFuns , instaEffectFuns ) where import Mud.Data.Misc import Mud.Data.State.MudData import Mud.Data.State.Util.Get import Mud.Data.State.Util.Misc import Mud.Data.State.Util...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/Misc/EffectFuns.hs
haskell
# LANGUAGE OverloadedStrings # ================================================== Effect functions are run on a new thread every second. Instantaneous effect functions are run once. --- Potion of instant tinnitus. Potion of tinnitus.
module Mud.Misc.EffectFuns ( effectFuns , instaEffectFuns ) where import Mud.Data.Misc import Mud.Data.State.MudData import Mud.Data.State.Util.Get import Mud.Data.State.Util.Misc import Mud.Data.State.Util.Output import Mud.Data.S...
bca04c511f89313ed263b02d09671bad529d2f9c0470b543401b380cc6d47ef9
jimweirich/sicp-study
ex1_36.scm
SICP 1.36 Exercise 1.36 . Modify fixed - point so that it prints the sequence ;; of approximations it generates, using the newline and display primitives shown in exercise 1.22 . Then find a solution to xx = 1000 by finding a fixed point of x - > log(1000)/log(x ) . ( Use ;; Scheme's primitive log procedure,...
null
https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter1/ex1_36.scm
scheme
of approximations it generates, using the newline and display Scheme's primitive log procedure, which computes natural logarithms.) Compare the number of steps this takes with and without average damping. (Note that you cannot start fixed-point ANSWER ------------------------------------------------------------
SICP 1.36 Exercise 1.36 . Modify fixed - point so that it prints the sequence primitives shown in exercise 1.22 . Then find a solution to xx = 1000 by finding a fixed point of x - > log(1000)/log(x ) . ( Use with a guess of 1 , as this would cause division by log(1 ) = 0 . ) (define tolerance 0.00001) (d...
28928f2ba5d8fc1739f1ad9a852f22d8f289ddad8d633bd9e4612faa56005117
konn/smooth
higher-diff-speed.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperato...
null
https://raw.githubusercontent.com/konn/smooth/bdbbd7e627177c6358d024803d339a9b15decb43/bench/higher-diff-speed.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # OPTIONS_GHC -Wno - type - defaults # # OPTIO...
d25d004b53d29ef7176a00b6200940f8cc5be71c30204a0aa4eb558e2b3f3850
fission-codes/fission
Error.hs
module Network.IPFS.Add.Error (Error (..)) where import qualified Network.IPFS.Get.Error as Get import Network.IPFS.Prelude data Error = InvalidFile | UnexpectedOutput Text | RecursiveAddErr Get.Error | IPFSDaemonErr Text | UnknownAddErr Text deriving ( Exception , Eq , Gen...
null
https://raw.githubusercontent.com/fission-codes/fission/fb76d255f06ea73187c9b787bd207c3778e1b559/ipfs/library/Network/IPFS/Add/Error.hs
haskell
module Network.IPFS.Add.Error (Error (..)) where import qualified Network.IPFS.Get.Error as Get import Network.IPFS.Prelude data Error = InvalidFile | UnexpectedOutput Text | RecursiveAddErr Get.Error | IPFSDaemonErr Text | UnknownAddErr Text deriving ( Exception , Eq , Gen...
e63e9d61e924060992c47ee8ca5af6049af1f2c9d48f212ecfe6a9e8ba5775ed
mkcp/raft-consensus
project.clj
(defproject raft "0.1.0" :description "Toy raft implementation for use with jepsen-io/maelstrom" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main raft.core :dependencies [[org.clojure/clojure "1.9.0-alpha14"] [org.clojure/core.async "0.2.374"] ...
null
https://raw.githubusercontent.com/mkcp/raft-consensus/575cc831d3861ae415e372bd6c15ab067b683471/project.clj
clojure
(defproject raft "0.1.0" :description "Toy raft implementation for use with jepsen-io/maelstrom" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :main raft.core :dependencies [[org.clojure/clojure "1.9.0-alpha14"] [org.clojure/core.async "0.2.374"] ...
f235e406a9bb555d9a957b32fb0564588d8ef8607e91f6842059d20338d8fb6e
haskell-lisp/blaise
Expression.hs
module Expression where import Text.ParserCombinators.Parsec import qualified Data.Map as Map import Control.Monad.State import Control.Monad.Error -- Our Lisp expression data Expr = BlaiseInt Integer | BlaiseSymbol String | BlaiseFn BlaiseFunction FunctionSignature | BlaiseSpecial BlaiseF...
null
https://raw.githubusercontent.com/haskell-lisp/blaise/17c75be05b6f6d2b2fff4774229ca733b2c5f0e3/src/Expression.hs
haskell
Our Lisp expression The function type Context in which expressions will be evaluated Helper context functions A state monad that holds a context and an evaluation result Printing the expression Parsing the expression
module Expression where import Text.ParserCombinators.Parsec import qualified Data.Map as Map import Control.Monad.State import Control.Monad.Error data Expr = BlaiseInt Integer | BlaiseSymbol String | BlaiseFn BlaiseFunction FunctionSignature | BlaiseSpecial BlaiseFunction FunctionSignatur...
e325890eda55c3300b39fccccfa101c1954e79d2ed3d1fd89fc7b063a9d6d612
NoRedInk/jetpack
Text.hs
module Utils.Text where import Data.Text as T {-| Check if a text starts with a given prefix. >>> startsWith "--" "-- foo" True >>> startsWith "--" "-/ foo" False -} startsWith :: T.Text -> T.Text -> Bool startsWith start text = start == textStart where len = T.length start (textStart, _) = T....
null
https://raw.githubusercontent.com/NoRedInk/jetpack/721d12226b593c117cba26ceb7c463c7c3334b8b/src/Utils/Text.hs
haskell
| Check if a text starts with a given prefix. >>> startsWith "--" "-- foo" True >>> startsWith "--" "-/ foo" False
module Utils.Text where import Data.Text as T startsWith :: T.Text -> T.Text -> Bool startsWith start text = start == textStart where len = T.length start (textStart, _) = T.splitAt len text
ce60effb3899c99b39ed80512d973efc2e13412787d4d0a3e245ef7c8099d385
tonyg/racket-something
sh.rkt
#lang something/shell // Simple demos ls -la $HOME | grep "^d" | fgrep -v "." ls -la | wc -l | read-line |> string-split |> car |> string->number |> \ printf "There are ~a lines here." | sed -e "s: are : seem to be :" (newline) def ps-output pipeline ps -wwwax preserve-header 1 {: grep "racket" } spa...
null
https://raw.githubusercontent.com/tonyg/racket-something/4a00a9a6d37777f5aab4f28b03c53555b87e21d7/examples/sh.rkt
racket
#lang something/shell // Simple demos ls -la $HOME | grep "^d" | fgrep -v "." ls -la | wc -l | read-line |> string-split |> car |> string->number |> \ printf "There are ~a lines here." | sed -e "s: are : seem to be :" (newline) def ps-output pipeline ps -wwwax preserve-header 1 {: grep "racket" } spa...
6f91a894b0ac6203abd52da96a45a6d70334486bf3c777bcd096845c5921620e
ghc/ghc
Echo.hs
module Echo (plugin) where import GHC.Plugins import GHC.Tc.Plugin import GHC.Tc.Utils.Monad import qualified GHC.Tc.Utils.Monad as Utils import GHC.Types.Unique.FM ( emptyUFM ) import System.IO plugin :: Plugin plugin = mkPureOptTcPlugin optCallCount mkPureOptTcPlugin :: ([CommandLineOption] -> Maybe Utils.TcPlugin...
null
https://raw.githubusercontent.com/ghc/ghc/0196cc2ba8f848187be47b5fc53bab89e5026bf6/testsuite/tests/plugins/echo-plugin/Echo.hs
haskell
module Echo (plugin) where import GHC.Plugins import GHC.Tc.Plugin import GHC.Tc.Utils.Monad import qualified GHC.Tc.Utils.Monad as Utils import GHC.Types.Unique.FM ( emptyUFM ) import System.IO plugin :: Plugin plugin = mkPureOptTcPlugin optCallCount mkPureOptTcPlugin :: ([CommandLineOption] -> Maybe Utils.TcPlugin...
01dab906ba3793a25d5e8d49acea2f045b5dd9b3a81bcb1b04aa609fdc3ee7f3
dmp1ce/DMSS
DaemonTest.hs
module DaemonTest (tests) where import Test.Tasty import Test.Tasty.HUnit import Control.Concurrent import DMSS.Config ( localDirectory ) import DMSS.Daemon ( daemonMain ) import DMSS.CLI ( runCommand, cliMain ) import DMSS.Daemon.Command ( Command (Status) ) import Common ( withTemporaryTestDirectory ...
null
https://raw.githubusercontent.com/dmp1ce/DMSS/fd88690d97ed267e76f8345e6a76cd3727ef4efb/src-test/DaemonTest.hs
haskell
NOTICE: Tests are run with different ports to prevent threads cleanup from effecting ports on another test. Using the same port from test to test will cause tests to not be able to connect. Start daemon silently Verify data directory was created Verify database was created Stop Daemon Start daemon silently V...
module DaemonTest (tests) where import Test.Tasty import Test.Tasty.HUnit import Control.Concurrent import DMSS.Config ( localDirectory ) import DMSS.Daemon ( daemonMain ) import DMSS.CLI ( runCommand, cliMain ) import DMSS.Daemon.Command ( Command (Status) ) import Common ( withTemporaryTestDirectory ...
c2fb301eb3e18e49941aaac0238149b5621ff5e510357453996f486df1d53399
ClockworksIO/rum-natal
config.cljs
(ns env.config) (def figwheel-urls {:ios "ws:3449/figwheel-ws" :android "ws:3449/figwheel-ws"})
null
https://raw.githubusercontent.com/ClockworksIO/rum-natal/fee021a360a085d4e8b67d44ac2c998e2fcdc571/resources/leiningen/new/rum_natal/env/dev/env/config.cljs
clojure
(ns env.config) (def figwheel-urls {:ios "ws:3449/figwheel-ws" :android "ws:3449/figwheel-ws"})
810954e5cc119c88eeb1c85c634038add32dff85bb683010666e37b5999e5fcf
xvw/preface
traversable.mli
* A [ ] is a data structure that can be traversed from left to right , performing an action on each element . right, performing an action on each element. *) * A common usage of [ ] is to turn any [ ] of { ! module : Applicative } into a { ! module : Applicative } of [ ] . For example , goin...
null
https://raw.githubusercontent.com/xvw/preface/b54d6ef98957bb3e00eaa4bf36b3d79b8da859fe/lib/preface_specs/traversable.mli
ocaml
* Minimal definition using [traverse] over a ['a iter]. * Map each element of a structure to an action, evaluate these actions from left to right, and collect the results. * * {1 Structure anatomy} * Basis operations. * Additional operations. * Evaluate each action in the structure from left to right, and coll...
* A [ ] is a data structure that can be traversed from left to right , performing an action on each element . right, performing an action on each element. *) * A common usage of [ ] is to turn any [ ] of { ! module : Applicative } into a { ! module : Applicative } of [ ] . For example , goin...
6535114500cbeecea96f73704585af82fe63d7c97db40754bc0393f18ebdb9c5
elaforge/karya
Postproc_test.hs
Copyright 2014 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Derive.C.Post.Postproc_test where import qualified Util.Seq as Seq import Util.Test import qualified Ui.UiTest as UiTest import qualified Derive.C.Post.Postproc as Postproc import ...
null
https://raw.githubusercontent.com/elaforge/karya/8ea15e6a5fb57e2f15f8c19836751e315f9c09f2/Derive/C/Post/Postproc_test.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * cancel No flags, no cancel. Multiple weaks and strongs together are ok. The note deriver automatically adds flags so that a note at the end of a block can cancel the next event and get an inferred duratio...
Copyright 2014 module Derive.C.Post.Postproc_test where import qualified Util.Seq as Seq import Util.Test import qualified Ui.UiTest as UiTest import qualified Derive.C.Post.Postproc as Postproc import qualified Derive.C.Prelude.Note as Note import qualified Derive.DeriveTest as DeriveTest import qualified Derive....
255f3ea62d3a626ea305f87bd78628d7b937c70015b15c8c65415e986daa4418
xh4/web-toolkit
packages.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - unicode / test / packages.lisp , v 1.3 2012 - 05 - 04 21:17:48 edi Exp $ Copyright ( c ) 2008 - 2012 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cl-unicode-20190521-git/test/packages.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
$ Header : /usr / local / cvsrep / cl - unicode / test / packages.lisp , v 1.3 2012 - 05 - 04 21:17:48 edi Exp $ Copyright ( c ) 2008 - 2012 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ,...
fc9032606fc2b5b2ca1d75cd3b7e41f270f0002b170917e5229ad4e064f2c131
KestrelInstitute/Specware
swank-asdf.lisp
;;; swank-asdf.lisp -- ASDF support ;; Authors : < > < > < > < > ;; and others ;; License: Public Domain ;; (in-package :swank) (eval-when (:compile-toplevel :load-toplevel :execute) ;;; The best way to load ASDF is from an init file of an ;;; implementation. ...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/edc5f7755b9edd67b5d52362df97e8230d346942/Library/IO/Emacs/slime/contrib/swank-asdf.lisp
lisp
swank-asdf.lisp -- ASDF support and others License: Public Domain The best way to load ASDF is from an init file of an implementation. If ASDF is not loaded at the time swank-asdf is doesn't help and *asdf-path* is set, it will be loaded from that file. To set *asdf-path* put the following into ~/.s...
Authors : < > < > < > < > (in-package :swank) (eval-when (:compile-toplevel :load-toplevel :execute) loaded , it will be tried first with ( require " asdf " ) , if that ( * # p"/path / to / asdf / asdf.lisp " ) (defvar *asdf-path* nil "Path to asdf.lisp f...
ebdfe64d2db92c578fc485ad5b0df0baacf4908b8f551158bfed8c1f25720903
K1D77A/lisp-pay
paypal.lisp
(in-package #:lisp-pay/paypal) ;;;tracking (defapi tracking%update-or-cancel ("/v1/shipping/trackers/:id" put-request) ()) (defapi tracking%information ("/v1/shipping/trackers/:id" get-request) ()) (defapi tracking%batch ("/v1/shipping/trackers-batch" post-request) ()) ;;;billing (defapi bi...
null
https://raw.githubusercontent.com/K1D77A/lisp-pay/cb3d220134bab9f09bfabc890f938ea08fddb11a/src/paypal/paypal.lisp
lisp
tracking billing catalog products has the extra header Prefer and Paypal-Request-Id disputes dispute-actions for sandbox use only this wont work if you only want to upload notes. sandbox only the way to make these api calls that accept either files or json would be to set the content-type to your desired then change-cl...
(in-package #:lisp-pay/paypal) (defapi tracking%update-or-cancel ("/v1/shipping/trackers/:id" put-request) ()) (defapi tracking%information ("/v1/shipping/trackers/:id" get-request) ()) (defapi tracking%batch ("/v1/shipping/trackers-batch" post-request) ()) (defapi billing%create ("/v1/paym...
fd2ad410670be21fdaca37fcdc1d9a9cadd49aaa9ad6778e1d8a513b0384f471
zwizwa/erl_tools
pdm.erl
-module(pdm). -export([init/2, handle/2, measure/2, measure_range/4, note/1, test/1]). Driver for uc_tools / gdb / pdm.c init(Pid, _PacketProto) -> log:info("pdm:init/2~n"), Pid ! {set_forward, fun ?MODULE:handle/2}, Pid ! {set_table, [{32.993691763118974,0.519800711025074}, {44.99...
null
https://raw.githubusercontent.com/zwizwa/erl_tools/07645992e968c1456c9d0212f380afd1ffce4c1f/src/pdm.erl
erlang
Be careful for cycles here. resistor diode log:info("note ~p~n", [Note]), log:info("~8.16.0B~n",[Reduced]), continuation. Put that in the library. measurement is done. log:info("pdm: passing on: ~p~n",[Msg]), The low level interface is a little quirky. The routine below result has the decimal point shifted ...
-module(pdm). -export([init/2, handle/2, measure/2, measure_range/4, note/1, test/1]). Driver for uc_tools / gdb / pdm.c init(Pid, _PacketProto) -> log:info("pdm:init/2~n"), Pid ! {set_forward, fun ?MODULE:handle/2}, Pid ! {set_table, [{32.993691763118974,0.519800711025074}, {44.99...
0b96d1b64711f34d71c28d83da79ac06b762609672bb478224ba11a2b51a53f4
schemeorg-community/index.scheme.org
srfi.160.u32.scm
(((name . "make-u32vector") (signature case-lambda (((integer? size)) u32vector?) (((integer? size) (u32? fill)) u32vector?)) (tags pure)) ((name . "u32vector") (signature lambda ((u32? value) ...) u32vector?) (tags pure)) ((name . "u32?") (signature lambda (obj) boolean?) (tags pure predicate) ...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.160.u32.scm
scheme
(((name . "make-u32vector") (signature case-lambda (((integer? size)) u32vector?) (((integer? size) (u32? fill)) u32vector?)) (tags pure)) ((name . "u32vector") (signature lambda ((u32? value) ...) u32vector?) (tags pure)) ((name . "u32?") (signature lambda (obj) boolean?) (tags pure predicate) ...
0d6e120570fe04ee6c330e2ac87a712677ad6bb1b795fd1e7041805e8adca3c5
JohannesFKnauf/parti-time
tl_test.clj
(ns parti-time.output.tl-test (:require [parti-time.util.time :as time] [clojure.test :as t] [parti-time.output.tl :as sut])) (t/deftest export-timeline (t/testing "Printing a valid timeline" (t/is (= (str "2019-02-03\n" "1215 Some Project\n") (sut/e...
null
https://raw.githubusercontent.com/JohannesFKnauf/parti-time/ee85944e7ba201c4a46be152b09b2f7c591c0389/src/test/clj/parti_time/output/tl_test.clj
clojure
(ns parti-time.output.tl-test (:require [parti-time.util.time :as time] [clojure.test :as t] [parti-time.output.tl :as sut])) (t/deftest export-timeline (t/testing "Printing a valid timeline" (t/is (= (str "2019-02-03\n" "1215 Some Project\n") (sut/e...
22320a3b6469a97a05ec18257977b7139b07fda63fcacc4c09185fedcf1d4248
haskell-suite/haskell-src-exts
MultiLinePragma.hs
{-# OPTIONS_GHC -a -a -a -a -a -a -a -a -a -a -a #-} main :: IO () main = dat
null
https://raw.githubusercontent.com/haskell-suite/haskell-src-exts/84a4930e0e5c051b7d9efd20ef7c822d5fc1c33b/tests/examples/MultiLinePragma.hs
haskell
# OPTIONS_GHC -a -a -a -a -a -a -a -a -a -a -a #
main :: IO () main = dat
d506f7068db38fdd913db88b208117407d7160d2c82fdb068a14771cf3102f8d
qfpl/reflex-tutorial
Common.hs
{-# LANGUAGE OverloadedStrings #-} module Ex06.Common ( Money , Product (..) , Stock (..) , carrot , celery , cucumber , Inputs(..) , Outputs(..) , Error(..) , errorText , Ex06Fn ) where import Data.Text import Reflex type Money = Int data Product = Product { pName :: Text , pCost ...
null
https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/exercises/src/Ex06/Common.hs
haskell
# LANGUAGE OverloadedStrings #
module Ex06.Common ( Money , Product (..) , Stock (..) , carrot , celery , cucumber , Inputs(..) , Outputs(..) , Error(..) , errorText , Ex06Fn ) where import Data.Text import Reflex type Money = Int data Product = Product { pName :: Text , pCost :: Money } deriving (Eq, Ord, Sho...
a15d05f6c95a4f13cf87fef3e8bc7a021cfadc31c881abc0d63b54564bd910df
qkrgud55/ocamlmulti
frx_entry.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/otherlibs/labltk/frx/frx_entry.mli
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
20ec2f69c1500042279d75adff25b50d440003880b95e18bbccfa4b463c83cd2
coq/coq
tags.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/47ad43b361960f2bb9c5149cfb732cdf8b04e411/ide/coqide/tags.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
1d612c7f822b111583a9fc536069354e71eae6bebcb34622afeac1b32d3d1be1
opencog/learn
any-merge.scm
#! /usr/bin/env guile !# ; Atomspace deduplication repair script ; ; Due to bugs, the SQL backend can end up with multiple copies of ; atoms. This script will find them, merge them, and sum the counts ; on the associated count truth values. Its up to you to recompute ; anything else. ; This script focuses on accid...
null
https://raw.githubusercontent.com/opencog/learn/c599c856f59c1815b92520bee043c588d0d1ebf9/attic/repair/any-merge.scm
scheme
Due to bugs, the SQL backend can end up with multiple copies of atoms. This script will find them, merge them, and sum the counts on the associated count truth values. Its up to you to recompute anything else. Viz if select * from atoms where type=89 and name='ANY'; -------------------------------------------...
#! /usr/bin/env guile !# Atomspace deduplication repair script This script focuses on accidentally having two ANY nodes . returns more than one row :-( (load "common.scm") (define (get-all-atoms query colm) " get-all-atoms -- Execute the query, return all colm values. Returns a list of the 'colm' entries "...
a7b169f3a0d7902470881b60d36ae35139f6b3ba5f5181d890c7bf28d187b822
biocaml/phylogenetics
discrete_pd.ml
open Core type t = { n : int ; shift : int ; weights : float array ; } let is_leaf dpd i = i >= dpd.shift let init n ~f = let shift = Float.(to_int (2. ** round_up (log (float n) /. log 2.))) - 1 in let m = shift + n in let weights = Array.create ~len:m 0. in for i = 0 to n - 1 do weights.(shift + ...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/e225616a700b03c429c16f760dbe8c363fb4c79d/lib/discrete_pd.ml
ocaml
open Core type t = { n : int ; shift : int ; weights : float array ; } let is_leaf dpd i = i >= dpd.shift let init n ~f = let shift = Float.(to_int (2. ** round_up (log (float n) /. log 2.))) - 1 in let m = shift + n in let weights = Array.create ~len:m 0. in for i = 0 to n - 1 do weights.(shift + ...
9200e62222f2db6c3a630007bfa3e33d415dbeed6dcf2d8b80d1ec1db3a8b3f7
ivanperez-keera/Yampa
Loop.hs
-- | Module : . Loop Copyright : ( c ) , 2014 - 2022 ( c ) , 2007 - 2012 ( c ) , 2005 - 2006 ( c ) and , Yale University , 2003 - 2004 -- License : BSD-style (see the LICENSE file in the distribution) -- -- Maintainer : -- Stability ...
null
https://raw.githubusercontent.com/ivanperez-keera/Yampa/3a69b884dca0b544143a01d585119ac7c5b25455/yampa/src/FRP/Yampa/Loop.hs
haskell
| License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : provisional Portability : non-portable -GHC extensions- Well-initialised loops * Loops with guaranteed well-defined feedback * Loops with guaranteed well-defined feedback | Loop with an initial value for th...
Module : . Loop Copyright : ( c ) , 2014 - 2022 ( c ) , 2007 - 2012 ( c ) , 2005 - 2006 ( c ) and , Yale University , 2003 - 2004 module FRP.Yampa.Loop ( loopPre , loopIntegral ) where import Control.Arrow import Data.Ve...
f137fd3fdeefb404e6c7e81a626c855f80d2c3c6454a41306671345437158b94
open-company/open-company-web
wrt.cljs
(ns oc.web.utils.wrt (:require [cuerdas.core :as s] [oc.lib.time :as lib-time] [oc.lib.user :as lib-user] [oc.web.urls :as oc-urls] [oc.web.local-settings :as ls] [oc.web.components.ui.alert-modal :as alert-modal])) (def column-separator ", ") (def row-sepa...
null
https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/src/main/oc/web/utils/wrt.cljs
clojure
(ns oc.web.utils.wrt (:require [cuerdas.core :as s] [oc.lib.time :as lib-time] [oc.lib.user :as lib-user] [oc.web.urls :as oc-urls] [oc.web.local-settings :as ls] [oc.web.components.ui.alert-modal :as alert-modal])) (def column-separator ", ") (def row-sepa...
501fe9c5c92fe058206642661c757e6fa33c0f026fcbdf3518752e1975610ecf
oisdk/monus-weighted-search
Max.hs
-------------------------------------------------------------------------------- -- | Module : Data . Monus . Copyright : ( c ) Kidney 2021 -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- A 'Monus' for for maximums. ----------------------------------------------------...
null
https://raw.githubusercontent.com/oisdk/monus-weighted-search/05ea33553b36c2c6b2b70f23c16a6ea5f6897f2a/src/Data/Monus/Max.hs
haskell
------------------------------------------------------------------------------ | Maintainer : Stability : experimental Portability : non-portable A 'Monus' for for maximums. ------------------------------------------------------------------------------ | A type which adds a lower bound to some ordered type. ...
Module : Data . Monus . Copyright : ( c ) Kidney 2021 module Data.Monus.Max where import Control.Applicative import Control.Monad import Data.Monus import Test.QuickCheck import Control.DeepSeq import Data.Functor.Classes import Text.Read import Data.Data ( Data, Typeable ) import GHC.Generics ( Ge...
5810ee75e23283a14d25ea5f5e67b87d76717b7eafd67afc6f772f106221bfc9
rvirding/luerl
hello_userdata.erl
%% File : hello_userdata.erl Purpose : Brief demonstration of Luerl userdata access . Use $ erlc hello_userdata.erl & & erl -pa .. / .. /ebin -s hello_userdata run -s init stop -noshell -module(hello_userdata). -export([run/0]). run() -> St0 = luerl:init(), U42 = {userdata,42}, %The original d...
null
https://raw.githubusercontent.com/rvirding/luerl/5e61c1838d08430af67fb870995b05a41d64aeee/examples/hello/hello_userdata.erl
erlang
File : hello_userdata.erl The original decoded data This call wraps the actual data for us. New decoded data
Purpose : Brief demonstration of Luerl userdata access . Use $ erlc hello_userdata.erl & & erl -pa .. / .. /ebin -s hello_userdata run -s init stop -noshell -module(hello_userdata). -export([run/0]). run() -> St0 = luerl:init(), {Uref,St1} = luerl:encode(U42, St0), St2 = luerl:set_table1([<<"u1...
2e536ffa8ee7c58c4e1f94b49e8ed71ab08780a9faced7bfd29741c311ea460e
GaloisInc/renovate
Overlap.hs
{-# LANGUAGE GADTs #-} -- | A module defining types and utilities for computing which blocks overlap module Renovate.Recovery.Overlap ( BlockRegions, blockRegions, numBlockRegions, disjoint ) where import Control.Lens ( (^.) ) import qualified Data.Foldable as F import qualified Data.IntervalMap.St...
null
https://raw.githubusercontent.com/GaloisInc/renovate/550f64c1119f6804967e3077dcf0cb7c57ddb603/renovate/src/Renovate/Recovery/Overlap.hs
haskell
# LANGUAGE GADTs # | A module defining types and utilities for computing which blocks overlap | Construct a map of overlapping blocks in the binary from macaw discovery results Note that the interval-map insert function overwrites the existing value if the key is already in the map. This can arise for us because b...
module Renovate.Recovery.Overlap ( BlockRegions, blockRegions, numBlockRegions, disjoint ) where import Control.Lens ( (^.) ) import qualified Data.Foldable as F import qualified Data.IntervalMap.Strict as IM import qualified Data.Macaw.CFG as MC import qualified Data.Macaw.Discovery as MC import q...
87daec210b416c5e6ea480feb2d9ecf7262782c93c73627b5d0878a8aabac7f6
fourmolu/fourmolu
Preprocess.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- | Preprocessing for input source code. module Ormolu.Processing.Preprocess ( preprocess, ) where import Control.Monad import Data.Array as A import Data.Bifunctor (bimap) import Data.Char (isSp...
null
https://raw.githubusercontent.com/fourmolu/fourmolu/f47860f01cb3cac3b973c5df6ecbae48bbb4c295/src/Ormolu/Processing/Preprocess.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | Preprocessing for input source code. | Preprocess the specified region of the input into raw snippets and subregions to be formatted. region to format. For every formattable region, we want to ensure that it is separated by a blank line from preceding/suc...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Ormolu.Processing.Preprocess ( preprocess, ) where import Control.Monad import Data.Array as A import Data.Bifunctor (bimap) import Data.Char (isSpace) import Data.Function ((&)) import Data.IntMap (IntMap) import qualified Data.IntMap.Strict as IntMap i...
69f60b3ccc785e40007855215be7a121c92038fae5be3e319659af0dba88febc
astrada/ocaml-extjs
ext_panel_AbstractPanel.mli
* A base class which provides methods common to Pane ... { % < p > A base class which provides methods common to Panel classes across the Sencha product range.</p > < p > Please refer to sub class 's documentation</p > % } {% <p>A base class which provides methods common to Panel classes across the S...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_panel_AbstractPanel.mli
ocaml
* {% <p>Invoked before the Component is destroyed.</p> %} * {% <p>The base CSS class to apply to this panel's element.</p> %} Defaults to: [x-panel] * {% <p>A shortcut for setting a padding style on the body element. The value can either be a number to be applied to all sides, or a normal css string ...
* A base class which provides methods common to Pane ... { % < p > A base class which provides methods common to Panel classes across the Sencha product range.</p > < p > Please refer to sub class 's documentation</p > % } {% <p>A base class which provides methods common to Panel classes across the S...
8b26ff9488258a1964ace1a241b516b5ea5ccbd010037c499e45b754460247ad
CUTE-Lang/miniCUTE
Step.hs
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # -- | Copyright : ( c ) 2018 - present -- License: BSD 3-Clause module Minicute.Control.GMachine.Step ( module Minicute.Data.GMachine.State , GMachineStepMonadT , GMachineStep...
null
https://raw.githubusercontent.com/CUTE-Lang/miniCUTE/b6c8a48b10e2af0786a50175d57b5339be7be2de/main-packages/g-machine-interpreter/lib/Minicute/Control/GMachine/Step.hs
haskell
| License: BSD 3-Clause # INLINE execGMachineStepT #
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # Copyright : ( c ) 2018 - present module Minicute.Control.GMachine.Step ( module Minicute.Data.GMachine.State , GMachineStepMonadT , GMachineStepMonad , runGMachineStepT ,...
234504778ab60050aa3903b3a0056e78d5ac5722965e8122b80226ea6d749eb5
6502/JSLisp
spiral.lisp
(defun main () (let** ((canvas (create-element "canvas")) (ctx (canvas.getContext "2d")) (#'repaint () (let** ((w canvas.offsetWidth) (h canvas.offsetHeight) (cx (/ w 2)) (cy (/ h 2)) (colors (list "#14FFA5...
null
https://raw.githubusercontent.com/6502/JSLisp/9a4aa1a9116f0cfc598ec9f3f30b59d99810a728/examples/spiral.lisp
lisp
(defun main () (let** ((canvas (create-element "canvas")) (ctx (canvas.getContext "2d")) (#'repaint () (let** ((w canvas.offsetWidth) (h canvas.offsetHeight) (cx (/ w 2)) (cy (/ h 2)) (colors (list "#14FFA5...
c1d459a2526d1165b72148fb71e39ccbd226e2304c33a1e9c9b58923ec9ce509
SimulaVR/godot-haskell
Animation.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Animation (Godot.Core.Animation._TYPE_BEZIER, ...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Animation.hs
haskell
| Emitted when there's a change in the list of tracks, e.g. tracks are added, moved or have changed paths. # NOINLINE bindAnimation_bezier_track_get_key_out_handle # | Clear the animation (clear all tracks and reset all). | Clear the animation (clear all tracks and reset all). | Adds a new track that is a copy of t...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Animation (Godot.Core.Animation._TYPE_BEZIER, ...
ece4bf457b05a660d43b1771d5f380f3214f0c5c1e4b654859065bbc89078bfa
sol/doctest
Foo.hs
module Foo where -- | A failing example -- > > > 23 42 test :: a test = undefined
null
https://raw.githubusercontent.com/sol/doctest/ec6498542986b659f50e961b02144923f6f41eba/test/integration/failing/Foo.hs
haskell
| A failing example
module Foo where > > > 23 42 test :: a test = undefined
91350e5386f02918c2a56d79f8ed61a175cc4ae95242d4aa930638534481cbd0
cnuernber/dtype-next
nippy.clj
(ns tech.v3.datatype.nippy "Nippy bindings for datatype base types and tensor types" (:require [taoensso.nippy :as nippy] [tech.v3.datatype.base :as dtype-base] [tech.v3.datatype.array-buffer :as array-buffer] [tech.v3.datatype.copy-make-container :as dtype-cmc] [tech...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/228b88af967fef743ef95f3bf3372d08a356d2e8/src/tech/v3/datatype/nippy.clj
clojure
(ns tech.v3.datatype.nippy "Nippy bindings for datatype base types and tensor types" (:require [taoensso.nippy :as nippy] [tech.v3.datatype.base :as dtype-base] [tech.v3.datatype.array-buffer :as array-buffer] [tech.v3.datatype.copy-make-container :as dtype-cmc] [tech...
718d77be4577c9c1a8f62de96808396e4b38cf84aa095083a03ae3fcd717953e
vikram/lisplibraries
time.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: time.lisp Purpose : UFFI test file , time , use C structures Author : Date Started : Feb 2002 ;;;; ...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/uffi-1.5.17/tests/time.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: time.lisp *************************************************************************
Purpose : UFFI test file , time , use C structures Author : Date Started : Feb 2002 $ I d : time.lisp 10608 2005 - 07 - 01 00:39:48Z This file , part of UFFI , is Copyright ( c ) 2002 - 2005 by (in-package #:uffi-tests) (uffi:def-foreign-type time-t :unsigned-long) (uffi:def-struct...
e699cd8f927bb073e9a78ff3eff3747c6b596c18be50cff6d6f73a4ab74f91b9
MarcFontaine/stm32hs
Env.hs
---------------------------------------------------------------------------- -- | Module : STM32.STLinkUSB.Env Copyright : ( c ) 2017 -- License : BSD3 -- Maintainer : -- Stability : experimental Portability : GHC - only -- The STLT is just a reader transformer of STLinkEnv . ...
null
https://raw.githubusercontent.com/MarcFontaine/stm32hs/d7afeb8f9d83e01c76003f4b199b45044bd4e383/STLinkUSB/STM32/STLinkUSB/Env.hs
haskell
-------------------------------------------------------------------------- | License : BSD3 Stability : experimental # LANGUAGE RankNTypes #
Module : STM32.STLinkUSB.Env Copyright : ( c ) 2017 Maintainer : Portability : GHC - only The STLT is just a reader transformer of STLinkEnv . # LANGUAGE RecordWildCards # module STM32.STLinkUSB.Env where import System.USB import Control.Monad.Trans.Reader import Control.Monad.IO.Cl...
fe122a489455adb8cbb465738615e624090c19d60b61a24304bf6a894b7d97c7
shayne-fletcher/zen
dict.ml
(*The type of a dictionary with keys of type ['a] and values of type ['b]*) type ('a, 'b) dict = 'a -> 'b option (*The empty dictionary maps every key to [None]*) let empty (k : 'a) : 'b option = None (*[add d k v] is the dictionary [d] together with a binding of [k] to [v]*) let add (d : ('a, 'b) dict) (k : 'a) ...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/dict/dict.ml
ocaml
The type of a dictionary with keys of type ['a] and values of type ['b] The empty dictionary maps every key to [None] [add d k v] is the dictionary [d] together with a binding of [k] to [v] [find d k] retrieves the value bound to [k]
type ('a, 'b) dict = 'a -> 'b option let empty (k : 'a) : 'b option = None let add (d : ('a, 'b) dict) (k : 'a) (v : 'b) : ('a, 'b) dict = fun k' -> if k' = k then Some v else d k' let find (d : ('a, 'b) dict) (k : 'a) : 'b option = d k e.g. Name | Age = = = = = = = = = ...
16103f5f3e7c2608295d7c046543caf0d0d9e604f2dcf6a4698dda4d4c90c45a
S8A/htdp-exercises
ex328.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex328) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp")))...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex328.rkt
racket
about the language level of this file in a form that our tools can easily process. .: Data definitions :. An Atom is one of: – Number – String – Symbol – '() .: Data examples :. S-expr Symbol Symbol -> S-expr Replaces old with new in the given s-expression Any -> Boolean
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex328) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "abstraction.rk...
127fda71114ce8732a96296cf8e54688c2eba74b4ec24c30997d8f4e8eaabb8f
appleshan/cl-http
http-proxy-6-19.lisp
-*- Mode : LISP ; Syntax : Ansi - common - lisp ; Package : HTTP ; Base : 10 ; Patch - File : T -*- Patch file for HTTP - PROXY version 6.19 ;;; Reason: Variable HTTP::*PROXY-PORT-ACCESS-CONTROL-ALIST*: - ;;; Function HTTP::PROXY-ACCESS-CONTROL: - ;;; Function HTTP::SET-PROXY-ACCESS-CONTROL: - Function ( CLOS ...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/proxy/patch/http-proxy-6/http-proxy-6-19.lisp
lisp
Syntax : Ansi - common - lisp ; Package : HTTP ; Base : 10 ; Patch - File : T -*- Reason: Variable HTTP::*PROXY-PORT-ACCESS-CONTROL-ALIST*: - Function HTTP::PROXY-ACCESS-CONTROL: - Function HTTP::SET-PROXY-ACCESS-CONTROL: - Function HTTP::WITH-PROXY-AUTHENTICATION-ACCESS-CONTROL: - Function (CLOS:METHOD HTTP:...
Patch file for HTTP - PROXY version 6.19 Function ( CLOS : METHOD HTTP::SET - PROXY - ACCESS - CONTROL ( LISP : INTEGER HTTP : ACCESS - CONTROL ) ): - Function ( CLOS : METHOD HTTP::SET - PROXY - ACCESS - CONTROL ( T CONS ) ): - Written by JCMa , 4/10/01 20:48:48 while running on FUJI - VLM from FUJI:/usr...
0faccafef6812699f6f90798a2940fa2b2667f691e2efb29e1092c7a8b106c90
emqx/mria
mria_upstream.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/mria/fcec1873582c3a66c960da6c7f6d48ac73c64c13/src/mria_upstream.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Upstream means a core node or the local node if we are talking -module(mria_upstream). -expor...
3852c95b699c9d6089e70a05c63c5fbeb9301097a7b74814e519cf911692fae5
benzap/eden
async.cljc
(ns eden.stdlib.async (:require [eden.def :refer [set-var!]] [clojure.core.async :as async])) (def async-ns {:<!! async/<!! :>!! async/>!! :admix async/admix :alts!! async/alts!! :buffer async/buffer :chan async/chan :close! async/close! :dropping-buffer async/dropping-buffer :into a...
null
https://raw.githubusercontent.com/benzap/eden/dbfa63dc18dbc5ef18a9b2b16dbb7af0e633f6d0/src/eden/stdlib/async.cljc
clojure
(ns eden.stdlib.async (:require [eden.def :refer [set-var!]] [clojure.core.async :as async])) (def async-ns {:<!! async/<!! :>!! async/>!! :admix async/admix :alts!! async/alts!! :buffer async/buffer :chan async/chan :close! async/close! :dropping-buffer async/dropping-buffer :into a...
33f0fbfae895dc4bacbd91709508c69c183b9b3767b1e4212d15a8fa6c59b153
circleci/mongofinil
test_hooks.clj
(ns mongofinil.test-hooks (:require [bond.james :as bond] [midje.sweet :refer (anything contains fact)] [mongofinil.core :as core] [mongofinil.testing-utils :as utils])) (utils/setup-test-db) (utils/setup-midje) (defn update-hook [row] (update-in row [:hook-count] (fnil inc 0)...
null
https://raw.githubusercontent.com/circleci/mongofinil/bceedb4f0d7d49934410131be8e29ba3c21ad3ad/test/mongofinil/test_hooks.clj
clojure
(ns mongofinil.test-hooks (:require [bond.james :as bond] [midje.sweet :refer (anything contains fact)] [mongofinil.core :as core] [mongofinil.testing-utils :as utils])) (utils/setup-test-db) (utils/setup-midje) (defn update-hook [row] (update-in row [:hook-count] (fnil inc 0)...
842a2a701d100d723abd2812799ccba88b141cfd737ec5dc9fa8066e8cae902f
logseq/logseq
graph.cljs
(ns frontend.handler.graph "Provides util handler fns for graph view" (:require [clojure.set :as set] [clojure.string :as string] [frontend.db :as db] [logseq.db.default :as default-db] [frontend.state :as state] [frontend.util :as util])) (defn- build-li...
null
https://raw.githubusercontent.com/logseq/logseq/9c7b4ea2016fb28b16ee42a7136c73dd52d8ce4b/src/main/frontend/handler/graph.cljs
clojure
FIXME: Put it into CSS slow
(ns frontend.handler.graph "Provides util handler fns for graph view" (:require [clojure.set :as set] [clojure.string :as string] [frontend.db :as db] [logseq.db.default :as default-db] [frontend.state :as state] [frontend.util :as util])) (defn- build-li...
4296e717376ac9b55cfa2399769f3ba829384363f1aaaa248519d7d182af5556
herd/herdtools7
indent.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/litmus/indent.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2012 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
43c445ea57e3395159361e52e16c504ca2b168fe3780948332568bbcd0407516
reasonml/reason
ppx_here.ml
open Migrate_parsetree Define the rewriter on OCaml 4.05 AST open Ast_405 let ocaml_version = Versions.ocaml_405 (* Action of the rewriter: replace __HERE__ expression by a tuple ("filename", line, col) *) let mapper _config _cookies = let open Ast_mapper in let open Ast_helper in let expr mapper pexp = ...
null
https://raw.githubusercontent.com/reasonml/reason/4f6ff7616bfa699059d642a3d16d8905d83555f6/src/vendored-omp/examples/omp_ppx_here/ppx_here.ml
ocaml
Action of the rewriter: replace __HERE__ expression by a tuple ("filename", line, col) Register the rewriter in the driver
open Migrate_parsetree Define the rewriter on OCaml 4.05 AST open Ast_405 let ocaml_version = Versions.ocaml_405 let mapper _config _cookies = let open Ast_mapper in let open Ast_helper in let expr mapper pexp = match pexp.Parsetree.pexp_desc with | Parsetree.Pexp_ident {Location.txt = Longident.Liden...
c9db157931b50e3d5f5020b8990b53be88bbed540d43653ec47f100b58b5eee2
clojang/jiface
erlang.clj
(ns jiface.erlang (:require [jiface.core :as jiface]) (:import (clojure.lang Keyword))) (defn create [& args] "Common function for type instantiation. Having a single function which is ultimately responsible for creating objects allows us to handle instantiation errors easily, adding one handler f...
null
https://raw.githubusercontent.com/clojang/jiface/dcc9e9463eec143b99ce5cf104b5201f7847a1dd/src/jiface/erlang.clj
clojure
Aliases
(ns jiface.erlang (:require [jiface.core :as jiface]) (:import (clojure.lang Keyword))) (defn create [& args] "Common function for type instantiation. Having a single function which is ultimately responsible for creating objects allows us to handle instantiation errors easily, adding one handler f...
bd8d10fbc835f4e4ebe4ce4d03a7aa6836e2f364294e2cdf2348a1621509d83f
dselsam/arc
TSpec.hs
Copyright ( c ) 2020 Microsoft Corporation . All rights reserved . Released under Apache 2.0 license as described in the file LICENSE . Authors : , , . # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE StrictData #-...
null
https://raw.githubusercontent.com/dselsam/arc/7e68a7ed9508bf26926b0f68336db05505f4e765/src/Synth/Spec/TSpec.hs
haskell
# LANGUAGE StrictData #
Copyright ( c ) 2020 Microsoft Corporation . All rights reserved . Released under Apache 2.0 license as described in the file LICENSE . Authors : , , . # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Synth.Spec.TSpec wh...
9fad8ce547061d42b407e5721d2817fcd66fe78cc2fc2646f3f33c59c4a7dd1b
janestreet/krb
mode.mli
open! Core * A [ Mode.t ] specifies whether a client or server should use Kerberos for authentication or use a test mode where clients / servers can pretend to be any principal . All production clients and servers should use [ Kerberized ] mode . When you use the default kerberized mode on both clie...
null
https://raw.githubusercontent.com/janestreet/krb/50993f4d8a5d42974a72e160b7b54613568184c1/src/mode.mli
ocaml
* The connection will be kerberized. * In test mode, clients/servers can pretend to be any principal. Please note that this mode provides NO Kerberos protection. The connection will be plain TCP. * default: [accept_all] * default: [User (Unix.getlogin ())] * Construct a [Kerberized] mode with [Server_key_sour...
open! Core * A [ Mode.t ] specifies whether a client or server should use Kerberos for authentication or use a test mode where clients / servers can pretend to be any principal . All production clients and servers should use [ Kerberized ] mode . When you use the default kerberized mode on both clie...
af82fb772c86730929e52cf737c457d29d249f0c84e416454da79cafe0389dbe
threatgrid/ctia
jmx.clj
(ns ctia.lib.metrics.jmx (:require [clj-momo.lib.metrics.jmx :as jmx] [puppetlabs.trapperkeeper.core :as tk])) (defn start! [get-in-config] (when (get-in-config [:ctia :metrics :jmx :enabled]) (jmx/start))) (defprotocol JMXMetricsService) (tk/defservice jmx-metrics-service JMXMetricsService [...
null
https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/src/ctia/lib/metrics/jmx.clj
clojure
(ns ctia.lib.metrics.jmx (:require [clj-momo.lib.metrics.jmx :as jmx] [puppetlabs.trapperkeeper.core :as tk])) (defn start! [get-in-config] (when (get-in-config [:ctia :metrics :jmx :enabled]) (jmx/start))) (defprotocol JMXMetricsService) (tk/defservice jmx-metrics-service JMXMetricsService [...
f564ba61b6e86e523c75f6d27b29e85a83ae09ebd5af2fb5ae0dfd343327414a
provinciesincijfers/gebiedsniveaus
05verwerking_bevolking_antwerpen.sps
* Encoding: UTF-8. * bron van de bevolkingsdata: #filter=path%7C%2FGegevens%2FRijksregister%7C&page=1 * todo: statsec meepakken uit bevolking! get sas data="C:\Users\plu3532\Documents\gebiedsindelingen\verwerking\werkbestanden_bevolking\ipa2016c.sas7bdat" /formats="C:\Users\plu3532\Documents\gebiedsindelingen\ver...
null
https://raw.githubusercontent.com/provinciesincijfers/gebiedsniveaus/84bd86174f5e155aae431010acbb7949e0be9e80/deelgemeenten/scripts/05verwerking_bevolking_antwerpen.sps
scheme
* Encoding: UTF-8. * bron van de bevolkingsdata: #filter=path%7C%2FGegevens%2FRijksregister%7C&page=1 * todo: statsec meepakken uit bevolking! get sas data="C:\Users\plu3532\Documents\gebiedsindelingen\verwerking\werkbestanden_bevolking\ipa2016c.sas7bdat" /formats="C:\Users\plu3532\Documents\gebiedsindelingen\ver...
8dc4c6e5fe85eb453c26753056cfa65a85550a4e2b451bb5fcd23005a782ccf1
serokell/qtah
QAbstractItemModel.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Core/QAbstractItemModel.hs
haskell
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (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 MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.Co...
b7ac90f2c98054284e5dee78b620cc5587305dd17e3f49e1decf433960cdaf26
gafiatulin/codewars
RelativePrimes.hs
-- Relatively Prime Numbers module Haskell.Codewars.RelativePrimes where relativelyPrime :: Integral t => t -> [t] -> [t] relativelyPrime n = filter ((== 1) . gcd n)
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/8%20kyu/RelativePrimes.hs
haskell
Relatively Prime Numbers
module Haskell.Codewars.RelativePrimes where relativelyPrime :: Integral t => t -> [t] -> [t] relativelyPrime n = filter ((== 1) . gcd n)
a29b5c519e82ec4dc7b9984b8a6008a92badc3ff80eabb9d4d6edfb56fa95fa0
psg-mit/twist-popl22
check.mli
open Core exception TypeError of string module VarMap = String.Map val synth : Ast.purity Ast.typ VarMap.t -> Ast.purity Ast.typ VarMap.t -> Ast.exp -> Ast.purity Ast.typ VarMap.t * Ast.purity Ast.typ * Ast.exp val check : Ast.decl list -> Ast.program val quick_synth : Ast.exp VarMap.t -> Ast.purity Ast.t...
null
https://raw.githubusercontent.com/psg-mit/twist-popl22/fa495479ff021fb8793ae20d8cf786ed048f503d/src/check.mli
ocaml
open Core exception TypeError of string module VarMap = String.Map val synth : Ast.purity Ast.typ VarMap.t -> Ast.purity Ast.typ VarMap.t -> Ast.exp -> Ast.purity Ast.typ VarMap.t * Ast.purity Ast.typ * Ast.exp val check : Ast.decl list -> Ast.program val quick_synth : Ast.exp VarMap.t -> Ast.purity Ast.t...
5451c89d15f7455b011e44a7f6fc6232f15c607be15d161b7d1f857c8c9321b3
argp/bap
arch.mli
* Supported BAP architectures type arch = | X86_32 | X86_64 val arch_to_string : arch -> string val arch_of_string : string -> arch val type_of_arch : arch -> Type.typ val bits_of_arch : arch -> int val bytes_of_arch : arch -> int val mode_of_arch : arch -> Disasm_i386.mode val mem_of_arch : arch -> Var.t ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocaml/arch.mli
ocaml
* Supported BAP architectures type arch = | X86_32 | X86_64 val arch_to_string : arch -> string val arch_of_string : string -> arch val type_of_arch : arch -> Type.typ val bits_of_arch : arch -> int val bytes_of_arch : arch -> int val mode_of_arch : arch -> Disasm_i386.mode val mem_of_arch : arch -> Var.t ...
d581a95fea1a2b0bde25dc256aaf4bdd84f205ed9b59941c2304efcd3279912c
uswitch/bifrost
user.clj
(ns user (:require [uswitch.bifrost.system :refer (make-system)] [clojure.tools.logging :refer (error)] [clojure.tools.namespace.repl :refer (refresh)] [com.stuartsierra.component :as component])) (def system nil) (defn init [] (alter-var-root #'system (consta...
null
https://raw.githubusercontent.com/uswitch/bifrost/40a2bbb8af5c3b6d65930511c141c777a9585942/dev/user.clj
clojure
(ns user (:require [uswitch.bifrost.system :refer (make-system)] [clojure.tools.logging :refer (error)] [clojure.tools.namespace.repl :refer (refresh)] [com.stuartsierra.component :as component])) (def system nil) (defn init [] (alter-var-root #'system (consta...
d0150d03bca1300f54805eea1e2916ebf1f802c5dd3e332d6f0f18abae9d4a4a
okuoku/nausicaa
proof-ssl.sps
-*- coding : utf-8 - unix -*- ;;; Part of : Nausicaa / cURL ;;;Contents: test downloading web pages with SSL Date : Sun Nov 22 , 2009 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2009 < > ;;; ;;;This program is free software: you can redistribute it and/or modify ;;;it under the terms of the GNU General Public Li...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/curl/proofs/proof-ssl.sps
scheme
Contents: test downloading web pages with SSL Abstract 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 your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY W...
-*- coding : utf-8 - unix -*- Part of : Nausicaa / cURL Date : Sun Nov 22 , 2009 Copyright ( c ) 2009 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License (import (nausicaa...
e9f87335593d4c80079064f17f5c3d411b8ea1a86adbb74bc07f40e51101b3aa
lab-79/dspec
project.clj
(defproject lab79/dspec "0.3.8" :description "Stronger semantics on top of Datomic, with clojure.spec goodies." :url "-79/dspec" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src/clj"] :test-paths ["test"] :dependencies [ [org.clojure/clojure "1.9.0-...
null
https://raw.githubusercontent.com/lab-79/dspec/26f88e74066e381c8569d175c1bd5948a8005bd0/project.clj
clojure
(defproject lab79/dspec "0.3.8" :description "Stronger semantics on top of Datomic, with clojure.spec goodies." :url "-79/dspec" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src/clj"] :test-paths ["test"] :dependencies [ [org.clojure/clojure "1.9.0-...
d9475a14ceb5dc04a8788a496cd169e690d456764f6b71f64fbef032d76eae3c
matterandvoid-space/todomvc-fulcro-subscriptions
subscriptions.clj
(ns space.matterandvoid.todomvc.todo.subscriptions (:require [space.matterandvoid.subscriptions.datalevin-eql :as subs.eql] [space.matterandvoid.todomvc.server.db :as-alias system.db] [space.matterandvoid.todomvc.todo.model :as todo.model] [space.matterandvoid.todomvc.todo.db :as todo.db])) (def todo...
null
https://raw.githubusercontent.com/matterandvoid-space/todomvc-fulcro-subscriptions/e2e244936efe1005fa2cac204a24758b067aac4e/src/main/space/matterandvoid/todomvc/todo/subscriptions.clj
clojure
(ns space.matterandvoid.todomvc.todo.subscriptions (:require [space.matterandvoid.subscriptions.datalevin-eql :as subs.eql] [space.matterandvoid.todomvc.server.db :as-alias system.db] [space.matterandvoid.todomvc.todo.model :as todo.model] [space.matterandvoid.todomvc.todo.db :as todo.db])) (def todo...