_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
8bb15a39377decd55cb4df3d35e0ac1b3fd3e2e36ea7cb617deaaf91bbb3be3e
haskus/haskus-system
Symbol.hs
-- | ELF symbol tables module Haskus.Format.Elf.Symbol ( SymbolEntry (..) , SymbolBinding (..) , SymbolType (..) , SymbolVisibility (..) , SymbolInfo (..) , getSymbolEntry , putSymbolEntry ) where import Haskus.Binary.Bits import Haskus.Binary.Get import Haskus.Binary.Put import Haskus.Number.W...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/Format/Elf/Symbol.hs
haskell
| ELF symbol tables | Symbol entry in a symbol table | Symbol binding kind | Symbol type | Symbol visibility | Symbol information In the original semantics, symbol's "section" field can be used to encode other information and "info" field is taken for binding/type... We fix this ^ Undefined section ^ Associa...
module Haskus.Format.Elf.Symbol ( SymbolEntry (..) , SymbolBinding (..) , SymbolType (..) , SymbolVisibility (..) , SymbolInfo (..) , getSymbolEntry , putSymbolEntry ) where import Haskus.Binary.Bits import Haskus.Binary.Get import Haskus.Binary.Put import Haskus.Number.Word import Haskus.Forma...
cf47890cea9977238108995811dd5bf9ea9699d46ce6ba11a478fd4cf2a8c7da
Factual/geo
geohash.clj
(ns geo.geohash "Working with geohashes." (:require [geo.crs :as crs] [geo.spatial :as spatial] [geo.jts :as jts]) (:import (ch.hsr.geohash WGS84Point GeoHash) (org.locationtech.spatial4j.shape Shape) (org.locationtech.spatial4j.shape.impl RectangleImpl) (o...
null
https://raw.githubusercontent.com/Factual/geo/75722b097d559b5d073aa673fb35bfe69663b50b/src/geo/geohash.clj
clojure
origin argument. counterclockwise. Start (at L), with i = 0, going west Turn south at i = n - 2 Turn east Turn north Then stop (at F) Accrued list List length Current hash gh fully in shape. Add subdivisions of all valid levels into matches disjoint, no new geohash matches within or intersects: shape part...
(ns geo.geohash "Working with geohashes." (:require [geo.crs :as crs] [geo.spatial :as spatial] [geo.jts :as jts]) (:import (ch.hsr.geohash WGS84Point GeoHash) (org.locationtech.spatial4j.shape Shape) (org.locationtech.spatial4j.shape.impl RectangleImpl) (o...
833d13f1f74b8ca04b31718586136048f2da880e76c3e7a8e859b2ef677328b5
bobbae/gosling-emacs
more.ml
(defun ; pages you through the current buffer, <space> means next screen, ; <bs> means previous screen, <esc> or rubout ; just exits, and anything else exits and executes. more * char dot ( setq dot ( dot ) ) ( while ( ! ( eobp ) ) ( end - of - window ) ( if ( eobp ) ( message...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/more.ml
ocaml
more
(defun ; pages you through the current buffer, <space> means next screen, ; <bs> means previous screen, <esc> or rubout ; just exits, and anything else exits and executes. more * char dot ( setq dot ( dot ) ) ( while ( ! ( eobp ) ) ( end - of - window ) ( if ( eobp ) ( message...
19f178ef846c4a7eb7ddcda748b973715785de617788b4cf737f668410f03d04
mzp/coq-ruby
coq_tactics.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/ide/coq_tactics.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : 2004 - 07 - 16 ...
8ce9d89abb818eb24ee4e86053c1832f011912507168f7217aaf3225d73b8c72
sellout/haskerwaul
Orphans.hs
# language TypeApplications , UndecidableInstances # , UndecidableInstances #-} # options_ghc -fno - warn - orphans # -- | This module holds instances that create an import cycle when put in the -- obvious places. Moving instances out of here is a win. module Haskerwaul.Orphans where import ...
null
https://raw.githubusercontent.com/sellout/haskerwaul/b32ecdb141a5f9cca04ed85dc952028242c160a8/src/Haskerwaul/Orphans.hs
haskell
| This module holds instances that create an import cycle when put in the obvious places. Moving instances out of here is a win. instance {-# overlapping #-} (c ~ (->), d ~ (->), AdjointFunctor c d l r) => unit Proxy = NT (Compose . eta (Proxy :: Proxy d) . runIdentity) -- * Every object in a `CartesianMonoida...
# language TypeApplications , UndecidableInstances # , UndecidableInstances #-} # options_ghc -fno - warn - orphans # module Haskerwaul.Orphans where import Data.Functor.Compose (Compose(..)) import Data.Functor.Identity (Identity(..)) import Data.Proxy (Proxy(..)...
c41f3bd974efacb36fee126ef9259f7516fc5aa101995dc98e5c9f64a622ffd7
sellout/haskerwaul
Hom.hs
module Haskerwaul.Functor.Hom ( module Haskerwaul.Functor.Hom -- * extended modules , module Haskerwaul.Profunctor ) where import Haskerwaul.Profunctor -- | [nLab](-functor) type HomFunctor c = Profunctor c c
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Functor/Hom.hs
haskell
* extended modules | [nLab](-functor)
module Haskerwaul.Functor.Hom ( module Haskerwaul.Functor.Hom , module Haskerwaul.Profunctor ) where import Haskerwaul.Profunctor type HomFunctor c = Profunctor c c
97711a8a399c5b01d95a7b4bf10413181a9fa632ba8ae2058e0a11f2f363eb34
akabe/ocaml-jupyter
caml_args.mli
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitat...
null
https://raw.githubusercontent.com/akabe/ocaml-jupyter/7ea00fde81a915ee9d86c979f295f4c5dac28db8/src/repl/caml_args.mli
ocaml
* Command-line parameters for OCaml REPL
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitat...
e1d02272219aec8489e65389fcc803c77e0aa81eb0822b4445264d53aecdd9d6
Elzair/nazghul
effects.scm
;; ---------------------------------------------------------------------------- ;; effects.scm - generic effects procedures used in multiple places ;; ---------------------------------------------------------------------------- (define (mk-effect tag exec apply rm restart hook sym ddc cum dur) (kern-mk-effect tag ...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.001/effects.scm
scheme
---------------------------------------------------------------------------- effects.scm - generic effects procedures used in multiple places ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Poison Immunity W...
(define (mk-effect tag exec apply rm restart hook sym ddc cum dur) (kern-mk-effect tag "undef" "undef" exec apply rm restart hook sym ddc ...
36b827e472e45e37589f1199fb3d622ad3b92522728fa505d84a803d309cd74d
lueck/standoff-tools
TagSerializer.hs
# OPTIONS_GHC -F -pgmF htfpp # module Test.StandOff.TagSerializer (htf_thisModulesTests) where import Test.Framework import StandOff.TagSerializer import Test.StandOff.TestSetup test_splitOnHash = assertEqual ("#","Konzept") (splitNamespaceName "#Konzept") test_splitOnSlash = assertEqual ("/","...
null
https://raw.githubusercontent.com/lueck/standoff-tools/860a98d8ff619608ddbe6b7cd0db8ed82932d4ca/testsuite/Test/StandOff/TagSerializer.hs
haskell
# OPTIONS_GHC -F -pgmF htfpp # module Test.StandOff.TagSerializer (htf_thisModulesTests) where import Test.Framework import StandOff.TagSerializer import Test.StandOff.TestSetup test_splitOnHash = assertEqual ("#","Konzept") (splitNamespaceName "#Konzept") test_splitOnSlash = assertEqual ("/","...
191117d249178e2dfe48c54ddc212ab4b2056af621c07ce27c2f9e8598a1becd
haskell-hvr/missingh
Debian.hs
arch - tag : Debian Package utilities main file Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/e1a73bd9547db967b4e8d76a443000d06ce95ac4/src/System/Debian.hs
haskell
* Control or Similar File Utilities * Version Number Utilities -------------------------------------------------------------------- VERSION NUMBERS -------------------------------------------------------------------- This is OK since compareDebVersion should always be the same. ^ Operator
arch - tag : Debian Package utilities main file Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} | Module...
f862e15a4bced464f9bc4bd6d6a49ea7c2bb931195727de297f0d501b6c856a7
graninas/Functional-Design-and-Architecture
TestArrows.hs
{-# LANGUAGE Arrows #-} module TestArrows where import Control.Arrow import Control.Category import Control.Monad.Free import Prelude hiding ((.)) import ArrEff import ControllerDSL as C import InfrastructureDSL as I import ScriptingDSL as S import Control import ArrowDSL import Interpreters import TestProgram hiding...
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/6fd7b0b04e6f6dc8cc110b6f3a87f6dc7a1ef97d/First-Edition/BookSamples/CH04/ArrowizedDSL/TestArrows.hs
haskell
# LANGUAGE Arrows # (inst, inst) (inst, tempK) ((), (inst, tempK)) (time, (inst, tempK)) (time, inst, tempK) = reading (reading, reading) (reading, ((), result)) (reading, ((), ()))
module TestArrows where import Control.Arrow import Control.Category import Control.Monad.Free import Prelude hiding ((.)) import ArrEff import ControllerDSL as C import InfrastructureDSL as I import ScriptingDSL as S import Control import ArrowDSL import Interpreters import TestProgram hiding (test) thermMonitorA' ...
a8b89ab7184685d1c815a446607f80400d11ea369e3de51cb178fd562981b914
jenshweber/grape
core.clj
This file is part of gorilla - repl . Copyright ( C ) 2014- , . ;;;; gorilla - repl is licenced to you under the MIT licence . See the file for full details . (ns gorilla-repl.core (:require [compojure.core :refer :all] [compojure.route :as route] [org.httpkit.server :as server] ...
null
https://raw.githubusercontent.com/jenshweber/grape/4b8a796f0fe3568769d3287032a20137a9b41f93/src/gorilla_repl/core.clj
clojure
this is needed to bring the render implementations into scope the combined routes - we serve up everything in the "public" directory of resources under "/". The REPL traffic is handled in the websocket-transport ns. get configuration information from parameters auto-select port if none requested app startup bui...
This file is part of gorilla - repl . Copyright ( C ) 2014- , . gorilla - repl is licenced to you under the MIT licence . See the file for full details . (ns gorilla-repl.core (:require [compojure.core :refer :all] [compojure.route :as route] [org.httpkit.server :as server] ...
834425e34b4b5b3d2695bef923409170f64e9f5547ac7699e0cb06a9ed80c883
garrigue/lablgtk
gnomeCanvas.ml
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/src-unsupported/gnomeCanvas.ml
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
c0461752cc615621a3f8dad86782e9d1a1d5e9720af93fe828e866e0ca630c8f
j-cr/speck
project.clj
(defproject speck "1.1.0" :description "Concise syntax for your function specs" :url "-cr/speck" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1" :scope "provided"] [org.clojure/core.async "0.4.474"]] :profiles {:dev {:depende...
null
https://raw.githubusercontent.com/j-cr/speck/dfa4068fd06a31471223feefd88e82afe4d61ceb/project.clj
clojure
(defproject speck "1.1.0" :description "Concise syntax for your function specs" :url "-cr/speck" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1" :scope "provided"] [org.clojure/core.async "0.4.474"]] :profiles {:dev {:depende...
7eb8bff33aa590d61e3be7abda74ff5ded5540e1b5917b441e15dd681360b160
NorfairKing/validity
Show.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # -- | 'Show' and 'Read' properties module Test.Validity.Show ( showReadSpec, showReadSpecOnArbitrary, showReadSpecOnGen, showReadRoundTrip, showReadRoundTripOnArbitrary, ...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-hspec/src/Test/Validity/Show.hs
haskell
| 'Show' and 'Read' properties | Standard test spec for properties of Show and Read instances for valid values Example usage: | Standard test spec for properties of Show and Read instances for arbitrary values Example usage: | Standard test spec for properties of Show and Read instances for values generated b...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Validity.Show ( showReadSpec, showReadSpecOnArbitrary, showReadSpecOnGen, showReadRoundTrip, showReadRoundTripOnArbitrary, showReadRoundTripOnGen, ) whe...
d11527c84e76f61ab7b25706df5864d0f04b19947f632296e946c47d621d0cb9
metosin/testit
throws.clj
(ns testit.throws (:require [clojure.test :refer [do-report]] [testit.assert :refer [assert-arrow format-expected]] [testit.in :as in]) (:import (clojure.lang IExceptionInfo))) ;; ;; =throws=> ;; (defn cause-seq [^Throwable exception] (if exception (lazy-seq (cons exception ...
null
https://raw.githubusercontent.com/metosin/testit/85c9cfc9629f44d13e9b16fe25175235ae1e39e1/src/testit/throws.clj
clojure
=throws=> ex-info helper:
(ns testit.throws (:require [clojure.test :refer [do-report]] [testit.assert :refer [assert-arrow format-expected]] [testit.in :as in]) (:import (clojure.lang IExceptionInfo))) (defn cause-seq [^Throwable exception] (if exception (lazy-seq (cons exception (cause-seq...
313fc7f0aa04ede5c29d0b25c239754bf52f79c4b3424680b81a0a247c21af61
erlang/corba
orber_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/orber/test/orber_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 1997 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(orber_SUITE). -include_lib("common_test/include/ct.hrl"). -define(default_timeout, test_server:minutes(15))....
aa12cae95ee00ad8b794ba236b97cfb6997134fbea760dca4a5b21aab6aaa121
twosigma/Cook
controller.clj
(ns cook.kubernetes.controller (:require [clojure.string :as str] [clojure.tools.logging :as log] [cook.compute-cluster :as cc] [cook.config :as config] [cook.datomic :as datomic] [cook.kubernetes.api :as api] [cook.kubernetes.metrics :as metrics...
null
https://raw.githubusercontent.com/twosigma/Cook/64fa4858c518c924b0b1bdc5cc40478f67743315/scheduler/src/cook/kubernetes/controller.clj
clojure
TODO: This is not right. We need to tune/tweak this to suppress otherwise identical states so we don't spam. It's ok to pass nil for cook-expected-state-dict because we only use this code path when the cook-expected-state-dict is already nil (aka :missing) These metrics only measure the happy paths to avoid wide ...
(ns cook.kubernetes.controller (:require [clojure.string :as str] [clojure.tools.logging :as log] [cook.compute-cluster :as cc] [cook.config :as config] [cook.datomic :as datomic] [cook.kubernetes.api :as api] [cook.kubernetes.metrics :as metrics...
914f440f5b8ed90be1ed3a8a8f2671a168d7710c2360b69053e353e6e8d258ee
HealthSamurai/stresty
input.cljc
(ns anti.input (:require [anti.util :refer [block parse-int parse-float]] [anti.spin :refer [spin]] [stylo.core :refer [c c?]] [re-frame.core :as rf] [anti.util :refer [class-names]] [clojure.string :as str] [zf.core :as zf])) (def base-class (c :inline-flex :w-full [:items-center] ...
null
https://raw.githubusercontent.com/HealthSamurai/stresty/130cedde6bf53e07fe25a6b0b13b8bf70846f15a/src-ui/anti/input.cljc
clojure
(ns anti.input (:require [anti.util :refer [block parse-int parse-float]] [anti.spin :refer [spin]] [stylo.core :refer [c c?]] [re-frame.core :as rf] [anti.util :refer [class-names]] [clojure.string :as str] [zf.core :as zf])) (def base-class (c :inline-flex :w-full [:items-center] ...
738991bf735dbd0f7cfac6fc258aacbd5bc1a21827e6af069f3207ffce738f76
clojure-interop/java-jdk
SearchResult.clj
(ns javax.naming.directory.SearchResult "This class represents an item in the NamingEnumeration returned as a result of the DirContext.search() methods. A SearchResult instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single SearchResult inst...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.naming/src/javax/naming/directory/SearchResult.clj
clojure
false if name is a URL string. - `boolean`"
(ns javax.naming.directory.SearchResult "This class represents an item in the NamingEnumeration returned as a result of the DirContext.search() methods. A SearchResult instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single SearchResult inst...
1d4e5f428dbdb17c2478c6e4cb3433895dbd828772fbc7bff5e0ec55c865d2b6
kblake/erlang-chat-demo
element_hgroup.erl
Nitrogen Web Framework for Erlang See MIT - LICENSE for licensing information . -module (element_hgroup). -include_lib ("wf.hrl"). -compile(export_all). reflect() -> record_info(fields, hgroup). render_element(Record) -> CheckH1ThruH6 = fun (X) -> if is_rec...
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/elements/html5/element_hgroup.erl
erlang
Nitrogen Web Framework for Erlang See MIT - LICENSE for licensing information . -module (element_hgroup). -include_lib ("wf.hrl"). -compile(export_all). reflect() -> record_info(fields, hgroup). render_element(Record) -> CheckH1ThruH6 = fun (X) -> if is_rec...
01c0a33366970409e58bf78795694b993663c3217c9f99add1b2c666f38e070d
arsalan0c/cdp-hs
subscribe.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import qualified CDP as CDP import Data.Default (def) import Control.Concurrent (threadDelay) import Control.Monad (forever) import Control.Monad.Fix (mfix) main :: IO () main = CDP.runClient def $ \handle -> do CDP.sendCommandWait handle CDP.pPageEna...
null
https://raw.githubusercontent.com/arsalan0c/cdp-hs/6e70dbc59d394a0794b4a92e95f8851c11a3a624/examples/subscribe.hs
haskell
# LANGUAGE OverloadedStrings #
module Main (main) where import qualified CDP as CDP import Data.Default (def) import Control.Concurrent (threadDelay) import Control.Monad (forever) import Control.Monad.Fix (mfix) main :: IO () main = CDP.runClient def $ \handle -> do CDP.sendCommandWait handle CDP.pPageEnable sub1 <- mfix $ \sub -> CDP.su...
96e9abedc6dd42fd44a905bc616523dab1fcd4e90a384b4f6d1b23d7f3a76b45
Oblosys/proxima
CompileHelium.hs
no Lexing done by Proxima no parsing done by Proxima no imports not supported by Proxima 's subset of Helium no ResolveOperators Proxima does not fully support operators yet no typing strategies not that important for the editor no desugaring compile only until ...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/helium-editor/src/CompileHelium.hs
haskell
Phase 3: Importing Phase 7: Type Inference Directives --------------------------------- 'W' and 'M' are predefined type inference algorithms
no Lexing done by Proxima no parsing done by Proxima no imports not supported by Proxima 's subset of Helium no ResolveOperators Proxima does not fully support operators yet no typing strategies not that important for the editor no desugaring compile only until ...
4ddeddac21ccef21ef45b2cc922730b9c39dbbb6c67adda5486c2758467e523f
wdebeaum/DeepSemLex
ssl.lisp
;;;; ;;;; W::ssl ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::ssl (SENSES ((LF-PARENT ONT::protocol) (EXAMPLE "use ssl to ensure that personal data is not stolen") (meta-data :origin task-learning :entry-date 20050824 :change-date nil :comments nil) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/ssl.lisp
lisp
W::ssl
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::ssl (SENSES ((LF-PARENT ONT::protocol) (EXAMPLE "use ssl to ensure that personal data is not stolen") (meta-data :origin task-learning :entry-date 20050824 :change-date nil :comments nil) ) ) ) ))
20244d4133c2b82b8477aaad3dfbfba2909a995d88c8f576d88f04a459a2b346
jwiegley/trade-journal
Annotated.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # module Journal.Types.Annotated where import Control.Lens hiding (Context) import Data.Default import Data....
null
https://raw.githubusercontent.com/jwiegley/trade-journal/a355547e2396c82e3c410ef7e403d94f0b6e1b0a/src/Journal/Types/Annotated.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # | All annotations that relate to lot shares are expressed "per share".
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # module Journal.Types.Annotated where import Control.Lens hiding (Context) import Data.Default import Data.Text (Text) import Data.Time import Data.Time.Calendar.OrdinalDate import Data.Time.Format.ISO8601 imp...
0d395007436376121326158e41909bed5479b25f38fa45f444b2826ca62a4183
Gbury/archsat
ext_logic.mli
This file is free software , part of Archsat . See file " LICENSE " for more details . (** Extension for propositional logic *) val register : unit -> unit (** Register the extension *)
null
https://raw.githubusercontent.com/Gbury/archsat/322fbefa4a58023ddafb3fa1a51f8199c25cde3d/src/core/ext_logic.mli
ocaml
* Extension for propositional logic * Register the extension
This file is free software , part of Archsat . See file " LICENSE " for more details . val register : unit -> unit
51206fb1b5d60bf193fb101304ce03e5ebcf8560eee1b05db5b818e602c48d3a
gebi/jungerl
fdoc.erl
%%%---------------------------------------------------------------------- %%% File : fdoc.erl Author : < > %%% Purpose : Heuristic sourcecode documentation extractor %%% (A poor man's 'edoc') Created : 26 Feb 2003 by < > %%%---------------------------------------------------------------------- ...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/msc/src/fdoc.erl
erlang
---------------------------------------------------------------------- File : fdoc.erl Purpose : Heuristic sourcecode documentation extractor (A poor man's 'edoc') ---------------------------------------------------------------------- Server-based interface Function-based interface ------------------...
Author : < > Created : 26 Feb 2003 by < > -module(fdoc). -author(''). -import(lists, [reverse/1, splitwith/2, takewhile/2, flatten/1, map/2, foreach/2, member/2, sort/1, any/2]). -export([apropos/1, get_apropos/1, describe/1, describe/2, describe/3, description/1, description/2, description/3, r...
f60b12fc892c4feca9f984940544b4f519eb7863910e086b80d99726b525c665
lspector/Clojush
tg8.clj
;; tg8.clj an example problem for clojush , a Push / PushGP system written in Clojure , , 2010 (ns clojush.problems.integer-regression.tg8 (:use [clojush.pushgp.pushgp] [clojush.pushstate] [clojush.random] [clojush.interpreter] [clojure.math.numeric-tower])) ;;;;;;;;;;;; Int...
null
https://raw.githubusercontent.com/lspector/Clojush/685b991535607cf942ae1500557171a0739982c3/src/clojush/problems/integer_regression/tg8.clj
clojure
tg8.clj the core integer arithmetic instructions and an input instruction that uses the input stack. This example also demonstrates the use of fitness penalties for abnormally terminating programs. -geography-toappear.pdf (Hence the name tg8.)
an example problem for clojush , a Push / PushGP system written in Clojure , , 2010 (ns clojush.problems.integer-regression.tg8 (:use [clojush.pushgp.pushgp] [clojush.pushstate] [clojush.random] [clojush.interpreter] [clojure.math.numeric-tower])) Integer symbolic regression...
cdcb80f27c16c858d173552941f6fa3cb85a37e7d57b834637f1d954d89e09a2
skanev/playground
env.scm
(define-datatype environment environment? (empty-env) (extend-env (var symbol?) (val expval?) (env environment?)) (extend-env-rec (p-name symbol?) (b-var symbol?) (body expression?) (env environment?))) (define (extend-env* vars vals env) (if (null? vars) env (extend-env...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/cases/letrec/env.scm
scheme
(define-datatype environment environment? (empty-env) (extend-env (var symbol?) (val expval?) (env environment?)) (extend-env-rec (p-name symbol?) (b-var symbol?) (body expression?) (env environment?))) (define (extend-env* vars vals env) (if (null? vars) env (extend-env...
67aa9cd698489c102df8fbe781319a492a23e8ff9f9df245feb9338456f35208
xvw/jsoo_router
router.mli
* Router for Js_of_ocaml * * Copyright ( C ) 2016 < > * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option )...
null
https://raw.githubusercontent.com/xvw/jsoo_router/98a895f3c246cccfb4ae18ddf3f018d2d59671ab/src/router.mli
ocaml
* This module is the entry point for Routing manipulation. * Exceptions throwed when a runtime error is occured * [Router.get_hash ()] returns the value of the current hash * [Router.set_hash "foo"] sets the current hash with [#foo] * [Router.clean_hash ()] remove the hash * [Router.start f] starts routing * [R...
* Router for Js_of_ocaml * * Copyright ( C ) 2016 < > * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option )...
021229d9f83eb68e9dae8e154a8a1b0411221a706cf45e0ad41c4a47aeb80c18
webnf/webnf
deps.cljs
{:foreign-libs [{:file "file-saver.js" :provides ["webnfjs.file-saver"]} {:file "META-INF/resources/webjars/jszip/2.4.0/jszip.js" :file-min "META-INF/resources/webjars/jszip/2.4.0/jszip.min.js" :provides ["webnfjs.jszip"]} {:file "polyfi...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/cljs/src/deps.cljs
clojure
{:foreign-libs [{:file "file-saver.js" :provides ["webnfjs.file-saver"]} {:file "META-INF/resources/webjars/jszip/2.4.0/jszip.js" :file-min "META-INF/resources/webjars/jszip/2.4.0/jszip.min.js" :provides ["webnfjs.jszip"]} {:file "polyfi...
d282754df561a8a303e3d2e96e0c0c964e30ee254df6a9a5bd0b2bed084c701c
anoma/juvix
Options.hs
module Commands.Dev.MiniC.Options where import CommonOptions newtype MiniCOptions = MiniCOptions { _miniCInputFile :: AppPath File } deriving stock (Data) makeLenses ''MiniCOptions parseMiniC :: Parser MiniCOptions parseMiniC = do _miniCInputFile <- parseInputJuvixFile pure MiniCOptions {..}
null
https://raw.githubusercontent.com/anoma/juvix/af63c36574da981e62d72b3c985fff2ba6266e8b/app/Commands/Dev/MiniC/Options.hs
haskell
module Commands.Dev.MiniC.Options where import CommonOptions newtype MiniCOptions = MiniCOptions { _miniCInputFile :: AppPath File } deriving stock (Data) makeLenses ''MiniCOptions parseMiniC :: Parser MiniCOptions parseMiniC = do _miniCInputFile <- parseInputJuvixFile pure MiniCOptions {..}
c6c20431c1c69f6b8659193c0d477d368ad21d75c1bcb0bf364b2ec3dab7d63e
LeventErkok/sbv
SizedFloats.hs
----------------------------------------------------------------------------- -- | -- Module : Data.SBV.Core.Sized Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Type-level sized floats. ----------------------------------------------------------------------------- {-# LA...
null
https://raw.githubusercontent.com/LeventErkok/sbv/0d791d9f4d1de6bd915b6d7d3f9a550385cb27a5/Data/SBV/Core/SizedFloats.hs
haskell
--------------------------------------------------------------------------- | Module : Data.SBV.Core.Sized License : BSD3 Maintainer: Stability : experimental Type-level sized floats. --------------------------------------------------------------------------- # LANGUAGE DataKinds # # LANGUAGE Sc...
Copyright : ( c ) # LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Data.SBV.Core.SizedFloats ( FloatingPoint(..), FP(..), FPHalf, FPBFloat, FPSingle, FPDouble, FPQuad , fpFromRawRep, fpFromBigFloat, fpNaN, fpInf, fpZero , f...
bad6a0ad6bbce8dfef9c09df7c3f6177e5079d907fc0c6723e7fc3696bd51f51
JoelSanchez/ventas
core.cljs
(ns ventas.themes.admin.core (:require [ventas.core] [clojure.string :as str] [re-frame.core :as rf] [ventas.i18n :refer [i18n]] [ventas.themes.admin.activity-log] [ventas.routes :as routes] [ventas.themes.admin.configuration.email] [ventas.themes.admin.configuration.general] [ventas.themes...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/cljs/ventas/themes/admin/core.cljs
clojure
(ns ventas.themes.admin.core (:require [ventas.core] [clojure.string :as str] [re-frame.core :as rf] [ventas.i18n :refer [i18n]] [ventas.themes.admin.activity-log] [ventas.routes :as routes] [ventas.themes.admin.configuration.email] [ventas.themes.admin.configuration.general] [ventas.themes...
695c576bfa2ece36d15a4c68ea9f908588b4381fb2d6652ba732535934e01d3e
realworldocaml/book
compound_user_error.ml
open Import module T : sig type t = private { main : User_message.t ; related : User_message.t list } val create : main:User_message.t -> related:User_message.t list -> t end = struct type t = { main : User_message.t ; related : User_message.t list } let create ~main ~related = le...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_engine/compound_user_error.ml
ocaml
We assume that there's at most one error coming from a command for now.
open Import module T : sig type t = private { main : User_message.t ; related : User_message.t list } val create : main:User_message.t -> related:User_message.t list -> t end = struct type t = { main : User_message.t ; related : User_message.t list } let create ~main ~related = le...
b8612bd31d0d93a345184403fc64063a6a65c8c89b45eaa286593f8689d65e51
vincenthz/hs-socks
Parse.hs
# LANGUAGE CPP # {-# LANGUAGE Rank2Types #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} -- | -- Module : Network.Socks5.Parse -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : portable -- A very simple bytestring parser related to Parsec and A...
null
https://raw.githubusercontent.com/vincenthz/hs-socks/270367fc323590e6b96bbeca1328007e86514eff/Network/Socks5/Parse.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # | Module : Network.Socks5.Parse License : BSD-style Stability : experimental Portability : portable Simple example: * Parser methods | Simple parsing result, that represent respectively: * failure: with the error m...
# LANGUAGE CPP # Maintainer : < > A very simple bytestring parser related to Parsec and Attoparsec > > parse ( ( , ) < $ > take 2 < * > byte 0x20 < * > ( bytes " abc " * > anyByte ) ) " " > ParseOK " est " ( " xx " , 116 ) module Network.Socks5.Parse ( Parser , Result(..) * run the Parser ,...
8d333437d1e966b8a1ad23171e8d5b9e0b75ff738374d455e4c2a9666247be21
racket/plai
test.rkt
#lang scheme (require plai/test-harness) (provide count-errors) (define (count-errors [results plai-all-test-results]) (foldl (λ (r n) (if (or (symbol=? (first r) 'bad) (symbol=? (first r) 'exception)) (+ n 1) n)) 0 results))
null
https://raw.githubusercontent.com/racket/plai/164f3b763116fcfa7bd827be511650e71fa04319/plai-lib/private/test.rkt
racket
#lang scheme (require plai/test-harness) (provide count-errors) (define (count-errors [results plai-all-test-results]) (foldl (λ (r n) (if (or (symbol=? (first r) 'bad) (symbol=? (first r) 'exception)) (+ n 1) n)) 0 results))
0439fe50fb1ed5f7244d9aea93b342b1a6763b27e4037a8b478dea67584e78a3
S8A/htdp-exercises
ex525.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 ex525) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex525.rkt
racket
about the language level of this file in a form that our tools can easily process. generative adds the triangle (a, b, c) to s, midpoints of its sides; stop if (a, b, c) is too small using threshold t termination is never reached if t equals 0 —IN— (add-sierpinski MT A B C 5) Image Posn Posn Posn -> Image ad...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex525) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "image.rkt" "teachpac...
a286934a44d33f81589f88ad5385dc76109cef1f94f5df9ad8cf395ec3d494a9
simonmar/monad-par
SumEulerPrimes.hs
module SumEulerPrimes where import Data.List sumPhi n = sum (map phiOpt [1..n]) phiOpt :: Int -> Int phiOpt 1 = 0 phiOpt n = foldl (*) 1 [ (p-1)*p^(k-1) | (p,k) <- primefactors n ] -- factorise n to a list of (prime, multiplicity) primefactors :: Int -> [(Int,Int)] primefactors n | n <= 1...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/examples/src/sumeuler/SumEulerPrimes.hs
haskell
factorise n to a list of (prime, multiplicity) gather identical primes in the list brute-force factorisation, using precomputed prime list
module SumEulerPrimes where import Data.List sumPhi n = sum (map phiOpt [1..n]) phiOpt :: Int -> Int phiOpt 1 = 0 phiOpt n = foldl (*) 1 [ (p-1)*p^(k-1) | (p,k) <- primefactors n ] primefactors :: Int -> [(Int,Int)] primefactors n | n <= 1 = [] | otherwise = primeList (p...
d035a9126ffc8345d1f450a2352200482cf4cc504b328d001003887dc0f33eb3
mirage/colombe
state.mli
type ('a, 'err) t = | Read of { buffer : bytes; off : int; len : int; k : [ `End | `Len of int ] -> ('a, 'err) t; } | Write of { buffer : string; off : int; len : int; k : int -> ('a, 'err) t } | Return of 'a | Error of 'err val reword_error : ('a -> 'b) -> ('v, 'a) t -> ('v, 'b) t ...
null
https://raw.githubusercontent.com/mirage/colombe/bbecbb17b581fa1db70a61de14efb51a66f30451/src/state.mli
ocaml
type ('a, 'err) t = | Read of { buffer : bytes; off : int; len : int; k : [ `End | `Len of int ] -> ('a, 'err) t; } | Write of { buffer : string; off : int; len : int; k : int -> ('a, 'err) t } | Return of 'a | Error of 'err val reword_error : ('a -> 'b) -> ('v, 'a) t -> ('v, 'b) t ...
3b73944d5b7b7bd527492001633108e2888d78730afc3b431507f9c6ce638c24
ghcjs/jsaddle-dom
HTMLDataListElement.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.HTMLDataListElement (getOptions, HTMLDataListElement(..), gTypeHTMLDataListElement) where import Prelude ((....
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/HTMLDataListElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.HTMLDataListElement (getOptions, HTMLDataListElement(..), gTypeHTMLDataListElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realTo...
ab42db9a5e2275d0e16c6d7a1623259f7638a99d8c291b05efaaaa60e21ebc0e
jiangpengnju/htdp2e
specifying-with-lambda.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 specifying-with-lambda) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t const...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/abstraction/nameless-functions/specifying-with-lambda.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of Number] [Number Number -> Boolean] -> [List-of Number] [List-of Number] -> [List-of Number] produces a variant of alon sorted by cmp Number [List-of Number] -> [List-of Number] inserts n into the sorted list of numbers alo...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname specifying-with-lambda) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) sort according tp cmp (check-expec...
5aae0a966b5fdfaebfa9bbd6ca54e8bd0ab009a6e0ac4c19e8463998800ba596
lpw25/ocaml-typed-effects
pprintast.mli
(***********************************************************************) (* *) (* OCaml *) (* *) ( Univers...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/parsing/pprintast.mli
ocaml
********************************************************************* OCaml ...
( University of Pennsylvania ) Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . type space_formatter = (unit, Format.fo...
f8f3696846778b3929d0fcd39b4a5dcccbba1739a434444f4ca1d682b640b78b
shamazmazum/similar-images
classes.lisp
(in-package :similar-images) (defclass hash-database () ((base-directory :initarg :base-directory :initform (error "Specify base directory") :accessor db-base-directory :type (or pathname string) :documentation "Pare...
null
https://raw.githubusercontent.com/shamazmazum/similar-images/3bc22c9891cd49fd915f1ab07f502ad86c43bacf/src/classes.lisp
lisp
(in-package :similar-images) (defclass hash-database () ((base-directory :initarg :base-directory :initform (error "Specify base directory") :accessor db-base-directory :type (or pathname string) :documentation "Pare...
387a983ed49714d98f5c21c81bc571f314814f24077d69835738da985b3be1e0
johanhaleby/stub-http
macro_test.clj
(ns stub-http.macro-test (:require [clojure.test :refer :all] [stub-http.core :refer :all] [cheshire.core :as json] [clj-http.lite.client :as client])) (deftest FakeWebServerMacro (testing "matches string path" (with-routes! {"/something" {:status 200 :content-type "ap...
null
https://raw.githubusercontent.com/johanhaleby/stub-http/6ad71d8e72e9fca761b647d262f89b84cd54777e/test/stub_http/macro_test.clj
clojure
(ns stub-http.macro-test (:require [clojure.test :refer :all] [stub-http.core :refer :all] [cheshire.core :as json] [clj-http.lite.client :as client])) (deftest FakeWebServerMacro (testing "matches string path" (with-routes! {"/something" {:status 200 :content-type "ap...
b0b5bd43b5a07cfac5bf25a00be32d7209dee3255eef7f60faf4e0902df2ab72
crategus/cl-cffi-gtk
rtest-glib-utils.lisp
(def-suite glib-utils :in glib-suite) (in-suite glib-utils) ;;; --- Types and Values ------------------------------------------------------- ;;; GUserDirectory ;;; G_OS_INFO_KEY_NAME G_OS_INFO_KEY_PRETTY_NAME ;;; G_OS_INFO_KEY_VERSION ;;; G_OS_INFO_KEY_VERSION_CODENAME G_OS_INFO_KEY_VERSI...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/7f5a09f78d8004a71efa82794265f2587fff98ab/test/rtest-glib-utils.lisp
lisp
--- Types and Values ------------------------------------------------------- GUserDirectory G_OS_INFO_KEY_NAME G_OS_INFO_KEY_VERSION G_OS_INFO_KEY_VERSION_CODENAME G_OS_INFO_KEY_ID G_OS_INFO_KEY_HOME_URL G_OS_INFO_KEY_DOCUMENTATION_URL G_OS_INFO_KEY_SUPPORT_URL G_OS_INFO_KE...
(def-suite glib-utils :in glib-suite) (in-suite glib-utils) G_OS_INFO_KEY_PRETTY_NAME G_OS_INFO_KEY_VERSION_ID (defvar *first-run-application* t) (test g-application-name (when *first-run-application* #+(and sbcl (not windows)) (is (string= "sbcl" (g-application-name))) #+(and s...
4cc60ad929f813e6b778211cb4b72bc38c16df19ed0a29cbd3c629d9bdc18ace
codedownio/sandwich
ArgParsing.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} module Test.Sandwich.Types.ArgParsing where import Control.Monad.Logger import GHC.Int * FormatterType data FormatterType = Print #ifndef mingw32_HOST_OS | TUI #endif | PrintFailures | Auto | Silent instance Show FormatterType where show Print = "print" ...
null
https://raw.githubusercontent.com/codedownio/sandwich/aa7ea94dbf8c348745d2ab704b6d5f872ba4f534/sandwich/src/Test/Sandwich/Types/ArgParsing.hs
haskell
# LANGUAGE RankNTypes # * CommandLineOptions * golden options * sandwich-quickcheck options * sandwich-hedgehog options * sandwich-slack options * sandwich-webdriver options
# LANGUAGE CPP # module Test.Sandwich.Types.ArgParsing where import Control.Monad.Logger import GHC.Int * FormatterType data FormatterType = Print #ifndef mingw32_HOST_OS | TUI #endif | PrintFailures | Auto | Silent instance Show FormatterType where show Print = "print" show PrintFailures = "print...
88b49412954c155b7e3eeb5074924529eea44645943b0d26651e1a119373ef49
eeng/mercurius
withdraw.clj
(ns mercurius.wallets.domain.use-cases.withdraw (:require [clojure.spec.alpha :as s] [mercurius.wallets.domain.entities.wallet :as wallet] [mercurius.accounts.domain.entities.user :as user])) (s/def ::user-id ::user/id) (s/def ::currency ::wallet/currency) (s/def ::amount number?) (s/def ::co...
null
https://raw.githubusercontent.com/eeng/mercurius/f83778ddde99aa13692e4fe2e70b2e9dc2fd70e9/src/mercurius/wallets/domain/use_cases/withdraw.clj
clojure
(ns mercurius.wallets.domain.use-cases.withdraw (:require [clojure.spec.alpha :as s] [mercurius.wallets.domain.entities.wallet :as wallet] [mercurius.accounts.domain.entities.user :as user])) (s/def ::user-id ::user/id) (s/def ::currency ::wallet/currency) (s/def ::amount number?) (s/def ::co...
33ace49fcee2279f39aa8454c7207a0c9f4e4c1692ac88dc5ca7c4c40f4bf692
samaaron/arnold
petals.clj
(ns arnold.petals (:use quil.core [overtone.helpers.ref])) Modified version of " Mums " by ;; (defonce num-petals-to-draw* (atom 0)) (def magenta [255 0 255]) (def orange [255 170 0]) (def chartreuse [127 255 0]) (def flower-colors [magenta orange chartreuse]) (def yellow [255 255 0]) (defn setup [] ...
null
https://raw.githubusercontent.com/samaaron/arnold/e8daa3ba14dc0d654740750d6cf02ef42cd0fc2e/src/arnold/petals.clj
clojure
TODO: Need correct implementation This is done because ellipse() starts drawing from the top left corner (draw-streaks petal-color petal-length) This is a cheat to make sure the petals don't show through the gaps in between the circles created below Algorithm is as follows * Randomize number of petals per...
(ns arnold.petals (:use quil.core [overtone.helpers.ref])) Modified version of " Mums " by (defonce num-petals-to-draw* (atom 0)) (def magenta [255 0 255]) (def orange [255 170 0]) (def chartreuse [127 255 0]) (def flower-colors [magenta orange chartreuse]) (def yellow [255 255 0]) (defn setup [] (s...
6ea76d4c11aacda214bd196466679dbf43a0ae4def2851a8f8a66c77b01aff06
OCamlPro/ocp-build
fileName.ml
(**************************************************************************) (* *) (* Typerex Libraries *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/libs/ocplib-file/fileName.ml
ocaml
************************************************************************ Typerex Libraries ...
Copyright 2011 - 2017 OCamlPro SAS the GNU Lesser General Public License version 2.1 , with the open OcpCompat let copy_file f1 f2 = let s = ReentrantBuffers.get default_buffer_size in let ic = open_in_bin f1 in let oc = open_out_bin f2 in let r...
d78dd41ce0eba48285b07cbaa89852aa2454d58daf313a76ea0d6abdd36830b6
lispbuilder/lispbuilder
package.lisp
;;;; lispbuilder-net ( C ) 2007 < > (in-package #:cl-user) (defpackage #:lispbuilder-net-cffi (:use #:cl #:cffi) (:nicknames #:net-cffi) (:documentation "The basic wrapper package of `lispbuilder-net'.") (:export #:*default-surface* #:*default-display* #:NET_STARTUP_FAILED #:NET_CLEANUP_FA...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-net/cffi/package.lisp
lisp
lispbuilder-net
( C ) 2007 < > (in-package #:cl-user) (defpackage #:lispbuilder-net-cffi (:use #:cl #:cffi) (:nicknames #:net-cffi) (:documentation "The basic wrapper package of `lispbuilder-net'.") (:export #:*default-surface* #:*default-display* #:NET_STARTUP_FAILED #:NET_CLEANUP_FAILED #:NET_BIND_FA...
e41bfbffd332f6bab466a440a76869beabf2879e2c3d4618747fedf5c5a5f84a
lichenscript/lichenscript
loc.ml
type position = { line: int; column: int; offset: int; } let pp_position formatter pos = Format.fprintf formatter "(%d:%d)" pos.line pos.column type t = { source: File_key.t option; start: position; _end: position; } [@@deriving show] let none = { source = None; start = { line = 0; column = 0; of...
null
https://raw.githubusercontent.com/lichenscript/lichenscript/24a08cafce55188eb511c871144baf5462a48738/lib/lex/loc.ml
ocaml
type position = { line: int; column: int; offset: int; } let pp_position formatter pos = Format.fprintf formatter "(%d:%d)" pos.line pos.column type t = { source: File_key.t option; start: position; _end: position; } [@@deriving show] let none = { source = None; start = { line = 0; column = 0; of...
66edabf7ac649fbf57b56c90c2a48d90f9aaf20cba8d0ea690bc26b8713ade17
mstksg/functor-combinators
Chain.hs
# OPTIONS_GHC -Wno - orphans # -- | -- Module : Data.HFunctor.Chain Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- This module provides an 'Interpret'able data type of "linked list of -- tensor applications". -- -- The typ...
null
https://raw.githubusercontent.com/mstksg/functor-combinators/5c7b9d9c66eaa797f2110e1d188a10d1e7f5bfe4/src/Data/HFunctor/Chain.hs
haskell
| Module : Data.HFunctor.Chain License : BSD3 Stability : experimental Portability : non-portable This module provides an 'Interpret'able data type of "linked list of tensor applications". The type @'Chain' t@, for any @'Tensor' t@, is meant to be the same as The type @'Chain1' t@, for any @'Ass...
# OPTIONS_GHC -Wno - orphans # Copyright : ( c ) 2019 Maintainer : @'ListBy ' t@ ( the monoidal functor combinator for @t@ ) , and represents " zero or more " applications of @f@ to same as @'NonEmptyBy ' t@ ( the semigroupoidal functor combinator for @t@ ) and represents " one or more " applicati...
1f7972f6c327eea4d87a5b67bc74a7ec45ca7d8fa87841b9c51a14de7a649b01
informatimago/lisp
asdf.lisp
-*- coding : utf-8 -*- ;;;;**************************************************************************** FILE : asdf.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; . ;;;; < PJB > < > MODIFICATIONS 2005 - 05...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/cl-loaders/asdf.lisp
lisp
**************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope...
-*- coding : utf-8 -*- FILE : asdf.lisp USER - INTERFACE : . < PJB > < > MODIFICATIONS 2005 - 05 - 05 < PJB > Merged changes . 2005 - 01 - 21 < PJB > Added scanning of PACKAGES : for ASD files . 2003 - 06 - 05 < PJB > Created . AGPL3 Copyright 2003 - ...
b91b00a3d6131b78eae05bbc2de68cb23fd2892e3a4c5d6fe811cc42d94682d1
haskell/aeson
UnitTests.hs
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE QuasiQuotes # # LANGUAGE RecursiveDo # #if __GLASGOW_HASKELL__ >= 806 ...
null
https://raw.githubusercontent.com/haskell/aeson/78c2338c20d31ba5dd46036d10d6c4815c12185d/tests/UnitTests.hs
haskell
# LANGUAGE OverloadedStrings # Lazy! Test that if we put a bomb in a data structure, but only demand part of it via lazy encoding, we do not unexpectedly fail. Test decoding various UTC time formats intentional. The test expects these parses to succeed. If the pattern matches fails, there's a bug in either the...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE QuasiQuotes # # LANGUAGE RecursiveDo # #if __GLASGOW_HASKELL__ >= 806 # LANGUAGE DerivingVia # # LANGUAGE...
2240f8f110ccb8cbcfee097d6befd93c7105967056703878c670cc97c7a182b7
hadolint/language-docker
ParserSpec.hs
module Language.Docker.ParserSpec where import Data.Default.Class (def) import qualified Data.Text as Text import Language.Docker.Syntax import TestHelper import Test.Hspec spec :: Spec spec = do describe "parse ARG" $ do it "no default" $ assertAst "ARG FOO" [Arg "FOO" Nothing] it "no default with =...
null
https://raw.githubusercontent.com/hadolint/language-docker/24f7886b1b07a32b50b82497497a0544d43f1a45/test/Language/Docker/ParserSpec.hs
haskell
module Language.Docker.ParserSpec where import Data.Default.Class (def) import qualified Data.Text as Text import Language.Docker.Syntax import TestHelper import Test.Hspec spec :: Spec spec = do describe "parse ARG" $ do it "no default" $ assertAst "ARG FOO" [Arg "FOO" Nothing] it "no default with =...
cd996fe14c9fc050cd40d09fc9693ae7ef0a0de01448292f836486fecc36df88
Ptival/yugioh
Type.hs
# LANGUAGE DeriveGeneric # -- | Define the `Type` datatype. module YuGiOh.Type ( Type(..), ) where import GHC.Generics data Type = Aqua | Beast | BeastWarrior | CreatorGod | Cyberse | Dinosaur | DivineBeast | Dragon | Fairy | Fiend | Fish | Insect | Machine | Plant | Psychic | Py...
null
https://raw.githubusercontent.com/Ptival/yugioh/855e8f22c3ff322c7ca1d0a1fa96c50a54724aeb/lib/YuGiOh/Type.hs
haskell
| Define the `Type` datatype.
# LANGUAGE DeriveGeneric # module YuGiOh.Type ( Type(..), ) where import GHC.Generics data Type = Aqua | Beast | BeastWarrior | CreatorGod | Cyberse | Dinosaur | DivineBeast | Dragon | Fairy | Fiend | Fish | Insect | Machine | Plant | Psychic | Pyro | Reptile | Rock | SeaSe...
8f06404dd3e15f0bf10152eac1ebb9db45ea02bf6ee5b2ff92421dc4cd77bebb
wireapp/wire-server
Util.hs
# LANGUAGE DerivingVia # # OPTIONS_GHC -Wno - orphans # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fre...
null
https://raw.githubusercontent.com/wireapp/wire-server/b0e3c62b87b20ae43caf4cb91158b1c99bc845ed/libs/wire-api/src/Wire/API/Routes/Public/Util.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# LANGUAGE DerivingVia # # OPTIONS_GHC -Wno - orphans # Copyright ( C ) 2022 Wire Swiss GmbH < > 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 You should have received a copy of the GNU Affero Gener...
91efcc45b10784f3d14d23dd8e5c72768b920837dc300c9da7e8cc50bf6634f2
ocurrent/ocaml-ci
timestamps_durations.ml
module Client = Ocaml_ci_api.Client module Run_time = Ocaml_ci_client_lib.Run_time open Tyxml.Html let to_iso8601 (tt : float) = let ts = Timedesc.of_timestamp_float_s tt in Timedesc.to_iso8601 @@ Option.get ts let to_ts_string (tt : float) = let ts = Timedesc.of_timestamp_float_s tt in Timedesc.to_string ...
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/0061b58f784b3fd69a7c6d761a1e759274664cd9/web-ui/view/timestamps_durations.ml
ocaml
module Client = Ocaml_ci_api.Client module Run_time = Ocaml_ci_client_lib.Run_time open Tyxml.Html let to_iso8601 (tt : float) = let ts = Timedesc.of_timestamp_float_s tt in Timedesc.to_iso8601 @@ Option.get ts let to_ts_string (tt : float) = let ts = Timedesc.of_timestamp_float_s tt in Timedesc.to_string ...
3fd6353f77cad688f7ce087671ed9352835ff99b5a6311d4ffa642d199338b8b
kingcons/advent-of-code
day07.lisp
(mgl-pax:define-package :aoc.2020.07 (:nicknames :2020.07) (:use :cl :aoc.util :mgl-pax) (:import-from :alexandria #:hash-table-values #:make-keyword)) (in-package :2020.07) (defsummary (:title "Handy Haversacks") "**Part 1** - How many bags can contain a shiny gold bag?" (co...
null
https://raw.githubusercontent.com/kingcons/advent-of-code/52690843fcb227e82acc24a7d60549d3a1098860/src/2020/day07.lisp
lisp
(mgl-pax:define-package :aoc.2020.07 (:nicknames :2020.07) (:use :cl :aoc.util :mgl-pax) (:import-from :alexandria #:hash-table-values #:make-keyword)) (in-package :2020.07) (defsummary (:title "Handy Haversacks") "**Part 1** - How many bags can contain a shiny gold bag?" (co...
3d32e0942b17086863266452279b78554f798de64bce9ae7622c84a8674511aa
biocaml/biocaml
tfxm.ml
open CFStream type ('input, 'output) t = { name : string option; next : unit -> [ `output of 'output | `end_of_stream | `not_ready ]; feed : 'input -> unit; stop : unit -> unit; } let make_general ?name ~next ~feed ~stop () = { name; next; feed; stop } exception Feeding_stopped_transform of string let feed ...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/unix/tfxm.ml
ocaml
open CFStream type ('input, 'output) t = { name : string option; next : unit -> [ `output of 'output | `end_of_stream | `not_ready ]; feed : 'input -> unit; stop : unit -> unit; } let make_general ?name ~next ~feed ~stop () = { name; next; feed; stop } exception Feeding_stopped_transform of string let feed ...
ee9d30d929968c8b303162e26ed21211cbe4824267d1ee4d490fb21c5b60379c
naveensundarg/prover
solve-sum.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: solve-sum.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Software di...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/solve-sum.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: solve-sum.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific la...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2011 . ...
86e49ff8aec3f7ed1b77d9cf1f15e5e9a1b0e20b9835a15ca6b09c93524433d6
potatosalad/erlang-jose
jose_jwe_alg_c20p_kw.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2022 , %%% @doc %%% %%% @end Created : 14 Sep 2019 by < > %%%---------------------------...
null
https://raw.githubusercontent.com/potatosalad/erlang-jose/dbc4074066080692246afe613345ef6becc2a3fe/src/jwe/jose_jwe_alg_c20p_kw.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- jose_jwe callbacks jose_jwe_alg callbacks API Types ==================================================================== jose_jwe callb...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2022 , Created : 14 Sep 2019 by < > -module(jose_jwe_alg_c20p_kw). -behaviour(jose_jwe). -behaviour(jose_jwe_alg). -include("jose_jwk.hrl"). -export([from_map/1]). -export([to_map/2]). -expo...
d1ebe134bcfb15d7a44201430b0773169b440f9fa5806242061f1d5fff8b8be6
danr/hipspec
Colour.hs
-- | Printing in colour and bold module HipSpec.Utils.Colour where data Colour = Red | Green | Blue | Pink | Yellow | Turquoise -- | Print with colour colour :: Colour -> String -> String colour c s = fgcol ++ s ++ normal where fgcol :: String fgcol = "\ESC[0" ++ show (30+col2num) ++ "m" col2num :: Int...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/src/HipSpec/Utils/Colour.hs
haskell
| Printing in colour and bold | Print with colour | Print in bold | Print normally
module HipSpec.Utils.Colour where data Colour = Red | Green | Blue | Pink | Yellow | Turquoise colour :: Colour -> String -> String colour c s = fgcol ++ s ++ normal where fgcol :: String fgcol = "\ESC[0" ++ show (30+col2num) ++ "m" col2num :: Int col2num = case c of Red -> 1 Gree...
25cf15237771d59f3fd7a03954dfb32d4016c1c19a56379a073ceccb5c6309a2
marhop/literate-binary
Parse.hs
{-# LANGUAGE OverloadedStrings #-} -- | Module : LiterateBinary . Copyright : ( c ) 2019 - 2021 License : MIT -- Maintainer : -- Parser functions for " LiterateBinary " . module LiterateBinary.Parse (parseMarkdown, parseHex, Error, showError) where import CMark (Node (..), NodeType (CODE_BLOCK)...
null
https://raw.githubusercontent.com/marhop/literate-binary/3bdd41520bb52f78a19a02441bd14628b5bf4a1d/lib/LiterateBinary/Parse.hs
haskell
# LANGUAGE OverloadedStrings # | Maintainer : | Parse hex string including macros, creating an AST. | Parse a (possibly empty) hex string like @ff((01){4}aa|2241){3}e0@, | Skip a (possibly empty) sequence of whitespace and comments (@# ...@). | Apply a parser an even number of times, at least twice. This is lik...
Module : LiterateBinary . Copyright : ( c ) 2019 - 2021 License : MIT Parser functions for " LiterateBinary " . module LiterateBinary.Parse (parseMarkdown, parseHex, Error, showError) where import CMark (Node (..), NodeType (CODE_BLOCK), commonmarkToNode) import Data.Bifunctor (first) import Dat...
54d19abd04a60a2917ab66f7a0726262f2c6387e68baef0669dd4f8f34f97fdd
kazu-yamamoto/quic
Queue.hs
# LANGUAGE RecordWildCards # module Network.QUIC.Stream.Queue where import Data.ByteString (ByteString) import UnliftIO.STM import Network.QUIC.Stream.Types putRecvStreamQ :: Stream -> ByteString -> IO () putRecvStreamQ Stream{..} = atomically . writeTQueue (recvStreamQ streamRecvQ) takeRecvStreamQ :: Stream -> IO...
null
https://raw.githubusercontent.com/kazu-yamamoto/quic/cecf4de6aef18d73ea03e7f0881a60d5206a5c03/Network/QUIC/Stream/Queue.hs
haskell
# LANGUAGE RecordWildCards # module Network.QUIC.Stream.Queue where import Data.ByteString (ByteString) import UnliftIO.STM import Network.QUIC.Stream.Types putRecvStreamQ :: Stream -> ByteString -> IO () putRecvStreamQ Stream{..} = atomically . writeTQueue (recvStreamQ streamRecvQ) takeRecvStreamQ :: Stream -> IO...
352aa1f8cb2158fe9fa579d07863e1221ced510d5fd35875b0153ff0761613ba
composewell/unicode-data
SimpleLowerCaseMapping.hs
-- autogenerated from -- | Module : Unicode . Internal . . UnicodeData . SimpleLowerCaseMapping Copyright : ( c ) 2020 Composewell Technologies and Contributors -- License : Apache-2.0 -- Maintainer : -- Stability : experimental # LANGUAGE LambdaCase # {-# OPTIONS_HADDOCK hide #-} module Unicod...
null
https://raw.githubusercontent.com/composewell/unicode-data/5c5013f412d0f8eb6ae65bc750ad5c65c0b6bb3d/unicode-data/lib/Unicode/Internal/Char/UnicodeData/SimpleLowerCaseMapping.hs
haskell
autogenerated from | License : Apache-2.0 Maintainer : Stability : experimental # OPTIONS_HADDOCK hide #
Module : Unicode . Internal . . UnicodeData . SimpleLowerCaseMapping Copyright : ( c ) 2020 Composewell Technologies and Contributors # LANGUAGE LambdaCase # module Unicode.Internal.Char.UnicodeData.SimpleLowerCaseMapping (toSimpleLowerCase) where # NOINLINE toSimpleLowerCase # toSimpleLowerCase :: Cha...
58dc6c7381bd7b9690c81d3ef37af98f877281dcf309bc8d1afb43509663ee69
oakes/Nightweb
window.clj
(ns nightweb-desktop.window (:require [seesaw.core :as s] [nightweb.router :as router] [nightweb-desktop.server :as server] [nightweb-desktop.utils :as utils])) (def external-ip (delay (try (-> (slurp "/") (clojure.string/replace "\n" "")) ...
null
https://raw.githubusercontent.com/oakes/Nightweb/089c7a99a9a875fde33cc29d56e1faf54dc9de84/desktop/src/nightweb_desktop/window.clj
clojure
(ns nightweb-desktop.window (:require [seesaw.core :as s] [nightweb.router :as router] [nightweb-desktop.server :as server] [nightweb-desktop.utils :as utils])) (def external-ip (delay (try (-> (slurp "/") (clojure.string/replace "\n" "")) ...
1048e341636433e2b4b058b9973eaa3cdb0a7b36b5c2b38218f14295b4beceef
mmottl/gsl-ocaml
multifit.mli
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 (** Multi-parameter Least-Squares Fitting *) open Vectmat type ws val make : n:int -> p:int -> ws external _linear : ?weight:vec...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/multifit.mli
ocaml
* Multi-parameter Least-Squares Fitting
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 open Vectmat type ws val make : n:int -> p:int -> ws external _linear : ?weight:vec -> x:mat -> y:vec -> c:vec -> cov:mat ->...
1f50ab0a69cd8135de5348d78abe852a21721402cb1c81f911fb572982adb0a7
commercialhaskell/stack
NewParser.hs
# LANGUAGE NoImplicitPrelude # module Stack.Options.NewParser ( newOptsParser ) where import qualified Data.Map.Strict as M import Options.Applicative import Stack.Init import Stack.New import Stack.Options.GlobalParser import Stack.Prelude import Stack....
null
https://raw.githubusercontent.com/commercialhaskell/stack/975f5845c6666d1f5d4ac72d6abe3adcd22a9df0/src/Stack/Options/NewParser.hs
haskell
| Parser for @stack new@.
# LANGUAGE NoImplicitPrelude # module Stack.Options.NewParser ( newOptsParser ) where import qualified Data.Map.Strict as M import Options.Applicative import Stack.Init import Stack.New import Stack.Options.GlobalParser import Stack.Prelude import Stack....
e84df1a1ef0e1143aa52c5c74938360199ba6759e3a9fe344643226677f0a019
rowangithub/DOrder
modelsolver.ml
module TP = TheoremProver open Backwalker open Predicate type solving_result = { spre : ((string * int) list) list; spost : ((string * int) list) list } (** This defines, for each variable, how many solutions of it should be consider *) let neg_number = 2 (** If the function app is not with enough arguments to...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/liquid/modelsolver.ml
ocaml
* This defines, for each variable, how many solutions of it should be consider * If the function app is not with enough arguments to deduce a non-function value, the app should be erased * put a dummy here Precondition: we assume there is no further function application inside an application This is guarant...
module TP = TheoremProver open Backwalker open Predicate type solving_result = { spre : ((string * int) list) list; spost : ((string * int) list) list } let neg_number = 2 let simplify_funapp pred allbindings = let hashfuns = Hashtbl.create 1 in Predicate.map_expr (fun pexpr -> match pexpr with | FunApp (f...
2d65cf16a8ab536636df13c251065ee0c2ee048efbfda9195874f690f5cd672f
runtimeverification/haskell-backend
Identifier.hs
| Module : . Rewrite . Axiom . Identifier Description : Data structures and manipulation helpers used for axiom evaluation identifiers . The expectation is that an axiom can be applied to a term only if the identifier of its left - hand - side is the same ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/5b558293cce9d8c5813560a645380863b12b1990/kore/src/Kore/Rewrite/Axiom/Identifier.hs
haskell
| Identifer for the left-hand-side of axioms and for the terms with which these can be identified. The expectation is that an axiom can be applied to a term only if the identifier of its left-hand-side is the same as the term's identifier. | An application pattern with the given symbol identifier. | Any domain val...
| Module : . Rewrite . Axiom . Identifier Description : Data structures and manipulation helpers used for axiom evaluation identifiers . The expectation is that an axiom can be applied to a term only if the identifier of its left - hand - side is the same ...
43886746f1304472d88b352d9c925193448d027cbbe7743b04e8d11d8c3f76f0
jphmrst/bps
JTMS.hs
| Module : JTMS Description : Justification - based truth maintenance systems ( JTMSes ) Copyright : ( c ) , 2022 , and Xerox Corporation , 1986 - 1993 License : AllRightsReserved Maintainer : Stability : experimental Portability : POSIX Translation of Forbus...
null
https://raw.githubusercontent.com/jphmrst/bps/7a050b8bbc84114434f58f0e2f8b751ee41e889a/src/main/haskell/lib/Data/TMS/JTMS.hs
haskell
# LANGUAGE RankNTypes # * The JTMST monad * Basic JTMS structures ** Setting JTMS properties | === __Lisp origins__ The JTMS property-setting functions are translated from: > enqueue-procedure debugging > checking-contradictions) > (if checking-contra...
| Module : JTMS Description : Justification - based truth maintenance systems ( JTMSes ) Copyright : ( c ) , 2022 , and Xerox Corporation , 1986 - 1993 License : AllRightsReserved Maintainer : Stability : experimental Portability : POSIX Translation of Forbus...
f9d0f4118ad74477afc2055aa45f96c3045793e16d36e9eae26a3eaa51b9eec2
nvim-treesitter/nvim-treesitter
highlights.scm
(identifier) @type [ "strict" "graph" "digraph" "subgraph" "node" "edge" ] @keyword (string_literal) @string (number_literal) @number [ (edgeop) (operator) ] @operator [ "," ";" ] @punctuation.delimiter [ "{" "}" "[" "]" "<" ">" ] @punctuation.bracket (subgraph id: (id (ident...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/b9bcbf8d73b5a6c3e04922936b5fc500b436d4f5/queries/dot/highlights.scm
scheme
(identifier) @type [ "strict" "graph" "digraph" "subgraph" "node" "edge" ] @keyword (string_literal) @string (number_literal) @number [ (edgeop) (operator) ] @operator [ "," ";" ] @punctuation.delimiter [ "{" "}" "[" "]" "<" ">" ] @punctuation.bracket (subgraph id: (id (ident...
e278727dc61ed45f31cbbb5fec55cb72902b47c02d52a4a5fd98808cde62cf96
fluent/fluent-logger-erlang
fluent_app.erl
-module(fluent_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -> fluent_sup:st...
null
https://raw.githubusercontent.com/fluent/fluent-logger-erlang/dae01a5a010d21916515212e5b41d2411e84277c/src/fluent_app.erl
erlang
Application callbacks =================================================================== Application callbacks ===================================================================
-module(fluent_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> fluent_sup:start_link(). stop(_State) -> ok.
c45a9cab72be0fc203d44e8ac7318a0768ad98e886eeaf6d204eea3b35e19c9f
kwanghoon/polyrpc
TypeInf.hs
TypeInf : Type inference for terms with location abstractions and applications , which is replaced by TypeInfLink for terms without location abstractions and applications . TypeInf: Type inference for terms with location abstractions and applications, which is replaced by TypeInfLink...
null
https://raw.githubusercontent.com/kwanghoon/polyrpc/93a4b8c4a30e6d4cd22f89a8f6aec449a844094d/app/bidi/TypeInf.hs
haskell
Todo 1. Apply context to term to replace all occurrences of alpha^ by some type. [Done] type declarations [Done] 5. Unconstrained existence type variables remain! [Done] 6. Type application terms in an argumnet, (...) expr, do not have type annotations. The subtype returns a transformer? [Do...
TypeInf : Type inference for terms with location abstractions and applications , which is replaced by TypeInfLink for terms without location abstractions and applications . TypeInf: Type inference for terms with location abstractions and applications, which is replaced by TypeInfLink...
8a1fdd5fe634479cd3d2ec64d19b5bf07635ceb9e5cffca622c3708631aa7b40
rd--/hsc3
spring.help.hs
spring ; ; button = gate ; x = spring - constant ; y = damping let inforce = k2a (mouseButton kr 0 1 0) `greater_than` 0 k = mouseX kr 0.1 20 Exponential 0.2 d = mouseY kr 0.00001 0.1 Exponential 0.2 outforce = spring ar inforce k d freq = outforce * 400 + 500 -- modulate frequency with the force in...
null
https://raw.githubusercontent.com/rd--/hsc3/e1c9377f4985f4cc209a9cb11421bc8f1686c6f2/Help/Ugen/spring.help.hs
haskell
modulate frequency with the force spring ;several springs in series modulate frequency with the force spring ; modulating a resonating string spring ; event control modulate frequency with the force spring ; event control
spring ; ; button = gate ; x = spring - constant ; y = damping let inforce = k2a (mouseButton kr 0 1 0) `greater_than` 0 k = mouseX kr 0.1 20 Exponential 0.2 d = mouseY kr 0.00001 0.1 Exponential 0.2 outforce = spring ar inforce k d in sinOsc ar freq 0 * 0.1 let inforce = k2a (mouseButton kr 0 1 0) `gr...
32da943bea8d02dbaf880e78bba6221cd9348c845290b3251725b0186e6acf02
MattWindsor91/travesty
traversable.mli
This file is part of ' travesty ' . Copyright ( c ) 2018 , 2019 by Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitatio...
null
https://raw.githubusercontent.com/MattWindsor91/travesty/3f4da33830cc928ad879077e690277088de1f836/src/traversable.mli
ocaml
* {3 Chaining} * {3 Fixing the element type} This would output "foo".
This file is part of ' travesty ' . Copyright ( c ) 2018 , 2019 by Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitatio...
72acac5e1f722b355095ec680922168296f06be700c9ab00f07de6b3f162c9f2
aristidb/aws
ListAccessKeys.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # module Aws.Iam.Commands.ListAccessKeys ( ListAccessKeys(..) , ListAccessKeysResponse(..) ) where import Aws.Core import Aws.Iam.Core import ...
null
https://raw.githubusercontent.com/aristidb/aws/a99113ed7768f9758346052c0d8939b66c6efa87/Aws/Iam/Commands/ListAccessKeys.hs
haskell
| Returns the access keys associated with the specified user. <> determine the user based on the key sigining the request. ^ Used for paginating requests. Marks the position of the last request. ^ Used for paginating requests. Specifies the maximum number of items <> ^ ID of the access key. ^ Date and time a...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # module Aws.Iam.Commands.ListAccessKeys ( ListAccessKeys(..) , ListAccessKeysResponse(..) ) where import Aws.Core import Aws.Iam.Core import ...
6f2a9e36c3f5365f257d3522bef8edd12edd8d080e1bab444305284f5f192cc6
MinaProtocol/mina
mina_base_user_command.ml
module Poly = struct module V2 = struct type ('u, 's) t = Signed_command of 'u | Zkapp_command of 's end end module V2 = struct type t = (Mina_base_signed_command.V2.t, Mina_base_zkapp_command.V1.t) Poly.V2.t end module Valid = struct module V2 = struct type t = ( Mina_base_signed_command.Wi...
null
https://raw.githubusercontent.com/MinaProtocol/mina/778f499316fe439a7a843f91cd3c6e05484b3f7d/src/lib/mina_wire_types/mina_base/mina_base_user_command.ml
ocaml
module Poly = struct module V2 = struct type ('u, 's) t = Signed_command of 'u | Zkapp_command of 's end end module V2 = struct type t = (Mina_base_signed_command.V2.t, Mina_base_zkapp_command.V1.t) Poly.V2.t end module Valid = struct module V2 = struct type t = ( Mina_base_signed_command.Wi...
47f8f6fed4c74b371526c8edadafcc8d77c930e2d9700aa36eff429febf1475f
omnyway-labs/chromex-shadow-template
output.clj
(ns shadow.build.output (:require [clojure.java.io :as io] [cljs.source-map :as sm] [clojure.set :as set] [clojure.string :as str] [cljs.compiler :as comp] [cljs.analyzer :as ana] [clojure.data.json :as json] [shadow.jvm-log :as log] [shadow.build.data :as data] [shadow.build.r...
null
https://raw.githubusercontent.com/omnyway-labs/chromex-shadow-template/1a4569ad6024803186fabc4389307a13a769d96b/resources/clj/new/chromex_shadow_template/src/shadow_hacks/shadow/build/output.clj
clojure
goog.findBasePath_() requires a base.js which we dont have this is usually only needed for unoptimized builds anyways can't alias due to cyclic dependency, this sucks goog/base.js is treated special in several cases FIXME: work arround for older cljs versions that used broked closure release, remove. FIXME: this ...
(ns shadow.build.output (:require [clojure.java.io :as io] [cljs.source-map :as sm] [clojure.set :as set] [clojure.string :as str] [cljs.compiler :as comp] [cljs.analyzer :as ana] [clojure.data.json :as json] [shadow.jvm-log :as log] [shadow.build.data :as data] [shadow.build.r...
94bdde9cb6eb87ac9346b60f0214d52e4453b8ea8db7eeafee76006303726148
nvim-treesitter/nvim-treesitter
highlights.scm
(comment) @comment @spell (conditional (_ [ "ifeq" "else" "ifneq" "ifdef" "ifndef" ] @conditional) "endif" @conditional) (rule (targets (word) @function.builtin (#any-of? @function.builtin ".DEFAULT" ".SUFFIXES" ".DELETE_ON_ERROR" ".EXPORT_ALL_VARIABLES" ...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/67332894efcb6a51a18e1120f2fc242089de7dd1/queries/make/highlights.scm
scheme
Use string to match bash
(comment) @comment @spell (conditional (_ [ "ifeq" "else" "ifneq" "ifdef" "ifndef" ] @conditional) "endif" @conditional) (rule (targets (word) @function.builtin (#any-of? @function.builtin ".DEFAULT" ".SUFFIXES" ".DELETE_ON_ERROR" ".EXPORT_ALL_VARIABLES" ...
570704fe954ed2339b0bc333b0717b969b0230a1faecc868c9272c247c7e8ff0
wlitwin/graphv
impl.ml
module type Buffer = Sigs.BufferS module type S = sig type t module Buffer : Buffer module Dyn : sig type t = private { mutable arr : Buffer.Float.t; mutable size : int; } type underlying = Buffer.Float.t val create : int -> t val clear : ...
null
https://raw.githubusercontent.com/wlitwin/graphv/d0a09575c5ff5ee3727c222dd6130d22e4cf62d9/webgl2/core/impl.ml
ocaml
module type Buffer = Sigs.BufferS module type S = sig type t module Buffer : Buffer module Dyn : sig type t = private { mutable arr : Buffer.Float.t; mutable size : int; } type underlying = Buffer.Float.t val create : int -> t val clear : ...
eeaecada9a817ea2f587997ed68929366866d5797ad8e1ba8d01fa04bb62510d
hammerlab/ketrew
pvem_js.ml
Similar to ` Pvem_lwt_unix ` , we embed the error monad into ` Lwt_js ` . include Pvem.With_deferred(Lwt) let sleep f = wrap_deferred ~on_exn:(fun e -> `Exn e) begin fun () -> Lwt_js.sleep f end let pick_and_cancel l = Lwt.pick l let asynchronously (f: unit -> (unit, unit) t) = Lwt.async f
null
https://raw.githubusercontent.com/hammerlab/ketrew/8940d48fbe174709f076b7130974ecd0ed831d58/src/client-joo/pvem_js.ml
ocaml
Similar to ` Pvem_lwt_unix ` , we embed the error monad into ` Lwt_js ` . include Pvem.With_deferred(Lwt) let sleep f = wrap_deferred ~on_exn:(fun e -> `Exn e) begin fun () -> Lwt_js.sleep f end let pick_and_cancel l = Lwt.pick l let asynchronously (f: unit -> (unit, unit) t) = Lwt.async f
1ba713d783c89608ef0cb955b040cb660e4808654cabcb7e4c61a8f6b17bd551
smimram/monadic-synth
extlib.ml
(** Extensions to standard library. *) (** Identity function. *) let id x = x let nop () = () (** Round to the nearest integer. *) let round x = int_of_float (x +. 0.5) module List = struct include List let mapi f l = let rec aux n = function | x::t -> (f n x)::(aux (n+1) t) | [] -> [] in ...
null
https://raw.githubusercontent.com/smimram/monadic-synth/23721ff81e6f366c9019f93f418c20e1dff6f811/experiments/two-monads/extlib.ml
ocaml
* Extensions to standard library. * Identity function. * Round to the nearest integer.
let id x = x let nop () = () let round x = int_of_float (x +. 0.5) module List = struct include List let mapi f l = let rec aux n = function | x::t -> (f n x)::(aux (n+1) t) | [] -> [] in aux 0 l let make n x = init n (fun _ -> x) let repeat n l = let rec aux k = if k = ...
31566b85a7a3f8bea64f40be457bf9e1bf6baf26953a32ed875afb304d148195
lasp-lang/partisan
gen_statem.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2016 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/lasp-lang/partisan/5992c43d466fa6df059be4de10c269efccbc4861/otp_src/otp_24.3.4.8/gen_statem.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2016 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(gen_statem). -include("logger.hrl"). -export( [start/3,start/4,start_link/3,start_link/4, start_mon...
5c53f406ccac2b7466fcc6874a41fc0d129d408184cc93be708ca16c5a61e0ff
sleexyz/hylogen-fun
Jam_2016_10_14.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleContexts # module Jam_2016_10_14 where import Util output = toProgram $ vec4 (v, v, v, 1) & mix 0.1 bb bb = bbqF (texture2D backBuffer) uvN bbqF x = x & lmap (view norm) & lmap (*0.9) & rgbF 0.1 & rmap desat & rmap desat & rmap desat &...
null
https://raw.githubusercontent.com/sleexyz/hylogen-fun/1f42a4a0d3db418f1786292186b8ff861d3f4011/Jam_2016_10_14.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # & lmap (^* y_ audio)
# LANGUAGE FlexibleContexts # module Jam_2016_10_14 where import Util output = toProgram $ vec4 (v, v, v, 1) & mix 0.1 bb bb = bbqF (texture2D backBuffer) uvN bbqF x = x & lmap (view norm) & lmap (*0.9) & rgbF 0.1 & rmap desat & rmap desat & rmap desat & rmap desat & rmap (bpf 0.7 0.1) v = vqF vq uvN ...
d9600ec674d0c201d468255ae7e13edd203798a4c579e8183aadc354c8775a2f
dyzsr/ocaml-selectml
pr6752_ok.ml
(* TEST flags = " -w -a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) (* Adding a type annotation is sufficient to make typing go through *) module Common0 = struct type msg = Msg let handle_msg = ref (function _ -> failwith "Unable to handle message") let extend_handle f =...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-modules-bugs/pr6752_ok.ml
ocaml
TEST flags = " -w -a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output Adding a type annotation is sufficient to make typing go through
module Common0 = struct type msg = Msg let handle_msg = ref (function _ -> failwith "Unable to handle message") let extend_handle f = let old = !handle_msg in handle_msg := f old let q : msg Queue.t = Queue.create () let add msg = Queue.add msg q let handle_queue_messages () = Queue.iter !h...
1955da13d5333d888cc5ff7feac5d650853aff065b26ee32fab3b3a034cbdf6a
haskell/haskell-language-server
MultipleDeclAlts.expected.hs
foo True new_def = new_def foo False new_def = 1
null
https://raw.githubusercontent.com/haskell/haskell-language-server/bc18cedf157e19c75c5676d8defcb982d6488fad/plugins/hls-refactor-plugin/test/data/golden/add-arg/MultipleDeclAlts.expected.hs
haskell
foo True new_def = new_def foo False new_def = 1
87ab305076e93b5316ecd428be95c0a2a2fcddb17e3f65b0beecb6f5ae31ec2f
appleshan/cl-http
lispdoc.lisp
-*- Mode : LISP ; Package : ( lispdoc : use ( html www - utils future - common - lisp ) ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- ;;; ( c ) Copyright 2005 - 2006 , 2010 , Rainer Joswig & ;;; All Rights Reserved. ;;; ;;;--------------------------...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/examples/lispdoc.lisp
lisp
Package : ( lispdoc : use ( html www - utils future - common - lisp ) ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- All Rights Reserved. ------------------------------------------------------------------- Ideas * simple markup language for docume...
( c ) Copyright 2005 - 2006 , 2010 , Rainer Joswig & LispDoc -- AN ANSI COMMON LISP PACKAGE - LEVEL DOCUMENTATION SYSTEM Simple Sketch of a Documentation Browser for CL - HTTP Copyright , , 2005 * * classes : superclasses , subclasses , slots , slot - documentations , meta - classes (eval-when (:com...
f05f6cca274e531ccc13546e913cd13e6b80e01f83746342205cb19960520383
nomeata/haskell-rec-def
RecThunk.hs
# LANGUAGE LambdaCase # # LANGUAGE CPP # | The ' Thunk ' API provides a way to defer potentially recursive computations : * ' thunk ' is lazy in its argument , and does not run it directly * the first ' force ' triggers execution of the action passed to thunk * that action is run at most once , and returns a...
null
https://raw.githubusercontent.com/nomeata/haskell-rec-def/3365379b6c29aa32a5170b8d0336c73413ca7434/System/IO/RecThunk.hs
haskell
| An @IO@ action that is to be run at most once | A 'Thunk' that is being evaluated | Create a new 'Thunk' from an 'IO' action. The 'IO' action may return other thunks that should be forced together whenver this thunk is forced (in arbitrary order) | A Thunk that that already is done. Equivalent to @do {t <- t...
# LANGUAGE LambdaCase # # LANGUAGE CPP # | The ' Thunk ' API provides a way to defer potentially recursive computations : * ' thunk ' is lazy in its argument , and does not run it directly * the first ' force ' triggers execution of the action passed to thunk * that action is run at most once , and returns a...
6f7a59682455bda51c870c44e776ef320c919a09b53597e031ac9d1ef04a486e
EveryTian/Haskell-Codewars
Brackets.hs
module Brackets (arePaired) where arePaired :: String -> Bool arePaired xs = f xs "" where f "" stack = null stack f (']':xs) ('[':ys) = f xs ys f ('}':xs) ('{':ys) = f xs ys f (')':xs) ('(':ys) = f xs ys f (x:xs) stack | x `elem` "])}" = False | ...
null
https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/exercism/bracket-push/src/Brackets.hs
haskell
module Brackets (arePaired) where arePaired :: String -> Bool arePaired xs = f xs "" where f "" stack = null stack f (']':xs) ('[':ys) = f xs ys f ('}':xs) ('{':ys) = f xs ys f (')':xs) ('(':ys) = f xs ys f (x:xs) stack | x `elem` "])}" = False | ...
dec8b958aad76eeb1c27575f278d8e9630a5f19ff55be3a48e6b4e95a249d6e6
onedata/op-worker
space_unsupport_test_SUITE.erl
%%%-------------------------------------------------------------------- @author ( C ) 2020 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%-------------------------------------------------------------------- %%% @doc %%% This module contains tests for s...
null
https://raw.githubusercontent.com/onedata/op-worker/0b059f432df26a54f372f7d4b99a40ffca5f802a/test_distributed/space_unsupport_test_SUITE.erl
erlang
-------------------------------------------------------------------- @end -------------------------------------------------------------------- @doc This module contains tests for space unsupport. @end -------------------------------------------------------------------- API test functions Exported for rpc calls =...
@author ( C ) 2020 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(space_unsupport_test_SUITE). -author("Michal Stanisz"). -include("global_definitions.hrl"). -include("modules/fslogic/fslogic_common.hrl"). -include("modules/storage/import/storage_import.h...
9f0416627d0afa8800904ddaf8cc8cf052ed90ac777922e4139de7dc6ac2a4ec
KenDickey/Crosstalk
test-template.scm
;;; IMPLEMENTS: Unit tests for st-*.scm AUTHOR : DATE : 16 January 2017 ;; (require 'st-*) (define (setup-st-*) #f) (define (cleanup-st-*) #f) (add-test-suite 'st-* setup-st-* cleanup-st-*) ;; (add-equal-test 'st-* ( vector 3 ) ;; (perform:with: Array ...
null
https://raw.githubusercontent.com/KenDickey/Crosstalk/c4a315baf039e714980e14f5b07860632b9bd0e6/test-template.scm
scheme
IMPLEMENTS: Unit tests for st-*.scm (require 'st-*) (add-equal-test 'st-* (perform:with: Array (ensure-exception-raised 'st-* (perform: %%test-object 'glerph) "obj glerph -> doesNotUnderstand") --- E O F --- ;;;
AUTHOR : DATE : 16 January 2017 (define (setup-st-*) #f) (define (cleanup-st-*) #f) (add-test-suite 'st-* setup-st-* cleanup-st-*) ( vector 3 ) ' with : 3 ) " Array with : 3 " ) ( make - error - string - predicate " Failed message send : # ...
f124fc48a4ce2e56477720a52726d3f64ac96f85d16b0bfe5ca28660439394b1
ners/dosh
Code.hs
# LANGUAGE AllowAmbiguousTypes # {-# OPTIONS_GHC -Wno-name-shadowing #-} # OPTIONS_GHC -Wno - orphans # {-# OPTIONS_GHC -Wno-unused-local-binds #-} {-# OPTIONS_GHC -Wno-unused-matches #-} module Reflex.Vty.Widget.Input.Code where import Control.Arrow ((>>>)) import Control.Lens import Control.Monad.Fix (MonadFix) imp...
null
https://raw.githubusercontent.com/ners/dosh/ff0bcbf33ba38bfe3d981b90c815f7e827ee2d33/src/Reflex/Vty/Widget/Input/Code.hs
haskell
# OPTIONS_GHC -Wno-name-shadowing # # OPTIONS_GHC -Wno-unused-local-binds # # OPTIONS_GHC -Wno-unused-matches # ^ Metadata for normal characters ^ Metadata for the cursor ^ The text input contents and cursor state ^ Metadata for normal characters ^ Metadata for the cursor ^ The text input contents and cursor stat...
# LANGUAGE AllowAmbiguousTypes # # OPTIONS_GHC -Wno - orphans # module Reflex.Vty.Widget.Input.Code where import Control.Arrow ((>>>)) import Control.Lens import Control.Monad.Fix (MonadFix) import Data.Default (Default) import Data.Either.Extra (eitherToMaybe, maybeToEither) import Data.Generics.Labels () import Dat...
641f0b23edf91b53801050300d6c801e18edd46d7d4b5f1054dc79753b457ec3
snmsts/cl-langserver
ccl.lisp
;;;; -*- indent-tabs-mode: nil -*- ;;; slynk-ccl.lisp --- SLY backend for Clozure CL . ;;; Copyright ( C ) 2003 , < > ;;; ;;; This program is licensed under the terms of the Lisp Lesser GNU Public License , known as the LLGPL , and distributed with Clozure CL ;;; as the file "LICENSE". The LLGPL consists of...
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/backend/impls/ccl.lisp
lisp
-*- indent-tabs-mode: nil -*- This program is licensed under the terms of the Lisp Lesser GNU as the file "LICENSE". The LLGPL consists of a preamble and the these conflict, the preamble takes precedence. The LLGPL is also available online at slynk-mop classes standard-class readers eql-specializer acce...
slynk-ccl.lisp --- SLY backend for Clozure CL . Copyright ( C ) 2003 , < > Public License , known as the LLGPL , and distributed with Clozure CL LGPL , which is distributed with Clozure CL as the file " LGPL " . Where (defpackage :ls-ccl (:use cl ls-backend)) (in-package ls-ccl) (eval-when (:compile...
0a0b81577302912d1e36d52a1da8e0482d54331f0dac3320fe13ee97789e2301
pedestal/pedestal-app
diff2.clj
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; which can be found in the file epl-v10.html at the root of this distribution. ; ; By using this software in any fashion, you are agreeing to be bound by ; the terms of this licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/test/clj/io/pedestal/app/perf/model/diff2.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. W...
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns ^:shared io.pedestal.app.perf.model.diff2) (declare diff-map) (comment [[:a :b :c :**] :added] ) (declare diff-map) (defn- diff [prefix o n] (cond (identical? o n) nil (and (map? o) (map? n)) (diff-map prefix o n) ...
cdf7751b6b9e6077a76cf08ef22db3bfaf25b3152947f2f81ce505f4986c4f42
aveltras/arohi
Server.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecursiveDo # # LANGUAGE TypeApplications # module Arohi.DataSource.Server where import Control.Monad (forever) import Control.Monad.Fix (MonadFix) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Aeson (FromJSON, ToJSON, Result(..), encod...
null
https://raw.githubusercontent.com/aveltras/arohi/1629e2232e54d3b96c6c13d26697f26c7ba4f1b9/arohi-datasource-server/Arohi/DataSource/Server.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE FlexibleContexts # # LANGUAGE RecursiveDo # # LANGUAGE TypeApplications # module Arohi.DataSource.Server where import Control.Monad (forever) import Control.Monad.Fix (MonadFix) import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Aeson (FromJSON, ToJSON, Result(..), encode, fromJSON) import Data.Con...
26531745550d002c0b4d9a1443060a0eb4f942366af796efc4fc370103dbf4ec
agrison/cljwebauthn
b64_test.clj
(ns cljwebauthn.b64-test (:require [clojure.test :refer :all] [cljwebauthn.b64 :refer :all])) (deftest test-encode-string (is (= "Zm9vYmFy" (encode "foobar")))) (deftest test-decode-string (is (= "foobar" (decode "Zm9vYmFy")))) (deftest test-encode-binary (is (= "Zm9vYmFy" (encode-binary (.getByt...
null
https://raw.githubusercontent.com/agrison/cljwebauthn/3b3577ff126dd5bc42ac0f226ca4de63be33b8ef/test/cljwebauthn/b64_test.clj
clojure
(ns cljwebauthn.b64-test (:require [clojure.test :refer :all] [cljwebauthn.b64 :refer :all])) (deftest test-encode-string (is (= "Zm9vYmFy" (encode "foobar")))) (deftest test-decode-string (is (= "foobar" (decode "Zm9vYmFy")))) (deftest test-encode-binary (is (= "Zm9vYmFy" (encode-binary (.getByt...
f4ae420b59e5369040864eba10f75c552e7cbdfc95e74f7fbb6782cc9598fffa
simonstl/introducing-erlang-2nd
broken.erl
-module(broken). -export([bad_if/1]). bad_if(Test_val) -> if Test_val < 0 -> X=1; Test_val >= 0 -> Y=2 end, X+Y.
null
https://raw.githubusercontent.com/simonstl/introducing-erlang-2nd/607e9c85fb767cf5519d331ef6ed549aee51fe61/ch04/ex6-broken/broken.erl
erlang
-module(broken). -export([bad_if/1]). bad_if(Test_val) -> if Test_val < 0 -> X=1; Test_val >= 0 -> Y=2 end, X+Y.