_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
8308442616135a8cbdb8ba3770a1ff4d23fb61af4721a952c5418baba5f3821f
flexsurfer/conduitrn
api.cljs
(ns conduit.api (:require [clojure.string :as string])) (def api-url "") (defn endpoint "Concat any params to api-url separated by /" [& params] (string/join "/" (concat [api-url] params))) (defn auth-header "Get user token and format for API authorization" [db] (when-let [token (get-in db [:user :toke...
null
https://raw.githubusercontent.com/flexsurfer/conduitrn/e0c4860a24a7413b08d807b3aa3f1a76d93a444b/src/conduit/api.cljs
clojure
(ns conduit.api (:require [clojure.string :as string])) (def api-url "") (defn endpoint "Concat any params to api-url separated by /" [& params] (string/join "/" (concat [api-url] params))) (defn auth-header "Get user token and format for API authorization" [db] (when-let [token (get-in db [:user :toke...
9bd13d588098535e6e1f363d9460a0d85d517a0767c4b7f70b37bb620996fe38
bomberstudios/mtasc
as3parse.ml
* This file is part of SwfLib * Copyright ( c)2004 - 2006 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your ...
null
https://raw.githubusercontent.com/bomberstudios/mtasc/d7c2441310248776aa89d60f9c8f98d539bfe8de/src/swflib/as3parse.ml
ocaml
************************************************************************ LENGTH ************************************************************************ PARSING both ns and id can be 0 <=> '*' ************************************************************************ WRITING *******************************...
* This file is part of SwfLib * Copyright ( c)2004 - 2006 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your ...
9e1771987ab6e0f966d785aea6b37e89a9237a3f5d3a1c4709a6d0b432a5f71c
fulcrologic/fulcro-inspect
figwheel.clj
(use 'figwheel-sidecar.repl-api) (start-figwheel! "devcards" "test") (cljs-repl)
null
https://raw.githubusercontent.com/fulcrologic/fulcro-inspect/a03b61cbd95384c0f03aa936368bcf5cf573fa32/script/figwheel.clj
clojure
(use 'figwheel-sidecar.repl-api) (start-figwheel! "devcards" "test") (cljs-repl)
ae3586729e04b83e80b6bc1a3db8ccf542ea810964f7af011d571429d1547675
Haskell-Things/ImplicitCAD
Spec.hs
{- ORMOLU_DISABLE -} # OPTIONS_GHC -fno - warn - missing - import - lists # # OPTIONS_GHC -fno - warn - type - defaults # module GoldenSpec.Spec (spec) where import GoldenSpec.Util (golden, goldenAllFormats) import Graphics.Implicit import Prelude import Test.Hspec ( describe, Spec ) import Graphics.Implicit....
null
https://raw.githubusercontent.com/Haskell-Things/ImplicitCAD/f5cafa5ff074604f1721c89b9f611d391cdca186/tests/GoldenSpec/Spec.hs
haskell
ORMOLU_DISABLE limit height or this races off to infinity and makes the tests take forever, eating all your RAM while it tries to calculate the surface Note, this have a gap from the base plane and the extruded object, and the base of the extruded object is going to be missing. This is because we are directly u...
# OPTIONS_GHC -fno - warn - missing - import - lists # # OPTIONS_GHC -fno - warn - type - defaults # module GoldenSpec.Spec (spec) where import GoldenSpec.Util (golden, goldenAllFormats) import Graphics.Implicit import Prelude import Test.Hspec ( describe, Spec ) import Graphics.Implicit.Primitives (torus, el...
4797dd2da0d4250cf35f2c7711f813398d853d14fb745da394717b37cf5d8dfe
binaryage/cljs-oops
circus.clj
(ns oops.circus (:require [clojure.test :as test] [cljs.util :as cljs-util] [clj-logging-config.log4j :as log4j-config] [environ.core :refer [env]] [oops.circus.config :as config] [oops.arena]) (:import (org.apache.log4j Level))) (defn setup-logging! [] ...
null
https://raw.githubusercontent.com/binaryage/cljs-oops/a2b48d59047c28decb0d6334e2debbf21848e29c/test/src/circus/oops/circus.clj
clojure
-- main entry point -------------------------------------------------------------------------------------------------------
(ns oops.circus (:require [clojure.test :as test] [cljs.util :as cljs-util] [clj-logging-config.log4j :as log4j-config] [environ.core :refer [env]] [oops.circus.config :as config] [oops.arena]) (:import (org.apache.log4j Level))) (defn setup-logging! [] ...
dc2e0462a0ee8c9f7395d851ab681a2349f7f421085f80d181e299dee71f338d
pavankumarbn/DroneGUIROS
navdata_vision_of.lisp
; Auto-generated. Do not edit! (cl:in-package ardrone_autonomy-msg) ;//! \htmlinclude navdata_vision_of.msg.html (cl:defclass <navdata_vision_of> (roslisp-msg-protocol:ros-message) ((header :reader header :initarg :header :type std_msgs-msg:Header :initform (cl:make-instance 'std_msgs-msg:Header)...
null
https://raw.githubusercontent.com/pavankumarbn/DroneGUIROS/745320d73035bc50ac4fea2699e22586e10be800/devel/share/common-lisp/ros/ardrone_autonomy/msg/navdata_vision_of.lisp
lisp
Auto-generated. Do not edit! //! \htmlinclude navdata_vision_of.msg.html
(cl:in-package ardrone_autonomy-msg) (cl:defclass <navdata_vision_of> (roslisp-msg-protocol:ros-message) ((header :reader header :initarg :header :type std_msgs-msg:Header :initform (cl:make-instance 'std_msgs-msg:Header)) (drone_time :reader drone_time :initarg :drone_time :type c...
be882e861532391b7a481f02454cf9b0ed8e92bf8b36157d274ca469a1fc02f0
pykello/racket-graphviz
example.rkt
#lang racket (require pict) (require graphviz) (define examples `( graph 1 (["A" #:shape "diamond"] ["B" #:shape "box"] ["C" #:shape "circle"] [("A" "B") #:style "dashed" #:color "grey"] [("A" "C") #:color "black:invis:black"] [("A" "D") #:penwidth "5" #:arrowhead "none"]) graph 2 ...
null
https://raw.githubusercontent.com/pykello/racket-graphviz/9486fa524e22e2a04ae20a36b0c1c426716981b5/example.rkt
racket
#lang racket (require pict) (require graphviz) (define examples `( graph 1 (["A" #:shape "diamond"] ["B" #:shape "box"] ["C" #:shape "circle"] [("A" "B") #:style "dashed" #:color "grey"] [("A" "C") #:color "black:invis:black"] [("A" "D") #:penwidth "5" #:arrowhead "none"]) graph 2 ...
70694a5ab79e6e5ca10a1f52b706be4ab28b8c23c5aeaeea0b5bc70e22ea83c6
TheLortex/mirage-monorepo
ppxlib_print_diff.ml
open StdLabels let patdiff_cmd ~use_color ~extra_patdiff_args = let args = List.concat [ [ "-keep-whitespace" ]; [ "-location-style omake" ]; (if use_color then [] else [ "-ascii" ]); extra_patdiff_args; ] in String.concat ~sep:" " ("patdiff" :: args) let print ?d...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/print-diff/ppxlib_print_diff.ml
ocaml
patdiff produced no output, fallback to diff -u patdiff successfully found a difference
open StdLabels let patdiff_cmd ~use_color ~extra_patdiff_args = let args = List.concat [ [ "-keep-whitespace" ]; [ "-location-style omake" ]; (if use_color then [] else [ "-ascii" ]); extra_patdiff_args; ] in String.concat ~sep:" " ("patdiff" :: args) let print ?d...
5457090498ce21ad9492cd29ba51f77870c56fb06139971505ee4dbe37d96a89
alvatar/spheres
util-profile.scm
(import ../src/profile) (define (ring n) (if (and (integer? n) (exact? n) (>= n 2) (<= n 1000000)) (let ((m (quotient 1000000 n))) (joes-challenge n m)) (error "invalid arg to ring"))) (define (joes-challenge n m) (define (iota n) (iota-aux n '())) (define (iota-aux n lst) (...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/test/util-profile.scm
scheme
(import ../src/profile) (define (ring n) (if (and (integer? n) (exact? n) (>= n 2) (<= n 1000000)) (let ((m (quotient 1000000 n))) (joes-challenge n m)) (error "invalid arg to ring"))) (define (joes-challenge n m) (define (iota n) (iota-aux n '())) (define (iota-aux n lst) (...
ed775363ef41fe2f7b1f3864c78a1396753c32feb4edb6e6cdd95e2c0051952e
pepeiborra/term
Term.hs
# LANGUAGE TypeFamilies # module Data.Term ( -- * Type Families Term, Var, Id, -- * Terms TermF, TermFor, UnwrappedTermFor, foldTerm, foldTermM, mapTerm, evalTerm, -- * Subterms subterms, properSubterms, directSubterms, mapSubterms, mapMSubterms, collect, someSubterm, someSubterm', someSubtermDeep,...
null
https://raw.githubusercontent.com/pepeiborra/term/7644e0f8fbc81754fd5255602dd1f799adcd5938/Data/Term.hs
haskell
* Type Families * Terms * Subterms * Positions * Variables * Annotating terms * Ids * Matching & Unification (without occurs check) * Substitutions * Variables * Environment monad * Fresh monad
# LANGUAGE TypeFamilies # module Data.Term ( Term, Var, Id, TermF, TermFor, UnwrappedTermFor, foldTerm, foldTermM, mapTerm, evalTerm, subterms, properSubterms, directSubterms, mapSubterms, mapMSubterms, collect, someSubterm, someSubterm', someSubtermDeep, Position, positions, (!), (!*), (!?), ...
01134088b47bef528ffc150170e068140ed0472872fa8206284f2ffe644f9e28
postspectacular/devart-codefactory
tree.cljs
(ns codefactory.editor.tree (:require [codefactory.config :as config] [codefactory.webgl :as webgl] [thi.ng.cljs.async :as async] [thi.ng.cljs.log :refer [debug info warn]] [thi.ng.geom.core :as g] [thi.ng.geom.core.vector :as v :refer [vec2 vec3]] [thi.ng.geom.basicmesh :as bm] [thi.ng.geom.a...
null
https://raw.githubusercontent.com/postspectacular/devart-codefactory/9bccdc10e58fa4861a69767e9ae4be0bb8d7f650/src-cljs/codefactory/editor/tree.cljs
clojure
delete all sub-paths
(ns codefactory.editor.tree (:require [codefactory.config :as config] [codefactory.webgl :as webgl] [thi.ng.cljs.async :as async] [thi.ng.cljs.log :refer [debug info warn]] [thi.ng.geom.core :as g] [thi.ng.geom.core.vector :as v :refer [vec2 vec3]] [thi.ng.geom.basicmesh :as bm] [thi.ng.geom.a...
45ea6a960d09d3fe830bcb5f63fa08562e7057eb17d394c651a81e5f30b5ed86
yoshihiro503/ocamltter
conf.ml
(* Oauth_ex.Conf - [app] *) let oauth_signature_method = `Hmac_sha1 let oauth_callback = None (* Some None (* oob *) *) let host = "api.twitter.com" let request_path = "/oauth/request_token" let access_path = "/oauth/access_token" let authorize_url = "="
null
https://raw.githubusercontent.com/yoshihiro503/ocamltter/be7ac68c8076bc2ca8ccec216d6647c94ec9f814/twitter/conf.ml
ocaml
Oauth_ex.Conf - [app] Some None (* oob
let oauth_signature_method = `Hmac_sha1 let host = "api.twitter.com" let request_path = "/oauth/request_token" let access_path = "/oauth/access_token" let authorize_url = "="
74dd57f3e6b226c0343ab7b73da2c4988bb051ba4147cd34b6a3f3a18e0a04d3
lspitzner/brittany
Test526.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func = do abc <- expr abcccccccccccccccccc <- expr abcccccccccccccccccccccccccccccccccccccccccc <- expr abccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc <- expr
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test526.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func = do abc <- expr abcccccccccccccccccc <- expr abcccccccccccccccccccccccccccccccccccccccccc <- expr abccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc <- expr
9475335594b577406bed11093a8bd47ae613352d4eb003a7a10d73f305b2954f
hspec/quickcheck-io
IO.hs
# LANGUAGE CPP # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Test.QuickCheck.IO where import qualified Control.Exception as E import Test.HUnit.Lang import Test.QuickCheck.Property instance Testable Assertion where property = ...
null
https://raw.githubusercontent.com/hspec/quickcheck-io/7b8fb741efa277cfb772f72611e39b68b61aca15/src/Test/QuickCheck/IO.hs
haskell
# LANGUAGE TypeSynonymInstances #
# LANGUAGE CPP # # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Test.QuickCheck.IO where import qualified Control.Exception as E import Test.HUnit.Lang import Test.QuickCheck.Property instance Testable Assertion where property = propertyIO #if !MIN_VERSION_QuickCheck...
90a7694c3830eb416e33b2213946163ee2eb5683be783dc6e137cc069df15b90
trskop/command-wrapper
Parser.hs
-- | -- Module: $Header$ -- Description: Parser for environment variables. Copyright : ( c ) 2018 - 2020 License : BSD3 -- -- Maintainer: -- Stability: experimental Portability : GHC specific language extensions . -- Parser for environment variables . module CommandWrapper.Core.Environment.Pa...
null
https://raw.githubusercontent.com/trskop/command-wrapper/4f2e2e1f63a3296ccfad9f216d75a708969890ed/command-wrapper-core/src/CommandWrapper/Core/Environment/Parser.hs
haskell
| Module: $Header$ Description: Parser for environment variables. Maintainer: Stability: experimental ** Evaluate Environment Parser ** Parsing Primitives ** Parsing Primitives: Command Wrapper @ 'parseEnv' = 'parseEnv' 'defaultCommandWrapperPrefix' @ TODO: Get rid of hardcoded 'defaultCommandWr...
Copyright : ( c ) 2018 - 2020 License : BSD3 Portability : GHC specific language extensions . Parser for environment variables . module CommandWrapper.Core.Environment.Parser ( * Environment ParseEnv(..) , ParseEnvError(..) , parseEnv , parseEnvIO , parseEnvWithIO , ...
3ffe97c7fc5cc66afbf5eb93d1f0343043376def7333eea549c0ef35414a9975
thheller/shadow-experiments
env.cljs
(ns shadow.experiments.grove.examples.env (:require [cljs.env :as cljs-env] [shadow.experiments.grove.runtime :as gr] [shadow.experiments.grove.db :as db] [shadow.experiments.grove.examples.model :as m])) (defonce data-ref (-> {::m/example-tab :result ::m/example-result "No Result yet."} ...
null
https://raw.githubusercontent.com/thheller/shadow-experiments/f875c29bbda34d19ebdedf335b5a3ea40c7a4030/src/main/shadow/experiments/grove/examples/env.cljs
clojure
(ns shadow.experiments.grove.examples.env (:require [cljs.env :as cljs-env] [shadow.experiments.grove.runtime :as gr] [shadow.experiments.grove.db :as db] [shadow.experiments.grove.examples.model :as m])) (defonce data-ref (-> {::m/example-tab :result ::m/example-result "No Result yet."} ...
74d4878996dab5276f9916d010eca061d2f223b6a7fc0fc0d6816e51493e0505
Metaxal/quickscript-extra
pasterack.rkt
#lang racket/base (require browser/external quickscript) (script-help-string "Opens Pasterack in the browser.") Launch / in browser (define-script pasterack #:label "Pasterack (browser)" #:menu-path ("&Utils") #:help-string "Opens 'PasteRack' An evaluating pastebin for Racket." (λ (str) (send-...
null
https://raw.githubusercontent.com/Metaxal/quickscript-extra/526b2eccd9f73ea30bbc013741fdd77f4e2724cf/scripts/pasterack.rkt
racket
#lang racket/base (require browser/external quickscript) (script-help-string "Opens Pasterack in the browser.") Launch / in browser (define-script pasterack #:label "Pasterack (browser)" #:menu-path ("&Utils") #:help-string "Opens 'PasteRack' An evaluating pastebin for Racket." (λ (str) (send-...
44c06eed074378428dff6fdbfab294d165df5e9a0f26b7fc0ec90db1fcc9fa37
hanshuebner/clj-oauth2-token-generator
core.clj
(ns clj-oauth2-token-generator.core (:require [clojure.java.io :as io] [clojure.edn :as edn] [clojure.pprint :refer [pprint]] [clj-http.client :as http] [clj-oauth2.client :as oauth2] [ring.util.response :as response] [ring.middleware.keyword-par...
null
https://raw.githubusercontent.com/hanshuebner/clj-oauth2-token-generator/a746a02208a7801ae2d6537344ce743028ba43dc/src/clj_oauth2_token_generator/core.clj
clojure
These should be set in the oauth-params.edn file These don't need changes
(ns clj-oauth2-token-generator.core (:require [clojure.java.io :as io] [clojure.edn :as edn] [clojure.pprint :refer [pprint]] [clj-http.client :as http] [clj-oauth2.client :as oauth2] [ring.util.response :as response] [ring.middleware.keyword-par...
9ea7d80d07453c9a1706b1ca3fb37d017ab2f57cfe35cdd6297c5bd61b6a66c2
SKS-Keyserver/sks-keyserver
channel.mli
(***********************************************************************) (* channel.mli - A generic, object-based channel interface for binary *) (* input/output *) (* *) Copyright ( C ) 2002 ,...
null
https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/channel.mli
ocaml
********************************************************************* channel.mli - A generic, object-based channel interface for binary input/output ...
Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2011 , 2012 , 2013 and Contributors This file is part of SKS . SKS is free software ; you can Public License as published by the Free Software Foundation ; either version 2 of the License , or...
2eba92f2c7915feaf4b800bca9f1cc03607d80abd1c3610ec890250afaee8df3
mejgun/haskell-tdlib
SetChatPermissions.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SetChatPermissions where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ChatPermissions as ChatPermissions import qualified Utils as U -- | -- Changes the chat members permissions. Supported only for basic group...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/SetChatPermissions.hs
haskell
# LANGUAGE OverloadedStrings # | | Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right | New non-administrator members permissions in the chat | Chat identifier
module TD.Query.SetChatPermissions where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ChatPermissions as ChatPermissions import qualified Utils as U data SetChatPermissions = SetChatPermissions permissions :: Maybe ChatPermissions.ChatPermissions, chat_id :...
6eb09aba55c50c3e592568f92bc678eaff1492fe788245a0d153371cc810e180
tonyvanriet/clj-slack-client
reminders.clj
(ns clj-slack-client.reminders (:require [clj-slack-client.web :as web]) (:refer-clojure :exclude [list])) ; these methods only accessible by user tokens. Bots and ; workspaces are not allowed (defn add "Creates a reminder." ([options] (web/call-and-get-response "reminders.add" options)) ([token text tim...
null
https://raw.githubusercontent.com/tonyvanriet/clj-slack-client/6783f003ab93adae057890421622eb5e61ab033d/src/clj_slack_client/reminders.clj
clojure
these methods only accessible by user tokens. Bots and workspaces are not allowed
(ns clj-slack-client.reminders (:require [clj-slack-client.web :as web]) (:refer-clojure :exclude [list])) (defn add "Creates a reminder." ([options] (web/call-and-get-response "reminders.add" options)) ([token text time] (add {:token token :text text :time time})) ([token text time user] (add {:...
4afd2f8ab93898ac010d8095a43ef3486a3d2d6749debf4617c181fdab61fe59
Paczesiowa/virthualenv
Tar.hs
module Util.Tar ( unpack , stripComponents ) where import Codec.Archive.Tar.Entry import Codec.Archive.Tar (Entries(..), mapEntries) import Codec.Archive.Tar.Check (checkSecurity) import qualified Data.ByteString.Lazy as BS import System.FilePath ((</>), splitPath, joinPath, hasTrailin...
null
https://raw.githubusercontent.com/Paczesiowa/virthualenv/aab89dad9de7dac5268472eaa50c11eb40b02380/src/Util/Tar.hs
haskell
ignore other file types
module Util.Tar ( unpack , stripComponents ) where import Codec.Archive.Tar.Entry import Codec.Archive.Tar (Entries(..), mapEntries) import Codec.Archive.Tar.Check (checkSecurity) import qualified Data.ByteString.Lazy as BS import System.FilePath ((</>), splitPath, joinPath, hasTrailin...
9924ab566021736b3aade78b7fc56cdf8d796abc552ebff1b94ff990bf22c70d
bcc32/projecteuler-ocaml
sol_054.ml
open! Core open! Import let main () = Problem_054.data |> Parse.space_separated_grid ~conv:Poker.Card.of_string |> Array.map ~f:(fun line -> let make_hand cards = cards |> Array.to_list |> Poker.Hand.of_card_list_exn in let p1 = Array.subo line ~len:5 |> make_hand in let p2 = Array.subo line ~pos:5 |...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/sol/sol_054.ml
ocaml
open! Core open! Import let main () = Problem_054.data |> Parse.space_separated_grid ~conv:Poker.Card.of_string |> Array.map ~f:(fun line -> let make_hand cards = cards |> Array.to_list |> Poker.Hand.of_card_list_exn in let p1 = Array.subo line ~len:5 |> make_hand in let p2 = Array.subo line ~pos:5 |...
de7f74a0304642bcd770af3378c6153bee3d210b6fdc3fa43e857c9708c9f7cf
Helium4Haskell/Top
Qualification.hs
----------------------------------------------------------------------------- -- | License : GPL -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Qualification of types (for instance, predicates to deal with type classes). -- ------------------------------------------...
null
https://raw.githubusercontent.com/Helium4Haskell/Top/5e900184d6b2ab6d7ce69945287d782252e5ea68/src/Top/Types/Qualification.hs
haskell
--------------------------------------------------------------------------- | License : GPL Maintainer : Stability : provisional Portability : portable Qualification of types (for instance, predicates to deal with type classes). ------------------------------------------------------------...
module Top.Types.Qualification where import Top.Types.Primitive import Top.Types.Substitution import Data.List newtype Qualification q a = Qualification (q, a) split :: Qualification q a -> (q, a) split (Qualification t) = t infixr 2 .=>. (.=>.) :: q -> a -> Qualification q a (.=>.) = curry Qualification quali...
bd533f4ca1544cba7f9f4d3884212762a2679c6f7a620e79cd74e1fa26551258
ekmett/unboxed
Def.hs
{-# Language MagicHash #-} {-# Language UnboxedSums #-} # Language UnboxedTuples # {-# Language TypeFamilies #-} {-# Language PolyKinds #-} {-# Language BangPatterns #-} {-# Language DataKinds #-} {-# Language PatternSynonyms #-} {-# Language RankNTypes #-} # Language NoImplicitPrelude # {-# Language TypeApplications #...
null
https://raw.githubusercontent.com/ekmett/unboxed/e4c6ca80fb8946b1abfe595ba1c36587a33931db/def/Def.hs
haskell
# Language MagicHash # # Language UnboxedSums # # Language TypeFamilies # # Language PolyKinds # # Language BangPatterns # # Language DataKinds # # Language PatternSynonyms # # Language RankNTypes # # Language TypeApplications # # Language RebindableSyntax # # Language ImportQualifiedPost # # Language FlexibleContexts ...
# Language UnboxedTuples # # Language NoImplicitPrelude # module Def where import Unboxed.Internal.Class import Unboxed.Internal.List import Unboxed.Internal.Maybe import Unboxed.Internal.Rebind import GHC.Types import Prelude (otherwise, not, (++), ShowS, (.), showString, showParen,($), (&&), (||)) import Prelude qu...
41a165fa1ee06ce6f454dd6c4cf4f42496c4b55a5e36f9ace1933048ec0eda6f
travisbrady/flajolet
odd_sketch.ml
open Core.Std let printf = Printf.printf type t = { num_bits : int64; sketch : Bitarray.t } let create num_bits = { num_bits; sketch = Bitarray.create num_bits } let add t item = let h = Int64.abs (Int64.rem (Farmhash.hash64 item) t.num_bits) in printf "h = %Ld\n%!" h; Bit...
null
https://raw.githubusercontent.com/travisbrady/flajolet/a6c530bf1dd73b9fa8b7185d84a5e20458a3d8af/lib/odd_sketch.ml
ocaml
open Core.Std let printf = Printf.printf type t = { num_bits : int64; sketch : Bitarray.t } let create num_bits = { num_bits; sketch = Bitarray.create num_bits } let add t item = let h = Int64.abs (Int64.rem (Farmhash.hash64 item) t.num_bits) in printf "h = %Ld\n%!" h; Bit...
db48c23c26dc3fa8b7f273d3fab0b128125fc0bd3533be434ef97d375f453905
manuel-serrano/bigloo
etags.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / bdl / src / etags.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/bdl/src/etags.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The grammar parsing the etags file entries. */ *===========================...
* serrano / prgm / project / bigloo / bdl / src / etags.scm * / * Author : * / * Creation : Tue Jun 8 10:23:12 1999 * / * Last change : Fri Dec 9 11:13:58 2011 ( serrano ) * / * Co...
12572fb557190ce67531e085a3daa2729e57ddceaf0a0e74290e9e3b9485295a
chetmurthy/typpx
debug.ml
let debug = match Sys.getenv "TYPPX_DEBUG" with | _ -> true | exception Not_found -> false
null
https://raw.githubusercontent.com/chetmurthy/typpx/a740750b75739e686da49b46ded7db7d6874e108/src/debug.ml
ocaml
let debug = match Sys.getenv "TYPPX_DEBUG" with | _ -> true | exception Not_found -> false
31d908956bcde3af77b226247ccc243b58a4d2bc48ccbdf9f8a6dfa9c154cdca
kqr/gists
markov_faster.hs
module Main where import Prelude hiding (map) import Data.List (foldl') import Data.Map (Map, map, fromDistinctAscList, toAscList, insertWith, empty) import Data.Tuple (swap) import Control.Applicative ((<$>)) -- tiny, general utility functions that almost should -- have been in the libraries to begin with. enumerate ...
null
https://raw.githubusercontent.com/kqr/gists/b0b5ab2a6af0f939a9e24165959bb362281ce897/algorithms/markovs/markov_faster.hs
haskell
tiny, general utility functions that almost should have been in the libraries to begin with. Read the corpus file and chunk it into a Corpus So far, only chunks up a Corpus, doesn't generate anything.
module Main where import Prelude hiding (map) import Data.List (foldl') import Data.Map (Map, map, fromDistinctAscList, toAscList, insertWith, empty) import Data.Tuple (swap) import Control.Applicative ((<$>)) enumerate :: [a] -> [(Int, a)] enumerate = zip [0..] unwind :: (a, [b]) -> [(a, b)] unwind (a, b) = ((,) a) <...
ec031ee6d86cc725bf79fd68b8ea02be3650ae00894c9a72f9f1758e2dafbd8f
janestreet/hardcaml_circuits
synth.ml
open Core open Hardcaml let create_circuit (type params) scope (module Component : Component_intf.S with type Params.t = params) (params : params) = let module I_data = struct module Pre = struct include Component.Input let t = Component.input_port_names_and_width params ...
null
https://raw.githubusercontent.com/janestreet/hardcaml_circuits/4b834cfb0c42e9440ba7891b1cc2d45b0669a8dc/synthesis_reports/src/synth.ml
ocaml
open Core open Hardcaml let create_circuit (type params) scope (module Component : Component_intf.S with type Params.t = params) (params : params) = let module I_data = struct module Pre = struct include Component.Input let t = Component.input_port_names_and_width params ...
bf70bac0b5133fe852c75e87068b03431c77209aa19bc14bbeaace0687f085ee
exercism/common-lisp
rail-fence-cipher.lisp
(defpackage :rail-fence-cipher (:use :cl) (:export :encode :decode)) (in-package :rail-fence-cipher) (defun encode (msg rails)) (defun decode (msg rails))
null
https://raw.githubusercontent.com/exercism/common-lisp/57bb317e68ca75f41666ce3c62066a9c13e0314a/exercises/practice/rail-fence-cipher/rail-fence-cipher.lisp
lisp
(defpackage :rail-fence-cipher (:use :cl) (:export :encode :decode)) (in-package :rail-fence-cipher) (defun encode (msg rails)) (defun decode (msg rails))
5c15f64dd59ce1c1f5831164d14b68adf5a62a3efc6d5d2c3ce54a4b1baf59cb
jkrukoff/llists
test_lfiles.erl
%%%------------------------------------------------------------------- %%% @doc %%% Tests for src/lfiles.erl %%% @end %%%------------------------------------------------------------------- -module(test_lfiles). -include_lib("eunit/include/eunit.hrl"). %%%===============================================================...
null
https://raw.githubusercontent.com/jkrukoff/llists/ae447e28ea2bb3ab0245f11302189be6bee76462/test/test_lfiles.erl
erlang
------------------------------------------------------------------- @doc Tests for src/lfiles.erl @end ------------------------------------------------------------------- =================================================================== Tests =================================================================== ===...
-module(test_lfiles). -include_lib("eunit/include/eunit.hrl"). read_test() -> {ok, File} = file:open("test/data/alpha.txt", [read]), ?assertEqual( ["A", "\n", "B", "\n", "C", "\n"], llists:to_list( lfiles:read(File, 1) ) ). get_chars_test() -> {ok, File} = file:op...
6a6d8ae94722ca7ef8cc8169837a6744b86fb21117e2327c1e69bee50d052c97
shuieryin/wechat_mud
register_test.erl
%%%------------------------------------------------------------------- @author shuieryin ( C ) 2015 , Shuieryin %%% @doc %%% %%% @end Created : 29 . Nov 2015 8:09 PM %%%------------------------------------------------------------------- -module(register_test). -author("shuieryin"). -import(wechat_mud_SUITE, [mo...
null
https://raw.githubusercontent.com/shuieryin/wechat_mud/b2a9251a9b208fee5cd8c4213759750b95c8b8aa/test/register_test.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API =================================================================== API =================================================================== =========================...
@author shuieryin ( C ) 2015 , Shuieryin Created : 29 . Nov 2015 8:09 PM -module(register_test). -author("shuieryin"). -import(wechat_mud_SUITE, [mod_input/2, mod_input/3]). -export([ ]). -export([ test/1, test_id/1 ]). -include_lib("wechat_mud_test.hrl"). -include_lib("wechat_mud/src/data_type/playe...
4df1da2b9174c1a37d9e1f5fcef0345a64a5a7a40355cdbd74b84f49fff77f37
scymtym/clim.flamegraph
presentations.lisp
;;;; presentations.lisp --- Presentation types provided by the view.timeline module. ;;;; Copyright ( C ) 2019 , 2020 Jan Moringen ;;;; Author : < > (cl:in-package #:clim.flamegraph.view.timeline) ;;; `thread' presentation type ;;; ;;; Represents a thread for which samples have been collected. (eval-when (:co...
null
https://raw.githubusercontent.com/scymtym/clim.flamegraph/03b5e4f08b53af86a98afa975a8e7a29d0ddd3a7/src/view/timeline/presentations.lisp
lisp
presentations.lisp --- Presentation types provided by the view.timeline module. `thread' presentation type Represents a thread for which samples have been collected. `trace' presentation type Represents a "call-stack snapshot" collected in a single thread. *start-time* *start-time* (maxf time-max end) Even...
Copyright ( C ) 2019 , 2020 Jan Moringen Author : < > (cl:in-package #:clim.flamegraph.view.timeline) (eval-when (:compile-toplevel :load-toplevel :execute) (clim:define-presentation-type thread (&optional (selected? t)) :inherit-from '(t))) #+later (flet ((call-with-thread-display (thunk stream thread...
4cd70488243ee5a7f45f8ff6d1cf3b4e5f1804bc1d13a7c8279007203308a976
SamB/coq
genarg.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/interp/genarg.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Basic types Specific types Dyna...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ open Pp open Util ...
dd8e26c37297f49e90b4ec5dd9e946263fad834e5b1d307153a244b5a11b606e
roburio/ocaml-openpgp
literal_data_packet.mli
* Literal Data Packet ( Tag 11 ) open Rresult type data_format = | Literal_binary | Literal_text_with_crlf (** - Text data is stored with <CR><LF> text endings (i.e., network- normal line endings). These should be converted to native line endings by the receiving software.*) val pp_data_format...
null
https://raw.githubusercontent.com/roburio/ocaml-openpgp/55459ad98a69f80789c79219c6d3be19ef6ef521/lib/literal_data_packet.mli
ocaml
* - Text data is stored with <CR><LF> text endings (i.e., network- normal line endings). These should be converted to native line endings by the receiving software. * text or binary peer's suggested filename* * The unspecified time field. * doesn't store the actual packet data: * accumulates data as ...
* Literal Data Packet ( Tag 11 ) open Rresult type data_format = | Literal_binary | Literal_text_with_crlf val pp_data_format : Format.formatter -> data_format -> unit type streaming type in_memory type 'kind parser type 'kind t = private | Streaming_t : final_state -> streaming t | In_memory_t : fina...
73e0b16db49bbe248440ed5f3aa39f0e38bb6784a64e264cd92f35f4e145a44d
Apress/common-lisp-recipes
deliver.lisp
(load (compile-file "code.lisp")) (lw:deliver nil "my_lib" 0 :dll-exports '("toLispTime"))
null
https://raw.githubusercontent.com/Apress/common-lisp-recipes/211a8b6eabc48ac906010e8c5a185f03504b3867/code/chapter-22/deliver.lisp
lisp
(load (compile-file "code.lisp")) (lw:deliver nil "my_lib" 0 :dll-exports '("toLispTime"))
d012275517cfd56ab1e5fa360536a4db2fb824d7dbfdde79837baf237bccf2f0
IBM-Watson/kale
main.clj
;; ( C ) Copyright IBM Corp. 2016 All Rights Reserved . ;; (ns kale.main (:require [kale.aliases :refer [commands] :as aliases] [kale.getter :refer [user-selection]] [kale.common :refer [fail try-function get-command-msg set-trace set-language]] ...
null
https://raw.githubusercontent.com/IBM-Watson/kale/f1c5e312e5db0e3fc01c47dfb965f175b5b0a5b6/src/kale/main.clj
clojure
( C ) Copyright IBM Corp. 2016 All Rights Reserved . (ns kale.main (:require [kale.aliases :refer [commands] :as aliases] [kale.getter :refer [user-selection]] [kale.common :refer [fail try-function get-command-msg set-trace set-language]] [kale....
979bd6b33ea2f985eaf219e2238cee626c1a37cb83ed434a85f275e04292b6cf
mars0i/free
random.cljc
This software is copyright 2016 by , and is distributed under the Gnu General Public License version 3.0 as specified in the ;; the file LICENSE. (ns free.random clj or cljs , depending (def random-seed (ran/make-long-seed)) Do n't ever use a print statement in Clojurescript without the following : #?(:clj...
null
https://raw.githubusercontent.com/mars0i/free/fe0fdc1c0bf1866cb07b4558a009a829f8d6ba23/src/cljc/general/free/random.cljc
clojure
the file LICENSE. Incanter versions: (:require [incanter.stats :as istat])) (def pdf-normal istat/pdf-normal) (def sample-normal istat/sample-normal) (def sample-uniform istat/sample-uniform)
This software is copyright 2016 by , and is distributed under the Gnu General Public License version 3.0 as specified in the (ns free.random clj or cljs , depending (def random-seed (ran/make-long-seed)) Do n't ever use a print statement in Clojurescript without the following : #?(:cljs (enable-console-pri...
5bd1e9c777c52ea5388c222d0053b3ac272fed00c092b73d44c17f9ffef3bc7d
janestreet/memtrace_viewer_with_deps
container_intf.ml
(** This module extends {!Base.Container}. *) open! Import open Perms.Export open Base.Container module Continue_or_stop = Continue_or_stop module type S1_permissions = sig type ('a, -'permissions) t (** Checks whether the provided element is there, using polymorphic compare if [equal] is not provided. *) ...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/core_kernel/src/container_intf.ml
ocaml
* This module extends {!Base.Container}. * Checks whether the provided element is there, using polymorphic compare if [equal] is not provided. * [iter t ~f] calls [f] on each element of [t]. * [fold t ~init ~f] returns [f (... f (f (f init e1) e2) e3 ...) en], where [e1..en] are the elements of [t] * [...
open! Import open Perms.Export open Base.Container module Continue_or_stop = Continue_or_stop module type S1_permissions = sig type ('a, -'permissions) t val mem : ('a, [> read ]) t -> 'a -> equal:('a -> 'a -> bool) -> bool val length : (_, [> read ]) t -> int val is_empty : (_, [> read ]) t -> bool val ...
e7dd4b6718d4f032416980fd047bfb12a2bdbf1f2b15f323f38caa6fc5ea7ca3
hidaris/thinking-dumps
4-8.rkt
;; new-ref, due to append function ;; deref, due to list-ref ;; setref!, due to setref-inner
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-8.rkt
racket
new-ref, due to append function deref, due to list-ref setref!, due to setref-inner
f8f46d6ba2aa09c8aa3dbd4e00bcd0d24b5f906caad2f9a71a4c8a581cb0dc47
walmartlabs/lacinia
lists_tests.clj
Copyright ( c ) 2018 - present Walmart , Inc. ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/walmartlabs/lacinia/88bf46f197bfed645d7767fcfe2bfa39e8b00b27/test/com/walmartlabs/lacinia/lists_tests.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2018 - present Walmart , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns com.walmartlabs.lacinia.lists-tests "Tests related to list types." (:require [clojure.test :refer [deftest is]] [c...
45190929ca9eab424039fa59193f5a3a097cb2274e8d611794e37dc4b096783a
coq/coq
genarg.mli
(************************************************************************) (* * 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/110921a449fcb830ec2a1cd07e3acc32319feae6/lib/genarg.mli
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...
bc1f00c39515f700b2a8ce3e765eef2f4221542c3a19c0f5ce868e84bda23c54
bazurbat/chicken-scheme
compiler-syntax.scm
;;;; compiler-syntax.scm - compiler syntax used internally ; Copyright ( c ) 2009 - 2016 , The CHICKEN Team ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ; conditions are met: ; ; Redistributions of source code m...
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/compiler-syntax.scm
scheme
compiler-syntax.scm - compiler syntax used internally All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditio...
Copyright ( c ) 2009 - 2016 , The CHICKEN Team THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE...
67ad4f187a2c6c3e21bf23813454d2bbd766b1b3cfacb7e4cd58afc4a87a84a3
Clojure2D/clojure2d-examples
ray.clj
(ns rt4.the-next-week.ch04c.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction ^double time] RayProto (at [_ t] (v/ad...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch04c/ray.clj
clojure
(ns rt4.the-next-week.ch04c.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction ^double time] RayProto (at [_ t] (v/ad...
8fe893441ab876833b16898361ad30321fcd473ecffb4f75cc918996dbb6bb6e
jyh/metaprl
itt_atom_bool.mli
* Theorems about atoms . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for OCaml and other languages . * * See the file doc / htmlman / defa...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/core/itt_atom_bool.mli
ocaml
* Theorems about atoms . * * ---------------------------------------------------------------- * * This file is part of MetaPRL , a modular , higher order * logical framework that provides a logical programming * environment for OCaml and other languages . * * See the file doc / htmlman / defa...
ba022ee1bf788d6884b10dcfc6fb88914f424ed82b88944f375dbcb9e1dc06f4
input-output-hk/cardano-sl
Timer.hs
# LANGUAGE RecordWildCards # | Restartable , STM - based dynamic timer build on top of ` Pos . Util . Timer . Timer ` . module Pos.Util.Timer ( Timer , newTimer , waitTimer , startTimer ) where import Control.Concurrent.STM (readTVar, registerDelay, retry) import Data.Time.Units (Time...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/util/src/Pos/Util/Timer.hs
haskell
| Construct new `Timer`. time `startTimer` was called. | Set the time duration of the underlying timer and start the underlying timer.
# LANGUAGE RecordWildCards # | Restartable , STM - based dynamic timer build on top of ` Pos . Util . Timer . Timer ` . module Pos.Util.Timer ( Timer , newTimer , waitTimer , startTimer ) where import Control.Concurrent.STM (readTVar, registerDelay, retry) import Data.Time.Units (Time...
20430597a348e3bf1eb7c916e70c64c53a5d7e2ac5ae442b7c51a067378a9c31
0xYUANTI/eon
test_rec.erl
-module(test_rec). -behaviour(eon_type_rec). -include_lib("stdlib2/include/prelude.hrl"). -export([name/0, parameters/0, decl/2]). name() -> some_obj. parameters() -> [foo]. decl(_Obj, Params) -> Min = ?unlift(eon:get(Params, foo)), [ foo, {test_prim, [min,Min, max,Min]} , bar, {test_list, [min,0, max,1]...
null
https://raw.githubusercontent.com/0xYUANTI/eon/528a23513921e2be99486210dda60e8c8e069c2d/test/test_rec.erl
erlang
-module(test_rec). -behaviour(eon_type_rec). -include_lib("stdlib2/include/prelude.hrl"). -export([name/0, parameters/0, decl/2]). name() -> some_obj. parameters() -> [foo]. decl(_Obj, Params) -> Min = ?unlift(eon:get(Params, foo)), [ foo, {test_prim, [min,Min, max,Min]} , bar, {test_list, [min,0, max,1]...
29167f3a2c188272e573b4e0995411d5333fb1479cc40c3acf3bc4c7a507c38f
VictorNicollet/Ohm
action_Endpoint.ml
Ohm is © 2012 open Util open BatPervasives open Action_Common module Server = Action_Server module Args = Action_Args type ('server,'args) endpoint = 'server -> 'args -> string let url endpoint s a = endpoint s a let endpoint_of_controller (server,prefix,parse) = let prefix = path_clean (BatString.lowerc...
null
https://raw.githubusercontent.com/VictorNicollet/Ohm/ca90c162f6c49927c893114491f29d44aaf71feb/src/action_Endpoint.ml
ocaml
Ohm is © 2012 open Util open BatPervasives open Action_Common module Server = Action_Server module Args = Action_Args type ('server,'args) endpoint = 'server -> 'args -> string let url endpoint s a = endpoint s a let endpoint_of_controller (server,prefix,parse) = let prefix = path_clean (BatString.lowerc...
e9e0f171d7e32512d88e1af4280e0cb3aa0888a3b70ceb73023be1856c875d08
AccelerationNet/arnesi
csv.lisp
;; -*- lisp -*- (in-package :it.bese.arnesi) * Reading and Writing files in Comma - Seperated - Values format ;;;; Generating CSV files from lisp data (defun princ-csv (items csv-stream &key (quote #\") (separator #\,) (ignore-nulls t) ...
null
https://raw.githubusercontent.com/AccelerationNet/arnesi/1e7dc4cb2cad8599113c7492c78f4925e839522e/src/csv.lisp
lisp
-*- lisp -*- Generating CSV files from lisp data Reading in CSV files all done All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyrig...
(in-package :it.bese.arnesi) * Reading and Writing files in Comma - Seperated - Values format (defun princ-csv (items csv-stream &key (quote #\") (separator #\,) (ignore-nulls t) (newline +CR-LF+) (princ ...
b2380fa7a9eb6afab6576b6ba85cc8b95d806099e78c039f69855e7d41be7575
ocaml/ocaml
afl-showmap-test.ml
(* TEST (* Just a test-driver *) * native-compiler ** script script = "sh ${test_source_directory}/has-afl-showmap.sh" readonly_files = "harness.ml test.ml" *** setup-ocamlopt.byte-build-env **** ocamlopt.byte module = "test.ml" flags = "-afl-instrument" ***** ocamlopt.byt...
null
https://raw.githubusercontent.com/ocaml/ocaml/58f12bcd918446c3ebf397669bda0c3b09205c76/testsuite/tests/afl-instrumentation/afl-showmap-test.ml
ocaml
TEST (* Just a test-driver
* native-compiler ** script script = "sh ${test_source_directory}/has-afl-showmap.sh" readonly_files = "harness.ml test.ml" *** setup-ocamlopt.byte-build-env **** ocamlopt.byte module = "test.ml" flags = "-afl-instrument" ***** ocamlopt.byte module = "" ...
5f712603a78f828c75f81e87363faf9f7e5dbe7bc9634caa646e729578813792
mbj/stratosphere
CaptchaConfigProperty.hs
module Stratosphere.WAFv2.RuleGroup.CaptchaConfigProperty ( module Exports, CaptchaConfigProperty(..), mkCaptchaConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.Immunity...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/RuleGroup/CaptchaConfigProperty.hs
haskell
# SOURCE #
module Stratosphere.WAFv2.RuleGroup.CaptchaConfigProperty ( module Exports, CaptchaConfigProperty(..), mkCaptchaConfigProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data CaptchaConfigPr...
e42d247dd531fb0c57303c43403051ddf3f3a5e83deae855e5a025ba9580a6e9
kmi/irs
new.lisp
Mode : Lisp ; Package : File created in WebOnto (in-package "OCML") (in-ontology monitoring-events) (def-class event ( ) ((has-process-instance-id :type string) (has-timestamp :type list-date-and-time) (generated-by :type string)) )
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/monitoring-events/new.lisp
lisp
Package :
File created in WebOnto (in-package "OCML") (in-ontology monitoring-events) (def-class event ( ) ((has-process-instance-id :type string) (has-timestamp :type list-date-and-time) (generated-by :type string)) )
161df0c5161971befeaf9e0dc8b0334e4eb804ee6e4a2755cac8902d392f14a0
GaloisInc/daedalus
Types.hs
# LANGUAGE LambdaCase # module Types where -- system: import System.Exit ---- types, constants -------------------------------------------------------- data Tool = T { t_name :: String , t_cmd_exec :: FilePath , t_cmd_mkArgs :: FilePath -> [String] , t_timeoutInSecs :: Int ...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/016da6b2de23747e48642f6ece79c07b436ef5d1/formats/pdf/old/driver/test/src/run-testset/Types.hs
haskell
system: -- types, constants -------------------------------------------------------- get stdout get stderr get metadata the result of tool (as string) FIXME: this may add unnecessary 'needs' FIXME: name things as an 'isvalid' (not 'result') projection -- Compared ... ---------------------------------------------...
# LANGUAGE LambdaCase # module Types where import System.Exit data Tool = T { t_name :: String , t_cmd_exec :: FilePath , t_cmd_mkArgs :: FilePath -> [String] , t_timeoutInSecs :: Int , t_cmp :: FilePath -> FilePath -> IO Compared } and abstract over ...
a633d0faa4dec3346ca85bfecb8eadd4ff141f9db1052a52d0de553cac37eb13
spechub/Hets
HTkProofDetails.hs
| Module : ./GUI / HTkProofDetails.hs Description : GUI for showing and saving proof details . Copyright : ( c ) 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX Additional window used by for displa...
null
https://raw.githubusercontent.com/spechub/Hets/bbaa9dd2d2e5eb1f2fd3ec6c799a6dde7dee6da2/GUI/HTkProofDetails.hs
haskell
* record structures and basic functions for handling | Record structure containing proof details for a single proof. ^ standard proof details ^ more details for tactic script ^ more details for proof tree | Current state of a text tag providing additional information. The text can be folded or unfolded. ...
| Module : ./GUI / HTkProofDetails.hs Description : GUI for showing and saving proof details . Copyright : ( c ) 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX Additional window used by for displa...
e3e7768c5a336b14c1f9318daade4b954e164bab23f32b236e165657e7944c24
phimuemue/lambdainterpreter_haskell
PrettyPrinter.hs
module PrettyPrinter where import Expression import Data.Maybe import System.Console.ANSI setSGRAbbrev :: IO () setSGRAbbrev = setSGR [SetColor Foreground Vivid Green] setSGRFunCall :: IO () setSGRFunCall = setSGR [SetColor Foreground Vivid Red] setSGRFunArg :: IO () setSGRFunArg = setSGR [SetColor Foreground Vivid ...
null
https://raw.githubusercontent.com/phimuemue/lambdainterpreter_haskell/1b56487f0bce422cc2a2e448dfef800a4e0a08a4/PrettyPrinter.hs
haskell
module PrettyPrinter where import Expression import Data.Maybe import System.Console.ANSI setSGRAbbrev :: IO () setSGRAbbrev = setSGR [SetColor Foreground Vivid Green] setSGRFunCall :: IO () setSGRFunCall = setSGR [SetColor Foreground Vivid Red] setSGRFunArg :: IO () setSGRFunArg = setSGR [SetColor Foreground Vivid ...
1d4558b01669667defb75a41271710c1f56dfb0132557fd02136700385bdf87c
haslab/HAAP
BotNuno.hs
# LANGUAGE PatternGuards # module BotNuno where import LI11718 import OracleT4 import OracleT3 import OracleT2 import OracleT1 --import Test.QuickCheck.Gen import Data.List import Data.Maybe --import Safe --import Debug.Trace bot :: Double -> Jogo -> Int -> Acao bot t e i | p' == Nothing = Acao False True (trg>0) (...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g186/src/BotNuno.hs
haskell
import Test.QuickCheck.Gen import Safe import Debug.Trace
# LANGUAGE PatternGuards # module BotNuno where import LI11718 import OracleT4 import OracleT3 import OracleT2 import OracleT1 import Data.List import Data.Maybe bot :: Double -> Jogo -> Int -> Acao bot t e i | p' == Nothing = Acao False True (trg>0) (trg<0) nit | otherwise = Acao (v<vt) (v-vt>0.2) (trg>0...
2b54bd89b866a7dc3e662f349cf6b7291fc1094692325c2c0d55224eacb555eb
brendanhay/gogol
List.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-shopping-content/gen/Gogol/ShoppingContent/Content/Repricingrules/List.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Resource ** Constructing a Request | A resource alias for @content.repricingrules.list@ method which the 'ContentRepricingrulesList' request conforms to. /See:/ 'newContentRepricingrulesList' smart constructor. | V1 error...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
3dd03da59f203ac492ef33c3ba17e74b5a4a64938ac29dc54b9388c46dbd4aeb
potocpav/vSLAM
InternalMath.hs
| Module : InternalMath License : WTFPL Maintainer : < > This module contains some useful functions used here and there in this package . It also exports a convenient debugging routine . Module : InternalMath License : WTFPL Maintainer : Pavel Potocek <> This module contains some...
null
https://raw.githubusercontent.com/potocpav/vSLAM/183415d0cbd4d938d17494a15cdffa24c29142ea/InternalMath.hs
haskell
for debugging | Show a value into the STDOUT via the 'seq' function. some type safety would be lost. Instead, it is used to describe the feature matching regions. | Un-normalized 3D-vec parametrization to an azimuth-elevation pair | Construct a rotation matrix along the y axis | Inverse depth to euclidean parame...
| Module : InternalMath License : WTFPL Maintainer : < > This module contains some useful functions used here and there in this package . It also exports a convenient debugging routine . Module : InternalMath License : WTFPL Maintainer : Pavel Potocek <> This module contains some...
e199e439618080b56c79118588ca6cae9d5c5d1efe266a35ba75fd79d3537aea
imeckler/stationary
attribute.ml
open Core.Std type t = string * string [@@deriving sexp] let to_string (k, v) = sprintf "%s=\"%s\"" k (String.escaped v) let create k v = (k, v) let class_ c = create "class" c let href url = create "href" url let src url = create "src" url
null
https://raw.githubusercontent.com/imeckler/stationary/d2d6c1c1ec7d6bea63736226a7e511c0e426c5e5/src/attribute.ml
ocaml
open Core.Std type t = string * string [@@deriving sexp] let to_string (k, v) = sprintf "%s=\"%s\"" k (String.escaped v) let create k v = (k, v) let class_ c = create "class" c let href url = create "href" url let src url = create "src" url
72d2bd5de7eb73362af6c46479c2ff1f127e67fd707212ae6e8987cc296ddaeb
austinhaas/goalie
project.clj
(defproject com.pettomato/goalie "0.1.0" :description "A library for unobtrusively instrumenting core.logic goals." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/core.logic "0.8.3"]] :source-paths ["src...
null
https://raw.githubusercontent.com/austinhaas/goalie/6166dd05c27f5abdf5c760687d6efc110846abf1/project.clj
clojure
(defproject com.pettomato/goalie "0.1.0" :description "A library for unobtrusively instrumenting core.logic goals." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/core.logic "0.8.3"]] :source-paths ["src...
2260bee33f5fd283a6d954eb315c6fe2ca848f2f01a874b8e53fe62785c40450
esl/MongooseIM
graphql_muc_SUITE.erl
-module(graphql_muc_SUITE). -compile([export_all, nowarn_export_all]). -import(common_helper, [unprep/1]). -import(distributed_helper, [mim/0, require_rpc_nodes/1, rpc/4, subhost_pattern/1]). -import(graphql_helper, [execute_command/4, execute_user_command/5, get_ok_value/2, get_err_msg/1, ge...
null
https://raw.githubusercontent.com/esl/MongooseIM/997ce8cc01dacf8bf1f1f4e3a984ee10f0ce5dd6/big_tests/tests/graphql_muc_SUITE.erl
erlang
Should be sorted Default fields Create instant room Delete room make it start with a letter Send message Send message Grant member affiliation Grant admin affiliation Revoke affiliation Ban user Change from participant to visitor Change from visitor to participant Change from participant to moderator Lis...
-module(graphql_muc_SUITE). -compile([export_all, nowarn_export_all]). -import(common_helper, [unprep/1]). -import(distributed_helper, [mim/0, require_rpc_nodes/1, rpc/4, subhost_pattern/1]). -import(graphql_helper, [execute_command/4, execute_user_command/5, get_ok_value/2, get_err_msg/1, ge...
b393944b0afc433167e66a3b2bf5639e0460492fd4c609b012c7b676e63ab7cb
rajasegar/cl-djula-tailwind
main.lisp
(defpackage cl-djula-tailwind (:use :cl :cl-djula-tailwind.layout :cl-djula-tailwind.spacing :cl-djula-tailwind.typography :cl-djula-tailwind.backgrounds :cl-djula-tailwind.sizing :cl-djula-tailwind.borders :cl-djula-tailwind.effects :cl-djula-tailwind.flexbox-grid :cl-djula-tailwind.a...
null
https://raw.githubusercontent.com/rajasegar/cl-djula-tailwind/26cf98609b2fb42660a8d72ade2f1135d41dfec1/src/main.lisp
lisp
Then process each template and collect the markup in a single list (print tmplt) (print (join-string-list (get-markup template-content))) finally push the markup of the root-template (current route template) (defparameter *template-directory* (asdf:system-relative-pathname "cl-djula-tailwind" "tests/templates/")...
(defpackage cl-djula-tailwind (:use :cl :cl-djula-tailwind.layout :cl-djula-tailwind.spacing :cl-djula-tailwind.typography :cl-djula-tailwind.backgrounds :cl-djula-tailwind.sizing :cl-djula-tailwind.borders :cl-djula-tailwind.effects :cl-djula-tailwind.flexbox-grid :cl-djula-tailwind.a...
3156eaed8100ea924267bd5846c088ff356826d3f1a1f161b812bcaa6f5edc9e
2600hz/kazoo
kazoo_tts.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_speech/src/kazoo_tts.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kazoo_tts). -export([create/1 ,create/2 ,create/3 ,create/4 ,create/5 ...
12320eb6b9cee003709ed596c66ba1144a903f27d1c6daf458332f925fdee19f
ucsd-progsys/nate
odoc_search.mli
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamldoc/odoc_search.mli
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_search.mli , v 1.4 2003/11/...
ec1e1c3d3398308f794c7baeb1fa1e86014d7cd2f965db463fbf3f6762dabd49
gedge-platform/gedge-platform
rabbit_event.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_event). -include("rabbit.hrl"). ...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit_common/src/rabbit_event.erl
erlang
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- The idea is, for each stat-emitting object: On startup: init_stats_timer(State) ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_event). -include("rabbit.hrl"). -expor...
2c0d37b7b576bcba5e5d87e8f94cce84faad3ac8eb0bec9c0caacbfeddee7fa7
mtesseract/nakadi-client
Test.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} module Network.Nakadi.EventTypes.ShiftedCursors.Test where import ClassyPrelude import Data.UUID () import Network.Nakadi import Network.Nakadi.Te...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/tests/Network/Nakadi/EventTypes/ShiftedCursors/Test.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables #
# LANGUAGE DuplicateRecordFields # module Network.Nakadi.EventTypes.ShiftedCursors.Test where import ClassyPrelude import Data.UUID () import Network.Nakadi import Network.Nakadi.Tests.Common import System.Random import Test.Tasty import ...
fa9ae9811ce98988ae91a967b43eafab83d69459474dec72e9e1288da4dd42ce
witheve/eve-experiments
avl.clj
(ns server.avl "An implementation of persistent sorted maps and sets based on AVL trees which can be used as drop-in replacements for Clojure's built-in sorted maps and sets based on red-black trees. Apart from the standard sorted collection API, the provided map and set types support the transients API and ...
null
https://raw.githubusercontent.com/witheve/eve-experiments/8a1cdb353b3e728bc768b315e5b9a9f9dc785ae1/server/src/server/avl.clj
clojure
a la clojure.lang.APersistentSet right-heavy left-heavy left-heavy right-heavy right-heavy left-heavy left-heavy right-heavy start-test
(ns server.avl "An implementation of persistent sorted maps and sets based on AVL trees which can be used as drop-in replacements for Clojure's built-in sorted maps and sets based on red-black trees. Apart from the standard sorted collection API, the provided map and set types support the transients API and ...
1c9caef94632555fe2f76ff6c13562f9e97376d096fb83a82fffb0ce1ece579d
RefactoringTools/HaRe
HsModuleMaps.hs
module HsModuleMaps where import HsModule import MUtils import HsIdent(seqHsIdent) instance Functor (HsImportDeclI m) where fmap f (HsImportDecl s m q as optspec) = HsImportDecl s m q as (fmap (apSnd (map (fmap f))) optspec) instance Functor (HsExportSpecI m) where fmap f e = case e of EntE espec ->...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/AST/HsModuleMaps.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
module HsModuleMaps where import HsModule import MUtils import HsIdent(seqHsIdent) instance Functor (HsImportDeclI m) where fmap f (HsImportDecl s m q as optspec) = HsImportDecl s m q as (fmap (apSnd (map (fmap f))) optspec) instance Functor (HsExportSpecI m) where fmap f e = case e of EntE espec ->...
143eb55ee73edb710a0ce5e06df5bfa7037709e86ccccbd9842488520ca66894
input-output-hk/cardano-wallet-legacy
Response.hs
{-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE LambdaCase #-} # LANGUAGE OverloadedLists # module Cardano.Wallet.API.Response ( Metadata (..) , ResponseStatus(..) , APIResponse(..) , JSONValidationError(..) , UnsupportedMimeTypeError(..) -- * Generating responses for coll...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet-legacy/143e6d0dac0b28b3274600c6c49ec87e42ec9f37/src/Cardano/Wallet/API/Response.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # * Generating responses for collections * Generating responses for single resources * A slice of a collection ^ A paginated fraction of the resource ^ The total number of entries | Inefficient function to build a response out of a @generator@ function. When...
# LANGUAGE DeriveGeneric # # LANGUAGE OverloadedLists # module Cardano.Wallet.API.Response ( Metadata (..) , ResponseStatus(..) , APIResponse(..) , JSONValidationError(..) , UnsupportedMimeTypeError(..) , respondWith , fromSlice , single , SliceOf(..) , ValidJSON ) where import P...
f4f3a313f9419b1b4b5bcdf4c8eb1fe67f119f6e151441a85076ae3ff07a5acd
ekmett/distributive
Store.hs
{-# Language DerivingStrategies #-} {-# Language Safe #-} -- | Copyright : ( c ) 2011 - 2021 ( c ) 2011 License : BSD-2 - Clause OR Apache-2.0 -- Maintainer : -- Stability : experimental -- -- This is a generalized 'Store' 'Comonad', parameterized by a 'Representable' 'Functor'. -- ...
null
https://raw.githubusercontent.com/ekmett/distributive/df1cd53a1c9befdeec8e0890c6b5a52159c3e852/src/Control/Comonad/Rep/Store.hs
haskell
# Language DerivingStrategies # # Language Safe # | Maintainer : Stability : experimental This is a generalized 'Store' 'Comonad', parameterized by a 'Representable' 'Functor'. The representation of that 'Functor' serves as the index of the store. This can be useful if the representable functor serves to me...
Copyright : ( c ) 2011 - 2021 ( c ) 2011 License : BSD-2 - Clause OR Apache-2.0 module Control.Comonad.Rep.Store ( Store , pattern Store , runStore , StoreT(StoreT, ..) , runStoreT , ComonadStore(..) ) where import Control.Comonad import Control.Comonad.Env.Class import Control.Comona...
637f7368c1fb90e086ba744c4faa251390bd40c86de3cc5d34b96e5be9aefe02
spurious/snd-mirror
selection.scm
;;; selection.scm -- selection-related functions ;;; ;;; swap-selection-channels ;;; replace-with-selection ;;; selection-members ;;; make-selection ;;; filter-selection-and-smooth ;;; with-temporary-selection (provide 'snd-selection.scm) (if (not (defined? 'all-chans)) (define (all-chans) (let ...
null
https://raw.githubusercontent.com/spurious/snd-mirror/8e7a643c840592797c29384ffe07c87ba5c0a3eb/selection.scm
scheme
selection.scm -- selection-related functions swap-selection-channels replace-with-selection selection-members make-selection filter-selection-and-smooth with-temporary-selection -------- replace-with-selection put in the selection before deletion, since delete-samples can deactivate the selection ...
(provide 'snd-selection.scm) (if (not (defined? 'all-chans)) (define (all-chans) (let ((sndlist ()) (chnlist ())) (for-each (lambda (snd) (do ((i (- (channels snd) 1) (- i 1))) ((< i 0)) (set! sndlist (cons snd sndlist)) (set! chnlist (cons i chnlist)))) (sounds)) (list s...
3d1725e8bbd4fc1f98971210535a2f43514172c9dd4537b23714b80e3c0299e5
kappamodeler/kappa
git_commit_info.ml
let git_commit_version,git_commit_release,git_commit_tag,git_commit_date = 4,329,10578,"2013-02-03 19:29:20"
null
https://raw.githubusercontent.com/kappamodeler/kappa/de63d1857898b1fc3b7f112f1027768b851ce14d/complx_rep/automatically_generated/git_commit_info.ml
ocaml
let git_commit_version,git_commit_release,git_commit_tag,git_commit_date = 4,329,10578,"2013-02-03 19:29:20"
62b2320366b00c40d78444824632b8d88e93f58c814face74260cae4d11b669c
hyperthunk/annotations
conditional.erl
%% ----------------------------------------------------------------------------- Copyright ( c ) 2002 - 2012 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software without restriction ...
null
https://raw.githubusercontent.com/hyperthunk/annotations/ac34bf92a7b369aae3a763dd6ff7c0e463230404/examples/around/src/conditional.erl
erlang
----------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnish...
Copyright ( c ) 2002 - 2012 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRE...
875cf3732b3d6dd7b5133b1b0984d2d98eeb67015c24df95b867385b1c0057c7
PrecursorApp/precursor
template.clj
(ns pc.views.blog.template) ;; To make a new post, copy this template to a new file, rename the ;; template fn below to something like your-post-name, then add ;; "your-post-name" to the end of slugs in pc.views.blog. ;; Whatever you set as your-post-name will be the slug after /blog/ in the url. (defn template [] ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/views/blog/template.clj
clojure
To make a new post, copy this template to a new file, rename the template fn below to something like your-post-name, then add "your-post-name" to the end of slugs in pc.views.blog. Whatever you set as your-post-name will be the slug after /blog/ in the url. replace the nil with a string like "This is a title" rep...
(ns pc.views.blog.template) (defn template [] should be " " or " " , ask to add you to the list if you want to blog :body (list [:article [:p "opening paragraph"]] [:h3 "Heading"] [:article [:p "New paragraph"]] [:figure [:img {:src "/some-image.pn...
a5f953f0ad4568582693048df7c6d4b278e05e50cd15a64394815f29fd0fdff5
kappelmann/eidi2_repetitorium_tum
ha1.ml
(* generate .mli with `ocamlc -i` *) exception Invalid_input let hello name = "Hello "^name^"!" let rec fac n = if n<0 then raise Invalid_input else if n<=1 then n else n * fac (n-1) let rec fib n = if n<0 then raise Invalid_input else if n<=1 then n else fib (n-1) + fib (n-2) let rec even_sum n = if...
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/2017/ocaml/basics/solutions/ha1.ml
ocaml
generate .mli with `ocamlc -i`
exception Invalid_input let hello name = "Hello "^name^"!" let rec fac n = if n<0 then raise Invalid_input else if n<=1 then n else n * fac (n-1) let rec fib n = if n<0 then raise Invalid_input else if n<=1 then n else fib (n-1) + fib (n-2) let rec even_sum n = if n<0 then raise Invalid_input else ...
b6c629b7e729cdb401fc27affcb47ca25311b726f70990a0a1fd07bd62eb4b5f
wfnuser/sicp-solutions
e2-54.scm
(define (equal? a b) (if (pair? a) (if (pair? b) (and (equal? (car a) (car b)) (equal? (cdr a) (cdr b))) #f ) (eq? a b) ) ) (equal? '(1 2 3) '(1 2 3))
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch2/e2-54.scm
scheme
(define (equal? a b) (if (pair? a) (if (pair? b) (and (equal? (car a) (car b)) (equal? (cdr a) (cdr b))) #f ) (eq? a b) ) ) (equal? '(1 2 3) '(1 2 3))
e02783e82184de5ed4fb87b12828a93571061622b92a5df92c5fae4a75e3c55b
hoytech/antiweb
convert.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / cvs / hcsw / antiweb / bundled / cl - ppcre / convert.lisp , v 1.1 2008/04/26 02:40:56 ;;; Here the parse tree is converted into its internal representation ;;; using REGEX objects. At the same time some optimizat...
null
https://raw.githubusercontent.com/hoytech/antiweb/53c38f78ea01f04f6d1a1ecdca5c012e7a9ae4bb/bundled/cl-ppcre/convert.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- Here the parse tree is converted into its internal representation using REGEX objects. At the same time some optimizations are already applied. Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
$ Header : /usr / cvs / hcsw / antiweb / bundled / cl - ppcre / convert.lisp , v 1.1 2008/04/26 02:40:56 Copyright ( c ) 2002 - 2007 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (i...
8cf5ab47d1780d025cbca60c0a18236696b4cb87352bfb67503d68b8bda01057
ocaml-flambda/ocaml-jst
iarray_comprehensions_require_immutable_arrays.ml
TEST flags = " -extension comprehensions_experimental " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = "-extension comprehensions_experimental" ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-en...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/b0a649516b33b83b7290c6fa5d7cb4c8c343df8c/testsuite/tests/comprehensions/iarray_comprehensions_require_immutable_arrays.ml
ocaml
TEST flags = " -extension comprehensions_experimental " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = "-extension comprehensions_experimental" ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-en...
112ff000c89cee09d2ec349e9422604bdcc5a619ade4c304c409cc4ff9f63605
daveyarwood/ezzmq
context.clj
(ns ezzmq.context (:require [clojure.set :as set] [wall.hack]) (:import [org.zeromq ZMQ ZMQ$Context ZContext])) (def ^:dynamic *context* nil) (def ^:dynamic *context-type* :zcontext) (defn context "Returns a new ZMQ context." [] (case *context-type* :zcontext (ZContext. 1) :zmq.contex...
null
https://raw.githubusercontent.com/daveyarwood/ezzmq/7ad3c234bb39c7425fec4cc93228a80268dc1902/src/ezzmq/context.clj
clojure
ZMQ$Contexts don't automatically close their sockets when you terminate them; they block until you do it manually. Ensures that on shutdown, any "active" contexts are shut down, and their before- and after-shutdown hooks are called.
(ns ezzmq.context (:require [clojure.set :as set] [wall.hack]) (:import [org.zeromq ZMQ ZMQ$Context ZContext])) (def ^:dynamic *context* nil) (def ^:dynamic *context-type* :zcontext) (defn context "Returns a new ZMQ context." [] (case *context-type* :zcontext (ZContext. 1) :zmq.contex...
b387d15f55d327234a8e872d56ba823aa55fb46f48a8d9d2617777eac20a67ca
cabol/dberl
dberl_json.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of ...
null
https://raw.githubusercontent.com/cabol/dberl/8de9a9ee81a8fa5454fe961237b619563c91bf5d/src/dberl_json.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @author < > ( C...
3352857d5a6da2430b44a492111f367368b34f4449d7b90236805cbfea2febd2
travitch/datalog
Rules.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # -- | FIXME: Change the adornment/query building process such that -- conditional clauses are always processed last. This is necessary -- so that all variables are bound. -- FIXME : Add an assertion to say that ConditionalClauses can not have -- Free variabl...
null
https://raw.githubusercontent.com/travitch/datalog/8b3c37f1887c42d28a158285b8570e27480a0a56/src/Database/Datalog/Rules.hs
haskell
# LANGUAGE BangPatterns # | FIXME: Change the adornment/query building process such that conditional clauses are always processed last. This is necessary so that all variables are bound. Free variables. import Debug.Trace debug = flip trace variable name. ^ A special variable available in queries that can be ...
# LANGUAGE FlexibleContexts # FIXME : Add an assertion to say that ConditionalClauses can not have module Database.Datalog.Rules ( Adornment(..), Term(..), Clause(..), AdornedClause(..), Rule(..), Literal(..), Query(..), QueryBuilder, PartialTuple(..), (|-), assertRule, relationPredicateFromNa...
c1758bb7f04ec88068be725df7f4158230e671d911ab0a905ec81b4b3db02ccd
bmeurer/ocaml-experimental
builtinf_bind.ml
##ifdef CAMLTK (* type *) type bindAction = | BindSet of eventField list * (eventInfo -> unit) | BindSetBreakable of eventField list * (eventInfo -> unit) | BindRemove | BindExtend of eventField list * (eventInfo -> unit) /type (* FUNCTION val bind: widget -> (modifier list * xEvent) list -> bindAction ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/builtin/builtinf_bind.ml
ocaml
type FUNCTION val bind: widget -> (modifier list * xEvent) list -> bindAction -> unit /FUNCTION FUNCTION (* unsafe /unsafe FUNCTION (* unsafe /unsafe FUNCTION val break : unit -> unit /FUNCTION Legacy functions FUNCTION val break : unit -> unit /FUNCTION
##ifdef CAMLTK type bindAction = | BindSet of eventField list * (eventInfo -> unit) | BindSetBreakable of eventField list * (eventInfo -> unit) | BindRemove | BindExtend of eventField list * (eventInfo -> unit) /type let bind widget eventsequence action = tkCommand [| TkToken "bind"; TkToken...
eab99798d25dd709663a2c63da84828633b0815b35c7c94a8ce1ae1bac362ec2
jrm-code-project/LISP-Machine
k-user.lisp
-*- Mode : LISP ; Package : USER ; : CL ; -*- (eval-when (compile) (in-package 'k-user :use '(defstruct lisp-io)))
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/rauen/k-user.lisp
lisp
Package : USER ; : CL ; -*-
(eval-when (compile) (in-package 'k-user :use '(defstruct lisp-io)))
4bf2fd1f778c5b80ebaa33fb4ae86a2f1a483171c5e8c752cb6e3191beee90a1
tarides/dune-release
opam.mli
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/bin/opam.mli
ocaml
* Entrypoints for the [distro] command. * The [opam] command.
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
e7cc68d4d59230f2e767c1f55e0e3489181299518aa72e4276284950dced12ce
sunshineclt/Racket-Helper
04.rkt
#lang racket (define (accumulate op init seq) (if (null? seq) init (op (car seq) (accumulate op init (cdr seq))))) (define (accumulate-n op init seqs) (if (null? seqs) '() (cons (accumulate op init (map first seqs)) (accumulate-n op init (cond [(empty? (list-ref (map rest seqs) ...
null
https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E9%AA%86%E6%A2%81%E5%AE%B8/Assignment/3/04.rkt
racket
#lang racket (define (accumulate op init seq) (if (null? seq) init (op (car seq) (accumulate op init (cdr seq))))) (define (accumulate-n op init seqs) (if (null? seqs) '() (cons (accumulate op init (map first seqs)) (accumulate-n op init (cond [(empty? (list-ref (map rest seqs) ...
4f9ccd5f5f7060c69a6fe2e7862c5410c354e7a7917bbdbcad26fd10de0ea1fd
jlouis/safetyvalve
sv_codel.erl
@doc This is a loose translation of the following link from ACM : %%% %%% %%% %%% The document you want to read is " Controlling queue Delay " , , But also note that some of the other papers are interesting . Especially notes are of %%% interest. %%% %%% @end -module(sv_codel). %% Public API -export(...
null
https://raw.githubusercontent.com/jlouis/safetyvalve/c8235c6ca1deffeccdbba9dd74263408ed56594a/src/sv_codel.erl
erlang
The document you want to read is interest. @end Public API Internal state The underlying queue to use. For now, since we are mainly in a test phase, we just use a standard functional queue. But later the plan is to use a module here and then call the right kind of queue functions for that module. If we a...
@doc This is a loose translation of the following link from ACM : " Controlling queue Delay " , , But also note that some of the other papers are interesting . Especially notes are of -module(sv_codel). -export([new/0, new/2, in/3, out/2, len/1, remove/3]). -export([init/2, enqueue/3, dequeue/2, delete...
1e4b1a3075bfab041e10aebf609ab462cb4a0782d8831995c7596c8e78725425
thomaseding/hearthshroud
GameEvent.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # module Hearth.Model.Runtime.GameEvent where -------------------------------------------------------------------------------- import Data.Data import Hearth.Model.Authoring ...
null
https://raw.githubusercontent.com/thomaseding/hearthshroud/b21e2f69f394c94a106a3b57b95aa1a76b8d4003/src/Hearth/Model/Runtime/GameEvent.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # module Hearth.Model.Runtime.GameEvent where import Data.Data import Hearth.Model.Authoring import Hearth.Model.Runtime data GameEvent :: * where GameBegins :: GameEvent GameEnds :: GameResult -> GameEvent PhaseEvent...
13514d4a6897d198c75005a2b29ef9eea2f7b78a266e237fc04a50894507de0c
day8/re-frame-10x
core.cljc
(ns day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.core "Convert Clojure data structures to CSS." (:require [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.compiler :as compiler])) (defn ^String css "Convert a variable number of Clojure data structure to a string of CSS. The first argument may be a...
null
https://raw.githubusercontent.com/day8/re-frame-10x/d8dcb17e217449aba2cf64b9f843b0e9f86cfcb6/gen-src/day8/re_frame_10x/inlined_deps/garden/v1v3v10/garden/core.cljc
clojure
(ns day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.core "Convert Clojure data structures to CSS." (:require [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.compiler :as compiler])) (defn ^String css "Convert a variable number of Clojure data structure to a string of CSS. The first argument may be a...
dc0949f1e53fd9923062a182d7c4dbcc7a371009257f843211757a8ef667d5f9
smabie/xs
xs.ml
(* xs.ml *) * This file is public domain as declared by * This file is public domain as declared by Sturm Mabie *) open Core let filename_param = let open Command.Param in anon ("filename" %: string) let command = Random.self_init (); Command.basic ~summary:"Public domain xs interpreter" ~r...
null
https://raw.githubusercontent.com/smabie/xs/9757b10c05ead985e12bb9b301428181a4db07ed/xs.ml
ocaml
xs.ml
* This file is public domain as declared by * This file is public domain as declared by Sturm Mabie *) open Core let filename_param = let open Command.Param in anon ("filename" %: string) let command = Random.self_init (); Command.basic ~summary:"Public domain xs interpreter" ~readme:(fun (...
469311f13a8ccc0000d3291fed9cf780b52095a8e19f4b8e44a15dad4ff71a37
may-liu/qtalk
ejabberd_sm_v2.erl
%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : Session manager Created : 24 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it unde...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/ejabberd_sm_v2.erl
erlang
---------------------------------------------------------------------- Purpose : Session manager This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even t...
File : Author : < > Created : 24 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public Li...
295ca5f0c6d2f9c552025d6a78318c9a1117895973c2afd8be80ca7ce6dee159
brendanhay/gogol
Watch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-apps-calendar/gen/Gogol/AppsCalendar/Calendar/Events/Watch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Watch for changes to Events resources. /See:/ <-apps/calendar/firstapp Calendar API Reference> for @calendar.events.watch@. * Resource ** Constructing a Request | Watch for changes to Events resources. /See:/ 'newCalendarEv...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
b3425258c80c54908cec4577c4dde2ac65c21eeef40f5ab217103b5776511944
skynet-gh/skylobby
battle_chat_test.clj
(ns skylobby.fx.battle-chat-test (:require [cljfx.api :as fx] [clojure.test :refer [deftest is]] [skylobby.fx.battle-chat :as fx.battle-chat])) (set! *warn-on-reflection* true) (deftest battle-chat-window-impl (is (map? (fx.battle-chat/battle-chat-window-impl {:fx/context (fx/creat...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/7895ad30d992b790ffbffcd2d7be2cf17f8df794/test/clj/skylobby/fx/battle_chat_test.clj
clojure
(ns skylobby.fx.battle-chat-test (:require [cljfx.api :as fx] [clojure.test :refer [deftest is]] [skylobby.fx.battle-chat :as fx.battle-chat])) (set! *warn-on-reflection* true) (deftest battle-chat-window-impl (is (map? (fx.battle-chat/battle-chat-window-impl {:fx/context (fx/creat...
30623d4b915c47900d4997b38b5be32521be5aaa61c1a3ff689136a299202023
AkronCodeClub/edX-FP101x-Oct-2014
A.hs
import Control.Parallel main = a `par` b `par` c `pseq` print (a+b+c) where a = ack 3 10 b = fac 42 c = fib 34 fac 0 = 1 fac n = n * fac (n-1) ack 0 n = n+1 ack m 0 = ack (m-1) 1 ack m n = ack (m-1) (ack m (n-1)) fib 0 = 0 fib 1 = 1 fib n = fib (n-1) + fib (n-2)
null
https://raw.githubusercontent.com/AkronCodeClub/edX-FP101x-Oct-2014/7db691d795126ad912256fec29b5aa1817beb8c0/chris_f/5steps/A.hs
haskell
import Control.Parallel main = a `par` b `par` c `pseq` print (a+b+c) where a = ack 3 10 b = fac 42 c = fib 34 fac 0 = 1 fac n = n * fac (n-1) ack 0 n = n+1 ack m 0 = ack (m-1) 1 ack m n = ack (m-1) (ack m (n-1)) fib 0 = 0 fib 1 = 1 fib n = fib (n-1) + fib (n-2)
3a66121281fec61528bfe9ad5b27930caaa47afb6137cfec2a2a16f6d9dd528a
c-cube/ocaml-containers
CCIntMap.mli
* Map specialized for Int keys { b status : stable } @since 0.10 {b status: stable} @since 0.10 *) type +'a t val empty : 'a t val is_empty : _ t -> bool * Is the map empty ? @since 2.3 @since 2.3 *) val singleton : int -> 'a -> 'a t val doubleton : int -> 'a -> int -> 'a -> 'a t val...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/data/CCIntMap.mli
ocaml
* Same as {!find} but unsafe. @raise Not_found if key is not present. * Number of bindings in the map. Linear time. * @raise Not_found if not pair was found. * Helpers */* */*
* Map specialized for Int keys { b status : stable } @since 0.10 {b status: stable} @since 0.10 *) type +'a t val empty : 'a t val is_empty : _ t -> bool * Is the map empty ? @since 2.3 @since 2.3 *) val singleton : int -> 'a -> 'a t val doubleton : int -> 'a -> int -> 'a -> 'a t val...
48a96864406d6657a0b4d1eafb9feeee04f7789b958c75a9417c46004d6f8b9d
typedb-osi/typedb-client-haskell
TypeQLParser.hs
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module TypeQLParser where [ g4| atom : STRING - > Str | SYMBOL - > Symb | NUMBER - > Number ; STRING : ( ( ' \\ ' . ) | ~ [ \\ ] ) * - > String ; WHITESPACE : [ \n\t\r]+ - > String ; NUMBER : ( ' + ' | ' - ' ) ? ( ' . '...
null
https://raw.githubusercontent.com/typedb-osi/typedb-client-haskell/051a4c93ff255c6df58ac0676ba3b0f306862cdd/lib/TypeQLParser.hs
haskell
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module TypeQLParser where [ g4| atom : STRING - > Str | SYMBOL - > Symb | NUMBER - > Number ; STRING : ( ( ' \\ ' . ) | ~ [ \\ ] ) * - > String ; WHITESPACE : [ \n\t\r]+ - > String ; NUMBER : ( ' + ' | ' - ' ) ? ( ' . '...
ad6f4712ad9adc157e335b72086cace470a8e0949a566d5a4a7cd5dc893850a8
Helium4Haskell/helium
Information.hs
module Helium.StaticAnalysis.Messages.Information where import Top.Types import Helium.Main.CompileUtils import Helium.Parser.OperatorTable import Helium.StaticAnalysis.Messages.Messages hiding (Constructor) import Helium.Syntax.UHA_Syntax hiding (Fixity) import Helium.Syntax.UHA_Utils import Helium.Syntax.UHA_Range i...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/StaticAnalysis/Messages/Information.hs
haskell
module Helium.StaticAnalysis.Messages.Information where import Top.Types import Helium.Main.CompileUtils import Helium.Parser.OperatorTable import Helium.StaticAnalysis.Messages.Messages hiding (Constructor) import Helium.Syntax.UHA_Syntax hiding (Fixity) import Helium.Syntax.UHA_Utils import Helium.Syntax.UHA_Range i...
92ae870f16cc538198672544eb29579be1bbc93c0135c82ec047f00826057b88
hasktorch/hasktorch
Autograd.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE NoStarIsType # mo...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/4e846fdcd89df5c7c6991cb9d6142007a6bb0a58/hasktorch/src/Torch/Typed/Autograd.hs
haskell
# LANGUAGE RankNTypes # loss toDependent = id
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE NoStarIsType # module Torch.Typed.Autograd ...
a98d929878d3b5733d3c76ff7b7ed66000aeaac4924352a54de01411cf7b7951
reborg/clojure-essential-reference
16.clj
< 1 > ( ( 0 ) ( 1 2 3 4 5 6 7 8 9 ) ) < 2 > ;; (0) (first (sequence (partition-by pos?) (range))) ; <3> ;; WARNING: hangs
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialProcessing/partition%2Cpartition-allandpartition-by/16.clj
clojure
(0) <3> WARNING: hangs
< 1 > ( ( 0 ) ( 1 2 3 4 5 6 7 8 9 ) ) < 2 >
a1bf13493d123573ab4a64678bc3c95046ed05cd91f4631819e30660303452a2
svenvc/s-http-server
test.lisp
;;;; -*- mode: lisp -*- ;;;; ;;;; Test and example code for S-HTTP[S]-SERVER ;;;; Copyright ( C ) 2006 - 2009 , Beta Nine BVBA . ;;;; ;;;; You are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser General Public License ;;;; (), also known as the LLGPL. (in-packa...
null
https://raw.githubusercontent.com/svenvc/s-http-server/552973ab051a2e0478807153402a347be5943a4d/src/test.lisp
lisp
-*- mode: lisp -*- Test and example code for S-HTTP[S]-SERVER You are granted the rights to distribute and use this software (), also known as the LLGPL. some convenience globals a quick example on setting up a server on a directory by disabling debug mode and logging to *standard-output*, you get a faster se...
Copyright ( C ) 2006 - 2009 , Beta Nine BVBA . as governed by the terms of the Lisp Lesser General Public License (in-package :s-http-server) (defvar test-server) (defun start-test-server () (start-server test-server)) (defun stop-test-server () (stop-server test-server)) (defun make-test-server (&key...