_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
c4c9c6207e2e7327064a6695cd7d815eb4f4c4f6137f486daf945371a3ea75b2
tty/async_search
facet_sup.erl
%%%------------------------------------------------------------------- @author < > Copyright ( c ) 2011 %%% 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 restric...
null
https://raw.githubusercontent.com/tty/async_search/deaf29fc504c6d24acd5a11577628c54c4615558/src/facet_sup.erl
erlang
------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyrigh...
@author < > Copyright ( c ) 2011 " 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 to included in all copies or substantial portions of...
6a1391135adff250cd0545228e0f2b0872db469c7c3303680aa00d735d4b1061
cemerick/austin
repls.clj
(ns cemerick.austin.repls (:require [cemerick.austin :refer (exec-env)] [clojure.tools.nrepl.middleware.interruptible-eval :as nrepl-eval] [cemerick.piggieback :as pb] cljs.repl)) (def browser-repl-env "An atom into which you can `reset!` the Austin REPL environment to which you...
null
https://raw.githubusercontent.com/cemerick/austin/424bca352286bed3f3324177651ca2b914851407/src/clj/cemerick/austin/repls.clj
clojure
... etc ...
(ns cemerick.austin.repls (:require [cemerick.austin :refer (exec-env)] [clojure.tools.nrepl.middleware.interruptible-eval :as nrepl-eval] [cemerick.piggieback :as pb] cljs.repl)) (def browser-repl-env "An atom into which you can `reset!` the Austin REPL environment to which you...
396cf7110b0a3ff1cd2e1fee22aa2b3b95bf94cf0753571a67bf35aea87ee0ed
gpetiot/Frama-C-StaDy
infer.mli
Computes and returns a hashtable such that : - var1 = > inferred size for var1 - var2 = > inferred size for var2 - ... - var n = > inferred size for varn - var1 => inferred size for var1 - var2 => inferred size for var2 - ... - var n => inferred size for varn *) val lengths_from_requir...
null
https://raw.githubusercontent.com/gpetiot/Frama-C-StaDy/48d8677c0c145d730d7f94e37b7b3e3a80fd1a27/infer.mli
ocaml
Computes and returns a hashtable such that : - var1 = > inferred size for var1 - var2 = > inferred size for var2 - ... - var n = > inferred size for varn - var1 => inferred size for var1 - var2 => inferred size for var2 - ... - var n => inferred size for varn *) val lengths_from_requir...
c224ee18f666346f91a15d2735a9591c1314b67cd905d2db9a34f6b525801e9a
dgiot/dgiot
dgiot_meter.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the...
null
https://raw.githubusercontent.com/dgiot/dgiot/e25a9682fb10c1e686b0a81ea9a2db330ce5143d/apps/dgiot_meter/src/dgiot_meter.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_meter). -include("dgiot_meter.hrl"). -include_lib("dgiot/include/logger.hrl"). -export(...
08b8e2693a8daa0f15d2f73d36bf6e8e8bf1d3673dec15f0ad1676eae10659e5
eutro/mc-clojure-lib
fabric_core.clj
(in-ns 'eutros.clojurelib.lib.core) (import net.fabricmc.loader.api.FabricLoader net.fabricmc.loader.api.MappingResolver net.fabricmc.api.EnvType java.util.regex.Matcher java.util.regex.Pattern) (def IS_FORGE false) (def IS_FABRIC true) (def IS_CLIENT (identical? (.getEnvironmentType (...
null
https://raw.githubusercontent.com/eutro/mc-clojure-lib/2e0e8b018ca474a63d46f92c34085d0f095bf5c0/src/main/resources/eutros/clojurelib/fabric/fabric_core.clj
clojure
(in-ns 'eutros.clojurelib.lib.core) (import net.fabricmc.loader.api.FabricLoader net.fabricmc.loader.api.MappingResolver net.fabricmc.api.EnvType java.util.regex.Matcher java.util.regex.Pattern) (def IS_FORGE false) (def IS_FABRIC true) (def IS_CLIENT (identical? (.getEnvironmentType (...
88ef33f2b6592ef206efb1872ab9e2b36635a883ae91252da3968e6d1fe9d214
racket/slideshow
aspect.rkt
#lang racket/base (provide aspect?) (define (aspect? v) (or (not v) (eq? v 'widescreen) (eq? v 'fullscreen)))
null
https://raw.githubusercontent.com/racket/slideshow/4588507e83e9aa859c6841e655b98417d46987e6/slideshow-lib/slideshow/private/aspect.rkt
racket
#lang racket/base (provide aspect?) (define (aspect? v) (or (not v) (eq? v 'widescreen) (eq? v 'fullscreen)))
b244ee04961a2ff71aea89917df9333673b3a1a8b9ed06791858afb67271a13e
DKurilo/hackerrank
solution.hs
# LANGUAGE UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import Debug.Trace import System.IO data Fate = CENTRAL | RIGHT | LEFT | DEAD deriving (Show) combine ∷ [Int] → Int combine = foldl (\n d → n * 10 +...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/captain-prime/solution.hs
haskell
# LANGUAGE UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import Debug.Trace import System.IO data Fate = CENTRAL | RIGHT | LEFT | DEAD deriving (Show) combine ∷ [Int] → Int combine = foldl (\n d → n * 10 +...
baca66d7567636f932b97f267c3cc90fd962ae8e1b8d281c5d9ec330fec2ba03
borodust/notalone
main.lisp
(cl:in-package :notalone) (define-sound orbital-colossus "sounds/Orbital_Colossus.ogg") (register-resource-package :notalone (asdf:system-relative-pathname :notalone "assets/")) (defgame notalone () ((world :initform (make-instance 'world)) (game-state)) (:viewport-width *viewport-width*) (:viewport-heig...
null
https://raw.githubusercontent.com/borodust/notalone/f914ec7b63618f917a976f49ff9fcd57b72a1b1d/main.lisp
lisp
(cl:in-package :notalone) (define-sound orbital-colossus "sounds/Orbital_Colossus.ogg") (register-resource-package :notalone (asdf:system-relative-pathname :notalone "assets/")) (defgame notalone () ((world :initform (make-instance 'world)) (game-state)) (:viewport-width *viewport-width*) (:viewport-heig...
d4a4d1ea3f264b4b76a76e52da099506b851b062d660c7db21cecc813c289fbb
tmfg/mmtis-national-access-point
email.clj
(ns ote.email "Email sending utilities." (:require [clojure.set :as set] [postal.core :as postal] [ote.nap.cookie :as nap-cookie] [ote.nap.users :as nap-users] [taoensso.timbre :as log] [ote.localization :as localization] [com.stuartsierra.comp...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/d05e7d1b06a9078964b9fe58d546e87ca6078cfc/ote/src/clj/ote/email.clj
clojure
(ns ote.email "Email sending utilities." (:require [clojure.set :as set] [postal.core :as postal] [ote.nap.cookie :as nap-cookie] [ote.nap.users :as nap-users] [taoensso.timbre :as log] [ote.localization :as localization] [com.stuartsierra.comp...
b95fa0ac798c96955b67683e4fd7a3da36b6c9e84cfcd4d7b412e878ea4509a4
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("profile-lib" "profile-doc"))) (define implies (quote ("profile-lib" "profile-doc"))) (define pkg-desc "Libraries for statistical performance profiling") (define pkg-authors (quote (eli))) (define license (quote (Apache-2....
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/profile/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("profile-lib" "profile-doc"))) (define implies (quote ("profile-lib" "profile-doc"))) (define pkg-desc "Libraries for statistical performance profiling") (define pkg-authors (quote (eli))) (define license (quote (Apache-2....
cccab269347ab14fc6d68e64c99dbb8c0fff7c8ad4214ed50a8bd5091e4cab0e
mransan/ocaml-protoc
test18_ml.ml
module T = Test18_types module Pb = Test18_pb module Pp = Test18_pp let decode_ref_data () = T. { string_to_string = [ "one", "two"; "three", "four" ]; string_to_int = [ "one", 1l; "three", 3l ]; int_to_int = [ 1, 2; 3, 4 ]; int_to_message_value = [ 1l, { mv_field = "one" }; 2l, {...
null
https://raw.githubusercontent.com/mransan/ocaml-protoc/e43b509b9c4a06e419edba92a0d3f8e26b0a89ba/src/tests/integration-tests/test18_ml.ml
ocaml
module T = Test18_types module Pb = Test18_pb module Pp = Test18_pp let decode_ref_data () = T. { string_to_string = [ "one", "two"; "three", "four" ]; string_to_int = [ "one", 1l; "three", 3l ]; int_to_int = [ 1, 2; 3, 4 ]; int_to_message_value = [ 1l, { mv_field = "one" }; 2l, {...
662e68b8ee5e884615f6f73ccc6d0fc257a5c8fc286a1ed948d206cd314447aa
incoherentsoftware/defect-process
SpeedRail.hs
module Level.Room.SpeedRail ( SpeedRail(..) , mkSpeedRail , speedRailSurface , updateSpeedRail , drawSpeedRail ) where import Control.Monad.IO.Class (MonadIO) import Data.Foldable (for_) import Configs import Configs.All.Settings import Configs.All.Settings.Debug import Collision.Hitb...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Level/Room/SpeedRail.hs
haskell
assumes total speed rail width is evenly divided by the speed rail sprite width
module Level.Room.SpeedRail ( SpeedRail(..) , mkSpeedRail , speedRailSurface , updateSpeedRail , drawSpeedRail ) where import Control.Monad.IO.Class (MonadIO) import Data.Foldable (for_) import Configs import Configs.All.Settings import Configs.All.Settings.Debug import Collision.Hitb...
a0637b612436de90c7b6a9010d39db11380c8274348ec5ebe633feeb382cb9b4
kit-ty-kate/labrys
pattern.ml
Copyright ( c ) 2013 - 2017 The Labrys developers . (* See the LICENSE file at the top-level directory. *) type ty = TypedEnv.nty type loc = Location.t type name = Ident.Name.t type constr_name = Ident.Constr.t type index = int type branch = int type pattern' = | Wildcard | Constr of (loc * constr_name * patter...
null
https://raw.githubusercontent.com/kit-ty-kate/labrys/4a3e0c5dd45343b4de2e22051095b49d05772608/src/typing/pattern.ml
ocaml
See the LICENSE file at the top-level directory. NOTE: This is forbidden by the syntax NOTE: This is forbidden by the syntax NOTE: Case removed in destruct_ors NOTE: Cannot happen NOTE: Cannot happen NOTE: Cannot happen NOTE: This is forbidden by the syntax
Copyright ( c ) 2013 - 2017 The Labrys developers . type ty = TypedEnv.nty type loc = Location.t type name = Ident.Name.t type constr_name = Ident.Constr.t type index = int type branch = int type pattern' = | Wildcard | Constr of (loc * constr_name * pattern list) | Or of (pattern * pattern) | As of (patter...
29ca5e81b4e2395bdcf565bd864def4afb14fbfe5be497c4f78729ef6598d0eb
generateme/inferme
particles.clj
;; (ns particles (:require [inferme.core :as im] [fastmath.random :as r] [fastmath.stats :as stats] [inferme.plot :as plot])) (def T 1000) (def my-data (-> (r/distribution :normal {:mu 3.14}) (r/->seq T))) (defn toy-model [data] (im/make-model [mu (:nor...
null
https://raw.githubusercontent.com/generateme/inferme/3670839bee3873cfee812907937e8229431a15b2/notebooks/particles.clj
clojure
=> (-24.32084504686292 -11.502669047839152 -140943.38208640966 -13.420018533365576 -6164.348150041295) => -3.8897188086591727 => -0.66673981
(ns particles (:require [inferme.core :as im] [fastmath.random :as r] [fastmath.stats :as stats] [inferme.plot :as plot])) (def T 1000) (def my-data (-> (r/distribution :normal {:mu 3.14}) (r/->seq T))) (defn toy-model [data] (im/make-model [mu (:normal ...
b27365c5457f31d02d97113d4ee48e180c2273cee9791171412631f66c9b9efa
sydow/ireal
IReal.hs
-- | This module provides the type 'IReal', the values of which are real numbers and intervals, with -- potentially unbounded precision arithmetic and elementary functions. -- -- 'IReal' is an instance of the standard numeric classes, so we can interact in ghci as follows: -- > > > exp 0.5 + pi * sqrt ( 2 + sin 1 )...
null
https://raw.githubusercontent.com/sydow/ireal/c06438544c711169baac7960540202379f9294b1/Data/Number/IReal.hs
haskell
| This module provides the type 'IReal', the values of which are real numbers and intervals, with potentially unbounded precision arithmetic and elementary functions. 'IReal' is an instance of the standard numeric classes, so we can interact in ghci as follows: The right operand to the operator '?' indicates t...
> > > exp 0.5 + pi * sqrt ( 2 + sin 1 ) ? 50 6.94439823755032768935865535478209938180612180886848 one can request a thousand decimals with more or less instantaneous result ; also ten thousand decimals is easy ( less than a second on a typical laptop ) . > > > exp ( 0.5 + - 0.001 ) + pi * sqrt ( 2 + sin ( 1 +...
42cb5eb5dc13a14e7302e3a7b2885dd6f5b80d9eab5f8f227a5fd0ba89c3e3d3
polyfy/polylith
create_component.clj
(ns polylith.clj.core.help.create-component (:require [polylith.clj.core.help.shared :as s])) (defn help-text [cm] (str " Creates a component.\n" "\n" " poly create component name:" (s/key "NAME" cm) " [interface:" (s/key "INTERFACE" cm) "]\n" " " (s/key "NAME" cm) " = The name of the ...
null
https://raw.githubusercontent.com/polyfy/polylith/31c1fe4e71fa250544b7b549ff9734a074c809a4/components/help/src/polylith/clj/core/help/create_component.clj
clojure
(ns polylith.clj.core.help.create-component (:require [polylith.clj.core.help.shared :as s])) (defn help-text [cm] (str " Creates a component.\n" "\n" " poly create component name:" (s/key "NAME" cm) " [interface:" (s/key "INTERFACE" cm) "]\n" " " (s/key "NAME" cm) " = The name of the ...
c762fd67c722fc33f7a0ac0e6217ad3baf73a00b1b73f334678e124c36237009
xclerc/ocamljava
cyclicBarrier.mli
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * 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 yo...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/library/concurrent/src/sync/cyclicBarrier.mli
ocaml
* Reusable barriers. * The type of cyclic barriers, that are barriers possibly re-used once all waiting threads have restarted. * Returns the number of threads currently waiting on the barrier; see {java java.util.concurrent.CyclicBarrier#getNumberWaiting()}. * Returns the number of threads to be waited on t...
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * 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 yo...
327ddea20cd065331932d269ce448399d2485363d8e81057740d5bc6899576d6
fortytools/holumbus
W3WIndexer.hs
# OPTIONS # -- ------------------------------------------------------------ module Main where import Codec.Compression.BZip ( compress, decompress ) import Control.Monad.Reader import Data.Binary import Data.Char import Data.Function.Selector import Data....
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/W3W/src/W3WIndexer.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ save intervall save path compress cache files strict input of cache files automatically follow redirects for w3w robots.txt is n...
# OPTIONS # module Main where import Codec.Compression.BZip ( compress, decompress ) import Control.Monad.Reader import Data.Binary import Data.Char import Data.Function.Selector import Data.Maybe import IndexConfig import IndexTypes ...
d9e99719e64c20740efbe1dffe07c28e702d8acb42c5fa4bd79754a6ee64fd9f
VictorNicollet/Ohm
main.ml
(* Include all tests... *) module Run = Run
null
https://raw.githubusercontent.com/VictorNicollet/Ohm/ca90c162f6c49927c893114491f29d44aaf71feb/test/main.ml
ocaml
Include all tests...
module Run = Run
e1be7a49e2d0f8f90d3befd730a4fa10a333a28f6fbda74ba768242c138f622a
libguestfs/virt-v2v
parse_domain_from_vmx.ml
virt - v2v * Copyright ( C ) 2017 - 2021 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/d2b01e487ff4ef56d139a5e0f22efd9b2ed9b64c/input/parse_domain_from_vmx.ml
ocaml
The single filename on the command line is intepreted either as * a local file or a remote SSH URI (only if ‘-it ssh’). Test if [path] exists on the remote server. Set the s_disk_id field to an incrementing number. Find namespaces matching '(ide|scsi|nvme|sata)X:Y' with suitable * deviceType. Check the...
virt - v2v * Copyright ( C ) 2017 - 2021 Red Hat Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any later ...
87a641ff9cc6c9f723349144a290377b39d7af2d06e489e4ad1886ba5eff9c4a
ericfinster/minitt
Skel.hs
module Core.Skel where Haskell module generated by the BNF converter import Core.Abs import Core.ErrM type Result = Err String failure :: Show a => a -> Result failure x = Bad $ "Undefined case: " ++ show x transIdent :: Ident -> Result transIdent x = case x of Ident str -> failure x transCa...
null
https://raw.githubusercontent.com/ericfinster/minitt/19ac0bfa4d1742efb06627f6a9590f601d6f9ecb/src/main/haskell/Core/Skel.hs
haskell
module Core.Skel where Haskell module generated by the BNF converter import Core.Abs import Core.ErrM type Result = Err String failure :: Show a => a -> Result failure x = Bad $ "Undefined case: " ++ show x transIdent :: Ident -> Result transIdent x = case x of Ident str -> failure x transCa...
c95d4b58b449f9384d7799bd9f6d1cfdd4712646ce7ef40096d5f5881310b033
wireapp/wire-server
NewTeamMember_team.hs
# LANGUAGE OverloadedLists # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , e...
null
https://raw.githubusercontent.com/wireapp/wire-server/c428355b7683b7b7722ea544eba314fc843ad8fa/libs/wire-api/test/golden/Test/Wire/API/Golden/Generated/NewTeamMember_team.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# LANGUAGE OverloadedLists # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along mo...
5d597535b726dd680c6513442c4eb4b54656a40e3249038e27c9dbb6ed5c9df8
mgritter/aoc-lh
Main.hs
module Main (main) where import LoadLines import Data.Maybe import Data.List (foldl') import Data.List.Split data Stack = Empty | Box String Stack {-@ measure empty @-} empty :: Stack -> Bool empty Empty = True empty _ = False {-@ top :: {s:Stack | not empty s} -> String @-} top :: Stack -> String top (Box x _)...
null
https://raw.githubusercontent.com/mgritter/aoc-lh/cab617c29a52cb334e248f8cb417d96ccc4907ad/2022/day5/Main.hs
haskell
@ measure empty @ @ top :: {s:Stack | not empty s} -> String @ @ pop :: {s:Stack | not empty s} -> Stack @ @ push :: String -> Stack -> Stack @ FIXME: how can we prove that stacks !! i is the only thing that changed in c2 compared with c? @ replaceStack :: c:Cargo -> pos:InRange c -> s:Stack -> {c2:Cargo | numStack...
module Main (main) where import LoadLines import Data.Maybe import Data.List (foldl') import Data.List.Split data Stack = Empty | Box String Stack empty :: Stack -> Bool empty Empty = True empty _ = False top :: Stack -> String top (Box x _) = x pop :: Stack -> Stack pop (Box _ y) = y push :: String -> Stack ...
0cfc92c974340d4bbd7e3d439ca46cdcce384d4cd9b767b6389439dfa1231c96
kupl/FixML
sub4.ml
type nat = ZERO | SUCC of nat let rec natadd nat1 nat2 = match nat1 with ZERO -> nat2 |SUCC nat -> natadd nat (SUCC nat2);; let rec natmul nat1 nat2 = match nat1 with ZERO -> ZERO |SUCC nat -> natmul nat (natadd nat2 nat2);;
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/nat/nat1/submissions/sub4.ml
ocaml
type nat = ZERO | SUCC of nat let rec natadd nat1 nat2 = match nat1 with ZERO -> nat2 |SUCC nat -> natadd nat (SUCC nat2);; let rec natmul nat1 nat2 = match nat1 with ZERO -> ZERO |SUCC nat -> natmul nat (natadd nat2 nat2);;
ca2348068ca4bb814776003638eb120d12328cb235c77a2e90ae2579e590bf22
sdiehl/elliptic-curve
SECP160R2.hs
module Data.Curve.Weierstrass.SECP160R2 ( module Data.Curve.Weierstrass , Point(..) -- * SECP160R2 curve , module Data.Curve.Weierstrass.SECP160R2 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass --------------------------------------------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/SECP160R2.hs
haskell
* SECP160R2 curve ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- | SECP160R2 curve. | Field of points of SECP160R2 curve. | Field of coefficients of SECP160R2 curve. # INLINABLE a_ # # INLINABLE h_ # ...
module Data.Curve.Weierstrass.SECP160R2 ( module Data.Curve.Weierstrass , Point(..) , module Data.Curve.Weierstrass.SECP160R2 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass data SECP160R2 type Fq = Prime Q type Q = 0xfffffffffffffffffffffffffff...
24dd2892453d79bf22a73778b8f8f3765ccac09860ed404d98d0f914c5a3393a
McParen/croatoan
border_set.lisp
(in-package :de.anvi.ncurses) ;;; border_set ;;; create curses borders or lines using complex characters and renditions ;;; -island.net/ncurses/man/curs_border_set.3x.html ;;; C prototypes ;; int border_set(const cchar_t *ls, const cchar_t *rs, const cchar_t *ts, const cchar_t *bs, const cchar_t *tl, const cchar_t *...
null
https://raw.githubusercontent.com/McParen/croatoan/46a5aba653389d15ae16dc0a581fd67a33378b62/ncurses/border_set.lisp
lisp
border_set create curses borders or lines using complex characters and renditions -island.net/ncurses/man/curs_border_set.3x.html C prototypes int border_set(const cchar_t *ls, const cchar_t *rs, const cchar_t *ts, const cchar_t *bs, const cchar_t *tl, const cchar_t *tr, const cchar_t *bl, const cchar_t *br); int...
(in-package :de.anvi.ncurses) (cffi:defcfun ("border_set" border-set) :int (ls (:pointer (:struct cchar_t))) (rs (:pointer (:struct cchar_t))) (ts (:pointer (:struct cchar_t))) (bs (:pointer (:struct cchar_t))) (tl (:pointer (:struct cchar_t))) (tr (:pointer (:struct cchar_t))) (bl (:pointer (:str...
8e05a041fed290094f6fbe7532dce5f5b27c4467a3ffac2f02131985b87f13ce
originrose/cortex
gaussian.clj
(ns cortex.gaussian "Namespace for working with gaussian distributions." (:require [clojure.core.matrix :as m]) (:import [java.security SecureRandom])) (def ^:dynamic ^SecureRandom *RAND-GENERATOR* (SecureRandom.)) (defn rand-normal ^double [] (.nextDouble *RAND-GENERATOR*)) (defn rand-gaussian ^double [] ...
null
https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/src/cortex/gaussian.clj
clojure
(ns cortex.gaussian "Namespace for working with gaussian distributions." (:require [clojure.core.matrix :as m]) (:import [java.security SecureRandom])) (def ^:dynamic ^SecureRandom *RAND-GENERATOR* (SecureRandom.)) (defn rand-normal ^double [] (.nextDouble *RAND-GENERATOR*)) (defn rand-gaussian ^double [] ...
e020ee8e65b7c6a619f098718e3ef8833549183301f7911fa643c75b2b8d48c0
ragkousism/Guix-on-Hurd
jemalloc.scm
;;; GNU Guix --- Functional package management for GNU 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 General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/jemalloc.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 © 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 (gnu packages jemalloc) #:use-module ((guix licenses) #:select (bsd-2)) #:use-module (guix pack...
c2739f38c06ebdda5659c5ce95b3f31da34e6d3edd95e5789c22ddcc347e11de
ndmitchell/supero
Main.hs
module Main where main = main_small `seq` putChar 'x' main_small x = map (+ (1::Int)) (map (+2) x)
null
https://raw.githubusercontent.com/ndmitchell/supero/a8b16ea90862e2c021bb139d7a7e9a83700b43b2/examples/deforestation2/Main.hs
haskell
module Main where main = main_small `seq` putChar 'x' main_small x = map (+ (1::Int)) (map (+2) x)
bce086fd766544fb6dbd6f93a9535e99dc963c2eb9984a21c608202594f82128
cndreisbach/clojure-web-dev-workshop
user.clj
(ns user (:require [alembic.still :refer [distill]] [clojure.java.io :as io] [clojure.string :as str] [clojure.pprint :refer [pprint]] [clojure.repl :refer :all] [clojure.tools.namespace.repl :refer [refresh refresh-all]] [ring.mock.request :refe...
null
https://raw.githubusercontent.com/cndreisbach/clojure-web-dev-workshop/95d9fdf94b39f8a1e408b8bf75a81b92899ee7d9/code/07-frp/dev/user.clj
clojure
(ns user (:require [alembic.still :refer [distill]] [clojure.java.io :as io] [clojure.string :as str] [clojure.pprint :refer [pprint]] [clojure.repl :refer :all] [clojure.tools.namespace.repl :refer [refresh refresh-all]] [ring.mock.request :refe...
bfa2f03aed17d577b9f6686d169e919b03721a77e086d76386a69ac47e2cccf0
cram2/cram
package.lisp
;;; Copyright ( c ) 2017 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_boxy/cram_boxy_plans/src/package.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2017 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
ca0ddac972b9075b01072611ded4fcb81d849e3a5e4d80e1d94b54bf79ac5392
inhabitedtype/ocaml-aws
sendCommand.ml
open Types open Aws type input = SendCommandRequest.t type output = SendCommandResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/sendCommand.ml
ocaml
open Types open Aws type input = SendCommandRequest.t type output = SendCommandResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service...
4514cfa0f7669603a51b876e81c5927faa0e6b0ded5e6e6f954ecef06f74aeae
metabase/metabase
version_info.clj
(ns release.version-info "Code for generating, uploading, and validating version-info.json." (:require [cheshire.core :as json] [clj-http.client :as http] [metabuild-common.core :as u] [release.common :as c] [release.common.github :as github])) (defn- version-info-filename [] (case (c/edition) ...
null
https://raw.githubusercontent.com/metabase/metabase/5e9b52a32dfeab754d218c758d08fffbacb7c0e7/bin/build/src/release/version_info.clj
clojure
move the current `:latest` to the beginning of `:older`
(ns release.version-info "Code for generating, uploading, and validating version-info.json." (:require [cheshire.core :as json] [clj-http.client :as http] [metabuild-common.core :as u] [release.common :as c] [release.common.github :as github])) (defn- version-info-filename [] (case (c/edition) ...
6b8af4b06af510407066fd6f2175bf254409f4b1f1b4079a201fd2fb6312afd8
1Jajen1/Brokkr
Chunk.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE MultiWayIf #-} module IO.Chunk ( Chunk(..) , ChunkSection(..) , Biomes(..) , BlockStates(..) , countBlocks , numSections ) where import Registry.Biome import Block.Internal.BlockState import Block.Internal.Conversion import Chunk.Heightmap i...
null
https://raw.githubusercontent.com/1Jajen1/Brokkr/a0bff5e2fa3ad7cbb72efb29db7de53b596490b5/src/IO/Chunk.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE MultiWayIf # Used to serialize and deserialize chunks to disk # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # TODO Make sure the Maybe is fully forced TODO Why does this work? TODO Error messages The hash function is fast, but maybe we can have the data in ...
# LANGUAGE RecordWildCards # module IO.Chunk ( Chunk(..) , ChunkSection(..) , Biomes(..) , BlockStates(..) , countBlocks , numSections ) where import Registry.Biome import Block.Internal.BlockState import Block.Internal.Conversion import Chunk.Heightmap import Chunk.Position import Control.DeepSeq import Data.Co...
20c208ce4339bfa7e84b7615960e9ec5fbf9399c76fa2c79bb8b89e152f789c2
clojure/clojurescript
core.cljs
(ns cljs-3284.core (:require cljs-3284.bean)) (defn maybe-bean [x] (if (object? x) (cljs-3284.bean/some-type x) x))
null
https://raw.githubusercontent.com/clojure/clojurescript/fe0c6e9341a3c3613bbd90cf897a9c96b2cccd4f/src/test/cljs_build/cljs_3284/core.cljs
clojure
(ns cljs-3284.core (:require cljs-3284.bean)) (defn maybe-bean [x] (if (object? x) (cljs-3284.bean/some-type x) x))
7048a199f568094a99a7f15c169f97827fb9d7ec9e959b8051c7e46598ba2ea0
ghcjs/jsaddle
JSaddle.hs
----------------------------------------------------------------------------- -- -- Module : Language.Javascript.JSaddle Copyright : ( c ) License : MIT -- Maintainer : < > -- | This package provides an EDSL for calling JavaScript that can be used both from GHCJS and GHC . When ...
null
https://raw.githubusercontent.com/ghcjs/jsaddle/97273656e28790ab6e35c827f8086cf47bfbedca/jsaddle/src/Language/Javascript/JSaddle.hs
haskell
--------------------------------------------------------------------------- Module : Language.Javascript.JSaddle --------------------------------------------------------------------------- * JSaddle EDSL | The 'JSM' monad gives us the context for evaluation. In keeping with JavaScript the EDSL has a...
Copyright : ( c ) License : MIT Maintainer : < > | This package provides an EDSL for calling JavaScript that can be used both from GHCJS and GHC . When using GHC the application is run using Warp and WebSockets to drive a small JavaScript helper . module Language.Javascript.J...
1260b1516f56583b256c1e8c7f586c52bd9d096662c50e658bb662e3d600f230
mk270/blizanci
blizanci_router.erl
blizanci , a Gemini protocol server , by %% To the extent ( if any ) permissible by law , Copyright ( C ) 2020 %% %% This programme is free software; you may redistribute and/or modify it under the terms of the Apache Software Licence v2.0 . -module(blizanci_router). -export([prepare/1]). -export([route/4...
null
https://raw.githubusercontent.com/mk270/blizanci/07f8be9f9e725aa6d9778fb663e54ea0d0b1ab4c/apps/blizanci/src/blizanci_router.erl
erlang
This programme is free software; you may redistribute and/or modify it under TBD @doc Check that a routing table entry is valid. @end TBD: spec @doc The Config provides a routing table, which is an ordered list of regular expressions and associated handler modules. route/3 searches for whether the Request m...
blizanci , a Gemini protocol server , by To the extent ( if any ) permissible by law , Copyright ( C ) 2020 the terms of the Apache Software Licence v2.0 . -module(blizanci_router). -export([prepare/1]). -export([route/4]). -include("blizanci_types.hrl"). -spec prepare([{string(), module(), authorisatio...
7699325a8f0a2fb254bdb6f39294e2d4055366b23b5c83e28649f0bf8c6142f7
lachenmayer/arrowsmith
CSRF.hs
{-# LANGUAGE OverloadedStrings #-} module Snap.Extras.CSRF where ------------------------------------------------------------------------------ import qualified Data.ByteString.Char8 as B import Data.Text (Text) import qualified Data.Text.Encoding as T import Snap import S...
null
https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/snap-extras-0.9/src/Snap/Extras/CSRF.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- | A splice that makes the CSRF token available to templat...
module Snap.Extras.CSRF where import qualified Data.ByteString.Char8 as B import Data.Text (Text) import qualified Data.Text.Encoding as T import Snap import Snap.Snaplet.Session import Heist import Heist.Interpreted import qualified Text.XmlHtml ...
e424838e10da0541dda9b8274b0826b301086b3b33489de585c3b00fbcba7759
hbrouwer/pdrt-sandbox
DRSTutorial.hs
-- This is a tutorial for creating and manipulating DRSs with PDRT-SANDBOX. import Data.DRS -------------------------------------------------------------------------------- * Creating a DRS -------------------------------------------------------------------------------- --------------------------------------------...
null
https://raw.githubusercontent.com/hbrouwer/pdrt-sandbox/4937424013b6a11bac4cd5444d3e173420fab98a/tutorials/DRSTutorial.hs
haskell
This is a tutorial for creating and manipulating DRSs with PDRT-SANDBOX. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ predicat...
import Data.DRS * Creating a DRS | A Discourse Representation Structure ( DRS ) consists of two sets : the first set contains the DRS referents , and the second set contains the DRS conditions . The first example shows an empty DRS . The second example shows a DRS containing one referent and a two simple...
df46a91a9b1c96e3080b4983177b3d85113f345cfd01ffed79280b819864aa5f
tlehman/sicp-exercises
ex-1.26.scm
Exercise 1.26 : is having great difficulty doing Exercise 1.24 . His fast - prime ? test seems to run more slowly than his prime ? test . calls his friend over to help . When they examine ' code , they find that he has rewritten the expmod procedure to use an explicit multiplication , rather than calling squar...
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.26.scm
scheme
Exercise 1.26 : is having great difficulty doing Exercise 1.24 . His fast - prime ? test seems to run more slowly than his prime ? test . calls his friend over to help . When they examine ' code , they find that he has rewritten the expmod procedure to use an explicit multiplication , rather than calling squar...
4451c4277344cae481a19e317a936d14f108984906e474f3705b2f7950a2d4d1
pascal-knodel/haskell-craft
E'9''9.hs
-- -- -- ---------------- Exercise 9.9 . ---------------- -- -- -- module E'9''9 where Notes : -- -- - Use/See templates for structural induction. - Note : Re/-member/-think/-view the definitions of " zip " , " unzip " , " fst " and " snd " . -- ------------ -- Proposition: -- ------------ -- zip ( f...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%209/E'9''9.hs
haskell
-------------- -------------- - Use/See templates for structural induction. ------------ Proposition: ------------ Proof By Structural Induction: ------------------------------ --------------------------- | unzip ...
Exercise 9.9 . module E'9''9 where Notes : - Note : Re/-member/-think/-view the definitions of " zip " , " unzip " , " fst " and " snd " . zip ( fst ( unzip pairs ) ) ( snd ( unzip pairs ) ) = pairs Induction Beginning ( I.B. ): ( Base case 1 . ) : < = > pairs : = [ ] = > ( lef...
665c4aea667ee6a29fc4183a853b6b665159b2087567bbeeebda1bc06092616d
mcorbin/meuse
crate.clj
(ns meuse.db.queries.crate (:require [honeysql.core :as sql] [honeysql.helpers :as h])) (defn get-crate [where-clause] (-> (h/select :c.id :c.name) (h/from [:crates :c]) (h/where where-clause) sql/format)) (defn by-name-join-version [crate-name crate-version] (-...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/db/queries/crate.clj
clojure
(ns meuse.db.queries.crate (:require [honeysql.core :as sql] [honeysql.helpers :as h])) (defn get-crate [where-clause] (-> (h/select :c.id :c.name) (h/from [:crates :c]) (h/where where-clause) sql/format)) (defn by-name-join-version [crate-name crate-version] (-...
c6d136562014e4af6849d589c75c7a816dbd27a10a57ef05bff49bf0d00acabe
slipstream/SlipStreamServer
test_helper.clj
(ns com.sixsq.slipstream.auth.test-helper (:refer-clojure :exclude [update]) (:require [com.sixsq.slipstream.auth.internal :as ia] [com.sixsq.slipstream.db.es.binding :as esb] [com.sixsq.slipstream.db.es.utils :as esu] [com.sixsq.slipstream.ssclj.resources.common.crud :as crud] [com.sixsq.slipst...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/auth/test_helper.clj
clojure
(ns com.sixsq.slipstream.auth.test-helper (:refer-clojure :exclude [update]) (:require [com.sixsq.slipstream.auth.internal :as ia] [com.sixsq.slipstream.db.es.binding :as esb] [com.sixsq.slipstream.db.es.utils :as esu] [com.sixsq.slipstream.ssclj.resources.common.crud :as crud] [com.sixsq.slipst...
b81932f06a8662fee927e9f0823f98f737d208ad2b5f00f9839929ecfbcdb69d
fulcrologic/video-series
session.cljs
(ns app.model.session (:require [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [com.fulcrologic.fulcro.dom :as dom :refer [div a]] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.dom.html-entities :as ent] [com.fulcrologic.fulcro.routing.dynamic-r...
null
https://raw.githubusercontent.com/fulcrologic/video-series/817969602a31aee5fbf546b35893d73f93f1d78c/src/app/model/session.cljs
clojure
save desired path for later routing
(ns app.model.session (:require [com.fulcrologic.fulcro.mutations :as m :refer [defmutation]] [com.fulcrologic.fulcro.dom :as dom :refer [div a]] [com.fulcrologic.fulcro.components :as comp :refer [defsc]] [com.fulcrologic.fulcro.dom.html-entities :as ent] [com.fulcrologic.fulcro.routing.dynamic-r...
ac39b91603e8e19497838a507974d0a18603ce59cc5154d7da05eac18b66d483
pink-gorilla/webly
transit.clj
(ns modular.webserver.middleware.transit (:require [cognitect.transit :as transit] [modular.encoding.transit :as e] [muuntaja.core :as m])) (def muuntaja (m/create (-> m/default-options (update-in [:formats "application/transit+json" :decoder-opts] (partial merge e/decode)) ...
null
https://raw.githubusercontent.com/pink-gorilla/webly/d449a506e6101afc16d384300cdebb7425e3a7f3/webserver/src/modular/webserver/middleware/transit.clj
clojure
(ns modular.webserver.middleware.transit (:require [cognitect.transit :as transit] [modular.encoding.transit :as e] [muuntaja.core :as m])) (def muuntaja (m/create (-> m/default-options (update-in [:formats "application/transit+json" :decoder-opts] (partial merge e/decode)) ...
c49c56454777a29c7ab952a2c578f388ac3d294950a48fa9db95236c25bdb04e
hipsleek/hipsleek
fixbag.ml
#include "xdebug.cppo" open VarGen (* Call FixBag, send input to it *) open Globals module DD = Debug open Gen open Exc.GTable open Perm open Cpure open Context module M = Lexer.Make(Token.Token) module Pr = Cprinter module CP = Cpure module CF= Cformula module MCP = Mcpure module TP = Tpdispatcher Operators let...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/fixbag.ml
ocaml
Call FixBag, send input to it let is_self = CP.is_self_var let is_null = CP.is_null !allow_pred_spec " (forall (" ^ fixbag_of_spec_var sv ^ ":" ^ fixbag_of_pure_formula p ^ ")) " print_endline ("\nINPUT: " ^ input_fixbag); Printf.fprintf oc "%s" input_fixbag; flush oc; close_out oc; print_en...
#include "xdebug.cppo" open VarGen open Globals module DD = Debug open Gen open Exc.GTable open Perm open Cpure open Context module M = Lexer.Make(Token.Token) module Pr = Cprinter module CP = Cpure module CF= Cformula module MCP = Mcpure module TP = Tpdispatcher Operators let op_lt = "<" let op_lte = "<=" let o...
fd74c7a6234629936cc0ceed3c53c3cb93efe7c29cda9c5a8409d4ffa8850aef
tonyg/kali-scheme
scan-package.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . ; Scanning structures and processing package clauses. ; Utility for compile-structures (link/link.scm) and ; ensure-loaded (env/load-package.scm). ; Returns a list of all packages reachable from...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/bcomp/scan-package.scm
scheme
Scanning structures and processing package clauses. Utility for compile-structures (link/link.scm) and ensure-loaded (env/load-package.scm). INCLUDE-THIS-PACKAGE?. Walk through PACKAGE's clauses to find the source code. The relevent clauses are: (file name ...) (begin form ...) (define-all-operators) ...
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . Returns a list of all packages reachable from STRUCTS that answer true to (define (collect-packages structs include-this-package?) (let ((package-seen '()) (structure-seen '()) (packages '(...
5a2a333fea9d10199665b42337951f305e47b08bf2692f34388b78a26641f2dd
modular-macros/ocaml-macros
expect_test.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tools/expect_test.ml
ocaml
************************************************************************ OCaml ...
, Jane Street Europe Copyright 2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the Execute a list of phrase from a .ml file and compare the result to the expected output , written insi...
88d5380f99faf7c7cbe09c500d3dc50507f83677476a395b12bdf171273e903f
rotatef/cl-html5-parser
inputstream.lisp
;;;; HTML5 parser for Common Lisp ;;;; Copyright ( C ) 2012 < > Copyright ( C ) 2012 < > Copyright ( C ) 2012 Copyright ( C ) 2012 < > ;;;; ;;;; 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 ...
null
https://raw.githubusercontent.com/rotatef/cl-html5-parser/74a92eb3a183a0afd089ea33350e816e6b9aeefa/inputstream.lisp
lisp
HTML5 parser for Common Lisp 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 (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ...
Copyright ( C ) 2012 < > Copyright ( C ) 2012 < > Copyright ( C ) 2012 Copyright ( C ) 2012 < > by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package :html5-parser) (deftype array-length () "T...
e21d357b6b739c2b95a8698bf2693cd233b93df694793fbd3d53f1cab292e36b
mklinik/hmud
RealData.hs
module Hmud.RealData where import Hmud.Item import Hmud.Describable import Hmud.Room import Hmud.World theScrollOfForgery :: Item theScrollOfForgery = Item { itemName = "scroll of forgery", itemDescription = "enables the forge command" } tavern :: Room tavern = mkRoom "Black Unicorn" "a dusty dark tavern. It sme...
null
https://raw.githubusercontent.com/mklinik/hmud/5ba32f29170a098e007d50688df32cf8919b6bf1/Hmud/RealData.hs
haskell
module Hmud.RealData where import Hmud.Item import Hmud.Describable import Hmud.Room import Hmud.World theScrollOfForgery :: Item theScrollOfForgery = Item { itemName = "scroll of forgery", itemDescription = "enables the forge command" } tavern :: Room tavern = mkRoom "Black Unicorn" "a dusty dark tavern. It sme...
4b61d0600e8191bdbe7ed01630d27518a43478f1e319e21bef1b17d6ebc9e013
GrammaTech/sel
rest.lisp
rest.lisp --- RESTful server definition for SEL . ;;; Rest server definition for Software Evolution Library ;;; The Rest API for Software Evolution Library is implemented as a web ;;; service which may be accessed via HTTP resources. This file serves as an ;;; entry point to these definitions, providing a simple ...
null
https://raw.githubusercontent.com/GrammaTech/sel/a59174c02a454e8d588614e221cf281260cf12f8/rest.lisp
lisp
service which may be accessed via HTTP resources. This file serves as an entry point to these definitions, providing a simple way to start up the main REST service. It attempts to conform to principals described here: @uref{, @subsection Dependencies packages support JSON <-> Common Lisp translations, JSON ...
rest.lisp --- RESTful server definition for SEL . Rest server definition for Software Evolution Library The Rest API for Software Evolution Library is implemented as a web Representational State Transfer } The Rest API leverages a number of Common Lisp components , which are open - source and generally avai...
27f209f24146986b3794bed1f4d823da625d04871d23792d5291294858e51501
ItsMeijers/Lambdabox
Side.hs
{-# LANGUAGE OverloadedStrings, MultiParamTypeClasses #-} module Lambdabox.Trade.Side ( Side(..) , ExchangePairSide , buy , sell ) where import Lambdabox.ExchangePair import Lambdabox.Translate import Lambdabox.Exchange import Data.Text (Text) data Side = Buy | Sell deriving ...
null
https://raw.githubusercontent.com/ItsMeijers/Lambdabox/c19a8ae7d37b9f8ab5054d558fe788a5d4483092/src/Lambdabox/Trade/Side.hs
haskell
# LANGUAGE OverloadedStrings, MultiParamTypeClasses #
module Lambdabox.Trade.Side ( Side(..) , ExchangePairSide , buy , sell ) where import Lambdabox.ExchangePair import Lambdabox.Translate import Lambdabox.Exchange import Data.Text (Text) data Side = Buy | Sell deriving (Show, Eq) instance Translate Binance Side Text where ...
89dcfafe7b810c04144396d166331abdf7f5d3e50975849ef45979952578f112
haskell/haskell-language-server
Unused.hs
{-# LANGUAGE Haskell2010 #-} # LANGUAGE RecordWildCards # module Unused where data MyRec = MyRec { foo :: Int , bar :: Int , baz :: Char } convertMe :: MyRec -> String convertMe MyRec {..} = show foo ++ show bar
null
https://raw.githubusercontent.com/haskell/haskell-language-server/b83ceb4f7d63433190a66f7ac4190c722a5b165b/plugins/hls-explicit-record-fields-plugin/test/testdata/Unused.hs
haskell
# LANGUAGE Haskell2010 #
# LANGUAGE RecordWildCards # module Unused where data MyRec = MyRec { foo :: Int , bar :: Int , baz :: Char } convertMe :: MyRec -> String convertMe MyRec {..} = show foo ++ show bar
24012aaf0f48697a2de6f850e1df3f81f36a6c48f4e1604ee191ee1cc9572344
mzp/coq-ruby
coqinit.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/toplevel/coqinit.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Initialization.
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : coqinit.mli 5920 ...
fa3cd76b21424bb6e3feefdb4820fb8ff42a9a3792a245905c0f44a02f8cf827
mauricioszabo/generic-lsp
atom.cljs
(ns generic-lsp.atom (:require ["atom" :refer [CompositeDisposable]] ["url" :as url])) (defonce subscriptions (atom (CompositeDisposable.))) (defn info! [message] (.. js/atom -notifications (addInfo message)) nil) (defn error! ([message] (error! message nil)) ([message detail] (.. js/atom -n...
null
https://raw.githubusercontent.com/mauricioszabo/generic-lsp/2b3fd212a442eaa1080a78b5a3361d981ab0be9e/src/generic_lsp/atom.cljs
clojure
(ns generic-lsp.atom (:require ["atom" :refer [CompositeDisposable]] ["url" :as url])) (defonce subscriptions (atom (CompositeDisposable.))) (defn info! [message] (.. js/atom -notifications (addInfo message)) nil) (defn error! ([message] (error! message nil)) ([message detail] (.. js/atom -n...
4337faf94d90aa6dd9fbbdbcb16192846f73b04ced84692a4b00e87843875390
dmjio/aoc2020
Main.hs
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE ViewPatterns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # module Main where import Data.Bits import Data.Char import Data.Function ...
null
https://raw.githubusercontent.com/dmjio/aoc2020/83c1d55a2dad3b2318666debaf18b5368cff8738/15/Main.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings #
# LANGUAGE ViewPatterns # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # module Main where import Data.Bits import Data.Char import Data.Function (on) import qualified Data.IntMap.Strict as IM import Data.IntMap.Strict (IntMap) import D...
78a469c65986a18806b8ea4b66332aeae3ded16a681df8fc57d0cb18dbfd79cb
mtpearce/idyom
params.lisp
;;;; ====================================================================== ;;;; File: params.lisp Author : < > Created : < 2003 - 06 - 16 > Time - stamp : < 2019 - 06 - 13 13:22:30 marcusp > ;;;; ==========================================...
null
https://raw.githubusercontent.com/mtpearce/idyom/d0449a978c79f8ded74c509fdfad7c1a253c5a80/mvs/params.lisp
lisp
====================================================================== File: params.lisp ====================================================================== :a, :b, :c, :d, :x :a, :b, :c, :d, :x Default store specs arithmetic-combination geometric-combination bayesian-combination ranked-combination
Author : < > Created : < 2003 - 06 - 16 > Time - stamp : < 2019 - 06 - 13 13:22:30 marcusp > (cl:in-package #:mvs) (defvar *ep-cache-dir* nil "Directory for storing cached predictions.") (defparameter *ltm-mixtures* t) (defparameter *ltm-orde...
1a111a4d6da9b70019632df511b801010f09bae5a3fd77e4e294281e0ba9d0ab
folivetti/ITEA
Shape.hs
| Module : IT.Shape Description : Measuring shape constraints with interval arithmetic Copyright : ( c ) , 2020 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX Support functions to measure imposed shape constraints into the image of the function and its...
null
https://raw.githubusercontent.com/folivetti/ITEA/fc8360ae2f8ffe4c46867329f7c8fa91a85a21af/src/IT/Shape.hs
haskell
* Constraint functions violationImg evalImage violationImg (evalDiffImage ix) (-Infinity .. 0) (0 .. Infinity) (0 .. 0) (0 .. Infinity) (-Infinity .. 0)
| Module : IT.Shape Description : Measuring shape constraints with interval arithmetic Copyright : ( c ) , 2020 License : GPL-3 Maintainer : Stability : experimental Portability : POSIX Support functions to measure imposed shape constraints into the image of the function and its...
8e6ea7fcebbcafb83d05bf5fe1b52139ed6ee033a819aa7984d90fade73d8cf0
Kakadu/fp2022
demo.ml
* Copyright 2022 - 2023 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Ocamlprintf_lib open Interpret.Interpret (Interpret.Result) let () = run (Stdio.In_channel.input_all stdin)
null
https://raw.githubusercontent.com/Kakadu/fp2022/0ecfd0a84158d9897c26d07108437e9036b92f05/OCamlPrintf/demos/demo.ml
ocaml
* Copyright 2022 - 2023 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Ocamlprintf_lib open Interpret.Interpret (Interpret.Result) let () = run (Stdio.In_channel.input_all stdin)
5e2500a979ec3e1d7f703802aae5b63aaf9e217f67bb87d93e7ccfffae5fc469
Clozure/ccl-tests
package-use-list.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Feb 22 06:55:56 2004 ;;;; Contains: Tests of PACKAGE-USE-LIST (in-package :cl-test) ;;; Most tests of this function are in files for other package-related operators Specialized sequence tests (defmacro def-package-use-list-test (test-name name-form) `(de...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/package-use-list.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of PACKAGE-USE-LIST Most tests of this function are in files for other package-related operators Error tests
Author : Created : Sun Feb 22 06:55:56 2004 (in-package :cl-test) Specialized sequence tests (defmacro def-package-use-list-test (test-name name-form) `(deftest ,test-name (let ((name ,name-form)) (safely-delete-package name) (let ((p (make-package name :use nil))) (package-use-...
cb0d4ea80b7a01b7c4ed96c80d98980e8ecf64b2dad0fe6169a7017cf14bd8bb
johnlawrenceaspden/hobby-code
unexpected-schlemiel-the-painter.clj
The Unexpected Appearance of Schlemiel , the Painter ;; So, it is clear that my model of how things are done was badly broken I am doing some statistics , one day , and so I define : ;; the average of a finite sequence (defn average [sq] (/ (reduce + sq) (count sq))) ;; and the square of a number (defn square [...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/unexpected-schlemiel-the-painter.clj
clojure
So, it is clear that my model of how things are done was badly broken the average of a finite sequence and the square of a number and a way of forgetting about all the fiddly little digits at the end but for the variance I am a little torn between: ; and (I have a regrettable weakness for the terse...) but wha...
The Unexpected Appearance of Schlemiel , the Painter I am doing some statistics , one day , and so I define : (defn average [sq] (/ (reduce + sq) (count sq))) (defn square [x] (* x x)) (defn twosf [x] (float (/ (Math/round (* x 100.0)) 100))) (defn variance-one [sq] (let [av (average sq)] (average (...
30b83240eac1552b840aaaea9867135a4463214bf87d4e21dfe0181c70bcaabb
scrintal/heroicons-reagent
chat_bubble_bottom_center_text.cljs
(ns com.scrintal.heroicons.mini.chat-bubble-bottom-center-text) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M10 2c-2.236 0-4.43.18-6.57.524C1.993 2.755 1 4.014 1 5.426v...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/chat_bubble_bottom_center_text.cljs
clojure
(ns com.scrintal.heroicons.mini.chat-bubble-bottom-center-text) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M10 2c-2.236 0-4.43.18-6.57.524C1.993 2.755 1 4.014 1 5.426v...
8f0d1bc8ab4bbc154a80e864e961da017dab97a857266cce9ba0c2eeb26a70b3
tek/ribosome
FilterTest.hs
module Ribosome.Menu.Test.FilterTest where import Lens.Micro.Mtl (view) import Polysemy.Test (UnitTest, runTestAuto, (===)) import Ribosome.Menu.Combinators (sortEntriesText) import Ribosome.Menu.Data.Filter (Filter (Fuzzy)) import Ribosome.Menu.Data.FilterMode (FilterMode (FilterMode)) import Ribosome.Menu.Data.Menu...
null
https://raw.githubusercontent.com/tek/ribosome/ec3dd63ad47322e7fec66043dd7e6ade2f547ac1/packages/menu/test/Ribosome/Menu/Test/FilterTest.hs
haskell
module Ribosome.Menu.Test.FilterTest where import Lens.Micro.Mtl (view) import Polysemy.Test (UnitTest, runTestAuto, (===)) import Ribosome.Menu.Combinators (sortEntriesText) import Ribosome.Menu.Data.Filter (Filter (Fuzzy)) import Ribosome.Menu.Data.FilterMode (FilterMode (FilterMode)) import Ribosome.Menu.Data.Menu...
1a300d0d86ef1c050519c888b7dca9d7251c6aa6d971fa281386754440b50d97
dreixel/syb
Main.hs
module Main where import Test.Tasty import Test.Tasty.HUnit import System.Exit import qualified Bits import qualified Builders import qualified Datatype import qualified Ext1 import qualified Ext2 import qualified FoldTree import qualified FreeNames import qualified GEq import qualified GMapQAssoc import qualified G...
null
https://raw.githubusercontent.com/dreixel/syb/f741a437f18768f71586eeb47ffb43c0915f331b/tests/Main.hs
haskell
no tests, should compile no tests, should compile no tests, should compile no tests, should compile no tests, should compile no tests, should compile
module Main where import Test.Tasty import Test.Tasty.HUnit import System.Exit import qualified Bits import qualified Builders import qualified Datatype import qualified Ext1 import qualified Ext2 import qualified FoldTree import qualified FreeNames import qualified GEq import qualified GMapQAssoc import qualified G...
94a1cabd3c551049bd98d77fb47a3e399117e433f7d81c53b11feaca8710b9eb
genmeblog/techtest
core.clj
(ns techtest.core (:require [tech.ml.dataset :as ds] [tech.ml.dataset.column :as col] [tech.v2.datatype.functional :as dfn] )) ;; created with tech.ml.dataset version "2.0-beta-24" ;; further versions may simplify some things ;; Working thrugh R `data.table` type and confronting w...
null
https://raw.githubusercontent.com/genmeblog/techtest/4b8111fde17fcffd7f7fb6fa9454d030f1847adc/src/techtest/core.clj
clojure
created with tech.ml.dataset version "2.0-beta-24" further versions may simplify some things Working thrugh R `data.table` type and confronting with tech.ml.dataset -project.org/web/packages/data.table/vignettes/datatable-intro.html # Preparation load R package # Read data from URL input <- "" flights <- fread...
(ns techtest.core (:require [tech.ml.dataset :as ds] [tech.ml.dataset.column :as col] [tech.v2.datatype.functional :as dfn] )) (require '[clojisr.v1.r :as r :refer [r]] '[clojisr.v1.require :refer [require-r]]) (require-r '[base] '[utils] '[data.t...
a9012b654f72e057aa5ed057b019c27ba539044de64b69d83e784cce933eee89
well-typed/cborg
Mini.hs
module Mini ( benchmarks -- :: [Benchmark] ) where import System.FilePath import Criterion.Main import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BS import Macro.DeepSeq () import qualified Macro.PkgBinary as PkgBinary import qualified Macro.PkgC...
null
https://raw.githubusercontent.com/well-typed/cborg/9be3fd5437f9d2ec1df784d5d939efb9a85fd1fb/serialise/bench/versus/Mini.hs
haskell
:: [Benchmark] data directory.
module Mini ) where import System.FilePath import Criterion.Main import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BS import Macro.DeepSeq () import qualified Macro.PkgBinary as PkgBinary import qualified Macro.PkgCereal as PkgCereal import qualifi...
625d8fe4efbc13fd73b6e417921141cef89c90a7a58ebe15dbd7450d7abfeebf
TrustInSoft/tis-interpreter
dump.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/report/dump.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
6a51fd375cee66538b83738cf057babce4f608fc152c991e4b84c1f704608861
justinethier/nugget
fibfp.scm
FIBFP -- Computes ) using floating point #; (import (scheme base) (scheme read) (scheme write) (scheme time)) (define (fibfp n) (if (< n 2.) n (+ (fibfp (- n 1.)) (fibfp (- n 2.))))) (define (main) (let* ((count (read)) (input (read)) (output (read)) ...
null
https://raw.githubusercontent.com/justinethier/nugget/0c4e3e9944684ea83191671d58b5c8c342f64343/benchmarks/chicken/fibfp.scm
scheme
(import (scheme base) The following code is appended to all benchmarks. Given an integer and an object, returns the object without making it too easy for compilers to tell the object will be returned. Given the name of a benchmark, the number of times it should be executed, a thunk that runs the benchmark once,...
FIBFP -- Computes ) using floating point (scheme read) (scheme write) (scheme time)) (define (fibfp n) (if (< n 2.) n (+ (fibfp (- n 1.)) (fibfp (- n 2.))))) (define (main) (let* ((count (read)) (input (read)) (output (read)) (s2 (number->strin...
02fc853c6021f664d915d5f2c243263e9bdb91db38f5da3751f6cd582d87fd41
gwathlobal/CotD
options.lisp
(in-package :cotd) (defstruct options (tiles 'large) ;;; 'large - use small tiles ;;; 'small - use large tiles (font 'font-8x13) ;;; 'font-6x13 - use small font ;;; 'font-8x13 - use large font (player-name "Player") ;;; default name of the player (ignore-singlemind...
null
https://raw.githubusercontent.com/gwathlobal/CotD/d01ef486cc1d3b21d2ad670ebdb443e957290aa2/src/options.lisp
lisp
'large - use small tiles 'small - use large tiles 'font-6x13 - use small font 'font-8x13 - use large font default name of the player if the singlemind messages shall be hidden from the player
(in-package :cotd) (defstruct options ) (defun read-options (s-expr options) (log:info "S-EXPR = ~A" s-expr) (unless (typep s-expr 'list) (return-from read-options nil)) (cond ((equal (first s-expr) 'tiles) (set-options-tiles s-expr options)) ((equal (first s-expr) 'font) (set-optio...
70ffcdcb57d2993096badb20689273987908c29f98aac3a0caace6efb0d9acbc
fyquah/hardcaml_zprize
test_controller.ml
open! Core open Hardcaml open Hardcaml_waveterm module Config = struct let num_windows = 4 let affine_point_bits = 16 let pipeline_depth = 8 let log_stall_fifo_depth = 2 end module Scalar_config = struct let window_size_bits = 8 end module Controller = Pippenger.Controller.Make (Config) (Scalar_config) mod...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/pippenger/test/test_controller.ml
ocaml
open! Core open Hardcaml open Hardcaml_waveterm module Config = struct let num_windows = 4 let affine_point_bits = 16 let pipeline_depth = 8 let log_stall_fifo_depth = 2 end module Scalar_config = struct let window_size_bits = 8 end module Controller = Pippenger.Controller.Make (Config) (Scalar_config) mod...
6eb9a64c3ffb319af73e4e58401acbfbc6bebf83fc93b74577603b8183493a46
AccelerationNet/function-cache
capacity.lisp
(in-package :function-cache) (defclass cache-capacity-mixin () ((capacity :accessor capacity :initarg :capacity :initform nil :documentation "The maximum number of objects cached, when we hit this we will reduce the number of cached entries by reduce-by-ratio") (reduce-by-ratio :accessor reduce-by...
null
https://raw.githubusercontent.com/AccelerationNet/function-cache/6a5ada401e57da2c8abf046f582029926e61fce8/src/capacity.lisp
lisp
(in-package :function-cache) (defclass cache-capacity-mixin () ((capacity :accessor capacity :initarg :capacity :initform nil :documentation "The maximum number of objects cached, when we hit this we will reduce the number of cached entries by reduce-by-ratio") (reduce-by-ratio :accessor reduce-by...
0954e32fd6c22595801708bd12f4f3f43e72165ae33c64d1beaf94b08313799a
c-cube/trustee
serve.ml
open Trustee_opentheory module Log = Trustee_core.Log module OT = Trustee_opentheory open OT.Common_ let top_wrap_ req f = try f() with | Error.E e -> H.Response.make_string @@ Error (404, Fmt.asprintf "internal error: %a" Error.pp e) let mk_page ~title:title_ bod : Html.elt = let open Html in let ...
null
https://raw.githubusercontent.com/c-cube/trustee/397841b8ff813255f5643fef43a7187e81db21f5/src/opentheory/tool/serve.ml
ocaml
fragment need lock around ctx/eval need lock around ctx/eval need lock around ctx/eval
open Trustee_opentheory module Log = Trustee_core.Log module OT = Trustee_opentheory open OT.Common_ let top_wrap_ req f = try f() with | Error.E e -> H.Response.make_string @@ Error (404, Fmt.asprintf "internal error: %a" Error.pp e) let mk_page ~title:title_ bod : Html.elt = let open Html in let ...
25a2e50096e5babd91af5bad01ad66cdde7bb3f72ac9f29444bfc709a4be436e
timbod7/haskell-chart
Test17.hs
module Test17 where import Graphics.Rendering.Chart import Data.Colour import Data.Colour.Names import Control.Lens import Data.Default.Class import Data.Time.LocalTime import System.Random import ExampleStocks import Utils -- demonstrate Candles chart :: Double -> Renderable (LayoutPick LocalTime Double Double) c...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart-tests/tests/Test17.hs
haskell
demonstrate Candles
module Test17 where import Graphics.Rendering.Chart import Data.Colour import Data.Colour.Names import Control.Lens import Data.Default.Class import Data.Time.LocalTime import System.Random import ExampleStocks import Utils chart :: Double -> Renderable (LayoutPick LocalTime Double Double) chart lwidth = layoutLRT...
4f4e2a98b838f47069b23de0d3e582542ae3ad1b9ef17d0f4e88d207637b55e9
qkrgud55/ocamlmulti
genlex.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , proje...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/stdlib_r/genlex.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 $ I d : genlex.mli 12210 2012 - 03 - ...
87b43d13943219e0750e8c0c8be46154233cdc54d291aced3a6bd97cc2b6ad4d
kaoskorobase/hsc3-server
sine-grains.hs
import Control.Concurrent.MVar import Control.Monad (void, when) import Control.Monad.IO.Class (MonadIO, liftIO) import Sound.SC3.UGen import Sound.SC3.Server.State.Monad import Sound.SC3.Server.State.Monad.Command -- You need the hsc3-server-internal package ...
null
https://raw.githubusercontent.com/kaoskorobase/hsc3-server/7e87e59619a23d44367c98cfdb21ca263a3aa8f9/examples/sine-grains.hs
haskell
You need the hsc3-server-internal package in order to use the internal server import Sound.SC3.Server.Monad.Process.Internal (withDefaultInternal) Simple sine grain synthdef with frequency and amplitude controls and an ASR envelope. | Latency imposed on packets sent to the server. | Random sine grain gene...
import Control.Concurrent.MVar import Control.Monad (void, when) import Control.Monad.IO.Class (MonadIO, liftIO) import Sound.SC3.UGen import Sound.SC3.Server.State.Monad import Sound.SC3.Server.State.Monad.Command import Sound.SC3.Server.State.Monad...
8a6690a4e95118b49388c5ec9660b6dd4691a52ff18217a79a1f68b23cb55b2d
lisp/de.setf.utility
modpackage.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*- This file is part of the ' de.setf.utility ' Common Lisp library . ;;; It defines package operators with provisions for side-effects on exxisting packages. Copyright 2003 , 2009 , 2010 [ ) All Right...
null
https://raw.githubusercontent.com/lisp/de.setf.utility/782cd79d99ebf40deeed60c492be9873bbe42a15/modpackage.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.utility.implementation ; -*- It defines package operators with provisions for side-effects on exxisting packages. 'de.setf.utility' is free software: you can redistribute it and/or modify 'de.setf.utility' is distributed in the hope that it will be u...
This file is part of the ' de.setf.utility ' Common Lisp library . Copyright 2003 , 2009 , 2010 [ ) All Rights Reserved it under the terms of version 3 of the GNU Lesser General Public License as published by the Free Software Foundation . A copy of the GNU Lesser General Public License should be inc...
9ab95016435f596dd6e745720fa789356e5d17076cecfb886b3fccc60ab295f2
VisionsGlobalEmpowerment/webchange
views.cljs
(ns webchange.admin.pages.create-activity.views (:require [re-frame.core :as re-frame] [webchange.admin.widgets.page.views :as page] [webchange.ui.index :as ui] [webchange.admin.pages.create-activity.state :as state] [webchange.utils.languages :refer [language-options]])) (defn- activity-categori...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/481ff7a527c15d2d1365cbe35f044cf3736c82e7/src/cljs/webchange/admin/pages/create_activity/views.cljs
clojure
(ns webchange.admin.pages.create-activity.views (:require [re-frame.core :as re-frame] [webchange.admin.widgets.page.views :as page] [webchange.ui.index :as ui] [webchange.admin.pages.create-activity.state :as state] [webchange.utils.languages :refer [language-options]])) (defn- activity-categori...
b4bdd0addef319e0c9394da8d6826def35e185cfb94bf5a56d9978b09a8316db
ghc/packages-Cabal
MyBenchModule.hs
module MyBenchModule where main :: IO () main = error ""
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/AutogenModules/SrcDist/MyBenchModule.hs
haskell
module MyBenchModule where main :: IO () main = error ""
9a099145ae1fb7545c69af524f46799d795209d7d4d62ea3df5d4d1d9da792bd
ptal/AbSolute
infer.ml
Copyright 2019 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 License , or ( at your option ) any later version . This program is distr...
null
https://raw.githubusercontent.com/ptal/AbSolute/469159d87e3a717499573c1e187e5cfa1b569829/src/lang/typing/infer.ml
ocaml
* If set to `true`, we have a trace of the typing process. It is useful to debug the inference process. * Useful for clear debugging messages. * Variable environment mapping a variable name to its supported abstract domains. * The abstract domain type, we try to infer a type for a formula matching this type....
Copyright 2019 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 License , or ( at your option ) any later version . This program is distr...
7c1b850f8907ddac7b12949b8645ce81e9db7c070da6dc883293898bb86ebd65
discus-lang/salt
Name.hs
module Salt.Core.Exp.Name ( Annot , Name (..), Text, IsString(..) , Bind (..) , Bound (..), pattern Bound) where import Data.Text (Text) import Data.String import Data.Typeable import qualified Data.Text as T --------------------------------------...
null
https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/Core/Exp/Name.hs
haskell
------------------------------------------------------------------------------------------------- | The usual constraints on expression annotations. ------------------------------------------------------------------------------------------------- | Names of things. ----------------------------------------------------...
module Salt.Core.Exp.Name ( Annot , Name (..), Text, IsString(..) , Bind (..) , Bound (..), pattern Bound) where import Data.Text (Text) import Data.String import Data.Typeable import qualified Data.Text as T allows us to throw exceptions tha...
ef7d508c0991d53c8de820842f189b504d4cc74aa38d193c96189214161ffb58
apibot-org/apibot
auth.clj
(ns apibot.auth (:require [apibot.config :as config]) (:import [com.auth0.jwt.algorithms Algorithm] [com.auth0.jwt JWT JWTVerifier] [com.auth0.jwt.interfaces RSAKeyProvider] [com.auth0.jwk UrlJwkProvider Jwk] [java.security.interfaces RSAPublicKey])) (defn ^RSAKeyProvider jwt-key-provider ...
null
https://raw.githubusercontent.com/apibot-org/apibot/26c77c688980549a8deceeeb39f01108be016435/src/clj/apibot/auth.clj
clojure
(ns apibot.auth (:require [apibot.config :as config]) (:import [com.auth0.jwt.algorithms Algorithm] [com.auth0.jwt JWT JWTVerifier] [com.auth0.jwt.interfaces RSAKeyProvider] [com.auth0.jwk UrlJwkProvider Jwk] [java.security.interfaces RSAPublicKey])) (defn ^RSAKeyProvider jwt-key-provider ...
a19c2e5fff32b9dad7da5c582ba248c1535ac4c54a46a7ccc903e89a14c2a491
cxphoe/SICP-solutions
analyze.rkt
(load "expression.rkt") ;; make a copy of the original apply in the scheme (define apply-in-underlying-scheme apply) ;; evaluator for amb (define (ambeval exp env succeed fail) ((analyze exp) env succeed fail)) (define (analyze exp) (cond ((self-evaluating? exp) (analyze-self-evaluating exp)) ((...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%204-Metalinguistic%20Abstraction/3.Non-deterministic%20Computation/analyze.rkt
racket
make a copy of the original apply in the scheme evaluator for amb success continuation failure continuation success continuation for evaluating the predicate to obtain pred-value failure continuation for evaluating the predicate success continuation for this aproc success cintinuation for recursive call to ge...
(load "expression.rkt") (define apply-in-underlying-scheme apply) (define (ambeval exp env succeed fail) ((analyze exp) env succeed fail)) (define (analyze exp) (cond ((self-evaluating? exp) (analyze-self-evaluating exp)) ((quoted? exp) (analyze-quoted exp)) ((variable? exp) (analyze-var...
bc56601015c920617480482af1bc1a3974c58b4c02ef8e064ff53132035ae900
hjwylde/werewolf
Orphan.hs
| Module : Game . Werewolf . Command . Orphan Description : Orphan commands . Copyright : ( c ) , 2016 License : : Orphan commands . Module : Game.Werewolf.Command.Orphan Description : Orphan commands. Copyright : (c) Henry J. Wylde, 2016 License : BSD3 Maintainer : O...
null
https://raw.githubusercontent.com/hjwylde/werewolf/d22a941120a282127fc3e2db52e7c86b5d238344/app/Game/Werewolf/Command/Orphan.hs
haskell
* Commands
| Module : Game . Werewolf . Command . Orphan Description : Orphan commands . Copyright : ( c ) , 2016 License : : Orphan commands . Module : Game.Werewolf.Command.Orphan Description : Orphan commands. Copyright : (c) Henry J. Wylde, 2016 License : BSD3 Maintainer : O...
5d42e7a11f9dcca106c177e551391de37bd5d4a273dd1cc5582427f9b7dd3e3e
roehst/tapl-implementations
core.ml
open Format open Syntax open Support.Error open Support.Pervasive (* ------------------------ EVALUATION ------------------------ *) exception NoRuleApplies let rec isnumericval ctx t = match t with TmZero(_) -> true | TmSucc(_,t1) -> isnumericval ctx t1 | _ -> false let rec isval ctx t = match t with ...
null
https://raw.githubusercontent.com/roehst/tapl-implementations/23c0dc505a8c0b0a797201a7e4e3e5b939dd8fdb/fullsub/core.ml
ocaml
------------------------ EVALUATION ------------------------ ------------------------ SUBTYPING ------------------------ ------------------------ TYPING ------------------------
open Format open Syntax open Support.Error open Support.Pervasive exception NoRuleApplies let rec isnumericval ctx t = match t with TmZero(_) -> true | TmSucc(_,t1) -> isnumericval ctx t1 | _ -> false let rec isval ctx t = match t with TmTrue(_) -> true | TmFalse(_) -> true | TmString _ -> true ...
ad547f23f5cd338147af574ae2394bbedbf2929794c279b8a0915a0dcfe69884
byorgey/AoC
05.hs
# LANGUAGE RecordWildCards # import Control.Arrow import Data.List import Data.Maybe import Numeric main = interact $ lines >>> map readSeat >>> applyAll [solveA, solveB] >>> map show >>> unlines type Seat = (Int,Int) seatID :: Seat -> Int seatID (r,c) = r * 8 + c readSeat...
null
https://raw.githubusercontent.com/byorgey/AoC/30eb51eb41af9ca86b05de598a3a96d25bd428e3/2020/05/05.hs
haskell
# LANGUAGE RecordWildCards # import Control.Arrow import Data.List import Data.Maybe import Numeric main = interact $ lines >>> map readSeat >>> applyAll [solveA, solveB] >>> map show >>> unlines type Seat = (Int,Int) seatID :: Seat -> Int seatID (r,c) = r * 8 + c readSeat...
161b44243d5b1358e7fb1bc9a2417449431e6b3761ae0605e4e3c18ab99aad42
mstksg/inCode
Entry.hs
{-# LANGUAGE ImplicitParams #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Blog.View.Entry where import Blog.Types import Blog.Util import Blog.Util.Tag import Blog.View import Blog.View.Social import Control.Monad import ...
null
https://raw.githubusercontent.com/mstksg/inCode/e1f80a3dfd83eaa2b817dc922fd7f331cd1ece8a/src/Blog/View/Entry.hs
haskell
# LANGUAGE ImplicitParams # # LANGUAGE OverloadedStrings # shining bright like a diams ~
# LANGUAGE RecordWildCards # module Blog.View.Entry where import Blog.Types import Blog.Util import Blog.Util.Tag import Blog.View import Blog.View.Social import Control.Monad import Data.List import Data.Maybe import Data.St...
a4581cc756d4b9ba41fd359f96a01d940cc1bee42a065965d7d91d1df63f26cc
DerekCuevas/interview-cake-clj
core.clj
(ns find-in-ordered-set.core (:gen-class)) (def ^:private gt? (comp pos? compare)) (def ^:private eq? (comp zero? compare)) (defn- midpoint [start end] (-> (- end start) (/ 2) int (+ start))) (defn binary-search "O(lgn) - returns index of item in sorted vector, -1 if not found." [arr item] ...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/find-in-ordered-set/src/find_in_ordered_set/core.clj
clojure
(ns find-in-ordered-set.core (:gen-class)) (def ^:private gt? (comp pos? compare)) (def ^:private eq? (comp zero? compare)) (defn- midpoint [start end] (-> (- end start) (/ 2) int (+ start))) (defn binary-search "O(lgn) - returns index of item in sorted vector, -1 if not found." [arr item] ...
a49d4adcf55ab612df4786d1e5f93524481d0918e19b6df8ef183dafe693eab6
brendanhay/amazonka
RegexPatternSetReferenceStatement.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wafv2/gen/Amazonka/WAFV2/Types/RegexPatternSetReferenceStatement.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WAFV2.Types.RegexPatternSetReferenceStatement Stability : auto-generated | A rule statement used to search web request components for matches with regular expressions. To use this, create a RegexPatternSet that that set in this stat...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
512908b3ebeb0604781652d1ba08c7b6a3c31807f630fb14e3d2fb60db126051
vonzhou/LearnYouHaskellForGreatGood
myaction2.hs
main = do a <- (++) <$> getLine <*> getLine putStrLn $ "The two lines concatenated turned out to be:" ++ a
null
https://raw.githubusercontent.com/vonzhou/LearnYouHaskellForGreatGood/439d848deac53ef6da6df433078b7f1dcf54d18d/chapter11/myaction2.hs
haskell
main = do a <- (++) <$> getLine <*> getLine putStrLn $ "The two lines concatenated turned out to be:" ++ a
00f79c1769f8b448e0ec3156fc6ecb11e66ac223270d9145b94776f2d339cb60
kupl/FixML
sub69.ml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp = fun (exp, var) -> match exp with Const c -> Const 0 | Var s -> if s = var then Const 1 else Const 0 | Power (s, n) -> begin ...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff1/submissions/sub69.ml
ocaml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp = fun (exp, var) -> match exp with Const c -> Const 0 | Var s -> if s = var then Const 1 else Const 0 | Power (s, n) -> begin ...
db8d940e00833301bae31f9851e799af51a4ef7c0d84e83206e0c14b0ae97d2e
karimarttila/clojure
state.cljs
(ns simplefrontend.state (:require [re-frame.core :as re-frame])) ;; Subscriptions (re-frame/reg-sub ::current-route (fn [db] (:current-route db))) (re-frame/reg-sub ::jwt (fn [db] (:jwt db))) (re-frame/reg-sub ::debug (fn [db] (:debug db)))
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/re-frame-demo/src/cljs/simplefrontend/state.cljs
clojure
Subscriptions
(ns simplefrontend.state (:require [re-frame.core :as re-frame])) (re-frame/reg-sub ::current-route (fn [db] (:current-route db))) (re-frame/reg-sub ::jwt (fn [db] (:jwt db))) (re-frame/reg-sub ::debug (fn [db] (:debug db)))
f0033215d5300cf8d3d51766679913aa5af23b733226ea5712b466acff51f336
ont-app/igraph-vocabulary
macros.clj
(ns ont-app.igraph-vocabulary.macros (:require [ont-app.igraph.core :as igraph :refer [normal-form]] [ont-app.igraph-vocabulary.io :as ig-io] ) ) (defmacro graph-source "Returns the contents of `edn-source` read in with updated ns metadata. NOTE: typical usage is to embed contents of an ontology into...
null
https://raw.githubusercontent.com/ont-app/igraph-vocabulary/e044ae713318b9ad0820dd1e1f782abb746beb08/src/ont_app/igraph_vocabulary/macros.clj
clojure
(ns ont-app.igraph-vocabulary.macros (:require [ont-app.igraph.core :as igraph :refer [normal-form]] [ont-app.igraph-vocabulary.io :as ig-io] ) ) (defmacro graph-source "Returns the contents of `edn-source` read in with updated ns metadata. NOTE: typical usage is to embed contents of an ontology into...
c51203047b1095720a6201d4fac1da7bd80d3b186f5cb4f1b7dde03cc1f0393a
jaredponn/Fly-Plane-Fly
Buttons.hs
{-# LANGUAGE BangPatterns #-} module Buttons where import Control.Monad.State.Lazy import Control.Monad.Reader import Linear.V2 import SDL import Aabb import GuiTransforms import GameVars data ButtonAttr = ButtonAttr { rect :: {-# UNPACK #-} !(Rectangle Float) , aabb :: {-# UNPACK #-} !...
null
https://raw.githubusercontent.com/jaredponn/Fly-Plane-Fly/8e250f29216f2f75dac2dd0235a2b0243d601620/src/Buttons.hs
haskell
# LANGUAGE BangPatterns # # UNPACK # # UNPACK # buttonEffectFromMouse takes an action and the current input and will apply that function if the mouse is over the button and clicking it action to modify the game current input of the game FUNCTIONS TO CREATE BUTTONS lengths. Width, height y position lengths. Wi...
module Buttons where import Control.Monad.State.Lazy import Control.Monad.Reader import Linear.V2 import SDL import Aabb import GuiTransforms import GameVars , texture :: Texture} type Button m = ReaderT (ButtonAttr) m () -> Button m buttonEffectFromM...
accd8f9625dfdeea377fa566b705d305ccfa88208648e1e9ac9c9ad40f8c649b
vraid/earthgen
util.rkt
#lang racket (require "util/vector-util.rkt") (provide (all-from-out "util/vector-util.rkt"))
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/package/vraid/util.rkt
racket
#lang racket (require "util/vector-util.rkt") (provide (all-from-out "util/vector-util.rkt"))
eaa5580d3025cc9515209211409bf6026bb1ab313232e7069b3142edbe1e6a2c
dinosaure/overlap
test_runes.ml
#!/usr/bin/env ocaml #use "topfind" ;; #require "astring" ;; #require "fpath" ;; #require "bos" ;; open Rresult let is_opt x = String.length x > 1 && x.[0] = '-' let parse_opt_arg x = let l = String.length x in if x.[1] <> '-' then if l = 2 then x, None else String.sub x 0 2, Some (String.sub x 2 (l -...
null
https://raw.githubusercontent.com/dinosaure/overlap/dc09b26e904d3d8ecdd28fa4efb144d81ffa3df9/test/test_runes.ml
ocaml
#!/usr/bin/env ocaml #use "topfind" ;; #require "astring" ;; #require "fpath" ;; #require "bos" ;; open Rresult let is_opt x = String.length x > 1 && x.[0] = '-' let parse_opt_arg x = let l = String.length x in if x.[1] <> '-' then if l = 2 then x, None else String.sub x 0 2, Some (String.sub x 2 (l -...
6330413b15c0993408b1a7f3bfd2e19bbb18bda67d6567d4853766a4b63e5543
mathematical-systems/clml
dlasy2.lisp
;;; Compiled by f2cl version: ( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:0...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/lapack/dlasy2.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:03:25 rtoy Exp $ " " $ I d :...
013b219187515591d05d8e71be06c0e6fe024e190830a548499e2b67c7edb20e
rodo/tsung-gis
slippymap.erl
% % @doc OpenStreetMap slippy map tile numbers % @author < > % [] % 2013,2014 Rodolphe Quiedeville % < a href=" / wiki / Slippy_map_tilenames"> / wiki / Slippy_map_tilenames</a > -module(slippymap). -export([deg2num/3]). -export([num2deg/3,num2bbox/3]). -export([tmstowms/1]). -export([tile2lat/2,tile2lon...
null
https://raw.githubusercontent.com/rodo/tsung-gis/d6fc43e5c21d7d12f703cf0766dcd0900ab1d6bc/src/slippymap.erl
erlang
@doc OpenStreetMap slippy map tile numbers [] @doc convert geometric coordinate to tile numbers @doc convert tile numbers to geometric coordinate Return a tuple : {longitude, latitude} @doc convert tile numbers to bouding box double n = Math.PI - (2.0 * Math.PI * y) / Math.pow(2.0, z); return Ma...
@author < > 2013,2014 Rodolphe Quiedeville < a href=" / wiki / Slippy_map_tilenames"> / wiki / Slippy_map_tilenames</a > -module(slippymap). -export([deg2num/3]). -export([num2deg/3,num2bbox/3]). -export([tmstowms/1]). -export([tile2lat/2,tile2lon/2]). @doc Convert list_url DynVar to list of coord tmsto...
ee03acdd89df5033c8d252e7d660a4be4541b377953e00e123bb40b6860cdcf7
finnishtransportagency/harja
valikatselmukset.clj
(ns harja.palvelin.palvelut.kulut.valikatselmukset (:require [com.stuartsierra.component :as component] [slingshot.slingshot :refer [throw+ try+]] [taoensso.timbre :as log] [specql.core :refer [columns]] [harja.domain.kulut.valikatselmus :as valikatselmus] [harja.domain.muokkaustiedot :as muok...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/e54f1e98af6dfaad959cc915c93f63619ba4c4ed/src/clj/harja/palvelin/palvelut/kulut/valikatselmukset.clj
clojure
sallimalla aikavälitarkistus. Esim. ; = > 63235.559569000005
(ns harja.palvelin.palvelut.kulut.valikatselmukset (:require [com.stuartsierra.component :as component] [slingshot.slingshot :refer [throw+ try+]] [taoensso.timbre :as log] [specql.core :refer [columns]] [harja.domain.kulut.valikatselmus :as valikatselmus] [harja.domain.muokkaustiedot :as muok...
f1a2ace98da3633b33a4481bb686b7508c7670b66229a748a819733bf1a95b4c
hanshuebner/vlm
sysdcl.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : SCT ; Base : 10 ; Lowercase : Yes -*- (defsystem Alpha-AXP-Assembler (:pretty-name "Alpha AXP Assembler" :default-pathname "VLM:ASSEMBLER;") (:serial "alphapckg" "alphadsdl" "alpha" "sct-support")) (defsystem POWERPC-Assembler (:pre...
null
https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/assembler/sysdcl.lisp
lisp
Syntax : Common - Lisp ; Package : SCT ; Base : 10 ; Lowercase : Yes -*-
(defsystem Alpha-AXP-Assembler (:pretty-name "Alpha AXP Assembler" :default-pathname "VLM:ASSEMBLER;") (:serial "alphapckg" "alphadsdl" "alpha" "sct-support")) (defsystem POWERPC-Assembler (:pretty-name "PowerPC Assembler" :default-pathname "VLM:ASSEMBLER;") (:serial "powerpc...
13c1bdadd55d7c43c68ffe062e9ceb1e42ab4bb7ad34cc4087e739b23d63e428
emezeske/lein-cljsbuild
config.clj
(ns leiningen.cljsbuild.config "Utilities for parsing the cljsbuild config." (:require [clojure.pprint :as pprint] [leiningen.cljsbuild.util :as util])) (defn in-target-path [target-path subpath] (str target-path "/cljsbuild-" subpath)) (defn- compiler-output-dir-base [target-path] (in-target-path targe...
null
https://raw.githubusercontent.com/emezeske/lein-cljsbuild/089193c74e362c143d30dfca21a21e95c7ca112a/plugin/src/leiningen/cljsbuild/config.clj
clojure
(ns leiningen.cljsbuild.config "Utilities for parsing the cljsbuild config." (:require [clojure.pprint :as pprint] [leiningen.cljsbuild.util :as util])) (defn in-target-path [target-path subpath] (str target-path "/cljsbuild-" subpath)) (defn- compiler-output-dir-base [target-path] (in-target-path targe...