_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
62ffd228a5a50076e40b4748b22b695e60621547b3fb6b5b8627a036d71c16ea
reborg/fluorine
fluorine.clj
(ns net.reborg.fluorine (:require [net.reborg.fluorine.bootstrap :refer [system]] [net.reborg.fluorine.fs :as fs] [clojure.tools.logging :as log] [compojure.core :as compojure :refer [GET]] [ring.middleware.params :as params] [compojure.route :as route] [aleph.http :as http] [net.rebor...
null
https://raw.githubusercontent.com/reborg/fluorine/58d533646adce8537ca5c57692a0a998f06e1d25/src/net/reborg/fluorine.clj
clojure
(ns net.reborg.fluorine (:require [net.reborg.fluorine.bootstrap :refer [system]] [net.reborg.fluorine.fs :as fs] [clojure.tools.logging :as log] [compojure.core :as compojure :refer [GET]] [ring.middleware.params :as params] [compojure.route :as route] [aleph.http :as http] [net.rebor...
ec7b993eff2da18e49c4f77c38df7472d40d9c91044f4a3e8c78196e66e70996
swannodette/cljs-bootstrap
build.clj
(require '[cljs.build.api :as b]) (b/build "src/node" {:output-to "main.js" :target :nodejs :optimizations :simple :cache-analysis true :static-fns true :optimize-constants true :verbose true}) (System/exit 0)
null
https://raw.githubusercontent.com/swannodette/cljs-bootstrap/1cdb45c7c4422cc49215860e77b56d2f273059b7/script/build.clj
clojure
(require '[cljs.build.api :as b]) (b/build "src/node" {:output-to "main.js" :target :nodejs :optimizations :simple :cache-analysis true :static-fns true :optimize-constants true :verbose true}) (System/exit 0)
d8631337375928d9ee25bb97db1350ab9b843c089f1dcdf2b4f02824a362229f
luminus-framework/examples
core.clj
(ns multi-client-ws-http-kit.core (:require [multi-client-ws-http-kit.handler :as handler] [multi-client-ws-http-kit.nrepl :as nrepl] [luminus.http-server :as http] [multi-client-ws-http-kit.config :refer [env]] [clojure.tools.cli :refer [parse-opts]] [clojure.tools.logging :as log] [mount...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-http-kit/src/clj/multi_client_ws_http_kit/core.clj
clojure
log uncaught exceptions in threads
(ns multi-client-ws-http-kit.core (:require [multi-client-ws-http-kit.handler :as handler] [multi-client-ws-http-kit.nrepl :as nrepl] [luminus.http-server :as http] [multi-client-ws-http-kit.config :refer [env]] [clojure.tools.cli :refer [parse-opts]] [clojure.tools.logging :as log] [mount...
eefd5682741280ca4261b8c13b9611977db949cc986811b121122ae9b38256fb
alanz/ghc-exactprint
overloadedrecfldsfail08.hs
# LANGUAGE DuplicateRecordFields , TypeFamilies # data family F a data instance F Int = MkFInt { x :: Int } data instance F Bool = MkFBool { y :: Bool } -- No data type has both these fields, but they belong to the same lexical parent ( F ) . This used to confuse DuplicateRecordFields . foo e = e { x = 3, y = T...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/overloadedrecfldsfail08.hs
haskell
No data type has both these fields, but they belong to the same
# LANGUAGE DuplicateRecordFields , TypeFamilies # data family F a data instance F Int = MkFInt { x :: Int } data instance F Bool = MkFBool { y :: Bool } lexical parent ( F ) . This used to confuse DuplicateRecordFields . foo e = e { x = 3, y = True } main = return ()
247feec79c0cc9c1a478dc03c81e2110a66cdea8b3c6e6f3a2fd2710c26ab991
wdebeaum/step
whatsoever.lisp
;;;; ;;;; W::whatsoever ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( ;; negative polarity (W::whatsoever (SENSES ;; primarily negative polarity ;; positive polarity: "you can have anything whatsoever" "anything whatsoever will fit in there" ((LF-PARENT ONT::least-extent) (templ p...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/whatsoever.lisp
lisp
W::whatsoever negative polarity primarily negative polarity positive polarity: "you can have anything whatsoever" "anything whatsoever will fit in there"
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::whatsoever (SENSES ((LF-PARENT ONT::least-extent) (templ postpositive-adj-templ) (meta-data :origin cardiac :entry-date 20090120 :change-date nil :comments LM-vocab) (example "none whatsoever" "no plan whatsoever") ) ) ...
ef3b91f1c7a35851ed7d30c3c53bf40741cbfa9213792882fc3dcdde26467412
ocramz/decision-trees
Histogram.hs
# language DeriveFunctor , DeriveFoldable # module Data.Histogram (Histogram , mkHistogram, getHistogram, normalize, entropy) where import qualified Data.Foldable as F import Data.Monoid (Sum(..)) import qualified Data.IntMap as IM import qualified Data.Map.Strict as M import Control.Arrow ((&&&)) data Histogram k a...
null
https://raw.githubusercontent.com/ocramz/decision-trees/a94f46cebeb715770cdd4d9b614f51bf0b1096c5/src/Data/Histogram.hs
haskell
| Populate a Histogram given a quantization function and a Foldable of data | Compute a distribution from a Histogram | Count monoid
# language DeriveFunctor , DeriveFoldable # module Data.Histogram (Histogram , mkHistogram, getHistogram, normalize, entropy) where import qualified Data.Foldable as F import Data.Monoid (Sum(..)) import qualified Data.IntMap as IM import qualified Data.Map.Strict as M import Control.Arrow ((&&&)) data Histogram k a...
00304f4c8b3104292f001f7e01ba7553589c7c1452a7f25cee12ede147f217ba
viercc/matchable
Matchable.hs
# LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE UndecidableInstances # module Data.Matchable( -- * Matchable class Matchable(..), zipzipMatch, fmapRecovered, eqDefault, liftEqDefault, ...
null
https://raw.githubusercontent.com/viercc/matchable/d43abf37e6658c1690d0ed35b4c83fcd533bf591/src/Data/Matchable.hs
haskell
# LANGUAGE TypeOperators # # LANGUAGE DeriveFunctor # * Matchable class $setup This is required to silence "type defaults" warning, which clutters GHCi output and makes doctests fail. >>> :set -Wno-type-defaults It is not recommended to implement @fmap@ through this function, so it is named @fmapRecove...
# LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Data.Matchable( Matchable(..), zipzipMatch, fmapRecovered, eqDefault, liftEqDefault, * Define Matchable by Generic Matchable'(), genericZipMatchWith, ) where import ...
1ba2e8944862e3cddfd83a7b3c05830675c0ab7be118c0666806e42ce558d50d
shuieryin/wechat_mud
scene_root_sup.erl
%%%------------------------------------------------------------------- @author shuieryin ( C ) 2016 , Shuieryin %%% @doc %%% %%% @end Created : 03 . Mar 2016 9:17 PM %%%------------------------------------------------------------------- -module(scene_root_sup). -author("shuieryin"). -behaviour(supervisor). %% ...
null
https://raw.githubusercontent.com/shuieryin/wechat_mud/b2a9251a9b208fee5cd8c4213759750b95c8b8aa/src/scene/scene_root_sup.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API Supervisor callbacks =================================================================== API functions =============================================================...
@author shuieryin ( C ) 2016 , Shuieryin Created : 03 . Mar 2016 9:17 PM -module(scene_root_sup). -author("shuieryin"). -behaviour(supervisor). -export([ start_link/0 ]). -export([init/1]). -define(SERVER, ?MODULE). -spec start_link() -> supervisor:startlink_ret(). start_link() -> supervisor:start_...
7c9a83903b1b285508b2d505d19c62ee924492b123081587f99d0d8ed92bc9cf
cpichard/filesequence
Hash.hs
-- |Function to compute the hash of all files in a sequence module System.FileSequence.Hash where import qualified Data.ByteString as BS import System.FileSequence import System.FileSequence.Internal import System.IO import Crypto.Hash import Control.Monad -- |First naive implementation of producing a hash from a se...
null
https://raw.githubusercontent.com/cpichard/filesequence/39cd8eb7dd0bc494c181c5b04fc9ff2fae5202d0/src/System/FileSequence/Hash.hs
haskell
|Function to compute the hash of all files in a sequence |First naive implementation of producing a hash from a sequence of files
module System.FileSequence.Hash where import qualified Data.ByteString as BS import System.FileSequence import System.FileSequence.Internal import System.IO import Crypto.Hash import Control.Monad fileSequenceSum :: FileSequence -> IO String fileSequenceSum fs = do digest <- foldM processFile (hashInit :: Contex...
3bc0539c8a22231585e6b0bfd16cc6503abda10ae1104b2b252733409f73e9ae
a9032676/Codewars-Haskell
Imperative.hs
# LANGUAGE DeriveFunctor # # LANGUAGE TupleSections # module Imperative (def, var, lit, while, (+=), (-=), (*=)) where import Control.Monad.State (State, state, put, get, modify, runState, execState) import Control.Lens(ix, (%~)) data Free f a = Pure a | Impure (f (Free f a)) instance Functor f => Functor (Free f) w...
null
https://raw.githubusercontent.com/a9032676/Codewars-Haskell/6eccd81e9b6ae31b5c0a28ecc16b933f3abae1a5/src/Imperative.hs
haskell
return v = liftF $ CReturn v id factorial :: Integer -> Integer factorial n = def $ do i <- var n while i (>0) $ do result *= i return result
# LANGUAGE DeriveFunctor # # LANGUAGE TupleSections # module Imperative (def, var, lit, while, (+=), (-=), (*=)) where import Control.Monad.State (State, state, put, get, modify, runState, execState) import Control.Lens(ix, (%~)) data Free f a = Pure a | Impure (f (Free f a)) instance Functor f => Functor (Free f) w...
4abcc36332b80d80f6b0f17c581d96c7914fb9e78cc0e42c20e610f6c9da2ae4
databrary/databrary
Periodic.hs
# LANGUAGE TupleSections , , ScopedTypeVariables # module Service.Periodic ( forkPeriodic ) where import Control.Concurrent (ThreadId, forkFinally, threadDelay) import Control.Exception (handle, mask) import Control.Monad (void, when) import Control.Monad.Trans.Reader (withReaderT) import Data.Fixed (Fixed(..), M...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Service/Periodic.hs
haskell
# LANGUAGE TupleSections , , ScopedTypeVariables # module Service.Periodic ( forkPeriodic ) where import Control.Concurrent (ThreadId, forkFinally, threadDelay) import Control.Exception (handle, mask) import Control.Monad (void, when) import Control.Monad.Trans.Reader (withReaderT) import Data.Fixed (Fixed(..), M...
0860d096ad53eeac5e0857246931c366375c8abc319731f94a76202409d491e8
anuragsoni/postgres-protocol
test_driver_lwt.ml
open Lwt.Syntax let make_parameters ids = List.to_seq ids |> Seq.map (fun id -> let b = Bytes.create 4 in Caml.Bytes.set_int32_be b 0 id; `Binary, Some (Bytes.to_string b)) |> Array.of_seq ;; let prepare_query name conn = Postgres_lwt.prepare ~name ~statement:"SELECT id, ema...
null
https://raw.githubusercontent.com/anuragsoni/postgres-protocol/e3e1743c138e527a2285dfd1eb240f49fd764b25/example/lwt/test_driver_lwt.ml
ocaml
If we use named prepared queries, we can reference them by name later on in the session lifecycle.
open Lwt.Syntax let make_parameters ids = List.to_seq ids |> Seq.map (fun id -> let b = Bytes.create 4 in Caml.Bytes.set_int32_be b 0 id; `Binary, Some (Bytes.to_string b)) |> Array.of_seq ;; let prepare_query name conn = Postgres_lwt.prepare ~name ~statement:"SELECT id, ema...
3e43081a36dd459ddac30714a0a208c2434a7e256aa82d82b060affe38ba1602
twittner/cql-io
PrepQuery.hs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. module Database.CQL.IO.PrepQuery ( PrepQuery , prepared , queryString , PreparedQueries , new , lookupQueryId , lo...
null
https://raw.githubusercontent.com/twittner/cql-io/090b436a413d961a424376c0b1dcc0c223472188/src/Database/CQL/IO/PrepQuery.hs
haskell
--------------------------------------------------------------------------- Prepared Query | Representation of a prepared query. Actual preparation is handled transparently by the driver. --------------------------------------------------------------------------- Map of prepared queries to their query ID and query ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. module Database.CQL.IO.PrepQuery ( PrepQuery , prepared , queryString , PreparedQueries , new , lookupQueryId , lo...
de4349663124ca5975c2394a5daa3251c3f8dee501d70760e35f9537e60f78a2
mirage/decompress
decompress.ml
let w = De.make_window ~bits:15 let l = De.Lz77.make_window ~bits:15 let o = De.bigstring_create De.io_buffer_size let i = De.bigstring_create De.io_buffer_size let q = De.Queue.create 4096 let str fmt = Format.asprintf fmt let msgf fmt = Format.kasprintf (fun msg -> `Msg msg) fmt let error_msgf fmt = Format.kasprintf ...
null
https://raw.githubusercontent.com/mirage/decompress/716f7e37720b8b9684ed5a1aedc75c69071fd0fc/bin/decompress.ml
ocaml
let w = De.make_window ~bits:15 let l = De.Lz77.make_window ~bits:15 let o = De.bigstring_create De.io_buffer_size let i = De.bigstring_create De.io_buffer_size let q = De.Queue.create 4096 let str fmt = Format.asprintf fmt let msgf fmt = Format.kasprintf (fun msg -> `Msg msg) fmt let error_msgf fmt = Format.kasprintf ...
04fe40f06e037f91721f7cdca2f1d6c2d2a33cf121bb9b1876570ffe7b6eea60
ghc/nofib
Main.hs
- ( The Solid Modeller , written in Haskell ) - - Copyright 1990,1991,1992,1993 Duncan Sinclair - - Permission to use , copy , modify , and distribute this software for any - purpose and without fee is hereby granted , provided that the above - copyright notice and this permission notice appea...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/fulsom/Main.hs
haskell
- ( The Solid Modeller , written in Haskell ) - - Copyright 1990,1991,1992,1993 Duncan Sinclair - - Permission to use , copy , modify , and distribute this software for any - purpose and without fee is hereby granted , provided that the above - copyright notice and this permission notice appea...
73cd31bd7e49b1b030245c60ccedad6694c032a87996585eaff72c6b7d91e5ea
rmloveland/scheme48-0.53
test.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; ,config ,load debug/test.scm (define-structure testing (export (test :syntax) lost?) (open scheme signals handle conditions) (begin (define *lost?* #f) (define (lost?) *lost?*) (define (run-test string compare want thunk) (let ((result (call-w...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/debug/test.scm
scheme
,config ,load debug/test.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define-structure testing (export (test :syntax) lost?) (open scheme signals handle conditions) (begin (define *lost?* #f) (define (lost?) *lost?*) (define (run-test string compare want thunk) (let ((result (call-with-current-continuation (l...
9b1ae7442e0036a95673cce68e1e733e50b4ecf1cde1c0e38f01707272387c73
haskell-tools/haskell-tools
Simplest.hs
module Refactor.InlineBinding.Simplest where b = a a = ()
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/InlineBinding/Simplest.hs
haskell
module Refactor.InlineBinding.Simplest where b = a a = ()
5fca09de7b3b1f34f85aea4ed329a8dde0d899e920c6bd6719bb8827042437a0
nojb/llvm-min-caml
gc.ml
open Prim type atom = | Var of Id.t | Root of Id.t type closure = { entry : Id.l * Type.t; actual_fv : atom list } type t = | Unit | Bool of bool | Int of int | Float of float | Prim of primitive * atom list | If of atom * t * t | Let of (atom * Type.t) * t * t | Atom of atom | MakeCls of closu...
null
https://raw.githubusercontent.com/nojb/llvm-min-caml/68703b905f8292cb2e20b41bbd90cfea85ca2a19/gc.ml
ocaml
is this right? could an external function allocate memory!?
open Prim type atom = | Var of Id.t | Root of Id.t type closure = { entry : Id.l * Type.t; actual_fv : atom list } type t = | Unit | Bool of bool | Int of int | Float of float | Prim of primitive * atom list | If of atom * t * t | Let of (atom * Type.t) * t * t | Atom of atom | MakeCls of closu...
cd9a64b124d6b6ce605b2d168da821774b7da4461e69ffe9cafef07d2b1eaae2
igarnier/prbnmcn-dagger
lmh_incremental_inference.ml
module Trace = struct type sample = | Sample : { uid : int; dist : 'a Dist.dist; var : 'a Cgraph.Var.t; score : Log_space.t } -> sample | Kernel_sample : { uid : int; dist : 'a Dist.kernel; var : ('a * 'a) Cgraph.Var.t; ...
null
https://raw.githubusercontent.com/igarnier/prbnmcn-dagger/360e196be3e28cbcc67691a1fd68f1cd93743e35/src/lmh_incremental_inference.ml
ocaml
assert s1 = s2 assert s1 = s2 This would work for any mappable container. A distribution can't dynamically switch from stateless to kernel (TODO: lift this) A distribution can't dynamically switch from kernel to stateless (TODO: lift this)
module Trace = struct type sample = | Sample : { uid : int; dist : 'a Dist.dist; var : 'a Cgraph.Var.t; score : Log_space.t } -> sample | Kernel_sample : { uid : int; dist : 'a Dist.kernel; var : ('a * 'a) Cgraph.Var.t; ...
3a85cce7465288cc682c115bb46a9f036f9f4de7883d34d7ac10689754dcf1f4
pixlsus/registry.gimp.org_static
Dot-Map-Pixelize_No-Undo.scm
(script-fu-register "script-fu-pixelraster-noundo" ;func name "Brush-Dot-Pixelize-No-Undo" ;menu label "Creates a color-averaged Dot-Map with a selected Brush\ and a matching masked copy of the active layer." ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/Dot-Map-Pixelize_No-Undo.scm
scheme
func name menu label description author copyright notice date created image type that the script works on ----------Variablendeklaration Ende
(script-fu-register "Creates a color-averaged Dot-Map with a selected Brush\ SF-IMAGE "Image" 0 SF-DRAWABLE "Layer" 0 SF-BRUSH "Brush" '("Circle (03)" 100 44 0) SF-ADJUSTMENT "Number of colums" '(10 2 500 1 1 0 0) SF-ADJUSTMENT "Number of r...
5b18331b1e6741559778db1619724038aa282c992aadffc1fee2ab69b2333634
ocaml-sf/learn-ocaml-corpus
get1.ml
let rec get : 'a . int -> 'a seq -> 'a = fun i xs -> match xs with | Nil -> assert false (* cannot happen; [i] is within bounds *) | One (x, xs) -> get (i - 1) (Zero xs) (* wrong *) | Zero xs -> let (x0, x1) = get (i / 2) xs in if i mod 2 = 0 then x0 else x1
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/random_access_lists/wrong/get1.ml
ocaml
cannot happen; [i] is within bounds wrong
let rec get : 'a . int -> 'a seq -> 'a = fun i xs -> match xs with | Nil -> | One (x, xs) -> | Zero xs -> let (x0, x1) = get (i / 2) xs in if i mod 2 = 0 then x0 else x1
273069a8705b2f05dbc829ebec77c212e0fc817896832a59dfa462e7f9de19ff
lisp/de.setf.xml
namespace.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : xml - query - data - model ; -*- (in-package :xml-query-data-model) (setq xml-query-data-model:*namespace* (xml-query-data-model:defnamespace "#" (:use) (:ni...
null
https://raw.githubusercontent.com/lisp/de.setf.xml/827681c969342096c3b95735d84b447befa69fa6/namespaces/www-csd-abdn-ac-uk/research/AgentCities/ontologies/pubs/namespace.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : xml - query - data - model ; -*- (xqdm:find-namespace "#" :if-does-not-exist :load)
(in-package :xml-query-data-model) (setq xml-query-data-model:*namespace* (xml-query-data-model:defnamespace "#" (:use) (:nicknames) (:export) (:docu...
9db0b9e3786be24703e4fda87f9c9aad5fa78bde34e53c58d1ec378b9c37993a
lpgauth/fast_disk_log
fast_disk_log_writer.erl
-module(fast_disk_log_writer). -include("fast_disk_log.hrl"). -export([ init/5, start_link/4 ]). -record(state, { fd, logger, name, timer_delay, timer_ref, write_count = 0 }). %% public -spec init(pid(), atom(), name(), filename(), open_options()) -> ok | no_return(). init(Parent, Na...
null
https://raw.githubusercontent.com/lpgauth/fast_disk_log/ce781aafadba416e187108aaa51d1bc0024dbf53/src/fast_disk_log_writer.erl
erlang
public private
-module(fast_disk_log_writer). -include("fast_disk_log.hrl"). -export([ init/5, start_link/4 ]). -record(state, { fd, logger, name, timer_delay, timer_ref, write_count = 0 }). -spec init(pid(), atom(), name(), filename(), open_options()) -> ok | no_return(). init(Parent, Name, Logger...
1fbff33136a39f843326620258e26803c343dbea581a7dac5b1705031591955f
onedata/op-worker
cdmi_test_base.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc CDMI tests %%% @end %%%-------------...
null
https://raw.githubusercontent.com/onedata/op-worker/4b5d0bec945485800fb17a4b6674ce0dc9892edf/test_distributed/cdmi_test_base.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- =================================================================== Test functions ==============...
@author ( C ) 2015 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . CDMI tests -module(cdmi_test_base). -author("Tomasz Lichon"). -include("global_definitions.hrl"). -include("http/cdmi.hrl"). -include("http/rest.hrl"). -include("modules/fslogic/acl.hrl"). -inclu...
61d6c2ab784bd1367757b7a8409172d849a7678f7ff73c38743ff3ff20473123
GaloisInc/pate
TestBase.hs
{-# LANGUAGE GADTs #-} # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # module TestBase ( runTests , TestConfig(..) ) where import System.Directory import System.FilePath import ...
null
https://raw.githubusercontent.com/GaloisInc/pate/e096e9bd5d302267e19b27d940aacf6d50e1347b/tests/TestBase.hs
haskell
# LANGUAGE GADTs # ^ tests which are failing now but eventually should succeed ^ tests which fail to prove self-equivalence We assume that all of the tests have be compiled with a linker script that defines this section *after* the default data section as the output memory section assume the linker script has plac...
# LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # module TestBase ( runTests , TestConfig(..) ) where import System.Directory import System.FilePath import System.FilePath.Glo...
b422523abeb96ed8515c4d6a005da5c64a5836887534cd68965500f2775ca351
mirage/mirage-skeleton
config.ml
open Mirage let main = main ~packages:[ package "duration"; package "randomconv" ] "Unikernel.Timeout1" (console @-> time @-> random @-> job) let () = register "timeout1" [ main $ default_console $ default_time $ default_random ]
null
https://raw.githubusercontent.com/mirage/mirage-skeleton/144d68992a284730c383eb3d39c409a061bc452e/tutorial/lwt/timeout1/config.ml
ocaml
open Mirage let main = main ~packages:[ package "duration"; package "randomconv" ] "Unikernel.Timeout1" (console @-> time @-> random @-> job) let () = register "timeout1" [ main $ default_console $ default_time $ default_random ]
83136e2274c7c09d9d64d4d1ce79199aa9029f7089230fddae4225ea1bc8f66f
ghcjs/ghcjs
t10598_run.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # module Main where import Data.Proxy class C a where c :: proxy a -> Int c _ = 42 instance C Int where c _ = 27 newtype Foo = MkFoo Int deriving Eq deriving anycl...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/deriving/t10598_run.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # module Main where import Data.Proxy class C a where c :: proxy a -> Int c _ = 42 instance C Int where c _ = 27 newtype Foo = MkFoo Int deriving Eq deriving anyclass C deriving newtype instance ...
5334a6748d08e873858d25077e67a682d9e311c2362dc20c8307a6109e42b775
kmmelcher/plp-sad
TxtFunctions.hs
Módulo com todas as funções necessárias para manusear os arquivos da database . Com essas funções , consegue - se adicionar\remover\atualizar linhas em arquivos , além de também fazer leituras . module Util.TxtFunctions where import System.IO import Control.Exception (evaluate) import Prelude as P ...
null
https://raw.githubusercontent.com/kmmelcher/plp-sad/2b2f09ea9b37df1a1d748d7a4aab45b7ac6fd637/haskell/src/Util/TxtFunctions.hs
haskell
como separador. > Forma de uso: id = id da linha (linhaAtual:linhasRestantes) = conteúdo do arquivo a ser atualizado [sem header] id = id da linha id = id da linha Adiciona aspas a um String. texto = texto a ser envolto em aspas
Módulo com todas as funções necessárias para manusear os arquivos da database . Com essas funções , consegue - se adicionar\remover\atualizar linhas em arquivos , além de também fazer leituras . module Util.TxtFunctions where import System.IO import Control.Exception (evaluate) import Prelude as P ...
53ad690116c6373227de75dd3602d35ebc57bbbf9f230f388a47e18de49a3b23
tonyg/erlang-rfc4627
rfc4627.erl
JSON - RFC 4627 - for Erlang %%--------------------------------------------------------------------------- @author < > @author LShift Ltd. < > 2007 - 2010 , 2011 , 2012 and 2007 - 2010 LShift Ltd. @license %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this...
null
https://raw.githubusercontent.com/tonyg/erlang-rfc4627/1614d95831567ae8b060ce484f7b291048edec2d/src/rfc4627.erl
erlang
--------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, a...
JSON - RFC 4627 - for Erlang @author < > @author LShift Ltd. < > 2007 - 2010 , 2011 , 2012 and 2007 - 2010 LShift Ltd. @license files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial po...
0f2e3ddc61b4dd9e803d3996301559beeac25b9a098921841aa191e9cdf16e9f
reanimate/reanimate
LaTeX.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} # LANGUAGE ScopedTypeVariables # -- | Copyright : Written by License : -- Maintainer : -- Stability : experimental -- Portability : POSIX module Reanimate.L...
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/src/Reanimate/LaTeX.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE PatternSynonyms # | Maintainer : Stability : experimental Portability : POSIX * Font configurations | TeX backends. They have different features and capabilities. | TeX configurations can load packages and set up environments fo...
# LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # Copyright : Written by License : module Reanimate.LaTeX ( latexCfg, TexEngine (..), TexConfig (..), latex, latexWithHeaders, latexChunks, latexCfgChunks, latexCfgChunksTrans, mathChunks, xelatex, ...
a4e4a0e3f080424b74756d5f3bbc9e96bb59d4fd0e7d61ad4455e1225e2123e2
yedi/rhyme-finder
core_test.clj
(ns rhyme-finder.core-test (:use clojure.test rhyme-finder.core)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/yedi/rhyme-finder/c2f994606794e16361f04b03950113ce82a4e090/test/rhyme_finder/core_test.clj
clojure
(ns rhyme-finder.core-test (:use clojure.test rhyme-finder.core)) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
791f484508e16442f39d49c38a5cec35b0b75b354ffc71566529da46855455ea
ilevd/hicosql
core_test.clj
(ns hicosql.core-test (:require [clojure.test :refer :all] [hicosql.core :refer :all])) (deftest run-file-test (testing "__include test" (is (= (run-file "../test/data/main.sql")) (flatland.ordered.map/ordered-map :a 300 :a2 5 :b 10 :c 20 :...
null
https://raw.githubusercontent.com/ilevd/hicosql/0393ce9ccd3b77f6b96376545ab1db4d66c2acd5/test/hicosql/core_test.clj
clojure
(ns hicosql.core-test (:require [clojure.test :refer :all] [hicosql.core :refer :all])) (deftest run-file-test (testing "__include test" (is (= (run-file "../test/data/main.sql")) (flatland.ordered.map/ordered-map :a 300 :a2 5 :b 10 :c 20 :...
1a25d74127462f433b4e3a0da4b19f54c64fafbb9dd0f440b506fe5b0af1e633
tobyhede/lein-git-deps
git_deps.clj
(ns leiningen.git-deps "How this works: It clones projects into .lein-git-deps/<whatever>. If the directory already exists, it does a git pull and git checkout." (:require [clojure.java.shell :as sh] [clojure.java.io :as io] [clojure.string :as string] [robert.hooke :as hooke] ...
null
https://raw.githubusercontent.com/tobyhede/lein-git-deps/da5d36ebe6058720b1efc3f5d55c4cca4fc47831/src/leiningen/git_deps.clj
clojure
Why, you might ask, are we using str here instead of simply def'ing the var to a string directly? The answer is that we are working around a bug in marginalia where it can't tell the difference between the string that's the value for a def and a docstring. It you can specify for 'git checkout', like a commit id o...
(ns leiningen.git-deps "How this works: It clones projects into .lein-git-deps/<whatever>. If the directory already exists, it does a git pull and git checkout." (:require [clojure.java.shell :as sh] [clojure.java.io :as io] [clojure.string :as string] [robert.hooke :as hooke] ...
ddb93c19ad5fc21c5060596007860377bb1e1a18619144cab96a9e8411acf547
jlongster/grime3d
grime3d.scm
(define grime3d-host #f) (define grime3d-connection #f) (define (grime3d-set-host! host) (set! grime3d-host host)) (define (grime3d-connect) (let ((proc (open-tcp-client grime3d-host))) (thread-start! (make-thread (lambda () (let loop () (let ((msg (read proc))) (if (...
null
https://raw.githubusercontent.com/jlongster/grime3d/becacf1e40f846e3a1abf4daca3d98694df71028/lib/util/remote-debugger/grime3d.scm
scheme
(define grime3d-host #f) (define grime3d-connection #f) (define (grime3d-set-host! host) (set! grime3d-host host)) (define (grime3d-connect) (let ((proc (open-tcp-client grime3d-host))) (thread-start! (make-thread (lambda () (let loop () (let ((msg (read proc))) (if (...
71076b85cf6258a3827b75200f4833991b404b7a5e9f77db1d111d2155ecace3
roelvandijk/numerals
TestData.hs
| [ @ISO639 - 1@ ] - [ @ISO639 - 2@ ] mic [ @ISO639 - 3@ ] mic [ @Native name@ ] [ @English name@ ] Mi'kmaq [@ISO639-1@] - [@ISO639-2@] mic [@ISO639-3@] mic [@Native name@] Míkmawísimk [@English name@] Mi'kmaq -} module Text.Numeral.Langu...
null
https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src-test/Text/Numeral/Language/MIC/TestData.hs
haskell
------------------------------------------------------------------------------ Imports ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Test data ---------------------------------------------------------------...
| [ @ISO639 - 1@ ] - [ @ISO639 - 2@ ] mic [ @ISO639 - 3@ ] mic [ @Native name@ ] [ @English name@ ] Mi'kmaq [@ISO639-1@] - [@ISO639-2@] mic [@ISO639-3@] mic [@Native name@] Míkmawísimk [@English name@] Mi'kmaq -} module Text.Numeral.Langu...
0a66424887bf6a91e6596ab5f717b890d3080edd9f6affeb8198b6142df5e78b
tud-fop/vanda-haskell
PBSM.hs
----------------------------------------------------------------------------- -- | -- Module : VandaCLI.PBSM Copyright : ( c ) Technische Universität Dresden 2014 -- License : BSD-style -- -- Maintainer : -- Stability : unknown -- Portability : portable -----------------------------------------...
null
https://raw.githubusercontent.com/tud-fop/vanda-haskell/3214966361b6dbf178155950c94423eee7f9453e/executable/VandaCLI/PBSM.hs
haskell
--------------------------------------------------------------------------- | Module : VandaCLI.PBSM License : BSD-style Maintainer : Stability : unknown Portability : portable --------------------------------------------------------------------------- # LANGUAGE DeriveDataTypeable, RecordWildC...
Copyright : ( c ) Technische Universität Dresden 2014 # OPTIONS_GHC -fno - warn - missing - fields # module VandaCLI.PBSM where import Vanda.Algorithms.Earley.WSA as WSA (fromList) import Vanda.Algorithms.Earley import Vanda.Algorithms.ExpectationMaximizationAcyclic import Vanda.Algorithms.InsideOutsideWeigh...
e0f474601291e814f30220313a49d0ce1572128809addcd74a5bdf80659fb794
dlowe-net/orcabot
slogan-grammar.lisp
(sentence -> (or ("You get better inside" thing ".") ("Stay cool with" thing ".") ("For the love of" thing ".") (thing "for a professional image.") (thing ", stay in touch.") (thing "'s got it all!") ("I quit smoking w...
null
https://raw.githubusercontent.com/dlowe-net/orcabot/bf3c799337531e6b16086e8105906cc9f8808313/data/slogan-grammar.lisp
lisp
(sentence -> (or ("You get better inside" thing ".") ("Stay cool with" thing ".") ("For the love of" thing ".") (thing "for a professional image.") (thing ", stay in touch.") (thing "'s got it all!") ("I quit smoking w...
5f485079848cf5f03596ad9da0c857f63aa562db99c00a859e65187c99b5910d
gfredericks/test.chuck
generators_test.cljc
(ns com.gfredericks.test.chuck.generators-test (:require [clojure.test.check.clojure-test :refer [defspec]] [clojure.test.check.generators :as gen] [#?(:clj clj-time.core :cljs cljs-time.core) :as ct] [clojure.test.check.properties :as prop] [com.gfredericks.test.chuck....
null
https://raw.githubusercontent.com/gfredericks/test.chuck/9f6f33db6cc1ac8b172f20a45e8f13e34ac3c6f2/test/com/gfredericks/test/chuck/generators_test.cljc
clojure
check that both x and y are in the list TODO: improve the cljs tests for gen'/double
(ns com.gfredericks.test.chuck.generators-test (:require [clojure.test.check.clojure-test :refer [defspec]] [clojure.test.check.generators :as gen] [#?(:clj clj-time.core :cljs cljs-time.core) :as ct] [clojure.test.check.properties :as prop] [com.gfredericks.test.chuck....
08c4729eeda676b4b1c94b2253771b2296fedf0d8b92429599420aa93a0fbf8f
namin/inc
compiler-tests.scm
(load "compiler.scm") (when enable-boot-tests (unless enable-cps (load "tests-6.7-req.scm") (load "tests-6.6-req.scm") (load "tests-6.5-req.scm") (load "tests-6.4-req.scm")) (load "tests-6.4.2-req.scm") (load "tests-6.4.1-req.scm") (load "tests-6.3-req.scm") (load "tests-6.2-req.scm") (load ...
null
https://raw.githubusercontent.com/namin/inc/3f683935e290848485f8d4d165a4f727f6658d1d/src/compiler-tests.scm
scheme
(load "compiler.scm") (when enable-boot-tests (unless enable-cps (load "tests-6.7-req.scm") (load "tests-6.6-req.scm") (load "tests-6.5-req.scm") (load "tests-6.4-req.scm")) (load "tests-6.4.2-req.scm") (load "tests-6.4.1-req.scm") (load "tests-6.3-req.scm") (load "tests-6.2-req.scm") (load ...
728ad90a50e46c79b4d0e25a8c4e78426f0be7192bea814a8c72b0412f91bcc8
wireless-net/erlang-nommu
sshc_sup.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/ssh/src/sshc_sup.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(sshc_sup). -behaviour(supervisor...
8b5a0f1e9a8d47a1d594b2eae89085801a0f80047078c777d074ff910503b093
screenshotbot/screenshotbot-oss
test-auth.lisp
(defpackage :test-auth (:use :cl :fiveam) (:import-from :util/testing :with-fake-request) (:import-from :auth :fix-cookie-domain #+windows :read-windows-seed) (:import-from #:util/store #:with-test-store) (:export)) (in-package :test-auth) (def-suite* :test-auth) ...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/5e510b43a0c2f28db26b0d68f1fbf8fe7a399381/src/auth/test-auth.lisp
lisp
We used to map www.foo.com to foo.com, but that logic is hard to maintain
(defpackage :test-auth (:use :cl :fiveam) (:import-from :util/testing :with-fake-request) (:import-from :auth :fix-cookie-domain #+windows :read-windows-seed) (:import-from #:util/store #:with-test-store) (:export)) (in-package :test-auth) (def-suite* :test-auth) ...
c7da048220b5cb80e5d1f542162986983aaa264c7c040807aaa87f1e5990f8c0
lambe-lang/compiler
expr.mli
open Lambe_ast module Render : sig val pp : Format.formatter -> 'a Expr.t -> unit val check : Format.formatter -> 'a Expr.t -> 'a Type.t option -> unit end
null
https://raw.githubusercontent.com/lambe-lang/compiler/79d7937c06ca30e231855ec4ce99012ca0395cd5/lib/render/expr.mli
ocaml
open Lambe_ast module Render : sig val pp : Format.formatter -> 'a Expr.t -> unit val check : Format.formatter -> 'a Expr.t -> 'a Type.t option -> unit end
485c2e0caee84018f745ec0c0a8be6cf50d661754fa64940545d5d5b33cd9405
fukamachi/qlot
quicklisp.lisp
(defpackage #:qlot/install/quicklisp (:use #:cl) (:import-from #:qlot/logger #:message) (:import-from #:qlot/proxy #:*proxy*) (:import-from #:qlot/utils #:generate-random-string) (:import-from #:qlot/utils/shell #:run-lisp) (:import-from #:qlot...
null
https://raw.githubusercontent.com/fukamachi/qlot/96c40e6e6193f4bcbc61fe23aee98916347e2d94/install/quicklisp.lisp
lisp
(defpackage #:qlot/install/quicklisp (:use #:cl) (:import-from #:qlot/logger #:message) (:import-from #:qlot/proxy #:*proxy*) (:import-from #:qlot/utils #:generate-random-string) (:import-from #:qlot/utils/shell #:run-lisp) (:import-from #:qlot...
9290b03accea4304ffb14d0a1773bc65a266f4af5d67ee7094ecb09a4f8f72a1
Clozure/ccl-tests
floor.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Aug 4 22:16:00 2003 ;;;; Contains: Tests of FLOOR (in-package :cl-test) (compile-and-load "numbers-aux.lsp") (compile-and-load "floor-aux.lsp") ;;; Error tests (deftest floor.error.1 (signals-error (floor) program-error) t) (deftest floor.error.2 (s...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/floor.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of FLOOR Error tests Non-error tests To add: tests that involve adding/subtracting EPSILON constants (suitably scaled) to floated integers.
Author : Created : Mon Aug 4 22:16:00 2003 (in-package :cl-test) (compile-and-load "numbers-aux.lsp") (compile-and-load "floor-aux.lsp") (deftest floor.error.1 (signals-error (floor) program-error) t) (deftest floor.error.2 (signals-error (floor 1.0 1 nil) program-error) t) (deftest floor.1 ...
3bc1d845ea92ba394ad09065607f41f79c2937431ecbdae30c80ccee1f8f4061
luizalbertocviana/haskell-experiments
Memo.hs
module Memo where import Prelude (Bool, Int, (+), (-), (*), (==), rem, div, (<$>)) import Bool import Functions import InfinityTree memo :: (Int -> b) -> Int -> b memo f = find ftree where natTree = Branch 0 oddTree evenTree where oddTree = ((+1) . (*2)) <$> natTree evenTree = ((+...
null
https://raw.githubusercontent.com/luizalbertocviana/haskell-experiments/eee61245316e3d78819f88b0e60e0c3a3374483e/Memo.hs
haskell
module Memo where import Prelude (Bool, Int, (+), (-), (*), (==), rem, div, (<$>)) import Bool import Functions import InfinityTree memo :: (Int -> b) -> Int -> b memo f = find ftree where natTree = Branch 0 oddTree evenTree where oddTree = ((+1) . (*2)) <$> natTree evenTree = ((+...
472ccbf1eec53b45c41caff46ecd28b76a3394b75a15d047569d880beb892f7b
PrecursorApp/precursor
blue_ocean_made_of_ink.clj
(ns pc.views.blog.blue-ocean-made-of-ink) (defn blue-ocean-made-of-ink [] {:title "Our blue ocean is made of ink." :blurb "For every single designer or developer using an app to prototype their product, there are hundreds more using paper..." :author "Danny" :body (list [:article [:p "Following ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/views/blog/blue_ocean_made_of_ink.clj
clojure
(ns pc.views.blog.blue-ocean-made-of-ink) (defn blue-ocean-made-of-ink [] {:title "Our blue ocean is made of ink." :blurb "For every single designer or developer using an app to prototype their product, there are hundreds more using paper..." :author "Danny" :body (list [:article [:p "Following ...
bfbfa1f5d9b34894166859adc22b33c67c766f363864366e9d3e936d40c04f35
bobzhang/fan
test_gram.ml
open Format; open Camlp4.PreCast let parser_of_entry entry s = try Gram.parse entry (Loc.mk "<string>") (Stream.of_string s) with Loc.Exc_located(loc, e) -> begin prerr_endline (Loc.to_string loc); let start_bol,stop_bol, start_off, stop_off = Loc.(start_bol loc, s...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/test_gram.ml
ocaml
open Format; open Camlp4.PreCast let parser_of_entry entry s = try Gram.parse entry (Loc.mk "<string>") (Stream.of_string s) with Loc.Exc_located(loc, e) -> begin prerr_endline (Loc.to_string loc); let start_bol,stop_bol, start_off, stop_off = Loc.(start_bol loc, s...
838e055c67027001a51b5bc53d5d2fc2e550f2d5d6c4503fd07f2feceab8b25e
albertoruiz/easyVision
stand3.hs
import Vision.GUI import Image import Util.Misc(replaceAt) main = runIt win win = editor update save "editor" [2,4 .. 10] sh where sh k x = Draw [ color white $ text (Point 0 0) (show x) , color yellow $ text (Point 0.9 0.8) ("# "++show k) ] update = [ op (Char '+') succ ...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/stand3.hs
haskell
import Vision.GUI import Image import Util.Misc(replaceAt) main = runIt win win = editor update save "editor" [2,4 .. 10] sh where sh k x = Draw [ color white $ text (Point 0 0) (show x) , color yellow $ text (Point 0.9 0.8) ("# "++show k) ] update = [ op (Char '+') succ ...
b0f275302614d2583e998c26ffeb73ad702398950d7ecb0842c3041634b5f079
justinj/string-matching-visualization
boyer_moore.cljs
(ns strmatch.logic.boyer-moore (:use [strmatch.logic.common :only [discrepancy-index]])) The Boyer - Moore algorithm has a couple differences from KMP . First , it begins trying to match from the right side , rather than the left . Second , it uses two tables to calculate its jumps ( last occurrence and suffix...
null
https://raw.githubusercontent.com/justinj/string-matching-visualization/9aee3139d087860f4235b78b9a5dfc71df7a4e67/src/cljs/strmatch/logic/boyer_moore.cljs
clojure
In any situation, it checks what jump either table would allow, and takes the better one. The last-occurrence checker takes a character and returns the last occurence of that character in the needle, or -1 if it does not occur. This is used with the haystack to push the needle past all the points where the curre...
(ns strmatch.logic.boyer-moore (:use [strmatch.logic.common :only [discrepancy-index]])) The Boyer - Moore algorithm has a couple differences from KMP . First , it begins trying to match from the right side , rather than the left . Second , it uses two tables to calculate its jumps ( last occurrence and suffix...
f577b1471e43d941eb051514f5539edddfa6e4e198ef506d5eb1cf11a9b13e24
processone/zlib
ezlib_sup.erl
%%%---------------------------------------------------------------------- %%% File : ezlib_sup.erl Author : < > Purpose : supervisor Created : 4 Apr 2013 by < > %%% %%% ezlib , Copyright ( C ) 2002 - 2015 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it...
null
https://raw.githubusercontent.com/processone/zlib/3826aca25b6e3e576ec0d099d48e5bfc1afbb48b/src/ezlib_sup.erl
erlang
---------------------------------------------------------------------- File : ezlib_sup.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the...
Author : < > Purpose : supervisor Created : 4 Apr 2013 by < > ezlib , Copyright ( C ) 2002 - 2015 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Pub...
8144a01537c2cb6097ffc18459153ef27576ba2bb76a8310641d603ff4716374
ghc/packages-dph
USSegd.hs
# LANGUAGE CPP # {-# OPTIONS -Wall -fno-warn-orphans #-} #include "fusion-phases.h" -- | Scattered Segment Descriptors. -- -- See "Data.Array.Parallel.Unlifted" for how this works. -- module Data.Array.Parallel.Unlifted.Sequential.USSegd ( -- * Types USSegd(..) , valid -- * Constr...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-prim-seq/Data/Array/Parallel/Unlifted/Sequential/USSegd.hs
haskell
# OPTIONS -Wall -fno-warn-orphans # | Scattered Segment Descriptors. See "Data.Array.Parallel.Unlifted" for how this works. * Types * Constructors * Predicates * Projections * Operators USSegd --------------------------------------------------------------------- | Scattered Segment Descriptor. ^ True when...
# LANGUAGE CPP # #include "fusion-phases.h" module Data.Array.Parallel.Unlifted.Sequential.USSegd USSegd(..) , valid , mkUSSegd , empty , singleton , fromUSegd , isContiguous , length , takeUSegd, takeLengths, takeIndices, ta...
c28ad9492bb0a47d88c9b270fd3c562284eda639934fe71d92372870443860fc
fizruk/miso-aframe
Animation.hs
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Miso.AFrame.Core.Animation where import Data.Aeson import Miso import Miso.String import GHCJS.Marshal (ToJSVal(..)) import GHC.Generics (Generic) import Miso.AFrame.Core.Types im...
null
https://raw.githubusercontent.com/fizruk/miso-aframe/eb608e86fd71f01b397cde04124ff3a949e843be/src/Miso/AFrame/Core/Animation.hs
haskell
# LANGUAGE OverloadedStrings # | Determines effect of animation when not actively in play. | Animation attributes. | Event name to wait on before beginning animation. | Event name to wait on before stopping animation. | Delay (in milliseconds) or event name to wait on before beginning animation. | Direction of th...
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # module Miso.AFrame.Core.Animation where import Data.Aeson import Miso import Miso.String import GHCJS.Marshal (ToJSVal(..)) import GHC.Generics (Generic) import Miso.AFrame.Core.Types import Miso.AFrame.Core.Internal.Util...
9de55f346b35fd25c1bfa16aa121779d74fd275c1b45499a8397ed69014702c7
s-k/simplecs
tags.clj
(ns simplecs.tags (:require [simplecs.core :as sc :refer (defcomponent defcomponentsystem)])) (defn tag "Instead of defining a component '(defcomponent foo [])' and adding '(foo)' to an entity, you can just add '(tag :foo)' to the entity. There MUST NOT exist a component with the same name as the tag keyw...
null
https://raw.githubusercontent.com/s-k/simplecs/a2db6d53e2cc1170fc9328c9b5ce2ec70c30637a/src/simplecs/tags.clj
clojure
(ns simplecs.tags (:require [simplecs.core :as sc :refer (defcomponent defcomponentsystem)])) (defn tag "Instead of defining a component '(defcomponent foo [])' and adding '(foo)' to an entity, you can just add '(tag :foo)' to the entity. There MUST NOT exist a component with the same name as the tag keyw...
5589573f9fabb47d7b4e04ee65a61b898cb05b6ddacd0e330488309acfe0c344
facebook/duckling
DA_XX.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory . -------------...
null
https://raw.githubusercontent.com/facebook/duckling/03c6197283943c595608bb977a88a07c9e997006/Duckling/Ranking/Classifiers/DA_XX.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant --------------------------------------------------------------- Auto-generated by regenClassifiers DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW W...
Copyright ( c ) 2016 - present , Facebook , Inc. of patent rights can be found in the PATENTS file in the same directory . @generated module Duckling.Ranking.Classifiers.DA_XX (classifiers) where import Data.String import Prelude import qualified Data.HashMap.Strict as HashMap import Duckling.Ranking.Types cla...
fd8a44934825e5819a0fa33062d1aff1de6d03f233c3cdd38eb3001fd417dc92
ijvcms/chuanqi_dev
skill_pp.erl
%%%------------------------------------------------------------------- @author zhengsiying ( C ) 2015 , < COMPANY > %%% @doc %%% %%% @end Created : 19 . 八月 2015 下午3:21 %%%------------------------------------------------------------------- -module(skill_pp). -include("common.hrl"). -include("record.hrl"). -inclu...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/skill/skill_pp.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ==================================================================== 获取玩家已学技能列表...
@author zhengsiying ( C ) 2015 , < COMPANY > Created : 19 . 八月 2015 下午3:21 -module(skill_pp). -include("common.hrl"). -include("record.hrl"). -include("proto.hrl"). -include("cache.hrl"). -include("language_config.hrl"). -export([ handle/3 ]). -define(MAX_ATK_NUM, 2). handle(12001, PlayerState, _) -> ?INFO...
aace5ce8d325f95d2a0ae6b9b407aa490122c604274f6514fccbe5daa5ae7bb3
public-law/nevada-revised-statutes-parser
Chapter.hs
module Models.Chapter where import BasicPrelude ( Show , Text ) import Data.Aeson ( ToJSON ) import GHC.Generics ( Generic ) import ...
null
https://raw.githubusercontent.com/public-law/nevada-revised-statutes-parser/88a886debdab6ce5bd6cf5819c846cec1ffb9220/src/Models/Chapter.hs
haskell
module Models.Chapter where import BasicPrelude ( Show , Text ) import Data.Aeson ( ToJSON ) import GHC.Generics ( Generic ) import ...
ff73308c7fd100685d0daa630ca9b80a4a27918d15772a4f0e7cae27c21adbcc
emanjavacas/cosycat
annotation_schemas.cljc
(ns cosycat.schemas.annotation-schemas (:require [schema.core :as s] [schema.coerce :as coerce] [taoensso.timbre :as timbre])) (def cpos-schema s/Int) (def token-id-schema s/Any) (def ann-key-schema s/Str) (def token-span-schema {:type (s/enum "token") :scope cpos-schema (s/optiona...
null
https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/src/cljc/cosycat/schemas/annotation_schemas.cljc
clojure
we don't always send username along review annotations don't have query outgoing annotations do not have an id yet this is the same except history and _id
(ns cosycat.schemas.annotation-schemas (:require [schema.core :as s] [schema.coerce :as coerce] [taoensso.timbre :as timbre])) (def cpos-schema s/Int) (def token-id-schema s/Any) (def ann-key-schema s/Str) (def token-span-schema {:type (s/enum "token") :scope cpos-schema (s/optiona...
ddc3667a48fac3c7a4cc0324c003905b478bd4125e9ab3cee8669cf1d85378d5
FranklinChen/hugs98-plus-Sep2006
IORef.hs
module IORef {-# DEPRECATED "This module has moved to Data.IORef" #-} (module Data.IORef) where import Data.IORef
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/fptools/hslibs/lang/IORef.hs
haskell
# DEPRECATED "This module has moved to Data.IORef" #
module IORef (module Data.IORef) where import Data.IORef
87e5212d86bcc542a2360fb14bab21300dee00b2276e894ec03d0001076eeffa
DavidAlphaFox/RabbitMQ
mochiweb.erl
@author < > 2007 Mochi Media , Inc. @doc Start and stop the MochiWeb server . -module(mochiweb). -author(''). -export([new_request/1, new_response/1]). -export([all_loaded/0, all_loaded/1, reload/0]). -export([ensure_started/1]). reload() -> [c:l(Module) || Module <- all_loaded()]. all_loaded() -> ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/mochiweb-wrapper/mochiweb-git/src/mochiweb.erl
erlang
@doc Return a mochiweb_request data structure. this case probably doesn't "exist". Request-URI is "*" @doc Return a mochiweb_response data structure. @doc Start the given App if it has not been started already.
@author < > 2007 Mochi Media , Inc. @doc Start and stop the MochiWeb server . -module(mochiweb). -author(''). -export([new_request/1, new_response/1]). -export([all_loaded/0, all_loaded/1, reload/0]). -export([ensure_started/1]). reload() -> [c:l(Module) || Module <- all_loaded()]. all_loaded() -> ...
25ac2866c80fbf524af0d61165007b839aa5f64bfc2ca0644aae5110bf87179d
squaresLab/genprog-code
minimization.ml
* * Copyright ( c ) 2012 - 2018 , * < > * < > * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are ...
null
https://raw.githubusercontent.com/squaresLab/genprog-code/7982415b347529efee02190ab9ba6bd7eda6195e/src/minimization.ml
ocaml
* The structural signature of a variant allows us to compute a fine-grained diff between individuals using delta-debugging. This implementation is based on our implementation of cdiff, which applies DiffX to C code; this implementation could be generalized pretty trivially if necessary. [signature] ma...
* * Copyright ( c ) 2012 - 2018 , * < > * < > * < > * < > * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are ...
84c3d5758175b84e4fa3bbb481af4b722f0fa01a6598bab6efe27435b7eabd77
amnh/PCG
Special.hs
----------------------------------------------------------------------------- -- | -- Module : Data.Alphabet.Special Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -------------------------------------...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/alphabet/src/Data/Alphabet/Special.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Alphabet.Special License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- * Special Alphabet construct...
Copyright : ( c ) 2015 - 2021 Ward Wheeler module Data.Alphabet.Special aminoAcidAlphabet , dnaAlphabet , rnaAlphabet , discreteAlphabet , isAlphabetAminoAcid , isAlphabetDna , isAlphabetRna , isAlphabetDiscrete ) where import Data.Alphabet.IUPAC import Data.Alphabet.Int...
166e73770c871c20e48bd5024dadc227f4ba0906820ed0e2f3899c1311de5cef
c-cube/batsat-ocaml
Batsat.mli
(* This file is free software. See file "license" for more details. *) * { 1 Bindings to Batsat } type t * An instance of batsat ( stateful ) type 'a printer = Format.formatter -> 'a -> unit module Lit : sig type t = private int * Some representation of literals that will be accepted by the SAT solver . val e...
null
https://raw.githubusercontent.com/c-cube/batsat-ocaml/2a092d43f117e2e7c31b20459593e174794d2ae0/src/Batsat.mli
ocaml
This file is free software. See file "license" for more details. * [make n] creates the literal whose index is [n]. {b NOTE} [n] must be strictly positive. Use {!neg} to obtain the negation of a literal. * Negation of a literal. Invariant: [neg (neg x) = x] * Absolute value (removes negation if an...
* { 1 Bindings to Batsat } type t * An instance of batsat ( stateful ) type 'a printer = Format.formatter -> 'a -> unit module Lit : sig type t = private int * Some representation of literals that will be accepted by the SAT solver . val equal : t -> t -> bool val hash : t -> int val compare : t -> t -> i...
4ecaa9787516639544ad003364efbee70a4a95c28a48b4b27170cf0508275e02
shirok/Gauche
stk.scm
;;; port.stk - stk compatibility interface ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the abo...
null
https://raw.githubusercontent.com/shirok/Gauche/e97efb5e54f9ab97746369b8ac748f338224c746/lib/compat/stk.scm
scheme
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in b...
port.stk - stk compatibility interface Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING #!n...
7d295cae0cc16da8fa437ebfe3e074f50c6699a324d67261c9c002437aaed48e
singpolyma/cheogram
Adhoc.hs
module Adhoc (adhocBotSession, commandList, queryCommandList) where import Prelude () import BasicPrelude hiding (log) import Control.Concurrent (myThreadId, killThread) import Control.Concurrent.STM import Control.Error (hush, ExceptT, runExceptT, throwE, justZ) import Data.XML.Types as XML (Element(..), Node(NodeCon...
null
https://raw.githubusercontent.com/singpolyma/cheogram/a08cca4dc86f39687afcbf082a6d2c2d10776e56/Adhoc.hs
haskell
Technically an option can have multiple values, but in practice it probably won't The spec says a field type we don't understand should be treated as text-single The default if a type isn't specified is text-single The standard says if actions is present, with no "execute" attribute, that the default is "next" But...
module Adhoc (adhocBotSession, commandList, queryCommandList) where import Prelude () import BasicPrelude hiding (log) import Control.Concurrent (myThreadId, killThread) import Control.Concurrent.STM import Control.Error (hush, ExceptT, runExceptT, throwE, justZ) import Data.XML.Types as XML (Element(..), Node(NodeCon...
4f36aee86d5a859b86afcc7c92247bab381cdd6413e886f488e309fe2b4c709f
Deducteam/Logipedia
environ.ml
open Ast open Kernel.Basic module Basic = Kernel.Basic module Term = Kernel.Term let package = ref "" let set_package file = let path = Filename.dirname file in let sep = Filename.dir_sep in assert (String.length sep = 1); let sep = String.get sep 0 in match List.rev @@ String.split_on_char sep path with ...
null
https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/sttfa/environ.ml
ocaml
k counts lambas, used for renaming
open Ast open Kernel.Basic module Basic = Kernel.Basic module Term = Kernel.Term let package = ref "" let set_package file = let path = Filename.dirname file in let sep = Filename.dir_sep in assert (String.length sep = 1); let sep = String.get sep 0 in match List.rev @@ String.split_on_char sep path with ...
7e89acc4c5da8ad9d6d2771ceb2d1b83e2324767c23e1998ce3b8d8337eab4c8
karlhof26/gimp-scheme
Landscape Painter.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Landscape Painter ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; A GIMP script-fu to generate a painted look to a ; landscape photo. Sometimes provides an interesting ; effect on portraits and animal shots. ; ; Creates a ...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/2a1258bc3771287f83bd0ae94b6e7341a7bb4371/Landscape%20Painter.scm
scheme
Landscape Painter ;; A GIMP script-fu to generate a painted look to a landscape photo. Sometimes provides an interesting effect on portraits and animal shots. Creates a top layer set to Darken Only mode and then blurs it. Varying the blur radius will change the effect, a...
Tested on 2.10.20 4/12/2006 and 11/9/2020 License : it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or To view a copy of the GNU General Public License (define (script-fu-Land_paint img drawable...
2bc153a2a26c6949e4ed2e35b0d784670d316598404da04d3c01cbd53c93587d
arcfide/oleg
read-NCName-ss.scm
;***************************************************************** ; read-NCName-ss ; A version of SSAX:read-NCName that uses next-token-of-as-symb ; $ I d : read - NCName - ss.scm , v 1.4 2003/04/29 01:40:35 oleg Exp $ (directives Adding substring->symbol implemented in substring - symbol.c (extern (macro sub...
null
https://raw.githubusercontent.com/arcfide/oleg/c6826870436925fd4c873c01d7fcc24a7a7f95dc/ssax/benchmarks/read-NCName-ss.scm
scheme
***************************************************************** read-NCName-ss A version of SSAX:read-NCName that uses next-token-of-as-symb The same as next-token-of with the exception that it returns its result as a symbol make sure we have space move to the next char incl-list/pred decided it had had enoug...
$ I d : read - NCName - ss.scm , v 1.4 2003/04/29 01:40:35 oleg Exp $ (directives Adding substring->symbol implemented in substring - symbol.c (extern (macro substring->symbol::symbol (::bstring ::int ::int) "substring_to_symbol") (include "substring-symbol.c")) (pragma (substring->symbol no-c...
6cce95b1a5e54427b0ba25f072fa2636a8f6d11971728705883f3927907075f7
rd--/hsc3
analogTape.help.hs
-- analogTape let freq = control kr "freq" 110 width = control kr "width" 0.5 bias = control kr "bias" 0.5 saturation = control kr "saturation" 0.5 drive = control kr "drive" 0.5 sig = varSaw ar freq 0 width in mce2 (sig * 0.05) (X.analogTape sig bias saturation drive 1 0 * 0.1) -- analogTape ; eve...
null
https://raw.githubusercontent.com/rd--/hsc3/e1c9377f4985f4cc209a9cb11421bc8f1686c6f2/Help/Ugen/analogTape.help.hs
haskell
analogTape analogTape ; event control -- ; drawings
let freq = control kr "freq" 110 width = control kr "width" 0.5 bias = control kr "bias" 0.5 saturation = control kr "saturation" 0.5 drive = control kr "drive" 0.5 sig = varSaw ar freq 0 width in mce2 (sig * 0.05) (X.analogTape sig bias saturation drive 1 0 * 0.1) let bias = control kr "bias" 0.25...
6b95595deeaea4956dcf0049c7f796762ef5d4584fe626df82572474716924b2
macourtney/Conjure
test_view_test_generator.clj
(ns conjure.script.generators.test-view-test-generator (:use clojure.test conjure.script.generators.view-test-generator) (:require [conjure.view.util :as view-util])) (deftest test-generate-standard-content (is (generate-test-content "test" "show")))
null
https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_script_view/test/conjure/script/generators/test_view_test_generator.clj
clojure
(ns conjure.script.generators.test-view-test-generator (:use clojure.test conjure.script.generators.view-test-generator) (:require [conjure.view.util :as view-util])) (deftest test-generate-standard-content (is (generate-test-content "test" "show")))
5351ed44d26165a713ddf8c43ce46f084c3ccd171f8c9f734b8d298e9ba0194f
johnwhitington/camlpdf
pdfread.mli
(** Reading PDF Files *) (** Read a PDF from a [Pdfio.input], with an optional user password which, if absent, is assumed to be the empty string, and optional owner password. *) val pdf_of_input : ?revision:int -> string option -> string option -> Pdfio.input -> Pdf.t (** Same as [pdf_of_input], but delay loading of ...
null
https://raw.githubusercontent.com/johnwhitington/camlpdf/ebc3061176d7218c9aac113a0bbbb6289836154b/pdfread.mli
ocaml
* Reading PDF Files * Read a PDF from a [Pdfio.input], with an optional user password which, if absent, is assumed to be the empty string, and optional owner password. * Same as [pdf_of_input], but delay loading of streams and parsing of objects (they will be loaded and parsed when needed). Useful if we only intend t...
val pdf_of_input : ?revision:int -> string option -> string option -> Pdfio.input -> Pdf.t val pdf_of_input_lazy : ?revision:int -> string option -> string option -> Pdfio.input -> Pdf.t val pdf_of_channel : ?revision:int -> ?source:string -> string option -> string option -> in_channel -> Pdf.t val pdf_of_channel_...
ce0c1aa52fc37692632050e25077ab4fc4b47f7e942d62dabe0af4601dba2c5b
vmchale/dickinson
Useless.hs
{-# LANGUAGE OverloadedStrings #-} | This module is loosely based off /Warnings for pattern matching/ by Maranget module Language.Dickinson.Pattern.Useless ( PatternM , PatternEnv , runPatternM ...
null
https://raw.githubusercontent.com/vmchale/dickinson/5b7d9d48bdb2aa902cddc0161dca3a6e7f3e0aea/src/Language/Dickinson/Pattern/Useless.hs
haskell
# LANGUAGE OverloadedStrings # * Exported for testing all constructors of a ^ all constructors indexed by type ^ all types indexed by constructor TODO: just reader monad... writer at beginning? # SCC "assocUniques" # # SCC "isExhaustive" # TODO: unit test case for this because a tuple would be complete by itself...
| This module is loosely based off /Warnings for pattern matching/ by Maranget module Language.Dickinson.Pattern.Useless ( PatternM , PatternEnv , runPatternM , isExhaustive ...
5656dfafa5f8f50f7e49ce0aa332483a1f2fda8638155ead232d1451f55246bf
2600hz/kazoo
kazoo_globals_init.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc Wait for Globals @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one a...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_globals/src/kazoo_globals_init.erl
erlang
----------------------------------------------------------------------------- @doc Wait for Globals @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kazoo_globals_init). -export([start_link/0]). -include("kazoo_globals.hrl"). -spec start_li...
fedefa77e591c041ec8eb32503ad9720723a9a138cf23c54a8750a5108d491b5
ghollisjr/cl-ana
package.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 - 2015 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana 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 Li...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/makeres/package.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana 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 PARTICULAR PURPOSE. See the GNU General Public License...
cl - ana is a Common Lisp data analysis library . Copyright 2013 - 2015 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
3be2bd054df4e826776f82f417da3b8019451825ff97368accba9008519a54a1
theschemer/libra
http-cgi.scm
;;; "http-cgi.scm" service HTTP or CGI requests. -*-scheme-*- Copyright 1997 , 1998 , 2000 , 2001 , 2003 ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is ;granted, subject to the following restrictions and understandings. ; 1 ....
null
https://raw.githubusercontent.com/theschemer/libra/3395b0b0550df264e45b7073d35aa29f85395d20/libra/server/http-cgi.scm
scheme
"http-cgi.scm" service HTTP or CGI requests. -*-scheme-*- Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. this software will be error-free, and I am under...
Copyright 1997 , 1998 , 2000 , 2001 , 2003 1 . Any copy made of this software must include this copyright notice 2 . I have made no warranty or representation that the operation of 3 . In conjunction with products arising from the use of this (library (libra server http-cgi) (export http:read-header http...
1ea28abced743a0d128fbe1b351c8b32b8ddc0b1ede3780b479c6119247af649
tschady/advent-of-code
d21.clj
(ns aoc.2015.d21 (:require [aoc.file-util :as file-util] [clojure.math.combinatorics :as combo])) (def input (file-util/read-ints "2015/d21.txt")) (def hero-hp 100) (defn parse-boss [input] (zipmap [:hp :damage :armor] input)) (def shop {:weapons [{:cost 8 :damage 4 :armor 0} {:...
null
https://raw.githubusercontent.com/tschady/advent-of-code/63db07edf0c60f2a575f9f4a1852d3b06dbb82f9/src/aoc/2015/d21.clj
clojure
= no purchase = no purchase = no purchase
(ns aoc.2015.d21 (:require [aoc.file-util :as file-util] [clojure.math.combinatorics :as combo])) (def input (file-util/read-ints "2015/d21.txt")) (def hero-hp 100) (defn parse-boss [input] (zipmap [:hp :damage :armor] input)) (def shop {:weapons [{:cost 8 :damage 4 :armor 0} {:...
e8dd15d62dd1125f850661184b533b30be0247f639813f135e410775f0a1b565
tachukao/ocaml-mujoco
fun_gen.ml
open Base open Common let write_stubs ~stubs_filename s = let sections = parse_sect s in Stdio.Out_channel.with_file stubs_filename ~f:(fun ch -> let ps = p ch in p_auto ch; ps "open Ctypes"; ps "module Typs = Typs"; ps "open Typs"; ps "module Bindings (F : FOREIGN) = struct"; ...
null
https://raw.githubusercontent.com/tachukao/ocaml-mujoco/a17bba51e7a0166caa6a8693ac1d9178dd004a38/src/autogen/fun_gen.ml
ocaml
open Base open Common let write_stubs ~stubs_filename s = let sections = parse_sect s in Stdio.Out_channel.with_file stubs_filename ~f:(fun ch -> let ps = p ch in p_auto ch; ps "open Ctypes"; ps "module Typs = Typs"; ps "open Typs"; ps "module Bindings (F : FOREIGN) = struct"; ...
985b67246984d2fe2393f91f3c7c15ec039ce43ac0492e008548be794822c172
theodormoroianu/SecondYearCourses
HaskellChurch_20210415163005.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = show $ cIf b True False The boolean constant true always chooses the ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163005.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = show $ cIf b True False The boolean constant true always chooses the first alternative cTrue :: C...
93bebb8cc504ee9b5bcbfcb6ffd11bd36d9c485c956e1b96fd56e7016eebe961
pirapira/coq2rust
logic.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/proofs/logic.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Errors raised by the refiner Erro...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
2c9c3621b77bf1c4ae2b689ec5378394967b04aad7cd9f410055e38977adbe86
imdea-software/leap
Global.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/misc/Global.mli
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
37690aef298510a76c6a3bbbfe4f66ef2a850218a0d1e7881b042f4eb71ab76e
danieljharvey/mimsa
Interpret.hs
module Language.Mimsa.Interpreter.Interpret (interpret, addEmptyStackFrames) where import Control.Monad.Reader import Data.Functor import Data.HashMap.Strict (HashMap) import Data.Hashable import Language.Mimsa.Core import Language.Mimsa.Interpreter.App import Language.Mimsa.Interpreter.If import Language.Mimsa.Interp...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/d6a5d1933b82268458b1489c1d087e96b0d8e8fc/compiler/src/Language/Mimsa/Interpreter/Interpret.hs
haskell
somewhat pointless separate function to make debug logging each value out easier capture current environment add it to already captured vars return it
module Language.Mimsa.Interpreter.Interpret (interpret, addEmptyStackFrames) where import Control.Monad.Reader import Data.Functor import Data.HashMap.Strict (HashMap) import Data.Hashable import Language.Mimsa.Core import Language.Mimsa.Interpreter.App import Language.Mimsa.Interpreter.If import Language.Mimsa.Interp...
7c61abcbcb85ae76edb4a98a5c3aa1ea47a8ac8aa798a2fc3727dfa45f4777d5
ijvcms/chuanqi_dev
mod_ets_holder.erl
%%%------------------------------------------------------------------- %%% @author qhb %%% @doc %%% ets缓存挂载进程 %%% @end %%%------------------------------------------------------------------- -module(mod_ets_holder). -behaviour(gen_server). -include("common.hrl"). -export([init/1, handle_call/3, handle_cast/2, handle_in...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/system/ets/mod_ets_holder.erl
erlang
------------------------------------------------------------------- @author qhb @doc ets缓存挂载进程 @end ------------------------------------------------------------------- ==================================================================== API functions ==============================================================...
-module(mod_ets_holder). -behaviour(gen_server). -include("common.hrl"). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([ start_link/1 ]). { configs , ConfigList } start_link(Mode) -> gen_server:start_link(?MODULE, [Mode], []). -record(state, {}). init([Mode...
a87815306bb684c59c38e75d56ba7f5405d87e215c3a8e1efc00650639bf4b77
returntocorp/semgrep
metavar_arg.ml
(* ERROR: *) let foo = foo 1 2 (* ERROR: *) let foo1 = foo a_very_long_constant_name 2 (* ERROR: *) let foo2 = foo unsafe (* indeed *) 2 (* ERROR: *) let foo3 = foo (bar 1 3) 2 let foo4 = foo 2 1
null
https://raw.githubusercontent.com/returntocorp/semgrep/8c379c2c73b4ece1b1316655b00e21a8af3f00bb/tests/patterns/ocaml/metavar_arg.ml
ocaml
ERROR: ERROR: ERROR: indeed ERROR:
let foo = foo 1 2 let foo1 = foo a_very_long_constant_name 2 let foo3 = foo (bar 1 3) 2 let foo4 = foo 2 1
0cbc788b83f0edebf370fdd97052375a8df4a7672319a28c69a10f5586dce568
Clozure/ccl-tests
probe-file.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Jan 5 20:46:29 2004 ;;;; Contains: Tests of PROBE-FILE (in-package :cl-test) (deftest probe-file.1 (probe-file #p"nonexistent") nil) (deftest probe-file.2 (let ((s (open #p"probe-file.lsp" :direction :input))) (prog1 (equalpt (truename #p"probe-f...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/probe-file.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of PROBE-FILE Error tests
Author : Created : Mon Jan 5 20:46:29 2004 (in-package :cl-test) (deftest probe-file.1 (probe-file #p"nonexistent") nil) (deftest probe-file.2 (let ((s (open #p"probe-file.lsp" :direction :input))) (prog1 (equalpt (truename #p"probe-file.lsp") (probe-file s)) (close s))) t) (defte...
bc07668d3c695d6d3305125024d160d62224eb1b3852d36bc837e236a3a91940
mbutterick/beautiful-racket
sample-math.rkt
#lang basic-demo-2 10 rem all results should be 1 20 print 1 - 2 * 3 + 4 * 5 - 6 = 9 30 print (1 - 2) * (3 + 4) * (5 - 6) = 7 40 print 1 / 4 = .25 50 print 2 ^ 3 = 8 60 print 9 ^ 0.5 = 3 70 print 6 mod 2 = 0 80 print 5 mod 2 = 1
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/basic-demo-2/sample-math.rkt
racket
#lang basic-demo-2 10 rem all results should be 1 20 print 1 - 2 * 3 + 4 * 5 - 6 = 9 30 print (1 - 2) * (3 + 4) * (5 - 6) = 7 40 print 1 / 4 = .25 50 print 2 ^ 3 = 8 60 print 9 ^ 0.5 = 3 70 print 6 mod 2 = 0 80 print 5 mod 2 = 1
78f272fec3b9ed1ba338d4470f9e53e5824353ca0d4aa2a3c440150c271569a4
tov/dssl2
default-timeout-slow.rkt
#lang dssl2 assert time < 1 assert sleep(2) is None, time < 10 assert time < 4 assert sleep(2) is None
null
https://raw.githubusercontent.com/tov/dssl2/105d18069465781bd9b87466f8336d5ce9e9a0f3/test/dssl2/default-timeout-slow.rkt
racket
#lang dssl2 assert time < 1 assert sleep(2) is None, time < 10 assert time < 4 assert sleep(2) is None
440bcdbe0684f12744b72bea99fec9cfde85d964c3e4c49d2f3429dc80cf83bc
cram2/cram
gamma.lisp
Regression test GAMMA for GSLL , automatically generated ;; Copyright 2009 , 2010 Distributed under the terms of the GNU General Public License ;; ;; 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 F...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/gamma.lisp
lisp
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 that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test GAMMA for GSLL , automatically generated Copyright 2009 , 2010 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a ...
0cb69cdb7f63d13e9976e74e23ffb6921b8e2ee4602861b48968bc2511a4bed9
gilith/hol-light
montgomery-def.ml
(* ========================================================================= *) (* DEFINITION OF MONTGOMERY MULTIPLICATION *) (* ========================================================================= *) export_theory ...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/opentheory/theories/montgomery/montgomery-def.ml
ocaml
========================================================================= DEFINITION OF MONTGOMERY MULTIPLICATION ========================================================================= ------------------------------------------------------------------------- ...
export_theory "montgomery-def";; Definition of Montgomery multiplication [ 1 ] . 1 . let montgomery_reduce_def = new_definition `!n r k a. montgomery_reduce n r k a = (a + ((a * k) MO...
aaacdefaebf6e1288da839ae255336e9234131c0dedbbc123ef63686d74449a7
sbcl/sbcl
arith-combinations.pure.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the public domain and is provided with ;;;;...
null
https://raw.githubusercontent.com/sbcl/sbcl/e7d6d21aef0f32e50e5a53c8ab6642300433f0bc/tests/arith-combinations.pure.lisp
lisp
more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (enable-test-parallelism) (defun test-ops (ops types arguments &optional (result-types types)) (flet ((normalize-type (type) (sb-kernel:type-specifier (sb...
6645096c05bd09b7f27b8c33c4ae434d1083a0288324f89240ac9ee1c28e6835
ryanpbrewster/haskell
P031.hs
module Problems.P031 ( solve ) where - In England the currency is made up of pound , £ , and pence , p , and there are - eight coins in general circulation : - - 1p , 2p , 5p , 10p , 20p , 50p , £ 1 ( 100p ) and £ 2 ( 200p ) . - - It is possible to make £ 2 in the following way : - - 1×£1 +...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P031.hs
haskell
x doesn't matter for [0..x-1]
module Problems.P031 ( solve ) where - In England the currency is made up of pound , £ , and pence , p , and there are - eight coins in general circulation : - - 1p , 2p , 5p , 10p , 20p , 50p , £ 1 ( 100p ) and £ 2 ( 200p ) . - - It is possible to make £ 2 in the following way : - - 1×£1 +...
706f5b681d83fa0926a41e623a11acb0f11b638391813ef17d3ff917a68ca947
avsm/platform
opamSwitchAction.ml
(**************************************************************************) (* *) Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/state/opamSwitchAction.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special open OpamTypes open OpamStateTypes open OpamPackage.Set.Op let log fmt = OpamConsole.log "SWA...
984e7d5dc247e6db08d70eca91123a2ecab468971c46affe1884c5902b2b2875
craigl64/clim-ccl
callbacks.lisp
;; -*- mode: common-lisp; package: tk -*- ;; See the file LICENSE for the full license governing this code. ;; (in-package :tk) (defun has-callbacks-p (w name) (> (xt_has_callbacks w name) 1)) (defun-foreign-callable callback-handler ((widget :foreign-address) (client-data :foreign-address) (call-dat...
null
https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/tk/callbacks.lisp
lisp
-*- mode: common-lisp; package: tk -*- See the file LICENSE for the full license governing this code. malloc cache Motif Callbacks OpenLook Callbacks
(in-package :tk) (defun has-callbacks-p (w name) (> (xt_has_callbacks w name) 1)) (defun-foreign-callable callback-handler ((widget :foreign-address) (client-data :foreign-address) (call-data :foreign-address)) (callback-handler-1 widget client-data call-data)) (defun callback-handler-1 (address c...
2e19b3cf73ce467a2de21f8499a5506e3cdf9453071d88e0c5440d14c4500414
psholtz/MIT-SICP
exercise2-28.scm
;; Exercise 2.28 ;; ;; Write a procedure "fringe" that takes as arguments a tree (represented as a list) and ;; returns a list whose elements are all the leaves of the tree arranged in left-to-right ;; order. For example, ;; ( define x ( list ( list 1 2 ) ( list 3 4 ) ) ) ;; ;; (fringe x) ;; (1 2 3 4) ;; ;; (fri...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-2.2/mit-scheme/exercise2-28.scm
scheme
Write a procedure "fringe" that takes as arguments a tree (represented as a list) and returns a list whose elements are all the leaves of the tree arranged in left-to-right order. For example, (fringe x) (1 2 3 4) (fringe (list x x)) (1 2 3 4 1 2 3 4) Define the "fringe" procedure: Run some unit te...
Exercise 2.28 ( define x ( list ( list 1 2 ) ( list 3 4 ) ) ) (define (fringe x) (define (fringe-iter y) (cond ((number? y) (list y)) ((pair? y) (append (fringe-iter (car y)) (fringe-iter (cdr y)))) (else '()))) (fringe-iter x)) (define x (list (list 1 2) (list 3 4))) (fringe x) (fringe (...
a4c250bb2d6b0b5f0e1572fc243f7ee514f842757f280ca851431c4ed336ac07
racket/racket7
ffi-orig-place.rkt
#lang racket (require ffi/unsafe) (module+ test (main)) ;; Make sure that `#:in-original-place?' doesn't lead to deadlock: (define scheme_malloc_atomic (get-ffi-obj 'GC_malloc_atomic #f (_fun #:in-original-place? #t _long -> _pointer))) (define (x-main) (define ps (for/list ([j (in-range 4)]) (defin...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/pkgs/racket-test/tests/racket/ffi-orig-place.rkt
racket
Make sure that `#:in-original-place?' doesn't lead to deadlock: Start a thread that keep having to wait on the original place: Helps check exit handling:
#lang racket (require ffi/unsafe) (module+ test (main)) (define scheme_malloc_atomic (get-ffi-obj 'GC_malloc_atomic #f (_fun #:in-original-place? #t _long -> _pointer))) (define (x-main) (define ps (for/list ([j (in-range 4)]) (define p (place pch (define j (place-channel-get ...
9ce0351d580d9d47a88032b01b47b853adb0a49b750a10680a06659d1b3361a8
ajk/specialist-server
parser_test.clj
(ns specialist-server.parser-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [specialist-server.parser :as p])) (def query (-> "test/__schema.txt" io/resource slurp)) (def result (-> "test/__schema.edn" io/resource slurp read-st...
null
https://raw.githubusercontent.com/ajk/specialist-server/1997ab3746cb730ca882e338d43836db6c997663/test/specialist_server/parser_test.clj
clojure
(ns specialist-server.parser-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [clojure.pprint :refer [pprint]] [specialist-server.parser :as p])) (def query (-> "test/__schema.txt" io/resource slurp)) (def result (-> "test/__schema.edn" io/resource slurp read-st...
a61ebfcd2a71ed4c399622fae95d060b6f3a888501cba9d1a91296b0b536191c
jellelicht/guix
download.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2013 , 2014 , 2015 < > Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU Genera...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/download.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > Copyright © 2013 , 2014 , 2015 < > Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix...
786530029d70271e79485e722064f187f6dd5e1b9c38df48663bccd39e0b3710
s-expressionists/Concrete-Syntax-Tree
standard-grammars.lisp
(cl:in-package #:concrete-syntax-tree) (defparameter *ordinary-required-parameter-group* '((ordinary-required-parameter-group <- (* simple-variable)))) (defparameter *ordinary-optional-parameter-group* '((ordinary-optional-parameter-group <- keyword-optional (* ordinary-optional-parameter)))) (def...
null
https://raw.githubusercontent.com/s-expressionists/Concrete-Syntax-Tree/884a3ebdd288d7d9c24d55b4680086a88cb2dbc6/Lambda-list/standard-grammars.lisp
lisp
(cl:in-package #:concrete-syntax-tree) (defparameter *ordinary-required-parameter-group* '((ordinary-required-parameter-group <- (* simple-variable)))) (defparameter *ordinary-optional-parameter-group* '((ordinary-optional-parameter-group <- keyword-optional (* ordinary-optional-parameter)))) (def...
5e611e78cb1bc8d7a22586694b8d5c89cb42e95494f7a53ffab6278b608343f3
byorgey/thesis
Bijections.hs
# LANGUAGE FlexibleInstances # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeSynonymInstances #-} module Bijections where import Control.Arrow ((&&&)) i...
null
https://raw.githubusercontent.com/byorgey/thesis/b60af0501cdb2d1154d9303694884f461c0e499a/Bijections.hs
haskell
# LANGUAGE TypeOperators # # LANGUAGE TypeSynonymInstances # ---------------------------------------------------------- ---------------------------------------------------------- Name utilities ---------------------------------------------------------- an identity. -----------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Bijections where import Control.Arrow ((&&&)) import Control.Lens (makeLenses, mapped, (^.), _2) import ...
d5e5679739216d6180c92e19b9adefe9a1cc2baedcd60c04de46b5b2cddcbf76
williamleferrand/aws
creds.ml
type t = { aws_access_key_id : string ; aws_secret_access_key : string ; }
null
https://raw.githubusercontent.com/williamleferrand/aws/d591ef0a2b89082caac6ddd6850b2d8b7824e577/src/creds.ml
ocaml
type t = { aws_access_key_id : string ; aws_secret_access_key : string ; }
8c35c89a4ecd75074066f23edb0b68cf112544a6522dde3b28e19f1169c96b7f
flora-pm/flora-server
Requirement.hs
module Flora.Model.Requirement where import Crypto.Hash.MD5 qualified as MD5 import Data.Aeson (FromJSON, ToJSON) import Data.Data import Data.Foldable (foldl') import Data.Map.Strict qualified as Map import Data.Text (Text) import Data.Text.Display import Data.UUID (UUID, fromByteString) import Data.Vector (Vector) i...
null
https://raw.githubusercontent.com/flora-pm/flora-server/fe2d9fec16d00dea65ff03f47f3d94fa51e23c3d/src/core/Flora/Model/Requirement.hs
haskell
^ Unique identifier to this requirement in the database ^ Package component that depends on this requirement ^ Package that is being depended on ^ The human-readable version range expression of this requirement ^ Additional metadata, like flags | This datatype holds information about the latest version of a depen...
module Flora.Model.Requirement where import Crypto.Hash.MD5 qualified as MD5 import Data.Aeson (FromJSON, ToJSON) import Data.Data import Data.Foldable (foldl') import Data.Map.Strict qualified as Map import Data.Text (Text) import Data.Text.Display import Data.UUID (UUID, fromByteString) import Data.Vector (Vector) i...
d8a6db91bc9a7f8c64442a69c46fe8f81e6d17c3c256b41608a9a25c4af0525a
cfpb/qu
aggregation.clj
(ns ^:integration integration.test.aggregation (:require [clojure.test :refer :all] [qu.data.aggregation :refer :all] [qu.test-util :refer :all] [qu.data :as data] [qu.data.compression :refer [compress-where field-zip-fn field-unzip-fn]] [qu.load...
null
https://raw.githubusercontent.com/cfpb/qu/f460d9ab2f05ac22f6d68a98a9641daf0f7c7ba4/test/integration/test/aggregation.clj
clojure
(run-tests)
(ns ^:integration integration.test.aggregation (:require [clojure.test :refer :all] [qu.data.aggregation :refer :all] [qu.test-util :refer :all] [qu.data :as data] [qu.data.compression :refer [compress-where field-zip-fn field-unzip-fn]] [qu.load...