_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
15cdf20874268ace93a5d161660a52847c230a16308a9f556849bb23dd31bc5f
samply/blaze
comparison_operators_test.clj
(ns blaze.elm.compiler.comparison-operators-test "12. Comparison Operators Section numbers are according to -logicalspecification.html." (:require [blaze.elm.compiler :as c] [blaze.elm.compiler.comparison-operators] [blaze.elm.compiler.core :as core] [blaze.elm.compiler.test-util :as tu] [b...
null
https://raw.githubusercontent.com/samply/blaze/693d07d8fbf9ac4e11af6684978e108bbd193780/modules/cql/test/blaze/elm/compiler/comparison_operators_test.clj
clojure
The Equal operator returns true if the arguments are equal; false if the arguments are known unequal, and null otherwise. Equality semantics are defined to be value-based. For simple types, this means that equality returns true if and only if the result of each argument evaluates to the same value. for the ind...
(ns blaze.elm.compiler.comparison-operators-test "12. Comparison Operators Section numbers are according to -logicalspecification.html." (:require [blaze.elm.compiler :as c] [blaze.elm.compiler.comparison-operators] [blaze.elm.compiler.core :as core] [blaze.elm.compiler.test-util :as tu] [b...
851cc98724473da88000d9f1a860d716e736dfe04b3979ad5b160923cb0ff61c
mmottl/gsl-ocaml
randist.ml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 GAUSSIAN let () = Error.init () external gaussian : Rng.t -> sigma:float -> float = "ml_gsl_ran_gaussian" external gaussian_r...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/randist.ml
ocaml
MULTIVARIATE EXPONENTIAL LAPLACE RAYLEIGH RAYLEIGH TAIL LANDAU LEVY ALPHA-STABLE LEVY SKEW ALPHA-STABLE GAMMA FLAT DIRICHLET F DISTRIBUTION T DISTRIBUTION BETA LOGISTIC PARETO TYPE 1 GUMBEL TYPE 2 GUMBEL DISCRETE POISSON BERNOULLI BINOMIAL MULTINOMIAL NEGATIVE BINOMIAL G...
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 GAUSSIAN let () = Error.init () external gaussian : Rng.t -> sigma:float -> float = "ml_gsl_ran_gaussian" external gaussian_r...
cafcf510f8d5d44f8105e5ab9d30fe86151e6fe63f018caaa862bf89274ae6ca
Netflix/mantis-mql
limit.clj
; Copyright 2022 Netflix , Inc. ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software distributed unde...
null
https://raw.githubusercontent.com/Netflix/mantis-mql/94600fc687afd380e6a063806a5f0dd0be218f34/mql-jvm/src/main/clojure/io/mantisrx/mql/jvm/compilers/limit.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing pe...
Copyright 2022 Netflix , Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns io.mantisrx.mql.jvm.compilers.limit) (defn limit->fn "Transforms an integer/long n into a limit map. n: A whole number. Returns a map of {:limit n} for use with rx/take." [n] {:limit (n {})})
bfbc29f57a451ede8b4acba22759aace40577bdeeeee8ab2573a72054d5828bf
OlivierSohn/hamazed
Color.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE BangPatterns #-} module Imj.Server.Color ( ColorScheme(..) , mkCenterColor , mkClientColorFromCenter ) where import Imj.Prelude import Data.Char(toLower) import q...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-server/src/Imj/Server/Color.hs
haskell
# LANGUAGE BangPatterns # # UNPACK # It will cycle through the colors of same intensity than the color passed as argument. we want the following mapping: 0 -> 0 1 -> 1 2 -> -1 4 -> -2 ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module Imj.Server.Color ( ColorScheme(..) , mkCenterColor , mkClientColorFromCenter ) where import Imj.Prelude import Data.Char(toLower) import qualified Data.List as List imp...
b3dff17f460be31b4dc18edeee713c1f1febc3945f91c4e0341c66019f33856f
dwayne/eopl3
ex1.24.rkt
#lang racket (define (every? pred lst) (if (null? lst) #t (and (pred (car lst)) (every? pred (cdr lst))))) (module+ test (require rackunit) (check-false (every? number? '(a b c 3 e))) (check-true (every? number? '(1 2 3 4 5))))
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/01-ch1/racket/ex1.24.rkt
racket
#lang racket (define (every? pred lst) (if (null? lst) #t (and (pred (car lst)) (every? pred (cdr lst))))) (module+ test (require rackunit) (check-false (every? number? '(a b c 3 e))) (check-true (every? number? '(1 2 3 4 5))))
617a0e15b1102e81b45654696232b2c551b03a515c7506c0484a86621d2fedc4
deobald/jok
playlist.clj
(ns jukebox-web.views.playlist (:require [jukebox-web.views.layout :as layout] [jukebox-player.core :as player] [jukebox-web.models.library :as library] [jukebox-web.models.playlist-track :as playlist-track] [jukebox-web.models.user :as user]) (:use [hiccup core page]...
null
https://raw.githubusercontent.com/deobald/jok/e1b9373603ad7fcc3dbc7304cb8b88b8163e73bc/src/jukebox_web/views/playlist.clj
clojure
(ns jukebox-web.views.playlist (:require [jukebox-web.views.layout :as layout] [jukebox-player.core :as player] [jukebox-web.models.library :as library] [jukebox-web.models.playlist-track :as playlist-track] [jukebox-web.models.user :as user]) (:use [hiccup core page]...
f70ad8a5cb6ec08103ac32645bb1a548ac3c44a72d031106fb0e16bf8eca8438
coingaming/lnd-client
Client.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module LndGrpc.Client ( runUnary, runStreamServer, ) where import Control.Exception (BlockedIndefinitelyOnMVar (..)) import Data.ProtoLens.Message import Data.ProtoLens.Service.Types (HasMethod, HasMethodImpl (..)) import...
null
https://raw.githubusercontent.com/coingaming/lnd-client/f7eadd2953c24cdcaa641679fe800178dbd27f9d/src/LndGrpc/Client.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module LndGrpc.Client ( runUnary, runStreamServer, ) where import Control.Exception (BlockedIndefinitelyOnMVar (..)) import Data.ProtoLens.Message import Data.ProtoLens.Service.Types (HasMethod, HasMethodImpl (..)) import...
7ff924741edd38f023130b13170ab58da411804265056124d71dd792d6181533
opencog/agi-bio
rule-helpers.scm
" Helper functions for rule application (get-set-members set) (cog-get-supersets A) (cog-apply-rule rule atoms #:optional no-focus-set) (define (create-not-gene-set A) (cog-define-name rule-symbol-name) apply AttractionRule with no VariableNodes (define (pln-attraction-rule-no-variables subsetAB subsetNot...
null
https://raw.githubusercontent.com/opencog/agi-bio/9c03d9b0e81cb8a8b3a58179f3134f336e5dbdb6/reasoning/simple-by-hand/local-rules/rule-helpers.scm
scheme
(cog-define-name rule-symbol-name) Helper function for naming rules Usage: produces the same result as: ------------------------------------------------------------------------------- Define temporary PLN rule-based system ;; Delete any previous rule associations with temp-rbs cog-delete sets temp-rbs to ...
" Helper functions for rule application (get-set-members set) (cog-get-supersets A) (cog-apply-rule rule atoms #:optional no-focus-set) (define (create-not-gene-set A) (cog-define-name rule-symbol-name) apply AttractionRule with no VariableNodes (define (pln-attraction-rule-no-variables subsetAB subsetNot...
e63b72dde29127225ea764f07de344d05b67177e87aa298cf6128a97dcbad5d0
gigamonkey/monkeylib-utilities
lists.lisp
(in-package :com.gigamonkeys.utilities) (defun mklist (x) "`x' if it is a list, otherwise a singleton list containing `x'." (if (listp x) x (list x))) (defun unlist (x) "If `x' is a singleton list, the single item; otherwise `x'." (if (not (rest x)) (first x) x)) (defun run-length-encoding (list &key (test '...
null
https://raw.githubusercontent.com/gigamonkey/monkeylib-utilities/3920a67b0cdfeb87d738634545c8bf1e7207fdb4/lists.lisp
lisp
(in-package :com.gigamonkeys.utilities) (defun mklist (x) "`x' if it is a list, otherwise a singleton list containing `x'." (if (listp x) x (list x))) (defun unlist (x) "If `x' is a singleton list, the single item; otherwise `x'." (if (not (rest x)) (first x) x)) (defun run-length-encoding (list &key (test '...
0a47cecb22199eec8dc4983ae92bc46f63ecc266e50a1cd70117a598e0bd7237
matchwood/acid-world
Postgresql.hs
# LANGUAGE UndecidableInstances # module Acid.Core.Backend.Postgresql where import RIO import qualified RIO.List as L import Conduit import Database.PostgreSQL.Simple as PSQL import Database.PostgreSQL.Simple.ToField import Database.PostgreSQL.Simple.ToRow import Generics.SOP import Generics.SOP.NP import qualifie...
null
https://raw.githubusercontent.com/matchwood/acid-world/04a3aa39b585a477a68639d81fc27ae04b9e5e35/src/Acid/Core/Backend/Postgresql.hs
haskell
# LANGUAGE UndecidableInstances # module Acid.Core.Backend.Postgresql where import RIO import qualified RIO.List as L import Conduit import Database.PostgreSQL.Simple as PSQL import Database.PostgreSQL.Simple.ToField import Database.PostgreSQL.Simple.ToRow import Generics.SOP import Generics.SOP.NP import qualifie...
94ff41f729c06e79f5e98b380aec89e3e5f4d3ed87e1108ec0dcb58b3e74c1fb
bmeurer/ocaml-experimental
jitaux.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , U...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/toplevel/jitaux.ml
ocaml
********************************************************************* Objective Caml ...
, University of Siegen Copyright 2011 Compilerbau und Softwareanalyse , Universität Siegen . All rights reserved . This file is distri- buted under the terms of the Q Public License version 1.0 . $ Id$ open Cmm open Emitaux open Linearize module A...
1a6580a17e8f1ce626f0813e646f8139450bee3576f88ba0e02aac1e898596ab
mzp/coq-for-ipad
compact.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/lex/compact.mli
ocaml
********************************************************************* Objective Caml ...
, 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 Q Public License version 1.0 . $ I d : compact.mli 9547 2010 - 01 - ...
9b197b4d4f369addfcecadebf42194262b7599ec012c982508e651025bdf576b
PLSysSec/FaCT
intrinsics.ml
open Llvm let built : Llvm.llvalue -> unit = ignore type intrinsic = | Memcpy of int | Memset of int | SMemset of int | Rotl of int | Rotr of int | SelectAsm of int | SelectXor of int | SelectSel of int | SelectAsm8 of int | CmovAsm of int | CmovXor of int | CmovSel of int | CmovAsm8 of int ...
null
https://raw.githubusercontent.com/PLSysSec/FaCT/c08b2e00751b28e1f25d031c3afafc544acfb892/src/intrinsics.ml
ocaml
we expect this function to get inlined and disappear at high optimization levels XXX measure speed/correctness on using =r instead of =&r
open Llvm let built : Llvm.llvalue -> unit = ignore type intrinsic = | Memcpy of int | Memset of int | SMemset of int | Rotl of int | Rotr of int | SelectAsm of int | SelectXor of int | SelectSel of int | SelectAsm8 of int | CmovAsm of int | CmovXor of int | CmovSel of int | CmovAsm8 of int ...
413506ba1fcca614fe2f28f7c9c7be45ad11015f0e45b0b13087a10ccd54324e
gebi/jungerl
demo.erl
%% Demo file for the Syntax Tools package . %% %% The program is self-instructing. Compile `demo' from the shell and %% execute `demo:run()'. -module(demo). -export([run/0, run_1/0, run_2/0, run_3/0, view/1, view/2, view/3]). small_file() -> "test.erl". big_file() -> "erl_comment_scan.erl". run() -> make:all...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/syntax_tools/examples/demo.erl
erlang
The program is self-instructing. Compile `demo' from the shell and execute `demo:run()'.
Demo file for the Syntax Tools package . -module(demo). -export([run/0, run_1/0, run_2/0, run_3/0, view/1, view/2, view/3]). small_file() -> "test.erl". big_file() -> "erl_comment_scan.erl". run() -> make:all([load]), io:fwrite("\n\n** Enter `demo:run_1()' to parse and pretty-print\n" "the file \"...
c38ef8ade7ea864dddb543323510449f4df8a4c36e7340f03177b32f45e3e660
bennn/dissertation
for-each.rkt
#lang typed/racket/base (require racket/performance-hint "../unsafe.rkt" "utils.rkt") (provide (all-defined-out)) (define-syntax-rule (for-each-array+data-index ds-expr f-expr) (let*: ([ds : Indexes ds-expr] [dims : Index (vector-length ds)]) (define-syntax-rule (f js j) ((a...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/jpeg/base/math/private/array/for-each.rkt
racket
#lang typed/racket/base (require racket/performance-hint "../unsafe.rkt" "utils.rkt") (provide (all-defined-out)) (define-syntax-rule (for-each-array+data-index ds-expr f-expr) (let*: ([ds : Indexes ds-expr] [dims : Index (vector-length ds)]) (define-syntax-rule (f js j) ((a...
2982c607943a5d27c87425b76190bf2a6f011438886a71c82d39df36eedd5772
spell-music/csound-expression
MiniPops.hs
| Drums of the Korg Mini Pops 7 drum machine ( recoded from ) . module Csound.Catalog.Drum.MiniPops( MpSpec(..), bass, snare1, snare2, rimShot, cymbal1, cymbal2, bongo1, bongo2, bongo3, claves, cowbell, guiro, maracas, quijada, tamb, -- * Generic bass', bdSpec, snare1', snSpec1, snare2', snSpec2, ri...
null
https://raw.githubusercontent.com/spell-music/csound-expression/29c1611172153347b16d0b6b133e4db61a7218d5/csound-catalog/src/Csound/Catalog/Drum/MiniPops.hs
haskell
* Generic * Sample ** Generic ----------------------------------------------------- Sampler | Bass drum | Snare 1 | Snare 2 | Rim shot | Cymbal 1 | Cymbal 2 | Bongo 1 | Bongo 2 | Claves | Cowbell | Quijada | Tambourine
| Drums of the Korg Mini Pops 7 drum machine ( recoded from ) . module Csound.Catalog.Drum.MiniPops( MpSpec(..), bass, snare1, snare2, rimShot, cymbal1, cymbal2, bongo1, bongo2, bongo3, claves, cowbell, guiro, maracas, quijada, tamb, bass', bdSpec, snare1', snSpec1, snare2', snSpec2, rimShot', rimSpec...
2f73dee6841c3158f4668f6d35f296863abe7ade8dffe16506eee168d01fe822
tweag/servant-oauth2
OAuth2.hs
{-| A modern wrapper around <-middleware-auth/>. This library can be used to add type-level authentication and authorisation into a Servant api via OAuth2. You might be interested in this if you are using Servant as a light-weight webserver serving 'Html', for example. -} {-# language TypeFamilies #-} module Servant...
null
https://raw.githubusercontent.com/tweag/servant-oauth2/b8a6e9189986167ef9f4ada1f93e673e9fdd305b/src/Servant/OAuth2.hs
haskell
| A modern wrapper around <-middleware-auth/>. This library can be used to add type-level authentication and authorisation into a Servant api via OAuth2. You might be interested in this if you are using Servant as a light-weight webserver serving 'Html', for example. # language TypeFamilies # | A simple way to add a...
module Servant.OAuth2 where import "exceptions" Control.Monad.Catch (MonadThrow (..)) import "mtl" Control.Monad.Except (MonadError) import "base" Control.Monad.IO.Class (MonadIO, liftIO) import "bytestring" Data.ByteString (ByteString) import "base" Data.Kind (Type) import "text" Data.Text (Text) import "text" Data...
549995400e6fcbb48eeb5c9c3fa9a4023f9cb0cd3d033ef57f57afd9e41747dd
alezost/guix-config
games.scm
;;; games.scm --- Game packages Copyright © 2019–2021 < > ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any later version. ;; ...
null
https://raw.githubusercontent.com/alezost/guix-config/1fb884c7b1225a875537fe2856d3866f817d328b/modules/al/guix/packages/games.scm
scheme
games.scm --- Game packages This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
Copyright © 2019–2021 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (define-module (al guix packages games) #:use-module (guix packages) #...
25e584746169050bf6d60065fd19a3af99797eaa86e9a592e5594f8a5c1feb01
ijvcms/chuanqi_dev
log_factory.erl
%%%------------------------------------------------------------------- %%% @author qhb ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 06 . 五月 2016 下午4:47 %%%------------------------------------------------------------------- -module(log_factory). -author("qhb"). -include("common.hrl"). %% API -export([...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/log/log_factory.erl
erlang
------------------------------------------------------------------- @author qhb @doc @end ------------------------------------------------------------------- API
( C ) 2016 , < COMPANY > Created : 06 . 五月 2016 下午4:47 -module(log_factory). -author("qhb"). -include("common.hrl"). -export([ get_poolId/1, get_tablename/1, log_db/1, get_create_sql/1 ]). get_poolId(db_log_shop_once) -> ?DB_POOL_DATA; get_poolId(_) -> ?DB_POOL_LOG. 自定义日志存储的表名 get_tablename(db_log_shop_...
224a37b32996e3ebf321c50b001c22e35b6dbdf559e9bcc56b1e5f878328b7de
ppaml-op3/insomnia
SampleParameters.hs
# LANGUAGE DeriveDataTypeable , DeriveGeneric , TemplateHaskell # module Insomnia.Common.SampleParameters where import Control.Lens import Data.Typeable (Typeable) import GHC.Generics (Generic) import Unbound.Generics.LocallyNameless (Alpha) data UseDefault = UseDefault deriving (Show, Eq, Typeable...
null
https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Insomnia/Common/SampleParameters.hs
haskell
# LANGUAGE DeriveDataTypeable , DeriveGeneric , TemplateHaskell # module Insomnia.Common.SampleParameters where import Control.Lens import Data.Typeable (Typeable) import GHC.Generics (Generic) import Unbound.Generics.LocallyNameless (Alpha) data UseDefault = UseDefault deriving (Show, Eq, Typeable...
f747bfa59d9f2ad5c04d0c43a50990c210dd4d5482fdb0df2ab7595686725a99
pallet/pallet
primitives.clj
(ns pallet.core.primitives "Base operation primitives for pallet." (:require [clojure.tools.logging :as logging] [pallet.algo.fsm.fsm-dsl :refer [event-handler event-machine-config fsm-name on-enter state valid-transitions]] [pallet.algo.fsmop...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/src/pallet/core/primitives.clj
clojure
TODO: Provide support for controlling retry count, standoff, etc, although this might be better added externally. ## Compute service state explicit overrides default ## Result predicates ## Node count adjustment # Exception reporting
(ns pallet.core.primitives "Base operation primitives for pallet." (:require [clojure.tools.logging :as logging] [pallet.algo.fsm.fsm-dsl :refer [event-handler event-machine-config fsm-name on-enter state valid-transitions]] [pallet.algo.fsmop...
78904ade734cd539682fb25cba9c6c4ccfb31cf7f60ad81827cd6c4159c536d3
inaka/worker_pool
wpool_utils.erl
This file is licensed 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 License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is dis...
null
https://raw.githubusercontent.com/inaka/worker_pool/6aedba699bd50f148e3a1bebf3d0c268d7c66f9a/src/wpool_utils.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 permissions and limitations under the License. @doc Common functions for wpool_p...
This file is licensed 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 @author < > -module(wpool_utils). -author(''). -export([task_init/2, task_...
83b5bf0ea5be5b3a47b39d3d72736ddd844a6add607b689a74170d82b75c9807
quephird/fun-with-quil
tennis-ball.clj
(ns fun-with-quil.animations.tennis-ball (:use quil.core)) (def screen-w 800) (def screen-h 800) (defn seam [θ w] [(* 300 (sin (radians θ)) (cos (* w (cos (radians θ))))) (* 300 (sin (radians θ)) (sin (* w (cos (radians θ))))) (* 300 (cos (radians θ)))]) (defn setup [] (smooth) (no-fill) (color-mode ...
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/animations/tennis-ball.clj
clojure
This is to create the streaking effect
(ns fun-with-quil.animations.tennis-ball (:use quil.core)) (def screen-w 800) (def screen-h 800) (defn seam [θ w] [(* 300 (sin (radians θ)) (cos (* w (cos (radians θ))))) (* 300 (sin (radians θ)) (sin (* w (cos (radians θ))))) (* 300 (cos (radians θ)))]) (defn setup [] (smooth) (no-fill) (color-mode ...
60fcbcb58a6d0ceca851cacd6c7be80032ee97622be8d8448136b54036c80be0
jeromesimeon/Galax
norm_ident_top.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/normalization/norm_ident_top.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : norm_ident_top.mli , v 1.4 2007/05/16 15:32:11 mff Exp $ open Xquery_ast open Xquery_core_ast open Norm_context open Processing_context val preprocess_ident_prolog : processing_context -> prolog -> (norm_interface_table...
00b32d41b225227dfde0b3af05c4d1bffe0cb8c2c4c5d459de197da07d6f6469
scalaris-team/scalaris
yaws_ticker.erl
-module(yaws_ticker). -author(''). -export([ticker/3]). %% Moved here from module yaws to ease purging of yaws. %% cschultz ticker(Time, To, Msg) -> receive {'EXIT', _, _} -> exit(normal) after Time -> To ! Msg end, ?MODULE:ticker(Time, To, Msg).
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/contrib/yaws/src/yaws_ticker.erl
erlang
Moved here from module yaws to ease purging of yaws. cschultz
-module(yaws_ticker). -author(''). -export([ticker/3]). ticker(Time, To, Msg) -> receive {'EXIT', _, _} -> exit(normal) after Time -> To ! Msg end, ?MODULE:ticker(Time, To, Msg).
a9c0ab95d1acebc4562243dc1203f02572a267b0829bb869973e62089406f1c2
AccelerationNet/talcl
tal-examples.lisp
(in-package :talcl) ;; This file builds html dom nodes for the examples so make sure ;; we have that package available (eval-when (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) (asdf:oos 'asdf:load-op 'buildnode-xhtml)) ;; Makes about the simplest possible plain text template and ;; returns the result of calling it (d...
null
https://raw.githubusercontent.com/AccelerationNet/talcl/eb9ae80f3d5254f3e2e61018434cd71ecf957722/examples/tal-examples.lisp
lisp
This file builds html dom nodes for the examples so make sure we have that package available Makes about the simplest possible plain text template and returns the result of calling it Makes a very simple plain text template that splices a single value into your simple template the package of the symbols in the e...
(in-package :talcl) (eval-when (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) (asdf:oos 'asdf:load-op 'buildnode-xhtml)) (defun easy-template-example () (let ((fn (talcl:compile-tal-string "<tal:tal xmlns:tal=\"-lisp.net/project/bese/tal/core\" >Super Simple Template</tal:tal>"))) (t...
b8f1d89f5752f528c8dcca21b3d5dde5576038410f452228a0582dedbd74349d
clojure-interop/java-jdk
ParseConversionEventImpl.clj
(ns javax.xml.bind.helpers.ParseConversionEventImpl "Default implementation of the ParseConversionEvent interface. JAXB providers are allowed to use whatever class that implements the ValidationEvent interface. This class is just provided for a convenience." (:refer-clojure :only [require comment defn ->]) ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/bind/helpers/ParseConversionEventImpl.clj
clojure
(ns javax.xml.bind.helpers.ParseConversionEventImpl "Default implementation of the ParseConversionEvent interface. JAXB providers are allowed to use whatever class that implements the ValidationEvent interface. This class is just provided for a convenience." (:refer-clojure :only [require comment defn ->]) ...
f5ceb5f980f4b8e1bbc0f3ca8e8cf48555ba2dbfb2d1e58246d261a4228db776
elaforge/karya
Ly.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Utilities for calls to cooperate with the lilypond backend. module Derive.Call.Ly where import qualified Data.Map as Map import qualified Util.Seq as Seq import qualified Util.Texts...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Derive/Call/Ly.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Utilities for calls to cooperate with the lilypond backend. * utils for ly calls ^ Run if this is a lilypond derive. ^ Run if this is a normal derive. ^ Run if this is a lilypond derive. ^ Run if this is...
Copyright 2013 module Derive.Call.Ly where import qualified Data.Map as Map import qualified Util.Seq as Seq import qualified Util.Texts as Texts import qualified Derive.Args as Args import qualified Derive.Call as Call import qualified Derive.Call.Post as Post import qualified Derive.Call.Sub as Sub import quali...
2609e66b507280ce7037aa5e22e405be9aa155acb9c67a1a58098f00c4a57f1c
klarna/mnesia_eleveldb
mnesia_eleveldb_xform.erl
%%---------------------------------------------------------------- Copyright ( c ) 2013 - 2016 Klarna AB %% 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 License at %% %% ...
null
https://raw.githubusercontent.com/klarna/mnesia_eleveldb/1bbeb9243cf0e7f3ef36a713bf657b3ebf31fb63/test/mnesia_eleveldb_xform.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 permissions an...
Copyright ( c ) 2013 - 2016 Klarna AB 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 Usage : : recompile(Extension ) . U...
4cb6240ba49b6a3b5e6623f39bbd22b6b2a394c953e76fec733f88dfa0d67463
gafiatulin/codewars
Brainfuck.hs
-- My smallest code interpreter (aka Brainf**k) -- module Brainfuck (executeString) where import Data.Char (chr, ord) import Data.Maybe (mapMaybe) data BFCommand = GoR | GoL | Inc | Dec | Print | Read | LoopL | LoopR deriving (Eq) data Tape a = Tape [a] a [a] type BFSource = [BFCommand] moveRight :: Tape a -> Tap...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/2%20kyu/Brainfuck.hs
haskell
My smallest code interpreter (aka Brainf**k)
module Brainfuck (executeString) where import Data.Char (chr, ord) import Data.Maybe (mapMaybe) data BFCommand = GoR | GoL | Inc | Dec | Print | Read | LoopL | LoopR deriving (Eq) data Tape a = Tape [a] a [a] type BFSource = [BFCommand] moveRight :: Tape a -> Tape a moveRight (Tape ls p (r:rs)) = Tape (p:ls) r rs ...
ca68726577566b612e9d17347fddd3c79e2957bd251004f0f7ec70ee4de5f492
JunSuzukiJapan/cl-reex
scan-test.lisp
(defpackage scan-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :scan-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 5) ;; blah blah blah. (defparameter logger (make-instance 'log...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/tests/scan-test.lisp
lisp
blah blah blah.
(defpackage scan-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip)) (in-package :scan-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 5) (defparameter logger (make-instance 'logger)) (defparamete...
29aedc53c42451e90cfe603fe49a2775006dc639ff3134ce5408b30f2a1508e1
REPROSEC/dolev-yao-star
Lib_Sequence_Lemmas.ml
open Prims let get_block_s : 'a . Prims.nat -> Prims.pos -> 'a Lib_Sequence.seq -> Prims.nat -> ('a, unit) Lib_Sequence.lseq = fun len -> fun blocksize -> fun inp -> fun i -> let j = i / blocksize in let b = FStar_Seq_Base.slice inp (j * blocksiz...
null
https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Lib_Sequence_Lemmas.ml
ocaml
open Prims let get_block_s : 'a . Prims.nat -> Prims.pos -> 'a Lib_Sequence.seq -> Prims.nat -> ('a, unit) Lib_Sequence.lseq = fun len -> fun blocksize -> fun inp -> fun i -> let j = i / blocksize in let b = FStar_Seq_Base.slice inp (j * blocksiz...
e25ab0bd4650d00c291ebcfabeee75d0e623c37b7109b9f069c71e3466057f12
maximedenes/native-coq
unification.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/pretyping/unification.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** if lname_typ is [xn,An;..;x1,A1] an...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
70d304fd141987d5f164921af6f64cbcfcd88cb947106cbc5b2fcc3a3c198ae7
podenv/podenv
Env.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # # LANGUAGE ImportQualifiedPost # # LANGUAGE KindSignatures # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signature...
null
https://raw.githubusercontent.com/podenv/podenv/6964a88e264e060ed8307443a4dbfa13ddf6ff85/src/Podenv/Env.hs
haskell
# LANGUAGE OverloadedStrings # | The platform environment * Lenses * For testing These values depends on the runtime, and it can be costly to resolve them. Thus we only query the information once before switching the state from Unknown to Resolved. See the 'resolveAppEnv' function below environment query ...
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # # LANGUAGE ImportQualifiedPost # # LANGUAGE KindSignatures # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # # OPTIONS_GHC -fno - warn - mis...
0878eecf4c11ae7685be6bd49562306a3854e97c371229f88df38dc070b32d68
fractalide/fractalide
place-holder.rkt
#lang racket/base (require fractalide/modules/rkt/rkt-fbp/agent fractalide/modules/rkt/rkt-fbp/agents/gui/helper) (require racket/gui/base racket/match racket/list) (require (rename-in racket/class [send class-send])) (define (generate input) (lambda (frame) (let* ([ph (new panel% [...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/gui/place-holder.rkt
racket
TODO: manage orientation in port out port TRUE : A message in the input port FALSE : At least a message in the input array port Change the accumulator ph with set! Add it Get back the children, but no display Drop the children, but no change in display Display a new children true, it is the actual widget that...
#lang racket/base (require fractalide/modules/rkt/rkt-fbp/agent fractalide/modules/rkt/rkt-fbp/agents/gui/helper) (require racket/gui/base racket/match racket/list) (require (rename-in racket/class [send class-send])) (define (generate input) (lambda (frame) (let* ([ph (new panel% [...
8b71fcb6735539ec393678f5b697b8e59716b62b943ce9d800d3e51014706bef
erlang/rebar3
r3_hex_api.erl
%% Vendored from hex_core v0.7.1, do not edit manually %% @hidden -module(r3_hex_api). -export([ delete/2, get/2, post/3, put/3, encode_query_string/1, build_repository_path/2, build_organization_path/2, join_path_segments/1 ]). -define(ERL_CONTENT_TYPE, <<"application/vnd.hex+erlang"...
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/src/vendored/r3_hex_api.erl
erlang
Vendored from hex_core v0.7.1, do not edit manually @hidden uri_string:recompose/1 accepts path segments as a list, both strings and binaries ==================================================================== ==================================================================== TODO: copy-pasted from r3_hex_repo ...
-module(r3_hex_api). -export([ delete/2, get/2, post/3, put/3, encode_query_string/1, build_repository_path/2, build_organization_path/2, join_path_segments/1 ]). -define(ERL_CONTENT_TYPE, <<"application/vnd.hex+erlang">>). -export_type([body/0, response/0]). -type response() :: {ok...
b86451389af1c83397a14e45fcf0b498ac099680044296984072b97ee611800f
MarkCurtiss/sicp
ch5-compiler.scm
COMPILER FROM SECTION 5.5 OF ;;;; STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS ;;;;Matches code in ch5.scm ;;;;This file can be loaded into Scheme as a whole. ;;;;**NOTE**This file loads the metacircular evaluator's syntax procedures from section 4.1.2 ;;;; You may need to change the (load ...) expression to...
null
https://raw.githubusercontent.com/MarkCurtiss/sicp/8b55a3371458014c815ba8792218b6440127ab40/chapter_5_exercises/book_code/ch5-compiler.scm
scheme
STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS Matches code in ch5.scm This file can be loaded into Scheme as a whole. **NOTE**This file loads the metacircular evaluator's syntax procedures You may need to change the (load ...) expression to work in your version of Scheme. **implementation-dependent loading of ...
COMPILER FROM SECTION 5.5 OF from section 4.1.2 Then you can compile Scheme programs as shown in section 5.5.5 section 4.1.2 syntax procedures SECTION 5.5.1 (define (compile exp target linkage) (cond ((self-evaluating? exp) (compile-self-evaluating exp target linkage)) ((quoted? exp) (compi...
049a5e4327518cfeb1501534c8e5a32f70821326a64cfc799fdd287681083e57
heraldry/heraldicon
wavy.cljs
(ns heraldicon.heraldry.line.type.wavy) (def pattern {:display-name :string.line.type/wavy :function (fn [{:keys [eccentricity height width]} _line-options] (let [radius-x (-> width (/ 4) ...
null
https://raw.githubusercontent.com/heraldry/heraldicon/c0f3cb6ea84ba3b781fbaf239b336934686de3e5/src/heraldicon/heraldry/line/type/wavy.cljs
clojure
(ns heraldicon.heraldry.line.type.wavy) (def pattern {:display-name :string.line.type/wavy :function (fn [{:keys [eccentricity height width]} _line-options] (let [radius-x (-> width (/ 4) ...
e7977609f03d796f7167aa5333fccefa0c41b76eecede19b3ad7c5301ce3414f
esl/amoc-arsenal-xmpp
mongoose_pubsub_docker.erl
%%============================================================================== 2015 - 2019 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( see LICENSE file ) %% @end %%============================================================================== -module(mongoose_pubsub_docker). -behavio...
null
https://raw.githubusercontent.com/esl/amoc-arsenal-xmpp/d3d022829a702c11e10f80d1bd35e03af2d14533/src/scenarios/mongoose_pubsub_docker.erl
erlang
============================================================================== @end ============================================================================== The virtual host served by the server escalus:send(Client, Request), true = escalus_pred:is_iq_result(Response). item_ids() -> escalus:send...
2015 - 2019 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( see LICENSE file ) -module(mongoose_pubsub_docker). -behaviour(amoc_scenario). -include_lib("escalus/include/escalus.hrl"). -include_lib("exml/include/exml.hrl"). -include_lib("kernel/include/logger.hrl"). -export([init/0, star...
eb3c1be03b06e6c96ed131571fde9f64774a601db69e7e5c566990e9a953ed5b
realworldocaml/book
dune_project.mli
(** dune-project files *) open Import module Name : sig * Invariants : - Named s - > s < > " " and s does not contain ' . ' or ' / ' - is a local path in the source tree Anonymous p -> p is a local path in the source tree *) type t = private | Named of string | Anonymous of Path.Source.t ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_engine/dune_project.mli
ocaml
* dune-project files * Convert to a string that is suitable for human readable messages * Convert to/from an encoded string that is suitable to use in filenames * File_key encodes the project in a unique way to be used as part of file path. * Return the path of the project file. * [register id parser] regist...
open Import module Name : sig * Invariants : - Named s - > s < > " " and s does not contain ' . ' or ' / ' - is a local path in the source tree Anonymous p -> p is a local path in the source tree *) type t = private | Named of string | Anonymous of Path.Source.t val to_dyn : t -> Dyn.t...
f4545acc725d82a31dfb2a9c97899aad0fe57c864dc589bf7fb4bde7e4b17cc7
xtdb/xtdb
metrics.clj
(ns xtdb.metrics (:require [xtdb.metrics.dropwizard :as dropwizard] [xtdb.metrics.index-store :as index-store-metrics] [xtdb.metrics.query :as query-metrics] [xtdb.status :as status] [xtdb.system :as sys]) (:import [com.codahale.metrics Gauge Meter MetricRegistry Snap...
null
https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/modules/metrics/src/xtdb/metrics.clj
clojure
(ns xtdb.metrics (:require [xtdb.metrics.dropwizard :as dropwizard] [xtdb.metrics.index-store :as index-store-metrics] [xtdb.metrics.query :as query-metrics] [xtdb.status :as status] [xtdb.system :as sys]) (:import [com.codahale.metrics Gauge Meter MetricRegistry Snap...
19f0d7720bd115f77d7aec4b889c7f5313ec36f26c99c375c61a8ce026d2bdbc
rleonid/oml
test_utils.ml
Copyright 2015 : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software ...
null
https://raw.githubusercontent.com/rleonid/oml/a857d67708827ed00df3f175a942044601ca50cf/test/test_utils.ml
ocaml
Common functions for writing tests and specifications. Generators Bounded Fixed length +1 is for how we build samples models below. TODO: refactor this into a bind. Specifications
Copyright 2015 : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software ...
59223f7c24df3cd35a4da2acbec8bbe79855744a801666f2ba9460991404e9a8
gpetiot/Frama-C-StaDy
input_domain.mli
type pl_constraint val compute_constraints : unit -> pl_constraint list val add_global : pl_constraint list -> Cil_types.varinfo -> pl_constraint list val add_init_global : pl_constraint list -> Cil_types.varinfo -> pl_constraint list val translate : string -> pl_constraint list -> unit
null
https://raw.githubusercontent.com/gpetiot/Frama-C-StaDy/48d8677c0c145d730d7f94e37b7b3e3a80fd1a27/input_domain.mli
ocaml
type pl_constraint val compute_constraints : unit -> pl_constraint list val add_global : pl_constraint list -> Cil_types.varinfo -> pl_constraint list val add_init_global : pl_constraint list -> Cil_types.varinfo -> pl_constraint list val translate : string -> pl_constraint list -> unit
cb23d33d23bba0bed6ebb3f0cc027365ab5dc13e8dd71811c92a2ab2666d7baf
janestreet/bonsai
main.ml
open! Core open! Bonsai_web let () = Bonsai_web.Start.start Bonsai_drag_and_drop_example.app
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/drag_and_drop/bin/main.ml
ocaml
open! Core open! Bonsai_web let () = Bonsai_web.Start.start Bonsai_drag_and_drop_example.app
a57c0b4077c2512d551e27fe8dfb8b0a3572e1440ed8dc9d8047754bd9b08301
spell-music/csound-expression
Adsr140.hs
module Csound.Typed.Plugins.Adsr140( adsr140 ) where import Csound.Dynamic import Csound.Typed.Types.Prim import Csound.Typed.GlobalState import qualified Csound.Typed.GlobalState.Elements as E(adsr140Plugin) ------------------------------------------------------------------------------- | Gated , Re - trigger...
null
https://raw.githubusercontent.com/spell-music/csound-expression/29c1611172153347b16d0b6b133e4db61a7218d5/csound-expression-typed/src/Csound/Typed/Plugins/Adsr140.hs
haskell
----------------------------------------------------------------------------- opcode adsr140, a, aakkkk
module Csound.Typed.Plugins.Adsr140( adsr140 ) where import Csound.Dynamic import Csound.Typed.Types.Prim import Csound.Typed.GlobalState import qualified Csound.Typed.GlobalState.Elements as E(adsr140Plugin) | Gated , Re - triggerable ADSR modeled after the A-140 inputs : agate , aretrig , kattack , kdecay...
e37eda07bf0e0255a3c3f202b6153019cf9afd4c26a30897a254cb1a173cf628
abid-mujtaba/haskell-cas
Ordering.hs
-- Defines a list of the Unit Tests that test aspects of Ordering of expressions module UnitTests.Ordering (tests) where import Prelude hiding ( ( ^ ) ) -- This allows us to use the ^ operator defined in CAS without collision with Prelude.^ import Test.HUnit(Test(TestCase, TestLabel)) import CAS import Un...
null
https://raw.githubusercontent.com/abid-mujtaba/haskell-cas/077b4b7fb4366818dc1f76348d288bab260be968/test/UnitTests/Ordering.hs
haskell
Defines a list of the Unit Tests that test aspects of Ordering of expressions This allows us to use the ^ operator defined in CAS without collision with Prelude.^ Negative constants shouldn't impact the order of terms
module UnitTests.Ordering (tests) where import Test.HUnit(Test(TestCase, TestLabel)) import CAS import UnitTests.Base tests = [ TestLabel "Order of Product Elements" $ TestCase $ do aE "test1" "(x * y)" $ show (x * y) aE "test2" "(2 * x)" $ s...
1c3edfabc60113551c58a682472f8f469fdcb567245f6f47be89828118189837
meta-ex/ignite
sched_sampler.clj
(ns meta-ex.kit.sched-sampler (:use [overtone.live]) (:require [meta-ex.kit.timing :as tim] [overtone.helpers.synth :as synth-helpers])) (defsynth mono-beat-bus-samp-trig [buf 0 rate 1.0 start-pos 0.0 loop? 0 amp 1 out-bus 0 beat-b (:id (:beat tim/main-beat)) beat-cnt-b (:id (:count tim/main-beat)) mo...
null
https://raw.githubusercontent.com/meta-ex/ignite/b9b1ed7ae2fa01d017c23febabb714a6389a98dd/src/meta_ex/kit/sched_sampler.clj
clojure
(:size short-phrip) (def g (group) ) (kill g) (kill a) (short-phrip) a (short-phrip) (kill short-phrip)
(ns meta-ex.kit.sched-sampler (:use [overtone.live]) (:require [meta-ex.kit.timing :as tim] [overtone.helpers.synth :as synth-helpers])) (defsynth mono-beat-bus-samp-trig [buf 0 rate 1.0 start-pos 0.0 loop? 0 amp 1 out-bus 0 beat-b (:id (:beat tim/main-beat)) beat-cnt-b (:id (:count tim/main-beat)) mo...
273b190be112786a0a81fb416488b3fde9088129204756584a099f777679c8a8
OCamlPro/opam-manager
managerVersion.ml
(**************************************************************************) (* *) Copyright 2014 - 2015 , (* *) (* All rights reserved.This file is distributed under ...
null
https://raw.githubusercontent.com/OCamlPro/opam-manager/2b5b9cc834c0595c6bf00b07f47f25ab71f21acc/src/core/managerVersion.ml
ocaml
************************************************************************ All rights reserved.This file is distributed under the terms of the exception. ...
Copyright 2014 - 2015 , GNU Lesser General Public License version 3.0 with linking OPAM is distributed in the hope that it will be useful , but WITHOUT or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public type t = string let to_string x = x let of_string x = x let...
dd5c036c5ff5c6ac4e7f5c230b0f77cf45272e96ee462299fd807f1e09de99f7
input-output-hk/hydra
UTxO.hs
| NOTE ( 1 ): This module is meant to be imported qualified as ' ' . -- NOTE ( 2 ): This module is name - spaces slightly different from the rest because it is meant to be used as a replacement of the type of the -- cardano-api which is not convenient enough to work with. Having it as ' Hydra . Cardan...
null
https://raw.githubusercontent.com/input-output-hk/hydra/6251cd0ff900dca0a296ad849ff4942093a39373/hydra-cardano-api/src/Cardano/Api/UTxO.hs
haskell
cardano-api which is not convenient enough to work with. Having it as relying on this newtype. So instead, we do 'as if' it was part of the | Newtype with phantom types mostly required to work around the poor interface manipulation bareable. | Create a 'UTxO' from a single unspent transaction output. | Turn ...
| NOTE ( 1 ): This module is meant to be imported qualified as ' ' . NOTE ( 2 ): This module is name - spaces slightly different from the rest because it is meant to be used as a replacement of the type of the ' Hydra . Cardano . Api . ' causes cyclic imports with other modules also cardano - api i...
689931f67ec2047c3c7cfb0b649e0510978c55b29f1fdd04252a6129eb3ddedf
mbutterick/aoc-racket
lang.rkt
#lang br/quicklang ;; (provide read-syntax cons (rename-out [mb #%module-begin])) (define (read-syntax path port) (strip-bindings #`(module mod "lang.rkt" #,@(for/list ([line (in-list (string-split (port->string port) "\n"))]) `(cons ,@(map string->number (string-split line "...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day20/lang.rkt
racket
(provide read-syntax cons (rename-out [mb #%module-begin])) (define (read-syntax path port) (strip-bindings #`(module mod "lang.rkt" #,@(for/list ([line (in-list (string-split (port->string port) "\n"))]) `(cons ,@(map string->number (string-split line "-"))))))) (define-macr...
c1ff02d95f0ccfdf2289c9a3de0cf0e5064783c8397b082061daf129c77a3bcf
c4-project/c4f
storelike.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_actions/src/storelike.ml
ocaml
* Lists the restrictions we put on source variables. * [readme_chunks ()] generates fragments of unformatted README text based on the configuration of this store module. We assume that if a storelike reports itself as constructible in execute-multi contexts, there will always exist some payload that...
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
6a8cb31b7c22df62dde6167bde4aaf29841f0ae76232f735448a865bb495357e
nrdufour/urdf
urdf_triple.erl
This file is part of urdf released under the MIT license . % See the LICENSE file for more information. -module(urdf_triple). -author("Nicolas R Dufour <>"). -export([factorize/1]). -include("triples.hrl"). factorize(Triples) -> Fun = fun(Triple, D) -> Subject = Triple#triple.subject, Entity...
null
https://raw.githubusercontent.com/nrdufour/urdf/e4a4b033ac9154e038bec3d06077cda2ea3ca4e0/src/urdf_triple.erl
erlang
See the LICENSE file for more information.
This file is part of urdf released under the MIT license . -module(urdf_triple). -author("Nicolas R Dufour <>"). -export([factorize/1]). -include("triples.hrl"). factorize(Triples) -> Fun = fun(Triple, D) -> Subject = Triple#triple.subject, EntityList = case dict:is_key(Subject, D) of ...
d42dccfb942ac10450190936c4b61b999caa60180dfac96f66d61021379f6487
rvantonder/CryptOSS
site_prefix.ml
let prefix = "/CryptOSS"
null
https://raw.githubusercontent.com/rvantonder/CryptOSS/acd931433f70fd097930b2e62a294af6d31a2a77/site/site_prefix.ml
ocaml
let prefix = "/CryptOSS"
4813cc30f39d319ffd8b4a146e003f17dfc8dc6ae234da79ba5b37a9d755e112
metosin/muuntaja
format_response_test.clj
(ns muuntaja.ring-middleware.format-response-test (:require [clojure.test :refer :all] [muuntaja.core :as m] [muuntaja.middleware :as middleware] [cheshire.core :as json] [clj-yaml.core :as yaml] [clojure.walk :refer [keywordize-keys]] [cognitect...
null
https://raw.githubusercontent.com/metosin/muuntaja/83da35f35518aaa02ef4d1ca6bbd007b781ebf84/test/muuntaja/ring_middleware/format_response_test.clj
clojure
we do not set the "Content-Length" we do not set the "Content-Length" we do not set the "Content-Length" we do not set the "Content-Length" not implemented Transit we do not set the "Content-Length" we do not set the "Content-Length" Content-Type parsing Transit options
(ns muuntaja.ring-middleware.format-response-test (:require [clojure.test :refer :all] [muuntaja.core :as m] [muuntaja.middleware :as middleware] [cheshire.core :as json] [clj-yaml.core :as yaml] [clojure.walk :refer [keywordize-keys]] [cognitect...
a7e613367fbc35b089a7e6617f2a42b2c25797a309cf823550ef10c80b1cab1e
haskell-mafia/mismi
Data.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Mismi.Autoscaling.Data ( toTags , fromTags , minimumDesiredInstances , fromMismiBlockDeviceMapping , GroupResultError (..) , toGroupResult , ConfigurationError (..) , toConfiguration , InstanceProtectionError (..) , par...
null
https://raw.githubusercontent.com/haskell-mafia/mismi/f6df07a52c6c8b1cf195b58d20ef109e390be014/mismi-autoscaling/src/Mismi/Autoscaling/Data.hs
haskell
# LANGUAGE OverloadedStrings # Differentiating between the following:
# LANGUAGE NoImplicitPrelude # module Mismi.Autoscaling.Data ( toTags , fromTags , minimumDesiredInstances , fromMismiBlockDeviceMapping , GroupResultError (..) , toGroupResult , ConfigurationError (..) , toConfiguration , InstanceProtectionError (..) , parseProtectionError ) where import ...
149eaa2b13308185edc31e6b723913b3469dcb9940796e03128c1969dfd9fa0f
cffi-posix/cffi-epoll
package.lisp
;; cffi - epoll - Common Lisp wrapper for Linux epoll syscall ;; Copyright 2017 < > ;; ;; Permission to use, copy, modify, and distribute this software for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear in all copies. ...
null
https://raw.githubusercontent.com/cffi-posix/cffi-epoll/6ee36e99a66bd0246a6147b72e6f84673b3d0a41/package.lisp
lisp
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO...
cffi - epoll - Common Lisp wrapper for Linux epoll syscall Copyright 2017 < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN A...
dc0981d78425305d1674c5e177496db871b480acfcb66d7239099699b4b0b75d
b0-system/brzo
brzo_b0_opam.ml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2018...
null
https://raw.githubusercontent.com/b0-system/brzo/e481a39d7881d7aaf800cf3c7a9b6cd836867a90/src-ocaml/brzo_b0_opam.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2018...
f3c5dc2640fc93044d61250158e37dabb85e1201fe144ad36a094c29df6e581c
JunSuzukiJapan/cl-reex
skip-while.lisp
(in-package :cl-user) (defpackage cl-reex.operator.skip-while (:use :cl) (:import-from :cl-reex.observer :observer :on-next :on-error :on-completed) (:import-from :cl-reex.observable :observable :is-active :set-error :set-completed :set-dispo...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/src/operator/skip-while.lisp
lisp
(in-package :cl-user) (defpackage cl-reex.operator.skip-while (:use :cl) (:import-from :cl-reex.observer :observer :on-next :on-error :on-completed) (:import-from :cl-reex.observable :observable :is-active :set-error :set-completed :set-dispo...
e197d6a3b820a5a8f2ee7fa884999be931a6b335baa3b1f28f280916d2b3e673
Ramarren/lisa
heap.lisp
;;; -*- Lisp -*- ;;; $ Header : /home / ramarren / LISP / git - repos / / lisa / src / core / heap.lisp , v 1.4 2007/09/17 22:42:39 youngde Exp $ ;;; Copyright ( c ) 2002 , 2003 . ;;; ;;; This library is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the ...
null
https://raw.githubusercontent.com/Ramarren/lisa/ac137e9a05850ff6e2532b90f23a139985e04b4b/src/core/heap.lisp
lisp
-*- Lisp -*- This library is free software; you can redistribute it Lesser General Public License as published by the Free This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR...
$ Header : /home / ramarren / LISP / git - repos / / lisa / src / core / heap.lisp , v 1.4 2007/09/17 22:42:39 youngde Exp $ Copyright ( c ) 2002 , 2003 . and/or modify it under the terms of version 2.1 of the GNU Software Foundation . You should have received a copy of the GNU General Public ...
b5333a52ecd248c4e4b40297fc1cb4040c887177b4db2e43eebb4bc6077fdc12
timbod7/haskell-chart
Test2.hs
module Test2 where import Graphics.Rendering.Chart import Data.Time.LocalTime import Data.Colour import Data.Colour.Names import Data.Colour.SRGB import Control.Lens import Data.Default.Class import Prices(prices2) import Utils chart :: [(LocalTime,Double,Double)] -> Bool -> Double -> Renderable (LayoutPick LocalTim...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart-tests/tests/Test2.hs
haskell
module Test2 where import Graphics.Rendering.Chart import Data.Time.LocalTime import Data.Colour import Data.Colour.Names import Data.Colour.SRGB import Control.Lens import Data.Default.Class import Prices(prices2) import Utils chart :: [(LocalTime,Double,Double)] -> Bool -> Double -> Renderable (LayoutPick LocalTim...
27f47a41bccbc8b4bf4f0d4c540579afa64cfbcea2875a4af3f10a09031d1f3d
MinaProtocol/mina
coda_processes.ml
[%%import "/src/config.mlh"] open Core open Async let init () = Parallel.init_master () type ports = { communication_port : int; discovery_port : int; libp2p_port : int } let net_configs n = File_system.with_temp_dir "coda-processes-generate-keys" ~f:(fun tmpd -> let%bind net = Mina_net2.create ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a1185fc7b207cfec2a652ef7f3fdc3d9b2e202ea/src/app/cli/src/tests/coda_processes.ml
ocaml
[%%import "/src/config.mlh"] open Core open Async let init () = Parallel.init_master () type ports = { communication_port : int; discovery_port : int; libp2p_port : int } let net_configs n = File_system.with_temp_dir "coda-processes-generate-keys" ~f:(fun tmpd -> let%bind net = Mina_net2.create ...
17f2d9f56b2f3295ca67f6fa5f4aae3ebe07d0a2fd2f93640e7e28bba08875ff
opencog/opencog
states.scm
(use-modules (opencog) (opencog nlp) (opencog nlp oc)) ;------------------------------------------------------------------------------- ; Keep track of the states (define (chat-prefix node_name) (string-append "Chatbot: " node_name)) (define input-utterance (Anchor (chat-prefix "InputUtterance"))) (define-public inp...
null
https://raw.githubusercontent.com/opencog/opencog/482a93b34c2eeaac0e773731d61c31558710f93d/opencog/nlp/chatbot-psi/states.scm
scheme
------------------------------------------------------------------------------- Keep track of the states No need to be reset No need to be reset No need to be reset An AppID is required to use WolframAlpha Need to do (markov-setup ...) once for both generators PLN states -----------------------------------------...
(use-modules (opencog) (opencog nlp) (opencog nlp oc)) (define (chat-prefix node_name) (string-append "Chatbot: " node_name)) (define input-utterance (Anchor (chat-prefix "InputUtterance"))) (define-public input-utterance-sentence (Anchor (chat-prefix "InputUtteranceSentence"))) (define-public input-utterance-text (...
b6ff4d1bb9aa3c416e26c51a4bacea3de8fd960c5aee7258be249c42ce256e91
cedlemo/OCaml-GI-ctypes-bindings-generator
Places_open_flags.mli
open Ctypes type t = Normal | New_tab | New_window type t_list = t list val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val list_of_value: Unsigned.uint32 -> t_list val list_to_value: t_list -> Unsigned.uint32 val t_list_view : t_list typ
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Places_open_flags.mli
ocaml
open Ctypes type t = Normal | New_tab | New_window type t_list = t list val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val list_of_value: Unsigned.uint32 -> t_list val list_to_value: t_list -> Unsigned.uint32 val t_list_view : t_list typ
be3dc685835563b24f02e3a53c074d22743f0c9d2f3458e8faaaef90d5d75db1
GillianPlatform/Gillian
syntaxes.ml
* @canonical . Utils . - extending helper functions for [ Result ] and [ Option ] Syntax-extending helper functions for [Result] and [Option] *) * @canonical . Utils . Result module Result = struct let ( let+ ) f o = Result.map o f let ( let* ) o f = Result.bind o f end * @canonical . Utils . Option modu...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/a29875f7a7bb165c125af4bcc8a7be013ddee3eb/GillianCore/utils/syntaxes.ml
ocaml
* @canonical . Utils . - extending helper functions for [ Result ] and [ Option ] Syntax-extending helper functions for [Result] and [Option] *) * @canonical . Utils . Result module Result = struct let ( let+ ) f o = Result.map o f let ( let* ) o f = Result.bind o f end * @canonical . Utils . Option modu...
d77bfb134624bc46e85b5775be7938e06323397b0bc8ae2913fbd658d1e14b60
binghe/fm-plugin-tools
specials.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : FM - PLUGIN - TOOLS ; Base : 10 -*- Copyright ( c ) 2006 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2022 , ( binghe ) . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permit...
null
https://raw.githubusercontent.com/binghe/fm-plugin-tools/ddb970a38b9a6fb44e9fb49a3ef74a4d17ac8738/specials.lisp
lisp
Syntax : COMMON - LISP ; Package : FM - PLUGIN - TOOLS ; Base : 10 -*- 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 conditio...
Copyright ( c ) 2006 - 2010 , Dr. . All rights reserved . Copyright ( c ) 2022 , ( binghe ) . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :fm-plugin-tools) (defvar *plugin-...
253ebb8e69faf9e89efc6da8b5f2d2f36b3bef1c93fc239c0b78675356abc10c
uwiger/parse_trans
test_transform_mod.erl
-module(test_transform_mod). -export([ex1/0]). -include("codegen.hrl"). ex1() -> parse_trans_mod:transform_module( ex1, [fun(Fs, _Os) -> parse_trans:export_function(int, 0, Fs) end, fun transform_ex1/2], [{pt_pp_src,true}]). transform_ex1(Forms, _Opts) -> NewF = codegen:gen_function(add...
null
https://raw.githubusercontent.com/uwiger/parse_trans/56f5c6cad48eaca8e0b2626e0df3587e6bf2da6e/examples/test_transform_mod.erl
erlang
-module(test_transform_mod). -export([ex1/0]). -include("codegen.hrl"). ex1() -> parse_trans_mod:transform_module( ex1, [fun(Fs, _Os) -> parse_trans:export_function(int, 0, Fs) end, fun transform_ex1/2], [{pt_pp_src,true}]). transform_ex1(Forms, _Opts) -> NewF = codegen:gen_function(add...
193aaa0bf02af14b37f7b927db34941c6d74df7626245091ae599ffd14eb1b8c
s-cerevisiae/leetcode-racket
273-integer-to-english-words.rkt
#lang racket (define (make-num-table ks vs) (for/hash ([k (in-list ks)] [v (in-list vs)]) (values k v))) (define ones (make-num-table (range 10) '(() "One" "Two" "Three" "Four" "Five" "Six" "Seven" "Eight" "Nine"))) (define teens (make-num-table (range 10 20) '("Ten" "Eleven" "Twelve" "...
null
https://raw.githubusercontent.com/s-cerevisiae/leetcode-racket/39b835990be6cbaafdda5e3216ed50bfa252b634/273-integer-to-english-words.rkt
racket
#lang racket (define (make-num-table ks vs) (for/hash ([k (in-list ks)] [v (in-list vs)]) (values k v))) (define ones (make-num-table (range 10) '(() "One" "Two" "Three" "Four" "Five" "Six" "Seven" "Eight" "Nine"))) (define teens (make-num-table (range 10 20) '("Ten" "Eleven" "Twelve" "...
884b48a9061daad7ddece9527724dccc857dff04d98c1cd95fd585bf4010a053
takikawa/racket-ppa
place.rkt
#lang racket/base (require (only-in '#%unsafe unsafe-abort-current-continuation/no-wind) "place-object.rkt" "custodian-object.rkt" "check.rkt" "host.rkt" "schedule.rkt" "atomic.rkt" "thread.rkt" "thread-group.rkt" (submod "thread.rkt" for-...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/src/thread/place.rkt
racket
For `(struct place ...)`, see "place-object.rkt" ---------------------------------------- Normally, we'd check argument here, but the relevant predicates on ports are from a later layer, and the `racket/place` export is a wrapper with its own checking. So, we just leave this layer as unsafe. detect whether there...
#lang racket/base (require (only-in '#%unsafe unsafe-abort-current-continuation/no-wind) "place-object.rkt" "custodian-object.rkt" "check.rkt" "host.rkt" "schedule.rkt" "atomic.rkt" "thread.rkt" "thread-group.rkt" (submod "thread.rkt" for-...
099c4aad65b22273b245838d98aa65174d2a489f8c8d84afa2e65386636339a4
pykello/racket-visualization
fig195.rkt
#lang racket (require metapict racket/math "../common.rkt") (define (striped-cell u dx dy) (for/list ([k (in-range 0 5)]) (let ([ku (* k u 0.2)]) (color "gray" (filldraw (shifted (pt dx dy) (cond [(odd? k) (curve ...
null
https://raw.githubusercontent.com/pykello/racket-visualization/7c4dccfd59123fcb7c144ad8ed89dffdc57290df/metapict-examples/metapost/fig195.rkt
racket
#lang racket (require metapict racket/math "../common.rkt") (define (striped-cell u dx dy) (for/list ([k (in-range 0 5)]) (let ([ku (* k u 0.2)]) (color "gray" (filldraw (shifted (pt dx dy) (cond [(odd? k) (curve ...
f84a5254d893739f23242665d5972f69ea6f7f405b3cbf8c95c54cacb9268f56
talex5/wayland-proxy-virtwl
font.ml
open Lwt.Syntax type t = Types.font module OpenFont = struct [%%cstruct type req = { fid : uint32_t; name_len : uint16_t; unused2 : uint16_t; (* name *) } [@@little_endian] ] let send t name = let fid = Display.mint_id t in Log.info (fun f -> f "OpenFont %S as %a" name X...
null
https://raw.githubusercontent.com/talex5/wayland-proxy-virtwl/0316db2f1ee1a6bcdf7328bc4d4b8de41506ec54/x11/font.ml
ocaml
name
open Lwt.Syntax type t = Types.font module OpenFont = struct [%%cstruct type req = { fid : uint32_t; name_len : uint16_t; unused2 : uint16_t; } [@@little_endian] ] let send t name = let fid = Display.mint_id t in Log.info (fun f -> f "OpenFont %S as %a" name Xid.pp fid); l...
3a8fba4669258d34dbbaa743cf6bca99f727ad3ab30d1f81c1ba694c54f1df5c
awslabs/s2n-bignum
bignum_cmnegadd.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_cmnegadd.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/generic/bignum_cmnegadd.o";; *** ------------------------------------------------------------------------- Correctness proof. ...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Negating multiply - accumulate of bignum by a single word . ...
83591b2db5279e08e3c31f271b024bdf68b8fab8b53f708b9584492981faa15e
abtv/tech-radar
core.clj
(ns tech-radar.core (:require [reloaded.repl :refer [go]] [tech-radar.systems :refer [new-system]] [taoensso.timbre :as timbre]) (:gen-class)) (defn -main [& args] (timbre/info "Starting collector") (reloaded.repl/set-init! new-system) (go))
null
https://raw.githubusercontent.com/abtv/tech-radar/167c1c66ff2cf7140fe1de247d67a7134b0b1748/src/clj/tech_radar/core.clj
clojure
(ns tech-radar.core (:require [reloaded.repl :refer [go]] [tech-radar.systems :refer [new-system]] [taoensso.timbre :as timbre]) (:gen-class)) (defn -main [& args] (timbre/info "Starting collector") (reloaded.repl/set-init! new-system) (go))
8f231618511832839196bb5420b7163d99701848d80a35ead0a29d367de6e8cf
ocsigen/ocsimore
ocsimore_common.ml
Ocsimore * Copyright ( C ) 2008 * Laboratoire PPS - Université Paris Diderot - CNRS * * 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 ...
null
https://raw.githubusercontent.com/ocsigen/ocsimore/8eeaf043ed6f1f167a96cbdc5f72a5225d9516d5/src/core/server/ocsimore_common.ml
ocaml
Ocsimore * Copyright ( C ) 2008 * Laboratoire PPS - Université Paris Diderot - CNRS * * 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 ...
3527ed4808be86a3b1be1f8ec3894fb010823c21411a98643fcf3727f5b28b1b
haskell/haskell-language-server
HieUtils.hs
module Compat.HieUtils ( module GHC.Iface.Ext.Utils ) where import GHC.Iface.Ext.Utils
null
https://raw.githubusercontent.com/haskell/haskell-language-server/830596ee212d4f2fbbc81bcf5d08574ae96947d3/hie-compat/src-reexport-ghc92/Compat/HieUtils.hs
haskell
module Compat.HieUtils ( module GHC.Iface.Ext.Utils ) where import GHC.Iface.Ext.Utils
b5b0b9baea20ba0498aa673a5fb051eb9d5b8074f13e1a1bc962a86994dc2611
imitator-model-checker/imitator
AlgoBCCoverDistributed.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : Classical Beh...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/AlgoBCCoverDistributed.mli
ocaml
********************************************************** Modules ********************************************************** ********************************************************** Class definition ********************************************************** *******************************************************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : Classical Beh...
8f3f8f9cb4322e6073cdef2200f3106de107359e7bc89d1b5d5cee16640d7090
gentoo-haskell/hackport
Print.hs
# LANGUAGE CPP # module Portage.Dependency.Print ( dep2str , dep2str_noindent ) where import Portage.Version import Portage.Use import Portage.PackageId import qualified Distribution.Pretty as DP (Pretty(..)) import qualified Text.PrettyPrint as Disp import Text.PrettyPrint ( vcat, nest, render ) import T...
null
https://raw.githubusercontent.com/gentoo-haskell/hackport/61baf96390e7ddc071f9a49fc78919683988c0ca/src/Portage/Dependency/Print.hs
haskell
any version TODO: handle >=foo-0 special case TODO: handle =foo-x.y.* special case needs special grouping rest are fine
# LANGUAGE CPP # module Portage.Dependency.Print ( dep2str , dep2str_noindent ) where import Portage.Version import Portage.Use import Portage.PackageId import qualified Distribution.Pretty as DP (Pretty(..)) import qualified Text.PrettyPrint as Disp import Text.PrettyPrint ( vcat, nest, render ) import T...
0e7ef477f7787c0be8198d773be3545b622302fd876ed50a2f5c6701b4406040
rabbitmq/rabbitmq-mqtt
rabbit_mqtt_reader.erl
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 /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mqtt_reader). Transitional step...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-mqtt/817971bfec4461630a2ef7e27d4fa9f4c4fb8ff9/src/rabbit_mqtt_reader.erl
erlang
use the now recommended try/catch syntax for obtaining the stack trace. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- handle applied event to ensure registration command actually got applied -----------------...
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 /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mqtt_reader). Transitional step until...
3f424877ac58c5c1994ecb4a89c6e83d053f2f0ec2bd98c3ebb6cd7449648f63
huangz1990/SICP-answers
test-17-last-pair.scm
(load "test-manager/load.scm") (load "17-last-pair.scm") (define-each-check (equal? (last-pair (list 1)) (list 1)) (equal? (last-pair (list 1 2 3)) (list 3)) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/test-17-last-pair.scm
scheme
(load "test-manager/load.scm") (load "17-last-pair.scm") (define-each-check (equal? (last-pair (list 1)) (list 1)) (equal? (last-pair (list 1 2 3)) (list 3)) ) (run-registered-tests)
0a0ce0bdb78d8c6cefa289cffed79f3d967e652e226aa12f0114acccb9f2cf15
tisnik/clojure-examples
core.clj
; ( C ) Copyright 2015 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns webapp4.core (:gen-class)) ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/webapp4/src/webapp4/core.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns webapp4.core (:gen-class)) (require '[ring.adapter.jetty :as jetty]) (require '[ring.middleware.params :as params]) (require '[ring.util.response :as response]) (defn render-html-page [x y result] (str "<html> <head> ...
c6f783a6b14aa0cd4b5a087a635cf2458ebef49e13c854ac59a0118ef7a8915e
epgsql/epgsql
epgsql_SUITE.erl
-module(epgsql_SUITE). -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("public_key/include/public_key.hrl"). -include("epgsql_tests.hrl"). -include("epgsql.hrl"). -export([ init_per_suite/1, init_per_group/2, all/0, groups/0, end_per_group/2, ...
null
https://raw.githubusercontent.com/epgsql/epgsql/ebc262b782e2b866458922f479c9394f68c5946c/test/epgsql_SUITE.erl
erlang
logger handler this timer is needed for the test not to be flaky this timer is needed for the test not to be flaky pre-otp23: {error, {ssl_negotiation_failed, {tls_alert, {unknown_ca, "received SERVER ALERT: Fatal - Unknown CA"}}}} otp23+: {error, {sock_error, {tls_alert, {unknown_c...
-module(epgsql_SUITE). -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("public_key/include/public_key.hrl"). -include("epgsql_tests.hrl"). -include("epgsql.hrl"). -export([ init_per_suite/1, init_per_group/2, all/0, groups/0, end_per_group/2, ...
f9c385df9963fa8e3a2cd01516f5e73d86a52eb2a84c8ad9f1933bca2bfbb1bc
robert-strandh/CLIMatis
sprawl-test.lisp
(in-package #:clim3-sprawl-test) (defun hugep (sprawl) (null (clim3-sprawl:max-size sprawl))) (defun test-combine-in-parallel-normal-case () (loop repeat 1000000 do (let* ((length (1+ (random 20))) (size (random 20)) (sprawls (loop repeat length collect (clim3-sprawl:sprawl (random (1+ size)...
null
https://raw.githubusercontent.com/robert-strandh/CLIMatis/4949ddcc46d3f81596f956d12f64035e04589b29/Sprawl/sprawl-test.lisp
lisp
A space between words. A word.
(in-package #:clim3-sprawl-test) (defun hugep (sprawl) (null (clim3-sprawl:max-size sprawl))) (defun test-combine-in-parallel-normal-case () (loop repeat 1000000 do (let* ((length (1+ (random 20))) (size (random 20)) (sprawls (loop repeat length collect (clim3-sprawl:sprawl (random (1+ size)...
56a36123fbeff82e8a3cbda362a017c3211ba5832c489da1decaa754b12db7bb
rsharifnasab/my-learning
WithFunction.hs
module WithFunction where z = 7 x = y ^ 2 waxOn = x * 5 y = z + 8 triple x = x * 3 waxOff x = triple x f g 2 = 2 * g
null
https://raw.githubusercontent.com/rsharifnasab/my-learning/8555583a772c96e334e3fdace5a295a21c31ea8b/haskell/2-hello/WithFunction.hs
haskell
module WithFunction where z = 7 x = y ^ 2 waxOn = x * 5 y = z + 8 triple x = x * 3 waxOff x = triple x f g 2 = 2 * g
585a626a7a878ede308fea36a521edf5c695367cf30100c59d669be45de862c8
clojure-interop/aws-api
core.clj
(ns com.amazonaws.services.mediapackagevod.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.mediapackagevod.AWSMediaPackageVod]) (require '[com.amazonaws.services.mediapackagevod.AWSMediaPackageVodAsync]) (require '[com.amazonaws.services.mediapackagevod.AWSMediaP...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.mediapackagevod/src/com/amazonaws/services/mediapackagevod/core.clj
clojure
(ns com.amazonaws.services.mediapackagevod.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.mediapackagevod.AWSMediaPackageVod]) (require '[com.amazonaws.services.mediapackagevod.AWSMediaPackageVodAsync]) (require '[com.amazonaws.services.mediapackagevod.AWSMediaP...
f050b45f4da7d9cdd320343af436e079cde505a282f7d12d1388091ba86d3a7a
TyOverby/mono
patdiff_core.mli
open! Core open! Import include module type of struct include Patdiff_kernel.Patdiff_core end include Patdiff_kernel.Patdiff_core.S
null
https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/janestreet-patdiff/lib/src/patdiff_core.mli
ocaml
open! Core open! Import include module type of struct include Patdiff_kernel.Patdiff_core end include Patdiff_kernel.Patdiff_core.S
2a0476dcb6bf303cd3c402900b4d27c3caee90124ed8596a34c9701ab6fbb0c0
rurban/clisp
wrap.lisp
Lisp wrappers for the Netica API < > , version 3.25 ;;; Copyright ( C ) 2003 - 2008 by This is Free Software , distributed under the GNU GPL v2 + ;;; See (require "netica") (in-package "NETICA") (pushnew :netica *features*) ;;; low level wrappers (eval-when (compile eval) (cl:defmacro make-node-wrapp...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/modules/netica/wrap.lisp
lisp
See low level wrappers user interface variables helpers both or neither must be supplied."
Lisp wrappers for the Netica API < > , version 3.25 Copyright ( C ) 2003 - 2008 by This is Free Software , distributed under the GNU GPL v2 + (require "netica") (in-package "NETICA") (pushnew :netica *features*) (eval-when (compile eval) (cl:defmacro make-node-wrapper (func &rest more-args) (let* ...
93563dfdc179ba34ac663e3f292ea145c13557e554f2d4ddc0d3ca00ffd85c7d
sarabander/p2pu-sicp
3.04.scm
(define (make-account balance password) (let ((password-failures 0)) (define (withdraw amount) (set! password-failures 0) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! password-failures 0) (set!...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/3.1/3.04.scm
scheme
"Incorrect password" (same in between) "Incorrect password" (resets failure counter) "Incorrect password" (same in between) "Incorrect password" "Calling the police... Run!"
(define (make-account balance password) (let ((password-failures 0)) (define (withdraw amount) (set! password-failures 0) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! password-failures 0) (set!...
a784e6cd27cb5dd452cf335b75693634ab3aca6904b73869ca482bd53678c718
cmsc430/www
unload.rkt
#lang racket (provide unload unload-value) (require "heap.rkt") ;; Answer* -> Answer (define (unload a) (match a ['err 'err] [(cons h v) (unload-value v h)])) ;; Value* Heap -> Value (define (unload-value v h) (match v [(? integer?) v] [(? boolean?) v] [(? char?) v] [(? eof...
null
https://raw.githubusercontent.com/cmsc430/www/0809867532b8ef516029ac38093a145db5b424ea/langs/hustle/unload.rkt
racket
Answer* -> Answer Value* Heap -> Value
#lang racket (provide unload unload-value) (require "heap.rkt") (define (unload a) (match a ['err 'err] [(cons h v) (unload-value v h)])) (define (unload-value v h) (match v [(? integer?) v] [(? boolean?) v] [(? char?) v] [(? eof-object?) v] [(? void?) v] ...
0e5677711afe3b8bd265cb7229da0db0771552ad77cee2d3212cb24fa025f999
kit-ty-kate/mastodon-archive-viewer
main.ml
module Items = Map.Make (String) type url = string type attachment = | Video of (url * string option) | Image of (url * string option) type privacy = | Public | Unlisted | Followers_only | DM type create_obj = { content : string; summary : string option; sensitive : bool; attachments : attachmen...
null
https://raw.githubusercontent.com/kit-ty-kate/mastodon-archive-viewer/bd94f22fc43d19b2b2f86a6418e7a0126b755f13/src/main.ml
ocaml
NOTE: Everything reached from this function is an heuristic and might break
module Items = Map.Make (String) type url = string type attachment = | Video of (url * string option) | Image of (url * string option) type privacy = | Public | Unlisted | Followers_only | DM type create_obj = { content : string; summary : string option; sensitive : bool; attachments : attachmen...
94f9d37a4cec6554d8b732ea33fdd9b15dda1265234a6dd692c37f7131dc29b9
futurice/haskell-mega-repo
Logic.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Futurice.App.OktaProxy.Logic where import Futurice.Integrations import Futurice.Prelude import Prelude () import Futurice.App.OktaProxy.Types import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/9e3c9a99cde162398cf1aa577f0a7e2242ca1cf4/okta-proxy/src/Futurice/App/OktaProxy/Logic.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Futurice.App.OktaProxy.Logic where import Futurice.Integrations import Futurice.Prelude import Prelude () import Futurice.App.OktaProxy.Types import qualified Data.Map as Map import qualified Data.Set as Set import qualified Data.Text as T import qualified F...
d38b1795024e9621cd078fdbd0009999c03eee956a6ec2f80bcfc5d0bc56f870
zotonic/zotonic
mod_linkedin.erl
@author < > 2014 @doc Use LinkedIn for logon %% %% Setup instructions: * Enable the mod_linkedin module * Configure in the admin the linkedin keys ( Auth - > External Services ) Copyright 2014 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file ex...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_linkedin/src/mod_linkedin.erl
erlang
Setup instructions: you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
@author < > 2014 @doc Use LinkedIn for logon * Enable the mod_linkedin module * Configure in the admin the linkedin keys ( Auth - > External Services ) Copyright 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS...
44adf4cdb7ff072c030b753154a2f4b0f8828be93c62afd22bcd97b5221b04fc
Plutonomicon/plutarch-plutus
ByteString.hs
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Plutarch.ByteString ( PByteString, phexByteStr, pbyteStr, pconsBS, psliceBS, plengthBS, pindexBS, ) where import Data.ByteString (ByteString) import Data.ByteString qualified as BS import Data.Char (to...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/Plutarch/ByteString.hs
haskell
>)) | Interpret a hex string as a PByteString. --------------------------------------------------------- The following functions should be import qualified. -- --------------------------------------------------------- | Prepend a byte, represented by a non negative 'PInteger', to a 'PBytestring'. > PByteString :--> ...
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Plutarch.ByteString ( PByteString, phexByteStr, pbyteStr, pconsBS, psliceBS, plengthBS, pindexBS, ) where import Data.ByteString (ByteString) import Data.ByteString qualified as BS import Data.Char (to...
116fe1bb4238b329b6f01f5258726bc05b767be2a555d5d000036cd218a59990
mcandre/cluckcheck
cluckcheck.scm
(module cluckcheck (gen-int gen-bool gen-char gen-list gen-string for-all) (import scheme) (cond-expand (chicken-5 (import (rename (chicken random) (pseudo-random-integer random)) (chicken format) srfi-1)) (else (import chicken extras) (use srfi-1))) (define (gen-int) (random 256)) (def...
null
https://raw.githubusercontent.com/mcandre/cluckcheck/c7a9c28669becba3ae2454ad6803bc496eaf37ad/cluckcheck.scm
scheme
(module cluckcheck (gen-int gen-bool gen-char gen-list gen-string for-all) (import scheme) (cond-expand (chicken-5 (import (rename (chicken random) (pseudo-random-integer random)) (chicken format) srfi-1)) (else (import chicken extras) (use srfi-1))) (define (gen-int) (random 256)) (def...
31119a3957ecd0dfe6d49810173d9b609d80eec6ff4232e1825f9c9205e2ea98
conal/circat
LinearMap.hs
{-# LANGUAGE TypeOperators, TypeSynonymInstances #-} {-# LANGUAGE GADTs, KindSignatures #-} # OPTIONS_GHC -Wall # { - # OPTIONS_GHC -fno - warn - unused - imports # - } -- TEMP { - # OPTIONS_GHC -fno - warn - unused - binds # - } -- TEMP ---------------------------------------------------------------------- --...
null
https://raw.githubusercontent.com/conal/circat/083155b1aafe523fb0df84aaa107064b36c1fd0d/src/Circat/LinearMap.hs
haskell
# LANGUAGE TypeOperators, TypeSynonymInstances # # LANGUAGE GADTs, KindSignatures # TEMP TEMP -------------------------------------------------------------------- | Maintainer : Stability : experimental -------------------------------------------------------------------- TODO: explicit exports Scale s ...
# OPTIONS_GHC -Wall # Module : Circat . LinearMap Copyright : ( c ) 2014 Tabula , Inc. Linear maps as GADT module Circat.LinearMap where import Circat.Misc ((:*)) import Data.AdditiveGroup (AdditiveGroup(..)) infixr 1 :-* data (:-*) :: * -> * -> * where Scale :: Num a => a -> (a :-* a) (:...
2fba8004a6ec3249a49fd9009748ac8387040fd51f81927effaa6b641efe06a3
motoshira/lib_for_competitive_programming
binary-heap.lisp
;;; BOF ;;; Binary heap ( 1 - based ) (eval-when (:compile-toplevel :load-toplevel :execute) (defun symb (&rest args) (intern (with-output-to-string (s) (dolist (x args) (princ (string-upcase x) s)))))) ;; TODO : ;; - heap-full-p ;; - invoke error when attempting to insert item to full...
null
https://raw.githubusercontent.com/motoshira/lib_for_competitive_programming/33fd81102f5d1067904e0aca9b3f9ba3c3c2ca73/binary-heap.lisp
lisp
TODO : - heap-full-p - invoke error when attempting to insert item to full heap Example: TODO (cost node)
BOF Binary heap ( 1 - based ) (eval-when (:compile-toplevel :load-toplevel :execute) (defun symb (&rest args) (intern (with-output-to-string (s) (dolist (x args) (princ (string-upcase x) s)))))) (defmacro define-binary-heap (struct-name &key element-type predicate key-fn key-type ini...
4fb65fd4cfb7b28c1a871017678e0b68331862b848dfec930e6e02ad0a34d68d
dyzsr/ocaml-selectml
ocamlcp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/tools/ocamlcp.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Printf let make_archive = ref false;; let with_impl = ref false;; let with_intf = ref false;; let w...
45f4024706e42b58cf6e0bcfc1a0c93c691e9d6b28652a989bffc805de74bd06
LambdaScientist/CLaSH-by-example
TestBusSignals.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module InAndOut.TestBusSignals where import CLaSH.Prelude import SAFE.TestingTools import SAFE.CommonClash import InAndOut.Models.BusSignals import Text.PrettyPrint.HughesPJClass import GHC.Generics (Generic) import Control.DeepSeq configurationList :...
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/InAndOut/TestBusSignals.hs
haskell
-TESTING
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module InAndOut.TestBusSignals where import CLaSH.Prelude import SAFE.TestingTools import SAFE.CommonClash import InAndOut.Models.BusSignals import Text.PrettyPrint.HughesPJClass import GHC.Generics (Generic) import Control.DeepSeq configurationList :...
7220f613d2b8c3c15454157cbc605e7e382274acf35626a6a97cc60e7bd66b7c
inaka/serpents
spts_wx.erl
-module(spts_wx). -behaviour(wx_object). -include_lib("wx/include/wx.hrl"). -include_lib("wx/src/wxe.hrl"). -record(state, { frame :: wx:wx_object() , label :: wx:wx_object() , socket :: port() , serpent_id :: pos_integer() , tick ...
null
https://raw.githubusercontent.com/inaka/serpents/b21b63cee117e0b98fd3a9be4fb326e9de3ee861/src/clients/wx/spts_wx.erl
erlang
gen_server callbacks API @todo do stuff with the Diffs like detecting the game ended Unused Callbacks Internal Functions
-module(spts_wx). -behaviour(wx_object). -include_lib("wx/include/wx.hrl"). -include_lib("wx/src/wxe.hrl"). -record(state, { frame :: wx:wx_object() , label :: wx:wx_object() , socket :: port() , serpent_id :: pos_integer() , tick ...
1ee781a3ea87c716f1d1d5e9b23c7265bdf219278a143447a3602eabc95dd3a1
avsm/eeww
printtyp.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/4834abb9a40a9f35d0d7041a61e53e3426d8886f/boot/ocaml/typing/printtyp.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Types open Outcometree val longident: formatter -> Longident.t -> unit val ident: form...
0c0459508a7ccb3a92050c1ae66086134f96309326c039a600a59617d01f4a14
Eventuria/demonstration-gsd
EventId.hs
module Eventuria.Libraries.CQRS.Write.Aggregate.Events.EventId where import Data.UUID type EventId = UUID
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Libraries/CQRS/Write/Aggregate/Events/EventId.hs
haskell
module Eventuria.Libraries.CQRS.Write.Aggregate.Events.EventId where import Data.UUID type EventId = UUID
c96d13e35be6ff79049ad4d03a35d4444cfbe57f393d780daf1358c60438c5aa
expipiplus1/vulkan
VK_AMD_shader_ballot.hs
{-# language CPP #-} -- | = Name -- -- VK_AMD_shader_ballot - device extension -- -- == VK_AMD_shader_ballot -- -- [__Name String__] -- @VK_AMD_shader_ballot@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 38 -- -- [__Revision__] 1 -- -- [__Extension and Versi...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Extensions/VK_AMD_shader_ballot.hs
haskell
# language CPP # | = Name VK_AMD_shader_ballot - device extension == VK_AMD_shader_ballot [__Name String__] @VK_AMD_shader_ballot@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] [__Contact__] == Other Extensi...
38 1 - Requires support for Vulkan 1.0 - < -Docs/issues/new?body=[VK_AMD_shader_ballot ] @dominikwitczakamd%0A*Here describe the issue or question you have about the VK_AMD_shader_ballot extension * > 2016 - 09 - 19 - , AMD - , AMD - , AMD...