_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
eacb488e22ef94e447886c2fa1ccd5c15a55ec3bb02b973989da30475ea7b970
DataHaskell/dh-core
Algorithms.hs
-- | -- Module : Statistics.Matrix.Algorithms Copyright : 2014 -- License : BSD3 -- -- Useful matrix functions. module Statistics.Matrix.Algorithms ( qr ) where import Control.Applicative ((<$>), (<*>)) import Control.Monad.ST (ST, runST) import Prelude hiding (replicate) import Numeric.Sum ...
null
https://raw.githubusercontent.com/DataHaskell/dh-core/2beb8740f27fa9683db70eb8d8424ee6c75d3e91/dense-linear-algebra/src/Statistics/Matrix/Algorithms.hs
haskell
| Module : Statistics.Matrix.Algorithms License : BSD3 Useful matrix functions. | /O(r*c)/ Compute the QR decomposition of a matrix. The result returned is the matrices (/q/,/r/).
Copyright : 2014 module Statistics.Matrix.Algorithms ( qr ) where import Control.Applicative ((<$>), (<*>)) import Control.Monad.ST (ST, runST) import Prelude hiding (replicate) import Numeric.Sum (sumVector,kbn) import Statistics.Matrix (Matrix, column, dimension, for, norm) import qualified ...
0fecc79684014008dc78d520f3dd3b7093d3e4a8e3ab56ec9a88827f812823ba
ecraven/r7rs-benchmarks
deriv.scm
;;; DERIV -- Symbolic derivation. (import (scheme base) (scheme cxr) (scheme read) (scheme write) (scheme time)) ;;; Returns the wrong answer for quotients. ;;; Fortunately these aren't used in the benchmark. (define (deriv a) (cond ((not (pair? a)) (if (eq? a 'x) 1 0)) ((eq? (car a) '+) ...
null
https://raw.githubusercontent.com/ecraven/r7rs-benchmarks/b0910c4759629fcd2fb84a323a4eeef3b6ffc6bf/src/deriv.scm
scheme
DERIV -- Symbolic derivation. Returns the wrong answer for quotients. Fortunately these aren't used in the benchmark.
(import (scheme base) (scheme cxr) (scheme read) (scheme write) (scheme time)) (define (deriv a) (cond ((not (pair? a)) (if (eq? a 'x) 1 0)) ((eq? (car a) '+) (cons '+ (map deriv (cdr a)))) ((eq? (car a) '-) (cons '- (map deriv (cdr a)))) ...
cb0cd0eb2b21c5a4d77b45f17533020f855ad9e046c2a509c0b10c710e3df078
circuithub/rel8
Type.hs
{-# language FlexibleContexts #-} # language FlexibleInstances # # language MonoLocalBinds # {-# language MultiWayIf #-} # language StandaloneKindSignatures # {-# language UndecidableInstances #-} module Rel8.Type ( DBType (typeInformation) ) where -- aeson import Data.Aeson ( Value ) import qualified Data.Aeson ...
null
https://raw.githubusercontent.com/circuithub/rel8/2a25126e214c1171c3d0c2d12d5a14ca831a266c/src/Rel8/Type.hs
haskell
# language FlexibleContexts # # language MultiWayIf # # language UndecidableInstances # aeson base bytestring case-insensitive hasql opaleye rel8 scientific text time uuid | Haskell types that can be represented as expressions in a database. There should be an instance of @DBType@ for all column types in y...
# language FlexibleInstances # # language MonoLocalBinds # # language StandaloneKindSignatures # module Rel8.Type ( DBType (typeInformation) ) where import Data.Aeson ( Value ) import qualified Data.Aeson as Aeson import Data.Int ( Int16, Int32, Int64 ) import Data.List.NonEmpty ( NonEmpty ) import Data.Kind ( C...
699eddd574866524303574339f0ee7f48290cedb6460438574418c33943cb430
WhatsApp/eqwalizer
app_a_no_errors.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(app_a_no_errors). -export([ok/0]). -spec ok() -> ok. ok() -> ok.
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/9935940d71ef65c7bf7a9dfad77d89c0006c288e/mini-elp/test_projects/standard/app_a/src/app_a_no_errors.erl
erlang
the LICENSE file in the root directory of this source tree.
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(app_a_no_errors). -export([ok/0]). -spec ok() -> ok. ok() -> ok.
61f5e1c21f81509d54ac0fcccd043c8a654959ee2abf74e80d209531db434b53
interactive-ssr/todo-demo
index.lisp
(ql:quickload '(hunchenissr markup)) (defpackage todo-demo (:use #:cl #:markup) (:import-from #:hunchentoot start-session session-value easy-acceptor) (:import-from #:hunchenissr define-easy-handler *id* *ws-port* ...
null
https://raw.githubusercontent.com/interactive-ssr/todo-demo/1237e931de44bde6fcad6dec83e8f3c7077afd57/index.lisp
lisp
GET parameter names go here define local variables here calculate if we are to add a new task add new task toggle checks save todo list in session
(ql:quickload '(hunchenissr markup)) (defpackage todo-demo (:use #:cl #:markup) (:import-from #:hunchentoot start-session session-value easy-acceptor) (:import-from #:hunchenissr define-easy-handler *id* *ws-port* ...
4322af6c51a3e8a0aa941e0ddc08f93adc0ac6a85c567fe75754260202639185
thelema/ocaml-community
odoc_print.ml
(***********************************************************************) (* *) (* OCamldoc *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/ocamldoc/odoc_print.ml
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 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 . open Format let new_fmt () = let buf = ...
bbfd6a7910f48c674338c5b3c04bbf2d1416eccd89b1cf10eae7506f66c017a3
BinaryAnalysisPlatform/bap
arm_utils.mli
open Core_kernel[@@warning "-D"] open Bap.Std open Arm_types val tmp : ?name:string -> typ -> var val assn : var -> exp -> stmt val fail : Source_code_position.t -> ('a,unit,string,'b) format4 -> 'a val bitlen : typ -> int val exec : stmt list -> ?flags:stmt list -> ?wflag:op -> op -> stmt list val exp_of_op : o...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/arm/arm_utils.mli
ocaml
open Core_kernel[@@warning "-D"] open Bap.Std open Arm_types val tmp : ?name:string -> typ -> var val assn : var -> exp -> stmt val fail : Source_code_position.t -> ('a,unit,string,'b) format4 -> 'a val bitlen : typ -> int val exec : stmt list -> ?flags:stmt list -> ?wflag:op -> op -> stmt list val exp_of_op : o...
a9650f61d2416a5d50e738e8e6f9f27bd4d42c2f896741cf31519dff8466bb9b
softwarelanguageslab/maf
R5RS_gabriel_browse-5.scm
; Changes: * removed : 2 * added : 5 * swaps : 1 * negated predicates : 1 * swapped branches : 2 * calls to i d fun : 3 (letrec ((lookup (lambda (key table) @sensitivity:FA ((letrec ((loop (lambda (x) @sensitivity:FA ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gabriel_browse-5.scm
scheme
Changes:
* removed : 2 * added : 5 * swaps : 1 * negated predicates : 1 * swapped branches : 2 * calls to i d fun : 3 (letrec ((lookup (lambda (key table) @sensitivity:FA ((letrec ((loop (lambda (x) @sensitivity:FA ...
089dbbfbc6618df61abaead774e3b8ca385f3f7647a19427ac8b08c79a5d0f45
xlevus/reframe-sente
handler.clj
(ns demo.handler (:require [demo.ws :as ws] [compojure.core :refer [GET POST defroutes]] [compojure.route :refer [not-found resources]] [ring.middleware.defaults :refer [site-defaults wrap-defaults]] [hiccup.core :refer [html]] [hiccup.page :refer [include-j...
null
https://raw.githubusercontent.com/xlevus/reframe-sente/a338816c82c9f1165134ecd5a17e0d4d088e24f0/src/clj/demo/handler.clj
clojure
(ns demo.handler (:require [demo.ws :as ws] [compojure.core :refer [GET POST defroutes]] [compojure.route :refer [not-found resources]] [ring.middleware.defaults :refer [site-defaults wrap-defaults]] [hiccup.core :refer [html]] [hiccup.page :refer [include-j...
0714dfb45b8aae20aaba07a08f6e69972bf0633305162b31c46f9ed73619ee2a
input-output-hk/ouroboros-network
Query.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldP...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/17889be3e1b6d9b5ee86022b91729837051e6fbb/ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Ledger/Query.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE PatternSynonyms # # LANGUAGE RankNTypes # * Serialisation -----------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies ...
962f71d3d3487381e2f22bccd09789310fa5caa6aa35c2b4525f3db2ded2e09a
5HT/ant
Charmap.ml
open Types; type charmap 'a = array (array 'a); value create x = do { let page = Array.make 0x100 x; Array.make 0x100 page }; Converts array ( array ' a ) into ' a. value build array = do { check whether array is a valid charma if Array.length array < 256 then invalid_arg "Runtime.Charmap.build" ...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Unicode/Charmap.ml
ocaml
open Types; type charmap 'a = array (array 'a); value create x = do { let page = Array.make 0x100 x; Array.make 0x100 page }; Converts array ( array ' a ) into ' a. value build array = do { check whether array is a valid charma if Array.length array < 256 then invalid_arg "Runtime.Charmap.build" ...
0e2f1c64e50a701bb23b954305125c58866adc56631d7838c893c40062b73f9d
input-output-hk/plutus
Exception.hs
-- editorconfig-checker-disable-file -- | The exceptions that an abstract machine can throw. -- appears in the generated instances # OPTIONS_GHC -Wno - overlapping - patterns # {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDep...
null
https://raw.githubusercontent.com/input-output-hk/plutus/bb9b5a18c26476fbf6b2f446ab267706426fec3a/plutus-core/plutus-core/src/PlutusCore/Evaluation/Machine/Exception.hs
haskell
editorconfig-checker-disable-file | The exceptions that an abstract machine can throw. appears in the generated instances # LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # | The type of ...
# OPTIONS_GHC -Wno - overlapping - patterns # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE UndecidableInstances # module PlutusCore.Evaluation.Machine.Exception ( UnliftingError (..) , AsUnliftingError (..) , KnownTypeError (..) , MachineError (..) , AsMa...
9f07779defa9fa72097ee4d9f251a604cb3d2ff058e62f5a3655cd7c071cb938
gedge-platform/gedge-platform
eetcd_kv.erl
-module(eetcd_kv). -include("eetcd.hrl"). -export([put/1, put/3]). -export([get/1, get/2]). -export([delete/1, delete/2]). -export([compact/1, compact/2]). -export([txn/4]). -export([ new/1, new/0, with_timeout/2, with_key/2, with_value/2, with_prefix/1, with_lease/2, with_ignore_value/1, with_ignore_leas...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/eetcd/src/eetcd_kv.erl
erlang
@doc Create context for request. If no reply is received within the specified time, the function call fails with `{error, timeout}'. @doc Sets data for the request's `key'. @doc Sets data for the request's `value'. @doc Enables `get', `delete' requests to operate on the keys with matching prefix. For example, `ge...
-module(eetcd_kv). -include("eetcd.hrl"). -export([put/1, put/3]). -export([get/1, get/2]). -export([delete/1, delete/2]). -export([compact/1, compact/2]). -export([txn/4]). -export([ new/1, new/0, with_timeout/2, with_key/2, with_value/2, with_prefix/1, with_lease/2, with_ignore_value/1, with_ignore_leas...
1347d91c0c1f6afdaf8cdb16c5c90cdd90dc1d9b35d8ccbf881e07ae5e554c1a
6502/JSLisp
server.lisp
(import * from rpc-server) (rpc:defun login (user-name) (open-session user-name)) (rpc:defun remote (user-name session-id x authcode) (let ((proplist (check-authorization user-name session-id authcode (json* x)))) (when (and proplist (find "admin" proplist...
null
https://raw.githubusercontent.com/6502/JSLisp/9a4aa1a9116f0cfc598ec9f3f30b59d99810a728/server.lisp
lisp
(import * from rpc-server) (rpc:defun login (user-name) (open-session user-name)) (rpc:defun remote (user-name session-id x authcode) (let ((proplist (check-authorization user-name session-id authcode (json* x)))) (when (and proplist (find "admin" proplist...
5e59e5be2de8035b8d41a7ee4b5a6af5e2e9ef6ed0653f17b9ebe212df1ef3e0
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_toplas98_lattice-1.scm
; Changes: * removed : 0 * added : 1 * swaps : 1 * negated predicates : 1 ; * swapped branches: 0 * calls to i d fun : 3 (letrec ((lexico (lambda (base) (letrec ((lex-fixed (lambda (fixed lhs1 rhs1) (letrec ((check (lambda (lhs2 rhs2) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_toplas98_lattice-1.scm
scheme
Changes: * swapped branches: 0
* removed : 0 * added : 1 * swaps : 1 * negated predicates : 1 * calls to i d fun : 3 (letrec ((lexico (lambda (base) (letrec ((lex-fixed (lambda (fixed lhs1 rhs1) (letrec ((check (lambda (lhs2 rhs2) ...
15fe7e6ff1f0b3b517b5b50a10d800e86ad009b657963043e0941e7e790323a8
gregr/experiments
evalo.rkt
#lang racket/base (provide evalo) (require "dk.rkt") (define (evalo expr value) (eval-expo expr '() value)) ;; This is an interpreter for a simple Lisp. Variables in this language are represented namelessly , using De Bruijn indices . ;; Because it is implemented as a relation, we can run this interpreter with ;; ...
null
https://raw.githubusercontent.com/gregr/experiments/1f476ff137eccd044b89545400d7eb04ee22bacb/mk-misc/micro-dkanren/evalo.rkt
racket
This is an interpreter for a simple Lisp. Variables in this language are Because it is implemented as a relation, we can run this interpreter with unknowns in any argument position. If we place unknowns in the `expr` position, we can synthesize programs. expr is a procedure definition If this is before lambda, ...
#lang racket/base (provide evalo) (require "dk.rkt") (define (evalo expr value) (eval-expo expr '() value)) represented namelessly , using De Bruijn indices . (define-relation (eval-expo expr env value) NOTE : this clause order is optimized for quine generation . ((fresh (body) (== `(closure ,body ,env...
44daa7004c029b51fe43d9a06e2be83c3df457d66f9878d6607817c61ff3a6b5
mirage/xentropyd
userspace.mli
* Copyright ( C ) Citrix Systems Inc. * * 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 . * * THE SOFTWARE IS PROVIDED " AS IS " AN...
null
https://raw.githubusercontent.com/mirage/xentropyd/4705bb2f6c10ae84f842a5c39cd8a513ea8c761a/xenctrl/userspace.mli
ocaml
* Copyright ( C ) Citrix Systems Inc. * * 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 . * * THE SOFTWARE IS PROVIDED " AS IS " AN...
a3f5d8035906d1db6c04413374270746d39a3fab9b7a833331e857a1faeb9247
ghc/packages-dph
Not.hs
-- Lifted negation produces runtime error -- {-# LANGUAGE ParallelArrays, ParallelListComp #-} import NotV import Data.Array.Parallel.PArray import qualified Data.Vector as V main = do let n = toVector notV V.mapM_ print n
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-test/test/Examples/Not.hs
haskell
Lifted negation produces runtime error # LANGUAGE ParallelArrays, ParallelListComp #
import NotV import Data.Array.Parallel.PArray import qualified Data.Vector as V main = do let n = toVector notV V.mapM_ print n
ae6fe89af8a0ee9f498b1bc4aecc9f0dc04989bad2ddecdc2dbf2ad9e05be277
8c6794b6/guile-tjit
test-import-order-d.scm
(define-module (test-import-order-d) #:use-module (base)) (push!)
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/standalone/test-import-order-d.scm
scheme
(define-module (test-import-order-d) #:use-module (base)) (push!)
1eb0eff549407efbc4910093ec691b1461b261362d977e0886e129ba16761e9a
digitallyinduced/ihp-forum
New.hs
module Web.View.Comments.New where import Web.View.Prelude data NewView = NewView { comment :: Comment , thread :: Include "userId" Thread , badges :: [Include "userId" UserBadge] } instance View NewView where html NewView { .. } = [hsx| <div class="row thread mb-5"> <div class="col-3 ...
null
https://raw.githubusercontent.com/digitallyinduced/ihp-forum/d71975ffd0439d27a69acb184431fb1b48796b15/Web/View/Comments/New.hs
haskell
module Web.View.Comments.New where import Web.View.Prelude data NewView = NewView { comment :: Comment , thread :: Include "userId" Thread , badges :: [Include "userId" UserBadge] } instance View NewView where html NewView { .. } = [hsx| <div class="row thread mb-5"> <div class="col-3 ...
5dad3c6c2cabd9132d1962f5dfe1a8a872386983a64f11828cc4a6be6785e8ff
elastic/eui-cljs
data_grid_header_cell_wrapper.cljs
(ns eui.data-grid-header-cell-wrapper (:require ["@elastic/eui/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js" :as eui])) (def EuiDataGridHeaderCellWrapper eui/EuiDataGridHeaderCellWrapper)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/data_grid_header_cell_wrapper.cljs
clojure
(ns eui.data-grid-header-cell-wrapper (:require ["@elastic/eui/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js" :as eui])) (def EuiDataGridHeaderCellWrapper eui/EuiDataGridHeaderCellWrapper)
920c73554904b3a2ba61d13a90717843f8ff5559945be1f30bf48de1e52984c6
spechub/Hets
AS_Basic_CASL.der.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./CASL / AS_Basic_CASL.der.hs Description : Abstract syntax of CASL basic specifications Copyright : ( c ) , , Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Porta...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CASL/AS_Basic_CASL.der.hs
haskell
# LANGUAGE DeriveDataTypeable # DrIFT command pos: free, type, semi colons pos: generated, opt. braces pos: var, semi colons pos: forall, semi colons, dots pos: dots pos: sort, semi colons pos: op, semi colons pos: pred, semi colons type, semi colons pos: commas pos: commas, < pos: "=", "{", ":", ".", "}" ...
| Module : ./CASL / AS_Basic_CASL.der.hs Description : Abstract syntax of CASL basic specifications Copyright : ( c ) , , Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Abstract Synt...
c870d4fe02f61215d195aa32e4edbf7abee15c72cc11bbdcd6de39d0164deeb7
mmottl/gsl-ocaml
blas_flat.mli
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 type order = Blas.order = | RowMajor | ColMajor type transpose = Blas.transpose = | NoTrans | Trans | ConjTrans type upl...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/blas_flat.mli
ocaml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 type order = Blas.order = | RowMajor | ColMajor type transpose = Blas.transpose = | NoTrans | Trans | ConjTrans type upl...
8dcfb9f00c5b22aea32756134071a545c6e35ea72411c73746b6fc897fc0e5c9
informatikr/hedis
Transactions.hs
# LANGUAGE DeriveGeneric # # LANGUAGE CPP , OverloadedStrings , FlexibleInstances , MultiParamTypeClasses , GeneralizedNewtypeDeriving # GeneralizedNewtypeDeriving #-} module Database.Redis.Transactions ( watch, unwatch, multiExec, Queued(), TxResult(..), RedisTx(), ) where #if __GLASGOW_HASKELL__ <...
null
https://raw.githubusercontent.com/informatikr/hedis/d6487b1b433a75d2562629b624ebf370179cb474/src/Database/Redis/Transactions.hs
haskell
actions of this type. proxy object for the /actual/ result, which will only be available after finishing the transaction. future index in EXEC result list |A 'Queued' value represents the result of a command inside a transaction. It is a proxy object for the /actual/ result, which will only be available af...
# LANGUAGE DeriveGeneric # # LANGUAGE CPP , OverloadedStrings , FlexibleInstances , MultiParamTypeClasses , GeneralizedNewtypeDeriving # GeneralizedNewtypeDeriving #-} module Database.Redis.Transactions ( watch, unwatch, multiExec, Queued(), TxResult(..), RedisTx(), ) where #if __GLASGOW_HASKELL__ <...
d4280695e86eab9291b16157b0a96ddc260bd368bd11cf6fa213e0728bfb299a
racket/typed-racket
submodule-shallow.rkt
#lang typed/racket/base/shallow ;; shallow submodules of shallow mod (module t typed/racket/base/shallow (: f (-> Real (-> Real Real) Real)) (define (f r g) (g (g r))) (provide f)) (require 't) (: h (-> Real Real)) (define (h n) (* n n)) (f 3 h)
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/submodule-shallow.rkt
racket
shallow submodules of shallow mod
#lang typed/racket/base/shallow (module t typed/racket/base/shallow (: f (-> Real (-> Real Real) Real)) (define (f r g) (g (g r))) (provide f)) (require 't) (: h (-> Real Real)) (define (h n) (* n n)) (f 3 h)
11a542456d250cb7583dd392cf2f2f83f2219edbbbed83a47dac21ad7d5decc9
yzhs/ocamlllvm
linenum.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/parsing/linenum.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 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 : linenum.mli 2553 1999 - 11 - ...
710fac687f0307fba2ea70b6ee0e735b7b81b208bbc4fecb240a728456e61faf
peti/funcmp
RedBlack.hs
| Module : FMP.RedBlack Copyright : ( c ) 2003 - 2010 ( c ) 2002 - 2003 ( c ) 2002 - 2003 Meik Hellmund ( c ) 1998 - 2002 ( c ) 1998 - 2002 Joachim Korittky ( c ) 1998 - 2002 License : Maintainer : Stability : p...
null
https://raw.githubusercontent.com/peti/funcmp/1f6713a273b57b8b60b19958420748daf65d35af/FMP/RedBlack.hs
haskell
Beispiel: rbtree :: Two34 String "E" (Three Nil "G" Nil "H" Nil) "I" "R" \begin{center} \perform{ generate "rs" 1 bsp } \end{center} ...
| Module : FMP.RedBlack Copyright : ( c ) 2003 - 2010 ( c ) 2002 - 2003 ( c ) 2002 - 2003 Meik Hellmund ( c ) 1998 - 2002 ( c ) 1998 - 2002 Joachim Korittky ( c ) 1998 - 2002 License : Maintainer : Stability : p...
514e2f8a3da3fb22c9b394c5a349313f4fe628f143c411ce7133370f5d14af91
unison-code/unison
LiftGoal.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison/src/Unison/Construction/LiftGoal.hs
haskell
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
f07f3909f11f18a3c46868e2a7bc301aabfde3f0c14c39286ae507c933bfeb6f
ActaFi/cardano-staking-smart-contract
Register.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE NumericUnderscores #-} # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Module : T...
null
https://raw.githubusercontent.com/ActaFi/cardano-staking-smart-contract/1548ba69b6cc6f2706668aee103e36c8c0bac19e/test/Tests/OffChain/Register.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE ScopedTypeVariables # The initial amount of microtokens on the staking pool.
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Module : Tests . OffChain . Register Description : A test to check the behavior of the register operation . Copyright : P2P Solutions Ltd. License : GPL...
6b7fdc0285a6037fc92601671a34964fadc9cc5d7272b21da7af889c91bcc2b5
nadeemabdulhamid/racketui
web.rkt
#lang racket (require "tfield.rkt" "render.rkt" "save.rkt") (require web-server/servlet web-server/servlet-env xml) (define DEBUG #f) ;; ============================================================================ ;; handles expired/invalid continuations (define (expiration-handler req) (respo...
null
https://raw.githubusercontent.com/nadeemabdulhamid/racketui/045e0e647439623397cdf67e8e045ec7aa5e2def/web.rkt
racket
============================================================================ handles expired/invalid continuations produces a response for the initial page load, based on the Assumption is that any further requests made will come through AJAX, which is handled by req-handler. generates a response to an AJAX req...
#lang racket (require "tfield.rkt" "render.rkt" "save.rkt") (require web-server/servlet web-server/servlet-env xml) (define DEBUG #f) (define (expiration-handler req) (response/full 404 #"File not found" (current-seconds) TEXT/HTML-MIME-TYPE empty (list #"File not found"))) ...
b12f99829a1c9570201b22a8626b41f2df9e2060192db6696d6ed59391da2d86
essandess/adblock2privoxy
ManPage.hs
module ManPage( createManPage ) where import Text.Pandoc import qualified Text.Pandoc.UTF8 as UTF8 import Data.Char (toUpper) import Control.Monad import System.FilePath import System.Directory import Distribution.PackageDescription import Text.Pandoc.Builder import Distribution.Package import Data.Time.Clock i...
null
https://raw.githubusercontent.com/essandess/adblock2privoxy/68affb86af325b88beaa7acda8866ad9b1d030f2/adblock2privoxy-utils/src/ManPage.hs
haskell
module ManPage( createManPage ) where import Text.Pandoc import qualified Text.Pandoc.UTF8 as UTF8 import Data.Char (toUpper) import Control.Monad import System.FilePath import System.Directory import Distribution.PackageDescription import Text.Pandoc.Builder import Distribution.Package import Data.Time.Clock i...
42bf5c50418c1bb5ceeff3042878439757548612b44cfef40e48aeb5099e61f0
agda/agda
Update.hs
module Agda.Utils.Update ( ChangeT , runChangeT, mapChangeT , UpdaterT , runUpdaterT , Change , MonadChange(..) , runChange , Updater , sharing , runUpdater , dirty , ifDirty , Updater1(..) , Updater2(..) ) where Control . Monad . Fail import is redundant since GHC 8.8.1 import Control...
null
https://raw.githubusercontent.com/agda/agda/467a4b9f9a6808ea5aaf3411a55c7bdcaf714d7d/src/full/Agda/Utils/Update.hs
haskell
* Change monad. | The class of change monads. because of the associated type synonym. liftWith f = ChangeT $ liftWith $ f . (. fromChangeT) liftWith = ChangeT . liftWith . (. (. fromChangeT)) | Run a 'ChangeT' computation, returning result plus change flag. | Run a 'ChangeT' computation, but ignore change flag. ...
module Agda.Utils.Update ( ChangeT , runChangeT, mapChangeT , UpdaterT , runUpdaterT , Change , MonadChange(..) , runChange , Updater , sharing , runUpdater , dirty , ifDirty , Updater1(..) , Updater2(..) ) where Control . Monad . Fail import is redundant since GHC 8.8.1 import Control...
281e1ce82717e32e00afe17d424f428198bdf718b3404a95b1adeeaa742c4381
avsm/mirage-duniverse
expect_test_collector.mli
open Expect_test_common.Std module Test_outcome : sig type t = { file_digest : File.Digest.t ; location : File.Location.t ; expectations : Expectation.Raw.t list ; saved_output : (File.Location.t * string) list ; trailing_output : string ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/ppx_expect/collector/expect_test_collector.mli
ocaml
* Collect the output that has been run since the last call to [save_output], or since the current expect-test started running. This function should only be called while a test is running. It is meant to be called as a result of ppx_expect translating an expect-test, and is not intended ...
open Expect_test_common.Std module Test_outcome : sig type t = { file_digest : File.Digest.t ; location : File.Location.t ; expectations : Expectation.Raw.t list ; saved_output : (File.Location.t * string) list ; trailing_output : string ...
5758bdeb7df039f8d228e4eb31fd32c50c95750207ca329f68121addf477dc1e
yetibot/core
help.clj
(ns yetibot.core.test.commands.help (:require [midje.sweet :refer [facts fact => contains provided]] [yetibot.core.commands.help :as h] [yetibot.core.models.default-command :refer [fallback-enabled? fallback-help-text-override]] ...
null
https://raw.githubusercontent.com/yetibot/core/3e3c1222d2a3c91bef4ee6f1d8b6bd6d3436857c/test/yetibot/core/test/commands/help.clj
clojure
(ns yetibot.core.test.commands.help (:require [midje.sweet :refer [facts fact => contains provided]] [yetibot.core.commands.help :as h] [yetibot.core.models.default-command :refer [fallback-enabled? fallback-help-text-override]] ...
add8b6bf508530070aead020d9afeffbdc8d72e9707702cdd83c39940ed8bfe5
fragnix/fragnix
Data.Streaming.Blaze.hs
# LANGUAGE Haskell98 # {-# LINE 1 "Data/Streaming/Blaze.hs" #-} # LANGUAGE CPP # # LANGUAGE FlexibleContexts # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RankNTypes #-} | Convert a stream of blaze - builder @Builder@s into a stream o...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/application/Data.Streaming.Blaze.hs
haskell
# LINE 1 "Data/Streaming/Blaze.hs" # # LANGUAGE BangPatterns # # LANGUAGE RankNTypes # * Buffers ** Status information ** Creation and modification ** Conversion to bytestings * Buffer allocation strategies
# LANGUAGE Haskell98 # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # | Convert a stream of blaze - builder @Builder@s into a stream of @ByteString@s . Adapted from blaze - builder - enumerator , written by myself and . Note : ...
2615bdc7094bfd0b028828f4aa38451e3bcfc3b70a57b588450751a9acb7b6a6
hjcapple/reading-sicp
ch3support.scm
#lang racket (provide prime? gcd) (provide rand-update) (provide permutations) P33 - 1.2.6 实例 : , [ 寻找因子 ] (define (square x) (* x x)) (define (smallest-divisor n) (find-divisor n 2)) (define (find-divisor n test-divisor) (cond ((> (square test-divisor) n) n) ((divides? test-divisor n) test-divisor) ...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/ch3support.scm
scheme
P82 - [嵌套映射]
#lang racket (provide prime? gcd) (provide rand-update) (provide permutations) P33 - 1.2.6 实例 : , [ 寻找因子 ] (define (square x) (* x x)) (define (smallest-divisor n) (find-divisor n 2)) (define (find-divisor n test-divisor) (cond ((> (square test-divisor) n) n) ((divides? test-divisor n) test-divisor) ...
5d791ba51fffdc8cb5a31935bd86e460cdc5dc43220725835d08e50af8eca614
haskell-opengl/OpenGLRaw
Core40.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.Core40 Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/Core40.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.Core40 License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Types * Enums * Functions
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.Core40 ( GLbitfield, GLboolean, GLbyte, GLchar, GLclampd, GLclampf, GLdouble, GLenum, GLfloat, GLhalf, GLint, GLint64, GLintptr, GLshort, GLsizei, GLsizeiptr, GLsync, GLubyte, ...
286dd4f4b766fb4cb30b5308e81b0a308744684f2d74ad282c5fd6d2d4ea06fe
richmit/mjrcalc
tst-util.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file tst-util.lisp @author < > ;; @brief Unit Te...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/tst-util.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file tst-util.lisp @brief Unit Tests.@EOL @std Common Lisp @see use-util.lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condi...
@author < > @parblock Copyright ( c ) 1997,2004,2010,2013,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary form must reproduce the above copyrigh...
6271d40e96f3408d5cf46c8725374025793042fe3c740ba3865bbed5b48e5ece
jeromesimeon/Galax
code_group_order.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_group_order.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_group_order.mli , v 1.6 2007/02/01 22:08:45 simeon Exp $ open Algebra_type open Code_selection_context open Execution_context open Physical_value open Xquery_common_ast type select_single_op_fn = Code_selection_context.c...
58b96540bb7ab7947c84da1a714e2d52f73b9233f25972f27f957464d7e8308d
cacheaudit/cacheaudit
x86Parse.ml
Copyright ( c ) 2013 - 2015 , IMDEA Software Institute . (* See ../LICENSE for authorship and licensing information *) Copyright ( c ) 2005 , Regents of the University of California * All rights reserved . * * Author : * Extended by : , , * * Redistribution and use in sour...
null
https://raw.githubusercontent.com/cacheaudit/cacheaudit/f0b52f85771ee31fed2a0a84a7e767a9d19e4b15/x86_frontend/x86Parse.ml
ocaml
See ../LICENSE for authorship and licensing information Parsing opcodes | 6 -> Div gop, bits | 0xF9 -> FlagSet(CF, true), bits
Copyright ( c ) 2013 - 2015 , IMDEA Software Institute . Copyright ( c ) 2005 , Regents of the University of California * All rights reserved . * * Author : * Extended by : , , * * Redistribution and use in source and binary forms , with or without * modification , are perm...
1b9eb484b18d86138cedf47c5e7ba4ce375e11d88ecf874005831a40df765083
gsakkas/rite
3234.ml
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Thresh of expr* expr* expr* expr | FiboPlus of expr* expr* expr* expr* expr | TheThing of expr* expr* expr;; let rec exprToString e = match e with | VarX -> "x" | VarY -> "y" | Sine ex...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3234.ml
ocaml
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Thresh of expr* expr* expr* expr | FiboPlus of expr* expr* expr* expr* expr | TheThing of expr* expr* expr;; let rec exprToString e = match e with | VarX -> "x" | VarY -> "y" | Sine ex...
20d7762842e7b4ab5ab0b74da32bf88dad0edf8e88ddd314a717331c5ddcff1a
ku-fpg/hermit
Flatten.hs
# LANGUAGE CPP # module Main where import HList data Tree a = Node (Tree a) (Tree a) | Leaf a flatten :: Tree a -> [a] flatten (Leaf a) = [a] flatten (Node l r) = flatten l ++ flatten r main :: IO () main = print (flatten (Node (Leaf 'h') (Leaf 'i'))) -- Should be in the "List" module {-# RULES "++ []" forall ...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/examples/concatVanishes/Flatten.hs
haskell
Should be in the "List" module # RULES "++ []" forall xs . xs ++ [] = xs # # RULES "++ strict" (++) undefined = undefined # # RULES "repH ++" forall xs ys . repH (xs ++ ys) = repH xs . repH ys # # RULES "repH []" repH [] = id # # RULES "repH (:)" forall x xs . ...
# LANGUAGE CPP # module Main where import HList data Tree a = Node (Tree a) (Tree a) | Leaf a flatten :: Tree a -> [a] flatten (Leaf a) = [a] flatten (Node l r) = flatten l ++ flatten r main :: IO () main = print (flatten (Node (Leaf 'h') (Leaf 'i'))) The " Algebra " for repH
a9d75594fe2530326c01e1f5600b10ed11118d1685ef13efafd7cbce0952c47e
technomancy/leiningen
test_b.clj
(ns test-b (:require [clojure.test :refer :all] [test-a :refer [record-ran]])) (use-fixtures :once (fn [& _] (throw (Exception. "Don't panic. This is an expected exception.")))) (deftest test-b (record-ran :test-b) (is (= 1 1)))
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/test_projects/sample-fixture-error/test/test_b.clj
clojure
(ns test-b (:require [clojure.test :refer :all] [test-a :refer [record-ran]])) (use-fixtures :once (fn [& _] (throw (Exception. "Don't panic. This is an expected exception.")))) (deftest test-b (record-ran :test-b) (is (= 1 1)))
175872db67ca54df2c4631b6c1f823f1740e73aa89c561a175564f25d1adc934
rvantonder/hack_parallel
myMap_sig.ml
* * Copyright ( c ) 2015 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the root directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . *...
null
https://raw.githubusercontent.com/rvantonder/hack_parallel/c9d0714785adc100345835c1989f7c657e01f629/src/utils/collections/myMap_sig.ml
ocaml
* * Copyright ( c ) 2015 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the root directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . *...
3f330624febb042cc2a6179224c941273a3a03490768811a2d3c002509b26f14
IvanRublev/year_progress_bot
telegram_register_webhook_tests.erl
-module(telegram_register_webhook_tests). -include_lib("eunit/include/eunit.hrl"). register_test_() -> {foreach, fun() -> meck:new(shotgun), meck:expect(shotgun, open, fun(_,_,_) -> {ok, 123} end), meck:expect(shotgun, get, fun(_,_) -> {ok, #{status_code => 200, body => <<"">>}} end...
null
https://raw.githubusercontent.com/IvanRublev/year_progress_bot/c3e85a5598d768933d5fb676c74d92fa8033cf60/apps/year_progress_bot/test/telegram/telegram_register_webhook_tests.erl
erlang
-module(telegram_register_webhook_tests). -include_lib("eunit/include/eunit.hrl"). register_test_() -> {foreach, fun() -> meck:new(shotgun), meck:expect(shotgun, open, fun(_,_,_) -> {ok, 123} end), meck:expect(shotgun, get, fun(_,_) -> {ok, #{status_code => 200, body => <<"">>}} end...
3ce28d337550b33409436867b664d3c089e1e8017e11740ee22e5f858af92351
imrehg/ypsilon
build-ucd-2.scm
Ypsilon Scheme System Copyright ( c ) 2004 - 2008 Y.FUJITA , LittleWing Company Limited . See license.txt for terms and conditions of use . #| produce followings from unicode data 5.0.0: "canonical-class.datum" "decompose.datum" "compose.datum" "compatibility.datum" |# (library (anonymous...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/unicode/build-ucd-2.scm
scheme
produce followings from unicode data 5.0.0: "canonical-class.datum" "decompose.datum" "compose.datum" "compatibility.datum" (code-point) name (general-category) canonical-combining bidi decomposition numeric bidi-mirrored unicode-1-name comment (simple-uppercase) (simple-lowercase) (simple-t...
Ypsilon Scheme System Copyright ( c ) 2004 - 2008 Y.FUJITA , LittleWing Company Limited . See license.txt for terms and conditions of use . (library (anonymous) (export) (import (core primitives) (core io) (core files) (core hashtables) (core sorting) (pre...
abbe35fe244ceaa577e0742acb416f2e3e5a23c59d04a58c763a83068a41a333
untangled-web/sql-datomic
parser_test.clj
(ns sql-datomic.parser-test (:require [clojure.test :refer :all] [sql-datomic.parser :as prs] [instaparse.core :as insta] [clj-time.core :as tm] [clojure.instant :as inst])) (defmacro parsable? ([stmt] `(is (prs/good-ast? (prs/parser ~stmt)))) ([stmt msg] `(is ...
null
https://raw.githubusercontent.com/untangled-web/sql-datomic/8a025fa66498ab683bd62ac6f689a8e10dc302da/test/sql_datomic/parser_test.clj
clojure
select product.prod-id from product where product.prod-id between 1 and 2 and product.title <> 'foo' select foo.bar from foo where product.url = #uri ""
(ns sql-datomic.parser-test (:require [clojure.test :refer :all] [sql-datomic.parser :as prs] [instaparse.core :as insta] [clj-time.core :as tm] [clojure.instant :as inst])) (defmacro parsable? ([stmt] `(is (prs/good-ast? (prs/parser ~stmt)))) ([stmt msg] `(is ...
35296c6791d8e5fcc572d7bd5f8d6060b16222a145790584e2ebdb102aa104b1
Risto-Stevcev/bastet
Dual.ml
open Interface (** A data structure representing the dual of a monoid *) type 'a dual = Dual of 'a module type MAGMA_F = functor (M : MAGMA) -> MAGMA with type t = M.t dual module type SEMIGROUP_F = functor (S : SEMIGROUP) -> SEMIGROUP with type t = S.t dual module type MONOID_F = functor (M : MONOID) -> MONOID wit...
null
https://raw.githubusercontent.com/Risto-Stevcev/bastet/030db286f57d2e316897f0600d40b34777eabba6/bastet/src/Dual.ml
ocaml
* A data structure representing the dual of a monoid
open Interface type 'a dual = Dual of 'a module type MAGMA_F = functor (M : MAGMA) -> MAGMA with type t = M.t dual module type SEMIGROUP_F = functor (S : SEMIGROUP) -> SEMIGROUP with type t = S.t dual module type MONOID_F = functor (M : MONOID) -> MONOID with type t = M.t dual module type MAGMA_ANY_F = functor (M ...
bfc2d51d5df3757832bc227185a6359ec6247ef53e3f4e98c1418d2385233f7e
sbcl/sbcl
parms.lisp
;;;; This file contains some parameterizations of various VM ;;;; attributes for the PPC. This file is separate from other stuff so ;;;; that it can be compiled and loaded earlier. This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU ...
null
https://raw.githubusercontent.com/sbcl/sbcl/a082e5a3ecdb4aced5e748fe8ffe35714999923c/src/compiler/ppc64/parms.lisp
lisp
This file contains some parameterizations of various VM attributes for the PPC. This file is separate from other stuff so that it can be compiled and loaded earlier. more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS fi...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") (defconstant sb-assem:assem-scheduler-p nil) (defconstant sb-assem:+inst-alignment-bytes+ 4) (defconst...
84965b29775877a3f1945c2acb1c889a95b41bcee5223cf43411f68299b98151
markmandel/brute-play-pong
component.clj
(ns ^{:doc "All the components for out pong game"} brute-play-pong.component (:import (com.badlogic.gdx.graphics Color) (com.badlogic.gdx.math Vector2))) normally i 'd have a position , but everything is a Rectangle in Pong . (defrecord Rectangle [^com.badlogic.gdx.math.Rectangle rect ^Color col...
null
https://raw.githubusercontent.com/markmandel/brute-play-pong/f10c7939e867f913cb35e4155768975fa0f93060/desktop/src-common/brute_play_pong/component.clj
clojure
(ns ^{:doc "All the components for out pong game"} brute-play-pong.component (:import (com.badlogic.gdx.graphics Color) (com.badlogic.gdx.math Vector2))) normally i 'd have a position , but everything is a Rectangle in Pong . (defrecord Rectangle [^com.badlogic.gdx.math.Rectangle rect ^Color col...
835d99dbe3582f4fbd76789d33f29056d37b13e23935fd735bde8eb6b52f5f1f
mivoq/hunpos
loc.ml
open Unix open Files open File_statistics open Io open Arg let main () = if Array.length(Sys.argv) < 2 then begin print_string "usage: "; print_string Sys.argv.(0); print_string " <dir>\n"; print_string "output written to console and to date dependent file "; let t =...
null
https://raw.githubusercontent.com/mivoq/hunpos/0f0f775039fa749e67711c07ac681a16c0979349/ocaml-cmake/examples/code-analysis/loc.ml
ocaml
* start *
open Unix open Files open File_statistics open Io open Arg let main () = if Array.length(Sys.argv) < 2 then begin print_string "usage: "; print_string Sys.argv.(0); print_string " <dir>\n"; print_string "output written to console and to date dependent file "; let t =...
d6bc44b447cc3a8490d1852a9e18ee9ba91de1be4bd578d8a6460b21810f23e1
BinaryAnalysisPlatform/bap-plugins
debugger.mli
open Bap.Std open Microx.Std open Concretizer open Flag (** TODO: split base_context and into expi_ and biri_ contexts, then propagate expi_ to concretizer and biri_ to conqueror *) (** The base_context is for biri, since we are using the trace part of it. Also, conqueror uses the next/set_next part of it. I...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/uaf-checker/debugger/debugger.mli
ocaml
* TODO: split base_context and into expi_ and biri_ contexts, then propagate expi_ to concretizer and biri_ to conqueror * The base_context is for biri, since we are using the trace part of it. Also, conqueror uses the next/set_next part of it. It could be split to a expi_base_context and biri_base_conte...
open Bap.Std open Microx.Std open Concretizer open Flag class base_context : ?dir:string -> ?directives:Flag.t list -> program term -> object('s) inherit Biri.context method cstack : sub term list method addrs : word list method blk_count : int method path_count : int method branch_coun...
f2a9d3017b8d8f964f0535237562604c34e21081f33b87626edec75affa9998b
soulomoon/SICP
Exercise4.58.scm
; Exercise 4.58: Define a rule that says that a person is a “big shot” in a division if the person works in the division but does not have a supervisor who works in the division. (load "/Users/soulomoon/git/SICP/Chapter4/ch4-query.rkt") (iqe '(assert! (rule (bigshot ?p1) (and (job ?p1 (?div1 . ?x1)) ...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter4/Exercise4.58.scm
scheme
Exercise 4.58: Define a rule that says that a person is a “big shot” in a division if the person works in the division but does not have a supervisor who works in the division. memory limit : 2048 MB . Assertion added to data base. >
(load "/Users/soulomoon/git/SICP/Chapter4/ch4-query.rkt") (iqe '(assert! (rule (bigshot ?p1) (and (job ?p1 (?div1 . ?x1)) (or (not (supervisor ?p1 ?p2)) (and (supervisor ?p1 ?p2) (job ?p2 (?div2 . ?x2)) (not (same ...
c45563e39261d0f69af7cb23215e919e5146d6a0047b1c2ec0eeeff1c491172e
SNePS/SNePS2
parser.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEPSLOG ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : parser.lisp , v 1.2 2013/08/28 19:07:26 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this fil...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snepslog/parser/parser.lisp
lisp
Syntax : Common - Lisp ; Package : SNEPSLOG ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitati...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : parser.lisp , v 1.2 2013/08/28 19:07:26 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " ba...
cd8cabed9b31f195dfccf4e2665ea9de1b617c816daf5765d7f87104faf74a99
chansey97/clprosette-miniKanren
boolector.rkt
#lang racket (require racket/runtime-path "server.rkt" "cmd.rkt" "env.rkt" "../solver.rkt" "../solution.rkt" (prefix-in base/ "base-solver.rkt") (only-in "smtlib2.rkt" get-model) (only-in "../../base/core/term.rkt" term term? term-type constant? expression constant with-t...
null
https://raw.githubusercontent.com/chansey97/clprosette-miniKanren/32626a77c061ba4ae034229d270cdb12df1e7f56/rosette/rosette/solver/smt/boolector.rkt
racket
types other than bitvectors, booleans, and uninterpreted functions over those types. If not, raise an exception. The solution consists of 'sat or 'unsat, followed by followed by a suitably formatted s-expression. The output of this procedure is a hashtable from constant a non-empty list of assertion identif...
#lang racket (require racket/runtime-path "server.rkt" "cmd.rkt" "env.rkt" "../solver.rkt" "../solution.rkt" (prefix-in base/ "base-solver.rkt") (only-in "smtlib2.rkt" get-model) (only-in "../../base/core/term.rkt" term term? term-type constant? expression constant with-t...
3e98bc600b33994eb1ee9bf5927cf2bcdc6d0cd501d45e16c7bab3a8a07826b1
TyOverby/mono
cohttp.ml
module Accept = Accept module Auth = Auth module Body = Body module Conf = Conf module Connection = Connection module Code = Code module Cookie = Cookie module Header = Header module Link = Link module Request = Request module Response = Response module S = S module Path = Path module Transfer = Transfer
null
https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/mirage-ocaml-cohttp/cohttp/src/cohttp.ml
ocaml
module Accept = Accept module Auth = Auth module Body = Body module Conf = Conf module Connection = Connection module Code = Code module Cookie = Cookie module Header = Header module Link = Link module Request = Request module Response = Response module S = S module Path = Path module Transfer = Transfer
10851a4b8aa5ff14df265a9295a3c62f235fb47226a7e93821ad91cbf61c12ee
archaelus/erlmail
smtpd_listener.erl
%%%--------------------------------------------------------------------------------------- @author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . %%% @doc SMTP socket listen server @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > for...
null
https://raw.githubusercontent.com/archaelus/erlmail/fe69b0e936f1512b4f349666e56c31c0af7b672c/src/smtpd_listener.erl
erlang
--------------------------------------------------------------------------------------- @doc SMTP socket listen server @reference See <a href="" target="_top">ErlMail Google Code Repository</a> for more information @version 0.0.6 @end Permission is hereby granted, free of charge, to any person...
@author < > [ ] 2006 - 2007 Simple Enigma , Inc. All Rights Reserved . @reference See < a href=" / modules / erlmail " target="_top">Erlang Software Framework</a > for more information @since 0.0.5 The MIT License Copyright ( c ) 2007 , Simple Enigma , Inc. All Righs Reserved i...
f896d8c239eaee502302c736b0f10defe265d19361e6a6008b6c110bfba8aa3d
elaforge/karya
TheoryFormat.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt | This is the part of " Derive . Scale . Theory " that 's concerned with converting ' Pitch . Pitch'es to and from ' Pitch . Note 's . It 's split off to avoid cluttering T...
null
https://raw.githubusercontent.com/elaforge/karya/8d30186009ac22d1e66a5ba3e1a93159abb64cd1/Derive/Scale/TheoryFormat.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * types | General purpose config. octave is in the pitch text. | Key config is only necessary for formatting that depends on the key, e.g. or missing key would mean you couldn't even display notes. | This ...
Copyright 2013 | This is the part of " Derive . Scale . Theory " that 's concerned with converting ' Pitch . Pitch'es to and from ' Pitch . Note 's . It 's split off to avoid cluttering Theory , but also because the " Derive . Scale " import would make it a circular dependency . This is...
5c3f5be7fc1bcee0d18d5f716163524af9b6eb92423c930bf86bfe6d6a424ae1
RefactoringTools/wrangler
full_fsm2.erl
-module(full_fsm2). -behaviour(full_fsm). -export([callback_1/2]). callback_1(Alloc, Freq) -> not lists:member(Freq,Alloc).
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/examples/behaviour_extraction/freq_server/manual_output/full_fsm2.erl
erlang
-module(full_fsm2). -behaviour(full_fsm). -export([callback_1/2]). callback_1(Alloc, Freq) -> not lists:member(Freq,Alloc).
efcc90673476c0db44168f11755e8f2168d4da8833f43ab557a22b7ec75389f2
rems-project/cerberus
rustic_parser.ml
open Cerb_frontend open Opal open Rustic_types let var = letter >>= fun c -> many (letter <|> digit <|> exactly '_') >>= fun s -> let s = implode (c :: s) in return s (* if List.mem s keywords then mzero else return s*) let spaces = many space (* let ownership = (exactlys "read" >> return RC_read) <|> ...
null
https://raw.githubusercontent.com/rems-project/cerberus/124c93f10cb4c235f6396adec82ebf9563daeb7e/backend/rustic/src/rustic_parser.ml
ocaml
if List.mem s keywords then mzero else return s let ownership = (exactlys "read" >> return RC_read) <|> (exactlys "write" >> return RC_write) TODO: is this the right thing? exactlys "[" >> ownership >>= fun o -> exactlys "]" >>
open Cerb_frontend open Opal open Rustic_types let var = letter >>= fun c -> many (letter <|> digit <|> exactly '_') >>= fun s -> let s = implode (c :: s) in return s let spaces = many space let scoping = (exactlys "all" >> return RCS_unscoped) <|> (var >>= fun s -> return (RCS_scoped s)) let make_sym ...
fc36c58226a8945dbfdbb255c1e41057cb8e51a513b4582d3e7ca390c9dd4b64
zjhmale/Ntha
Main.hs
module Main where import Ntha (Expr (..), Type (..), Value (..), TypeScope (..), ValueScope (..), ...
null
https://raw.githubusercontent.com/zjhmale/Ntha/dc47fafddf67cf821c90c5cd72566de67d996238/app/Main.hs
haskell
module Main where import Ntha (Expr (..), Type (..), Value (..), TypeScope (..), ValueScope (..), ...
4da1c25cd19da9f6931a94cce00389d93fb1dd860759b752271d5cbc011b6024
coccinelle/coccinelle
array.mli
type 'a t = 'a array external length : 'a array -> int = "%array_length" external get : 'a array -> int -> 'a = "%array_safe_get" external set : 'a array -> int -> 'a -> unit = "%array_safe_set" external make : int -> 'a -> 'a array = "caml_make_vect" external create : int -> 'a -> 'a array = "caml_make_vect" external ...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.12/array.mli
ocaml
type 'a t = 'a array external length : 'a array -> int = "%array_length" external get : 'a array -> int -> 'a = "%array_safe_get" external set : 'a array -> int -> 'a -> unit = "%array_safe_set" external make : int -> 'a -> 'a array = "caml_make_vect" external create : int -> 'a -> 'a array = "caml_make_vect" external ...
0094e2f45fab2813b1981d6edd11d1927a33b5825bb20d81db0701f9fd5217b7
Dexterminator/clj-templates
templates_test.cljs
(ns clj-templates.pages.templates-test (:require [cljs.test :refer-macros [use-fixtures are]] [clj-templates.test-utils-frontend :refer-macros [facts fact is=]] [clj-templates.pages.templates.core :as templates] [pjstadig.humane-test-output])) (facts "search-templates-handler" (...
null
https://raw.githubusercontent.com/Dexterminator/clj-templates/705e652fece2455257e5008c12c712bb9f7802d1/test/cljs/clj_templates/pages/templates_test.cljs
clojure
(ns clj-templates.pages.templates-test (:require [cljs.test :refer-macros [use-fixtures are]] [clj-templates.test-utils-frontend :refer-macros [facts fact is=]] [clj-templates.pages.templates.core :as templates] [pjstadig.humane-test-output])) (facts "search-templates-handler" (...
7e85fabeb32db057d9676ad875abd213b3d7d4950d4558d16344dec6bdc6c2c8
kblake/erlang-chat-demo
element_placeholder.erl
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (element_placeholder). -include_lib ("wf.hrl"). -compile(export_all). reflect() -> record_info(fields, placeholder). render_element(Record) -> Record#placeholder.body.
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/elements/layout/element_placeholder.erl
erlang
Nitrogen Web Framework for Erlang Copyright ( c ) 2008 - 2010 See MIT - LICENSE for licensing information . -module (element_placeholder). -include_lib ("wf.hrl"). -compile(export_all). reflect() -> record_info(fields, placeholder). render_element(Record) -> Record#placeholder.body.
24d68a03e2c265af18b72c042836f8700ec48174d66ec7660ddc6fc9235759de
LaurentMazare/btc-ocaml
header.mli
open Core.Std module Bits : sig type t = { mantissa : int ; exponent : int } with sexp end type t = { version : int ; previous_block_header_hash : Hash.t ; merkle_root_hash : Hash.t ; time : Time.t ; bits : Bits.t ; nonce : int } with sexp, fields, bin_io val hash : t -> Hash.t val consu...
null
https://raw.githubusercontent.com/LaurentMazare/btc-ocaml/0616d7853d807e50dc9ff83c6783b80f71640da2/header.mli
ocaml
open Core.Std module Bits : sig type t = { mantissa : int ; exponent : int } with sexp end type t = { version : int ; previous_block_header_hash : Hash.t ; merkle_root_hash : Hash.t ; time : Time.t ; bits : Bits.t ; nonce : int } with sexp, fields, bin_io val hash : t -> Hash.t val consu...
e2b56850210a9c2efcda56b3aedb9e9023ee936245fef75b594c0f06b82922cd
byorgey/AoC
04.hs
import Control.Arrow import Crypto.Hash.MD5 (hash) import Data.ByteString.Base16 (encode) import Data.ByteString.Char8 (pack, unpack) import Data.List import Data.Maybe (catMaybes) import System.Environment adventCoin :: String -...
null
https://raw.githubusercontent.com/byorgey/AoC/30eb51eb41af9ca86b05de598a3a96d25bd428e3/2015/04/04.hs
haskell
import Control.Arrow import Crypto.Hash.MD5 (hash) import Data.ByteString.Base16 (encode) import Data.ByteString.Char8 (pack, unpack) import Data.List import Data.Maybe (catMaybes) import System.Environment adventCoin :: String -...
b170c027bb0bbad4954b6298c53339b8c0572b4956e14bd753939bcb7b8ab90f
racket/racket7
rktio.rkt
#lang racket/base (require racket/include (for-syntax racket/base) (only-in '#%linklet primitive-table)) (provide rktio rktio-error? rktio-errkind rktio-errno rktio-errstep racket-error?) ;; More `provide`s added by macros below (define rktio-table (or ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/host/rktio.rkt
racket
More `provide`s added by macros below Error results are represented as vectors:
#lang racket/base (require racket/include (for-syntax racket/base) (only-in '#%linklet primitive-table)) (provide rktio rktio-error? rktio-errkind rktio-errno rktio-errstep racket-error?) (define rktio-table (or (primitive-table '#%rktio) (error '...
64bb966e0bd9b1c64fb48fd05927068cfbc45b056f4ab0fc7cf52040ac6211a7
exoscale/clojure-kubernetes-client
extensions_v1beta1_deployment_rollback.clj
(ns clojure-kubernetes-client.specs.extensions-v1beta1-deployment-rollback (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.extensions-v1beta1-rollback-config :refer :all] ) (:import (java.io File))) (declare extensions-v1beta1...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/extensions_v1beta1_deployment_rollback.clj
clojure
(ns clojure-kubernetes-client.specs.extensions-v1beta1-deployment-rollback (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.extensions-v1beta1-rollback-config :refer :all] ) (:import (java.io File))) (declare extensions-v1beta1...
6500747565cde572c74e2a4886f8af332df3312c71984190bf07fb0c0132b5e7
iamFIREcracker/adventofcode
day15.lisp
(defpackage :aoc/2019/15 #.cl-user::*aoc-use*) (in-package :aoc/2019/15) (defparameter *directions* '(1 4 2 3)) (defparameter *deltas* '(#C(0 1) #C(1 0) #C(0 -1) #C(-1 0))) (defparameter *opposites* '(2 3 1 4)) (defun build-map (program) (let ((map (make-hash-table)) oxygen) (labels ((move (i) ...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/cf33fc217dc63b9438a9b6ec793207351c4d48d5/src/2019/day15.lisp
lisp
move back after done exploring
(defpackage :aoc/2019/15 #.cl-user::*aoc-use*) (in-package :aoc/2019/15) (defparameter *directions* '(1 4 2 3)) (defparameter *deltas* '(#C(0 1) #C(1 0) #C(0 -1) #C(-1 0))) (defparameter *opposites* '(2 3 1 4)) (defun build-map (program) (let ((map (make-hash-table)) oxygen) (labels ((move (i) ...
5fbb4ad11c76c246e1cfb278bf6ceda0ef954f95b4ab0bad5d84e85db8f5bf39
goblint/analyzer
gobFpath.ml
type t = Fpath.t [@@deriving show] let equal = Fpath.equal let compare = Fpath.compare let hash p = Hashtbl.hash (Fpath.to_string p) let pretty () p = GoblintCil.Pretty.text (Fpath.to_string p) let to_yojson p = `String (Fpath.to_string p) let of_yojson = function | `String s -> Fpath.of_string s |> Resul...
null
https://raw.githubusercontent.com/goblint/analyzer/78e8ce83e70585e89623ec84af355deb2b3b854d/src/util/gobFpath.ml
ocaml
TODO: don't use get?
type t = Fpath.t [@@deriving show] let equal = Fpath.equal let compare = Fpath.compare let hash p = Hashtbl.hash (Fpath.to_string p) let pretty () p = GoblintCil.Pretty.text (Fpath.to_string p) let to_yojson p = `String (Fpath.to_string p) let of_yojson = function | `String s -> Fpath.of_string s |> Resul...
d770492d38fd8d5116d931e2287ca3890a910b6254aee792509baf201d6625be
bitnomial/prometheus
RegistryT.hs
# LANGUAGE GeneralizedNewtypeDeriving # module System.Metrics.Prometheus.Concurrent.RegistryT where import Control.Applicative ((<$>)) import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Monad.Trans.Class (MonadTrans) import Control.Monad.Trans.Reader ( ReaderT (..), ask, ) import System.Metrics....
null
https://raw.githubusercontent.com/bitnomial/prometheus/b7d3160e2a4d971fe03bef6b43fe8bf15a9c9349/src/System/Metrics/Prometheus/Concurrent/RegistryT.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module System.Metrics.Prometheus.Concurrent.RegistryT where import Control.Applicative ((<$>)) import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Monad.Trans.Class (MonadTrans) import Control.Monad.Trans.Reader ( ReaderT (..), ask, ) import System.Metrics....
dbac9295bfb314c798f9e66ef63b60adad631dc2e0383866ebe15b7c500f2dce
pallet/pallet
properties.clj
(ns pallet.template.properties "A template for writing properties style config files." (:require [pallet.utils :refer [as-string]])) (defn property-section [[name settings]] (apply str "[" (as-string name) "]" \newline (map #(format "%s = %s\n" (as-string (first %)) (as-string (second %))) settings))...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/src/pallet/template/properties.clj
clojure
(ns pallet.template.properties "A template for writing properties style config files." (:require [pallet.utils :refer [as-string]])) (defn property-section [[name settings]] (apply str "[" (as-string name) "]" \newline (map #(format "%s = %s\n" (as-string (first %)) (as-string (second %))) settings))...
01ad3cb25eac8733f554ae5f7a35746e2d2446eebca43224022305fba4b4fd6d
hspec/hspec
HUnit.hs
import Test.Hspec import Test.HUnit main :: IO () main = hspec $ do describe "reverse" $ do it "reverses a list" $ do reverse [1, 2, 3] @?= [3, 2, 1 :: Int]
null
https://raw.githubusercontent.com/hspec/hspec/b48eee41032450123044de82c4c02213813563b1/doc/_includes/HUnit.hs
haskell
import Test.Hspec import Test.HUnit main :: IO () main = hspec $ do describe "reverse" $ do it "reverses a list" $ do reverse [1, 2, 3] @?= [3, 2, 1 :: Int]
5086fca061b7f5d225fd95a669f1b346bb0955ace83ee71e0560e378cc5f55a3
gered/clj-htmltopdf
options.clj
(ns clj-htmltopdf.options (:require [clojure.java.io :as io] [clojure.pprint :as pprint] [clojure.string :as string] [clj-htmltopdf.css :as css] [clj-htmltopdf.utils :as utils]) (:import [java.net URI URL] [com.openhtmltopdf.extend FSUriResolver] [com.openhtmltopdf.pdfboxout PdfRende...
null
https://raw.githubusercontent.com/gered/clj-htmltopdf/ad9d15d81d876ff6cfeb0e76d452fa3461107850/src/clj_htmltopdf/options.clj
clojure
(ns clj-htmltopdf.options (:require [clojure.java.io :as io] [clojure.pprint :as pprint] [clojure.string :as string] [clj-htmltopdf.css :as css] [clj-htmltopdf.utils :as utils]) (:import [java.net URI URL] [com.openhtmltopdf.extend FSUriResolver] [com.openhtmltopdf.pdfboxout PdfRende...
3215a7c92463ea5a140d357789dc7eb155a3723e699d434aad2af25f4daa6650
danieljharvey/mimsa
FindUses.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # module Language.Mimsa.Transform.FindUses (findUses, memberInUses, numberOfUses, Uses (..)) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as M import Data.Monoid import Language.Mimsa.Core newtype Uses var = Uses (Map (Maybe...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/compiler/src/Language/Mimsa/Transform/FindUses.hs
haskell
| remove recursive uses of a var from it's body var in use and used over 0 times
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralisedNewtypeDeriving # module Language.Mimsa.Transform.FindUses (findUses, memberInUses, numberOfUses, Uses (..)) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as M import Data.Monoid import Language.Mimsa.Core newtype Uses var = Uses (Map (Maybe...
db80cf872b25bbd812e1e07df5da73ae629197622c14e47ca672da503c493989
clojure-emacs/cider-nrepl
version.clj
(ns cider.nrepl.middleware.version "Return version info of the CIDER-nREPL middleware itself." (:require [cider.nrepl.version :as version] [nrepl.misc :refer [response-for]] [nrepl.transport :as transport])) (defn handle-version [handler msg] (if (= (:op msg) "cider-version") (->> {:cider-version ve...
null
https://raw.githubusercontent.com/clojure-emacs/cider-nrepl/cd29bd761e58707d438b3373d7512c9e33ded865/src/cider/nrepl/middleware/version.clj
clojure
(ns cider.nrepl.middleware.version "Return version info of the CIDER-nREPL middleware itself." (:require [cider.nrepl.version :as version] [nrepl.misc :refer [response-for]] [nrepl.transport :as transport])) (defn handle-version [handler msg] (if (= (:op msg) "cider-version") (->> {:cider-version ve...
d2613cb5df766ea31872cd2b036beda7abbf77af4711df968b9aa9ff4cd74fcf
ijvcms/chuanqi_dev
player_operate_active_cache.erl
%%%------------------------------------------------------------------- %%% @author tuhujia ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 07 . 七月 2016 09:52 %%%------------------------------------------------------------------- -module(player_operate_active_cache). -include("common.hrl"). -include("cach...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/operate_active/player_operate_active_cache.erl
erlang
------------------------------------------------------------------- @author tuhujia @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ===============================================================...
( C ) 2016 , < COMPANY > Created : 07 . 七月 2016 09:52 -module(player_operate_active_cache). -include("common.hrl"). -include("cache.hrl"). -include("record.hrl"). -export([ select_all/1, select_row/3, replace/1, delete/3, remove_cache/3, get_info/4, update_info/4 ]). select_all(PlayerId) -> db_cache_lib...
e9a8d0733a327c39ceba74fc4bb6c0272f14630f63455effb392f673db46a837
Helium4Haskell/helium
UndefinedConstructor.hs
module UndefinedConstructor where data Tree a = Bin (Tree a) (Tree a) | Leaf a main :: Tree Int main = Binn (Leaf 3) (Leaf 5)
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticerrors/UndefinedConstructor.hs
haskell
module UndefinedConstructor where data Tree a = Bin (Tree a) (Tree a) | Leaf a main :: Tree Int main = Binn (Leaf 3) (Leaf 5)
8f8920adffbbc97a09061abfcd6bd91eaaa45e7a6cc66acb7dc82e422eb4f513
TomMD/network-data
CSum.hs
# LANGUAGE BangPatterns , GeneralizedNewtypeDeriving , DeriveDataTypeable # module Data.CSum ( csum16 , CSum , zeroCSum ) where import qualified Data.ByteString as B import Data.List (foldl') import Control.Monad (sequence) import Data.Serialize import Data.Serialize.Get import Data.Ser...
null
https://raw.githubusercontent.com/TomMD/network-data/90da1a30ef8f6a0c6cad246c23acd2a46b5d8d19/Data/CSum.hs
haskell
# INLINE csum16 #
# LANGUAGE BangPatterns , GeneralizedNewtypeDeriving , DeriveDataTypeable # module Data.CSum ( csum16 , CSum , zeroCSum ) where import qualified Data.ByteString as B import Data.List (foldl') import Control.Monad (sequence) import Data.Serialize import Data.Serialize.Get import Data.Ser...
b6a96b36b4ff564bcd01765f1289a4a45491938abd37dc7010b33fd653b06b13
3b/3bgl-misc
material.lisp
(in-package #:3bgl-model-viewer) (defclass material () ()) (defmethod bind-material (m) ) (defclass ai-material () ((ambient :accessor ambient :initform (v4 0.1 0.5 0.1) :initarg :ambient) (diffuse :accessor diffuse :initform (v4 0.9 0.1 0.9) :initarg :diffuse) (specular :accessor specular :initform (v4 ...
null
https://raw.githubusercontent.com/3b/3bgl-misc/e3bf2781d603feb6b44e5c4ec20f06225648ffd9/model-viewer/material.lisp
lisp
not sure about order of these...
(in-package #:3bgl-model-viewer) (defclass material () ()) (defmethod bind-material (m) ) (defclass ai-material () ((ambient :accessor ambient :initform (v4 0.1 0.5 0.1) :initarg :ambient) (diffuse :accessor diffuse :initform (v4 0.9 0.1 0.9) :initarg :diffuse) (specular :accessor specular :initform (v4 ...
710d7ca1f47f8daf1e9dbc76c783c97509d8beec837a2f13e777b1934f3381e8
phadej/saison
TestSaison.hs
module Main (main) where import qualified Saison import Saison.JSONTestSuite (jsonTestSuite) main :: IO () main = jsonTestSuite Saison.eitherDecodeStrict
null
https://raw.githubusercontent.com/phadej/saison/991d1244b97dadb35adabdf217eb3d5fe2d310fc/saison-jsontestsuite/test/TestSaison.hs
haskell
module Main (main) where import qualified Saison import Saison.JSONTestSuite (jsonTestSuite) main :: IO () main = jsonTestSuite Saison.eitherDecodeStrict
c65c044aa60e5514bb50eac2b13d3b4b3873064a36bf5aaf32b6a2d4feee7b1e
seanirby/koeeoadi
parser.cljs
(ns koeeoadi.parser (:require [om.next :as om] [koeeoadi.util :as util] [clojure.set :refer [rename-keys]])) (defmulti read om/dispatch) (defmethod read :default [{:keys [state query]} k _] {:value (let [st @state] (om/db->tree query st st))}) (defmethod read :widget/active [{...
null
https://raw.githubusercontent.com/seanirby/koeeoadi/481dc31e023e0a54ee5248bd2ef06a56e7d1d64d/src/cljs/koeeoadi/parser.cljs
clojure
** Mutators
(ns koeeoadi.parser (:require [om.next :as om] [koeeoadi.util :as util] [clojure.set :refer [rename-keys]])) (defmulti read om/dispatch) (defmethod read :default [{:keys [state query]} k _] {:value (let [st @state] (om/db->tree query st st))}) (defmethod read :widget/active [{...
3b3a82a66b831083c2dd8be6d3aac21d79e00d5e86d6bd87b19676755bbe0316
altlinuxteam/alt-packer
autoinstall.scm
("/sysconfig-base/language" action "write" lang ("ru_RU")) ("/sysconfig-base/kbd" action "write" layout "ctrl_shift_toggle") ("/datetime-installer" action "write" commit #t name "RU" zone "UTC" utc #t) ("/evms/control" action "write" control open installer #t) ("/evms/control" action "write" control update) ("/evms/pr...
null
https://raw.githubusercontent.com/altlinuxteam/alt-packer/69da273615eb961c3756423a7946920926cd09e1/metadata/8.2-workstation/autoinstall.scm
scheme
("/sysconfig-base/language" action "write" lang ("ru_RU")) ("/sysconfig-base/kbd" action "write" layout "ctrl_shift_toggle") ("/datetime-installer" action "write" commit #t name "RU" zone "UTC" utc #t) ("/evms/control" action "write" control open installer #t) ("/evms/control" action "write" control update) ("/evms/pr...
ea53327debe0362b81aaa5841e887009c8795b45a00128a61ba1708c3e093942
penpot/penpot
grid.cljc
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) KALEIDOS INC (ns app.common.types.page.grid (:require [app.common.spec :as us] [app.common.types.page.grid.color :a...
null
https://raw.githubusercontent.com/penpot/penpot/5463671db13441ba3f730a34118547d34a5a36f1/common/src/app/common/types/page/grid.cljc
clojure
Copyright (c) KALEIDOS INC --- Board grids
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 /. (ns app.common.types.page.grid (:require [app.common.spec :as us] [app.common.types.page.grid.color :as-alias grid-color] [clojure.s...
1ee1e514606508e12364925ffd269a1a58d1bbdbe346886dc0de2547ec14d055
MercuryTechnologies/moat
Common.hs
# LANGUAGE CPP # module Common where import Data.Proxy (Proxy (..)) import Moat showKotlin :: forall a. ToMoatData a => String showKotlin = prettyKotlinData $ toMoatData (Proxy @a) showSwift :: forall a. ToMoatData a => String showSwift = prettySwiftData $ toMoatData (Proxy @a) hasDoc :: Bool #if MIN_VERSION_templa...
null
https://raw.githubusercontent.com/MercuryTechnologies/moat/6fc4d51ed976265c55be6bef17486f09044093b5/test/Common.hs
haskell
# LANGUAGE CPP # module Common where import Data.Proxy (Proxy (..)) import Moat showKotlin :: forall a. ToMoatData a => String showKotlin = prettyKotlinData $ toMoatData (Proxy @a) showSwift :: forall a. ToMoatData a => String showSwift = prettySwiftData $ toMoatData (Proxy @a) hasDoc :: Bool #if MIN_VERSION_templa...
558870780f03bdf5f0aa26d80d716edf3357917073b608aaceee4eef74c2c92e
jmbr/cl-buchberger
term.lisp
(in-package :com.superadditive.cl-buchberger) Copyright ( C ) 2007 < > ;; ;; 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 l...
null
https://raw.githubusercontent.com/jmbr/cl-buchberger/4503216b4f2e3372daf4c9cca7b2e978cbc8256b/term.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
(in-package :com.superadditive.cl-buchberger) Copyright ( C ) 2007 < > 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 (defclass term (ring-element) ...
6a9965337c95131a4afa03f8f5c30a99e32710e51313443c3eccd8e0bbcd4f6d
emqx/emqx
emqx_mgmt_api_topics.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/3587c4c04aaf681f32e80ed2ebe6aef60549bd4c/apps/emqx_management/src/emqx_mgmt_api_topics.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_mgmt_api_topics). -include_lib("emqx/include/emqx.hrl"). -include_lib("typerefl/in...
9fde90c20d0c02beb40cb9ea4a3fff101dc027f76661ea66c72d93b3b1fbb852
xmonad/xmonad-contrib
DragPane.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , PatternGuards # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.DragPane Description : Split the screen either horizontally or vertically and show two windows . Copyright : ( c ) < > ...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Layout/DragPane.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.DragPane License : BSD3-style (see LICENSE) Stability : unstable Portability : unportable Layouts that splits the screen either horizontally or vertically and layout order. ----------------------...
# LANGUAGE FlexibleInstances , MultiParamTypeClasses , PatternGuards # Description : Split the screen either horizontally or vertically and show two windows . Copyright : ( c ) < > < > , < > Maintainer : < > shows two windows . The first window...
17192c84bcbeaed567c66949429bf9ac5268be4d2d2f2708252e10a679427d99
charJe/portal
testing.lisp
(ql:quickload 'portal) #++ (assert (equal (header->alist (str:join +crlf+ '("GET /chat?name=value HTTP/1.1" "Host: example.com:8000" "Upgrade: websocket" "Connection: Upgrade" ...
null
https://raw.githubusercontent.com/charJe/portal/98734931f6dadad23b7157c41d4fac58852cc6a5/testing.lisp
lisp
prevent entering debugger error because message is a string echo error to websocket
(ql:quickload 'portal) #++ (assert (equal (header->alist (str:join +crlf+ '("GET /chat?name=value HTTP/1.1" "Host: example.com:8000" "Upgrade: websocket" "Connection: Upgrade" ...
8859039dda3f78a5b2f75636fb98e8c5bd25e9da0bb07b9df2004e4e78fc7250
links-lang/links
lens_map_intf.ml
module type S = sig include Map.S val pp : 'a Lens_format.fmt_fn -> 'a t Lens_format.fmt_fn val show : 'a Lens_format.fmt_fn -> 'a t -> string val find_exn : 'a t -> key:key -> 'a val find : 'a t -> key:key -> 'a option val from_alist : (key * 'a) list -> 'a t val to_list : (key -> 'a -> 'b) -> 'a t...
null
https://raw.githubusercontent.com/links-lang/links/2923893c80677b67cacc6747a25b5bcd65c4c2b6/lens/lens_map_intf.ml
ocaml
module type S = sig include Map.S val pp : 'a Lens_format.fmt_fn -> 'a t Lens_format.fmt_fn val show : 'a Lens_format.fmt_fn -> 'a t -> string val find_exn : 'a t -> key:key -> 'a val find : 'a t -> key:key -> 'a option val from_alist : (key * 'a) list -> 'a t val to_list : (key -> 'a -> 'b) -> 'a t...
ea7567e65317b733229e5d95daa4e4269a7d2796a78a995febd494babf23cd76
tomhanika/conexp-clj
dependencies_test.clj
;; Copyright ⓒ the conexp-clj developers; all rights reserved. ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bou...
null
https://raw.githubusercontent.com/tomhanika/conexp-clj/5e4c15697f06446f925f53d1d143528155d7dd3a/src/test/clojure/conexp/fca/dependencies_test.clj
clojure
Copyright ⓒ the conexp-clj developers; all rights reserved. The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not re...
Eclipse Public License 1.0 ( -1.0.php ) (ns conexp.fca.dependencies-test (:use clojure.test) (:use conexp.base conexp.fca.contexts conexp.fca.many-valued-contexts conexp.fca.implications conexp.fca.dependencies)) (def mv1 (make-mv-context #{1 2 3} #{5 6} ...
fa4249741f48223502c948dba9410edfe27ec1beede9ce9a655ca5c15d07e31d
geo2a/redfin-lib
Symbolic.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuantifiedConstraints # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # | Module : ISA.Types . Symbolic Copyright : ( c ) 2019 License : MIT ( see the file LICENSE ) Maintainer...
null
https://raw.githubusercontent.com/geo2a/redfin-lib/644cf14838f3bac3977e0fea081849334dd61da2/src/ISA/Types/Symbolic.hs
haskell
# LANGUAGE GADTs # * Concrete values * Symbolic expressions ** substitute an expression for a variable ** simplify an expression ** try to concertise symbolic values --------------------------------------------------------------------------- | Concrete values: either signed or unsigned integers, or booleans | Sy...
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuantifiedConstraints # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # | Module : ISA.Types . Symbolic Copyright : ( c ) 2019 License : MIT ( see the file LICENSE ) Maintainer : Stability : ex...
5a36f422297c5ea6ce6474d6eb8301cbf4c31961cce6241ffaea1ed9fea35a20
vikram/lisplibraries
mop.lisp
$ I d : mop.lisp , v 1.11 2006/09/04 12:34:34 alemmens Exp $ (in-package :rucksack) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; MOP Magic ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; (defclass persistent-class...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/rucksack/mop.lisp
lisp
list of items following the :INDEX option, but we're only Persistent slot definitions Copying and comparing slot definitions Our own options. Initializing the persistent-class metaobjects The (RE)INITIALIZE-INSTANCE methods below get called whenever a class with metaclass PERSIST...
$ I d : mop.lisp , v 1.11 2006/09/04 12:34:34 alemmens Exp $ (in-package :rucksack) MOP Magic (defclass persistent-class (standard-class) ((persistent-slots :initform '() :accessor class-persistent-slots) (index :initarg :index :initform nil :documentatio...
8ac8ed413f7ed50392feadde41837480308cd064b097f64516d04d4dec4d123c
realgenekim/rss-reader-fulcro-demo
development.clj
(ns development (:require [clojure.pprint :refer [pprint]] [clojure.repl :refer [doc source]] [clojure.tools.namespace.repl :as tools-ns :refer [disable-reload! refresh clear set-refresh-dirs]] [com.example.components.datomic :refer [datomic-connections]] [com.example.components.ring-middleware] ...
null
https://raw.githubusercontent.com/realgenekim/rss-reader-fulcro-demo/336063e80623965b1cc2515f294f3c0ba0e38e7f/src/datomic/development.clj
clojure
[com.fulcrologic.rad.database-adapters.datomic :as datomic] [datomic.api :as d] (when connection (log/info "SEEDING data.") (seed/new-category (new-uuid 1000) "Tools") (seed/new-category (new-uuid 1003) "Misc") :item/category...
(ns development (:require [clojure.pprint :refer [pprint]] [clojure.repl :refer [doc source]] [clojure.tools.namespace.repl :as tools-ns :refer [disable-reload! refresh clear set-refresh-dirs]] [com.example.components.datomic :refer [datomic-connections]] [com.example.components.ring-middleware] ...
bbb815907b259492397fa18a12ba44b480a625463e8c9f53f894663a4c4923b6
baconpaul/composition-kit
logical_sequence_test.clj
(ns composition-kit.music-lib.logical-sequence-test (use clojure.test) (:require [composition-kit.music-lib.logical-sequence :as ls]) (:require [composition-kit.music-lib.logical-item :as i]) (:require [composition-kit.music-lib.tempo :as tempo]) (:require [composition-kit.music-lib.midi-util :as midi]) ) ...
null
https://raw.githubusercontent.com/baconpaul/composition-kit/fce0addb74a9c30ba06e051d3bca51c5a2b0ce6f/test/composition_kit/music_lib/logical_sequence_test.clj
clojure
(ns composition-kit.music-lib.logical-sequence-test (use clojure.test) (:require [composition-kit.music-lib.logical-sequence :as ls]) (:require [composition-kit.music-lib.logical-item :as i]) (:require [composition-kit.music-lib.tempo :as tempo]) (:require [composition-kit.music-lib.midi-util :as midi]) ) ...
e7782553ab7db5c14e0ce997f5fef5dfea0cc68f32a245636b782260cf6704fc
FailWhaleBrigade/water-wars
Block.hs
module WaterWars.Client.Resources.Block (module WaterWars.Core.Terrain.Block, BlockMap, placeSingleBlock, blocks, loadBlockMap) where import ClassyPrelude import Control.Monad.Error.Class import qualified Graphics.Gloss as Gloss import WaterWars.Client.Render.Terrain.Solid import WaterWars.Client.Render.Config impor...
null
https://raw.githubusercontent.com/FailWhaleBrigade/water-wars/bdd0616b1eed281ace499f059b4cc1e72bc50d05/client/src/WaterWars/Client/Resources/Block.hs
haskell
Floor TopRightCorner TopLeftCorner Middle Ceil
module WaterWars.Client.Resources.Block (module WaterWars.Core.Terrain.Block, BlockMap, placeSingleBlock, blocks, loadBlockMap) where import ClassyPrelude import Control.Monad.Error.Class import qualified Graphics.Gloss as Gloss import WaterWars.Client.Render.Terrain.Solid import WaterWars.Client.Render.Config impor...
6d3cca80d35c8da3b2d85660e79c6143fdcf1b532aedf56acce51d8748a787c8
albertoruiz/easyVision
roisel.hs
$ ./roisel source --save = selected.yuv -- SPACE to stop video, mark region with mouse right button, S to save desired frame / region , ESC to end . import EasyVision import Graphics.UI.GLUT import Control.Monad(when) import Util.Options main = do sz <- findSize (cam,ctrl) <- getCam 0 sz >>= withPause ...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/old/tutorial/roisel.hs
haskell
save = selected.yuv SPACE to stop video, mark region with mouse right button,
S to save desired frame / region , ESC to end . import EasyVision import Graphics.UI.GLUT import Control.Monad(when) import Util.Options main = do sz <- findSize (cam,ctrl) <- getCam 0 sz >>= withPause prepare mbname <- getRawOption "--save" let name = case mbname of Nothing -> ...
21430a9f2f09b02d60f771d78ef8d6148308fe740c9f8e252081e02567016e09
cmonty/brainiac
core.clj
(ns brainiac.test.core (:use [brainiac.core]) (:use [clojure.test]))
null
https://raw.githubusercontent.com/cmonty/brainiac/f0e1e1e112e1b10f3f135d959c34aa8b7f2ca086/test/brainiac/test/core.clj
clojure
(ns brainiac.test.core (:use [brainiac.core]) (:use [clojure.test]))
efd4330762d916955d72354a01c56edbe056d570a4f47616a07de68a41cf6369
craigfe/sink
empty.ml
open Sink_kernel type t = empty = | [@@deriving branded] let t = Repr.empty let absurd = function (_ : t) -> . let all = []
null
https://raw.githubusercontent.com/craigfe/sink/c5431edfa1b06f1a09845a481c4afcb3e92f0667/src/sink/empty.ml
ocaml
open Sink_kernel type t = empty = | [@@deriving branded] let t = Repr.empty let absurd = function (_ : t) -> . let all = []
2e6ba25f79c7d88b8303dd6b82cae9203be8aae7a4881de89d825b5afa256e13
camlp5/camlp5
pa_macro_print.ml
(* camlp5r *) (* pa_macro_gram.ml,v *) Copyright ( c ) INRIA 2007 - 2017 #load "pa_macro.cmo"; #load "pa_extend.cmo"; #load "q_MLast.cmo"; open Pa_macro; open Pa_extprint; Grammar.Unsafe.clear_entry print_rule_list; EXTEND GLOBAL: dexpr print_rule print_rule_list; print_rule_list: [ [ "["; "]" -> [] ...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/etc/pa_macro_print.ml
ocaml
camlp5r pa_macro_gram.ml,v
Copyright ( c ) INRIA 2007 - 2017 #load "pa_macro.cmo"; #load "pa_extend.cmo"; #load "q_MLast.cmo"; open Pa_macro; open Pa_extprint; Grammar.Unsafe.clear_entry print_rule_list; EXTEND GLOBAL: dexpr print_rule print_rule_list; print_rule_list: [ [ "["; "]" -> [] | "["; rules = LIST1 print_rule_or_ifd...