_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
2bcba69632430c55c281d860023031ab9d6454c651fbfffa770e91860ce397c1
dm3/manifold-cljs
daisy.cljs
(ns manifold-test.daisy (:require [cljs.core.async :refer [chan <! >!]] [manifold-cljs.stream :as s] [manifold-cljs.deferred :as d]) (:require-macros [cljs.core.async.macros :refer [go]])) (defn run-async [] (let [f #(go (>! %1 (inc (<! %2)))) leftmost (chan) rightmost (lo...
null
https://raw.githubusercontent.com/dm3/manifold-cljs/85a2aee8a376f55b000739ee14acb073227422c8/examples/src/manifold_test/daisy.cljs
clojure
(ns manifold-test.daisy (:require [cljs.core.async :refer [chan <! >!]] [manifold-cljs.stream :as s] [manifold-cljs.deferred :as d]) (:require-macros [cljs.core.async.macros :refer [go]])) (defn run-async [] (let [f #(go (>! %1 (inc (<! %2)))) leftmost (chan) rightmost (lo...
6c27f6721440800dfc90747b47e9ad8df90272d3a6006c91416b2e68c922290f
ghc/ghc
LoongArch64.hs
# LANGUAGE CPP # module GHC.Platform.LoongArch64 where import GHC.Prelude #define MACHREGS_NO_REGS 0 #define MACHREGS_loongarch64 1 #include "CodeGen.Platform.h"
null
https://raw.githubusercontent.com/ghc/ghc/aacf616df0b4059e6b177ecb64624ae6fb1d1c87/compiler/GHC/Platform/LoongArch64.hs
haskell
# LANGUAGE CPP # module GHC.Platform.LoongArch64 where import GHC.Prelude #define MACHREGS_NO_REGS 0 #define MACHREGS_loongarch64 1 #include "CodeGen.Platform.h"
32eba06824e3770c1f9e2944f0a1b570c95fe1bfeb4f8472dd3f0953679c720e
kelamg/HtDP2e-workthrough
ex383.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex383) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex383.rkt
racket
about the language level of this file in a form that our tools can easily process. data examples [X Y] [List-of [List X Y]] X -> Y finds the matching Y for the given X in alist interprets the given configuration as a state machine extracts and translates the transition table from xm0 XMachine -> [List-of 1Tran...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex383) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) (require 2htdp/image) (req...
d025ea0f08b568ad842918d57e7ba97bd610f039414eba4190a17c868f5bab7d
chenyukang/eopl
test.scm
;; safely apply procedure fn to a list of args. ;; if successful, return (cons #t val) ;; if error is invoked, returns (cons #f string), where string is the ;; format string generated by error. If somebody manages to raise a ;; value other than an exception, then the raised value is reported. (define apply-safely ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch4/base/test.scm
scheme
safely apply procedure fn to a list of args. if successful, return (cons #t val) if error is invoked, returns (cons #f string), where string is the format string generated by error. If somebody manages to raise a value other than an exception, then the raised value is reported. catch any error evaluate to a fai...
(define apply-safely (lambda (proc args) (cons #f (if (exn? exn) (exn-message exn) exn)))]) (let ([actual (apply proc args)]) (cons #t actual))))) (define apply-safely (lambda (proc args) (handle-exceptions exn (cons #f 'error) (let ((actual (apply proc args)))...
ea6d7afd4e0381b49bfe0cf613b5c5557891dffea1896b2ed7c53135eb59c567
askvortsov1/nittany_market
seller.ml
module Seller = struct type t = { email : string; routing_number : string; account_number: int; balance: int } [@@deriving fields, csv] type key = string type fields = string * string * int * int let table_name = "seller" let key_field = "email" let caqti_key_type = Caqti_type.string let caqti_types =...
null
https://raw.githubusercontent.com/askvortsov1/nittany_market/08ffcad2bb2ead9aaeb85b22b88aa2af879e36ad/lib/models/seller.ml
ocaml
module Seller = struct type t = { email : string; routing_number : string; account_number: int; balance: int } [@@deriving fields, csv] type key = string type fields = string * string * int * int let table_name = "seller" let key_field = "email" let caqti_key_type = Caqti_type.string let caqti_types =...
d1ce15c041172fdfc66cd064265367667d89c78bd4bb03db6fc21942a8a52860
chef/chef-server
oc_chef_authz_cleanup_tests.erl
-module(oc_chef_authz_cleanup_tests). -include_lib("eunit/include/eunit.hrl"). -define(SUPER_USER_AUTHZ_ID, <<"test_superuser_id_value">>). -define(BATCH_SIZE, 10). -define(INTERVAL, 10). oc_chef_authz_cleanup_test_() -> Mods = [ oc_chef_authz_http ], {foreach, fun() -> oc_chef_authz_tests:...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/oc_chef_authz/test/oc_chef_authz_cleanup_tests.erl
erlang
Cancel the current timer so we can test state transitions individually
-module(oc_chef_authz_cleanup_tests). -include_lib("eunit/include/eunit.hrl"). -define(SUPER_USER_AUTHZ_ID, <<"test_superuser_id_value">>). -define(BATCH_SIZE, 10). -define(INTERVAL, 10). oc_chef_authz_cleanup_test_() -> Mods = [ oc_chef_authz_http ], {foreach, fun() -> oc_chef_authz_tests:...
652fd7ecac5990319c0f307133901512eee177f867615cf4305bfae9b285ba60
jfischoff/tmp-postgres
Main.hs
module Main where import Control.Exception import Control.Concurrent import Database.Postgres.Temp import Control.Concurrent.Async import qualified Database.PostgreSQL.Simple as PG import System.Exit import System.IO.Temp import System.Process import Control.Monad (unless, forM_, forever, void) import System.Directory...
null
https://raw.githubusercontent.com/jfischoff/tmp-postgres/593e3ebcb7643afd6095f6269de3552d01c7ff40/resource-soak-test/Main.hs
haskell
TODO we should restrict to child process
module Main where import Control.Exception import Control.Concurrent import Database.Postgres.Temp import Control.Concurrent.Async import qualified Database.PostgreSQL.Simple as PG import System.Exit import System.IO.Temp import System.Process import Control.Monad (unless, forM_, forever, void) import System.Directory...
b9ee4c23c219f20fa22fb4087d8514ba549c146d5a71ec735e4af686b4c79b71
input-output-hk/iohk-monitoring-framework
Stats.hs
# LANGUAGE CPP # module Cardano.BM.Stats ( Resources , ResourceStats , Platform.readResourceStats ) where import Cardano.BM.Stats.Resources #if defined(linux_HOST_OS) import qualified Cardano.BM.Counters.Linux as Platform #elif defined(mingw32_HOST_OS) import qualified Cardano.BM.Counters.Wi...
null
https://raw.githubusercontent.com/input-output-hk/iohk-monitoring-framework/21e00a449029fc7e864869d1b1aecd2834157083/iohk-monitoring/src/Cardano/BM/Stats.hs
haskell
# LANGUAGE CPP # module Cardano.BM.Stats ( Resources , ResourceStats , Platform.readResourceStats ) where import Cardano.BM.Stats.Resources #if defined(linux_HOST_OS) import qualified Cardano.BM.Counters.Linux as Platform #elif defined(mingw32_HOST_OS) import qualified Cardano.BM.Counters.Wi...
380f9bd19dcd2f55076c3e7d2d1c9561d2424432305b43e9bbad8ed213a40f2b
reaktor/future-ai-works
monkey.clj
(ns scenarios.monkey (:require [gps.operation :as op])) (def +monkey-state+ #{:at-door :on-floor :has-ball :hungry :chair-at-door}) (def +monkey-goal+ #{:not-hungry}) (def +monkey-ops+ (->> [{:action :climb-on-chair ...
null
https://raw.githubusercontent.com/reaktor/future-ai-works/1958d6ec4aa4836f318c0c8fae1148ea6d5ecf7b/src/scenarios/monkey.clj
clojure
(ns scenarios.monkey (:require [gps.operation :as op])) (def +monkey-state+ #{:at-door :on-floor :has-ball :hungry :chair-at-door}) (def +monkey-goal+ #{:not-hungry}) (def +monkey-ops+ (->> [{:action :climb-on-chair ...
063ea55fdcb5e58e24187302ceb8aff988e8425733678e19df865631235aad68
Kleidukos/Intrigue
Eval.hs
module Intrigue.Eval where import Control.Monad.Reader import Data.HashMap.Strict (HashMap) import Data.Hashable import Data.Text (Text) import Data.Vector (Vector) import qualified Data.HashMap.Strict as HM import qualified Data.Vector as V import Intrigue.Types import Intrigue.Environment eval :: AST -> EvalM AST...
null
https://raw.githubusercontent.com/Kleidukos/Intrigue/d6cb7a0ee13c04b7ef0c8ca15ac5600da25100ff/src/Intrigue/Eval.hs
haskell
this is data, return data.
module Intrigue.Eval where import Control.Monad.Reader import Data.HashMap.Strict (HashMap) import Data.Hashable import Data.Text (Text) import Data.Vector (Vector) import qualified Data.HashMap.Strict as HM import qualified Data.Vector as V import Intrigue.Types import Intrigue.Environment eval :: AST -> EvalM AST...
90c98f8e962635730d584b6a8a1d45f761a91263cca51c78c429becc3e0213c8
clojure-interop/java-jdk
SOAPHeaderElement.clj
(ns javax.xml.soap.SOAPHeaderElement "An object representing the contents in the SOAP header part of the SOAP envelope. The immediate children of a SOAPHeader object can be represented only as SOAPHeaderElement objects. A SOAPHeaderElement object can have other SOAPElement objects as its children." (:ref...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/soap/SOAPHeaderElement.clj
clojure
false to set it to false - `boolean` false
(ns javax.xml.soap.SOAPHeaderElement "An object representing the contents in the SOAP header part of the SOAP envelope. The immediate children of a SOAPHeader object can be represented only as SOAPHeaderElement objects. A SOAPHeaderElement object can have other SOAPElement objects as its children." (:ref...
aaa9c8afdf9725f16bb1f64f2cced87037d47faf6c9b6c5e7d3b21874284e262
brendanhay/gogol
Product.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/8cbceeaaba36a3c08712b2e272606161500fbe91/lib/services/gogol-servicecontrol/gen/Gogol/ServiceControl/Internal/Product.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated * Api * AttributeContext_ExtensionsItem * AuditLog * AuditLog_Metadata * AuditLog_Request * AuditLog_Response * AuditLog_ServiceData * Auth * Auth_Claims * AuthenticationInfo * AuthenticationInfo_ThirdPartyPrincipal * Au...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
adc73f30ec18177d2b84355f57f94d3935716a0f5681126be7acece3536d2351
re-ops/re-core
validations.clj
(ns physical.validations "physical machine validations" (:require [re-core.model :refer (check-validity)] [subs.core :refer (validate! combine validation when-not-nil)])) (def machine-entity {:machine {:domain #{:required :String} :ip #{:ip :required} :hostname #{:required :String} :os #{:Keyw...
null
https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/src/physical/validations.clj
clojure
(ns physical.validations "physical machine validations" (:require [re-core.model :refer (check-validity)] [subs.core :refer (validate! combine validation when-not-nil)])) (def machine-entity {:machine {:domain #{:required :String} :ip #{:ip :required} :hostname #{:required :String} :os #{:Keyw...
f8bbbd5c7699c8fc55af790f6a2e4ca763d59ba8da1933b4583aec681fef3c49
f-me/carma-public
CarMake.hs
# LANGUAGE TemplateHaskell # module Carma.Model.CarMake where import Data.Text import Data.Typeable import Data.Vector import Data.Model import Data.Model.View import Data.Model.TH import Carma.Model.PgTypes() data CarMake = CarMake { ident :: PK Int CarMake "" , value :: F Text "value" "value" , labe...
null
https://raw.githubusercontent.com/f-me/carma-public/82a9f44f7d919e54daa4114aa08dfec58b01009b/carma-models/src/Carma/Model/CarMake.hs
haskell
# LANGUAGE TemplateHaskell # module Carma.Model.CarMake where import Data.Text import Data.Typeable import Data.Vector import Data.Model import Data.Model.View import Data.Model.TH import Carma.Model.PgTypes() data CarMake = CarMake { ident :: PK Int CarMake "" , value :: F Text "value" "value" , labe...
cb1722da20176ef3f6ef7688a1e6fe0ba914b1fa06cd5485f2325ce01686ded8
sealchain-project/sealchain
Transactions.hs
# LANGUAGE LambdaCase # module Cardano.Wallet.WalletLayer.Kernel.Transactions ( getTransactions , toTransaction ) where import Universum import Control.Monad.Except import Formatting (build, sformat) import GHC.TypeLits (symbolVal) import Pos.Chain.Txp (Tx...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/wallet/src/Cardano/Wallet/WalletLayer/Kernel/Transactions.hs
haskell
NOTE: See cardano-wallet#141 We may end up with some inconsistent metadata in the store. When fetching unknown ids, we simply discard them from what we fetched and we fetch another batch up until we have enough (== pp). A bit artificial, but we force the termination and make sure | Type Casting for Account filte...
# LANGUAGE LambdaCase # module Cardano.Wallet.WalletLayer.Kernel.Transactions ( getTransactions , toTransaction ) where import Universum import Control.Monad.Except import Formatting (build, sformat) import GHC.TypeLits (symbolVal) import Pos.Chain.Txp (Tx...
7417dcc9920976c766ee434f9e03107da533da76463f336c294c10f6e7f95565
runtimeverification/haskell-backend
EvaluationStrategy.hs
| Module : . Rewrite . Axiom . EvaluationStrategy Description : Various strategies for axiom / builtin - based simplification . Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Stability : experimental Portability : portable Module : ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/31415a0b665e3daa5fb8ec594301405d182c5942/kore/src/Kore/Rewrite/Axiom/EvaluationStrategy.hs
haskell
* For testing | Creates an evaluator for a function from the full set of rules that define it. | Create an evaluator from a single simplification rule. | Wraps an evaluator for builtins. Will fail with error if there is no result on concrete patterns. | Map from axiom IDs to axiom evaluators | Creates an 'Built...
| Module : . Rewrite . Axiom . EvaluationStrategy Description : Various strategies for axiom / builtin - based simplification . Copyright : ( c ) Runtime Verification , 2019 - 2021 License : BSD-3 - Clause Maintainer : Stability : experimental Portability : portable Module : ...
b2d83b22e7d6063cfc4d1e057b2826dd34ac89693e63ce16d2382d7863f392e8
icicle-lang/icicle-ambiata
Program.hs
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # {-# LANGUAGE DoAndIfThenElse #-} # OPTIONS_GHC -fno - warn - missing - signatures # modu...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/test/Icicle/Test/Arbitrary/Program.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DoAndIfThenElse # | inputType = SumT ErrorT factType ------------------------------------------------------------------------------ if an input type is discarded, the output type of the program generated from it is not supported, we should try again. if an output type is di...
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - missing - signatures # module Icicle.Test.Arbitrary.Program where import Icicle.Comm...
6ed77405d94c962d2d7f88b446efaf707613c6f1f2c876c41ccb5e77ebe1bee4
janestreet/file_path
test_relative_completion.ml
open! Core open! Async let arg_type = File_path.Relative.arg_type let%expect_test _ = let%bind () = Helpers_async.test_arg_type (module File_path.Relative) ~expect_output:(fun () -> [%expect.output]) in [%expect {| "" Choose: ".fe/", "app/", "home/", "lib/", "libmap.sexp" "." ...
null
https://raw.githubusercontent.com/janestreet/file_path/51ccd4268cab0ef3eea0b708a7d46803cf567f34/test/test_relative_completion.ml
ocaml
open! Core open! Async let arg_type = File_path.Relative.arg_type let%expect_test _ = let%bind () = Helpers_async.test_arg_type (module File_path.Relative) ~expect_output:(fun () -> [%expect.output]) in [%expect {| "" Choose: ".fe/", "app/", "home/", "lib/", "libmap.sexp" "." ...
009506909dacb27e6d7681af35f13f16131daf669b1002d5ddcfde1ac3e9a402
oden-lang/oden
Parser.hs
module Oden.Output.Parser where import qualified Data.Set as Set import Text.PrettyPrint.Leijen import Text.Parsec hiding (unexpected) import Text.Parsec.Error import Oden.Output as Output import Oden.SourceInfo type ExpectedParts = Set.Set String type UnexpectedPart = Maybe String data CondensedMessage = Condensed...
null
https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/src/Oden/Output/Parser.hs
haskell
module Oden.Output.Parser where import qualified Data.Set as Set import Text.PrettyPrint.Leijen import Text.Parsec hiding (unexpected) import Text.Parsec.Error import Oden.Output as Output import Oden.SourceInfo type ExpectedParts = Set.Set String type UnexpectedPart = Maybe String data CondensedMessage = Condensed...
08f51cff89f97f4255ec17ada6591638dc243e152c9be899e1b3a46f071724e1
i-am-tom/holmes
Holmes.hs
# LANGUAGE BlockArguments # # LANGUAGE DerivingVia # # LANGUAGE GeneralisedNewtypeDeriving # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # | Module : Data . : The public API for the @holmes@ library . Copyright : ( c ) , 2020 License : MIT This modul...
null
https://raw.githubusercontent.com/i-am-tom/holmes/ecbb6da0c7a73f839ea2c4d00cdb902fe7080981/src/Data/Holmes.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE BlockArguments # # LANGUAGE DerivingVia # # LANGUAGE GeneralisedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # | Module : Data . : The public API for the @holmes@ library . Copyright : ( c ) , 2020 License : MIT This module includes almost everything...
35b8a434e4823b7981ea3c8ed371c70e9ec039077cad6fae2dd0af4576aabacc
facebook/duckling
AF.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Dimensions.AF ( allDimensions ) where import Duckling.Dimensions.Types allDimensions :...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Dimensions/AF.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Dimensions.AF ( allDimensions ) where import Duckling.Dimensions.Types allDimensions :: [Seal Dimension] allDimensions = [ Seal Numeral ]
b82109457edb8d507df474ac2c79ed921832ed70cf2c2ed830bf2d40bd7c65fc
ocaml/oasis
OASISSchema.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISSchema.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
96de09b2aabda62e222c0c502fa2f0a651af065b743f99dbe76c7bf4313fe92d
ndmitchell/ghc-make
travis.hs
import System.Process.Extra main = do system_ "runhaskell -isrc Test"
null
https://raw.githubusercontent.com/ndmitchell/ghc-make/5164c721efa38a02be33d340cc91f5c737c29156/travis.hs
haskell
import System.Process.Extra main = do system_ "runhaskell -isrc Test"
d2d07f0a8e9b26b02336a37db4b0b07b82fbee94912274bcc0b5aa0e981a4ae3
dharrigan/startrek-clip
exceptions.clj
(ns startrek.api.middleware.exceptions {:author "David Harrigan"} (:require [clojure.string :refer [split]] [clojure.tools.logging :as log] [reitit.ring.middleware.exception :as exception] [startrek.api.middleware.i18n :as i18n] [taoensso.tempura :as tempura]) (:import [java.util UUID])) (set! ...
null
https://raw.githubusercontent.com/dharrigan/startrek-clip/7383527b88c78ba136911c91b1dfc74e73239c1f/src/startrek/api/middleware/exceptions.clj
clojure
_ (exception) and request come from reitit. These come from the i18n/dictionary map exception(-info) and request (not-used) come from reitit. add more types here to handle, like clj-http exceptions etc...
(ns startrek.api.middleware.exceptions {:author "David Harrigan"} (:require [clojure.string :refer [split]] [clojure.tools.logging :as log] [reitit.ring.middleware.exception :as exception] [startrek.api.middleware.i18n :as i18n] [taoensso.tempura :as tempura]) (:import [java.util UUID])) (set! ...
1d39ea8c224963041ba7c6cb42fd2431f731dd772a9e2a470d4f13edb55577e8
cldm/cldm
pool.lisp
(in-package :cldm.test) #.(enable-version-syntax) (in-suite cldm-test) (defun req (string) (read-requirement-from-string string)) (deftest pool-find-library-by-id-test () (let ((+hunchentoot-1.0.0+ (read-library-version-from-string "hunchentoot-1.0.0")) (+hunchentoot-1.0.1+ (read-library-version-from-string "h...
null
https://raw.githubusercontent.com/cldm/cldm/899f1a92d52245ef0fc84d073ac35c4b0d2e9609/test/pool.lisp
lisp
(in-package :cldm.test) #.(enable-version-syntax) (in-suite cldm-test) (defun req (string) (read-requirement-from-string string)) (deftest pool-find-library-by-id-test () (let ((+hunchentoot-1.0.0+ (read-library-version-from-string "hunchentoot-1.0.0")) (+hunchentoot-1.0.1+ (read-library-version-from-string "h...
373eb07a79fb9204d7d8888fc20cf45334ef056612d6c14651d61b24cf208de1
MyDataFlow/ttalk-server
http_init_shutdown.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_init_shutdown). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init({_Transport, http}, Req, _Opts) -> {ok, Req2} = cowboy_req:reply(<<"666 Init Shutdown Testing">>, [{<<"connection">>, <<"close">>}], Req), {shutd...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/cowboy/test/http_SUITE_data/http_init_shutdown.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(http_init_shutdown). -behaviour(cowboy_http_handler). -export([init/3, handle/2, terminate/3]). init({_Transport, http}, Req, _Opts) -> {ok, Req2} = cowboy_req:reply(<<"666 Init Shutdown Testing">>, [{<<"connection">>, <<"close">>}], Req), {shutdown, Req2, undefined}. handle(Req, State) -> {ok, Req2} = ...
48091747e2a9507b81e3be5786b64d049d8289c711c4e69010d69f0c9d8bbb2f
asivitz/Hickory
DeferredRendering.hs
# LANGUAGE QuasiQuotes # module Hickory.Graphics.DeferredRendering where import Hickory.Types (Size(..)) import Graphics.GL.Compatibility41 import Foreign.Marshal.Array (withArray) import Foreign.Ptr (nullPtr) import Data.String.QM (qt) import Hickory.Graphics.Shader (loadShader, Shader) import Hickory.Graphics.GLSup...
null
https://raw.githubusercontent.com/asivitz/Hickory/d871992cb0ad0d530b68dcccb8a675527f25ff18/core/Hickory/Graphics/DeferredRendering.hs
haskell
# LANGUAGE QuasiQuotes # module Hickory.Graphics.DeferredRendering where import Hickory.Types (Size(..)) import Graphics.GL.Compatibility41 import Foreign.Marshal.Array (withArray) import Foreign.Ptr (nullPtr) import Data.String.QM (qt) import Hickory.Graphics.Shader (loadShader, Shader) import Hickory.Graphics.GLSup...
1e67edbc37aee2d9f4e64ba868c0af557b80dbf93909c02ee58a4abb30039670
davisp/couchdb
couch_mrview_updater.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/davisp/couchdb/b0420f9006915149e81607615720f32f21c76725/src/couch_mrview/src/couch_mrview_updater.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_mrview_updater). -export([start_update/3, purge/4, process_doc/3, finish_update/1]). -include("couch_db.hrl"). -include_lib("couch_mrview/in...
0ee39034955b39a99c115aecf936e2b4b87a4e58f78f5722d394918e2615fb89
gregr/racket-misc
string.rkt
#lang racket/base (provide make-immutable-string string-insert string-range-remove string-range-replace string-range-transform string-remove ) (require racket/function ) (module+ test (require rackunit)) (define (make-immutable-string count char) (string->immutable-string (make-string count cha...
null
https://raw.githubusercontent.com/gregr/racket-misc/0a5c9d4875288795e209d06982b82848c989d08b/string.rkt
racket
#lang racket/base (provide make-immutable-string string-insert string-range-remove string-range-replace string-range-transform string-remove ) (require racket/function ) (module+ test (require rackunit)) (define (make-immutable-string count char) (string->immutable-string (make-string count cha...
3a99b40bca1742f11d30e8af5c9de0a16150efd189f3ca1c7379685fbd854920
lspector/Clojush
input_output.clj
(ns clojush.instructions.input-output (:use [clojush pushstate globals util])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; instructions for inputs and outputs, including printing (defn printer "Returns a function that takes a state and prints the top item of t...
null
https://raw.githubusercontent.com/lspector/Clojush/685b991535607cf942ae1500557171a0739982c3/src/clojush/instructions/input_output.clj
clojure
instructions for inputs and outputs, including printing (define-registered print_zip (with-meta (printer :zip) {:stack-types [:print :zip]})) ; I don't think we want this
(ns clojush.instructions.input-output (:use [clojush pushstate globals util])) (defn printer "Returns a function that takes a state and prints the top item of the appropriate stack of the state." [type] (fn [state] (if (empty? (type state)) state (let [top-thing (top-item type state) ...
b7ad8a8be911bf5db8e201799efc1942197619088f42e880e9ddbc19de697344
justinethier/husk-scheme
FFI.hs
# LANGUAGE CPP # | Module : Language . Scheme . FFI Copyright : Licence : MIT ( see LICENSE in the distribution ) Maintainer : github.com/justinethier Stability : experimental Portability : non - portable ( GHC API ) This module contains the foreign function interface . Module ...
null
https://raw.githubusercontent.com/justinethier/husk-scheme/d5643af2f344013f403bc4c97d6ead4e6c19af52/hs-src/Language/Scheme/FFI.hs
haskell
-api-how-to-dynamically-load-haskell-code-from-a-compiled-module-using-ghc import qualified Module import qualified Module >>= continueEval env cont Overload that loads code from a compiled module -api-how-to-dynamically-load-haskell-code-from-a-compiled-module-using-ghc import qualified Module import qualifi...
# LANGUAGE CPP # | Module : Language . Scheme . FFI Copyright : Licence : MIT ( see LICENSE in the distribution ) Maintainer : github.com/justinethier Stability : experimental Portability : non - portable ( GHC API ) This module contains the foreign function interface . Module ...
45fd60edfe2c53a523eebba09d8d7e10079230dcdcf1c6239dce73ed52e0c1de
expipiplus1/vulkan
VK_NV_sample_mask_override_coverage.hs
{-# language CPP #-} -- | = Name -- -- VK_NV_sample_mask_override_coverage - device extension -- -- == VK_NV_sample_mask_override_coverage -- -- [__Name String__] -- @VK_NV_sample_mask_override_coverage@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 95 -- -- [__Rev...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Extensions/VK_NV_sample_mask_override_coverage.hs
haskell
# language CPP # | = Name VK_NV_sample_mask_override_coverage - device extension == VK_NV_sample_mask_override_coverage [__Name String__] @VK_NV_sample_mask_override_coverage@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Depende...
95 1 - Requires support for Vulkan 1.0 - < -Docs/issues/new?body=[VK_NV_sample_mask_override_coverage ] @pdaniell - nv%0A*Here describe the issue or question you have about the VK_NV_sample_mask_override_coverage extension * > 2016 - 12 - 08 - , NVIDIA - ...
c9bf0da0a76a1aa96caa111827b7b304e4fe5c8641dfa2426aa1e223b49aabf2
joearms/elib1
elib1_xml.erl
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . %% elib1_xml XML stream parser Time - stamp : < 2009 - 12 - 09 18:02:52 > %% This module implements an XML stream processor. -module(elib1_xml). %% % -compile(export_all). -export([check_grammar/4, parse_file/1, parse_stream/1,...
null
https://raw.githubusercontent.com/joearms/elib1/d617d0ec70a058ef102749eadf51c024444c28d9/lib/src/elib1_xml.erl
erlang
elib1_xml XML stream parser This module implements an XML stream processor. % -compile(export_all). A completly abstract tokenizer. It does not know where the charcters come from nor where they go to ... An abstract parser that does not know Fun is a fun that knows how to get UTF32 charcters from some input s...
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . Time - stamp : < 2009 - 12 - 09 18:02:52 > -module(elib1_xml). -export([check_grammar/4, parse_file/1, parse_stream/1, parse_string/1, test_parse/0, test_tokenize/0, tokenize/3, token2str/1, parse/1]). -import(lists, [fore...
f3d3d78fe3dcd7603c384356f3f725e7ffe10fa8c265ac002b97bb0aee199a27
michalkonecny/aern2
Precision.hs
# LANGUAGE TemplateHaskell # # LANGUAGE GeneralizedNewtypeDeriving # | Module : AERN2.MP.Precision Description : number of significant binary digits Copyright : ( c ) : : Stability : experimental Portability : portable Precision type and its ...
null
https://raw.githubusercontent.com/michalkonecny/aern2/7ab41113ca8f73dca70d887d190ddab3b43ef084/aern2-mp/src/AERN2/MP/Precision.hs
haskell
import qualified Control.CollectErrors as CE fnWrap p = unsafePerformIO $ catch (return $! Just $! fn p)
# LANGUAGE TemplateHaskell # # LANGUAGE GeneralizedNewtypeDeriving # | Module : AERN2.MP.Precision Description : number of significant binary digits Copyright : ( c ) : : Stability : experimental Portability : portable Precision type and its ...
e6f20ca6648737f6090be3b22fa8fae9c193899bf28ea4a11c790d47046180ef
green-coder/vrac
data.cljc
(ns vrac.data (:refer-clojure :exclude [ident?]) (:require [clojure.set :as set])) (comment (defn matching-primary-keyword-finder "Returns a function that use the namespace of a keyword to find a matching primary keyword, supposing (by convention) that they both use the same namespace." [primar...
null
https://raw.githubusercontent.com/green-coder/vrac/911051e855aa4da7a36e61bd477e60f7bc381aee/src/vrac/data.cljc
clojure
OBSOLETE OBSOLETE --------------------------------------------------------- understand, and inline in their code where they see fit. --------------------------------------------------------- Beware! Does not prevent infinite loops. represents a directed graph of data with potentially some cycles which cannot b...
(ns vrac.data (:refer-clojure :exclude [ident?]) (:require [clojure.set :as set])) (comment (defn matching-primary-keyword-finder "Returns a function that use the namespace of a keyword to find a matching primary keyword, supposing (by convention) that they both use the same namespace." [primar...
424d9cb1938982ac345647d0af257a6cf9fc250a54b6c65565cf072ec9f8d444
RyanGlScott/ghc-software-foundations
Lists.hs
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module SF.LF.Lists where import Data.Nat import Data.Singletons.TH import Data.Tuple.Singletons import Prelude.Singletons hiding (Id, IdSym0, IdSym1) import SF.LF.Basics import SF.LF.Induction type NatProd ...
null
https://raw.githubusercontent.com/RyanGlScott/ghc-software-foundations/ce7b8958e0aed4fb2c8611d71e7e0f1a2ef83222/logical-foundations/src/SF/LF/Lists.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module SF.LF.Lists where import Data.Nat import Data.Singletons.TH import Data.Tuple.Singletons import Prelude.Singletons hiding (Id, IdSym0, IdSym1) import SF.LF.Basics import SF.LF.Induction type NatProd ...
aa3e0c2364566769873604db18845a14173a2d4390e68549e38fd629a073bdc9
yoshihiro503/ocamltter
test2.ml
open Spotlib.Spot open Api2 open Tools2 open Camlon module Xml = OCamltter_oauth.Xml let xml_parse () = let xml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?> <rsp stat=\"fail\"> <err code=\"2\" msg=\"No photo specified\" /> </rsp> " in Xml.parse_string xml let () = ignore & xml_parse (); prerr_endline "xml par...
null
https://raw.githubusercontent.com/yoshihiro503/ocamltter/be7ac68c8076bc2ca8ccec216d6647c94ec9f814/flickr/test2.ml
ocaml
open Spotlib.Spot open Api2 open Tools2 open Camlon module Xml = OCamltter_oauth.Xml let xml_parse () = let xml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?> <rsp stat=\"fail\"> <err code=\"2\" msg=\"No photo specified\" /> </rsp> " in Xml.parse_string xml let () = ignore & xml_parse (); prerr_endline "xml par...
e901edd2a9e0e992d24a6819354e4b804d07843d968d3a342edba7cb16eee618
argp/bap
utf8.ml
exception MalFormed (* cf *) let width = Array.make 256 (-1) let () = for i = 0 to 127 do width.(i) <- 1 done; for i = 192 to 223 do width.(i) <- 2 done; for i = 224 to 239 do width.(i) <- 3 done; for i = 240 to 247 do width.(i) <- 4 done let next s i = match s.[i] with | '\000'..'\127' as c -> ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/deps/ulex-1.1/utf8.ml
ocaml
cf ************************
exception MalFormed let width = Array.make 256 (-1) let () = for i = 0 to 127 do width.(i) <- 1 done; for i = 192 to 223 do width.(i) <- 2 done; for i = 224 to 239 do width.(i) <- 3 done; for i = 240 to 247 do width.(i) <- 4 done let next s i = match s.[i] with | '\000'..'\127' as c -> Char.cod...
9c42e62c2d9b00f0fecd3b8c4557b9e141436a48e9e546a0465959c370d0d652
icfpcontest2021/icfpcontest2021.github.io
GenerateBonus.hs
module Main where import qualified BrainWall.Main.GenerateBonus main :: IO () main = BrainWall.Main.GenerateBonus.main
null
https://raw.githubusercontent.com/icfpcontest2021/icfpcontest2021.github.io/fb23fea2a8ecec7740017d3dda78d921c1df5a26/toolchain/src/GenerateBonus.hs
haskell
module Main where import qualified BrainWall.Main.GenerateBonus main :: IO () main = BrainWall.Main.GenerateBonus.main
469af418a55d7622aa014d99ac1c5cfbc9fd5aa3df8db5d4ebd961c63fcd0440
herbelin/coq-hh
declarations.mli
open Util open Names open Term Bytecode type values type reloc_table type to_patch_substituted (*Retroknowledge *) type action type retroknowledge (* Engagements *) type engagement = ImpredicativeSet (* Constants *) type polymorphic_arity = { poly_param_levels : Univ.universe option list; poly_level : Univ.u...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/checker/declarations.mli
ocaml
Retroknowledge Engagements Constants New: younger hyp at top Primitive datas Name of the type: [Ii] Arity context of [Ii] with parameters: [forall params, Ui] Arity sort, original user arity, and allowed elim sorts, if monomorphic Names of the constructors: [cij] Derived datas Number of expected rea...
open Util open Names open Term Bytecode type values type reloc_table type to_patch_substituted type action type retroknowledge type engagement = ImpredicativeSet type polymorphic_arity = { poly_param_levels : Univ.universe option list; poly_level : Univ.universe; } type constant_type = | NonPolymorphicTyp...
429f67a033b9e3e17c1162bf492ab2c77b272ffabc3ccbde5cbdc74049698945
flora-pm/flora-server
Utils.hs
module FloraWeb.Server.Utils where import Control.Monad.Except qualified as T import Data.Kind (Type) import Data.Text (Text) import Effectful ( Eff , Effect , IOE , MonadIO (liftIO) , runEff , type (:>) ) import Effectful.Dispatch.Static (unsafeEff_) import Effectful.Error.Static (Error, runErrorNoCallS...
null
https://raw.githubusercontent.com/flora-pm/flora-server/c214c0b5d5db71a8330eb69326284be5a4d5e858/src/web/FloraWeb/Server/Utils.hs
haskell
module FloraWeb.Server.Utils where import Control.Monad.Except qualified as T import Data.Kind (Type) import Data.Text (Text) import Effectful ( Eff , Effect , IOE , MonadIO (liftIO) , runEff , type (:>) ) import Effectful.Dispatch.Static (unsafeEff_) import Effectful.Error.Static (Error, runErrorNoCallS...
1cf7eac16e8e21d932ce99557d745c27d47bcb2eba98d26e191c9a3c55a0d645
liqd/aula
CoreSpec.hs
{-# LANGUAGE DefaultSignatures #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # {-# LANGUAGE LambdaCase #-} # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wall -W...
null
https://raw.githubusercontent.com/liqd/aula/f96dbf85cd80d0b445e7d198c9b2866bed9c4e3d/tests/Frontend/CoreSpec.hs
haskell
# LANGUAGE DefaultSignatures # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # * list all types for testing lists are complete. admin forms FIXME : Investigate issue idea forms login forms topic forms user forms FIXME can not fetch the password back from the payload , formTest...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wall -Werror -fno - warn - missing - signatures -fno - warn - incomplete - patterns # module Frontend.CoreSpec where impor...
cc19a2e09c06cc3ca6d3d09cd1c61990d8cb1e3a47e9ecec9d55ddca55a23765
acl2/acl2
show-books-tests@useless-runes.lsp
(SHOW-BOOKS-RESULT-P (531 239 (:REWRITE DEFAULT-+-2)) (337 239 (:REWRITE DEFAULT-+-1)) (130 26 (:DEFINITION LEN)) (128 32 (:DEFINITION INTEGER-ABS)) (106 106 (:REWRITE DEFAULT-CAR)) (82 82 (:REWRITE DEFAULT-CDR)) (40 36 (:REWRITE DEFAULT-<-2)) (40 36 (:REWRITE DEFAULT-<-1)) (32 32 (:REWRITE DEFAULT-UNARY-MINUS...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/kestrel/utilities/.sys/show-books-tests%40useless-runes.lsp
lisp
(SHOW-BOOKS-RESULT-P (531 239 (:REWRITE DEFAULT-+-2)) (337 239 (:REWRITE DEFAULT-+-1)) (130 26 (:DEFINITION LEN)) (128 32 (:DEFINITION INTEGER-ABS)) (106 106 (:REWRITE DEFAULT-CAR)) (82 82 (:REWRITE DEFAULT-CDR)) (40 36 (:REWRITE DEFAULT-<-2)) (40 36 (:REWRITE DEFAULT-<-1)) (32 32 (:REWRITE DEFAULT-UNARY-MINUS...
938207673cdb152d43b03141e4d432d1f44eb81aa31a5aa8e67b27ba0230fe64
death/zonquerer
zonquerer.lisp
;;;; +----------------------------------------------------------------+ ;;;; | zonquerer | ;;;; +----------------------------------------------------------------+ | Copyright ( C ) 2021 death | ;;;; | ...
null
https://raw.githubusercontent.com/death/zonquerer/2a0ff29b9d974fc66addb9126f1638f4d5d071cb/zonquerer.lisp
lisp
+----------------------------------------------------------------+ | zonquerer | +----------------------------------------------------------------+ | | | This program is free software: you can redist...
| Copyright ( C ) 2021 death | | modify it under the terms of the GNU Affero General Public | | License as published by the Free Software Foundation , either | | version 3 of the License , or ( at your option ) any later | (defpackage #:zonquerer/zonquerer...
f4201bfeb73650adcc8fc855269b324f7c07a65222638f518a95978abb49eaa2
ygmpkk/house
StdBitmap.hs
----------------------------------------------------------------------------- -- | -- Module : StdBitmap Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- Interface functions for drawing bitmaps . -- -------------------...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/StdBitmap.hs
haskell
--------------------------------------------------------------------------- | Module : StdBitmap License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- | creates a bitmap from the given file...
Copyright : ( c ) 2002 Interface functions for drawing bitmaps . module Graphics.UI.ObjectIO.StdBitmap where import Graphics.UI.ObjectIO.OS.Bitmap import Graphics.UI.ObjectIO.OS.Picture import Graphics.UI.ObjectIO.CommonDef import Graphics.UI.ObjectIO.StdPicture | An abstract type which represent the bi...
0ae6d3535c23f71389a3ca92bf9246b35a042622e55abd799e87a05d8ca7d11f
headwinds/reagent-reframe-material-ui
file_reloading.cljs
(ns figwheel.client.file-reloading (:require [figwheel.client.utils :as utils :refer-macros [dev-assert]] [goog.Uri :as guri] [goog.string] [goog.object :as gobj] [goog.net.jsloader :as loader] [goog.html.legacyconversions :as conv] [goog.string :as gstring] [clojure.string :as string] [clo...
null
https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/figwheel/client/file_reloading.cljs
clojure
you can listen to this event easily like so: document.body.addEventListener("figwheel.js-reload", function (e) {console.log(e.detail);} ); you can listen to this event easily like so: document.body.addEventListener("figwheel.before-js-reload", function (e) { console.log(e.detail);} ); you can listen to this event ...
(ns figwheel.client.file-reloading (:require [figwheel.client.utils :as utils :refer-macros [dev-assert]] [goog.Uri :as guri] [goog.string] [goog.object :as gobj] [goog.net.jsloader :as loader] [goog.html.legacyconversions :as conv] [goog.string :as gstring] [clojure.string :as string] [clo...
e990fa0f6b356d512e071b4626d43d3d68bcd62f72c8d7450bacc48fd7c58798
joearms/elib1
widget_lib.erl
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(widget_lib). -compile(export_all). -import(elib1_wish, [cmd/1, cast/1, do/1]). test() -> make_button_box( [ {"button box", fun() -> make_button_box_test() end}, {"list box", fun() -> make_list_box_test() en...
null
https://raw.githubusercontent.com/joearms/elib1/d617d0ec70a058ef102749eadf51c024444c28d9/supported/irc/widget_lib.erl
erlang
process_flag(trap_exit, true), io:format("clicked on:~p~n",[N]), io:format("get=~p~n",[get()]), io:format("clicked on:~p~n",[N]), io:format("get=~p~n",[get()]),
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(widget_lib). -compile(export_all). -import(elib1_wish, [cmd/1, cast/1, do/1]). test() -> make_button_box( [ {"button box", fun() -> make_button_box_test() end}, {"list box", fun() -> make_list_box_test() en...
cc24969d71f6d39762711d191ee173c6e66da9858413781eddb1cf7657e613a1
rd--/hsc3
Noise.hs
-- | Noise generating functions. module Sound.Sc3.Common.Math.Noise where import Sound.Sc3.Common.Math {- hsc3 -} | x(n+1 ) = a - b * ) cusp_f :: Floating t => t -> t -> t -> t cusp_f a b x = a - (b * sqrt (abs x)) | x(n+1 ) = sin(im * y(n ) + fb * ) ) y(n+1 ) = ( a * y(n ) + c ) % 2pi fbSine_f :: (Floatin...
null
https://raw.githubusercontent.com/rd--/hsc3/7dc748106639999947548d0b3205a468cfc55fed/Sound/Sc3/Common/Math/Noise.hs
haskell
| Noise generating functions. hsc3 | x(n+1) = (a * x(n) + c) % m | x' = s * (y - x) y' = x * (r - z) - y z' = x * y - b * z
module Sound.Sc3.Common.Math.Noise where | x(n+1 ) = a - b * ) cusp_f :: Floating t => t -> t -> t -> t cusp_f a b x = a - (b * sqrt (abs x)) | x(n+1 ) = sin(im * y(n ) + fb * ) ) y(n+1 ) = ( a * y(n ) + c ) % 2pi fbSine_f :: (Floating t, RealFrac t) => t -> t -> t -> t -> (t, t) -> (t, t) fbSine_f im fb a...
1bdb32407e21394d1b28ce2d8cafd848a65ee83cacb4545b2bab616b0695a751
haskell-mafia/mismi
Cloudwatch.hs
# LANGUAGE NoImplicitPrelude # module Mismi.Cloudwatch ( ) where
null
https://raw.githubusercontent.com/haskell-mafia/mismi/f6df07a52c6c8b1cf195b58d20ef109e390be014/mismi-cloudwatch/src/Mismi/Cloudwatch.hs
haskell
# LANGUAGE NoImplicitPrelude # module Mismi.Cloudwatch ( ) where
9748212aa985af0b4ae13751857e8f04ed2289e171230f1c1a3d0e319d6e76e5
alexandergunnarson/quantum
javaesque.cljc
(ns quantum.compile.transpile.javaesque (:require [quantum.compile.transpile.to.java :as javac] [quantum.compile.transpile.to.c-sharp :as csc ] [quantum.compile.transpile.util :as util ] [quantum.compile.transpile.core :as comp ] [quantum.core.string :as str ] ...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/compile/transpile/javaesque.cljc
clojure
Wrapped because otherwise |read-str| fails qjava.Main (emit-std!)
(ns quantum.compile.transpile.javaesque (:require [quantum.compile.transpile.to.java :as javac] [quantum.compile.transpile.to.c-sharp :as csc ] [quantum.compile.transpile.util :as util ] [quantum.compile.transpile.core :as comp ] [quantum.core.string :as str ] ...
90f9751653f89b7d4ed8875ad1352076a1b5878fe894211ecb9822faa10184fb
KestrelInstitute/Specware
lm-rules.lisp
-*- Mode : LISP ; Package : Specware ; Base : 10 ; Syntax : Common - Lisp -*- (defpackage :LM (:use :COMMON-LISP-USER)) (in-package :Parser4) ;;; This generic file is loaded prior to (or within) a file with more language specific rules such as those for MetaSlang , C , etc . ;;; ================================...
null
https://raw.githubusercontent.com/KestrelInstitute/Specware/2be6411c55f26432bf5c9e2f7778128898220c24/Languages/MetaSlang/CodeGen/Handwritten/Lisp/lm-rules.lisp
lisp
Package : Specware ; Base : 10 ; Syntax : Common - Lisp -*- This generic file is loaded prior to (or within) a file with more ======================================================================== These are generic parsing rules somewhat independent of the detaila of the source and target. The descriptions of...
(defpackage :LM (:use :COMMON-LISP-USER)) (in-package :Parser4) language specific rules such as those for MetaSlang , C , etc . The target term is a morphism rule is one of Parser may return : uspecified for (: optional .. ) (defun make-false () nil) (defun make-true () t) (defun make-option (x) (if ...
0a70ec3e871810a238b659b5e44f4c298f1a340960a4245cdce3b1f52efa501c
luminus-framework/examples
home.clj
(ns guestbook-datomic.routes.home (:require [guestbook-datomic.layout :as layout] [guestbook-datomic.db.core :as db] [guestbook-datomic.validation :refer [validate-message]] [compojure.core :refer [defroutes GET POST]] [ring.util.http-response :as response] ...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/guestbook-datomic/src/clj/guestbook_datomic/routes/home.clj
clojure
(ns guestbook-datomic.routes.home (:require [guestbook-datomic.layout :as layout] [guestbook-datomic.db.core :as db] [guestbook-datomic.validation :refer [validate-message]] [compojure.core :refer [defroutes GET POST]] [ring.util.http-response :as response] ...
0e9a362c62a5e77bcf24113f68b4185652546c2377c849a8fe226ed5a9e5e7bc
hiratara/Haskell-Nyumon-Sample
chap07-samples-7-4-2.hs
import Control.Monad import qualified Data.Vector.Mutable as VM main :: IO () main = do 初期化 5 要素の配列を作成 VM.write animals 0 "Dog" VM.write animals 1 "Pig" VM.write animals 2 "Cat" VM.write animals 3 "Fox" VM.write animals 4 "Mouse" インデックス 1 と 3 の要素を入れ替える tmp <- VM.read animals 1 VM.write animals 1 =...
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap07-samples/chap07-samples-7-4-2.hs
haskell
表示
import Control.Monad import qualified Data.Vector.Mutable as VM main :: IO () main = do 初期化 5 要素の配列を作成 VM.write animals 0 "Dog" VM.write animals 1 "Pig" VM.write animals 2 "Cat" VM.write animals 3 "Fox" VM.write animals 4 "Mouse" インデックス 1 と 3 の要素を入れ替える tmp <- VM.read animals 1 VM.write animals 1 =...
e0495dc3e0dfe64c12dc0996182f5d34a5113620cdb23e06c5e647be7b5b3ce8
alexwl/haskell-code-explorer
Preprocessor.hs
# LANGUAGE RecordWildCards # # LANGUAGE DuplicateRecordFields # {-# LANGUAGE OverloadedStrings #-} module HaskellCodeExplorer.Preprocessor ( createSourceCodeTransformation ) where import Control.Applicative ((<|>)) import qualified Data.Attoparsec.Text as AT import Data.Foldable (foldl') import qualified Data.Has...
null
https://raw.githubusercontent.com/alexwl/haskell-code-explorer/2f1c2a4c87ebd55b8a335bc4670eec875af8b4c4/src/HaskellCodeExplorer/Preprocessor.hs
haskell
# LANGUAGE OverloadedStrings # | Finds locations of line pragmas and creates an index | Parses line pragma preprocessed source code Interval between the last pragma and the last line
# LANGUAGE RecordWildCards # # LANGUAGE DuplicateRecordFields # module HaskellCodeExplorer.Preprocessor ( createSourceCodeTransformation ) where import Control.Applicative ((<|>)) import qualified Data.Attoparsec.Text as AT import Data.Foldable (foldl') import qualified Data.HashMap.Strict as HM import qualified ...
ab79face44ab238ca688ce6531c6931f2a7cbce7129bf06ec14f375427bbd461
ucsd-progsys/liquidhaskell
Elim_ex_map_1.hs
{-@ LIQUID "--expect-any-error" @-} {-@ LIQUID "--no-termination" @-} # LANGUAGE QuasiQuotes # module Elim_ex_map_1 (prop) where import LiquidHaskell import Prelude hiding (map) -------------------------------------------------------------------------- [lq| prop :: List Even -> List Even |] prop xs = map (+ 2) (ma...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/neg/Elim_ex_map_1.hs
haskell
@ LIQUID "--expect-any-error" @ @ LIQUID "--no-termination" @ ------------------------------------------------------------------------ ------------------------------------------------------------------------
# LANGUAGE QuasiQuotes # module Elim_ex_map_1 (prop) where import LiquidHaskell import Prelude hiding (map) [lq| prop :: List Even -> List Even |] prop xs = map (+ 2) (map (+ 1) xs) [lq| type Even = {v:Int | v mod 2 == 0 } |] data List a = Nil | Cons a (List a) map f Nil = Nil map f (Cons x xs) = Cons (...
1d214c0cd24eb13eeaf1224fbffc24a8c436051e5f7a173cb2440ae80706e767
atzedijkstra/chr
MonoBacktrackPrio.hs
# LANGUAGE ConstraintKinds , ScopedTypeVariables , StandaloneDeriving , UndecidableInstances , NoMonomorphismRestriction , MultiParamTypeClasses , TemplateHaskell , FunctionalDependencies # ------------------------------------------------------------------------------------------- --- CHR solver ----------------------...
null
https://raw.githubusercontent.com/atzedijkstra/chr/ad465828b1560831e90c4056e12338231872e8db/chr-core/src/CHR/Solve/MonoBacktrackPrio.hs
haskell
----------------------------------------------------------------------------------------- - CHR solver ----------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------- - Verbosity -------------------------...
# LANGUAGE ConstraintKinds , ScopedTypeVariables , StandaloneDeriving , UndecidableInstances , NoMonomorphismRestriction , MultiParamTypeClasses , TemplateHaskell , FunctionalDependencies # | Under development ( as of 20160218 ) . Solver is : - , i.e. the solver is polymorph but therefore can only work on 1 t...
7f2cf6d3052f7f358aac4a9b91f1d38d6609dd68626883cba472e93e769a9119
fukamachi/cl-coveralls
sbcl.lisp
(in-package :cl-user) (defpackage cl-coveralls.impls.sbcl (:nicknames :cl-coveralls.impls) (:use :cl) (:import-from :cl-coveralls.util :get-report-directory) (:import-from :lquery :$ :initialize) (:export :enable-coverage :disable-coverage ...
null
https://raw.githubusercontent.com/fukamachi/cl-coveralls/69b2f05540392f204c0312f4be356145932b2787/src/impls/sbcl.lisp
lisp
returns report files
(in-package :cl-user) (defpackage cl-coveralls.impls.sbcl (:nicknames :cl-coveralls.impls) (:use :cl) (:import-from :cl-coveralls.util :get-report-directory) (:import-from :lquery :$ :initialize) (:export :enable-coverage :disable-coverage ...
3f900b3944113ce4d4c0e516ec3019cdd544081f671c6ee14ed83620c4a84ec5
killme2008/lighthouse
leader_test.clj
(ns lighthouse.leader-test (:require [clojure.test :refer :all] [lighthouse.leader :refer :all] [lighthouse.test_util :refer :all])) (use-fixtures :once zk-fixture) (deftest test-election (let [c (atom []) f (fn [_ _ id] (swap! c conj id)) path "/test_election" p1 (...
null
https://raw.githubusercontent.com/killme2008/lighthouse/ecd881b224faed3bb80caa8047a4d371474fe000/test/lighthouse/leader_test.clj
clojure
(ns lighthouse.leader-test (:require [clojure.test :refer :all] [lighthouse.leader :refer :all] [lighthouse.test_util :refer :all])) (use-fixtures :once zk-fixture) (deftest test-election (let [c (atom []) f (fn [_ _ id] (swap! c conj id)) path "/test_election" p1 (...
aff5b3a7304827b7a636123f17af1dd357a31fbbd8e2b62f61c3e63570fee1d6
jumarko/web-development-with-clojure
login.cljs
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/code/picture-gallery-b/src/cljs/picture_gallery/components/login.cljs
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (ns picture-gallery.components.login (:require [reagent.core :refer [atom]] [reagent.session :as session] ...
9a99a8bb0a85d726f3e6a0aebadf11b6f971792dfce09665556d4411798e15af
goldfirere/thesis
cpdt6.hs
# LANGUAGE TemplateHaskell , PolyKinds , DataKinds , GADTs , TypeFamilies , RankNTypes , TypeOperators , LambdaCase , TypeHoles , EmptyCase # RankNTypes, TypeOperators, LambdaCase, TypeHoles, EmptyCase #-} import Prelude hiding (Maybe(..)) import Data.Singletons $(singletons [d| data Nat...
null
https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/hs/dephs/cpdt6.hs
haskell
# LANGUAGE TemplateHaskell , PolyKinds , DataKinds , GADTs , TypeFamilies , RankNTypes , TypeOperators , LambdaCase , TypeHoles , EmptyCase # RankNTypes, TypeOperators, LambdaCase, TypeHoles, EmptyCase #-} import Prelude hiding (Maybe(..)) import Data.Singletons $(singletons [d| data Nat...
76325578b79a915bfe0bda8e481db6d2ab6d12d1cd3210d9621f2576b5da1fa9
LeapYear/github-rest
PageLinks.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module PageLinks (tests) where import Data.Maybe (catMaybes) #if !MIN_VERSION_base(4,11,0) import Data.Monoid ((<>)) #endif import Data.Text (Text) import qualified Data.Text as Text import Test.Tasty (TestTree) import Test.Tasty.QuickC...
null
https://raw.githubusercontent.com/LeapYear/github-rest/520e6c09f0cc494c89b696aad97c6c77c2551900/test/PageLinks.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # # LANGUAGE RecordWildCards # module PageLinks (tests) where import Data.Maybe (catMaybes) #if !MIN_VERSION_base(4,11,0) import Data.Monoid ((<>)) #endif import Data.Text (Text) import qualified Data.Text as Text import Test.Tasty (TestTree) import Test.Tasty.QuickCheck import GitHub.REST.PageLinks ...
b51578d7ae1d390695fa3546a00a8413fa55a9080d095c888bca6a55d7dd3a99
frictionlessdata/tableschema-clj
validate.clj
(ns tableschema-clj.validate)
null
https://raw.githubusercontent.com/frictionlessdata/tableschema-clj/c907da7eabe752eb47a0b18064c0de23937474d1/src/tableschema_clj/validate.clj
clojure
(ns tableschema-clj.validate)
442c7abe677095f937a8597ac3a382102e7a5498d88637ba8e256a3112e2af53
oakes/tile-soup
utils.cljc
(ns tile-soup.utils (:require [clojure.spec.alpha :as s] [clojure.string :as str] [expound.alpha :as expound])) (defn parse [spec content] (let [res (s/conform spec content)] (if (= ::s/invalid res) (throw (ex-info (expound/expound-str spec content) {})) res))) (defn confor...
null
https://raw.githubusercontent.com/oakes/tile-soup/e2d495523af59322891f667859d39478d118a7c2/src/tile_soup/utils.cljc
clojure
(ns tile-soup.utils (:require [clojure.spec.alpha :as s] [clojure.string :as str] [expound.alpha :as expound])) (defn parse [spec content] (let [res (s/conform spec content)] (if (= ::s/invalid res) (throw (ex-info (expound/expound-str spec content) {})) res))) (defn confor...
7ee06666ae77fa0d0c1dab7957eed85e9cdf6561e74c93622c5b76ac845c540d
erleans/vonnegut
vg_log_segments.erl
%% -module(vg_log_segments). -export([init_table/0, load_existing/2, load_all/2, delete_segments/2, delete_indexes/2, regenerate_indexes/2, cleanup_segments_table/2, insert/3, local/2, find_log_segment/3, find_active_segment/2, ...
null
https://raw.githubusercontent.com/erleans/vonnegut/88693f192a4fc3da88e7b359e38e72cee25b3d24/src/vg_log_segments.erl
erlang
for testing ignore index_max_bytes because it makes no sense without the ability to rewrite the segments Find all registered log segments for topic-partition < the recordid we are looking for load from disk and try again Return largest, being the largest log segment offset that is still less than the record off...
-module(vg_log_segments). -export([init_table/0, load_existing/2, load_all/2, delete_segments/2, delete_indexes/2, regenerate_indexes/2, cleanup_segments_table/2, insert/3, local/2, find_log_segment/3, find_active_segment/2, ...
a9381862086b269815e83e1de57cf984dc2e08e812c78df13530ead2d49707f3
pbrisbin/tee-io
Archive.hs
module Archive ( archiveOutput , archivedOutput , deleteArchivedOutput ) where import Import import Control.Lens import Data.Conduit.Binary (sinkLbs) import Network.AWS import Network.AWS.S3 import qualified Data.ByteString.Lazy as BL archiveOutput :: Token -> [Output] -> Handler () archiveOutput to...
null
https://raw.githubusercontent.com/pbrisbin/tee-io/26f4643a7f44fafb9bf92f1c1f82a60309dc8b66/src/Archive.hs
haskell
module Archive ( archiveOutput , archivedOutput , deleteArchivedOutput ) where import Import import Control.Lens import Data.Conduit.Binary (sinkLbs) import Network.AWS import Network.AWS.S3 import qualified Data.ByteString.Lazy as BL archiveOutput :: Token -> [Output] -> Handler () archiveOutput to...
ba2b6ba7d528e3d41ebda874572fd7e9ae8dd8f7dbbce2df0752f1314a82a33e
ilmotta/clojure-ants-simulation
ant.clj
(ns demo.ui.ant (:require [demo.ui.core :as ui] [demo.util :as util])) (def directions {0 [2 0 2 4] 1 [4 0 0 4] 2 [4 2 0 2] 3 [4 4 0 0] 4 [2 4 2 0] 5 [0 4 4 0] 6 [0 2 4 2] 7 [0 0 4 4]}) (defn ant-color [ant] (if (:food ant) :red :black)) (defn next-loc [dir loc config] (-> di...
null
https://raw.githubusercontent.com/ilmotta/clojure-ants-simulation/4835880cc4890bd65ad122c6a7898cd775cd94d6/src/demo/ui/ant.clj
clojure
(ns demo.ui.ant (:require [demo.ui.core :as ui] [demo.util :as util])) (def directions {0 [2 0 2 4] 1 [4 0 0 4] 2 [4 2 0 2] 3 [4 4 0 0] 4 [2 4 2 0] 5 [0 4 4 0] 6 [0 2 4 2] 7 [0 0 4 4]}) (defn ant-color [ant] (if (:food ant) :red :black)) (defn next-loc [dir loc config] (-> di...
926e39676cb6d9cf4d03490ec13421bd166af06b47e3ccf8ce351d6f5ae21983
np/ling
Class.hs
# LANGUAGE LambdaCase , FlexibleInstances # module Ling.Print.Class where -- Ling.Print is the pretty-printer generated by the BNF converter . -- Ling.Print.Class contains the class definition and -- an improved version of `render`. -- -- After running bnfc you can merge the changes using: git checkout -p -- ...
null
https://raw.githubusercontent.com/np/ling/5a49fb5fdaef04b56e26c3ff1cd613e2800b4c23/Ling/Print/Class.hs
haskell
Ling.Print is the pretty-printer generated by Ling.Print.Class contains the class definition and an improved version of `render`. After running bnfc you can merge the changes using: You can then select y(es) for the hunks to revert the top-level printing method unlessElem " " (showChar ' ') . the printer class ...
# LANGUAGE LambdaCase , FlexibleInstances # module Ling.Print.Class where the BNF converter . git checkout -p and ) for the ones you want to keep . import Data.Char import Ling.Abs import Ling.ErrM import Ling.Prelude hiding (q) pretty :: Print a => a -> String pr...
a8c203e7f81adbaaf362784a5663c05bb4839cc53698e95759a3b972312fcb4b
huangz1990/real-world-haskell-cn
dynexc3.hs
-- file: ch19/dynexc.hs throwSqlError :: String -> Int -> String -> a throwSqlError state nativeerror errormsg = throwDyn (SqlError state nativeerror errormsg) throwSqlErrorIO :: String -> Int -> String -> IO a throwSqlErrorIO state nativeerror errormsg = evaluate (throwSqlError state nativeerror errormsg)
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch19/dynexc3.hs
haskell
file: ch19/dynexc.hs
throwSqlError :: String -> Int -> String -> a throwSqlError state nativeerror errormsg = throwDyn (SqlError state nativeerror errormsg) throwSqlErrorIO :: String -> Int -> String -> IO a throwSqlErrorIO state nativeerror errormsg = evaluate (throwSqlError state nativeerror errormsg)
ea7053dc46d35d46e9d39a207bc427b4071bc38a5bcb40773793302a457eb76e
heitor-lassarote/iolp
Codegen.hs
module Language.Codegen where import Universum import qualified Universum.Unsafe as Unsafe import Data.Default.Class import qualified Data.Text as T import Language.Emit type CodegenT state = StateT state (ExceptT Text Identity) class Codegen ast where type GeneratorState ast codegen ::...
null
https://raw.githubusercontent.com/heitor-lassarote/iolp/6284ff7127969b95a841a5d7b2af07aa77a38b2d/code-generator/src/Language/Codegen.hs
haskell
module Language.Codegen where import Universum import qualified Universum.Unsafe as Unsafe import Data.Default.Class import qualified Data.Text as T import Language.Emit type CodegenT state = StateT state (ExceptT Text Identity) class Codegen ast where type GeneratorState ast codegen ::...
9054e2f4e58a15d5849163959e0f827a8270df68411898059b7d628c599b9654
racket/racket7
namespace.rkt
#lang racket/base (require racket/promise "../common/phase.rkt" "../common/small-hash.rkt" "../syntax/scope.rkt" "../syntax/bulk-binding.rkt" "../common/module-path.rkt" "../expand/root-expand-context.rkt" "../host/linklet.rkt" "registry.rkt") (pr...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/namespace/namespace.rkt
racket
module path index (that's already resolved); instance-specific for a module #f (top-level) or symbol or complete path; user-facing alternative to the mpi delay of box of context for top-level expansion; set by module instantiation phase (not phase level!) of this namespace phase of module instance's phase-level 0 ...
#lang racket/base (require racket/promise "../common/phase.rkt" "../common/small-hash.rkt" "../syntax/scope.rkt" "../syntax/bulk-binding.rkt" "../common/module-path.rkt" "../expand/root-expand-context.rkt" "../host/linklet.rkt" "registry.rkt") (pr...
65a6a02265b26ced5524cf4a995c7ec2b1c07e0fac35694b709e4288ad3ca84b
zmactep/hasbolt
Connection.hs
# LANGUAGE RecordWildCards # module Database.Bolt.Connection.Connection where import Control.Applicative (pure, (<$>)) import Control.Exception (throwIO) import Control.Monad (forM_, when) import Control.Monad.Trans (MonadIO (..)) import Data.ByteSt...
null
https://raw.githubusercontent.com/zmactep/hasbolt/db07eae65b5a25da767778f8d02473eba23e8319/src/Database/Bolt/Connection/Connection.hs
haskell
^ Use secure connection ^ Hostname
# LANGUAGE RecordWildCards # module Database.Bolt.Connection.Connection where import Control.Applicative (pure, (<$>)) import Control.Exception (throwIO) import Control.Monad (forM_, when) import Control.Monad.Trans (MonadIO (..)) import Data.ByteSt...
51a25a116e344071285d3a0fc1d0e40454e0dc1e8849d01b75cef5e91e5bac39
phadej/range-set-list
SetAction.hs
module SetAction where import Test.Tasty.QuickCheck as QC import Data.Set (Set) import qualified Data.Set as Set import Control.Applicative data SetAction a = AEmpty | ASingleton a | AFromList [a] | AInsert a (SetAction a) | ADelete a (Se...
null
https://raw.githubusercontent.com/phadej/range-set-list/313e4724550f3a7598ba964794ddd16062592db4/tests/SetAction.hs
haskell
module SetAction where import Test.Tasty.QuickCheck as QC import Data.Set (Set) import qualified Data.Set as Set import Control.Applicative data SetAction a = AEmpty | ASingleton a | AFromList [a] | AInsert a (SetAction a) | ADelete a (Se...
2f010882d05728f12eac456321e360bea4c0d292aa5cc2c46668b21b66e84518
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Time.NB.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Time/NB/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.NB.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Dimensions.Types import Duckling.Testing.Asserts import Duckling.Time.NB.Corpus tests :: TestTree tests = testGroup "NB Tests" [ makeCorpusTest [S...
a2ee8847d495ed9be770303709a43a0579a09f0303029a0a0dce64446cf48a53
ahrefs/ocaml-ahrocksdb
test_config_and_open.ml
open Rresult.R.Infix open Rocksdb let simple_open_default () = Utils.with_tmp_dir begin fun name -> open_db ~config:Options.default ~name > > = fun _ - > open_db ~create : false ~options ~name FIXME end let open_not_random_setters () = Utils.with_tmp_dir begin fun name -> let block_cache = Options.C...
null
https://raw.githubusercontent.com/ahrefs/ocaml-ahrocksdb/bc0475cbfa9daa3a97c2e948f5a8cbe30c5b4828/tests/test_config_and_open.ml
ocaml
open Rresult.R.Infix open Rocksdb let simple_open_default () = Utils.with_tmp_dir begin fun name -> open_db ~config:Options.default ~name > > = fun _ - > open_db ~create : false ~options ~name FIXME end let open_not_random_setters () = Utils.with_tmp_dir begin fun name -> let block_cache = Options.C...
ad1727bbb4dfed670ba754d737953737cef0fdd4383a858b631319eaed4b2389
clojure-interop/java-jdk
ConfigurationException.clj
(ns javax.naming.ConfigurationException "This exception is thrown when there is a configuration problem. This can arise when installation of a provider was not done correctly, or if there are configuration problems with the server, or if configuration information required to access the provider or service is ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.naming/src/javax/naming/ConfigurationException.clj
clojure
(ns javax.naming.ConfigurationException "This exception is thrown when there is a configuration problem. This can arise when installation of a provider was not done correctly, or if there are configuration problems with the server, or if configuration information required to access the provider or service is ...
7d4be1daf0af1162aa6caab6ed19f57adec25de5ae784b5b2f45a83d1349c37b
fetburner/Coq2SML
ideutils.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/ide/ideutils.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** status bar and locations Fatal er...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Preferences exception ...
eb2c57f9796f32e3643d0cdfbe0e44c043b567c1ac172964c33d9b79ae1662d5
chansey97/clprosette-miniKanren
mk.rkt
#lang racket (require "./rosette-bridge.rkt") (require "./logging.rkt") (provide (all-defined-out)) ;; ---- miniKanren racket compatible code ---- ---- ;; extra stuff for racket ;; due mostly to samth (define (list-sort f l) (sort l f)) (define (remp f l) (filter-not f l)) (define (call-with-string-out...
null
https://raw.githubusercontent.com/chansey97/clprosette-miniKanren/9a94c8a95dbdd30b4e6a561631001f758fc58db8/clprosette-miniKanren/mk.rkt
racket
---- miniKanren racket compatible code ---- ---- extra stuff for racket due mostly to samth Substitution representation Returns #f if not found, or a pair of u and the result of the lookup. This distinguishes between #f indicating absence and being the result. ---- miniKanren code ---- Scope object. Us...
#lang racket (require "./rosette-bridge.rkt") (require "./logging.rkt") (provide (all-defined-out)) (define (list-sort f l) (sort l f)) (define (remp f l) (filter-not f l)) (define (call-with-string-output-port f) (define p (open-output-string)) (f p) (get-output-string p)) (define (exists f l...
4a6a19dd90f9b4812ba240c40c0960475e908470c56809c5f17b7c724b286306
tsloughter/kuberl
kuberl_v1_job_status.erl
-module(kuberl_v1_job_status). -export([encode/1]). -export_type([kuberl_v1_job_status/0]). -type kuberl_v1_job_status() :: #{ 'active' => integer(), 'completionTime' => kuberl_date_time:kuberl_date_time(), 'conditions' => list(), 'failed' => integer(), 'startTime' => kuberl_date_time...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_job_status.erl
erlang
-module(kuberl_v1_job_status). -export([encode/1]). -export_type([kuberl_v1_job_status/0]). -type kuberl_v1_job_status() :: #{ 'active' => integer(), 'completionTime' => kuberl_date_time:kuberl_date_time(), 'conditions' => list(), 'failed' => integer(), 'startTime' => kuberl_date_time...
f742e48240bfd30df1f5ef19bb18f5949c8dd11a1947a74d6fc1fbce28ac1ba1
databrary/databrary
Record.hs
# LANGUAGE OverloadedStrings , TemplateHaskell , RecordWildCards , DataKinds # module Model.Record ( module Model.Record.Types , lookupRecord , lookupVolumeRecord , lookupVolumeParticipant , lookupVolumeRecords , addRecord , changeRecord , removeRecord , recordJSON , columnSampleJson -- , recordJSO...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/Record.hs
haskell
, recordJSONRestricted for testing only check record type is participant, if not, then error
# LANGUAGE OverloadedStrings , TemplateHaskell , RecordWildCards , DataKinds # module Model.Record ( module Model.Record.Types , lookupRecord , lookupVolumeRecord , lookupVolumeParticipant , lookupVolumeRecords , addRecord , changeRecord , removeRecord , recordJSON , columnSampleJson , extractPart...
b33e635f6251ac55124a625a81259c89e8320024880aa6a71fad6369287bfd11
mirage/ocaml-dkim
dkim.ml
module Refl = struct type ('a, 'b) t = Refl : ('a, 'a) t end module Body = Body module Sigs = Sigs open Sigs type (+'a, 'err) or_err = ('a, ([> `Msg of string ] as 'err)) result let error_msgf fmt = Fmt.kstr (fun msg -> Error (`Msg msg)) fmt let failwith_error_msg = function Ok v -> v | Error (`Msg err) -> failwit...
null
https://raw.githubusercontent.com/mirage/ocaml-dkim/5712202045b6e1b212787187a9376c397b1dd6ca/lib/dkim.ml
ocaml
TODO(dinosaure): we should add [DKIM-Signature] into * [others] when it's possible for a given [DKIM-Signature] to * sign an old one. TODO(dinosaure): [mrmime] tries to parse some specific fields * such as [Date:] with their formats. [p] enforces to parse all * of thes...
module Refl = struct type ('a, 'b) t = Refl : ('a, 'a) t end module Body = Body module Sigs = Sigs open Sigs type (+'a, 'err) or_err = ('a, ([> `Msg of string ] as 'err)) result let error_msgf fmt = Fmt.kstr (fun msg -> Error (`Msg msg)) fmt let failwith_error_msg = function Ok v -> v | Error (`Msg err) -> failwit...
ecd3b2e4ee2bc0ac0be351d2da57138228c957f687134407be7a0663456e9d9c
digitallyinduced/ihp
Types.hs
| Module : IHP.Assets . Types Copyright : ( c ) digitally induced GmbH , 2021 Module: IHP.Assets.Types Copyright: (c) digitally induced GmbH, 2021 -} module IHP.Assets.Types ( AssetVersion (..) ) where import IHP.Prelude | Stores the version appended to CSS and JS files via the @?v= .. @ query parameter -- ...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/d98c3d6eb8145d859c9ce461e7d1367be5be7337/IHP/Assets/Types.hs
haskell
> "/app.css?v=dev"
| Module : IHP.Assets . Types Copyright : ( c ) digitally induced GmbH , 2021 Module: IHP.Assets.Types Copyright: (c) digitally induced GmbH, 2021 -} module IHP.Assets.Types ( AssetVersion (..) ) where import IHP.Prelude | Stores the version appended to CSS and JS files via the @?v= .. @ query parameter _ _...
0fa457b3ce33f00e147ec0b76142eb2fec1bff87cd0782d5fd2f58bad78e0d6d
incoherentsoftware/defect-process
Description.hs
module Attack.Description ( module Attack.Description.Types , module Attack.Description.Parse ) where import Attack.Description.Parse import Attack.Description.Types
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Attack/Description.hs
haskell
module Attack.Description ( module Attack.Description.Types , module Attack.Description.Parse ) where import Attack.Description.Parse import Attack.Description.Types
61da8c9342345dfa04c72252e6cd27e8b5e99b9cc4a54f376daeb9283bf2ecc8
danr/hipspec
Rotate.hs
module Rotate where import Prelude hiding ((++),length,(+)) import HipSpec import Nat (Nat(..),(+)) import List ((++),length) rotate :: Nat -> [a] -> [a] rotate Z xs = xs rotate _ [] = [] rotate (S n) (x:xs) = rotate n (xs ++ [x]) prop_rotate :: [a] -> Prop [a] prop_rotate xs = rotate (length xs) x...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/examples/Rotate.hs
haskell
module Rotate where import Prelude hiding ((++),length,(+)) import HipSpec import Nat (Nat(..),(+)) import List ((++),length) rotate :: Nat -> [a] -> [a] rotate Z xs = xs rotate _ [] = [] rotate (S n) (x:xs) = rotate n (xs ++ [x]) prop_rotate :: [a] -> Prop [a] prop_rotate xs = rotate (length xs) x...
a31310c8772b1c9c1bc674c7f78a7c8534706268729e93b5a563ad0d9c027f22
conjure-cp/conjure
Geq.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.Geq where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified Data.HashMap.Strict as M -- ...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/Geq.hs
haskell
aeson unordered-containers vector
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.Geq where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpGeq x = OpGeq x x deriving (Eq, Ord, Show, Data, Functor, Traversable, Foldable, Typeable, Gene...
44c09792317588658968516177b3d2b4abb15bce61e4e8510aec5955d01c7203
nvim-treesitter/nvim-treesitter
indents.scm
[ (list) (dictionary) (set) (if_statement) (for_statement) (while_statement) (with_statement) (try_statement) (import_from_statement) (parenthesized_expression) (generator_expression) (list_comprehension) (set_comprehension) (dictionary_comprehension) (tuple_pattern) (list_pattern) ...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/2caac447205be44edb761edf26385d4c42ef4070/queries/python/indents.scm
scheme
[ (list) (dictionary) (set) (if_statement) (for_statement) (while_statement) (with_statement) (try_statement) (import_from_statement) (parenthesized_expression) (generator_expression) (list_comprehension) (set_comprehension) (dictionary_comprehension) (tuple_pattern) (list_pattern) ...
1974e3e578b5b2e324ae7ede9c2acbd46eaae16e1650756122e0aa6a991bef95
erlangonrails/devdb
dn_cache.erl
2007 - 2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing,...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/dn_cache.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2007 - 2010 fuer Informationstechnik Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : dn_cache.erl 940 2010 - 07 - 28 16:01:02Z -module(dn_cache). -author(''). -vsn('...
caee23356de445c8053425d6caf197dc94aef95898bae5c72266ce4842dde3c8
semilin/layoup
lamp.lisp
(MAKE-LAYOUT :NAME "lamp" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/lamp.lisp
lisp
(MAKE-LAYOUT :NAME "lamp" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
e71e7fef8880f483093741ba7edac2576b708f760c1d7fac3a25574d9bde110f
MyDataFlow/ttalk-server
ejabberd_sup.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_sup.erl Author : < > %%% Purpose : Erlang/OTP supervisor Created : 31 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribute it...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/ejabberd_sup.erl
erlang
---------------------------------------------------------------------- File : ejabberd_sup.erl Purpose : Erlang/OTP supervisor This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WI...
Author : < > Created : 31 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
b1941d55abb6060adc83dcf079068334ea6abcd228efe2b8205c9770ff8cab96
gethop-dev/payments.stripe
project.clj
(defproject dev.gethop/payments.stripe "0.3.9-SNAPSHOT" :description "A Duct library for interacting with the Stripe API" :url "-dev/payments.stripe" :license {:name "Mozilla Public License 2.0" :url "-US/2.0/"} :min-lein-version "2.9.8" :dependencies [[org.clojure/clojure "1.10.0"] ...
null
https://raw.githubusercontent.com/gethop-dev/payments.stripe/3cbbfd68b026f0ef5838d34768f5fc3e1098b6ba/project.clj
clojure
(defproject dev.gethop/payments.stripe "0.3.9-SNAPSHOT" :description "A Duct library for interacting with the Stripe API" :url "-dev/payments.stripe" :license {:name "Mozilla Public License 2.0" :url "-US/2.0/"} :min-lein-version "2.9.8" :dependencies [[org.clojure/clojure "1.10.0"] ...
4f9fc70c9e9a751adc40864977e6b4021383113db331651c9bceb054e9ce6d53
Nutr1t07/wl-bot
Logging.hs
module Utils.Logging where import Data.Time import System.IO data LogTag = Info | Warning | Error | Debug -- Log with tag logWT :: LogTag -> String -> IO () logWT logTag msg = do t <- getCurrentTime let nowtime = formatTime defaultTimeLocale "%Y/%m/%d %H:%M" t putStrLn $ concat ["[", nowtim...
null
https://raw.githubusercontent.com/Nutr1t07/wl-bot/4d9db61613a3819d0addbc7e04d77bb2f57892f0/src/Utils/Logging.hs
haskell
Log with tag | Log errors with action name and details.
module Utils.Logging where import Data.Time import System.IO data LogTag = Info | Warning | Error | Debug logWT :: LogTag -> String -> IO () logWT logTag msg = do t <- getCurrentTime let nowtime = formatTime defaultTimeLocale "%Y/%m/%d %H:%M" t putStrLn $ concat ["[", nowtime, "] ", "[", tr...
bd46222f0ca23133b4ca1d4840cdae763ec74077f563a5bfa84c9046f99f4b58
UU-ComputerScience/uhc
Main.hs
Compute the digits of " e " using continued fractions . Original program due to , Aug 2001 Compute the digits of "e" using continued fractions. Original program due to Dale Thurston, Aug 2001 -} import System.Environment type ContFrac = [Integer] {- Compute the decimal representation of e progressively. A c...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/benchmark/nofib/imag/digits-of-e1/Main.hs
haskell
Compute the decimal representation of e progressively. A continued fraction expansion for e is [2,1,2,1,1,4,1,1,6,1,...] Output a digit if we can No pole in range
Compute the digits of " e " using continued fractions . Original program due to , Aug 2001 Compute the digits of "e" using continued fractions. Original program due to Dale Thurston, Aug 2001 -} import System.Environment type ContFrac = [Integer] eContFrac :: ContFrac eContFrac = 2:aux 2 where aux n = 1:n:1...
647ca985fe44712a0962b4732b36b8e62624c08551f149a1713f383022d96e89
ghc/testsuite
tcfail180.hs
Showed up a bug in bodySplitTyConApp module ShouldFail where p :: f b p = error "urk" g x = case p of True -> ()
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail180.hs
haskell
Showed up a bug in bodySplitTyConApp module ShouldFail where p :: f b p = error "urk" g x = case p of True -> ()
0c265b6a23626493fb76cadea5a90b8ea675e1ac8cf09d88b489368a63cfb1ef
aturon/Caper
keywords.rkt
#lang racket ; sets up bindings for keywords internal to the reagent forms ; cribbed from class-internal.rkt (define-for-syntax (do-keyword stx orig-sym) (let ([orig-stx (datum->syntax #f orig-sym stx)]) (if (identifier? stx) (raise-syntax-error #f "illegal (unparenthesized) use of a r...
null
https://raw.githubusercontent.com/aturon/Caper/be05f13f3189c7717cd14a223b0cb3b188fe5bb1/core/keywords.rkt
racket
sets up bindings for keywords internal to the reagent forms cribbed from class-internal.rkt
#lang racket (define-for-syntax (do-keyword stx orig-sym) (let ([orig-stx (datum->syntax #f orig-sym stx)]) (if (identifier? stx) (raise-syntax-error #f "illegal (unparenthesized) use of a reagent keyword" orig-stx) (raise-syntax-error #f "use of a re...
a477b857c410c46e1f842fddcf750093f277ba19b1216958f62bf58489dba970
airbus-seclab/bincat
bare2C.ml
C2Newspeak : compiles C code into Newspeak . Newspeak is a minimal language well - suited for static analysis . Copyright ( C ) 2007 , This library 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 Fr...
null
https://raw.githubusercontent.com/airbus-seclab/bincat/493a03890b3b472fd198ce58c7e9280abd0f9f93/ocaml/src/npk/c2newspeak/bare2C.ml
ocaml
TODO: try to remove this global table initialize table of predefined types GNU C predefined types TODO: clean up put in gnuc.ml and think about architecture TODO: clean this code and find a way to factor with previous function TODO: remove this => not necessary anymore?? TODO: think about cleaning this loc...
C2Newspeak : compiles C code into Newspeak . Newspeak is a minimal language well - suited for static analysis . Copyright ( C ) 2007 , This library 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 Fr...
e8a51508c708d1a1a0fb0b503577247cb63f74ebdb8ac280e374abbd27f9fb12
FranklinChen/hugs98-plus-Sep2006
QueryUtils.hs
-- #hide -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.QueryUtils Copyright : ( c ) 2002 - 2005 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Port...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenGL/Graphics/Rendering/OpenGL/GL/QueryUtils.hs
haskell
#hide ------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.QueryUtils License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable This is a purely internal module wi...
Copyright : ( c ) 2002 - 2005 module Graphics.Rendering.OpenGL.GL.QueryUtils ( GetPName(..), clipPlaneIndexToEnum, lightIndexToEnum, getBoolean1, getBoolean4, getInteger1, getInteger2, getInteger4, getIntegerv, getEnum1, getSizei1, getFloat1, getFloat2, getFloat3, getFloat4, getFloatv, ...
af957bc478176cbfb4303d39fa89289420b4ec9f1b8b51a544cc779a588f597a
nasa/Common-Metadata-Repository
083_migrate_service_associations.clj
(ns cmr.metadata-db.migrations.083-migrate-service-associations (:require [config.mdb-migrate-helper :as h])) (def ^:private service-assocs-column-sql "id NUMBER, concept_id VARCHAR(255) NOT NULL, native_id VARCHAR(1500) NOT NULL, service_concept_id VARCHAR(255) NOT NULL, metadata BLOB NOT NULL, forma...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/f189d55ded0c235f19fbfc3597e772e22e4498ad/metadata-db-app/src/cmr/metadata_db/migrations/083_migrate_service_associations.clj
clojure
Unique constraint on native id and revision id Unique constraint on concept id and revision id rename CMR_SERVICE_ASSOCIATIONS table to prevent new entries from being inserted. Migrate service association data to CMR_ASSOCIATIONS table. Note: We will need to use the CMR_ASSOCIATIONS_SEQ.nextval for the ID column t...
(ns cmr.metadata-db.migrations.083-migrate-service-associations (:require [config.mdb-migrate-helper :as h])) (def ^:private service-assocs-column-sql "id NUMBER, concept_id VARCHAR(255) NOT NULL, native_id VARCHAR(1500) NOT NULL, service_concept_id VARCHAR(255) NOT NULL, metadata BLOB NOT NULL, forma...
390255c6ed2220bf4cacca88c90dd2898e370e9eebec83ab4d079a805b4f7258
oshyshko/uio
test_mem.clj
(ns uio.fs.test-mem (:require [uio.fs.mem :as mem] [uio.impl :refer :all] [midje.sweet :refer :all])) (facts "Mem works" (mem/reset) (spit (to "mem") "a") (spit (to "mem") "bb") (spit (to "mem") "ccc") (spit (to "mem") "dddd") (ls "mem:///") => [{:url "mem/" ...
null
https://raw.githubusercontent.com/oshyshko/uio/4e73ec5da0be1764e449ccc86e567ec701862332/test/uio/fs/test_mem.clj
clojure
check that files are returned in ascending order
(ns uio.fs.test-mem (:require [uio.fs.mem :as mem] [uio.impl :refer :all] [midje.sweet :refer :all])) (facts "Mem works" (mem/reset) (spit (to "mem") "a") (spit (to "mem") "bb") (spit (to "mem") "ccc") (spit (to "mem") "dddd") (ls "mem:///") => [{:url "mem/" ...
e697fc13f5373ab32a550c7f1a54aa59db3b525664133664838852073307a8d2
vmchale/libmeme
Spongebob.hs
module Text.Spongebob ( spongebobCase , spongebobZygo ) where import Control.Recursion (ListF (..), zygo) import Data.Char (toLower, toUpper) -- | \\( O(n) \\) spongebobCase :: String -> String spongebobCase = zipWith ($) (cycle [toUpper, toLower...
null
https://raw.githubusercontent.com/vmchale/libmeme/a1880f9c1886260e8d7ebf2e0e7844c63b0ee02b/src/Text/Spongebob.hs
haskell
| \\( O(n) \\) | \\( O(n) \\)
module Text.Spongebob ( spongebobCase , spongebobZygo ) where import Control.Recursion (ListF (..), zygo) import Data.Char (toLower, toUpper) spongebobCase :: String -> String spongebobCase = zipWith ($) (cycle [toUpper, toLower]) spongebobZygo ...
54fd69560be389730c1e428d0fe185a7c702541606b85bc60b4e2299a9ddd4fb
codinuum/cca
entity.ml
Copyright 2012 - 2020 Codinuum Software Lab < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/common/entity.ml
ocaml
entity.ml file digest (entire file) proj + ver proj + ver + file (entire file) file digest + line + column file digest + offset file digest + line + offset file digest + line + column + offset proj + ver + file + line + column proj + ver + file + offset proj + ver + file + line + offset proj + ve...
Copyright 2012 - 2020 Codinuum Software Lab < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in wri...
ef700cf5e700c6a81f29d64c553ddc335e39e2908751bccf70a65727d671ca1a
Ericson2314/lighthouse
Dispose.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : Window.Dispose Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Window.Dispose disposes all system resources asso...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Window/Dispose.hs
haskell
#hide --------------------------------------------------------------------------- | Module : Window.Dispose License : BSD-style Maintainer : Stability : provisional Portability : portable Window.Dispose disposes all system resources associated with the indicated window if it exists. -----...
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.Window.Dispose ( disposeWindow , disposeWindowStateHandle , disposeWElementHandle ) where import Graphics.UI.ObjectIO.CommonDef import Graphics.UI.ObjectIO.Control.Validate import Graphics.UI.ObjectIO.Id import Graphics.UI.ObjectIO.Process.IOState i...