_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
7cb01261c962fe6ee790292275632b80537e1da5a66ce1eee499bf493cd2bf82
composewell/streamly
Concurrent.hs
-- | Module : Streamly . Internal . Data . Fold . Concurrent Copyright : ( c ) 2022 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC -- -- Eval a fold asynchronously in a separate thread. -- -- Use multiple worker folds to fold a str...
null
https://raw.githubusercontent.com/composewell/streamly/c2f79142411383e14d8c7db0f2456775549925f0/src/Streamly/Internal/Data/Fold/Concurrent.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental Eval a fold asynchronously in a separate thread. Use multiple worker folds to fold a stream and collect the results using another fold, combine using a monoid. The results can be collected out-of-order or in-order. Concurrent interleave/...
Module : Streamly . Internal . Data . Fold . Concurrent Copyright : ( c ) 2022 Composewell Technologies Portability : GHC Concurrent append : if one fold 's buffer becomes full then use the next one module Streamly.Internal.Data.Fold.Concurrent ( Config , maxBuffer , inspect | St...
11089a2ee3947b83f78768463737dcd3faa71b977711e488d37ede6f6c3e9eb6
haskell-repa/repa
Vector.hs
module Data.Array.Repa.Series.Vector ( Vector (..) , lengthData , new, new' , tail4, tail8 , read , write , writeFloatX4, writeFloatX8 , writeDoubleX2, writeDoubleX4 , take , trunc -- * Conversions , fromPrimit...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-series/Data/Array/Repa/Series/Vector.hs
haskell
* Conversions | Abstract mutable vector, used for flow fusion. WARNING: These are not general purpose vectors. Their representation has been optimised for use with flow fusion, and some functions may not behave as expected. In particular, the 'tail4/8' functions will not give sensible results after appl...
module Data.Array.Repa.Series.Vector ( Vector (..) , lengthData , new, new' , tail4, tail8 , read , write , writeFloatX4, writeFloatX8 , writeDoubleX2, writeDoubleX4 , take , trunc , fromPrimitive , toPrimitive) ...
cb598ec8687b656f815949534cf3c847d303a08c58d4c5a448ea66e9a0faf69a
Zilliqa/scilla
Ipcmessage_types.ml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/Zilliqa/scilla/011323ac5da48ee16890b71424e057ffbc4216da/src/eval/Ipcmessage_types.ml
ocaml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
565a7e7efe93e722927e4d2a2c7ab8f3e5682d67641626a24987e12a9f118b35
jeffshrager/biobike
load.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Sframes/load.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and a...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
9d31c9e2412b5cd2c38b14e19460df00853a2afe986d584a6bda8a30c8b81c13
margnus1/kid-mud
player.erl
Copyright ( c ) 2012 , , and See the file license.txt for copying permission . %%%------------------------------------------------------------------- @author < > %%% @doc %%% %%% @end Created : 8 May 2012 by < > %%%------------------------------------------------------------------- -module(play...
null
https://raw.githubusercontent.com/margnus1/kid-mud/56d759593e79d9c8ba7c45f9fc716d65de2554a7/src/player.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =================================================================== ---...
Copyright ( c ) 2012 , , and See the file license.txt for copying permission . @author < > Created : 8 May 2012 by < > -module(player). -include("player.hrl"). -include("zone.hrl"). -include("npc.hrl"). -include_lib("eunit/include/eunit.hrl"). -behaviour(gen_server). -export([start_link/2, com...
dc8f087c08c4d6073f796b26bf61f0336b3472678cd6f0645eea1a8e7c313c6f
malcolmreynolds/GSLL
bessel.lisp
Bessel functions , Fri Mar 17 2006 - 18:42 Time - stamp : < 2009 - 03 - 04 09:14:53EST bessel.lisp > $ Id$ (in-package :gsl) ;;;;**************************************************************************** ;;;; Regular Cylindrical Bessel Functions ;;;;********************************************************...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/special-functions/bessel.lisp
lisp
**************************************************************************** Regular Cylindrical Bessel Functions **************************************************************************** Fractional order **************************************************************************** Irregular Cylindrical Bessel Fun...
Bessel functions , Fri Mar 17 2006 - 18:42 Time - stamp : < 2009 - 03 - 04 09:14:53EST bessel.lisp > $ Id$ (in-package :gsl) (defmfun cylindrical-bessel-J0 (x) "gsl_sf_bessel_J0_e" ((x :double) (ret sf-result)) "The regular cylindrical Bessel function of zeroth order, J_0(x).") (defmfun cylindr...
e05d001bbaf0d5ddeacc277dfc5cf2e5911431c8d7fc25d034a62d94f17b702f
FranklinChen/hugs98-plus-Sep2006
Timer.hs
----------------------------------------------------------------------------- -- | -- Module : Graphics.HGL.X11.Timer Copyright : ( c ) , 1999 - 2003 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : internal -- Portability : non-portable (require...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/HGL/Graphics/HGL/X11/Timer.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.HGL.X11.Timer License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : internal Portability : non-portable (requires concurrency) A simple graphics library. ------------...
Copyright : ( c ) , 1999 - 2003 module Graphics.HGL.X11.Timer ( Timer, new, stop , Timers, newTimers, clearTimers, nextTick, fireTimers ) where import Control.Concurrent ( MVar, newMVar, takeMVar, putMVar, readMVar ) import Graphics.HGL.Internals.Utilities( modMVar_ ) import Graphics.HGL.Internals...
4139842e0f72c55f5a1db8034c4a5f443bebcf7dedb33ba6bb5c6da8926f0381
m-schmidt/Fuzzer
Str.hs
module Str where import Language.Haskell.TH import Language.Haskell.TH.Quote str :: QuasiQuoter str = QuasiQuoter { quoteExp = stringE , quotePat = undefined , quoteType = undefined , quoteDec = undefined }
null
https://raw.githubusercontent.com/m-schmidt/Fuzzer/e2d46defae7959ffb2ebe7c299a219440f890959/src/Str.hs
haskell
module Str where import Language.Haskell.TH import Language.Haskell.TH.Quote str :: QuasiQuoter str = QuasiQuoter { quoteExp = stringE , quotePat = undefined , quoteType = undefined , quoteDec = undefined }
ad6c91fff60e9ad990b3aca9e2d1fde8189bd1b6a312ef8b35adc360cd4b8f9c
kawasima/back-channeling
comment.cljs
(ns back-channeling.components.comment (:require [om.core :as om :include-macros true] [om-tools.core :refer-macros [defcomponent]] [sablono.core :as html :refer-macros [html]] [back-channeling.components.avatar :refer [avatar]]) (:use [back-channeling.comment-helper :only [forma...
null
https://raw.githubusercontent.com/kawasima/back-channeling/05d06278cedc35e4e7866384c2903d3c903a19fc/src/cljs/back_channeling/components/comment.cljs
clojure
(ns back-channeling.components.comment (:require [om.core :as om :include-macros true] [om-tools.core :refer-macros [defcomponent]] [sablono.core :as html :refer-macros [html]] [back-channeling.components.avatar :refer [avatar]]) (:use [back-channeling.comment-helper :only [forma...
70d8116bda9031dfc5f583a917dec5da99b66402a0f21356c76a255d19f3b22c
paurkedal/ocaml-caqti
test_error_cause.ml
Copyright ( C ) 2022 < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any later version , with the ...
null
https://raw.githubusercontent.com/paurkedal/ocaml-caqti/6b8d844e6dc7877301ca31dfbcf6128fa115811c/testsuite/test_error_cause.ml
ocaml
TODO: exclusion
Copyright ( C ) 2022 < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any later version , with the ...
2ddac474889b5fb1cb4013ea43c1f1be22dac7a59daf95cccd8644a437d61b46
aiya000/haskell-examples
Simplest.hs
module Main where import Control.Applicative (Alternative((<|>))) import Data.Functor.Identity (Identity, runIdentity) import qualified Data.Attoparsec.Text as P parse :: P.Parser () -> String -> Maybe () parse parser str = either (const Nothing) Just $ P.parseOnly parser str registersOrRegParse :: String -> Maybe ...
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/Data/Attoparsec/Simplest.hs
haskell
module Main where import Control.Applicative (Alternative((<|>))) import Data.Functor.Identity (Identity, runIdentity) import qualified Data.Attoparsec.Text as P parse :: P.Parser () -> String -> Maybe () parse parser str = either (const Nothing) Just $ P.parseOnly parser str registersOrRegParse :: String -> Maybe ...
6cc511f8f0460752c23732ccf147941ebe865867e12d63d063c9d862a9ec6d38
ucsd-progsys/liquidhaskell
Poly00.hs
{-@ LIQUID "--expect-any-error" @-} module Poly00 where {-@ zoo :: x:a -> {v:a | v /= x} @-} zoo :: goober -> goober zoo x = x
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/basic/neg/Poly00.hs
haskell
@ LIQUID "--expect-any-error" @ @ zoo :: x:a -> {v:a | v /= x} @
module Poly00 where zoo :: goober -> goober zoo x = x
e8bc9da3f86b21f06faf33bc6da23cb65d888da2ab73340d69dede014fdcad74
kmarekspartz/TaPL
Boolean.hs
| Implements Figure 3.1 . module Language.TaPL.Boolean (eval, eval', parseString, parseFile, Term(..)) where import Language.TaPL.Boolean.Syntax (Term(..)) import Language.TaPL.Boolean.Parser (parseString, parseFile) import Language.TaPL.Boolean.Eval (eval, eval')
null
https://raw.githubusercontent.com/kmarekspartz/TaPL/2f1aebf5ed370f769709852ee27020f5cb715123/src/Language/TaPL/Boolean.hs
haskell
| Implements Figure 3.1 . module Language.TaPL.Boolean (eval, eval', parseString, parseFile, Term(..)) where import Language.TaPL.Boolean.Syntax (Term(..)) import Language.TaPL.Boolean.Parser (parseString, parseFile) import Language.TaPL.Boolean.Eval (eval, eval')
4e64d93fa51ae9e85967d1f539e199e2bb6d7af389c4eeade26faa8c4c0e2e8d
jimcrayne/jhc
ToHs.hs
module E.ToHs(compileToHs) where import Char import Control.Monad import Control.Monad.Identity import Control.Monad.RWS import Control.Monad.Trans import Control.Monad.Writer import Data.Monoid import System.IO import Text.PrettyPrint.HughesPJ(render,($$),nest,Doc()) import qualified Data.Set as Set import qualified ...
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/src/E/ToHs.hs
haskell
f furc@Func { funcName = fn, funcIOLike = False, primArgTypes = as, primRetType = rt } = ans where ans = text $ "foreign import ccall unsafe \"" ++ fn ++ "\" " ++ cfuncname furc ++ " :: " ++ intercalate " -> " (map showCType (as ++ [rt])) f furc@Func { funcName = fn, funcIOLike = True, primArgTypes = as,...
module E.ToHs(compileToHs) where import Char import Control.Monad import Control.Monad.Identity import Control.Monad.RWS import Control.Monad.Trans import Control.Monad.Writer import Data.Monoid import System.IO import Text.PrettyPrint.HughesPJ(render,($$),nest,Doc()) import qualified Data.Set as Set import qualified ...
e8b3af34cc842e60e50d44d3ed74d29ad67046bbfbd52c2d40a61bb8dc422530
discoproject/disco
ddfs_gc_main.erl
Both garbage collection ( GC ) and re - replication ( RR ) require working from a consistent snapshot of DDFS . Since computing this snapshot % is expensive in both time and memory, once computed, the snapshot is used for both purposes , and GC and RR are implemented together . GC is performed before RR , s...
null
https://raw.githubusercontent.com/discoproject/disco/be65272d3eecca184a3c8f2fa911b86ac87a4e8a/master/src/ddfs/ddfs_gc_main.erl
erlang
is expensive in both time and memory, once computed, the snapshot is GC2) Remove orphaned tags (old versions and deleted tags) GC3) Remove orphaned blobs (blobs not referred by any tag) GC4) Recover lost replicas for non-orphaned blobs (from lost tag updates) RR1) Re-replicate blobs that don't have enough repl...
Both garbage collection ( GC ) and re - replication ( RR ) require working from a consistent snapshot of DDFS . Since computing this snapshot used for both purposes , and GC and RR are implemented together . GC is performed before RR , so that GC can free up disk space that can be used by RR . GC perfor...
11eb0fcfec05bec17862e4950f3d6ed294b8383662a26886bb8dadac47d2cd19
Deraen/clj-hyphenate
or.cljc
(ns clj-hyphenate.patterns.or "This pattern is imported from Hyphenator.js. Original comment follows: For questions about the Oriya hyphenation patterns ask Santhosh Thottingal (santhosh dot thottingal at gmail dot com) " (:require [clj-hyphenate.patterns :as pat])) (def rules' {:leftmin 2, :rightmin 2, :...
null
https://raw.githubusercontent.com/Deraen/clj-hyphenate/cab0f83daf2c86f52415615a3a3919fbdba8e84b/src/clj_hyphenate/patterns/or.cljc
clojure
(ns clj-hyphenate.patterns.or "This pattern is imported from Hyphenator.js. Original comment follows: For questions about the Oriya hyphenation patterns ask Santhosh Thottingal (santhosh dot thottingal at gmail dot com) " (:require [clj-hyphenate.patterns :as pat])) (def rules' {:leftmin 2, :rightmin 2, :...
a2be55ad2282df88d896e9a9fd59dc905d0b45f170b4b6df0feb2557034f68ef
brendanhay/amazonka
DescribeConnectionAliasPermissions.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/DescribeConnectionAliasPermissions.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpaces.DescribeConnectionAliasPermissions Stability : auto-generated Describes the permissions that the owner of a connection alias has connection alias. For more information, see <-region-redirection.html Cross-Region Redirect...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
c022868348ab96f60d0d469278489c9c8935f5efa4ccb734f6b6b3319edaff4b
cbaggers/rtg-math
distribute.lisp
(in-package :rtg-math.distribute) (defun distrib (shape size num-of-points) (assert (> num-of-points 1)) (case shape (:square (distribute-wire-hypercube size num-of-points 2) ) (:cube (distribute-wire-hypercube size num-of-points 3)) (:tesseract (distribute-wire-hypercube size num-of-points 4)) (:s...
null
https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/vectors/distribute.lisp
lisp
-------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- (defun distrib-triangle (count) (remove-duplicates (append (offset-line offset-vec angle line) ...
(in-package :rtg-math.distribute) (defun distrib (shape size num-of-points) (assert (> num-of-points 1)) (case shape (:square (distribute-wire-hypercube size num-of-points 2) ) (:cube (distribute-wire-hypercube size num-of-points 3)) (:tesseract (distribute-wire-hypercube size num-of-points 4)) (:s...
dac728e0892b816ea8dffd01d809fe05bf48c2a049d1bbe96cbc76244f5020cf
DHSProgram/DHS-Indicators-SPSS
NT_IYCF.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: NT_IYCF.sps Purpose: Code to compute infant and child feeding indicators Data inputs: KR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap11_NT/NT_IYCF.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: NT_IYCF.sps Purpose: Code to compute infant and child feeding indicators Data inputs: KR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS...
0a906ab4ab31128b2985e3cd03c7d0db249279189c1de96e6cb96b07e4c0c342
nukemberg/riemann-rabbitmq-plugin
project.clj
(defproject riemann-rabbitmq-plugin "0.1.1-SNAPSHOT" :description "A RabbitMQ plugin for Riemann" :dependencies [[org.clojure/clojure "1.6.0"] [com.novemberain/langohr "3.1.0" :exclusions [cheshire clj-http]] ] :plugins [[codox "0.6.1"] [lein-midje "3.0.0"]] :profil...
null
https://raw.githubusercontent.com/nukemberg/riemann-rabbitmq-plugin/af01e9531057c0777a9bc5553755aafe790f2f50/project.clj
clojure
(defproject riemann-rabbitmq-plugin "0.1.1-SNAPSHOT" :description "A RabbitMQ plugin for Riemann" :dependencies [[org.clojure/clojure "1.6.0"] [com.novemberain/langohr "3.1.0" :exclusions [cheshire clj-http]] ] :plugins [[codox "0.6.1"] [lein-midje "3.0.0"]] :profil...
fc07bfcada01f0569a362bba9c46d2f1cf89bc2562425c8e653766e5598a08cb
kkirstein/ocaml-imgproc
color.ml
vim : set ft = ts=2 : * Color module offers conversion functions between different color spaces , e.g. RGB , HSV or Grayscale based on Owl 's Ndarray . Author : < > Color module offers conversion functions between different color spaces, e.g. RGB, HSV or Grayscale ...
null
https://raw.githubusercontent.com/kkirstein/ocaml-imgproc/9bea2475b2a534c28d436174f789046a8b12ed14/lib/color.ml
ocaml
#To_RGB
vim : set ft = ts=2 : * Color module offers conversion functions between different color spaces , e.g. RGB , HSV or Grayscale based on Owl 's Ndarray . Author : < > Color module offers conversion functions between different color spaces, e.g. RGB, HSV or Grayscale ...
9da8562a3c50991362b1d54597ebadeb6488740c2eb8a2003939025bce00387f
hammerlab/biokepi
pipeline_library.mli
module Input : sig type t = | Fastq of fastq | Bam of bam and fastq_fragment = (string option * fastq_data) and fastq = { fastq_sample_name : string; files : fastq_fragment list; } and bam = { bam_sample_name: string; path: string; how: how; sorting: sorting option; refe...
null
https://raw.githubusercontent.com/hammerlab/biokepi/d64eb2c891b41bda3444445cd2adf4e3251725d4/src/pipeline_edsl/pipeline_library.mli
ocaml
* Make it easy to create Input.t from directories on hosts.
module Input : sig type t = | Fastq of fastq | Bam of bam and fastq_fragment = (string option * fastq_data) and fastq = { fastq_sample_name : string; files : fastq_fragment list; } and bam = { bam_sample_name: string; path: string; how: how; sorting: sorting option; refe...
a61b451757a31325609446ee3c07876db6156608b746981dab63ad39d2ecfee1
solita/mnt-teet
meeting_pdf.clj
(ns teet.meeting.meeting-pdf "Generate meeting PDF as hiccup formatted XSL-FO" (:require [teet.meeting.meeting-db :as meeting-db] [teet.meeting.meeting-commands :as meeting-commands] [teet.environment :as environment] [teet.localization :refer [with-language tr]] [teet.user.user-model :as user-m...
null
https://raw.githubusercontent.com/solita/mnt-teet/7a5124975ce1c7f3e7a7c55fe23257ca3f7b6411/app/backend/src/clj/teet/meeting/meeting_pdf.clj
clojure
A4 portrait width/height TBD: incomplete files removal
(ns teet.meeting.meeting-pdf "Generate meeting PDF as hiccup formatted XSL-FO" (:require [teet.meeting.meeting-db :as meeting-db] [teet.meeting.meeting-commands :as meeting-commands] [teet.environment :as environment] [teet.localization :refer [with-language tr]] [teet.user.user-model :as user-m...
b87f12512a712ff1ef52cdd4fb3023179b9381471bf31bb9c32a3f0417e94184
fuchsto/drool
VisualSettings.hs
----------------------------------------------------------------------------- -- Module : Drool . VisualSettings Copyright : License : MIT -- -- Maintainer : -- Stability : experimental -- Portability : POSIX -- -- | -- -----------------------------------------------------------------...
null
https://raw.githubusercontent.com/fuchsto/drool/d9318c641a6a94a8450b5118db7b3213a93209ea/src/Drool/VisualSettings.hs
haskell
--------------------------------------------------------------------------- Maintainer : Stability : experimental Portability : POSIX | --------------------------------------------------------------------------- # OPTIONS -O2 -Wall #
Module : Drool . VisualSettings Copyright : License : MIT module Drool.VisualSettings ( VisualSettings(..), ) where import Drool.UI.Visuals.Visual import Drool.UI.Visuals.FFTSurface import Drool.UI.Visuals.Spheres import Drool.UI.Visuals.Tunnel import Drool.UI.Visuals.Blank data Vi...
eac177419515ef57d9c0d1995ae6d2d2ff251ed7cfa673f6e044e14576804a72
nilenso/kulu-backend
model_test.clj
(ns kulu-backend.users.model-test (:require [conjure.core :refer :all] [kulu-backend.db :as db] [kulu-backend.users.model :as users] [kulu-backend.organizations.model :as org] [kulu-backend.test-helper :refer :all] [clojure.test :refer :all])) (use-fixtures...
null
https://raw.githubusercontent.com/nilenso/kulu-backend/0b404f76643e77219432dcbffa681172a61e591b/test/kulu_backend/users/model_test.clj
clojure
creating an admin user
(ns kulu-backend.users.model-test (:require [conjure.core :refer :all] [kulu-backend.db :as db] [kulu-backend.users.model :as users] [kulu-backend.organizations.model :as org] [kulu-backend.test-helper :refer :all] [clojure.test :refer :all])) (use-fixtures...
8fd979a948031bb5f014c4b7d1ab9a608910ae032961bd012174c1de6e431a08
helium/blockchain-core
blockchain_poc_target_v6.erl
%%%----------------------------------------------------------------------------- %%% @doc blockchain_poc_target_v6 implementation. %%% %%% The targeting mechanism is based on the following conditions: %%% - Deterministically identify a target hex based on public key %%% - Deterministically select a challengee from targ...
null
https://raw.githubusercontent.com/helium/blockchain-core/c5aae6f89802199928929c1e0c8bf381a3778f9f/src/poc/blockchain_poc_target_v6.erl
erlang
----------------------------------------------------------------------------- @doc blockchain_poc_target_v6 implementation. The targeting mechanism is based on the following conditions: - Deterministically identify a target hex based on public key - Deterministically select a challengee from target region based on...
- v6 utilises h3dex for more efficient targeting and GC -module(blockchain_poc_target_v6). -include("blockchain_utils.hrl"). -include("blockchain_vars.hrl"). -include("blockchain_caps.hrl"). -export([ target_zone/2, target/5 ]). -spec target_zone( RandState :: rand:state(), Ledger :: blockchain_led...
c1089c764c13badc493e154634bfb7d5661ce9f1f87a9780b9ce42b1a7878d00
meta-ex/ignite
scratch.clj
(ns meta-ex.scratch (:use [overtone.live] [meta-ex.sets.ignite] [meta-ex.kit.mixer] [meta-ex.synths.synths] [meta-ex.state] [overtone.synth.retro] [overtone.studio.scope] ) (:require [meta-ex.drums :as drums] [meta-ex.kit.timing :as tim] [ ...
null
https://raw.githubusercontent.com/meta-ex/ignite/b9b1ed7ae2fa01d017c23febabb714a6389a98dd/src/meta_ex/scratch.clj
clojure
(leap/on-frame (fn [f] (let [h (leap/frontmost-hand f) pv (leap/palm-position h)] ; ( println ( .isValid h ) ) (when (.isValid h ) (let [y (.getY pv) y (/ y 50)] g g (sin-osc freq) (dirt...
(ns meta-ex.scratch (:use [overtone.live] [meta-ex.sets.ignite] [meta-ex.kit.mixer] [meta-ex.synths.synths] [meta-ex.state] [overtone.synth.retro] [overtone.studio.scope] ) (:require [meta-ex.drums :as drums] [meta-ex.kit.timing :as tim] [ ...
6c5789d2af64dc141c516b81d885779b96b1a04958c3c0b2b46a4af53bf385e4
imdea-software/leap
TslArgs.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/progs/tsl/TslArgs.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...
f9c55985fd1f3248706c54dc2bf9ef18737f2ccbd1b27abee4cc6c20e9b39071
satos---jp/mincaml_self_hosting
convert.mli
open Syntax val conv : top -> (string * string) (* header.mli , body.ml *)
null
https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/src/lex/convert.mli
ocaml
header.mli , body.ml
open Syntax val conv : top -> (string * string)
1853f80437c022d5fec2ea844620f7f1e8d349b41fab7bd0aa5200cee4abb630
janestreet/async_kernel
eager_deferred1.mli
* [ Eager_deferred ] partially implements the [ Deferred ] interface , with a type [ ' a t ] equal to [ ' a Deferred.t ] , but where the operations are " eager " , that is built upon a world where [ bind ] , [ map ] , and [ upon ] eagerly apply their closure without preemption in the case the deferred...
null
https://raw.githubusercontent.com/janestreet/async_kernel/9575c63faac6c2d6af20f0f21ec535401f310296/eager_deferred/src/eager_deferred1.mli
ocaml
_ We do not expose [Eager_deferred.t] so that type-error messages refer to [Deferred.t], not [Eager_deferred.t].
* [ Eager_deferred ] partially implements the [ Deferred ] interface , with a type [ ' a t ] equal to [ ' a Deferred.t ] , but where the operations are " eager " , that is built upon a world where [ bind ] , [ map ] , and [ upon ] eagerly apply their closure without preemption in the case the deferred...
689e05e384a4f925e6e22dc647b9b6c679df73d119dca799e3924ff59b7c05b6
openx/ox-thrift
skip_types.erl
%% Autogenerated by Thrift Compiler ( 0.10.0 ) %% %% DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING %% -module(skip_types). -include("skip_types.hrl"). -export([struct_info/1, struct_info_ext/1, enum_info/1, enum_names/0, struct_names/0, exception_names/0]). struct_info('AllTypes') -> {struct,...
null
https://raw.githubusercontent.com/openx/ox-thrift/d8dee712fc40438e250ca21caf23204a04e58c1a/test/skip_types.erl
erlang
DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
Autogenerated by Thrift Compiler ( 0.10.0 ) -module(skip_types). -include("skip_types.hrl"). -export([struct_info/1, struct_info_ext/1, enum_info/1, enum_names/0, struct_names/0, exception_names/0]). struct_info('AllTypes') -> {struct, [{1, bool}, {2, byte}, {6, i16}, {5, i32}, ...
b9ff09d7ae67349920fc2a4509462a68f96f889d47a1d08d6d771adcf94de6b8
inaka/elvis_core
elvis_rulesets.erl
-module(elvis_rulesets). -format #{inline_items => none}. -export([rules/1, set_rulesets/1]). -spec set_rulesets(#{atom() => list()}) -> ok. set_rulesets(RuleSets) -> Tid = ensure_clean_table(), lists:foreach(fun({Name, Rules}) -> true = ets:insert(Tid, {Name, Rules}) end, maps:to_list(Rule...
null
https://raw.githubusercontent.com/inaka/elvis_core/c0993efbc9e2007ca0028232312753009862b2ac/src/elvis_rulesets.erl
erlang
-module(elvis_rulesets). -format #{inline_items => none}. -export([rules/1, set_rulesets/1]). -spec set_rulesets(#{atom() => list()}) -> ok. set_rulesets(RuleSets) -> Tid = ensure_clean_table(), lists:foreach(fun({Name, Rules}) -> true = ets:insert(Tid, {Name, Rules}) end, maps:to_list(Rule...
80a155996e8371988075f53993c6395f13d76fa3221559d7c4cfad89db7a7fbf
bhauman/advent-of-clojure
day11.clj
(ns advent-2015.day11) (defn straight-test [x] (some (fn [r] (let [[a b c] (map byte r)] (and a b c (= (+ 2 a) (inc b) c)))) (partition 3 1 x))) (defn not-iol [x] (not (re-matches #".*(i|o|l).*" (apply str x)))) (defn has-different-pairs [x] (< 1 (count (set (filter #(apply ...
null
https://raw.githubusercontent.com/bhauman/advent-of-clojure/856763baf45bf7bf452ffd304dc1b89f9bc879a6/src/advent-2015/day11.clj
clojure
(ns advent-2015.day11) (defn straight-test [x] (some (fn [r] (let [[a b c] (map byte r)] (and a b c (= (+ 2 a) (inc b) c)))) (partition 3 1 x))) (defn not-iol [x] (not (re-matches #".*(i|o|l).*" (apply str x)))) (defn has-different-pairs [x] (< 1 (count (set (filter #(apply ...
7d6dd53b5769afbd0d6fcbdc3c32cbc09aa9e3ef6bda6ce4fd4eff1e43cd0bb0
saurabhnanda/odd-jobs
Types.hs
# LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE DeriveGeneric # {-# LANGUAGE RankNTypes #-} module OddJobs.Types where import Database.PostgreSQL.Simple as PGS import Database.PostgreSQL.Simple.Types as PGS import UnliftIO (MonadIO) import UnliftIO.Concur...
null
https://raw.githubusercontent.com/saurabhnanda/odd-jobs/cc05b640528697ba37529ee617a031d1acd60c4b/src/OddJobs/Types.hs
haskell
# LANGUAGE RankNTypes # | An alias for 'QualifiedIdentifier' type. It is used for the job table name. you do not need to do anything special to create a value for this type. Just @ myJobsTable :: TableName myJobsTable = "my_jobs" @ This should also work for table names qualified by the schema name. For examp...
# LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE DeriveGeneric # module OddJobs.Types where import Database.PostgreSQL.Simple as PGS import Database.PostgreSQL.Simple.Types as PGS import UnliftIO (MonadIO) import UnliftIO.Concurrent (threadDelay) import Da...
4a48253497468e541befdee0cedfe3efc95e55435980a0ea0606a00aa1eb7e59
haskellari/postgresql-simple
Arrays.hs
# LANGUAGE PatternGuards # ------------------------------------------------------------------------------ -- | -- Module: Database.PostgreSQL.Simple.Arrays Copyright : ( c ) 2012 License : BSD3 Maintainer : < > -- Stability: experimental -- -- A Postgres array parser and pretty-printer. -...
null
https://raw.githubusercontent.com/haskellari/postgresql-simple/6cabb13959310f32a15285f8e41c2d053403d687/src/Database/PostgreSQL/Simple/Arrays.hs
haskell
---------------------------------------------------------------------------- | Module: Database.PostgreSQL.Simple.Arrays Stability: experimental A Postgres array parser and pretty-printer. ---------------------------------------------------------------------------- NB: Arrays seem to always be delimited by...
# LANGUAGE PatternGuards # Copyright : ( c ) 2012 License : BSD3 Maintainer : < > module Database.PostgreSQL.Simple.Arrays where import Control.Applicative (Applicative(..), Alternative(..), (<$>)) import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.C...
4b2f8908b3bcfa0399071e0e4008ecc419c5614c2d1d23714c25e0b697d9929f
ryszard/clsql
kmr-mop.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: kmr-mop.lisp Purpose : MOP support for multiple - implementions Programmer : Date Started : Apr 2003 ;;...
null
https://raw.githubusercontent.com/ryszard/clsql/9aafcb72bd7ca1d7e908938b6a5319753b3371d9/sql/kmr-mop.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: kmr-mop.lisp *************************************************************************
Purpose : MOP support for multiple - implementions Programmer : Date Started : Apr 2003 $ Id$ This file imports MOP symbols into the CLSQL - MOP package and then re - exports into CLSQL - SYS them to hide differences in MOP implementations . This file was extracted from the KMRCL utiliti...
a9a3855fe7bd832b4befb057d0be01c404a033284dad9b67048d444b0c72ddc3
helium/erlang-sss
erlang_sss_SUITE.erl
-module(erlang_sss_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ all/0, init_per_testcase/2, end_per_testcase/2 ]). -export([ normal_test/1, threshold_test/1, many_shares_test/1, not_enough...
null
https://raw.githubusercontent.com/helium/erlang-sss/8933df4300ac2bf793f32e614b51a8f1fbf1ad27/test/erlang_sss_SUITE.erl
erlang
simple unit test a basic threshold test a lot of shares should also work not enough shares to restore secret This should not recombine too many secret shares should also restore the secret
-module(erlang_sss_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ all/0, init_per_testcase/2, end_per_testcase/2 ]). -export([ normal_test/1, threshold_test/1, many_shares_test/1, not_enough...
63e83d0d92e66b640620132a70e43327aa997eef877eaf6d69bbf5adb29f01b6
smaccoun/beam-servant
TestEnvSetup.hs
{-# LANGUAGE OverloadedStrings #-} module TestEnvSetup where import App import AppPrelude import Init import Config.AppConfig import qualified Database.PostgreSQL.Simple as PGS import Network.Wai prepServer :: Config -> IO Application prepServer config' = do runAp...
null
https://raw.githubusercontent.com/smaccoun/beam-servant/1560f81c56ca7a324be1ee68208fb05c4dfea844/test/TestEnvSetup.hs
haskell
# LANGUAGE OverloadedStrings #
module TestEnvSetup where import App import AppPrelude import Init import Config.AppConfig import qualified Database.PostgreSQL.Simple as PGS import Network.Wai prepServer :: Config -> IO Application prepServer config' = do runAppMigrations config' return $ app ...
95a90f0de629fce956b56efae0bca635bdd3c117d02955ff93bda2058df9a1f0
KMahoney/squee
Schema.hs
module Database.Schema ( module Database.Schema.Structure , module Database.Schema.DBType , module Database.Schema.Introspection ) where import Database.Schema.Structure import Database.Schema.DBType import Database.Schema.Introspection
null
https://raw.githubusercontent.com/KMahoney/squee/b2ebad2ec6f3c866398600793d0a231edc8c23e4/src/Database/Schema.hs
haskell
module Database.Schema ( module Database.Schema.Structure , module Database.Schema.DBType , module Database.Schema.Introspection ) where import Database.Schema.Structure import Database.Schema.DBType import Database.Schema.Introspection
b11b20a4d0c9b636d55e26203c79612f2ec83d92ad33ee9b4ece18b64b3bc9f1
mpickering/apply-refact
Structure15.hs
foo = case v of z -> z
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Structure15.hs
haskell
foo = case v of z -> z
5c128571f3cc09bfc5ad4726d4db76c077d0afe0a7521bddfcf0d88ff08ee48c
ranjitjhala/haddock-annot
Parse.hs
----------------------------------------------------------------------------- -- | Module : Distribution . PackageDescription . Parse Copyright : 2003 - 2005 -- -- Maintainer : -- Portability : portable -- -- This defined parsers and partial pretty printers for the @.cabal@ format. -- Some of the...
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/Cabal-1.10.1.1/Distribution/PackageDescription/Parse.hs
haskell
--------------------------------------------------------------------------- | Maintainer : Portability : portable This defined parsers and partial pretty printers for the @.cabal@ format. Some of the complexity in this module is due to the fact that we have to be backwards compatible with old @.cabal@ files...
Module : Distribution . PackageDescription . Parse Copyright : 2003 - 2005 All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must ret...
c0836c4236ba71e6a1d52a3b85c54142eedceb21a2b4d7be4f463679c4409ff4
slagyr/gaeshi
project.clj
(let [config (load-file "../config.clj") dev-deps [['speclj (:speclj-version config)] ['gaeshi/gaeshi-dev (:version config)]]] (defproject gaeshi/gaeshi (:version config) :description "Runtime library for Gaeshi, a Clojure framework for Google App Engine apps." :license {:name "The MIT ...
null
https://raw.githubusercontent.com/slagyr/gaeshi/a5677ed1c8d9269d412f07a7ab33bbc40aa7011a/gaeshi/project.clj
clojure
(let [config (load-file "../config.clj") dev-deps [['speclj (:speclj-version config)] ['gaeshi/gaeshi-dev (:version config)]]] (defproject gaeshi/gaeshi (:version config) :description "Runtime library for Gaeshi, a Clojure framework for Google App Engine apps." :license {:name "The MIT ...
b4bf62fe66283835b5daeccadaeaad779623ae36cedb8af21ef90b07a32efd0b
nfrisby/coxswain
T18.hs
-- Some TypeNat simplifications. # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # {-# OPTIONS_GHC -fconstraint-solver-iterations=10 #-} import Coxswain import Data.Proxy (Proxy(..)) import GHC.Exts import GHC.TypeLits x :: Proxy p -> Proxy (NumCols p + 1) x...
null
https://raw.githubusercontent.com/nfrisby/coxswain/bfd5777964a5b4ba64e1bcc4cf18df1c9d8fc558/coxswain/test/well-typed/T18.hs
haskell
Some TypeNat simplifications. # OPTIONS_GHC -fconstraint-solver-iterations=10 #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE TypeOperators # import Coxswain import Data.Proxy (Proxy(..)) import GHC.Exts import GHC.TypeLits x :: Proxy p -> Proxy (NumCols p + 1) x _ = Proxy y :: Proxy p -> Proxy (3 + NumCols p - 2) y _ = Proxy main :: IO () main =...
65b847577ed3985f5c9770b0d61cfa6c4815b9d30b90312ea299d2face25f37e
roehst/tapl-implementations
syntax.ml
open Format open Support.Error open Support.Pervasive (* ---------------------------------------------------------------------- *) type ty = TyArr of ty * ty | TyBool type term = TmVar of info * int * int | TmAbs of info * string * ty * term | TmApp of info * term * term | TmTrue of info | TmFal...
null
https://raw.githubusercontent.com/roehst/tapl-implementations/23c0dc505a8c0b0a797201a7e4e3e5b939dd8fdb/simplebool/syntax.ml
ocaml
---------------------------------------------------------------------- ---------------------------------------------------------------------- Context management ---------------------------------------------------------------------- Shifting --------------------------------------------------------------------...
open Format open Support.Error open Support.Pervasive type ty = TyArr of ty * ty | TyBool type term = TmVar of info * int * int | TmAbs of info * string * ty * term | TmApp of info * term * term | TmTrue of info | TmFalse of info | TmIf of info * term * term * term type binding = NameBind...
0a2dacc809559a72e9adeda8ba8cafa035dbac91dd87fc77687bb038a5b06a5a
lpw25/ocaml-typed-effects
listLabels.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/stdlib/listLabels.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * List operations . Some function...
2171d97480a551f8e490d44e215cc22e57d1f7c91efc2d3aaa4425e01752b424
basho/riak_test
ts_simple_put_non_existent_bucket.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ts_simple_put_non_existent_bucket.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(ts_simple_put_non_exist...
c6b54335a99446726b3ec741d21ab454bb59db010040dc4592dd810069a7ff36
bdeket/rktsicm
zbrent.rkt
#lang racket/base (require rackunit "../../../numerics/roots/zbrent.rkt" "../../helper.rkt" ) (define the-tests (test-suite "numerics/roots/zbrent" (test-case "1" (define numval 0) (check-within (let ((v (zbrent (lambda (x) ...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/numerics/roots/zbrent.rkt
racket
#lang racket/base (require rackunit "../../../numerics/roots/zbrent.rkt" "../../helper.rkt" ) (define the-tests (test-suite "numerics/roots/zbrent" (test-case "1" (define numval 0) (check-within (let ((v (zbrent (lambda (x) ...
df00aed91b4c65f081adcec5749ba3b0c120c981e80e57acfbafd1d7643f9563
jeffshrager/biobike
load.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Ocelot/load.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and a...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
c061c07d738ef945e9eec7f3bb487b5a3a08414fec0c82e3def5f39c4df2ed71
kupl/FixML
sol.ml
exception Failure of string type ae = | CONST of int | VAR of string | POWER of string * int | TIMES of ae list | SUM of ae list let rec map : (ae * string -> ae) -> ae list * string -> ae list = fun f (l, x) -> match l with | [] -> [] | hd::tl -> (f (hd, x))::(map f (tl, x)) let rec diff : ae * string -> a...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff/sol.ml
ocaml
exception Failure of string type ae = | CONST of int | VAR of string | POWER of string * int | TIMES of ae list | SUM of ae list let rec map : (ae * string -> ae) -> ae list * string -> ae list = fun f (l, x) -> match l with | [] -> [] | hd::tl -> (f (hd, x))::(map f (tl, x)) let rec diff : ae * string -> a...
67ef6868052cba7030baa906aaa7b6e6930d713b7c6f55c3be5911d10ae62b0b
goldfirere/units
Mono.hs
{-# LANGUAGE TypeOperators, TypeFamilies #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Metrology.SI.Mono Copyright : ( C ) 2013 -- License : BSD-style (see LICENSE) Maintainer : ( ) -- Stability : experimental -- Portability : n...
null
https://raw.githubusercontent.com/goldfirere/units/4941c3b4325783ad3c5b6486231f395279d8511e/units-defs/Data/Metrology/SI/Mono.hs
haskell
# LANGUAGE TypeOperators, TypeFamilies # --------------------------------------------------------------------------- | Module : Data.Metrology.SI.Mono License : BSD-style (see LICENSE) Stability : experimental Portability : non-portable This module exports definitions for the SI system, with the i...
Copyright : ( C ) 2013 Maintainer : ( ) module Data.Metrology.SI.Mono ( module Data.Metrology.SI.MonoTypes, module Data.Units.SI, module Data.Units.SI.Prefixes, module Data.Units.SI.Parser ) where import Data.Metrology.SI.MonoTypes import Data.Units.SI import Data.Units.SI.Prefixes import...
ef46b032ad4744a5fe2812bdacbe8b9235b61e60d7940524ade63095f72f8d7c
zelark/AoC-2020
day_03.clj
(ns zelark.aoc-2020.day-03 (:require [clojure.java.io :as io] [clojure.string :as str])) --- Day 3 : Toboggan Trajectory --- ;; (def input (slurp (io/resource "input_03.txt"))) (defn tree? [row x] (= (nth row (mod x (count row))) \#)) (defn check-slope [input [right down]] (first (reduce (fn...
null
https://raw.githubusercontent.com/zelark/AoC-2020/5417c3514889eb02efc23f6be7d69e29fdfa0376/src/zelark/aoc_2020/day_03.clj
clojure
(ns zelark.aoc-2020.day-03 (:require [clojure.java.io :as io] [clojure.string :as str])) --- Day 3 : Toboggan Trajectory --- (def input (slurp (io/resource "input_03.txt"))) (defn tree? [row x] (= (nth row (mod x (count row))) \#)) (defn check-slope [input [right down]] (first (reduce (fn [[n...
60bb1ce27b9f52fba64dde7af2bd06b16f22a9fcb2357a472c6d51a4e383058c
tnelson/Forge
amalgam_tests.rkt
#lang forge/core (require "../../amalgam.rkt") (require "forge_ex.rkt") (require (prefix-in @ rackunit)) (require (prefix-in @ racket)) (require rackunit/text-ui) (run udt #:preds [isUndirectedTree] #:scope [(Node 7)]) (run-tests (@test-suite " Desugar helpers tests" (lambda () (display "Starting test...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/amalgam/tests/amalgam_tests.rkt
racket
Removed; function no longer exists union-product (@test-case (union-product (@set 1 2) (@set 1 2))
#lang forge/core (require "../../amalgam.rkt") (require "forge_ex.rkt") (require (prefix-in @ rackunit)) (require (prefix-in @ racket)) (require rackunit/text-ui) (run udt #:preds [isUndirectedTree] #:scope [(Node 7)]) (run-tests (@test-suite " Desugar helpers tests" (lambda () (display "Starting test...
f1d33eed3517cee85cbebe4e6ec40a7cfe7824915f72147cc593fec9408e18cf
skeuchel/needle
Check.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # module KnotSpec.Check (check) where import KnotSpec.CheckFuns import KnotSpec.CheckRelations import KnotSpec.CheckSets import KnotSpec.CheckSorts import Knot...
null
https://raw.githubusercontent.com/skeuchel/needle/25f46005d37571c1585805487a47950dcd588269/src/KnotSpec/Check.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # module KnotSpec.Check (check) where import KnotSpec.CheckFuns import KnotSpec.CheckRelations import KnotSpec.CheckSets import KnotSpec.CheckSorts import KnotSpec.Evaluation import ...
41cfc4356ff310f39d90d51dfeff21d785d4019f31d3e5ee9d215e68ce4204ce
roburio/udns
onotify.ml
( c ) 2019 , all rights reserved open Dns let notify zone serial key now = let raw_zone = Domain_name.raw zone in let question = Packet.Question.create raw_zone Soa and soa = { Soa.nameserver = raw_zone ; hostmaster = raw_zone ; serial ; refresh = 0l; retry = 0l ; expiry = 0l ; minimum = 0l } an...
null
https://raw.githubusercontent.com/roburio/udns/585c40933ac3d5eceb351f7edd3f45cf2615a9f8/app/onotify.ml
ocaml
( c ) 2019 , all rights reserved open Dns let notify zone serial key now = let raw_zone = Domain_name.raw zone in let question = Packet.Question.create raw_zone Soa and soa = { Soa.nameserver = raw_zone ; hostmaster = raw_zone ; serial ; refresh = 0l; retry = 0l ; expiry = 0l ; minimum = 0l } an...
1956cd4df478591307db0fdf1ca36489ebee49e497b8909631654b4276babf23
dxtr/clsql
database.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; ;;;; Base database functions ;;;; This file is part of CLSQL . ;;;; CLSQL users are granted the rights to distribute and use this software as governed by the terms ...
null
https://raw.githubusercontent.com/dxtr/clsql/8061aae1ecb878954115c7aacd90685a65bf4107/sql/database.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* Base database functions (), also known as the LLGPL. ************************************************************************* TODO: this variable appears to be global, not thread specific and...
This file is part of CLSQL . CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:clsql-sys) (defvar *default-encoding* (or #+sbcl sb-impl::*default-external-format* :utf-8)) (defvar *connect-if-exists* :erro...
6c296347883356ca42661f01ea9cc336d222eb7639ec820f2130276f1c9e3082
jjtolton/libapl-clj
apl.clj
(ns libapl-clj.apl (:refer-clojure :exclude [+ +' - -' = *' * max min < <= > >= not= concat reduce format take drop reductions reverse range identical? find]) (:require [libapl-clj.api :as api :reload true] [libapl-clj.impl.pointer :as p :reload tr...
null
https://raw.githubusercontent.com/jjtolton/libapl-clj/01e2bf7e0d20abd9f8f36c2d9fc829dd4082d455/src/libapl_clj/apl.clj
clojure
currently broken the APL idiom for (-> x count range) positions of left present in right indicies of vowels in phrase
(ns libapl-clj.apl (:refer-clojure :exclude [+ +' - -' = *' * max min < <= > >= not= concat reduce format take drop reductions reverse range identical? find]) (:require [libapl-clj.api :as api :reload true] [libapl-clj.impl.pointer :as p :reload tr...
a1cc8487a136fef1ea82aa7ea98d5ecfff69b53fb7f459fb473051815295716f
caribou/caribou-core
postgres.clj
(ns caribou.db.adapter.postgres (:use [caribou.db.adapter.protocol :only (DatabaseAdapter)]) (:require [caribou.logger :as log] [caribou.util :as util] [clojure.java.jdbc.deprecated :as old-sql])) (import java.util.regex.Matcher) (defn postgres-table? "Determine if this table exists in t...
null
https://raw.githubusercontent.com/caribou/caribou-core/6ebd9db4e14cddb1d6b4e152e771e016fa9c55f6/src/caribou/db/adapter/postgres.clj
clojure
(ns caribou.db.adapter.postgres (:use [caribou.db.adapter.protocol :only (DatabaseAdapter)]) (:require [caribou.logger :as log] [caribou.util :as util] [clojure.java.jdbc.deprecated :as old-sql])) (import java.util.regex.Matcher) (defn postgres-table? "Determine if this table exists in t...
52332066124f9485c59809ebbbd206158c184d30b2ca3f0bac510bf297dd359a
system-f/papa
Implement.hs
# LANGUAGE NoImplicitPrelude # module Papa.Base.Implement( module Papa.Base.Implement.Control.Applicative, module Papa.Base.Implement.Control.Monad, module Papa.Base.Implement.Data.Foldable, module Papa.Base.Implement.Data.Functor, module Papa.Base.Implement.Data.Function, module Papa.Base.Impl...
null
https://raw.githubusercontent.com/system-f/papa/5c4d71e08b905a882dd9a4a7d0c336411971c360/papa-base-implement/src/Papa/Base/Implement.hs
haskell
# LANGUAGE NoImplicitPrelude # module Papa.Base.Implement( module Papa.Base.Implement.Control.Applicative, module Papa.Base.Implement.Control.Monad, module Papa.Base.Implement.Data.Foldable, module Papa.Base.Implement.Data.Functor, module Papa.Base.Implement.Data.Function, module Papa.Base.Impl...
12e4585adc6b4b4f5a77697dcc2396ebe7fe61cfbbb08d3b27bb7284ed76e042
triffon/fp-2022-23
09-edge.rkt
#lang racket (provide edge?) (define (children vertex graph) (let ((lst (assoc vertex graph))) (if lst (cdr lst) '()))) (define (edge? u v graph) ;; member връща #f или самия елемент ако , с ( not ( not < element > ) ) в boolean (not (not (member v (children u graph)))))
null
https://raw.githubusercontent.com/triffon/fp-2022-23/c6f5ed7264fcd8988cf29f2d04fda64faa8c8562/exercises/inf2/08/09-edge.rkt
racket
member връща #f или самия елемент
#lang racket (provide edge?) (define (children vertex graph) (let ((lst (assoc vertex graph))) (if lst (cdr lst) '()))) (define (edge? u v graph) ако , с ( not ( not < element > ) ) в boolean (not (not (member v (children u graph)))))
0cd6c2ea0673ac97ee8059e7b0f974e880756a234e1e85c23b2926b5a598a3b6
inguardians/kismapping
File.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} module Kismapping.Output.File ( outputFiles , OutputPaths(..) ) where import Kismapping.Types import qualified Codec.Picture as Picture import qualified Data.Aeson as Aeson import qualified Data.ByteString.Lazy as ByteString.Lazy data OutputPaths = OutputPaths ...
null
https://raw.githubusercontent.com/inguardians/kismapping/98b8511cb60595db45f89746d4586bd9d3a60e6a/library/Kismapping/Output/File.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes #
module Kismapping.Output.File ( outputFiles , OutputPaths(..) ) where import Kismapping.Types import qualified Codec.Picture as Picture import qualified Data.Aeson as Aeson import qualified Data.ByteString.Lazy as ByteString.Lazy data OutputPaths = OutputPaths { outputPathCoords :: FilePath , outputPathImag...
aa3197cb3e3d1285862bfb6411f558a9e8520745a790189cd8c46e94453731b3
appleby/Lisp-In-Small-Pieces
chap3e.scm
$ I d : , v 4.0 1995/07/10 06:51:13 queinnec Exp $ ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is derived from the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge Uni...
null
https://raw.githubusercontent.com/appleby/Lisp-In-Small-Pieces/af4139232bb7170f32470774a92d647e83254721/src/chap3e.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is derived from the files that accompany the book: The original sources can be downloaded from the author's website at -systeme.lip6.fr/Christian.Queinnec/WWW/LiSP.html This file may have been altered from the original in order to...
$ I d : , v 4.0 1995/07/10 06:51:13 queinnec Exp $ LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge University Press ) . By Christian Queinnec < > Excerpts from chapter 3 ( not necessarily Scheme ) (define (fact n) (let ((r 1)) (let...
54d57462bcf796ae5ed02a7d95a8eccb8057548e9b611c8834a3d57447ea65f6
aumouvantsillage/Virgule-CPU-Racket
comparator.rkt
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 /. #lang racket (require "../assembler.rkt") (provide (all-defined-out)) (define test-cases (list (list (BEQ 1 2 3) 10 20 #f) (l...
null
https://raw.githubusercontent.com/aumouvantsillage/Virgule-CPU-Racket/db80407d8b38de9312f80ed71a7fbc6b4f71053b/src/tests/comparator.rkt
racket
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 /. #lang racket (require "../assembler.rkt") (provide (all-defined-out)) (define test-cases (list (list (BEQ 1 2 3) 10 20 #f) (l...
e5e1b23b83fea439311c901fe08e275bb975eeae2a7cb076911993fd7a57d3f0
jellelicht/guix
avahi.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 , 2016 < > ;;; ;;; 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 General Public License as published by the Free Software Foundation ; either version...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/services/avahi.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 © 2014 , 2015 , 2016 < > 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 (gnu services avahi) #:use-module (gnu services) #:use-module (gnu services base)...
aa5342b3329a5a2af805a1498492a68803a91ede9712cea9bacce41c3b0ab928
ocaml/ocaml-lsp
lev_tests_signals.ml
open Lev let flags = Loop.Flag.(Set.singleton Nosigmask) let%expect_test "signal handling" = let signal = Sys.sigusr1 in let loop = Loop.create ~flags () in let signal_watcher = Signal.create ~signal (fun t -> print_endline "received signal"; ignore (Unix.sigprocmask SIG_BLOCK [ signal ]); ...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/5f0ff439ed60a8c5e795f26afae2d808f69c11c3/submodules/lev/lev/test/lev_tests_signals.ml
ocaml
open Lev let flags = Loop.Flag.(Set.singleton Nosigmask) let%expect_test "signal handling" = let signal = Sys.sigusr1 in let loop = Loop.create ~flags () in let signal_watcher = Signal.create ~signal (fun t -> print_endline "received signal"; ignore (Unix.sigprocmask SIG_BLOCK [ signal ]); ...
303c8a91fa6c716e45c921da5f7498684ab9b7870b16ece88c0d1919344dcbdc
mpenet/jet
servlet.clj
(ns qbits.jet.servlet "Compatibility functions for turning a ring handler into a Java servlet." (:require [clojure.java.io :as io] [clojure.string :as string] [clojure.core.async :as async]) (:import (java.io File InputStream FileInputStream OutputStream) (javax.servlet AsyncCon...
null
https://raw.githubusercontent.com/mpenet/jet/c667b1ba24d8c21b38b06f92951742eaed1be5fe/src/clj/qbits/jet/servlet.clj
clojure
Some headers must be set through specific methods Expect timing out to be handled by application code
(ns qbits.jet.servlet "Compatibility functions for turning a ring handler into a Java servlet." (:require [clojure.java.io :as io] [clojure.string :as string] [clojure.core.async :as async]) (:import (java.io File InputStream FileInputStream OutputStream) (javax.servlet AsyncCon...
7842d61dd6188cee799f7c0ea3faa6ebd4a8f37d21fff056b66f93bf0d616ecb
ml4tp/tcoq
coqdep.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/tools/coqdep.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * DAGs guaranteed to be transitive r...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Printf open Coqdep_lexer...
4ae887e14f1f3185af74bc0a1791add7ff9e977f8bc29fddfef40b2978432072
AntidoteDB/antidote_aql
bcounter.erl
%%%------------------------------------------------------------------- @author , @doc Bounded counter CRDT specific module to calculate output and %%% input counter values. %%% @end %%%------------------------------------------------------------------- -module(bcounter). -include("parser.hrl"). -ifdef(T...
null
https://raw.githubusercontent.com/AntidoteDB/antidote_aql/e7ef4913d233c2fee8ebff582d91fe3e2e95786c/src/bcounter.erl
erlang
------------------------------------------------------------------- input counter values. @end ------------------------------------------------------------------- ==================================================================== ==================================================================== greater tha...
@author , @doc Bounded counter CRDT specific module to calculate output and -module(bcounter). -include("parser.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -export([to_bcounter/3, to_bcounter/4, from_bcounter/3, value/1]). to_bcounter(Value, Offset, Comp) -> apply_offset_v...
81a439aec5c91821f85d9f55fcdc716211b84a731622913e58a7d5f0e7234194
clojurewerkz/statistiker
regression.clj
(ns clojurewerkz.statistiker.regression (:import [org.apache.commons.math3.stat.regression SimpleRegression]) (:require [clojurewerkz.statistiker.optimization :as optim] [clojurewerkz.statistiker.functions :as funk])) (defn linear-regression "Performs a linear regression" ([data] (linear-re...
null
https://raw.githubusercontent.com/clojurewerkz/statistiker/f056f68c975cf3d6e0f1c8212aef9114d4eb657c/src/clj/clojurewerkz/statistiker/regression.clj
clojure
(ns clojurewerkz.statistiker.regression (:import [org.apache.commons.math3.stat.regression SimpleRegression]) (:require [clojurewerkz.statistiker.optimization :as optim] [clojurewerkz.statistiker.functions :as funk])) (defn linear-regression "Performs a linear regression" ([data] (linear-re...
7ed1de4b310d344ff879bf97009c3eb82f63bfb6a71f5166ebd059346fbb6c4c
schell/typograffiti
Cache.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # -- | -- Module: Typograffiti.Cache Copyright : ( c ) 2018 , 2023 License : MIT Maintainer : < > & < > -- -- This module provides a method of caching rendererd text, making it suitable for interact...
null
https://raw.githubusercontent.com/schell/typograffiti/31bdd77c39a5cbbc8d46953a7d422a22f78ea2a4/src/Typograffiti/Cache.hs
haskell
| Module: Typograffiti.Cache This module provides a method of caching rendererd text, making it suitable | Generic operations for text layout. | Holds an allocated draw function for some amount of text. The function This type is generic and can be used to take advantage of your own font rendering shaders. ...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # Copyright : ( c ) 2018 , 2023 License : MIT Maintainer : < > & < > for interactive rendering . You can use the defaultCache or provide your own . module Typograffiti.Cache where import Cont...
cb67f52aafee1cc7ca125be6346ac1b648d4b8f16966b4e8392973e7670fc065
jixiuf/helloerlang
test_proc_lib.erl
-module(test_proc_lib). -export([loop/1,init/0,start_link/0]). %% -sa/archive/2011/11/22/erlang0017.html %% proc_lib 用于启动一个进程的函数包括 %% spawn系列,和start系列,前者异步,后者同步 %%使用start系列 使用proc_lib会向启动的进程中添加一些内容 : 如,父进程 , 及此进程的mod funname , argument_count %% erlang:process_info(P2). %% {dictionary,[{'$ancestors',[<0.45.0>]}, ...
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/sys_proc_lib/src/test_proc_lib.erl
erlang
-sa/archive/2011/11/22/erlang0017.html proc_lib 用于启动一个进程的函数包括 spawn系列,和start系列,前者异步,后者同步 使用start系列 erlang:process_info(P2). {dictionary,[{'$ancestors',[<0.45.0>]}, {'$initial_call',{erl_eval,'-expr/5-fun-1-',0}}]}, 由proc_lib启动的进程收到 shutdown ,{shutdown,Msg} 式的exit信息,认为进程是正常退出,不会记录崩溃报告 还有一些函数——要结合模块 proc_lib 中的函数...
-module(test_proc_lib). -export([loop/1,init/0,start_link/0]). 使用proc_lib会向启动的进程中添加一些内容 : 如,父进程 , 及此进程的mod funname , argument_count 普通Erlang进程只有退出原因是normal的时候才会被认为是正常退出 . start_link()-> proc_lib:start_link(?MODULE,init,[]) . init()-> io:format("init...~n",[]) , 针对,proc_lib : start , proc_lib...
2631c4bd3b50b8d37779d7794658934551bb84e2181e72ed635d485aa2a736cd
th0ma5w/rosettamesh
anar.clj
(ns rosettamesh.anar (:gen-class :name rosettamesh.anar :methods [#^{:static true}[toAnar [Object] anar.Obj] #^{:static true}[fromAnar [anar.Obj] Object]]) (:use rosettamesh.util)) (import '(anar Pts Face Anar Obj)) (defn toAnar [faceList] (doto (Obj.) (.addAllFaces (java.util.Arra...
null
https://raw.githubusercontent.com/th0ma5w/rosettamesh/f5cfc0e00a6bf1882e22efea2c0f00beade8df64/src/rosettamesh/anar.clj
clojure
(ns rosettamesh.anar (:gen-class :name rosettamesh.anar :methods [#^{:static true}[toAnar [Object] anar.Obj] #^{:static true}[fromAnar [anar.Obj] Object]]) (:use rosettamesh.util)) (import '(anar Pts Face Anar Obj)) (defn toAnar [faceList] (doto (Obj.) (.addAllFaces (java.util.Arra...
3457342d8a7fea0d86fe65bf9a5a8fe1e91c4b0fdc6992e60834d16792d78668
kit-clj/modules
ws.clj
(ns <<ns-name>>.web.routes.ws (:require [reitit.ring.middleware.parameters :as parameters] [taoensso.sente :as sente] [taoensso.sente.server-adapters.undertow :refer [get-sch-adapter]] [integrant.core :as ig])) (defn client-id [ring-req] (get-in ring-req [:params :client-id])) (defmulti on-message ...
null
https://raw.githubusercontent.com/kit-clj/modules/7a950f71de41f7948390ece02353c09b75ac349c/sente/assets/ws.clj
clojure
:csrf-token-fn nil TODO - error handling
(ns <<ns-name>>.web.routes.ws (:require [reitit.ring.middleware.parameters :as parameters] [taoensso.sente :as sente] [taoensso.sente.server-adapters.undertow :refer [get-sch-adapter]] [integrant.core :as ig])) (defn client-id [ring-req] (get-in ring-req [:params :client-id])) (defmulti on-message ...
4b3f43fee482dc0d658c9480f4e33b432b7e5b5debe55eb60cd3077ae55b6120
rescript-lang/rescript-compiler
lam_compile_primitive.ml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2017 - , Authors of ReScript * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/cf177c6620c6575399fcbdc52d666e8a660324e2/jscomp/core/lam_compile_primitive.ml
ocaml
If it is the return value, since it is a side-effect call, we return unit, otherwise just return it already handled by {!Lam_compile} This makes sense when type info is not available at the definition site, and inline recovered it RUNTIME Invariant depends on runtime Ne...
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2017 - , Authors of ReScript * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the...
7d3aafb41b13d91e96946f0afe1b0ba835491a0a95c505f65f457eae6c2c6ef4
hexlet-basics/exercises-clojure
index.clj
;BEGIN (println (- (+ 1 10) (* 2 7))) ;END
null
https://raw.githubusercontent.com/hexlet-basics/exercises-clojure/b34ba1eb9d9d60c4fdeade1f48754ea1919fccff/modules/10-basics/15-prefix-notation/index.clj
clojure
BEGIN END
(println (- (+ 1 10) (* 2 7)))
73b7ff0b0411042d12212cf6cdf0dce0500ec1bca1de9b6cbe48a59836dc0fb1
snewman/lein-gentags
gentags.clj
(ns leiningen.gentags (:require [clojure.java.shell :as shell]) (:require [clojure.java.io :as io])) (defn -clj-files [dir] (map #(.getAbsolutePath %) (filter #(.endsWith (.getName %) ".clj") (file-seq (io/file dir))))) (defn -update-tagfile [file] (let [{out :out err :err exit :exit} (shell/sh "etags" "...
null
https://raw.githubusercontent.com/snewman/lein-gentags/8514012ac0b5eab8bc8befce15ee0db3680d7a8f/src/leiningen/gentags.clj
clojure
Blow the existing TAGS file away...
(ns leiningen.gentags (:require [clojure.java.shell :as shell]) (:require [clojure.java.io :as io])) (defn -clj-files [dir] (map #(.getAbsolutePath %) (filter #(.endsWith (.getName %) ".clj") (file-seq (io/file dir))))) (defn -update-tagfile [file] (let [{out :out err :err exit :exit} (shell/sh "etags" "...
ad126080b326c962ee1e47e8b992f67ec735681994f5da2704a69bbec1849e14
clojerl/clojerl
clojerl.Float.erl
-module('clojerl.Float'). -behavior('clojerl.IHash'). -behavior('clojerl.IStringable'). -export([hash/1]). -export([str/1]). -export_type([type/0]). -type type() :: float(). %% clojerl.IStringable str(Float) when is_float(Float) -> list_to_binary(io_lib:format("~w", [Float])). clojerl . IHash hash(Float) whe...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/clojerl.Float.erl
erlang
clojerl.IStringable
-module('clojerl.Float'). -behavior('clojerl.IHash'). -behavior('clojerl.IStringable'). -export([hash/1]). -export([str/1]). -export_type([type/0]). -type type() :: float(). str(Float) when is_float(Float) -> list_to_binary(io_lib:format("~w", [Float])). clojerl . IHash hash(Float) when is_float(Float) -> ...
ba2e0f32b771faa5cefab6290c0bd78a38363fcbb07b4e885e6eb28877cda68f
solidsnack/system-uuid
Macros.hs
{-| Macros of general use. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} {-# LANGUAGE TemplateHaskell #-} module Macros where import MacroMacros import Language.Haskell.TH import Language.Haskell.TH.Syntax import Data.List import Control.Applicative {-| Just a macro to pull ...
null
https://raw.githubusercontent.com/solidsnack/system-uuid/572f44a50d4fdd81a103f05df48a7e2cb75a17f3/Macros.hs
haskell
| Macros of general use. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # LANGUAGE TemplateHaskell # | Just a macro to pull in a file. | Extract the usage from the module we're in and put it here. | Pulls the usage out of the comments in a file, digging through the file to find ...
module Macros where import MacroMacros import Language.Haskell.TH import Language.Haskell.TH.Syntax import Data.List import Control.Applicative pullFile f = lift =<< runIO (readFile f) | Extract the version from the Cabal file and place it here as string . -} version ...
081f5adcd264f51385affba777d6dcd9a36889a7a8084b0c0277ab249abf3450
umber-lang/umber
gen_dune.ml
open Core let make_rule dir name : Sexp.t = [%sexp "rule" , ("alias", "runtest") , ("deps", "test.dummy") , ( "action" , ( "no-infer" , ("diff", (dir ^/ name ^ ".expected" : string), (dir ^/ name ^ ".out" : string)) ) )] ;; let handle_dir dir bare_filename = make_rule dir bar...
null
https://raw.githubusercontent.com/umber-lang/umber/b4bb5ead4135ae8acea11d52d6bcc8cb00730989/test/gen_dune.ml
ocaml
open Core let make_rule dir name : Sexp.t = [%sexp "rule" , ("alias", "runtest") , ("deps", "test.dummy") , ( "action" , ( "no-infer" , ("diff", (dir ^/ name ^ ".expected" : string), (dir ^/ name ^ ".out" : string)) ) )] ;; let handle_dir dir bare_filename = make_rule dir bar...
5ed60642c7105f50051059cc3a16e2663cd7b6c83d8e53319816fce4d3f0a8ed
haskell-numerics/hmatrix
random.hs
import System.Random.MWC import qualified System.Random.MWC.Distributions as D import Numeric.LinearAlgebra import Numeric.LinearAlgebra.Devel rvec :: Vector Double rvec = runSTVector $ do v <- newUndefinedVector 10 g <- initialize (fromList [4, 8, 15, 16, 23, 42]) mapM_ (\k -> writeVector v k =<< D.stan...
null
https://raw.githubusercontent.com/haskell-numerics/hmatrix/2694f776c7b5034d239acb5d984c489417739225/examples/random.hs
haskell
import System.Random.MWC import qualified System.Random.MWC.Distributions as D import Numeric.LinearAlgebra import Numeric.LinearAlgebra.Devel rvec :: Vector Double rvec = runSTVector $ do v <- newUndefinedVector 10 g <- initialize (fromList [4, 8, 15, 16, 23, 42]) mapM_ (\k -> writeVector v k =<< D.stan...
4d3390136cd3e475350be841a2f490f8c27ebaefeb69e912a1f40c052dc4b110
YPares/Haskell-OpenGL3.1-Tutos
main.hs
import qualified Graphics.UI.GLFW as W import Graphics.Rendering.OpenGL.Raw import Control.Monad import Control.Applicative main = do W.initialize success <- W.openWindow $ W.defaultDisplayOptions { W.displayOptions_numFsaaSamples = Just 4 } if not success then close "GLFW couldn't open a window." else ...
null
https://raw.githubusercontent.com/YPares/Haskell-OpenGL3.1-Tutos/7a027b927d061fbd26138cb7357c40c4cacbc927/tutorial01/main.hs
haskell
import qualified Graphics.UI.GLFW as W import Graphics.Rendering.OpenGL.Raw import Control.Monad import Control.Applicative main = do W.initialize success <- W.openWindow $ W.defaultDisplayOptions { W.displayOptions_numFsaaSamples = Just 4 } if not success then close "GLFW couldn't open a window." else ...
c1d45fa1137298e711d7cab6e96704d6c9125f6101f7e14fb53722c897fc9af1
hercules-ci/hercules-ci-agent
FullClusterJoinToken.hs
{-# LANGUAGE DeriveAnyClass #-} module Hercules.API.Agents.FullClusterJoinToken where import Hercules.API.Agents.ClusterJoinToken ( ClusterJoinToken, ) import Hercules.API.Prelude data FullClusterJoinToken = FullClusterJoinToken { metadata :: ClusterJoinToken, token :: Text } deriving (Generic, Show, E...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/216a1d178d57471b05f60bf3e21ce46d3fdc5f94/hercules-ci-api/src/Hercules/API/Agents/FullClusterJoinToken.hs
haskell
# LANGUAGE DeriveAnyClass #
module Hercules.API.Agents.FullClusterJoinToken where import Hercules.API.Agents.ClusterJoinToken ( ClusterJoinToken, ) import Hercules.API.Prelude data FullClusterJoinToken = FullClusterJoinToken { metadata :: ClusterJoinToken, token :: Text } deriving (Generic, Show, Eq, NFData, ToJSON, FromJSON, ToS...
931d55c800750c6ebfe7d864ed11daf0c124560f1f8a08222edae64f19bd7a2e
deadpendency/deadpendency
QueueEventPublishGooglePubSubC.hs
# LANGUAGE DataKinds # module Common.Effect.QueueEventPublish.Carrier.QueueEventPublishGooglePubSubC ( QueueEventPublishGooglePubSubIOC (..), ) where import Common.Effect.AppEventEmit.AppEventEmit import Common.Effect.AppEventEmit.Model.AppEventAdditional import Common.Effect.AppEventEmit.Model.AppEventMessage im...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/Effect/QueueEventPublish/Carrier/QueueEventPublishGooglePubSubC.hs
haskell
# LANGUAGE DataKinds # module Common.Effect.QueueEventPublish.Carrier.QueueEventPublishGooglePubSubC ( QueueEventPublishGooglePubSubIOC (..), ) where import Common.Effect.AppEventEmit.AppEventEmit import Common.Effect.AppEventEmit.Model.AppEventAdditional import Common.Effect.AppEventEmit.Model.AppEventMessage im...
f9c18a772e55702fab11ececf6f0d94ef7cbdee4c08989e4646af709b3a3db53
asivitz/Hickory
Bezier.hs
module Hickory.Math.Bezier where import Linear ((^*)) |Define a cubic bezier curve with a start , an end , and two interior control points t runs from 0 ( at the start ) to 1 ( at the end ) cubic :: (Functor f, Num a, Num (f a)) => f a -> f a -> f a -> f a -> a -> f a cubic sta...
null
https://raw.githubusercontent.com/asivitz/Hickory/37631bca4036a47c08dc66cfe4e7a4656ec98433/core/Hickory/Math/Bezier.hs
haskell
|This is the derivative of the 'cubic' function |This is the integral of the 'cubic' function
module Hickory.Math.Bezier where import Linear ((^*)) |Define a cubic bezier curve with a start , an end , and two interior control points t runs from 0 ( at the start ) to 1 ( at the end ) cubic :: (Functor f, Num a, Num (f a)) => f a -> f a -> f a -> f a -> a -> f a cubic sta...
7fd768d97dc1eed85f52deebeabaec23a8291f691dfe45f187e0e253d66e9f65
aniketpant/fraskell
fst-snd.hs
Use a combination of fst and snd to extract the character out of the tuple ( ( 1,'a'),"foo " ) . Use a combination of fst and snd to extract the character out of the tuple ((1,'a'),"foo"). -} module Main where main = do let input = ((1, 'a'),"foo") let output = snd(fst input) print output
null
https://raw.githubusercontent.com/aniketpant/fraskell/e1c0f9a11bada28907980f08eff86106d67bf4f5/basics/fst-snd.hs
haskell
Use a combination of fst and snd to extract the character out of the tuple ( ( 1,'a'),"foo " ) . Use a combination of fst and snd to extract the character out of the tuple ((1,'a'),"foo"). -} module Main where main = do let input = ((1, 'a'),"foo") let output = snd(fst input) print output
519bfdb73398e1faf5751f9bec1cbedaa5c4671280272cdbefca68a9ccaba32b
RDTK/generator
mixins.lisp
;;;; mixins.lisp --- Mixin classes for aspect classes. ;;;; Copyright ( C ) 2012 - 2017 , 2019 Jan Moringen ;;;; Author : < > (cl:in-package #:build-generator.model.aspects) (define-constant +all-marker+ "<all>" :test #'string=) (defun+ parse-constraint ((&whole raw kind subject)) (let+ (((&flet parse-kin...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/model/aspects/mixins.lisp
lisp
mixins.lisp --- Mixin classes for aspect classes. `aspect-builder-defining-mixin' `aspect-publisher-defining-mixin'
Copyright ( C ) 2012 - 2017 , 2019 Jan Moringen Author : < > (cl:in-package #:build-generator.model.aspects) (define-constant +all-marker+ "<all>" :test #'string=) (defun+ parse-constraint ((&whole raw kind subject)) (let+ (((&flet parse-kind () (make-keyword (string-upcase kind)))) (...
d3de03ff6c7906ddd5b415e006c23639f1773138bad0164994cac81c1f49163f
chrislomaxjones/part-ii-project
tests.ml
open OUnit open Core.List open Types open Ballot (* Tests for ballot equality *) let ballot_equality_test test_ctx = let b = Ballot.Bottom and b' = Ballot.Bottom in assert_bool "Foo" (equal b b') (* Test if a number and a bottom are equal *) let ballot_equality_test2 test_ctx = assert_bool "Foo" (equal (Ballot....
null
https://raw.githubusercontent.com/chrislomaxjones/part-ii-project/fb638a6d9759717a610ff8cf2fe985b94f003648/src/tests.ml
ocaml
Tests for ballot equality Test if a number and a bottom are equal Bottom, bottom Bottom, number and id Same number, same id Different number, same id same id, different number Different number, different id Negative ids Check that bottom is less than everything Check the lexicograph...
open OUnit open Core.List open Types open Ballot let ballot_equality_test test_ctx = let b = Ballot.Bottom and b' = Ballot.Bottom in assert_bool "Foo" (equal b b') let ballot_equality_test2 test_ctx = assert_bool "Foo" (equal (Ballot.Bottom) (Ballot.Number(0,create_id ()))) let ballot_equality_tests = [ "....
0d78e45b5622bd1fb879f886b780e2fdd6a023288479fcdf5cd1ad907057d604
yesodweb/persistent
Models.hs
module Models where import Data.Monoid import Language.Haskell.TH import qualified Data.Text as Text import Database.Persist.Quasi import Database.Persist.Quasi.Internal import Database.Persist.TH import Database.Persist.Sql TODO : we use lookupName and reify etc which breaks in IO . somehow need to -- test this o...
null
https://raw.githubusercontent.com/yesodweb/persistent/e8387ebee0c8356bfcfca3d9215bf5742819f5fa/persistent/bench/Models.hs
haskell
test this out elsewise
module Models where import Data.Monoid import Language.Haskell.TH import qualified Data.Text as Text import Database.Persist.Quasi import Database.Persist.Quasi.Internal import Database.Persist.TH import Database.Persist.Sql TODO : we use lookupName and reify etc which breaks in IO . somehow need to mkPersist' :: ...
7dcd21a9cc427ea06781b22706361a34ce7d2509a723240743e2e5eae1e881fb
ekasilicon/jade
concrete.rkt
#lang racket/base (require (only-in racket/match match match-lambda match-let failure-cont) racket/set "static/sumtype.rkt" "static/object.rkt" "error.rkt" "monad.rkt" "instruction/version.rkt" "assembly/control.rkt" "vm.rkt" "abstraction....
null
https://raw.githubusercontent.com/ekasilicon/jade/1f281919da30bb13fa985479898c342701e593e6/src/concrete.rkt
racket
(log "Scratch space slot ~a uninitialized. The Go VM implementation produces 0." i) logic/eval.go
#lang racket/base (require (only-in racket/match match match-lambda match-let failure-cont) racket/set "static/sumtype.rkt" "static/object.rkt" "error.rkt" "monad.rkt" "instruction/version.rkt" "assembly/control.rkt" "vm.rkt" "abstraction....
2d99d1e8db437f7df81315ef50e4e8919a0885faa02d7e2c65b974b2c0a9d9fd
robashton/cravendb
testing.clj
(ns cravendb.testing (:require [me.raynes.fs :as fs] [org.httpkit.server :refer [run-server]] [cravendb.documents :as docs] [cravendb.indexengine :as indexengine] [cravendb.storage :as s] [cravendb.http :as http] [cravendb.database :as db] ...
null
https://raw.githubusercontent.com/robashton/cravendb/461e80c7c028478adb4287922db6ee4d2593a880/src/cravendb/testing.clj
clojure
(ns cravendb.testing (:require [me.raynes.fs :as fs] [org.httpkit.server :refer [run-server]] [cravendb.documents :as docs] [cravendb.indexengine :as indexengine] [cravendb.storage :as s] [cravendb.http :as http] [cravendb.database :as db] ...
c12c01fc83db81394ade63889064157f4001ddf044fe6412ae79b0b4d9155ac5
ocaml-community/obus
uPower.mli
* uPower.mli * ---------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * uPower.mli * ---------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml implementatio...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/bindings/upower/uPower.mli
ocaml
* UPower main interface * [daemon ()] returns the peer object for the upower daemon * {6 Methods}
* uPower.mli * ---------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * uPower.mli * ---------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml implementatio...
007d60c8601793fe768f99fa6ff545f2136d15bf172e1d21f2f71b43cf14ee5f
tonyg/rmacs
strings.rkt
#lang racket/base ;; String utilities :-( (provide string-prefix?) (define (string-prefix? a b [string=? string=?]) (define a-len (string-length a)) (and (>= (string-length b) a-len) (string=? (substring b 0 a-len) a))) (module+ test (require rackunit) (check-true (string-prefix? "aaa" "aaaa")) (che...
null
https://raw.githubusercontent.com/tonyg/rmacs/8c99dd5dfa22f1f34707bbe957de268dc6a7a632/rmacs/strings.rkt
racket
String utilities :-(
#lang racket/base (provide string-prefix?) (define (string-prefix? a b [string=? string=?]) (define a-len (string-length a)) (and (>= (string-length b) a-len) (string=? (substring b 0 a-len) a))) (module+ test (require rackunit) (check-true (string-prefix? "aaa" "aaaa")) (check-false (string-prefix?...
e2251ac8a93d5a659acc39bcb6764ef1f4f4900f2129a82b1af1b85946dab1fd
tamarit/pn_suite
mochijson.erl
@author < > @copyright 2006 Mochi Media , Inc. %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation %% the rights to use, copy, modif...
null
https://raw.githubusercontent.com/tamarit/pn_suite/d497add0d2e60f0bdcc5d2ffb1aedec166be3542/src/mochijson.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright noti...
@author < > @copyright 2006 Mochi Media , Inc. to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF AN...
8c803424f868de6418b4d2f5e7ecb3629f14ee69b704c43264cfcf386b5c2079
janestreet/bonsai
single_factor_intf.ml
open! Core open! Import open Bonsai_web module type Item = sig type t [@@deriving equal, sexp] include Comparable.S with type t := t val to_string : t -> string end module type S = sig module Item : Item (** A widget for selecting multiple items from a list. A fairly rich interface is provided, in...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/web_ui/multi_select/src/single_factor_intf.ml
ocaml
* A widget for selecting multiple items from a list. A fairly rich interface is provided, including: - Using the arrow keys and Enter to select / deselect items; - The ability to filter the set of items displayed by searching; - "Select all" and "Select none" buttons * The header will be disp...
open! Core open! Import open Bonsai_web module type Item = sig type t [@@deriving equal, sexp] include Comparable.S with type t := t val to_string : t -> string end module type S = sig module Item : Item module View_config : sig type t = { header : Vdom.Node.t ; autofocus_...
c1745c48615dbf2d2194b3192b123ca00a96862341f1503eda61238c04b6f693
OCamlPro/drom
main.ml
!{header-ml} let () = !{project-name:alpha:cap}.Main.main ()
null
https://raw.githubusercontent.com/OCamlPro/drom/7bc86026e0e170f1a468b437d369aefc5dbea5d7/src/drom_lib/share/drom/skeletons/packages/rust_binding_test/main.ml
ocaml
!{header-ml} let () = !{project-name:alpha:cap}.Main.main ()
635c02aa4884a57046c603ae637b80f765864dff55c726bef894cf4536ccf38b
franks42/clj-ns-browser
core.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file COPYING at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the terms ...
null
https://raw.githubusercontent.com/franks42/clj-ns-browser/c5fc570f9c8aeb6dd1cc9383fcf32bdaa9b936e3/src/clj_ns_browser/core.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file COPYING at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. [...
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns clj-ns-browser.core (:use [clj-ns-browser.sdoc] [seesaw.core] [seesaw.dev] [clj-info] [clj-ns-browser.browser])) (defn -main [& args] (get-clj-ns-browser))
2935451587af6470e2cbf597fb8ec7700db9671c72e75539e7dfdb04e7362bc6
mashion/chloe
chloe_jsonp_stream.erl
-module(chloe_jsonp_stream). -behaviour(gen_server). -include_lib("./chloe.hrl"). %% API -export([ start_link/2, send/3 ]). %% gen_server callbacks -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {socket, message, yaws_pid...
null
https://raw.githubusercontent.com/mashion/chloe/38f5f2e0bbf1af697b2f1cd18c6d89501edebb5f/apps/chloe/src/chloe_jsonp_stream.erl
erlang
API gen_server callbacks -------------------------------------------------------------------- API functions -------------------------------------------------------------------- -------------------------------------------------------------------- gen_server callbacks -------------------------------------------------...
-module(chloe_jsonp_stream). -behaviour(gen_server). -include_lib("./chloe.hrl"). -export([ start_link/2, send/3 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {socket, message, yaws_pid}). start_link(Socket, Messag...
f4c70cbec16f92d78176dec489306bee2cf86fcf0495e3cec9a1d376db3934be
TristeFigure/derrida
doo_tests.cljs
(ns derrida.doo-test (:require [cljs.test :as test] [doo.runner :refer-macros [doo-tests]] [derrida.core-test])) (enable-console-print!) (doo-tests 'derrida.core-test)
null
https://raw.githubusercontent.com/TristeFigure/derrida/3a1b979a28905d525a366da2ec06e5e571995afe/test/derrida/doo_tests.cljs
clojure
(ns derrida.doo-test (:require [cljs.test :as test] [doo.runner :refer-macros [doo-tests]] [derrida.core-test])) (enable-console-print!) (doo-tests 'derrida.core-test)
4c930778d46c51bba0e4d9acec86c5020d37ad292b3358e242cd73a2a8ecd08a
dreyk/etsdb
etsdb_bucket.erl
%% ------------------------------------------------------------------- %% %% etsdb_bucket %% Copyright ( c ) Dreyk . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain...
null
https://raw.githubusercontent.com/dreyk/etsdb/f0bca0cb09ff4b692b8370749a995922545e6f4e/src/etsdb_bucket.erl
erlang
------------------------------------------------------------------- etsdb_bucket Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language gove...
Copyright ( c ) Dreyk . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(etsdb_bucket). -author...
16274df1021ad6190697b215846c31c447371990ddda0709b2296351efae5ec1
incoherentsoftware/defect-process
MovementSkill.hs
module Player.MovementSkill ( module Player.MovementSkill.Types , module Player.MovementSkill.Status , mkMovementSkill , movementSkillActive , cancelMovementSkill , movementSkillCancelable , movementSkillWalkCancelable , updateMovementSkill ) where import Control.Monad.State (execSt...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Player/MovementSkill.hs
haskell
# SOURCE #
module Player.MovementSkill ( module Player.MovementSkill.Types , module Player.MovementSkill.Status , mkMovementSkill , movementSkillActive , cancelMovementSkill , movementSkillCancelable , movementSkillWalkCancelable , updateMovementSkill ) where import Control.Monad.State (execSt...
b28186736f8ddbc194a65e3078b5991f9f7f23ac54aa8692fc5886aeac5c6ead
jeffshrager/biobike
cyanobacteria-data.lisp
;;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: bbi; -*- (IN-PACKAGE :bbi) (defmethod vpl-data-menu-variables ((instance cl-user:biolingua) (organism-descriptor (eql :cyanobacteria))) (append *common-vpl-data-menu-variables* ;; put any variables specific to cyanobacteria in a quot...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/bike/cyanobacteria-data.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: bbi; -*- put any variables specific to cyanobacteria in a quoted list here Terrestrial-and-limnetic-cyanobacteria Unicellular-cyanobacteria *marine-unicellular-cyanobacteria* *marine-Prochlorococcus* *marine-Synechococcus* *terrestrial-and-limnetic-unic...
(IN-PACKAGE :bbi) (defmethod vpl-data-menu-variables ((instance cl-user:biolingua) (organism-descriptor (eql :cyanobacteria))) (append *common-vpl-data-menu-variables* nil )) (defmethod organism-subset-variables ((descriptor (eql :cyanobacteria))) (copy-list '( *all-cya...