_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
dafe7853fb1ab7aca6e3f097288defb5c89b55066f9517266a0f1d9133e42717
goldfirere/thesis
cpdt8.hs
# LANGUAGE TemplateHaskell , PolyKinds , DataKinds , RankNTypes , TypeFamilies , GADTs , NoImplicitPrelude , TypeOperators , LambdaCase , EmptyCase , TypeHoles # GADTs, NoImplicitPrelude, TypeOperators, LambdaCase, EmptyCase, TypeHoles #-} import Prelude ((++), E...
null
https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/hs/dephs/cpdt8.hs
haskell
# LANGUAGE TemplateHaskell , PolyKinds , DataKinds , RankNTypes , TypeFamilies , GADTs , NoImplicitPrelude , TypeOperators , LambdaCase , EmptyCase , TypeHoles # GADTs, NoImplicitPrelude, TypeOperators, LambdaCase, EmptyCase, TypeHoles #-} import Prelude ((++), E...
9d166bb223b84b63cdd81f16d0f98159778c7d86a2c69deffa7c9c1d4515d955
docker-in-aws/docker-in-aws
info.cljs
(ns swarmpit.component.stack.info (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.panel :as panel] [material.component.list-table-auto :as list] [swarmpit.component.message :as message] ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/component/stack/info.cljs
clojure
(ns swarmpit.component.stack.info (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.panel :as panel] [material.component.list-table-auto :as list] [swarmpit.component.message :as message] ...
d7ec7c9af8c20f17d692403bf4271b2b69edff8d55671e987900b5ab51ba1406
bytekid/mkbtt
connected.ml
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/connected.ml
ocaml
** SUBMODULES ********************************************************* ** FUNCTIONS ********************************************************** (alpha) (beta) (gamma) (delta)
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
ab11803472f1a8ceeb375d021c0b0dd53f2d6d4e4113e408358fb6abb2fcc016
ocaml/ocaml-lsp
metrics.ml
open Test.Import let%expect_test "metrics" = let handler = let on_request (type r) _ (r : r Lsp.Server_request.t) : (r Lsp_fiber.Rpc.Reply.t * unit) Fiber.t = match r with | ShowDocumentRequest p -> print_endline "client: received show document params"; let json = Sh...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/cc609ef1c9f3653cfc14227630a896274f74b966/ocaml-lsp-server/test/e2e-new/metrics.ml
ocaml
ignore notifications
open Test.Import let%expect_test "metrics" = let handler = let on_request (type r) _ (r : r Lsp.Server_request.t) : (r Lsp_fiber.Rpc.Reply.t * unit) Fiber.t = match r with | ShowDocumentRequest p -> print_endline "client: received show document params"; let json = Sh...
2c169199ee44b0c34289357f455f5c43e1779fee56feb1a316371789dbc2f571
bobzhang/ocaml-book
ast_map.ml
open Printf; type a = [ A of b | C] and b = [ B of a | D ] ; class map = Camlp4MapGenerator.generated; let v = object inherit map as super; method! b x = match super#b x with [ D -> B C | x -> x]; end in assert (v#b D = B (C));
null
https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/code/camlp4/filters/ast_map/ast_map.ml
ocaml
open Printf; type a = [ A of b | C] and b = [ B of a | D ] ; class map = Camlp4MapGenerator.generated; let v = object inherit map as super; method! b x = match super#b x with [ D -> B C | x -> x]; end in assert (v#b D = B (C));
a77c20ce886c20f04da11746b42fe24d7c16e6fb0fa6bb5f24ea38172a5b8d56
rfkm/zou
handler_test.clj
(ns zou.web.handler-test (:require [clojure.test :as t] [midje.sweet :refer :all] [ring.mock.request :as mock] [zou.util.namespace :as un] [zou.web.handler :as sut])) (def req (assoc (mock/request :get "/") :params {:a :aa :b {:c :d}} :z...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/web/test/zou/web/handler_test.clj
clojure
(ns zou.web.handler-test (:require [clojure.test :as t] [midje.sweet :refer :all] [ring.mock.request :as mock] [zou.util.namespace :as un] [zou.web.handler :as sut])) (def req (assoc (mock/request :get "/") :params {:a :aa :b {:c :d}} :z...
06e60b52cbadb55892f93ee2a9cdd41a7e071201a1b574219f400aec6b6f7c66
ocamllabs/ocaml-modular-implicits
event.mli
(***********************************************************************) (* *) (* OCaml *) (* *) and , projet Cris...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/otherlibs/threads/event.mli
ocaml
********************************************************************* OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * First - class synchronous communication . ...
ade6ecd10816040742b9a6b03ebda6c004579f3b5bcb807763079fea344f6ff3
runtimeverification/haskell-backend
ProductionID.hs
module Test.Kore.Attribute.ProductionID ( test_productionID, test_Attributes, test_duplicate, test_zeroArguments, test_twoArguments, test_parameters, ) where import Kore.Attribute.ProductionID import Kore.Syntax.Pattern import Prelude.Kore import Test.Kore.Attribute.Parser import Test.Tasty imp...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Attribute/ProductionID.hs
haskell
module Test.Kore.Attribute.ProductionID ( test_productionID, test_Attributes, test_duplicate, test_zeroArguments, test_twoArguments, test_parameters, ) where import Kore.Attribute.ProductionID import Kore.Syntax.Pattern import Prelude.Kore import Test.Kore.Attribute.Parser import Test.Tasty imp...
0e64c649a49b59f28441166c1ee67f5f95249d97a34fa74a4d1c0de7f4216174
gsakkas/rite
0016.ml
TupleG [ListG [],ListG []] ([] , []) ([x + 1] , [x + 1]) ([x + 1] , [x + 2]) ([0] , [0]) ([(h1 + h2) / 10] , [(h1 + h2) mod 10])
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/clusters/0016.ml
ocaml
TupleG [ListG [],ListG []] ([] , []) ([x + 1] , [x + 1]) ([x + 1] , [x + 2]) ([0] , [0]) ([(h1 + h2) / 10] , [(h1 + h2) mod 10])
d3b6e37efa2a0f171716f9fbf56accb9e182705dae9969947015f5c90d6a6690
GetShopTV/swagger2
ParamSchema.hs
# LANGUAGE DataKinds # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PackageImports #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # {...
null
https://raw.githubusercontent.com/GetShopTV/swagger2/9846955d72e7242f3c1fa982911972cd9e4eb720/src/Data/Swagger/Internal/ParamSchema.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE PackageImports # # LANGUAGE TypeSynonymInstances # # OPTIONS_GHC -Wno-redundant-constraints # | Default schema for binary data (any sequence of octets). | Default schema for binary data (base64 encoded). | Default schema for password string. @"password"@ format is used to h...
# LANGUAGE DataKinds # # LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # Generic a is redundant in ToPa...
2f246d6332b10d01198e2613c2fe669b3d21981393b15b5a9c71f2bd109b8005
falgon/htcc
Scope.hs
| Module : Htcc . . ConstructionData . Scope Description : The Data type of scope and its utilities used in parsing Copyright : ( c ) roki , 2019 License : MIT Maintainer : Stability : experimental Portability : POSIX The Data type of variables and its utilities used in parsing M...
null
https://raw.githubusercontent.com/falgon/htcc/3cef6fc362b00d4bc0ae261cba567bfd9c69b3c5/src/Htcc/Parser/ConstructionData/Scope.hs
haskell
* The types * Operations for scope | The data type of a struct tag ^ The constructor of a struct tag ^ The nest depth of the parsing process ^ scoped all identifiers of variables (local variables, global variables and literals) visible during processing ^ scoped all struct tags ^ scoped all typedefs ^ scoped a...
| Module : Htcc . . ConstructionData . Scope Description : The Data type of scope and its utilities used in parsing Copyright : ( c ) roki , 2019 License : MIT Maintainer : Stability : experimental Portability : POSIX The Data type of variables and its utilities used in parsing M...
a55edb97f11c69f4fb79048204b73ac9c0273070582cb3ddc198eab811657c87
expipiplus1/spir-v
Extra.hs
module Data.Maybe.Extra ( module Data.Maybe , rightToMaybe ) where import Data.Maybe rightToMaybe :: Either t a -> Maybe a rightToMaybe (Right x) = Just x rightToMaybe (Left _) = Nothing
null
https://raw.githubusercontent.com/expipiplus1/spir-v/5692404f43a63fb8feb0cfaff3bfb3eedada6890/generate/src/Data/Maybe/Extra.hs
haskell
module Data.Maybe.Extra ( module Data.Maybe , rightToMaybe ) where import Data.Maybe rightToMaybe :: Either t a -> Maybe a rightToMaybe (Right x) = Just x rightToMaybe (Left _) = Nothing
db3bf3000d94131d181b15a63558270b6534fb31ee09ce43faaa228302b45e58
basho/riak_kv
riak_kv_fold_buffer.erl
%% ------------------------------------------------------------------- %% %% riak_kv_fold_buffer: Provide operations for creating and using %% size-limited buffers for use in folds.n %% Copyright ( c ) 2007 - 2011 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache Lic...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_fold_buffer.erl
erlang
------------------------------------------------------------------- riak_kv_fold_buffer: Provide operations for creating and using size-limited buffers for use in folds.n 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 ...
Copyright ( c ) 2007 - 2011 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
f3a56fdc40137a2431a15914dfb8e7f2232b52601fceb14f7fe355dab231d731
clojerl/clojerl
clojerl.ArityError.erl
-module('clojerl.ArityError'). -include("clojerl.hrl"). -behavior('clojerl.IEquiv'). -behavior('clojerl.IError'). -behavior('clojerl.IHash'). -behavior('clojerl.IStringable'). -export([?CONSTRUCTOR/2]). -export([equiv/2]). -export([ message/1 , message/2 ]). -export([hash/1]). -export([str/1]). -ex...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/errors/clojerl.ArityError.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ clojerl.IEquiv clojerl.IError clojerl.IStringable
-module('clojerl.ArityError'). -include("clojerl.hrl"). -behavior('clojerl.IEquiv'). -behavior('clojerl.IError'). -behavior('clojerl.IHash'). -behavior('clojerl.IStringable'). -export([?CONSTRUCTOR/2]). -export([equiv/2]). -export([ message/1 , message/2 ]). -export([hash/1]). -export([str/1]). -ex...
32ca730d2e6f9c9a39b01301cd879840b87e176fef502478876f50fdaf822892
vyos/vyconf
vyconf_types.ml
[@@@ocaml.warning "-27-30-39"] type request_config_format = | Curly | Json type request_output_format = | Out_plain | Out_json type request_setup_session = { client_application : string option; on_behalf_of : int32 option; } type request_set = { path : string list; ephemeral : bool option; } t...
null
https://raw.githubusercontent.com/vyos/vyconf/dd9271b4304c6b1a5a2576821d1b2b8fd3aa6bf5/src/vyconf_types.ml
ocaml
[@@@ocaml.warning "-27-30-39"] type request_config_format = | Curly | Json type request_output_format = | Out_plain | Out_json type request_setup_session = { client_application : string option; on_behalf_of : int32 option; } type request_set = { path : string list; ephemeral : bool option; } t...
cedf5cd1c6785d535b3695f3b53eb3b1a2ba7b4b789bd186cf2fd5913d3c4dc4
gren-lang/compiler
Declaration.hs
{-# LANGUAGE OverloadedStrings #-} -- Temporary while implementing gren format # OPTIONS_GHC -Wno - error = unused - do - bind # # OPTIONS_GHC -Wno - error = unused - local - binds # # OPTIONS_GHC -Wno - error = unused - matches # module Parse.Declaration ( Decl (..), declaration, infix_, ) where import A...
null
https://raw.githubusercontent.com/gren-lang/compiler/c3a39dc7177934704ba2c1942580f1f8169954a9/compiler/src/Parse/Declaration.hs
haskell
# LANGUAGE OverloadedStrings # Temporary while implementing gren format DECLARATION : = TYPE DECLARATIONS TYPE ALIASES = CUSTOM TYPES = PORT : INVARIANT: always chomps to a freshline ( ) =
# OPTIONS_GHC -Wno - error = unused - do - bind # # OPTIONS_GHC -Wno - error = unused - local - binds # # OPTIONS_GHC -Wno - error = unused - matches # module Parse.Declaration ( Decl (..), declaration, infix_, ) where import AST.Source qualified as Src import AST.SourceComments qualified as SC import AST...
b7ff7a2800bc5e39da05338aa2d409e55a6b4ed141852478b7c826c0548d8235
anton-k/processing-for-haskell
Star.hs
-- original code: Star -- -- The star() function created for this example is capable of drawing -- a wide range of different forms. Try placing different numbers into -- the star() function calls within draw() to explore. import Graphics.Proc main = runProc $ def { procSetup = setup, procDraw = draw } width = 6...
null
https://raw.githubusercontent.com/anton-k/processing-for-haskell/7f99414f3c266135b6a2848978fcb572fd7b67b1/examples/Form/Star.hs
haskell
original code: The star() function created for this example is capable of drawing a wide range of different forms. Try placing different numbers into the star() function calls within draw() to explore. We specify the scope of local transformation with indentation. not convex polygons are not implemented yet (to...
Star import Graphics.Proc main = runProc $ def { procSetup = setup, procDraw = draw } width = 640 height = 360 setup = do smooth size (P2 width height) draw() = do background (grey 102) fill (grey 250) Triangle Icosahedron Heptagon the function ` local ` is equivalent of pair of pushMatrix an...
207f7798aa0856e179651764ddf34e8fae7c1d9b1aff95291ae68f7114bb9a0d
static-clouds/hlisp
Parse.hs
module HLisp.Parse where import Text.Parsec hiding (letter) import Text.Parsec.Char (alphaNum) import HLisp.Tokenize hiding (Parser) data VariableValue = I Int | S String | B Bool deriving (Eq, Show) type Pos = (SourcePos, SourcePos) data Exp = Identifier (Maybe Pos) String | SExp (Maybe Pos) [Exp] | Literal (Maybe...
null
https://raw.githubusercontent.com/static-clouds/hlisp/66c30a35c13b896488c59da83bb90b81b3c12b7b/src/HLisp/Parse.hs
haskell
<|> S <$> string'
module HLisp.Parse where import Text.Parsec hiding (letter) import Text.Parsec.Char (alphaNum) import HLisp.Tokenize hiding (Parser) data VariableValue = I Int | S String | B Bool deriving (Eq, Show) type Pos = (SourcePos, SourcePos) data Exp = Identifier (Maybe Pos) String | SExp (Maybe Pos) [Exp] | Literal (Maybe...
08054ce9db1fc27f9d7e60550e4597afe999ece55509d68b6cc8d47da249231e
exercism/babashka
nucleotide_count.clj
(ns nucleotide-count) (def ^{:private :const} dna-nucleotides #{\A \C \G \T}) (def ^{:private :const} base-count (zipmap dna-nucleotides (repeat 0))) (defn nucleotide-counts "generate a map of counts per nucleotide in strand" [strand] (into base-count (frequencies strand))) (defn count-of-nucleotide-in-stra...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/nucleotide-count/src/nucleotide_count.clj
clojure
(ns nucleotide-count) (def ^{:private :const} dna-nucleotides #{\A \C \G \T}) (def ^{:private :const} base-count (zipmap dna-nucleotides (repeat 0))) (defn nucleotide-counts "generate a map of counts per nucleotide in strand" [strand] (into base-count (frequencies strand))) (defn count-of-nucleotide-in-stra...
2d0d760c362a0deb123d382dcda80ae97a73b2dc0c203773674949316c0b6048
MinaProtocol/mina
sok_message.ml
open Core_kernel open Mina_base_util open Mina_base_import module Wire_types = Mina_wire_types.Mina_base.Sok_message module Make_sig (A : Wire_types.Types.S) = struct module type S = Sok_message_intf.Full with type Digest.t = A.Digest.V1.t end module Make_str (A : Wire_types.Concrete) = struct [%%versioned modu...
null
https://raw.githubusercontent.com/MinaProtocol/mina/7a380064e215dc6aa152b76a7c3254949e383b1f/src/lib/mina_base/sok_message.ml
ocaml
open Core_kernel open Mina_base_util open Mina_base_import module Wire_types = Mina_wire_types.Mina_base.Sok_message module Make_sig (A : Wire_types.Types.S) = struct module type S = Sok_message_intf.Full with type Digest.t = A.Digest.V1.t end module Make_str (A : Wire_types.Concrete) = struct [%%versioned modu...
c8a950efa06da07a28c3258e8198ac7e211b551b2f57624a7beac4220bdcf25f
forward/incanter-BLAS
distributions.clj
;;; distributions.clj -- A common distribution protocol with several implmentations. by May 10 , 2010 Changes added by Jun 24 , 2010 Copyright ( c ) , 2010 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; whic...
null
https://raw.githubusercontent.com/forward/incanter-BLAS/da48558cc9d8296b775d8e88de532a4897ee966e/src/main/clojure/incanter/distributions.clj
clojure
distributions.clj -- A common distribution protocol with several implmentations. Public License 1.0 (-1.0.php) which can be found in the file epl-v10.htincanter.at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove...
by May 10 , 2010 Changes added by Jun 24 , 2010 Copyright ( c ) , 2010 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse CHANGE LOG (ns #^{:doc "Probability functions (pdf, cdf, draw, etc.) for common distributions, and for collections, sets,...
9dbc3f1a0c22e1ea69c6f23de884e0dd0bcff87e9b1d5dff3211f12359f8adf1
mbj/mhs
HUnit.hs
module Test.HUnit where import Data.Bounded.Prelude import Test.Tasty.HUnit import qualified Data.List as List shouldFailWith :: forall e. Exception e => String -> Assertion -> Assertion shouldFailWith msg assertion = do eResult <- try @e assertion case eResult of Right _ -> assertFailure "Error s...
null
https://raw.githubusercontent.com/mbj/mhs/3c0fe9e28c24ba633ed51ccbeeb154d6f2f82292/bounded/test/Test/HUnit.hs
haskell
module Test.HUnit where import Data.Bounded.Prelude import Test.Tasty.HUnit import qualified Data.List as List shouldFailWith :: forall e. Exception e => String -> Assertion -> Assertion shouldFailWith msg assertion = do eResult <- try @e assertion case eResult of Right _ -> assertFailure "Error s...
2fbb44bd9965a018a2b0cf445b2a8ffad5d41f4d22be034d0e69d78448a1e4bd
clj-holmes/clj-holmes
json.clj
(ns clj-holmes.specs.json (:require [clojure.spec.alpha :as s] [clojure.string :as str])) (s/def ::non-blank-string (s/and string? (complement str/blank?))) (s/def ::row pos-int?) (s/def ::col pos-int?) (s/def ::end-row pos-int?) (s/def ::end-col pos-int?) (s/def ::parent (s/nilable qualified-keyword?...
null
https://raw.githubusercontent.com/clj-holmes/clj-holmes/f06ed9d0623db4512c8fb6b8d7781229355f77ee/src/clj_holmes/specs/json.clj
clojure
(ns clj-holmes.specs.json (:require [clojure.spec.alpha :as s] [clojure.string :as str])) (s/def ::non-blank-string (s/and string? (complement str/blank?))) (s/def ::row pos-int?) (s/def ::col pos-int?) (s/def ::end-row pos-int?) (s/def ::end-col pos-int?) (s/def ::parent (s/nilable qualified-keyword?...
f6eade126670000b7eb835231cdf80c71a80fe0bbacf7890889dd75d7545b937
RefactoringTools/HaRe
Signature3.hs
module LiftToTopLevel.Signature3 where {- Lifting baz to the top level should bring in xx and a as parameters, and update the signature to include these -} foo a = baz where baz :: Int baz = xx 1 a xx :: Int -> Int -> Int xx p1 p2 = p1 + p2
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/LiftToToplevel/Signature3.hs
haskell
Lifting baz to the top level should bring in xx and a as parameters, and update the signature to include these
module LiftToTopLevel.Signature3 where foo a = baz where baz :: Int baz = xx 1 a xx :: Int -> Int -> Int xx p1 p2 = p1 + p2
15bcbfea973c8d07f7a3f2c0e60525d98e57c5e02cc535721bdce5df3bdafbcf
binsec/binsec
armToDba.enabled.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/disasm/arm/armToDba.enabled.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
073f0162303597b041ca03898f20dcc654581dd1461639f70009bf71c5987ce9
archimag/cliki2
entry.lisp
;;;; entry.lisp (in-package #:cliki2) (restas:define-route entry ("") (view-article :title "index")) (restas:mount-submodule -static- (#:restas.directory-publisher) (restas.directory-publisher:*directory* (merge-pathnames "static/" *basepath*)) (restas...
null
https://raw.githubusercontent.com/archimag/cliki2/f0b6910f040907c70fd842ed76472af2d645c984/src/routes/entry.lisp
lisp
entry.lisp
(in-package #:cliki2) (restas:define-route entry ("") (view-article :title "index")) (restas:mount-submodule -static- (#:restas.directory-publisher) (restas.directory-publisher:*directory* (merge-pathnames "static/" *basepath*)) (restas.directory-publi...
bcddc6f9c6ff01d9405dba45cf51cdd21caa158559c4c88cdfc4db8b6f1cfd58
avsm/mirage-duniverse
state.ml
Defines all high - level datatypes for the TLS library . It is opaque to clients of this library , and only used from within the library . of this library, and only used from within the library. *) open Sexplib open Sexplib.Conv open Core open Nocrypto type hmac_key = Cstruct.t type 'k stream_state = { ciph...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tls/lib/state.ml
ocaml
TLS 1.1 and higher explicit IV (we use random) state of a symmetric cipher *** context of a TLS connection (both in and out has each one of these) sequence number cipher state the raw handshake log we need to carry around a collection of client and server verify bytes for renegotiation renegotiation da...
Defines all high - level datatypes for the TLS library . It is opaque to clients of this library , and only used from within the library . of this library, and only used from within the library. *) open Sexplib open Sexplib.Conv open Core open Nocrypto type hmac_key = Cstruct.t type 'k stream_state = { ciph...
1d84d9179529e2775cc48b3304c0a4b79fd82c32d35fbd73153d440e107bef7b
theoremprover-museum/LCF77
dml.lsp
(MAPC (FUNCTION (LAMBDA (A) (EVLIST (QUOTE DML') (CAR A) 2 (CADR A) (CDDR A)))) (QUOTE ((* *TIMES (int # int) /-> int) (// DIV (int # int) /-> int) (/+ *PLUS (int # int) /-> int) (/- *DIF (int # int) /-> int) (= EQUAL (%a # %a) /-> bool) (< *LESS (int # int) /-> bool) (> *GREAT (int # int) /-> bool) ...
null
https://raw.githubusercontent.com/theoremprover-museum/LCF77/7a43e95deee18ae37389d98e184b38fdfb3df923/src/dml.lsp
lisp
(MAPC (FUNCTION (LAMBDA (A) (EVLIST (QUOTE DML') (CAR A) 2 (CADR A) (CDDR A)))) (QUOTE ((* *TIMES (int # int) /-> int) (// DIV (int # int) /-> int) (/+ *PLUS (int # int) /-> int) (/- *DIF (int # int) /-> int) (= EQUAL (%a # %a) /-> bool) (< *LESS (int # int) /-> bool) (> *GREAT (int # int) /-> bool) ...
d937b196e2778bc40075d972948d5f35480f2b450ece84e78b7060998bd00e27
chetmurthy/pa_ppx
std.mli
(****************************************************************************) The Calculus of Inductive Constructions (* *) Projet Coq (* ...
null
https://raw.githubusercontent.com/chetmurthy/pa_ppx/7c662fcf4897c978ae8a5ea230af0e8b2fa5858b/util-lib/std.mli
ocaml
************************************************************************** ...
The Calculus of Inductive Constructions Projet Coq INRIA LRI - CNRS ENS - CNRS Rocquencourt Lyon ...
95affcbc9c6892bfd59c699d02d2c30e6d043f7592ebf945073c4db19d9b3741
haskell-tools/haskell-tools
ExplicitNamespacesChecker.hs
module Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.ExplicitNamespacesChecker where import Control.Reference ((^.)) import Language.Haskell.Tools.AST import Language.Haskell.Tools.Refactor import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.ExtMonad chkExplicitNamespacesIESpec ::...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/Language/Haskell/Tools/Refactor/Builtin/ExtensionOrganizer/Checkers/ExplicitNamespacesChecker.hs
haskell
module Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.Checkers.ExplicitNamespacesChecker where import Control.Reference ((^.)) import Language.Haskell.Tools.AST import Language.Haskell.Tools.Refactor import Language.Haskell.Tools.Refactor.Builtin.ExtensionOrganizer.ExtMonad chkExplicitNamespacesIESpec ::...
b448d44f1fae14c4b85b4980e48a70926a0f4eeee06b8820189d74d3e17f2a1c
martijnbastiaan/doctest-parallel
Foo.hs
-- | -- Examples in various locations... -- -- Some random text. Some random text. Some random text. Some random text. -- Some random text. Some random text. Some random text. Some random text. -- Some random text. -- > > > let x = 10 -- -- Some random text. Some random text. Some random text. Some random te...
null
https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/integration/TestCommentLocation/Foo.hs
haskell
| Examples in various locations... Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random t...
> > > let x = 10 > > > baz " foobar " module TestCommentLocation.Foo ( | Some documentation not attached to a particular entity > > > test 10 test, > > > fib 10 55 fib, bar, foo, baz ) where > > > test 20 test :: Integer -> Integer test = undefined | Note that examples for ' fib ...
712df7291631152aae5bc933dea61436cc6c7c2cf707349bbdf6310c97fa2bee
bmeurer/ocaml-arm
exit_codes.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/ocamlbuild/exit_codes.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 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 . val rc_ok : int val rc_us...
b87261f45ed91b167421f2d132a004f704a4e7363e0a560771a4753b30c46415
iambrj/imin
interp-Rwhile.rkt
#lang racket (require racket/fixnum) (require "utilities.rkt") (require "interp-Rany.rkt") (provide interp-Rwhile interp-Rwhile-class) ;; Note to maintainers of this code: ;; A copy of this interpreter is in the book and should be ;; kept in sync with this code. (define interp-Rwhile-class (class interp-Rany-cl...
null
https://raw.githubusercontent.com/iambrj/imin/baf9e829c2aa85b69a2e86bfba320969ddf05f95/interp-Rwhile.rkt
racket
Note to maintainers of this code: A copy of this interpreter is in the book and should be kept in sync with this code.
#lang racket (require racket/fixnum) (require "utilities.rkt") (require "interp-Rany.rkt") (provide interp-Rwhile interp-Rwhile-class) (define interp-Rwhile-class (class interp-Rany-class (super-new) (define/override ((interp-exp env) e) (verbose "Rwhile/interp-exp" e) (define recur (interp-exp...
2c766c1c3bd917394329f74ef3f5f707debd21dc3cde18c50a757df3e93c947c
philoskim/debux
util.cljc
(ns debux.cs.util "Utilities for clojurescript only" (:require [clojure.string :as str] #?@(:bb [] :default [[cljs.analyzer.api :as ana]]) #?(:cljs [cljs.pprint :as pp]) [debux.common.util :as ut] )) ;;; caching (def ^:private prev-returns* (atom {})) (defn chan...
null
https://raw.githubusercontent.com/philoskim/debux/26771cb65534f6f80f521b44c38f14e274f2332f/src/debux/cs/util.cljc
clojure
caching init update styling printing for browser console spy functions spy macros
(ns debux.cs.util "Utilities for clojurescript only" (:require [clojure.string :as str] #?@(:bb [] :default [[cljs.analyzer.api :as ana]]) #?(:cljs [cljs.pprint :as pp]) [debux.common.util :as ut] )) (def ^:private prev-returns* (atom {})) (defn changed? "Chec...
21c15dafa261393fbc1051bb73628df5499710326c2c686df290701591299f05
batterseapower/openshake
Files.hs
# LANGUAGE TypeFamilies , TypeOperators , GeneralizedNewtypeDeriving , FlexibleContexts , TupleSections , CPP # module Development.Shake.Files ( -- * File modification times ModTime, getFileModTime, -- * Normalised file paths CanonicalFilePath, canonical, -- * Rules for building files ...
null
https://raw.githubusercontent.com/batterseapower/openshake/4d590c6c4191d5970f2d88f45d9425421d4f64af/Development/Shake/Files.hs
haskell
* File modification times * Normalised file paths * Rules for building files * Requesting that files get built TODO: remove orphan instance TODO: confirm that Show is only used in errors, and use Pretty instead? Used for non-existant filenames. Consequently, can only be approximately correct! Nonetheless, it's ...
# LANGUAGE TypeFamilies , TypeOperators , GeneralizedNewtypeDeriving , FlexibleContexts , TupleSections , CPP # module Development.Shake.Files ( ModTime, getFileModTime, CanonicalFilePath, canonical, CreatesFiles, Rule, (*>), (*@>), (**>), (**@>), (?>), (?@>), addRule, need, want ) ...
00bbaaf45a9fc0087d8f2089daa531cf30e686788990b9fd1792007bd9df0cfd
sweet-tooth-clojure/todo-example
core.cljs
(ns sweet-tooth.todo-example.frontend.core (:require [reagent.dom :as rdom] [re-frame.core :as rf] [re-frame.db :as rfdb] [integrant.core :as ig] [meta-merge.core :as mm] [sweet-tooth.frontend.core.flow :as stcf] [sweet-tooth.frontend.load-all-h...
null
https://raw.githubusercontent.com/sweet-tooth-clojure/todo-example/4acb37459bc3d2f534bb00dee07d9e361f414e8f/src/sweet_tooth/todo_example/frontend/core.cljs
clojure
for side effects for side effects for side effects not related to the rest Treat handler registration as an external service, interact with it via re-frame effects
(ns sweet-tooth.todo-example.frontend.core (:require [reagent.dom :as rdom] [re-frame.core :as rf] [re-frame.db :as rfdb] [integrant.core :as ig] [meta-merge.core :as mm] [sweet-tooth.frontend.core.flow :as stcf] [sweet-tooth.frontend.core.utils...
40a62752db76375d2a36cda70a904308b5c4455a8a66165bf61398b455128f00
tweag/linear-base
Ur.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # {-# LANGUAGE LinearTypes #-} # LANGUAGE StandaloneDeriving # for GHC.Types # LANGUAGE Trustworthy # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # {-# OPTIONS_HADDOCK hide #-} module Data.Unrestricted.Li...
null
https://raw.githubusercontent.com/tweag/linear-base/9d82f67f1415dda385a6349954bf55f9bfa4e62e/src/Data/Unrestricted/Linear/Internal/Ur.hs
haskell
# LANGUAGE GADTs # # LANGUAGE LinearTypes # # OPTIONS_HADDOCK hide # | @Ur a@ represents unrestricted values of type @a@ in a linear context. The key idea is that because the contructor holds @a@ with a regular arrow, a function that uses @Ur a@ linearly can use @a@ however it likes. > someLinear :: Ur a %1-> (a,...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # for GHC.Types # LANGUAGE Trustworthy # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Data.Unrestricted.Linear.Internal.Ur ( Ur (..), unur, lift, lift2, ) where import qu...
ab22cfc3139c218bc47124f1a9daeba9b0ba15b38fcd8c677ec63b299660393e
robert-strandh/SICL
ensure-class.lisp
(cl:in-package #:sicl-clos) ;;; For the specification of this function, see ;;; -MOP/ensure-class.html (defun ensure-class (name &rest arguments &key &allow-other-keys) (unless (and (symbolp name) (not (null name))) (error 'class-name-must-be-non-nil-symbol :name name)) (apply #'ensure-class-using-c...
null
https://raw.githubusercontent.com/robert-strandh/SICL/3de572954c09423a81cbce818fbf83b555f133f9/Code/CLOS/ensure-class.lisp
lisp
For the specification of this function, see -MOP/ensure-class.html
(cl:in-package #:sicl-clos) (defun ensure-class (name &rest arguments &key &allow-other-keys) (unless (and (symbolp name) (not (null name))) (error 'class-name-must-be-non-nil-symbol :name name)) (apply #'ensure-class-using-class (find-class name nil) name arguments))
2f337fc6464d7d77fbb706b3501ab0b85a83509b229542691e55619e8e1e2a41
threatgrid/ctia
schemas.clj
(ns ctia.entity.event.schemas (:require [ctia.schemas.core :refer [TLP]] [schema.core :as s] [schema-tools.core :as st])) (def CreateEventType :record-created) (def UpdateEventType :record-updated) (def DeleteEventType :record-deleted) (def event-types [CreateEventType UpdateEventType DeleteEventTy...
null
https://raw.githubusercontent.com/threatgrid/ctia/43ff86881b099bfd5a86f6a24a7ec0e05e980c04/src/ctia/entity/event/schemas.clj
clojure
simplified schema for Swagger UI actual schema
(ns ctia.entity.event.schemas (:require [ctia.schemas.core :refer [TLP]] [schema.core :as s] [schema-tools.core :as st])) (def CreateEventType :record-created) (def UpdateEventType :record-updated) (def DeleteEventType :record-deleted) (def event-types [CreateEventType UpdateEventType DeleteEventTy...
f08269a771c53b721cf08607ca45c3944c954c8fc2b66c9153b8e6b6f77f7864
janestreet/krb
currently_running_user.ml
open! Core open Async let passwd () = Unix.Passwd.getbyuid_exn (Unix.geteuid ()) let name () = let%bind passwd = passwd () in return passwd.name ;; module Blocking = struct let passwd () = Core_unix.Passwd.getbyuid_exn (Core_unix.geteuid ()) let name () = (passwd ()).name end
null
https://raw.githubusercontent.com/janestreet/krb/76ff1f5372c7610d8b14ea1a143a79f74d6e8c26/src/currently_running_user.ml
ocaml
open! Core open Async let passwd () = Unix.Passwd.getbyuid_exn (Unix.geteuid ()) let name () = let%bind passwd = passwd () in return passwd.name ;; module Blocking = struct let passwd () = Core_unix.Passwd.getbyuid_exn (Core_unix.geteuid ()) let name () = (passwd ()).name end
7db8555f1c5cd442e445bd6082b8c066f2bf828fba4ba2c7969a31a8df8776ac
BnMcGn/ps-gadgets
ps-gadgets.lisp
;;;; ps-gadgets.lisp (in-package #:ps-gadgets) ;;; "ps-gadgets" goes here. Hacks and glory await! (defparameter *js-second* 1000) (defparameter *js-minute* (* 60 *js-second*)) (defparameter *js-hour* (* 60 *js-minute*)) (defparameter *js-day* (* 24 *js-hour*)) (defparameter *js-week* (* 7 *js-day*)) (defparameter *j...
null
https://raw.githubusercontent.com/BnMcGn/ps-gadgets/e8a769931728510dc3639069c7d6053433b22d80/ps-gadgets.lisp
lisp
ps-gadgets.lisp "ps-gadgets" goes here. Hacks and glory await! Ok, things start to get weird. FIXME: Should check that isn't some other compound type. Else check if is known atom type. FIXME: maybe should use version from lodash FIXME: Needs to return? a promise FIXME: Maybe we should error out if we get a bad URL F...
(in-package #:ps-gadgets) (defparameter *js-second* 1000) (defparameter *js-minute* (* 60 *js-second*)) (defparameter *js-hour* (* 60 *js-minute*)) (defparameter *js-day* (* 24 *js-hour*)) (defparameter *js-week* (* 7 *js-day*)) (defparameter *js-year* (* 365 *js-day*)) (def-ps-package ps-lisp-library :code (ps* ...
3508dbbbb3e9107ca2f14177584fabad6e059072b922e2987e0a0e905bb20a06
aleator/CV
Hough.hs
{-#LANGUAGE ParallelListComp,ScopedTypeVariables#-} module Main where import CV.Image import CV.ImageOp import CV.Drawing import CV.ColourUtils import CV.HoughTransform import CV.Matrix main = do Just x <- loadImage "houghtest2.png" let hough = houghLinesStandard (unsafeImageTo8Bit x) 100 1 (pi/180) 100 ...
null
https://raw.githubusercontent.com/aleator/CV/1e2c9116bcaacdf305044c861a1b36d0d8fb71b7/examples/Hough.hs
haskell
#LANGUAGE ParallelListComp,ScopedTypeVariables#
module Main where import CV.Image import CV.ImageOp import CV.Drawing import CV.ColourUtils import CV.HoughTransform import CV.Matrix main = do Just x <- loadImage "houghtest2.png" let hough = houghLinesStandard (unsafeImageTo8Bit x) 100 1 (pi/180) 100 hough2 = houghLinesProbabilistic (unsafeImageTo8Bi...
30e125bacd3e6daea8eed68c9647b92f861a8a1719a98a189c9e455f24ab77a2
spell-music/csound-expression
Fm.hs
| Tools to build Fm synthesis graphs -- -- Example -- -- > f a = fmOut1 $ do > x1 < - fmOsc 1 > x2 < - fmOsc 2 -- > x1 `fmod` [(a, x2)] -- > return x1 module Csound.Air.Fm( -- * Fm graph Fm, FmNode, fmOsc', fmOsc, fmSig, fmod, fmOut, fmOut1, fmOut2, -- * Simplified Fm graph FmSpec(..), FmGrap...
null
https://raw.githubusercontent.com/spell-music/csound-expression/29c1611172153347b16d0b6b133e4db61a7218d5/csound-expression/src/Csound/Air/Fm.hs
haskell
Example > f a = fmOut1 $ do > x1 `fmod` [(a, x2)] > return x1 * Fm graph * Simplified Fm graph ** Specific graphs | Algorithms for DX7 fm synth Fm graph rendering ------------------------------------------------------- constructors | Creates fm node with generic wave. > fmOsc' wave modFreq | Creates f...
| Tools to build Fm synthesis graphs > x1 < - fmOsc 1 > x2 < - fmOsc 2 module Csound.Air.Fm( Fm, FmNode, fmOsc', fmOsc, fmSig, fmod, fmOut, fmOut1, fmOut2, FmSpec(..), FmGraph(..), fmRun, , dx_5 , dx_6 , dx_7 , dx_8 , dx_9 , dx_10 , dx_11 , , dx_13 , dx_14 , dx_15 , dx_16 , dx_17...
90d78d31b76044db07db4cb01dc444c3052851edc57df0276ce1575d7d325f60
helpshift/gulfstream
object_test.clj
(ns gulfstream.object-test (:require [hara.object.util :as util] [hara.object :as object] [hara.reflect :as reflect] [gulfstream.dom :as dom] [gulfstream.graph.ui :as ui] [gulfstream.core :as gs])) (comment ;; Create a Graph (gs/graph {:ui {:title "DOM"...
null
https://raw.githubusercontent.com/helpshift/gulfstream/f5e3f4159a9335bcf73ccbb750e0e6b17bde8773/candidates/test/gulfstream/object_test.clj
clojure
Create a Graph Convert Graph into Data => Show Window Convert Viewer into Data Apply stylesheet hara.object
(ns gulfstream.object-test (:require [hara.object.util :as util] [hara.object :as object] [hara.reflect :as reflect] [gulfstream.dom :as dom] [gulfstream.graph.ui :as ui] [gulfstream.core :as gs])) (comment (gs/graph {:ui {:title "DOM"} :link...
49b53611595ac5784540e87f99db9620f747387f1046f4a05a2cc4b06950c343
codxse/zenius-material
project.clj
(defproject zenius-material "0.1.1-1" :description "A ClojureScript reagent wrapper for Material-UI v1.x" :url "-material" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.10.312"] ...
null
https://raw.githubusercontent.com/codxse/zenius-material/0e5a2c64fd3455f81b8a43ff41f407c7bcdb8ce9/project.clj
clojure
(defproject zenius-material "0.1.1-1" :description "A ClojureScript reagent wrapper for Material-UI v1.x" :url "-material" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.10.312"] ...
125ab11851bf4e799848048181def0028546ff3354f97e8c9cbbc421da85b9ff
manuel-serrano/hop
service.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / hopscript / service.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/2f687a900e00b527d6661d72e4a8522467718913/hopscript/service.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / hop / hop / hopscript / service.scm * / * Author : * / * Creation : Thu Oct 17 08:19:20 2013 * / * Last change : Fri Nov 18 07:59:39 2022 ( serrano ) * / * Copy...
901ab2a3b5e3b5f24f3b106dc1a3ff15c6d75eab84ad7b266e134c9a14ac2a87
xapi-project/xen-api
cohttp_unbuffered_io.ml
* Copyright ( c ) 2012 Citrix Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND TH...
null
https://raw.githubusercontent.com/xapi-project/xen-api/997a7d8d4de560f9b4da9f45ac6d64088d1e58be/ocaml/xen-api-client/lwt/cohttp_unbuffered_io.ml
ocaml
* Use as few really_{read,write} calls as we can (for efficiency) without explicitly buffering the stream beyond the HTTP headers. This will allow us to consume the headers and then pass the file descriptor safely to another process * buffered headers * next char within the buffered headers We can safel...
* Copyright ( c ) 2012 Citrix Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND TH...
10aa39c52d1c2c1ac0472475d058d7e53fe99668829a6c8a5c4902112b6ff990
thephoeron/quipper-language
QFT.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== | This module implements the Quantum Fourier Tr...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/QuipperLib/QFT.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== ---------------------------------------------------------------------- * Low-level implementation | Like 'qft_rev', but without the c...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the | This module implements the Quantum Fourier Transform . module QuipperLib.QFT ( qft_little_endian, qft_big_endian, qft_rev, qft_int ) where import Quipper import QuipperLib.Arith import Libraries.Auxiliary (mmap) Unlike '...
2c37d405f17a903ed503b7fce8cc7cd106159b298923c9757fe457078c7cbbcc
futurice/fum2github
Fum.hs
{-# LANGUAGE OverloadedStrings #-} ---------------------------------------------------------------------------- -- | Module : Fum2GitHub . Fum Copyright : ( C ) 2015 Futurice -- License : BSD-3-Clause (see the file LICENSE) -- Maintainer : < > -- -----------------------------------------...
null
https://raw.githubusercontent.com/futurice/fum2github/60e5ed8f0f8c06011b4c1b540ba16979eebb50f6/fum2github/library/Fum2GitHub/Fum.hs
haskell
# LANGUAGE OverloadedStrings # -------------------------------------------------------------------------- | License : BSD-3-Clause (see the file LICENSE) -------------------------------------------------------------------------- * Methods * Types can be empty? ^ FUM authentication token ^ Initial url
Module : Fum2GitHub . Fum Copyright : ( C ) 2015 Futurice Maintainer : < > module Fum2GitHub.Fum ( getAllUsers , AuthToken(..) , User(..) , UsersResult(..) ) where import Control.Applicative import Control.Monad import Control.Monad.Catch import ...
b400e4bf844411a358c4d4e080122e3c69e43acf7f4d39bfeec0fca19c10005f
NicklasBoto/funQ
Deutsch.hs
| The Deustch Oracle algorithm module Deutsch where import FunQ type Oracle = (QBit, QBit) -> QM (QBit, QBit) -- | An oracle with a constant function constant :: Oracle constant (x,y) = do z <- new 0 swap (z, x) cnot (x, y) swap (z, x) return (x, y) -- | An oracle with a balanced function bal...
null
https://raw.githubusercontent.com/NicklasBoto/funQ/9444da05273be215a66044b976d031229d8832fc/examples/Deutsch.hs
haskell
| An oracle with a constant function | An oracle with a balanced function
| The Deustch Oracle algorithm module Deutsch where import FunQ type Oracle = (QBit, QBit) -> QM (QBit, QBit) constant :: Oracle constant (x,y) = do z <- new 0 swap (z, x) cnot (x, y) swap (z, x) return (x, y) balanced :: Oracle balanced (x,y) = do pauliX x cnot (x,y) pauliX x ...
ecc1a98339007b60bbb04c3f093d90e3fb8d158649bf2dbc2e83ceab6d72eb6e
dizengrong/erlang_game
gerl_center_srv_sup.erl
-module(gerl_center_srv_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% ====================================================...
null
https://raw.githubusercontent.com/dizengrong/erlang_game/4598f97daa9ca5eecff292ac401dd8f903eea867/gerl/src/center_srv/gerl_center_srv_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(gerl_center_srv_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> {ok, {{one_for_one, 10, 10}, ...
2c5dfb7ad09c34d881d204a4ffa2f45560865b3b874e310528230407c5678a51
bruz/hotframeworks
main.clj
(ns hotframeworks.views.main (:require [clojure.data.json :as json] [compojure.route :as route] [hotframeworks.views.layout :as layout] [hotframeworks.models.db :as db] [hotframeworks.models.graphs :as graphs] [hotframeworks.models.framework :as framework]))...
null
https://raw.githubusercontent.com/bruz/hotframeworks/629aa8f3cd7556479ea5cd7720d8b06ee4926ae4/src/hotframeworks/views/main.clj
clojure
" " "
(ns hotframeworks.views.main (:require [clojure.data.json :as json] [compojure.route :as route] [hotframeworks.views.layout :as layout] [hotframeworks.models.db :as db] [hotframeworks.models.graphs :as graphs] [hotframeworks.models.framework :as framework]))...
f780d5c7c8c9b2a6ac575e6e36f5f9a4a115e03bb34cf6f9521cf5df2fd6d59c
bhauman/advent-of-clojure
day12.clj
(ns advent-2017.day12 (:require [clojure.java.io :as io] [clojure.set :as st])) (def data (->> (io/resource "2017/day12") io/reader line-seq (map #(format "[%s]" %)) (map read-string))) (defn index [data'] (reduce (fn [accum [node _ & direct-co...
null
https://raw.githubusercontent.com/bhauman/advent-of-clojure/856763baf45bf7bf452ffd304dc1b89f9bc879a6/src/advent-2017/day12.clj
clojure
find group without cycles not worth optimizing for problem space
(ns advent-2017.day12 (:require [clojure.java.io :as io] [clojure.set :as st])) (def data (->> (io/resource "2017/day12") io/reader line-seq (map #(format "[%s]" %)) (map read-string))) (defn index [data'] (reduce (fn [accum [node _ & direct-co...
431b5b40cdad55909622eefef0fd73d53abddaa6f61116f8a47a21905d746bac
nvim-treesitter/nvim-treesitter
indents.scm
[ (module) (program) (subroutine) (function) ; (interface) (if_statement) (do_loop_statement) (where_statement) (derived_type_definition) (enum) ] @indent [ (end_module_statement) (end_program_statement) (end_subroutine_statement) (end_function_statement) ; (end_interface_statement) (en...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/a1b0e9ebb56f1042bc51e94252902ef14f688aaf/queries/fortran/indents.scm
scheme
(interface) (end_interface_statement)
[ (module) (program) (subroutine) (function) (if_statement) (do_loop_statement) (where_statement) (derived_type_definition) (enum) ] @indent [ (end_module_statement) (end_program_statement) (end_subroutine_statement) (end_function_statement) (end_if_statement) (end_do_loop_statement) (e...
27f4c79c2822790002dfe4586be3e7e9cbe524f032387875d95c78212d3028b8
evolutics/haskell-formatter
Splitter.hs
{-| Description : Splitting lists on sublists -} module Language.Haskell.Formatter.Toolkit.Splitter (separate) where import qualified Control.Applicative as Applicative import qualified Data.List as List import qualified Data.Monoid as Monoid import qualified Language.Haskell.Formatter.Toolkit.ListTool as ListTool impo...
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/src/library/Language/Haskell/Formatter/Toolkit/Splitter.hs
haskell
| Description : Splitting lists on sublists | Strategy to split a list on sublists. | What to do with the delimiters? | @separate d l@ splits @l@ on the delimiters @d@, which are matched in the given order. The delimiters are not kept. >>> separate ["pineapple", "pine"] "0pineapple1" ["0","1"] >>> s...
module Language.Haskell.Formatter.Toolkit.Splitter (separate) where import qualified Control.Applicative as Applicative import qualified Data.List as List import qualified Data.Monoid as Monoid import qualified Language.Haskell.Formatter.Toolkit.ListTool as ListTool import qualified Language.Haskell.Formatter.Toolkit.V...
cc641828905d7a254bc403df832926d2cc035806ed12317009512330a3624982
psibi/yesod-rest
StaticFiles.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Settings.StaticFiles where import Settings (appStaticDir, compileTimeAppSettings) import Yesod.Static (staticFilesList) -- This generates easy references to files in the static directory at compile time, -- gi...
null
https://raw.githubusercontent.com/psibi/yesod-rest/01deecd92e10378926085e418a35bdc09e8e0b18/src/Settings/StaticFiles.hs
haskell
# LANGUAGE OverloadedStrings # This generates easy references to files in the static directory at compile time, giving you compile-time verification that referenced files exist. Warning: any files added to your static directory during run-time can't be For example, to refer to @static/js/script.js@ via an identifi...
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Settings.StaticFiles where import Settings (appStaticDir, compileTimeAppSettings) import Yesod.Static (staticFilesList) accessed this way . You 'll have to use their FilePath or URL to access them . js_script_js StaticFile [ " js ...
14aa1a92554b661a1555e7b6b486f9bdc1a76d85691daab994a4a74db6fdaae0
fogfish/serverless
serverless.erl
%% Copyright ( C ) 2018 %% %% This file may be modified and distributed under the terms of the MIT license . See the LICENSE file for details . %% %% -module(serverless). -compile({parse_transform, category}). -export([ spawn/2, %% logger api emergency/1, alert/1, critical/1, error/1, ...
null
https://raw.githubusercontent.com/fogfish/serverless/c804e510e9c473941b1b457ba175f537f1939f39/src/serverless.erl
erlang
This file may be modified and distributed under the terms logger api mock lambda runtime ------------------------------------------------------------------ api ------------------------------------------------------------------ ------------------------------------------------------------------ error logger ...
Copyright ( C ) 2018 of the MIT license . See the LICENSE file for details . -module(serverless). -compile({parse_transform, category}). -export([ spawn/2, emergency/1, alert/1, critical/1, error/1, warning/1, notice/1, info/1, debug/1, mock/2, mock/3 ]). spawn(Lambda, ["...
883e23976ac321a64cfebd4f01b846e5f5eab10451a8514aa2f4ca33f4c120df
SimulaVR/godot-haskell
InputEventAction.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.InputEventAction (Godot.Core.InputEventAction.is_pre...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/InputEventAction.hs
haskell
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.InputEventAction (Godot.Core.InputEventAction.is_pre...
741166c97153a85bd928a4107e78572550cbeb8fc12c8719f8734abb8a4c99e3
cirfi/sicp-my-solutions
1.24.scm
define runtime for GNU ;;; (define (runtime) (tms:clock (times))) ;;; define runtime for Racket ;;; (define (runtime) (current-milliseconds)) ;;; timed prime, modified (define (timed-prime-test n) (start-prime-test n (runtime))) (define (start-prime-test n start-time) (if (prime? n) (report-prime n (- (r...
null
https://raw.githubusercontent.com/cirfi/sicp-my-solutions/4b6cc17391aa2c8c033b42b076a663b23aa022de/ch1/1.24.scm
scheme
(define (runtime) (tms:clock (times))) define runtime for Racket (define (runtime) (current-milliseconds)) timed prime, modified prime? search-for-primes 1013 *** .00999999999999801 10007 *** 1.0000000000001563e-2 100003 *** .00999999999999801 10000000033 *** 1.9999999999999574e-2 10000000061 *** 1.999999999...
define runtime for GNU (define (timed-prime-test n) (start-prime-test n (runtime))) (define (start-prime-test n start-time) (if (prime? n) (report-prime n (- (runtime) start-time)) #f)) (define (report-prime n elapsed-time) (display n) (display " *** ") (display elapsed-time) (newline)) (d...
f27d91644d43219e97db076a98a08d68f0f5b89b8b0bb4a4320de35699c8b6ed
ThomasHintz/keep-the-records
production.scm
(require-extension spiffy) (root-path "~/keep-the-records") (debug-log "~/keep-the-records/logs/debug.log") (error-log "~/keep-the-records/logs/error.log")
null
https://raw.githubusercontent.com/ThomasHintz/keep-the-records/c20e648e831bed2ced3f2f74bfc590dc06b5f076/production.scm
scheme
(require-extension spiffy) (root-path "~/keep-the-records") (debug-log "~/keep-the-records/logs/debug.log") (error-log "~/keep-the-records/logs/error.log")
9c270172b08f38869f9f00551272b01b244e56562e91ce64b2708b458684388b
Flexiana/tiny-rbac
acl.clj
(ns liberator-demo.acl (:require [tiny-rbac.builder :as b] [liberator-demo.models.users :as user-model] [tiny-rbac.core :as acl] [liberator-demo.models.posts :as post-model])) (def role-set (-> {} (b/add-resource [:post :comment]) (b/add-action :post [:read :create :...
null
https://raw.githubusercontent.com/Flexiana/tiny-rbac/92627a605e94d97a2396aea004312962361cb8a8/examples/liberator-demo/src/liberator_demo/acl.clj
clojure
(ns liberator-demo.acl (:require [tiny-rbac.builder :as b] [liberator-demo.models.users :as user-model] [tiny-rbac.core :as acl] [liberator-demo.models.posts :as post-model])) (def role-set (-> {} (b/add-resource [:post :comment]) (b/add-action :post [:read :create :...
6048024f3faedb5446c014e74243469ba0860ed39111d9b63c692b3a0cf7d209
ocaml-multicore/tezos
test_proxy.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_client/test/test_proxy.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
1c42e7f0d8760ff5188611f2dd0fb2d6d2f25d637f6bd4afb2c978d6e94c8ccd
ocaml-multicore/tezos
alpha_services.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/alpha_services.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 - 2020 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WI...
617e2f52ca2ee3a66b55f27488e2daa7969375913a3a48e8f55f0044a0932454
raaz-crypto/raaz
CPortable.hs
{-# LANGUAGE DataKinds #-} | The portable C - implementation of Poly1305 . module Poly1305.CPortable ( name, primName, description , Prim, Internals, BufferAlignment , BufferPtr , additionalBlocks , processBlocks , processLast , Key(..) ) where...
null
https://raw.githubusercontent.com/raaz-crypto/raaz/1d17ead6d33c5441a59dbc4ff33197e2bd6eb6ec/implementation/Poly1305/CPortable.hs
haskell
# LANGUAGE DataKinds # | Incrementally process poly1305 blocks. | Process a message that is exactly a multiple of the blocks. | Run an IO action with the pointers to the element, r and s cells. | Process a message that has its last block incomplete. The total blocks argument here is the greatest m...
| The portable C - implementation of Poly1305 . module Poly1305.CPortable ( name, primName, description , Prim, Internals, BufferAlignment , BufferPtr , additionalBlocks , processBlocks , processLast , Key(..) ) where import Raaz.Core import Raaz.Core.Types.In...
526562ab07305e00041e2b455ae815da4f3d2a9c790d1284f73afa0e9ffc01aa
shrdlu68/cl-tls
crypto.lisp
(in-package :cl-tls) P_hash(secret , seed ) = HMAC_hash(secret , A(1 ) + seed ) + ;; HMAC_hash(secret, A(2) + seed) + ;; HMAC_hash(secret, A(3) + seed) + ... ;; A() ;; A(0) = seed ;; A(i) = HMAC_hash(secret, A(i-1)) (defun p-hash (secret data output-length &optional (dig...
null
https://raw.githubusercontent.com/shrdlu68/cl-tls/dd8d73e9b77d15e3e1a0a9e8ecace83352aac359/src/tls/crypto.lisp
lisp
HMAC_hash(secret, A(2) + seed) + HMAC_hash(secret, A(3) + seed) + ... A() A(0) = seed A(i) = HMAC_hash(secret, A(i-1)) master_secret = PRF(pre_master_secret, "master secret", ClientHello.random + ServerHello.random) key_block = PRF(SecurityParameters.ma...
(in-package :cl-tls) P_hash(secret , seed ) = HMAC_hash(secret , A(1 ) + seed ) + (defun p-hash (secret data output-length &optional (digest-algorithm :sha256)) (let ((output (make-array output-length :element-type 'octet))) (loop with digest-size = (ironclad:digest-length digest-algorithm) for hmac...
7e099f6855c7da25945b7a3c7d4e12c4517f681f16e1c90c30c12885d4eb7d82
tbsschroeder/clojure-webshop-app
blocks.clj
(ns metro.components.web.blocks (:require [metro.components.db.articles :as article] [ring.util.response :as ring-resp] [hiccup.page :as hp])) (defn base-template [& body] (ring-resp/response (hp/html5 [:head [:title "Webshop"] [:meta {:charset "utf-8"}] [:meta {:http-...
null
https://raw.githubusercontent.com/tbsschroeder/clojure-webshop-app/dc57eecb19e09583cb5f08b65cbe0f01ceb87cf5/src/metro/components/web/blocks.clj
clojure
(ns metro.components.web.blocks (:require [metro.components.db.articles :as article] [ring.util.response :as ring-resp] [hiccup.page :as hp])) (defn base-template [& body] (ring-resp/response (hp/html5 [:head [:title "Webshop"] [:meta {:charset "utf-8"}] [:meta {:http-...
d2a1de9b58cd04c38cea5c1d0e41113d701745fa05e9a7d3d0aeb7c6db53a64c
robert-strandh/SICL
unintern-defun.lisp
(cl:in-package #:sicl-package) (defun unintern (symbol &optional (package-designator *package*)) (let ((package (package-designator-to-package package-designator)) (name (symbol-name symbol))) (if (symbol-is-present-p symbol package) (progn (remhash name (external-symbols package)) ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/65d7009247b856b2c0f3d9bb41ca7febd3cd641b/Code/Package/unintern-defun.lisp
lisp
(cl:in-package #:sicl-package) (defun unintern (symbol &optional (package-designator *package*)) (let ((package (package-designator-to-package package-designator)) (name (symbol-name symbol))) (if (symbol-is-present-p symbol package) (progn (remhash name (external-symbols package)) ...
776f4fce20b6aa80d4707d8573aed07de8549584feb22b4d423f3bd23a36e03e
rems-project/cerberus
global_ocaml.mli
val (-|): ('b -> 'c) -> ('a -> 'b) -> 'a -> 'c type error_verbosity = | Basic (* similar to a normal compiler *) | RefStd (* add an std reference to Basic *) | QuoteStd (* print a full quote of the std text *) type execution_mode = | Exhaustive | Random type cerberus_conf = { backend_name: string...
null
https://raw.githubusercontent.com/rems-project/cerberus/09bd47db2de59c108ba488108561a34b659761c5/util/global_ocaml.mli
ocaml
similar to a normal compiler add an std reference to Basic print a full quote of the std text NOTE: used in driver.lem
val (-|): ('b -> 'c) -> ('a -> 'b) -> 'a -> 'c type error_verbosity = type execution_mode = | Exhaustive | Random type cerberus_conf = { backend_name: string; exec_mode_opt: execution_mode option; concurrency: bool; error_verbosity: error_verbosity; defacto: bool; allows GCC extensio...
f676a2c2514cb8ffdeb3efd2f669812fa0320c285d77f099ef2da8055455103d
gusbicalho/haskell-todo
UserSpec.hs
HLINT ignore " Redundant do " module HaskellTodo.Adapters.UserSpec (spec) where import Test.Hspec import qualified HaskellTodo.Adapters.User as A.User import qualified HaskellTodo.Models.User as M.User import qualified HaskellTodo.WireTypes.User as Wire.User spec :: Spec spec = do describe "toWire" $ do i...
null
https://raw.githubusercontent.com/gusbicalho/haskell-todo/f28b0d05ddb72764cf01d29fa978457ac455ac81/test/HaskellTodo/Adapters/UserSpec.hs
haskell
HLINT ignore " Redundant do " module HaskellTodo.Adapters.UserSpec (spec) where import Test.Hspec import qualified HaskellTodo.Adapters.User as A.User import qualified HaskellTodo.Models.User as M.User import qualified HaskellTodo.WireTypes.User as Wire.User spec :: Spec spec = do describe "toWire" $ do i...
4c666d11f93ae411aec4ce2c5c3ba517c5a37acaeaec94f977dc3662aeb36b4c
typelead/etlas
FetchUtils.hs
----------------------------------------------------------------------------- -- | Module : Distribution . Client . FetchUtils Copyright : ( c ) 2005 2011 -- License : BSD-like -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Functions f...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas/Distribution/Client/FetchUtils.hs
haskell
--------------------------------------------------------------------------- | License : BSD-like Maintainer : Stability : provisional Portability : portable Functions for fetching packages --------------------------------------------------------------------------- * fetching packages ** specifical...
Module : Distribution . Client . FetchUtils Copyright : ( c ) 2005 2011 # LANGUAGE RecordWildCards # module Distribution.Client.FetchUtils ( fetchPackage, isFetched, checkFetched, checkRepoTarballFetched, fetchRepoTarball, fetchSourceRepo, download...
c6dfd51451f709143966e277418dafda326cebc27ca56b4a8914d2db96f59dfc
Vaelatern/necessary-evil
methodcall.clj
(ns necessary-evil.methodcall "This module implements the methodCall wire format portion of the XML-RPC spec. You can find the official spect at -rpc.com/spec. It is expected that this module will always be required, rather than used. The parse function will consume a clojure.xml structure and return a ...
null
https://raw.githubusercontent.com/Vaelatern/necessary-evil/e4e8c9ccb0a631b57ef2eed52b8670bf9f705567/src/necessary_evil/methodcall.clj
clojure
it takes a The following functions parse the xml structure of a <methodCall> The following functions are used to emit a <methodCall> xml structure
(ns necessary-evil.methodcall "This module implements the methodCall wire format portion of the XML-RPC spec. You can find the official spect at -rpc.com/spec. It is expected that this module will always be required, rather than used. The parse function will consume a clojure.xml structure and return a ...
3aed8ced34ff69b92ef0d6c3961cb901942e3da8c4596deb5b43337b6da3e433
kovisoft/slimv
allegro.lisp
;;;; -*- indent-tabs-mode: nil; outline-regexp: ";;;;;* "; -*- ;;; swank-allegro.lisp --- Allegro CL specific code for SLIME . ;;; Created 2003 ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; (defpackage swank/allegro (:use cl swank/backend)) (in-...
null
https://raw.githubusercontent.com/kovisoft/slimv/cf8334cb7d71bf9793cb5588497b4fe15e501626/slime/swank/allegro.lisp
lisp
-*- indent-tabs-mode: nil; outline-regexp: ";;;;;* "; -*- This code has been placed in the Public Domain. All warranties are disclaimed. swank-mop UTF8 TCP Server Unix signals Misc Debugger :print-before is kind of mis-used but we just want to stuff our :after methods, which need specia...
swank-allegro.lisp --- Allegro CL specific code for SLIME . Created 2003 (defpackage swank/allegro (:use cl swank/backend)) (in-package swank/allegro) (eval-when (:compile-toplevel :load-toplevel :execute) (require :sock) (require :process) #+(version>= 8 2) (require 'lldb)) (defimplementation gray-pa...
988c88baab033e5a9d9a82062c083719b5236f2368d71952b6a08cb91314a8cd
nyu-acsys/drift
reverse.ml
(*rename error*) let rec reverseinner (xs:int list) (acc:int list) = match xs with [] -> acc | x :: xs' -> reverseinner xs' (x :: acc) let reverse (xs:int list) = reverseinner xs [] let rec make_list n = if n = 0 then [] else n :: make_list (n - 1) let hd (xs:int list) = match xs with [] -...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DOrder/list/reverse.ml
ocaml
rename error
let rec reverseinner (xs:int list) (acc:int list) = match xs with [] -> acc | x :: xs' -> reverseinner xs' (x :: acc) let reverse (xs:int list) = reverseinner xs [] let rec make_list n = if n = 0 then [] else n :: make_list (n - 1) let hd (xs:int list) = match xs with [] -> -1 | x::xs'...
2c3de92df29c450b622f2d9cf7b0d07d6ebdc6ebfe626d34d3e3b596db190f3b
lamdu/hypertypes
Infer.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Hyper.Class.Infer ( InferOf , Infer (..) , InferChild (..) , _InferChild , InferredChild (..) , inType , inRep ) where import qualified Control.Lens as Lens import GHC.Generics import Hyper...
null
https://raw.githubusercontent.com/lamdu/hypertypes/161142e0d9f503194b85fb6f5b2a5907a1ae3783/src/Hyper/Class/Infer.hs
haskell
Most commonly it is an inferred type, using But it may also be other things, for example: * An inferred value (for types inside terms) * An inferred type together with a scope ^ Inferred node. An 'inferBody' implementation needs to place this value in the corresponding child node of the inferred term body ^...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Hyper.Class.Infer ( InferOf , Infer (..) , InferChild (..) , _InferChild , InferredChild (..) , inType , inRep ) where import qualified Control.Lens as Lens import GHC.Generics import Hyper...
fea556406225c6de8f8aa591bbb22180730e1306e67e35ffc2663b308eb37664
simplegeo/erlang
supervisor_1.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/stdlib/test/supervisor_1.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(supervisor_1). -export([start_chil...
c8d903ad62fc1ed5645cc5becf947d8b2ebe5fd61e9e8cfa47b49b9dd448b742
marksteele/cinched
cinched_log.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2016 , %%% @doc Cinched audit logging service %%% @end Created : 24 Jan 2016 by < > %%%------------------------------------------------------------------- This file is provided to you under the Apache License , %...
null
https://raw.githubusercontent.com/marksteele/cinched/5284d048c649128fa8929f6e85cdc4747d223427/src/cinched_log.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- 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 expres...
@author < > ( C ) 2016 , Cinched audit logging service Created : 24 Jan 2016 by < > 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 O...
1ab3f822a5583f001429ee42ba74c5705b87c9a6d7c7668f01a64019c5ae6754
anuragsoni/http_async
hello_world.ml
open! Core open! Async open Http_async let () = Command_unix.run (Server.run_command ~summary:"Hello world HTTP Server" (fun addr (request, _body) -> Log.Global.info "(%s): %s" (Socket.Address.Inet.to_string addr) (Request.path request); return (Response.create `Ok, Body....
null
https://raw.githubusercontent.com/anuragsoni/http_async/602889e33b92a842ce7a64dcc259270f529231e3/example/hello_world.ml
ocaml
open! Core open! Async open Http_async let () = Command_unix.run (Server.run_command ~summary:"Hello world HTTP Server" (fun addr (request, _body) -> Log.Global.info "(%s): %s" (Socket.Address.Inet.to_string addr) (Request.path request); return (Response.create `Ok, Body....
8fae2b3014442d678404690dfa1c43fc7d8b0979a856a15d2de212cf7286b5fa
openvstorage/alba
gcrypt_test.ml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open Gcrypt open Lwt.Infix let test_encrypt_decrypt_cbc () = let t () = ...
null
https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/tools/gcrypt_test.ml
ocaml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open Gcrypt open Lwt.Infix let test_encrypt_decrypt_cbc () = let t () = ...
00e715740db215409583200576db04cedee27e8b88aee7504032884f93854041
gfour/gic
tree-let.hs
data Tree = Node Tree Tree | Leaf; result = let t = Node (Node Leaf Leaf) (Node Leaf (Node Leaf Leaf)) in countDepth t; countDepth tr = let max a b = if a > b then a else b in case tr of Leaf -> 1 Node node_0 node_1 -> 1 + (max (countDepth node_0) (countDepth node_1));
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/Examples/Data/tree-let.hs
haskell
data Tree = Node Tree Tree | Leaf; result = let t = Node (Node Leaf Leaf) (Node Leaf (Node Leaf Leaf)) in countDepth t; countDepth tr = let max a b = if a > b then a else b in case tr of Leaf -> 1 Node node_0 node_1 -> 1 + (max (countDepth node_0) (countDepth node_1));
43341311cf2c14452b244f8c41ee1a7deb0430f49bd5ff4e7d65d60c8741382b
compiling-to-categories/concat
Distribution.hs
# LANGUAGE FlexibleInstances # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE CPP # # OPTIONS_GHC -Wall # { - # OPTIONS_GHC -Wno - unused - imports # - } -- TEMP -- | A category of probabilistic functions using discrete distributions module ConCat.Distribution wh...
null
https://raw.githubusercontent.com/compiling-to-categories/concat/49e554856576245f583dfd2484e5f7c19f688028/examples/src/ConCat/Distribution.hs
haskell
TEMP | A category of probabilistic functions using discrete distributions | Distribution category TODO: generalize Dist to a category transformer TODO: Perhaps replace 'distrib' with a simpler alternative. | Embed a regular deterministic function needed for Map keys Finite maps here denote total functions with ...
# LANGUAGE FlexibleInstances # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE CPP # # OPTIONS_GHC -Wall # module ConCat.Distribution where import Prelude hiding (id,(.)) import Data.Map import ConCat.Misc (R) import ConCat.AltCat import qualified ConCat.Category...
3e32e670a438c12b4656fe55ca243302b8b7dc4c3c81402a0991f8639c943610
composewell/unicode-transforms
NormalizeStream.hs
{-# OPTIONS_GHC -funbox-strict-fields #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE LambdaCase # # LANGUAGE TupleSections # -- | -- Module : Data.Unicode.Internal.NormalizeStream Copyright : ( c ) 2016 ( c ) 2020 -- -- License : BSD-3-Clause -- Maintainer : -- Stabili...
null
https://raw.githubusercontent.com/composewell/unicode-transforms/7e97adff7c230930035640529fb7c200547bd4e0/Data/Unicode/Internal/NormalizeStream.hs
haskell
# OPTIONS_GHC -funbox-strict-fields # # LANGUAGE BangPatterns # | Module : Data.Unicode.Internal.NormalizeStream License : BSD-3-Clause Maintainer : Stability : experimental Stream based normalization. Internal modules ----------------------------------------------------------------------------- ...
# LANGUAGE CPP # # LANGUAGE LambdaCase # # LANGUAGE TupleSections # Copyright : ( c ) 2016 ( c ) 2020 module Data.Unicode.Internal.NormalizeStream ( UC.DecomposeMode(..) , stream , unstream , unstreamC ) where import Data.Char (chr, ord) import GHC.ST (ST(..)) imp...
456542796b5872177e09eee699ba0bc42cf53057ebcedc0a0307d64477b8cd54
maralorn/kassandra
Sorting.hs
module Kassandra.Sorting ( sortTasks, saveSorting, SortPosition (SortPosition), SortMode (SortModePartof, SortModeTag), ) where import qualified Data.Aeson as Aeson import Data.Scientific (toRealFloat) import Data.Set (member) import Kassandra.Types (TaskInfos) import qualified Reflex as R import Relude.Extra....
null
https://raw.githubusercontent.com/maralorn/kassandra/598133b89ab4e4a6209da920636e9e6ee540f38a/apps/kassandra/kassandra/src/Kassandra/Sorting.hs
haskell
The list of badnesses has to contain its maximum
module Kassandra.Sorting ( sortTasks, saveSorting, SortPosition (SortPosition), SortMode (SortModePartof, SortModeTag), ) where import qualified Data.Aeson as Aeson import Data.Scientific (toRealFloat) import Data.Set (member) import Kassandra.Types (TaskInfos) import qualified Reflex as R import Relude.Extra....
e86d866489d5590142375b83dc11324e2d08bfd69f1a0e3a74df54c01ce078a0
ddmcdonald/sparser
ns-unknown-rd-items-phase3-16001-16400.lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-16001-16400* '(".1798_1799GT" ".1799_1800TG" ".444+1G" ".945_946" "474-+30" "4eBP1-S240" "4eBP1-T37" "A+C" "A-1195G" "A-1290G" "A-4" "A-5" "A-D" "A-related" "A-rich" "A-type" "A1" "A146T" "A167T" "A188T" "A1L" "A2" "A276D" "A2a" "A2b" "A30" "A305A" "A...
null
https://raw.githubusercontent.com/ddmcdonald/sparser/304bd02d0cf7337ca25c8f1d44b1d7912759460f/Sparser/code/s/tools/ns-stuff/old-unknown/ns-unknown-rd-items-phase3-16001-16400.lisp
lisp
(IN-PACKAGE :SP) (DEFPARAMETER SPARSER::*NS-RD-PHASE3-16001-16400* '(".1798_1799GT" ".1799_1800TG" ".444+1G" ".945_946" "474-+30" "4eBP1-S240" "4eBP1-T37" "A+C" "A-1195G" "A-1290G" "A-4" "A-5" "A-D" "A-related" "A-rich" "A-type" "A1" "A146T" "A167T" "A188T" "A1L" "A2" "A276D" "A2a" "A2b" "A30" "A305A" "A...
75924737e1fcf173c82e8e49f4704ad44e5d19bae6b2544011452343b78377d8
dpapathanasiou/tweet-secret
core_test.clj
(ns tweet-secret.core-test (:require [clojure.test :refer :all] [tweet-secret.core :as core :refer :all] [tweet-secret.config :as config] [tweet-secret.utils :as utils] [tweet-secret.languages :as languages])) Test parameters for English (def english-dict '"/~...
null
https://raw.githubusercontent.com/dpapathanasiou/tweet-secret/764242341c03439aecf655fe8ca8e0384a25643f/test/tweet_secret/core_test.clj
clojure
(ns tweet-secret.core-test (:require [clojure.test :refer :all] [tweet-secret.core :as core :refer :all] [tweet-secret.config :as config] [tweet-secret.utils :as utils] [tweet-secret.languages :as languages])) Test parameters for English (def english-dict '"/~...
eb2e97819d649da346abfb0ec14c842de67cbde5d100d3ae2f957d9f493c2010
mmottl/gsl-ocaml
qrng_ex.ml
open Gsl let _ = let qrng = Qrng.make Qrng.SOBOL 2 in let tmp = Array.make 2 0. in for _i = 0 to 1023 do Qrng.get qrng tmp ; Printf.printf "%.5f %.5f\n" tmp.(0) tmp.(1) done
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/examples/qrng_ex.ml
ocaml
open Gsl let _ = let qrng = Qrng.make Qrng.SOBOL 2 in let tmp = Array.make 2 0. in for _i = 0 to 1023 do Qrng.get qrng tmp ; Printf.printf "%.5f %.5f\n" tmp.(0) tmp.(1) done
912bd088654dd685f4cece41a18829343c01b4bd13e14ebd58d34d98a4b6dad2
RefactoringTools/HaRe
FunIn2.expected.hs
module FunIn2 where --Any unused parameter to a definition can be removed. --In this example: remove the parameter 'x' to 'foo' inc :: Int -> Int foo :: Int foo = h + t where (h,t) = head $ zip [1..7] [3..15] inc x=x+1 main :: Int main = foo
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/RmOneParameter/FunIn2.expected.hs
haskell
Any unused parameter to a definition can be removed. In this example: remove the parameter 'x' to 'foo'
module FunIn2 where inc :: Int -> Int foo :: Int foo = h + t where (h,t) = head $ zip [1..7] [3..15] inc x=x+1 main :: Int main = foo
5a94cfdd753654cd0293c24fcc3b827a5f83f314a57e30a326e830c6ec3001ce
cyga/real-world-haskell
LocalReader.hs
file : ch18 / LocalReader.hs import Control.Monad.Reader myName step = do name <- ask return (step ++ ", I am " ++ name) localExample :: Reader String (String, String, String) localExample = do a <- myName "First" b <- local (++"dy") (myName "Second") c <- myName "Third" return (a, b, c)
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch18/LocalReader.hs
haskell
file : ch18 / LocalReader.hs import Control.Monad.Reader myName step = do name <- ask return (step ++ ", I am " ++ name) localExample :: Reader String (String, String, String) localExample = do a <- myName "First" b <- local (++"dy") (myName "Second") c <- myName "Third" return (a, b, c)
76143c595fca0896f31875c139c77c66220215eb11c7dc74ff8547d5ecfe183d
ferd/dlhttpc
webserver.erl
%%% ---------------------------------------------------------------------------- Copyright ( c ) 2009 , Erlang Training and Consulting Ltd. %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are me...
null
https://raw.githubusercontent.com/ferd/dlhttpc/10726522af5a5df2ada91bb7c08fcfcc62fb7a4d/test/webserver.erl
erlang
---------------------------------------------------------------------------- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
Copyright ( c ) 2009 , Erlang Training and Consulting Ltd. * Neither the name of Erlang Training and Consulting Ltd. nor the IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL Erlang Training and Consulting Ltd. BE @author < > @author < > ...
386345d42cafc6a75f3f44b17f557da9d9f01c3ac3238b7b537908d59b7bf88d
uber/NEAL
swift_provider.ml
Copyright ( c ) 2017 Uber Technologies , Inc. (* *) (* Permission is hereby granted, free of charge, to any person obtaining a copy *) (* of this software and associated documentation files (the "Software"), to deal *) in the Software without restriction , including without limitation the rights (* to use, copy, mo...
null
https://raw.githubusercontent.com/uber/NEAL/6a382a3f957c3bb4abe3f9aba9761ffef13fa5fe/src/providers/swift/swift_provider.ml
ocaml
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 furnished to do so, subject to the following conditions: The above copyright n...
Copyright ( c ) 2017 Uber Technologies , Inc. 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 K...
b0fb3e8d9a94466439c4a9f8b5963e92a61f2cb060ee51a9ecc89a446c5a6343
inhabitedtype/ocaml-aws
deleteUserGroup.ml
open Types open Aws type input = DeleteUserGroupMessage.t type output = UserGroup.t type error = Errors_internal.t let service = "elasticache" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of ser...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/deleteUserGroup.ml
ocaml
open Types open Aws type input = DeleteUserGroupMessage.t type output = UserGroup.t type error = Errors_internal.t let service = "elasticache" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of ser...
ac061717b623461a4b14d6d27723aef0613d15bd0154df37cf343ec0245af318
sky-big/RabbitMQ
rabbit_authn_backend.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_authn_backend.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Check a user ca...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
79e003e9086a9fc84d492ce0a4b288d8046e731bff99a46ff2d5e4935049e6e2
hanshuebner/pixelisp
gallery.lisp
;; -*- Lisp -*- (defpackage :gallery (:use :cl :alexandria) (:export #:play #:playlist #:make-gif-pathname #:import-gif #:chill-factor #:settings)) (in-package :gallery) (defparameter *gifs-directory* #P"gifs/") (storage:defconfig 'playlist nil) (storage:de...
null
https://raw.githubusercontent.com/hanshuebner/pixelisp/b4ccde622e85c0131515101989b4cdddae15c0c9/src/gallery.lisp
lisp
-*- Lisp -*-
(defpackage :gallery (:use :cl :alexandria) (:export #:play #:playlist #:make-gif-pathname #:import-gif #:chill-factor #:settings)) (in-package :gallery) (defparameter *gifs-directory* #P"gifs/") (storage:defconfig 'playlist nil) (storage:defconfig 'animati...
1d40ca63be0f706310873aa51354d15b972920495ad0e04222cf567bf8329fe9
bluemont/kria
schema_get.clj
(defn conn-cb [asc e a] (println (if e e "connected"))) (def conn (client/connect "127.0.0.1" 8087 conn-cb)) (schema/get conn "S-600" result-cb) (keys @result) ; (:schema) (keys (:schema @result)) ; (:name :content) (-> @result :schema :name) ; "S-600" (print (-> @result :schema :content))
null
https://raw.githubusercontent.com/bluemont/kria/8ed7fb1ebda8bfa1a2a6d7a3acf05e2255fcf0f0/doc/examples/schema_get.clj
clojure
(:schema) (:name :content) "S-600"
(defn conn-cb [asc e a] (println (if e e "connected"))) (def conn (client/connect "127.0.0.1" 8087 conn-cb)) (schema/get conn "S-600" result-cb) (print (-> @result :schema :content))
fe3ad95318dc05e8b53b522685ae99186b0fc50c6103c1fb7c3db1d2ff01f95b
nklein/userial
serialize.lisp
Copyright ( c ) 2011 nklein software MIT License . See included LICENSE.txt file for licensing details . (in-package :userial) ;;; serialize generic function (contextl:define-layered-function serialize (type value &key &allow-other-keys) (:documentation "Method used to serialize a VALUE of given TYPE into BUFFE...
null
https://raw.githubusercontent.com/nklein/userial/dc34fc73385678a61c39e98f77a4443433eedb1d/userial/serialize.lisp
lisp
serialize generic function unserialize generic function help define a serializer help define an unserializer help build integer serialize/unserialize methods define standard unsigned-int serialize/deserialize methods progressively stored unsigned integers define standard signed-int serialize/deserialize methods...
Copyright ( c ) 2011 nklein software MIT License . See included LICENSE.txt file for licensing details . (in-package :userial) (contextl:define-layered-function serialize (type value &key &allow-other-keys) (:documentation "Method used to serialize a VALUE of given TYPE into BUFFER") (:method (type value &key...
366bd4878074c39d13608f57e22193c14d09314abd229275bd3125a7702c347e
bluelisp/hemlock
termcap.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; ;;; ;;; ******************************************...
null
https://raw.githubusercontent.com/bluelisp/hemlock/47e16ba731a0cf4ffd7fb2110e17c764ae757170/src/termcap.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- ********************************************************************** ********************************************************************** Terminal Capability should be deleted entirely.
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . Written by (in-package :hemlock-internals) This stuff used to parse a Termcap file . Now it 's just a compatibility layer over the Terminfo code . At some point th...
c3617ffc48ed15a0bfca7a8534f66ce5e69fe9f3ed33b57dbf86cdc74dd017f4
Frama-C/Frama-C-snapshot
wfile.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/wfile.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
cfbf169bd0676b50b087749b8f016acbba69c9b7c1182ff1260be5ee4dd0844d
sjl/euler
problems.lisp
(in-package :euler) (defun problem-10 () The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17 . Find the sum of all the primes below two million . (summation (sieve 2000000))) (defun problem-11 () In the 20×20 grid below , four numbers along a diagonal line have been marked ;; in red. ;; The product of ...
null
https://raw.githubusercontent.com/sjl/euler/29cd8242172a2d11128439bb99217a0a859057ed/src/problems.lisp
lisp
in red. horizontal vertical backslash \ slash / The sequence of triangle numbers is generated by adding the natural divisors? The following iterative sequence is defined for the set of positive integers: n → n/2 (n is even) n → 3n + 1 (n is odd) sequence: corner. in words, how many let...
(in-package :euler) (defun problem-10 () The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17 . Find the sum of all the primes below two million . (summation (sieve 2000000))) (defun problem-11 () In the 20×20 grid below , four numbers along a diagonal line have been marked The product of these numbers is 2...
a2e2c05ab28aaea95788853f0a2612b3925ab8275db72eb5c54f6a0b7ed20d08
raimohanska/snap-mongo-rest
Mongo.hs
module Util.Mongo where import Control.Monad import Control.Applicative import Data.Bson.Mapping import Database.MongoDB import Control.Monad.IO.Class mongoPost :: Applicative m => MonadIO m => Bson a => Database -> Collection -> a -> m String mongoPost db collection ...
null
https://raw.githubusercontent.com/raimohanska/snap-mongo-rest/9659e799e0c7d8cb808361b01e661b272e9e8025/src/Util/Mongo.hs
haskell
module Util.Mongo where import Control.Monad import Control.Applicative import Data.Bson.Mapping import Database.MongoDB import Control.Monad.IO.Class mongoPost :: Applicative m => MonadIO m => Bson a => Database -> Collection -> a -> m String mongoPost db collection ...
66866730cec3d673cbf0eac5cfdcc60b7ed8f7ccf9e0b3a19a39a4cbfc166c09
zhugecaomao/AutoLISP
dycy-标注序号.lsp
用于标注序号的程序 ;; 希望能够对大家的绘图工作有所帮助 ;;用于标注序号的LISP程序 ;;序号可以自动累计标注 必须在图形中设置6图层用于标注 (defun C:DYCY();;;(/ r p1 p2 p3 p4 x y a x1 y1 n nn) 文字设置 " 汉字HZ字型是否存在 " 字高是否为定值 (/= (getvar "TEXTSTYLE") "standard");当前字型是否为"hz" ) (command "style" "standard" "gbeitc,gbcbig" (* mm 10) 1 0 "n" "n");设置字型" ) ) (defun tc_sz() 6图层是否存在 ...
null
https://raw.githubusercontent.com/zhugecaomao/AutoLISP/3e97f911068124f3ea8a1cf6f1d8be9f8227c64b/dycy-%E6%A0%87%E6%B3%A8%E5%BA%8F%E5%8F%B7.lsp
lisp
希望能够对大家的绘图工作有所帮助 用于标注序号的LISP程序 序号可以自动累计标注 (/ r p1 p2 p3 p4 x y a x1 y1 n nn) 当前字型是否为"hz" 设置字型" 保存初始设置 取消捉 * ; * * * * * * * * (if (and (< x 0)(> n 0)) ********** (if (<= n 0) (command "text" "j" "m" p3 "0" no));********** (setq no (+ 1 no)) 88888888888 恢复原设置
用于标注序号的程序 必须在图形中设置6图层用于标注 文字设置 " 汉字HZ字型是否存在 " 字高是否为定值 ) ) ) (defun tc_sz() 6图层是否存在 当前图层是否为6图层 ) LCA - COMMENT : The LAYER command has new options . 设置"dim图层 " 设置线型为连续线型 (command "layer" "s" "6" "c" "white" "" "") ) 判断条件不成立设置图层 (command "layer" "s" "6" "c" "white" "" "") ...
fcdeb0dc5f2213a4e1f31795ae2172398d2defa2db1df012bd44b9179e6d16b6
Nibre/BlamScript-Research
08b_deltacontrol_cinematics.lisp
CINEMATICS FOR LEVEL 08B , " DELTA CONTROL " = = = = = = = = = = = = = = = = = = = = = = = = = = = ; ===================================================================== ;* ;| Between the desire ;| And the spasm ;| Between the potency ;| And the existence ;| Between the essence ;| And the descent ;| Fall...
null
https://raw.githubusercontent.com/Nibre/BlamScript-Research/dd17538dcbdc78f391effb341846fbaf9a1f8643/h2v/08b_deltacontrol/08b_deltacontrol_cinematics.lisp
lisp
===================================================================== * | Between the desire | And the spasm | Between the potency | And the existence | Between the essence | And the descent | Falls the Shadow... | | ...This is the way the world ends | Not with a bang but a whimper. *; C08_INTRA1 SCENE...
CINEMATICS FOR LEVEL 08B , " DELTA CONTROL " = = = = = = = = = = = = = = = = = = = = = = = = = = = GLOBALS & STUBS = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = (global short sound_offset 15) (global short prediction_offset 45) (script st...