_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
1c964bfb442fa1ab22d3b4f6a3bf5d1cb34fbfb24d9adfd219f159249423e1ed
msaitow/BraHKet
coretest.hs
import Data.List import Data.Maybe import BraHKet ------------------------------------------------------------------------- -- Test code for contracting the core indices in the spin-free RDMs ------------------------------------------------------------------------- main = do let -------------------------------...
null
https://raw.githubusercontent.com/msaitow/BraHKet/fff30d68a0693494a76fb3b0cf5d9f0f5104690f/Codes/coretest.hs
haskell
----------------------------------------------------------------------- Test code for contracting the core indices in the spin-free RDMs ----------------------------------------------------------------------- ----------------------------------------------- Declaration for molecular orbital indices ---------------...
import Data.List import Data.Maybe import BraHKet main = do let i = sfIndex "i" Active NonDummy j = sfIndex "j" Active NonDummy k = sfIndex "k" Active NonDummy l = sfIndex "l" Active NonDummy m = sfIndex "m" Active NonDummy n = sfIndex "n" Active NonDummy a = sfIndex "a" ...
5728c9542a28a03dbd09e138d726b20ba189ad7950ef0d056fe143ae062ff103
travitch/haggle
BiDigraph.hs
# LANGUAGE TypeFamilies # -- | This graph is an efficient representation of bidirectional graphs with -- parallel edges. -- This is in contrast to ' Data . Graph . . SimpleBiDigraph ' , which -- can only handle simple graphs (i.e., without parallel edges). -- -- The representation is slightly less efficient as a res...
null
https://raw.githubusercontent.com/travitch/haggle/bbd2ec0fc53998690cd2cc3a99fb9909f5b84555/src/Data/Graph/Haggle/BiDigraph.hs
haskell
| This graph is an efficient representation of bidirectional graphs with parallel edges. can only handle simple graphs (i.e., without parallel edges). The representation is slightly less efficient as a result. | A mutable bidirectional graph | An immutable bidirectional graph # UNPACK # # UNPACK # # UNPACK # |...
# LANGUAGE TypeFamilies # This is in contrast to ' Data . Graph . . SimpleBiDigraph ' , which module Data.Graph.Haggle.BiDigraph ( MBiDigraph, BiDigraph, newMBiDigraph, newSizedMBiDigraph ) where import Control.Monad ( when ) import qualified Control.Monad.Primitive as P import qualified Control.Monad.Ref...
3f5308b2c1540963fec1e9a5c0daa68e696587cc4542b870e47b15423984499c
wireapp/wire-server
User.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DefaultSignatures # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by...
null
https://raw.githubusercontent.com/wireapp/wire-server/e03f7219210019ae5be50739f594dc667e669168/libs/hscim/src/Web/Scim/Class/User.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DefaultSignatures # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affe...
a98f3b2d9a6dee113081f06449d872691b3d1e4521540155d8a8846c950c8fdf
dizzyd/epop
epop_md5.erl
-module(epop_md5). -author(''). %%% -------------------------------------------------------------------- %%% File : md5.erl Author : < > Purpose : Implementation of MD5 in erlang Created : 30 Oct 1997 by < > %%% ==================================================================== %%% License to copy an...
null
https://raw.githubusercontent.com/dizzyd/epop/41251928d48990603d04cbd5751eb6f158e738fa/src/epop_md5.erl
erlang
-------------------------------------------------------------------- File : md5.erl ==================================================================== License to copy and use this software is granted provided that it Algorithm" in all material mentioning or referencing this software or this function. Lic...
-module(epop_md5). -author(''). Author : < > Purpose : Implementation of MD5 in erlang Created : 30 Oct 1997 by < > is identified as the " RSA Data Security , Inc. MD5 Message - Digest that such works are identified as " derived from the RSA Data Security , Inc. MD5 Message - Digest Algorithm " in a...
0afef2fc438c2b38a53ca4f15501a8939024265fa73a9a7aa566558d51103bbf
Yleisradio/http-kit-aws4
http_kit_spec.clj
(ns http-kit-aws4.http-kit-spec (:require [speclj.core :refer :all] [http-kit-aws4.http-kit :refer [canonical-request signed-request]]) (:import (org.joda.time DateTimeZone DateTime))) (describe "normalized-headers" (it "omits header with nil value" (should= [["x-not-borked" "foo"]] (...
null
https://raw.githubusercontent.com/Yleisradio/http-kit-aws4/a2ef738fad8a5fbfdee40df0573aa5e2ff96e324/spec/http_kit_aws4/http_kit_spec.clj
clojure
-v4-test-suite.html#signature-v4-test-suite-example
(ns http-kit-aws4.http-kit-spec (:require [speclj.core :refer :all] [http-kit-aws4.http-kit :refer [canonical-request signed-request]]) (:import (org.joda.time DateTimeZone DateTime))) (describe "normalized-headers" (it "omits header with nil value" (should= [["x-not-borked" "foo"]] (...
936302acbac9c7cd3c407ee1bbf1d81fad369731c5ea874b6f9816b42e7f9ebd
sshirokov/CLSQL
sqlite-sql.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: sqlite-sql.lisp Purpose : High - level SQLite interface Authors : , , Created : Aug 2003 ;;;; This file , part...
null
https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/db-sqlite/sqlite-sql.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: sqlite-sql.lisp (), also known as the LLGPL. ************************************************************************* Read subsequent rows. The condition was ...
Purpose : High - level SQLite interface Authors : , , Created : Aug 2003 This file , part of CLSQL , is Copyright ( c ) 2003 by and Copyright ( c ) 2003 - 2010 by and . CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU ...
ac67eb0417e1b988966fcf276183a6f5009dc0e8e73617e6a851756c524c9bd4
nasser/magic
special.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/tests/clojure/test_clojure/special.clj
clojure
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 epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns clojure.test-clojure.special (:use clojure.test) (:require [clojure.test-helper :refer [should-not-reflect]])) let , (deftest multiple-keys-in-destructuring (let [foo (fn [& {:keys [x]}] x) bar (fn [& options] (apply foo :x :b options))] (is (...
34219eaee3bf0e816259102fceae4dfc21d97147bd1dbce1a906e5ca51391e38
Gbury/mSAT
icnf_solve.ml
module Vec = Msat.Vec module Parse : sig type 'a event = | Add_clause of 'a array | Solve of 'a array type 'a t val make : file:string -> (int -> 'a) -> 'a t val next : 'a t -> 'a event (** @raise End_of_file when done *) end = struct module L = Lexer type 'a event = | Add_clause of 'a arr...
null
https://raw.githubusercontent.com/Gbury/mSAT/b6ea55e7abb71e8fca294a167bf7d8091cbd82a5/tests/icnf-solve/icnf_solve.ml
ocaml
* @raise End_of_file when done done check unsat core next problem!
module Vec = Msat.Vec module Parse : sig type 'a event = | Add_clause of 'a array | Solve of 'a array type 'a t val make : file:string -> (int -> 'a) -> 'a t end = struct module L = Lexer type 'a event = | Add_clause of 'a array | Solve of 'a array type 'a t = { mk: int -> 'a; ...
23462d1263a45b7c96147d28f8714e7b7dabbaab1542eaaacf85e1f6e0d53b6a
turtl/core-cl
main.lisp
(defpackage :turtl-core-test (:use :cl :cl-async-future :fiveam :event-glue :turtl-core) (:import-from :turtl-core ;; main bs :do-start ;; crypto :encrypt :decrypt :keygen :to-base64 ...
null
https://raw.githubusercontent.com/turtl/core-cl/8fdfaaf918f731318e734eaa7adcd083494f44b8/app/test/main.lisp
lisp
main bs crypto mvc protected models models
(defpackage :turtl-core-test (:use :cl :cl-async-future :fiveam :event-glue :turtl-core) (:import-from :turtl-core :do-start :encrypt :decrypt :keygen :to-base64 :from-base64 :to-hex ...
9501af7a71f6a491c98b48b38442aae5ac5c18a29a7864df2f7e954046f74d03
makkalot/fsrun
fschange.clj
(ns leiningen.fschange (:refer-clojure :exclude [do]) (:require [leiningen.core.main :as main] [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [com.makkalot.testrun :refer [schedule scan-and-react! current-tracker scan schedule...
null
https://raw.githubusercontent.com/makkalot/fsrun/e833bfca83f9d6d5afb31da60431cae0c430cc22/src/leiningen/fschange.clj
clojure
(ns leiningen.fschange (:refer-clojure :exclude [do]) (:require [leiningen.core.main :as main] [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [com.makkalot.testrun :refer [schedule scan-and-react! current-tracker scan schedule...
7b854e2f894af5d653507fd30f1f8cf8faea3c20a8165f4a07740412b21a12b3
abailly/xxi-century-typed
Subway.hs
module Subway where import Control.Arrow((>>>)) import Data.List(sort) data Subway = Sub [Subway] deriving (Show, Eq, Ord) fromString' :: [Subway] -> String -> Subway fromString' [cur] [] = cur fromString' (Sub ys : stack) ('0' : xs) = fromString' (Sub [] : (Sub (Sub [] : ys)) : stack) xs fromString' (sub : (Su...
null
https://raw.githubusercontent.com/abailly/xxi-century-typed/41faf299f8841b6e6f6048a33bd236fff3e3d28f/haskell/Subway.hs
haskell
module Subway where import Control.Arrow((>>>)) import Data.List(sort) data Subway = Sub [Subway] deriving (Show, Eq, Ord) fromString' :: [Subway] -> String -> Subway fromString' [cur] [] = cur fromString' (Sub ys : stack) ('0' : xs) = fromString' (Sub [] : (Sub (Sub [] : ys)) : stack) xs fromString' (sub : (Su...
78c3d95a0a73f5369f4cff1d4ad51de65e44ebebad91b40e88886795d83a63e6
bjpop/blip
Version.hs
----------------------------------------------------------------------------- -- | -- Module : Blip.Version Copyright : ( c ) 2012 , 2013 -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : ghc -- Version number of Blip , derived magically from cabal file . -- ------...
null
https://raw.githubusercontent.com/bjpop/blip/3d9105a44d1afb7bd007da3742fb19dc69372e10/bliplib/src/Blip/Version.hs
haskell
--------------------------------------------------------------------------- | Module : Blip.Version License : BSD-style Maintainer : Stability : experimental ---------------------------------------------------------------------------
Copyright : ( c ) 2012 , 2013 Portability : ghc Version number of Blip , derived magically from cabal file . module Blip.Version (version, versionString) where import Paths_bliplib (version) import Data.Version (showVersion) versionString :: String versionString = showVersion version
c27a20550d78de141d66bae58e79e73432369696b3efa0460b3b89cbe342ab8c
anchpop/wise_mans_haskell
eitherDivide.hs
eitherDivide :: Double -> Double -> Either String Double eitherDivide _ 0 = Left "Sorry, can't divide by zero" eitherDivide x y = Right (x / y)
null
https://raw.githubusercontent.com/anchpop/wise_mans_haskell/021ca3f3d96ebc0ecf2daf1a802fc33d067e24cc/haskelltests/should_compile/eitherDivide.hs
haskell
eitherDivide :: Double -> Double -> Either String Double eitherDivide _ 0 = Left "Sorry, can't divide by zero" eitherDivide x y = Right (x / y)
727116bb4501cdcc8d674c362e886850efb77cf374c1ac1caf17a7f1f2bf0d94
douglastofoli/dotfiles
ManageHooks.hs
module XMonad.Custom.ManageHook (myManageHook) where import XMonad import XMonad.Core import Data.Monoid import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageHelpers import XMonad.ManageHook (doShift, className, title) import XMonad.Layout.NoBorders import XMonad.Util.NamedScratchpad import qualified XMonad....
null
https://raw.githubusercontent.com/douglastofoli/dotfiles/acbe7ec3498d66fbed974a50b780c1c174b9920f/config/xmonad/src/XMonad/Custom/ManageHooks.hs
haskell
> doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doFloat > doCenterFloat > doCenterFloat > doCenterFloat > doFloat > doFullFloat
module XMonad.Custom.ManageHook (myManageHook) where import XMonad import XMonad.Core import Data.Monoid import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageHelpers import XMonad.ManageHook (doShift, className, title) import XMonad.Layout.NoBorders import XMonad.Util.NamedScratchpad import qualified XMonad....
10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58
khotyn/4clojure-answer
35-local-bindings.clj
7
null
https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/35-local-bindings.clj
clojure
7
699a30afcddf0dbd84de41244ef10f6c0e472aa268964c3dacb7cff095a18689
arrdem/blather
jdk_re_test.clj
(ns jdk-re-test (:require [clojure.test :as t] [languages.jdk-re :refer [-parser] :rename {-parser parser}] [instaparse.core :refer [parse]])) (defn do-parse [text] (parse parser text)) (t/deftest test-char-parses (t/is (do-parse "a")) (t/is (do-parse "\\{")) ...
null
https://raw.githubusercontent.com/arrdem/blather/76fc860f26ae2fb7f0d2240da42cf85b0cb1169d/src/test/clj/jdk_re_test.clj
clojure
(ns jdk-re-test (:require [clojure.test :as t] [languages.jdk-re :refer [-parser] :rename {-parser parser}] [instaparse.core :refer [parse]])) (defn do-parse [text] (parse parser text)) (t/deftest test-char-parses (t/is (do-parse "a")) (t/is (do-parse "\\{")) ...
f10f41d664295ce6326553f1d8076d071cc2480c114126f385cc7db6f998daa5
dimitri/pgloader
archive.lisp
;;; ;;; Tools to handle archive files, like ZIP of CSV files ;;; (in-package #:pgloader.archive) (defparameter *supported-archive-types* '(:tar :tgz :gz :zip)) (defparameter *http-buffer-size* 4096 "4k ought to be enough for everyone") (defun archivep (archive-file) "Return non-nil when the ARCHIVE-FILE is somet...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/utils/archive.lisp
lisp
Tools to handle archive files, like ZIP of CSV files This operation could take some time, make it so that the user knows it's happening for him. return the pathname where we just downloaded the file TODO: fallback to the following if the unzip command is not found (zip:unzip archive-file expand-directory :if-ex...
(in-package #:pgloader.archive) (defparameter *supported-archive-types* '(:tar :tgz :gz :zip)) (defparameter *http-buffer-size* 4096 "4k ought to be enough for everyone") (defun archivep (archive-file) "Return non-nil when the ARCHIVE-FILE is something we know how to expand." (member (archive-type archive-file...
c795f4409ece486293c8f044aa1dae56d834939a7492d13d0b73552d24f52d59
racket/scribble
struct.rkt
#lang racket/base (require (rename-in (except-in "core.rkt" target-url struct:target-url target-url? target-url-addr) [make-target-url core:make-target-url]) "private/provide-structs.rkt" "html-properties.rkt" racket/provide-syntax r...
null
https://raw.githubusercontent.com/racket/scribble/beb2d9834169665121d34b5f3195ddf252c3c998/scribble-lib/scribble/struct.rkt
racket
delayed-element-content delayed-block-blocks current-serialize-resolve-info part-relative-element-content collect-info-parents generate-tag tag-key current-tag-prefixes add-current-tag-prefix strip-aux ---------------------------------------- collapse nested with-attributes rebuild with flattened inner: lift ne...
#lang racket/base (require (rename-in (except-in "core.rkt" target-url struct:target-url target-url? target-url-addr) [make-target-url core:make-target-url]) "private/provide-structs.rkt" "html-properties.rkt" racket/provide-syntax r...
c59286e0e2776ee4dfa2549b189e439b0212bbf762b4e148892de792c47efb1e
ghcjs/jsaddle-dom
NotificationPermissionCallback.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.NotificationPermissionCallback (newNotificationPermissionCallback, newNotificationPermissionCallbackSync, ...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/NotificationPermissionCallback.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.NotificationPermissionCallback (newNotificationPermissionCallback, newNotificationPermissionCallbackSync, newNotificationPermissionCallbackAsync, NotificationPermissionCallback) where...
82b4a46d2ba8bc543f5bd7b8179e509fd21b07178c99c73cc3eb4cf6bce16089
kowainik/hintman
Hint.hs
{- | This module contains function that creates all comments for the PR review. Currently supported features: * HLint suggestions * Trailing spaces removal -} module Hintman.Hint ( getAllComments ) where import Hintman.Core.Delta (Delta (..), fromFileDelta) import Hintman.Core.Hint (toLines) import Hi...
null
https://raw.githubusercontent.com/kowainik/hintman/3dd38fa789098fbadfc905be801853942b81b7be/src/Hintman/Hint.hs
haskell
| This module contains function that creates all comments for the PR review. Currently supported features: * HLint suggestions * Trailing spaces removal | Get all review comments of all supported types for the PR. | Get all modified files in the PR. | Create an URL for downloading file content. The URL is in th...
module Hintman.Hint ( getAllComments ) where import Hintman.Core.Delta (Delta (..), fromFileDelta) import Hintman.Core.Hint (toLines) import Hintman.Core.PrInfo (ModifiedFile (..), Owner (..), PrInfo (..), Repo (..), Sha (..)) import Hintman.Core.Review (Comment) import Hintman.Download (downloadFile) i...
8953dba64baa8251fd3c980b1061d39dcdf440853ac19022e614cec16f5968f1
suvash/one-time
qrgen_test.clj
(ns one-time.qrgen-test (:require [clojure.test :refer [deftest testing is]] [one-time.core :as ot] [one-time.qrgen :as qrgen])) (deftest totp-stream-returns-a-stream (testing "TOTP QR code stream test" (let [secret (ot/generate-secret-key) stream (qrgen/totp-stream {:label "c...
null
https://raw.githubusercontent.com/suvash/one-time/63981bbe1a27eaac80a2bda1b1887c4262c2a61f/test/one_time/qrgen_test.clj
clojure
(ns one-time.qrgen-test (:require [clojure.test :refer [deftest testing is]] [one-time.core :as ot] [one-time.qrgen :as qrgen])) (deftest totp-stream-returns-a-stream (testing "TOTP QR code stream test" (let [secret (ot/generate-secret-key) stream (qrgen/totp-stream {:label "c...
c583b2b043bdb1f23aadfdde44e6895a6b7eb820fb3dca4f93da4141d37ee430
mbutterick/brag
reader.rkt
#lang s-exp syntax/module-reader brag/examples/simple-line-drawing/semantics #:read my-read #:read-syntax my-read-syntax #:info my-get-info #:whole-body-readers? #t (require brag/examples/simple-line-drawing/lexer brag/examples/simple-line-drawing/grammar) (define (my-read in) (syntax->datum (my-read-synta...
null
https://raw.githubusercontent.com/mbutterick/brag/6c161ae31df9b4ae7f55a14f754c0b216b60c9a6/brag-lib/brag/examples/simple-line-drawing/lang/reader.rkt
racket
#lang s-exp syntax/module-reader brag/examples/simple-line-drawing/semantics #:read my-read #:read-syntax my-read-syntax #:info my-get-info #:whole-body-readers? #t (require brag/examples/simple-line-drawing/lexer brag/examples/simple-line-drawing/grammar) (define (my-read in) (syntax->datum (my-read-synta...
19c3148cdeb870197a2c31d794f6988d1d541557e33cd4a5a1b48d4abe2f22db
mbj/stratosphere
LabelProperty.hs
module Stratosphere.WAFv2.RuleGroup.LabelProperty ( LabelProperty(..), mkLabelProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data LabelProperty = LabelProperty...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/RuleGroup/LabelProperty.hs
haskell
module Stratosphere.WAFv2.RuleGroup.LabelProperty ( LabelProperty(..), mkLabelProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data LabelProperty = LabelProperty...
884f1d3435f4d72f50cd20f6c6000d71e69b25951d1911dea81f4e70673c7623
zenhack/mule
eval.ml
open Runtime_ast.Expr let bug msg term = MuleErr.bug (msg ^ ": " ^ Pretty.runtime_expr term) let report step stack expr = if Config.print_eval_steps () then begin Stdio.print_endline ("evaluation: " ^ step ^ ": " ^ Pretty.runtime_expr expr); Stdio.print_endline ("stack:"); List.iter stack ~f...
null
https://raw.githubusercontent.com/zenhack/mule/f3e23342906d834abb9659c72a67c1405c936a00/src/mule/lib/eval.ml
ocaml
whnf stack expr with
open Runtime_ast.Expr let bug msg term = MuleErr.bug (msg ^ ": " ^ Pretty.runtime_expr term) let report step stack expr = if Config.print_eval_steps () then begin Stdio.print_endline ("evaluation: " ^ step ^ ": " ^ Pretty.runtime_expr expr); Stdio.print_endline ("stack:"); List.iter stack ~f...
2da4118b88c9b8a0a09a668daa95ad3a94273698446b3d2f73e14fa17b2151ce
quil-lang/quilc
validate-sequence-gate.lisp
;;;; validate-sequence-gate.lisp ;;;; Author : (in-package #:cl-quil.frontend) (defun validate-resolved-seq-gate-definition (gate-def) (declare (type sequence-gate-definition gate-def)) (let ((seq (sequence-gate-definition-sequence gate-def)) (args (sequence-gate-definition-arguments gate-def))) (...
null
https://raw.githubusercontent.com/quil-lang/quilc/31f5afff2efe7b12a97e93184e8f19e6d7062441/src/analysis/validate-sequence-gate.lisp
lisp
validate-sequence-gate.lisp
Author : (in-package #:cl-quil.frontend) (defun validate-resolved-seq-gate-definition (gate-def) (declare (type sequence-gate-definition gate-def)) (let ((seq (sequence-gate-definition-sequence gate-def)) (args (sequence-gate-definition-arguments gate-def))) (labels ((validate-argument (arg) ...
8224207c9805cbaf873dabef65024a249277711ac57d6c39abeafb2485481f33
DavidAlphaFox/RabbitMQ
rabbit_backing_queue.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_backing_queue.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. We can't specif...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
290664024cc7b1c41683e3318add46aebf1bc9b600ceb3b0cad24ac2f0fb0b7e
OCamlPro/OCamlPro-OCaml-Branch
string.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/stdlib/string.ml
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 GNU Library General Public License , with $ Id$ external length : string -> i...
7254937ec837cecdd08c7d93125f3f976919316be1f2fff55bacb293862034b9
vbrankov/opencl-ocaml
cl.ml
open Bigarray module Cl_error = struct type t = | SUCCESS | DEVICE_NOT_FOUND | DEVICE_NOT_AVAILABLE | COMPILER_NOT_AVAILABLE | MEM_OBJECT_ALLOCATION_FAILURE | OUT_OF_RESOURCES | OUT_OF_HOST_MEMORY | PROFILING_INFO_NOT_AVAILABLE | MEM_COPY_OVERLAP | IMAGE_FORMAT_MISMATCH | IMAGE_FO...
null
https://raw.githubusercontent.com/vbrankov/opencl-ocaml/bbfe6b6353e2d508363b8e22e15dd8f3656c88f5/lib/cl.ml
ocaml
XXX All values where ['a] is [unit] are unfinished XXX Not all the contexts are done XXX All values where ['a] is [unit] are unfinished XXX Not all possible arguments are implemented XXX We probably want different things instead of Array1.t XXX Different options are totally incompatible with Array1.t. We sh...
open Bigarray module Cl_error = struct type t = | SUCCESS | DEVICE_NOT_FOUND | DEVICE_NOT_AVAILABLE | COMPILER_NOT_AVAILABLE | MEM_OBJECT_ALLOCATION_FAILURE | OUT_OF_RESOURCES | OUT_OF_HOST_MEMORY | PROFILING_INFO_NOT_AVAILABLE | MEM_COPY_OVERLAP | IMAGE_FORMAT_MISMATCH | IMAGE_FO...
17a01c953363100e150faf977ad2c9e6111ff386677f9dd5918e3517104a8e3b
rems-project/extract
mnemo.ml
open Genlex type sep = NoSep | Comma | Paren type param = sep * string type t = { name: string; dot: bool; params: param list; flags: (string * bool) list } * { 2 Parsing } let list_of_stream stream = let result = ref [] in Stream.iter (fun value -> result := value :: !result) stream; List.rev !result let lex...
null
https://raw.githubusercontent.com/rems-project/extract/5d544e996f9ca7bb0b937d16f7739b0452654d24/src/mnemo.ml
ocaml
mispredicted, rollback
open Genlex type sep = NoSep | Comma | Paren type param = sep * string type t = { name: string; dot: bool; params: param list; flags: (string * bool) list } * { 2 Parsing } let list_of_stream stream = let result = ref [] in Stream.iter (fun value -> result := value :: !result) stream; List.rev !result let lex...
3ffe5824847ca70ff0bdbd6cc11fbee96c367257431d11bf67be26aea4709320
RedPRL/redtt
Dev.mli
open RedBasis.Bwd open RedTT_Core type tm = Tm.tm type ty = Tm.tm type 'a decl = | Hole of [`Rigid | `Flex] (** a hole during the development *) | Auxiliary of 'a (** this means a variable can be expanded into a term, and this is not generated by the user. *) | UserDefn of {source : FileRes....
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/frontend/Dev.mli
ocaml
* a hole during the development * this means a variable can be expanded into a term, and this is not generated by the user. * this is a definition given by the user and has been type-checked * we have a term [tm] of type [ty], which is not yet the same as the hole we are trying to fill The [param] ...
open RedBasis.Bwd open RedTT_Core type tm = Tm.tm type ty = Tm.tm type 'a decl = | Hole of [`Rigid | `Flex] | Auxiliary of 'a | UserDefn of {source : FileRes.filepath; visibility : ResEnv.visibility; opacity : [`Transparent | `Opaque]; tm : 'a} | Guess of {ty : 'a; tm : 'a} type status = ...
fc6808f22f314f24925da4a2965ea95678161eb04235b873778e68a2f68e3bfc
danieljharvey/mimsa
Shared.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Language.Mimsa.Backend.Shared ( symlinkedOutputPath, zipFileOutputPath, indexOutputFilename, storeExprFilename, fileExtension, stdlibFilename, outputStdlib, ) where import Data.FileEmbed import Data.Text (Text) import q...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/8154c07fcd394739d6d9543dd029d06470f738c2/backends/src/Language/Mimsa/Backend/Shared.hs
haskell
# LANGUAGE OverloadedStrings # these are saved in a file that is included in compilation these are saved in a file that is included in compilation
# LANGUAGE TemplateHaskell # module Language.Mimsa.Backend.Shared ( symlinkedOutputPath, zipFileOutputPath, indexOutputFilename, storeExprFilename, fileExtension, stdlibFilename, outputStdlib, ) where import Data.FileEmbed import Data.Text (Text) import qualified Data.Text.Encoding as T im...
f36c1ec25be1178c9fef6ef7c5a5a3e9bdbcea819c649cbb6b3ef93163adffa0
haroldcarr/learn-haskell-coq-ml-etc
XClient.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeFamilies # module XClient where import XTypes ------------------------------------------------------------------------------ import Protolude -- | For servers to ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/program-structure/2019-01-hc-example-based-on-adjointio-raft/src/XClient.hs
haskell
# LANGUAGE FlexibleContexts # ---------------------------------------------------------------------------- | For servers to send messages to clients. | For servers to receive messages from clients.
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeFamilies # module XClient where import XTypes import Protolude class XSendClient m sm v where sendClient :: ClientId -> ClientResponse sm v -> m () class Show (XRecvClientError m v) => XRecvClient m...
cee2284ae2e333b187a42485c07b1ba8f3dc582ffdaf0e232b2c0b2844d27a42
jrh13/hol-light
wishes.ml
let EXAMPLE = prove (`!n. nsum(0..n) (\i. i) = (n*(n + 1)) DIV 2`, INDUCT_TAC THEN ASM_REWRITE_TAC[NSUM_CLAUSES_NUMSEG] THEN ARITH_TAC);; let EXAMPLE_IN_MIZAR_LIGHT = thm `; !n. nsum (0..n) (\i. i) = (n * (n + 1)) DIV 2 [1] proof nsum (0..0) (\i. i) = 0 [2] by NSUM_CLAUSES_NUMSEG; ... = (0 * (0 + 1)) ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/miz3/Samples/wishes.ml
ocaml
let EXAMPLE = prove (`!n. nsum(0..n) (\i. i) = (n*(n + 1)) DIV 2`, INDUCT_TAC THEN ASM_REWRITE_TAC[NSUM_CLAUSES_NUMSEG] THEN ARITH_TAC);; let EXAMPLE_IN_MIZAR_LIGHT = thm `; !n. nsum (0..n) (\i. i) = (n * (n + 1)) DIV 2 [1] proof nsum (0..0) (\i. i) = 0 [2] by NSUM_CLAUSES_NUMSEG; ... = (0 * (0 + 1)) ...
d5ef6a61f0a710222d180253f9385355450ea7893e39a178fc9efcd2c2ef4c50
carocad/parcera
slurp.cljc
(ns parcera.slurp "Some of our tests use `slurp`, which ClojureScript lacks" #?(:clj (:refer-clojure :exclude [slurp])) #?(:cljs (:require-macros [parcera.slurp]))) #?(:clj (defmacro slurp [file] (clojure.core/slurp file)))
null
https://raw.githubusercontent.com/carocad/parcera/b6960742c5a95f4a1a9c56f5b5a4538f29be51bd/test/parcera/slurp.cljc
clojure
(ns parcera.slurp "Some of our tests use `slurp`, which ClojureScript lacks" #?(:clj (:refer-clojure :exclude [slurp])) #?(:cljs (:require-macros [parcera.slurp]))) #?(:clj (defmacro slurp [file] (clojure.core/slurp file)))
824657e304c23f31e4f59d60286df80b5391700becd51d0f127d5c19bc022ab1
hugomg/scfgc
types.mli
open Core_kernel.Std (* The syntax trees for the parser and the typechecker have a similar * structure so we define them using a common functor that is heaviliy parameterized: * * t -> "recursion" parameter, to delay tying the knot * id -> identifiers * cmd -> command names * expr -> command arguments (interp...
null
https://raw.githubusercontent.com/hugomg/scfgc/9604ef317a23ce51c46d8e5d03e6597081abc3cd/types.mli
ocaml
The syntax trees for the parser and the typechecker have a similar * structure so we define them using a common functor that is heaviliy parameterized: * * t -> "recursion" parameter, to delay tying the knot * id -> identifiers * cmd -> command names * expr -> command arguments (interpolateable string) * str...
open Core_kernel.Std type condtype = | Cond_If | Cond_When with sexp type 'str pattern = | Pat_Wildcard | Pat_Const of 'str with sexp type ('id, 'expr, 'str, 't) decl = | Decl_Alias of 't | Decl_Var of 'str list * 'str | Decl_Const of 'expr | Decl_Macro of 'id list * 't with sexp type ('id, 'cmd...
1107ba08494d4996bf2180f50361a125cca67b70bcb795178856faae45eccbc8
dradtke/Lisp-Text-Editor
loadlib.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; loadlib.lisp --- loading C library ;;; ;;; Copyright ( C ) 2007 , < > ;;; (in-package #:g-object-cffi) (eval-when (:compile-toplevel :load-toplevel :execute) (define-foreign-library :g-object (:unix "libgobject-2.0.so") (:windows "libgobject-2.0-0....
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/g-object/loadlib.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- loadlib.lisp --- loading C library
Copyright ( C ) 2007 , < > (in-package #:g-object-cffi) (eval-when (:compile-toplevel :load-toplevel :execute) (define-foreign-library :g-object (:unix "libgobject-2.0.so") (:windows "libgobject-2.0-0.dll")) (load-foreign-library :g-object))
56c3f823eb1510036bc875879ba32f37d341e1649d95eb7b7f56b31d890621f2
acl2/acl2
wrappers.lisp
C Library ; Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/1e94e0bfb92e8caa9e90d9d5fe6afbed655bf8db/books/kestrel/c/atc/symbolic-execution-rules/wrappers.lisp
lisp
C Library Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "../let-designations") (include-book "../conditional-expressions") (includ...
f56ddb9682e97c5fe0fbdcc77cbe9bcdc9ca12953ef2b293806842eb02f41be4
ruhler/smten
Ratio.hs
# LANGUAGE NoImplicitPrelude # module Smten.Data.Ratio (module Data.Ratio) where import Data.Ratio
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-base/Smten/Data/Ratio.hs
haskell
# LANGUAGE NoImplicitPrelude # module Smten.Data.Ratio (module Data.Ratio) where import Data.Ratio
4a2de2be6d6bf84036498e54a782af42fbbf7a2cfe041c762a2145fb891a090a
0install/0install
fake_gpg_agent.ml
Copyright ( C ) 2014 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common module U = Support.Utils let write fd msg = Lwt_unix.write_string fd msg 0 (String.length msg) >>= fun wrote -> assert (wrote = String.length msg); Lwt.r...
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/tests/fake_gpg_agent.ml
ocaml
Copyright ( C ) 2014 , the README file for details , or visit . * See the README file for details, or visit . *) open Support open Support.Common module U = Support.Utils let write fd msg = Lwt_unix.write_string fd msg 0 (String.length msg) >>= fun wrote -> assert (wrote = String.length msg); Lwt.r...
5f12fc121c5e097879509558d774dd063ce6f524ed2573416e4c43459a4e5a51
chshersh/ghc-plugin-non-empty
Spec.hs
{-# LANGUAGE BangPatterns #-} module Main (main) where import Control.Exception (ErrorCall, TypeError) import Data.List.NonEmpty (NonEmpty (..)) import Test.Hspec (describe, hspec, it, shouldBe, shouldThrow) import Test.Data.Fail as Test import Test.Data.Overloaded as Test import Test.Data.Plain as Test main :: IO...
null
https://raw.githubusercontent.com/chshersh/ghc-plugin-non-empty/2bbdd434e2aa2223a0db8945cffabe2704ca7166/test/Spec.hs
haskell
# LANGUAGE BangPatterns #
module Main (main) where import Control.Exception (ErrorCall, TypeError) import Data.List.NonEmpty (NonEmpty (..)) import Test.Hspec (describe, hspec, it, shouldBe, shouldThrow) import Test.Data.Fail as Test import Test.Data.Overloaded as Test import Test.Data.Plain as Test main :: IO () main = hspec $ describe "G...
df5c7bd1ca1101e264023f727a7bbd2ec8301c73b714b82c51b6659a734dd2b3
MLstate/opalang
baseString.ml
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/ocamllib/libbase/baseString.ml
ocaml
depends behavior of unsafe_blit is unspecified for negative length do not use iteri because it is not in OCaml stdlib and we want to be as free as possible regarding dependancy between Base.List and Base.String or inline ? let s' = create l in for i = 0 to pred l do unsafe_set s...
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
7f0e2253bcdfe71bba05cab847e8ac4296dd222bf7e5fbf8cd9379369a8344f1
lambdacube3d/lambdacube-edsl
stunts_ver1.lc.hs
{- removed: GP Exp Const @ tup/untup pack/unpack $ changed: snoc, trim -> swizzling dot product to dot' not equals to != vector construction to [] one' :: V4B to explicit vector of True values trimM4 to mat3 (any better idea for matrix swizzling?) pow' to ** ...
null
https://raw.githubusercontent.com/lambdacube3d/lambdacube-edsl/4347bb0ed344e71c0333136cf2e162aec5941df7/lambdacube-core/tmp/sandbox/syntax/stunts_ver1.lc.hs
haskell
removed: GP Exp Const @ tup/untup pack/unpack $ changed: snoc, trim -> swizzling dot product to dot' not equals to != vector construction to [] one' :: V4B to explicit vector of True values trimM4 to mat3 (any better idea for matrix swizzling?) pow' to **
stuntsGFX :: FrameBuffer N1 (Float, V4F) stuntsGFX = Accumulate fragCtx (Filter fragPassed) frag rast clear where fragCtx = (DepthOp Less True, ColorOp NoBlending [True, True, True, True]) rastCtx = TriangleCtx CullNone PolygonFill NoOffset LastVertex clear = FrameBuffer (DepthImage n1 100000, ColorImag...
8351eca9afeea56fe786c3b304057dd37f01c81e4f4e66af1abee868d4089d4c
helium/router
router_console_ws_handler.erl
-module(router_console_ws_handler). -behaviour(websocket_client). %% ------------------------------------------------------------------ %% API Function Exports %% ------------------------------------------------------------------ -export([ start_link/1, encode_msg/3, encode_msg/4, encode_msg/5, decode_msg...
null
https://raw.githubusercontent.com/helium/router/8a103868831e99f72600ba34ef2f8ea2c3351e51/src/apis/router_console_ws_handler.erl
erlang
------------------------------------------------------------------ API Function Exports ------------------------------------------------------------------ ------------------------------------------------------------------ ------------------------------------------------------------------ -------------------------...
-module(router_console_ws_handler). -behaviour(websocket_client). -export([ start_link/1, encode_msg/3, encode_msg/4, encode_msg/5, decode_msg/1 ]). websocket_client Function Exports -export([ init/1, onconnect/2, ondisconnect/2, websocket_handle/3, websocket_info/3, websocket_t...
0c0c67b66d07844c260c0e297b7095aff3ad05e27e05f1efc54eb903ccf74504
cbaggers/cepl
samplers.lisp
(in-package :cepl.samplers) ;;---------------------------------------------------------------------- (defvar *anisotropy-available* t) (defun+ check-anisotropy-feature () (unless (has-feature "GL_EXT_texture_filter_anisotropic") (setf *anisotropy-available* nil))) ;;-------------------------------------------...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/samplers/samplers.lisp
lisp
---------------------------------------------------------------------- ---------------------------------------------------------------------- ---------------------------------------------------------------------- Sampler types There are a number of sampler types. The various sampler types are separated texture that ...
(in-package :cepl.samplers) (defvar *anisotropy-available* t) (defun+ check-anisotropy-feature () (unless (has-feature "GL_EXT_texture_filter_anisotropic") (setf *anisotropy-available* nil))) (defun+ sampler-texture (sampler) (%sampler-texture sampler)) into 3 categories , based on the basic data typ...
e69a9f079c93582e2854e7a18b953f7b2f885e07567307676a29129baa09beb1
russelldb/rabl
rabl_app.erl
%%%------------------------------------------------------------------- %% @doc rabl public API %% @end %%%------------------------------------------------------------------- -module(rabl_app). -behaviour(application). -export([start/0, status/0]). %% Application callbacks -export([start/2, stop/1]). %%=============...
null
https://raw.githubusercontent.com/russelldb/rabl/9aa140ef5ec09959393adba5a98321b6df8323e1/src/rabl_app.erl
erlang
------------------------------------------------------------------- @doc rabl public API @end ------------------------------------------------------------------- Application callbacks ==================================================================== API ===========================================================...
-module(rabl_app). -behaviour(application). -export([start/0, status/0]). -export([start/2, stop/1]). start() -> start_if_not_started(lager), ok = safe_start_folsom(), ok = start_if_not_started(amqp_client), application:start(rabl). status() -> ConsumerStatus = rabl_consumer_sup:status(), ...
2ce2ab3217d4b0287275d09174111f088cb88a604ef5a9b585d525f6cef338f9
jvf/scalaris
rt_SUITE.erl
2010 - 2015 Zuse Institute Berlin 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 di...
null
https://raw.githubusercontent.com/jvf/scalaris/c069f44cf149ea6c69e24bdb08714bda242e7ee0/test/rt_SUITE.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 or implied. See the License for the specific language gov...
2010 - 2015 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(rt_SUITE). -author(''). -vsn('$Id$'). -compile(export_all). -include("unittest.hrl"). -include("scalaris.hr...
71defcc8a2e7b99fce0776e41234654e358b827cce94f3fb5faf3f4962c3087f
ruricolist/serapeum
fbind.lisp
(in-package :serapeum.tests) (def-suite fbind :in serapeum) (in-suite fbind) (test fbind (is (eql 1 (let ((fn (lambda (x) (1+ x)))) (fbind fn (fn 0))))) (is (eql 1 (fbind ((fn (lambda (x) (1+ x)))) (fn 0)))) (fbind ((string-or-null (rcurry #'typep '(or string null)...
null
https://raw.githubusercontent.com/ruricolist/serapeum/d98b4863d7cdcb8a1ed8478cc44ab41bdad5635b/tests/fbind.lisp
lisp
(in-package :serapeum.tests) (def-suite fbind :in serapeum) (in-suite fbind) (test fbind (is (eql 1 (let ((fn (lambda (x) (1+ x)))) (fbind fn (fn 0))))) (is (eql 1 (fbind ((fn (lambda (x) (1+ x)))) (fn 0)))) (fbind ((string-or-null (rcurry #'typep '(or string null)...
92572c4550a8d1dcba461c9c529bd5e8569021eaa48791e9769b9dc63b456bc4
reborg/clojure-essential-reference
6.clj
(defn rev [coll] < 1 > < 2 > (recur (rest xs) ; <3> < 4 > done))) < 5 > ;; (0 0 2 7 3 10 9 8)
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Sequences/SequentialCollections/seqandsequence/6.clj
clojure
<3> (0 0 2 7 3 10 9 8)
(defn rev [coll] < 1 > < 2 > (recur < 4 > done))) < 5 >
0ddb161f99a5bbc1f359787638d9dd7101d58f0750bd11c4bbdae57a7cc1f023
erlymon/erlymon
em_regexp_sup.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 , < > %%% @doc Erlymon is an open source GPS tracking system for various GPS tracking devices . %%% Copyright ( C ) 2015 , < > . %%% This file is part of Erlymon . %%% Erlymon is free software : yo...
null
https://raw.githubusercontent.com/erlymon/erlymon/2250619783d6da1e33a502911a8fa52ce016c094/apps/erlymon/src/em_regexp/em_regexp_sup.erl
erlang
------------------------------------------------------------------- @doc but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see </>. @end -------------------------------------------------------...
@author ( C ) 2015 , < > Erlymon is an open source GPS tracking system for various GPS tracking devices . Copyright ( C ) 2015 , < > . This file is part of Erlymon . Erlymon is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Publ...
32c5efe2d574dff6ca0f2f10a4172fd3d51ac5e7e279e31cb40914c7f8d048bf
deepmarker/ocaml-simdjson
parse.ml
open Core open Async module Json = struct let of_buf bi_outbuf buffer w buf pos len = let msg = Bigstring.To_string.sub buf ~pos ~len in let rec loop pos len = if len <= 0 then Deferred.unit else match String.index_from msg pos '\n' with | None -> Buffer.add_substring ...
null
https://raw.githubusercontent.com/deepmarker/ocaml-simdjson/20b2316e2a5539b54e5da208ce87444f3580a90c/bin/parse.ml
ocaml
open Core open Async module Json = struct let of_buf bi_outbuf buffer w buf pos len = let msg = Bigstring.To_string.sub buf ~pos ~len in let rec loop pos len = if len <= 0 then Deferred.unit else match String.index_from msg pos '\n' with | None -> Buffer.add_substring ...
00373c3cfc670d4484c3a429c9fe1250cf0472e783aa130b6d6191d81e0cd4c0
arsenm/Clutterhs
Gst.hs
-- -*-haskell-*- -- Author : -- Created : 12 Feb 2010 -- Copyright ( C ) 2010 -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License...
null
https://raw.githubusercontent.com/arsenm/Clutterhs/ad3390895264c46906b5d3d954c4b04b04d96b1d/clutter-gst/Graphics/UI/Clutter/Gst.hs
haskell
-*-haskell-*- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public 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 PARTICULA...
Author : Created : 12 Feb 2010 Copyright ( C ) 2010 License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . implementation using GStreamer for basic video and audio playback . module Graphics.UI.Clutter.Gst ( module ...
a48e8ea33c1164c5df7d8d23ba50126e2d49f7f0dc44046a4e75d24a7c2c634a
b0-system/b0
b0_opam.mli
--------------------------------------------------------------------------- Copyright ( c ) 2020 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/b0-system/b0/c701f6fba5eb8c86d3a91073b8e76a664b62de3f/src/kit/b0_opam.mli
ocaml
* [get_cmd ()] looks for [opam] wih {!B0_std.Os.Cmd.get}. * [opam] file generation. * A raw, unescaped value * A boolean. * A string. * A list of values, the boolean indicates whether line-by-line rendering should be forced. * The type for opam v...
--------------------------------------------------------------------------- Copyright ( c ) 2020 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
7d9827eb914ba4ef41a7c28c36f04da1ba0ff786d09d0010babe98e2cffa879d
elaforge/karya
Code.hs
Copyright 2019 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Per-patch calls. module Synth.Faust.Code where import qualified Derive.Call.Module as Module import qualified Derive.Call.Post as Post import qualified Derive.Call.Tags as Tags impor...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Synth/Faust/Code.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Per-patch calls.
Copyright 2019 module Synth.Faust.Code where import qualified Derive.Call.Module as Module import qualified Derive.Call.Post as Post import qualified Derive.Call.Tags as Tags import qualified Derive.Derive as Derive import qualified Derive.Score as Score import qualified Derive.ScoreT as ScoreT import qualified De...
06cbcca97d73eaec9ca7ca972f0ddb2fac90a36fd41bd659548382c004847cec
joinr/spork
annealing.clj
;;A namespace for defining simulated annealing stochastic optimization strategies , using the optimization libraries in collective.core . Status : Mostly implemented , but still Work in Progress since 2013 . (ns spork.opt.annealing (:require [spork.opt [core :as core :refer [with-solve]]] [spork.util [st...
null
https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/opt/annealing.clj
clojure
A namespace for defining simulated annealing stochastic optimization Annealing. The major difference between various schemes for temperature analogue is gradually decayed over annealing-time. Since the temperature variable is a primary input for acceptance criteria and neighborhood functions, annealing algorithms cho...
strategies , using the optimization libraries in collective.core . Status : Mostly implemented , but still Work in Progress since 2013 . (ns spork.opt.annealing (:require [spork.opt [core :as core :refer [with-solve]]] [spork.util [stats :as stats] [ranges :as r]] ...
1d1e17be40a8a01b49f3afb35669cf0bd0d6056b10f4ebdcd61df4943a19b55b
mark-watson/haskell_tutorial_cookbook_examples
MyColors.hs
module MyColors where data MyColors = Orange | Red | Blue | Green | Silver deriving (Show, Eq) instance Ord MyColors where compare c1 c2 = compare (show c1) (show c2)
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/TestingHaskell/src/MyColors.hs
haskell
module MyColors where data MyColors = Orange | Red | Blue | Green | Silver deriving (Show, Eq) instance Ord MyColors where compare c1 c2 = compare (show c1) (show c2)
43b15215320673a0b52e63610167eceaa2540191a1fdfadeb05e5b3e9d6d3ccd
zadean/xqerl
xqerl_static_analysis.erl
Copyright ( c ) 2017 - 2020 . SPDX - FileCopyrightText : 2022 % SPDX - License - Identifier : Apache-2.0 @doc Static analysis phase of compilation . -module(xqerl_static_analysis). -include("xqerl_parser.hrl"). %% ==================================================================== %% API functi...
null
https://raw.githubusercontent.com/zadean/xqerl/06c651ec832d0ac2b77bef92c1b4ab14d8da8883/src/xqerl_static_analysis.erl
erlang
==================================================================== API functions ==================================================================== add the variables add the functions strip non-functions strip non-variables globals are set now recurse for dependencies analyze TODO: this should do somethi...
Copyright ( c ) 2017 - 2020 . SPDX - FileCopyrightText : 2022 SPDX - License - Identifier : Apache-2.0 @doc Static analysis phase of compilation . -module(xqerl_static_analysis). -include("xqerl_parser.hrl"). -export([ analyze/3, has_cycle/2, add_edge/3 ]). analyze(Body, Functions, ...
85d3c0a452c8b299bbff7941edf1c9ce6470b5a6c3a8fcf955facc0b39e30280
avsm/platform
opamCoreConfig.mli
(**************************************************************************) (* *) (* Copyright 2015 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/core/opamCoreConfig.mli
ocaml
************************************************************************ Copyright 2015 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special type t = private { debug_level : int; verbose_level : int; color : [ `Always | `Never | `Auto ]; utf8 : [ `Extended | `Always | `Never | `Auto ]; disp_status_line: [ `Always | `Never | `Auto ]; * Controls on - line display of paralle...
179d46a4950526ed042ac856568eaf05f82e95346031fa4967ff936df6aaf409
eugenkiss/7guis-Clojure-Seesaw
circledrawer.clj
(ns sevenguis.circledrawer (:use [seesaw core border graphics color] sevenguis.core) (:require [seesaw.bind :as b] [seesaw.mouse :as mouse])) (defn distance [c1 c2] (Math/sqrt (->> (map - c1 c2) (map #(* % %)) (reduce +)))) (defrecord Circle [x y d]) (def circles (atom [])) ; app state (def history (ato...
null
https://raw.githubusercontent.com/eugenkiss/7guis-Clojure-Seesaw/4ab08883ee0fbc6daa7e573d11b130b546189b67/src/sevenguis/circledrawer.clj
clojure
app state
(ns sevenguis.circledrawer (:use [seesaw core border graphics color] sevenguis.core) (:require [seesaw.bind :as b] [seesaw.mouse :as mouse])) (defn distance [c1 c2] (Math/sqrt (->> (map - c1 c2) (map #(* % %)) (reduce +)))) (defrecord Circle [x y d]) (def history (atom {:states [[]] :cursor 0})) (defn ...
7ab26dac41657d609674dd7d5aa211e9c682f78923d9a624c55ae55d0d1040cd
ghcjs/jsaddle-dom
SVGPathSegMovetoAbs.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGPathSegMovetoAbs (setX, getX, setY, getY, SVGPathSegMovetoAbs(..), gTypeSVGPathSegMovetoAbs) wher...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGPathSegMovetoAbs.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGPathSegMovetoAbs (setX, getX, setY, getY, SVGPathSegMovetoAbs(..), gTypeSVGPathSegMovetoAbs) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromInt...
208ecb90e336f94b558407653efe69a228e7824136331dedc78909ce0b36d3da
gotthardp/lorawan-server
lorawan_gw_router.erl
% Copyright ( c ) 2016 - 2019 < > % All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . % -module(lorawan_gw_router). -behaviour(gen_server). -export([start_link/0]). -export([alive/3, network_delay/2, report/2, uplinks/1, downlink/5, downlink_error/3]). -export([init/1,...
null
https://raw.githubusercontent.com/gotthardp/lorawan-server/1a5c0f2f4d8238a54a326c57a5eb0e6015821b1d/src/lorawan_gw_router.erl
erlang
All rights reserved. due to reflections the gateways may have received the same frame twice reflected frames received by the same gateway are ignored wait for packet receptions from other gateways send data to the gateway interface handler store statistics record graceful shutdown in the log trim the values w...
Copyright ( c ) 2016 - 2019 < > Distributed under the terms of the MIT License . See the LICENSE file . -module(lorawan_gw_router). -behaviour(gen_server). -export([start_link/0]). -export([alive/3, network_delay/2, report/2, uplinks/1, downlink/5, downlink_error/3]). -export([init/1, handle_call/3, handle_cast...
76b8f7ae82131001dcf796bd65d7f0c6ddc51a43baf0e7b48b9045774805ced0
haskell-opengl/OpenGL
Shader.hs
{-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.Shaders.Shader Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- -- ...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/Shaders/Shader.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.Shaders.Shader License : BSD3 Stability : stable Portability : portable This is a purely internal module for handling shader objects. -----------------...
Copyright : ( c ) 2019 Maintainer : < > module Graphics.Rendering.OpenGL.GL.Shaders.Shader ( Shader(..) ) where import Control.Monad.IO.Class import Data.ObjectName import Graphics.Rendering.OpenGL.GL.DebugOutput import Graphics.Rendering.OpenGL.GL.GLboolean import Graphics.Rendering.OpenGL.GL.Qu...
db134afb61f1823a3ee4d6837c4a44fcf042fdb5bfbc1d69b78d0c97ce2cbe04
ekmett/coda
FromText.hs
--------------------------------------------------------------------------------- -- | Copyright : ( c ) 2017 - 2018 License : BSD-2 - Clause OR Apache-2.0 Maintainer : < > -- Stability : experimental -- Portability: non-portable -- ------------------------------------------------------------------...
null
https://raw.githubusercontent.com/ekmett/coda/bca7e36ab00036f92d94eb86298712ab1dbf9b8d/src/common/Syntax/FromText.hs
haskell
------------------------------------------------------------------------------- | Stability : experimental Portability: non-portable -------------------------------------------------------------------------------
Copyright : ( c ) 2017 - 2018 License : BSD-2 - Clause OR Apache-2.0 Maintainer : < > module Syntax.FromText ( FromText(..) ) where import Data.Text class FromText a where fromText :: Text -> a instance FromText Text where fromText = id
8733c95b495c7fe0fb1f8fd371b95804fba82d7738424600eff95a6561f8ca2a
ucsd-progsys/dsolve
na_bcopy.ml
let rec bcopy_aux src des i m = if i = m then () else begin Junkarray2.set des i (Junkarray2.get src i); bcopy_aux src des (i+1) m end let bcopy src des = let sz = Junkarray2.length src in bcopy_aux src des 0 sz (********************* Driver **********************) let _ = let sz = read_in...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2010/na_bcopy.ml
ocaml
******************** Driver *********************
let rec bcopy_aux src des i m = if i = m then () else begin Junkarray2.set des i (Junkarray2.get src i); bcopy_aux src des (i+1) m end let bcopy src des = let sz = Junkarray2.length src in bcopy_aux src des 0 sz let _ = let sz = read_int () in if 0 < sz then let src = Junkarray2.ini...
5f401d9b901c0fcf2c379ebcb2e857f835854d6972c04e7e24105a549ba1a81b
MisakaCenter/RayTracer.ml
Ppm.ml
open Base open Core open Stdlib open Color open Vec (* PPM Format *) type ppm = { ppm_mode : string; pic_width : int; pic_height : int; max_color : int; content : vec3 array array; } let output pm target_file a = let outc = Out_channel.create target_file in Printf.fprintf outc "%s\n%d %...
null
https://raw.githubusercontent.com/MisakaCenter/RayTracer.ml/f62fa9555e4dbd2957d0b46b9de85c13021602d0/lib/Ppm.ml
ocaml
PPM Format
open Base open Core open Stdlib open Color open Vec type ppm = { ppm_mode : string; pic_width : int; pic_height : int; max_color : int; content : vec3 array array; } let output pm target_file a = let outc = Out_channel.create target_file in Printf.fprintf outc "%s\n%d %d\n%d\n" pm.ppm_mo...
8a076985f327b8f8c3d12210947e7c9f127d22335c5176b6fdbb99ddaad8638d
Plutonomicon/plutarch-core
PType.hs
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # module Plutarch.PType ( pHs_inverse, pHs_inverse', PGeneric, PCode, PDatatypeInfoOf, pgto, pgfrom, PTypeF (MkPTypeF'), MkPTypeF, PType, PPType (PPType), Pf' (..), PfC, PHs, UnPHs, PHs' ...
null
https://raw.githubusercontent.com/Plutonomicon/plutarch-core/6befe9f205fd3a9f1b6697f09e7162331029dde0/Plutarch/PType.hs
haskell
| Higher HKD Makes sure that user doesn't match on `PTypeF` passed in, because otherwise | See 'pgto'.
# LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # module Plutarch.PType ( pHs_inverse, pHs_inverse', PGeneric, PCode, PDatatypeInfoOf, pgto, pgfrom, PTypeF (MkPTypeF'), MkPTypeF, PType, PPType (PPType), Pf' (..), PfC, PHs, UnPHs, PHs' ...
9fc86b0b49f13c83c4fc11c3f98a4c2868e0dfade45cebc57efeed73bf73e64f
ghc/testsuite
tc247.hs
{-# LANGUAGE EmptyDataDecls, KindSignatures #-} module ShouldCompile where -- Various forms of empty data type declarations data T1 data T2 where data T3 :: * -> * data T4 a :: * -> * data T5 a :: * -> * where
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/tc247.hs
haskell
# LANGUAGE EmptyDataDecls, KindSignatures # Various forms of empty data type declarations
module ShouldCompile where data T1 data T2 where data T3 :: * -> * data T4 a :: * -> * data T5 a :: * -> * where
2b86867f77235d6976bf9ceb0afddce779e31cbbf07b52015857cbff77013490
Octachron/codept
dep_zipper.ml
module D = Deps module T = Transforms let empty = D.empty let id x = x let (+) = D.merge module Pre = struct type path = D.t type module_expr = D.t type access = D.t type minor = D.t type minors = D.t type module_type = D.t type m2l = D.t type expr = D.t type bind_rec = D.t type ext = D.t type pa...
null
https://raw.githubusercontent.com/Octachron/codept/254c92e9b53212513de938a4c5f337afef537c33/lib/dep_zipper.ml
ocaml
module D = Deps module T = Transforms let empty = D.empty let id x = x let (+) = D.merge module Pre = struct type path = D.t type module_expr = D.t type access = D.t type minor = D.t type minors = D.t type module_type = D.t type m2l = D.t type expr = D.t type bind_rec = D.t type ext = D.t type pa...
2a06dd9d8341427cec03ad61cc28359fe2b31332ebcade0e861278e45065c6b6
lthms/spatial-sway
workspace.ml
type t = { num : int64; name : string; visible : bool; focused : bool; urgent : bool; rect : Rect.t; output : string; } type workspace = t let decoder = let open Json_decoder in let open Syntax in let+ num = field "num" int64 and+ name = field "name" string and+ visible = field "visible" bool ...
null
https://raw.githubusercontent.com/lthms/spatial-sway/7f8430cb34007d71da9b2718027c9e2758ac59ad/lib/sway_ipc_types/workspace.ml
ocaml
type t = { num : int64; name : string; visible : bool; focused : bool; urgent : bool; rect : Rect.t; output : string; } type workspace = t let decoder = let open Json_decoder in let open Syntax in let+ num = field "num" int64 and+ name = field "name" string and+ visible = field "visible" bool ...
aa4c3b831c8ad22ca52548b64f25ebcb5f17cfb73c03fe3643b61c200570d2ef
binsec/binsec
virtual_address.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/base/virtual_address.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
ef122ec0289b7acdd123bf55668e973aad67e5cdae02f59f6dd9e46555d07431
ocaml/dune
progress.ml
open Stdune module No_flush = struct let status_line = ref Pp.nop let start () = () let status_line_len = ref 0 let hide_status_line () = if !status_line_len > 0 then Printf.eprintf "\r%*s\r" !status_line_len "" let show_status_line () = if !status_line_len > 0 then Ansi_color.prerr !status_line ...
null
https://raw.githubusercontent.com/ocaml/dune/8d552d3064644da62347d4afc8db88ab27452fa5/src/dune_console/progress.ml
ocaml
open Stdune module No_flush = struct let status_line = ref Pp.nop let start () = () let status_line_len = ref 0 let hide_status_line () = if !status_line_len > 0 then Printf.eprintf "\r%*s\r" !status_line_len "" let show_status_line () = if !status_line_len > 0 then Ansi_color.prerr !status_line ...
0bec72b019f40d5f5aa3992e8b114c974709401bcb6c05209cacf83fee5f9812
racket/images
info.rkt
#lang info (define scribblings '(["scribblings/images.scrbl" (multi-page) (gui-library)]))
null
https://raw.githubusercontent.com/racket/images/975f011d41aea2f1d83885cefe333d271b788a62/images-doc/images/info.rkt
racket
#lang info (define scribblings '(["scribblings/images.scrbl" (multi-page) (gui-library)]))
505a0497eae24a94754abfb62c800ab81324b5dea899b41b52dda481ca76a486
stedolan/malfunction
malfunction_parser.ml
open Malfunction open Malfunction_sexp type moduleexp = | Mmod of binding list * t list Compiling from sexps let fail loc fmt = let k _ppf = raise (SyntaxError (loc, Format.flush_str_formatter ())) in Format.kfprintf k Format.str_formatter ("@[" ^^ fmt ^^ "@]") module StrMap = Map.Make (struct type t = st...
null
https://raw.githubusercontent.com/stedolan/malfunction/eb69eb74802540f95cf89f7b490678eedca6a2f9/src/malfunction_parser.ml
ocaml
check that all cases are handled here
open Malfunction open Malfunction_sexp type moduleexp = | Mmod of binding list * t list Compiling from sexps let fail loc fmt = let k _ppf = raise (SyntaxError (loc, Format.flush_str_formatter ())) in Format.kfprintf k Format.str_formatter ("@[" ^^ fmt ^^ "@]") module StrMap = Map.Make (struct type t = st...
e1a36aca1492dc05a02d6172ca5e0ce2d7071c69da7c8aa48afaccbcc8a6cbe8
atgreen/lisp-openshift
test.lisp
(in-package #:ps-test) (defun normalize-whitespace (str) (substitute #\Space #\Newline (substitute #\Space #\Tab str))) (defun same-space-between-statements (code) (let ((cl-ppcre:*use-bmh-matchers* nil)) (cl-ppcre:regex-replace-all "\\s*;\\s*" code "; "))) (defun remove-duplicate-spaces (str) (labels ((sp...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/parenscript-2.4/t/test.lisp
lisp
(in-package #:ps-test) (defun normalize-whitespace (str) (substitute #\Space #\Newline (substitute #\Space #\Tab str))) (defun same-space-between-statements (code) (let ((cl-ppcre:*use-bmh-matchers* nil)) (cl-ppcre:regex-replace-all "\\s*;\\s*" code "; "))) (defun remove-duplicate-spaces (str) (labels ((sp...
f4a28e9e25ab7da5cb0c36e86e25d3360101fb2acf3cf3794a187b7f61045c28
yashrk/raylib-scm
raymarching.scm
(include "raylib-definitions.scm") (import defstruct raylib-scm) (use raylib-scm) (define screen-width 800) (define screen-height 450) (defstruct state camera run-time) (init-window screen-width screen-height "raylib [shaders] example - raymarching shapes") (let* ((cur-camera (make-camera (make-vector-3...
null
https://raw.githubusercontent.com/yashrk/raylib-scm/b4c6fe17374ce4ddd4162fda37f4691b1e35b5f2/examples/shaders/raymarching/raymarching.scm
scheme
Load raymarching shader NOTE: Defining empty string for vertex shader forces usage of internal default vertex shader Get shader locations for required uniforms Set shader required uniform values We only draw a white full-screen rectangle, frame is generated in shader using raymarching
(include "raylib-definitions.scm") (import defstruct raylib-scm) (use raylib-scm) (define screen-width 800) (define screen-height 450) (defstruct state camera run-time) (init-window screen-width screen-height "raylib [shaders] example - raymarching shapes") (let* ((cur-camera (make-camera (make-vector-3...
591452a9d893b1757287da46eb382937cef947a5206ff24aafc02fc1f9eab08a
avsm/mirage-duniverse
x509_common.ml
include Result module List_ext = struct let rec filter_map ~f = function | [] -> [] | x::xs -> match f x with | None -> filter_map ~f xs | Some x' -> x' :: filter_map ~f xs let rec map_find ~f = function | [] -> None | x::xs -> match f x with ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/x509/lib/x509_common.ml
ocaml
include Result module List_ext = struct let rec filter_map ~f = function | [] -> [] | x::xs -> match f x with | None -> filter_map ~f xs | Some x' -> x' :: filter_map ~f xs let rec map_find ~f = function | [] -> None | x::xs -> match f x with ...
e0962b0264fc88d03886f788ac51acf753e4e657b0c9e6c54992e2ce6f00d3dc
pavankumarbn/DroneGUIROS
_package_navdata_vision_of.lisp
(cl:in-package ardrone_autonomy-msg) (cl:export '(HEADER-VAL HEADER DRONE_TIME-VAL DRONE_TIME TAG-VAL TAG SIZE-VAL SIZE OF_DX-VAL OF_DX OF_DY-VAL OF_DY ))
null
https://raw.githubusercontent.com/pavankumarbn/DroneGUIROS/745320d73035bc50ac4fea2699e22586e10be800/devel/share/common-lisp/ros/ardrone_autonomy/msg/_package_navdata_vision_of.lisp
lisp
(cl:in-package ardrone_autonomy-msg) (cl:export '(HEADER-VAL HEADER DRONE_TIME-VAL DRONE_TIME TAG-VAL TAG SIZE-VAL SIZE OF_DX-VAL OF_DX OF_DY-VAL OF_DY ))
8e0a4f99270d57d45a0c6fbeccc5f3c4a2baf163d7f7606fa8b20a05c0534fde
esl/MongooseIM
pubsub_tools.erl
%%%=================================================================== ( C ) 2015 , Erlang Solutions Ltd. %%% @doc Suite for testing pubsub features as described in XEP-0060 %%% @Tools module - pubsub specific tools and high level @ wrappers for the escalus tool . %%% @end %%%=======================...
null
https://raw.githubusercontent.com/esl/MongooseIM/b43080405942302f7d2c9abc1dcf52d1ac6c5206/big_tests/tests/pubsub_tools.erl
erlang
=================================================================== @doc Suite for testing pubsub features as described in XEP-0060 @Tools module - pubsub specific tools and high level @end =================================================================== Send request, receive (optional) response Receive notific...
( C ) 2015 , Erlang Solutions Ltd. @ wrappers for the escalus tool . -module(pubsub_tools). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("escalus/include/escalus_xmlns.hrl"). -include_lib("exml/include/exml.hrl"). -include_lib("exml/include/...
e471336e462d0621f957d417e5ce50260908c1c72570e7b1baf2f54cc20e97b0
bollu/coremlir
Main.hs
# LANGUAGE ScopedTypeVariables # import Control.Monad import Data.Maybe import Data.List (sortBy) import Data.Monoid import Data.Ord import Options.Applicative import Text.PrettyPrint.ANSI.Leijen hiding ((<$>), (<>)) import qualified Text.PrettyPrint.ANSI.Leijen as PP import Text.Regex.TDFA import Text.Regex.TDFA.Co...
null
https://raw.githubusercontent.com/bollu/coremlir/7ab044051e62c54e8d3f94a38e3d1ecbf49fb2b0/reading/reference-ghc-dump/ghc-dump-util/Main.hs
haskell
# LANGUAGE ScopedTypeVariables # import Control.Monad import Data.Maybe import Data.List (sortBy) import Data.Monoid import Data.Ord import Options.Applicative import Text.PrettyPrint.ANSI.Leijen hiding ((<$>), (<>)) import qualified Text.PrettyPrint.ANSI.Leijen as PP import Text.Regex.TDFA import Text.Regex.TDFA.Co...
5a743fbe4fbef1e7f2f161c3a569f9f3b6d5a063d5d18dc888d02f7047e1a510
theodormoroianu/SecondYearCourses
LambdaChurch_20210415165315.hs
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/LambdaChurch_20210415165315.hs
haskell
alpha-equivalence subst u x t defines [u/x]t, i.e., substituting u for x in t This substitution avoids variable captures so it is safe to be used when reducing terms with free variables (e.g., if evaluating inside lambda abstractions) ^ substitution term ^ variable to be substitutes ^ term in which the substit...
module LambdaChurch where import Data.Char (isLetter) import Data.List ( nub ) class ShowNice a where showNice :: a -> String class ReadNice a where readNice :: String -> (a, String) data Variable = Variable { name :: String , count :: Int } deriving (Show, Eq, Ord) var :: String -> Variable var ...
670348528a150f3d5d486ba9724da1c56be69d5e7629f462d8d49f2a077fdc06
rtoy/ansi-cl-tests
load-logical-pathname-translations.lsp
;-*- Mode: Lisp -*- Author : Created : We d Dec 31 09:31:33 2003 ;;;; Contains: Tests (such as they are) for LOAD-LOGICAL-PATHNAME-TRANSLATIONS (in-package :cl-test) ;;; The function LOAD-LOGICAL-PATHNAME-TRANSLATIONS is almost entirely ;;; untestable, since the basic behavior is implementation defined...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/load-logical-pathname-translations.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests (such as they are) for LOAD-LOGICAL-PATHNAME-TRANSLATIONS The function LOAD-LOGICAL-PATHNAME-TRANSLATIONS is almost entirely untestable, since the basic behavior is implementation defined. Error cases
Author : Created : We d Dec 31 09:31:33 2003 (in-package :cl-test) (deftest load-logical-pathname-translations.1 (load-logical-pathname-translations "CLTESTROOT") nil) (deftest load-logical-pathname-translations.error.1 (handler-case (progn (load-logical-pathname-translations "THEREH...
c0e55f2c228807501f8258144af9dfdf5209a945d8d4c2da94fecb96bac799bb
shenxs/about-scheme
newtown.rkt
#lang racket 牛顿解方程 ;参数F guess ->root ;精度 (define 精度 0.000000000000001) ;判断答案是否足够接近 F , guess->boolean (define (good-enough? F guess) (if (or (< (* (F (+ guess 精度)) (F (- guess 精度)) ) 0) (= 0 (F guess))) true false)) ;定义dx (define dx 0.0000000001) ;得到某个点的导数 (define (导 F guess) (/ (- (F (+ gue...
null
https://raw.githubusercontent.com/shenxs/about-scheme/d458776a62cb0bbcbfbb2a044ed18b849f26fd0f/nothing/newtown.rkt
racket
参数F guess ->root 精度 判断答案是否足够接近 定义dx 得到某个点的导数 得到下一个guess
#lang racket 牛顿解方程 (define 精度 0.000000000000001) F , guess->boolean (define (good-enough? F guess) (if (or (< (* (F (+ guess 精度)) (F (- guess 精度)) ) 0) (= 0 (F guess))) true false)) (define dx 0.0000000001) (define (导 F guess) (/ (- (F (+ guess dx)) (F guess)) dx )) F guess->guess (define...
86bb9f5a78b7eaee3a83bd707ece0bc017c766da15ff458ef0acc0fb0d3b04cc
CodyReichert/qi
zlib.lisp
;;; Copyright ( c ) 2007 , All Rights Reserved ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list of condit...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/salza2/zlib.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form...
Copyright ( c ) 2007 , All Rights Reserved DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package #:salza2) (defclass zlib-compressor (deflate-compressor) ((adler32 :initarg :adler32 :accessor adler32)) (:d...
c3a2660f07487b23e37a09650428c270694f079a1c9397615faac585fd1cdd7a
dhess/sicp-solutions
ex1.35.scm
(define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) next (try next)))) (try first-guess)) (fixed-point (lambda (x) (+ 1 (/ 1 x))) 1...
null
https://raw.githubusercontent.com/dhess/sicp-solutions/2cf78db98917e9cb1252efda76fddc8e45fe4140/chap1/ex1.35.scm
scheme
(define tolerance 0.00001) (define (fixed-point f first-guess) (define (close-enough? v1 v2) (< (abs (- v1 v2)) tolerance)) (define (try guess) (let ((next (f guess))) (if (close-enough? guess next) next (try next)))) (try first-guess)) (fixed-point (lambda (x) (+ 1 (/ 1 x))) 1...
dd8af2e5e0e66f92ac9bfba5f9505137dd3f2d31a8f57e049cd4ec94561ef30f
biegunka/biegunka
Run.hs
{-# LANGUAGE MultiWayIf #-} {-# LANGUAGE RankNTypes #-} -- | Run (or check) biegunka script module Run ( find , run ) where import Control.Concurrent (ThreadId, forkIO, forkFinally, threadDelay, killThread) import Control.Concurrent.MVar (newEmptyMVar, readMVar, putMVar) import Cont...
null
https://raw.githubusercontent.com/biegunka/biegunka/74fc93326d5f29761125d7047d5418899fa2469d/bin/Run.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE RankNTypes # | Run (or check) biegunka script | Run a script. Does a couple of clever things: | Pipe one 'IO.Handle' into another. | Pipe one 'IO.Handle' into another and do _something_ on # ANN pipe "HLint: ignore Redundant flip" # | Deeply traverse working directory to find...
module Run ( find , run ) where import Control.Concurrent (ThreadId, forkIO, forkFinally, threadDelay, killThread) import Control.Concurrent.MVar (newEmptyMVar, readMVar, putMVar) import Control.Lens hiding ((<.>)) import Control.Monad.IO.Class (liftIO) import Co...
e959c1e5f7f70f769459cdd33ba9d59ec20ab33bee477a4a115981d800db81a3
Helium4Haskell/helium
Version.hs
module Helium.Main.Version where version :: String version = "1.9 (Jul 2019)"
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/Main/Version.hs
haskell
module Helium.Main.Version where version :: String version = "1.9 (Jul 2019)"
748099700dee59f320a7b84ccb00b9f261f24e4d9071a1aadfab35d14f78ca77
fulcrologic/semantic-ui-wrapper
ui_feed_extra.cljc
(ns com.fulcrologic.semantic-ui.views.feed.ui-feed-extra (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$FeedExtra" :as FeedExtra]))) (def ui-feed-extra "A feed can contain an extra content. Props: - as (elementType): An element type to render as (string ...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/views/feed/ui_feed_extra.cljc
clojure
(ns com.fulcrologic.semantic-ui.views.feed.ui-feed-extra (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$FeedExtra" :as FeedExtra]))) (def ui-feed-extra "A feed can contain an extra content. Props: - as (elementType): An element type to render as (string ...
e7760b047b6ffe9340e9d091558778005f0e9dbf92f96694e5716ea086b0dd8d
maitria/avi
layout.clj
(ns avi.layout (:require [avi.color] [avi.layout.panes :as p] [clojure.spec :as s])) A blit is a one atomic unit drawn to the text buffer . For efficiency 's ;; sake, it is a string, which cannot span lines, and all of the cells have ;; the same foreground and background color. (s/def ::posi...
null
https://raw.githubusercontent.com/maitria/avi/c641e9e32af4300ea7273a41e86b4f47d0f2c092/src/avi/layout.clj
clojure
sake, it is a string, which cannot span lines, and all of the cells have the same foreground and background color. use a unique value for each producer so that code will reload wrap-rf is used to ensure rf is only initialized once and terminated once.
(ns avi.layout (:require [avi.color] [avi.layout.panes :as p] [clojure.spec :as s])) A blit is a one atomic unit drawn to the text buffer . For efficiency 's (s/def ::position (s/tuple nat-int? nat-int?)) (s/def ::width nat-int?) (s/def ::text (s/and string? (complement #(re-find #"\n" %))))...
6cfc749a3ceb9b03e654ba5bc3fd834d60a9a607f060978caba750b84e64c188
tamarin-prover/tamarin-prover
OptionItem.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} module Items.OptionItem ( Option(..) ,module Items.OptionItem ) where import GHC.Generics (Generic) import Control.DeepSeq (NFData) import Data.Binary (Binary) import Data.Label as L import qualified Data.Set as S import Th...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/cd9b3a518ee8c2e6c7c5875e2e0fc09f072581c2/lib/theory/src/Items/OptionItem.hs
haskell
# LANGUAGE DeriveAnyClass # ---------------------------------------------------------------------------- Options ---------------------------------------------------------------------------- | Options for translation and, maybe in the future, also msrs itself. | Note: setOption below assumes all values to be boolean ...
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Items.OptionItem ( Option(..) ,module Items.OptionItem ) where import GHC.Generics (Generic) import Control.DeepSeq (NFData) import Data.Binary (Binary) import Data.Label as L import qualified Data.Set as S import Theory.Model.Fact data Option = O...
706a0165618caf87a5c4419acbb32b32e0a5b764b028c6c6af0eeaaf95768c85
benweitzman/hooks
Examples.hs
# LANGUAGE PartialTypeSignatures # # LANGUAGE RecordWildCards # # LANGUAGE QualifiedDo # module Examples where import Control.Monad.Hooks import qualified Control.Monad.Hooks.Do.Qualified as Hook import qualified Control.Monad.Hooks.Branch as Branch import Control.Concurrent.Async (async, cancel) import Control.Monad...
null
https://raw.githubusercontent.com/benweitzman/hooks/4a87c55f78f80b4d751c749672ade496d2b6d843/app/ghc-9/Examples.hs
haskell
# LANGUAGE PartialTypeSignatures # # LANGUAGE RecordWildCards # # LANGUAGE QualifiedDo # module Examples where import Control.Monad.Hooks import qualified Control.Monad.Hooks.Do.Qualified as Hook import qualified Control.Monad.Hooks.Branch as Branch import Control.Concurrent.Async (async, cancel) import Control.Monad...
b4b5f53fdaa911b45468ed90992f9436a0a5ec4a2a37d353332c2a1d4eabbd97
emotiq/emotiq
package.lisp
(defpackage :emotiq/config/t (:use :cl :lisp-unit))
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/t/package.lisp
lisp
(defpackage :emotiq/config/t (:use :cl :lisp-unit))
72a0f16995e2ea724b916e1a41e6148ca876b6d89993693f23187bcb9f91c3b6
spawnfest/eep49ers
ssl_config.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/src/ssl_config.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 2007 - 2020 . 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(ssl_config). -include("ssl_internal.hrl"). -include("ssl_connection.hrl"). -include_lib("public_key/includ...
7b7d44c0f1d1db963fe53c374492f72499e1f9ac75f49bf26dc935bcbb58347b
turion/rhine
Util.hs
module FRP.Rhine.ClSF.Random.Util where -- transformers import Control.Monad.Trans.Reader -- MonadRandom import Control.Monad.Random -- | Commute one 'ReaderT' layer past a 'RandT' layer. commuteReaderRand :: ReaderT r (RandT g m) a -> RandT g (ReaderT r m) a commuteReaderRand (ReaderT f) = liftRandT $ \g -> Reader...
null
https://raw.githubusercontent.com/turion/rhine/f997c3593f65361461f62b474661501a5b8ef879/rhine/src/FRP/Rhine/ClSF/Random/Util.hs
haskell
transformers MonadRandom | Commute one 'ReaderT' layer past a 'RandT' layer.
module FRP.Rhine.ClSF.Random.Util where import Control.Monad.Trans.Reader import Control.Monad.Random commuteReaderRand :: ReaderT r (RandT g m) a -> RandT g (ReaderT r m) a commuteReaderRand (ReaderT f) = liftRandT $ \g -> ReaderT $ \r -> runRandT (f r) g
8fe7b95e9e9fb5a665084c5af1d27be4753ab81cc711c1e293aa2d33773cf46d
int-index/slay
KeyCode.hs
module Slay.Gtk.KeyCode where import Data.Char as Char import Data.Text as Text import Data.Word import Graphics.UI.Gtk.Gdk.Keys (keyName) import qualified Language.Haskell.TH as TH return $ let mkDecs1 i name = [ TH.PatSynSigD name (TH.ConT ''Word32), TH.PatSynD name (TH.PrefixPatSyn[]) TH.ImplB...
null
https://raw.githubusercontent.com/int-index/slay/1c9d39b8cb4f32f0b4778677c21ebb85cc1cddf7/gtk/src/Slay/Gtk/KeyCode.hs
haskell
module Slay.Gtk.KeyCode where import Data.Char as Char import Data.Text as Text import Data.Word import Graphics.UI.Gtk.Gdk.Keys (keyName) import qualified Language.Haskell.TH as TH return $ let mkDecs1 i name = [ TH.PatSynSigD name (TH.ConT ''Word32), TH.PatSynD name (TH.PrefixPatSyn[]) TH.ImplB...
e36ec2a7de7aa5e5acaf7e7111286c8bd561a28d9f53b52e963ebe59263b7ba5
RefactoringTools/HaRe
Utils.expected.hs
module Layout.Utils where foo :: IO () foo = do let parsed1 = 3 let expr = 2 return ()
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/Renaming/Utils.expected.hs
haskell
module Layout.Utils where foo :: IO () foo = do let parsed1 = 3 let expr = 2 return ()
950156398c2b4a1237f6bea6196028be79909cb4d699ee2e8792757caf77b65c
tvirolai/blurhash
util.cljc
(ns blurhash.util) (defn ->basis [x y i j width height & [norm-factor]] (* (or norm-factor 1.0) (Math/cos (/ (* Math/PI x i) width)) (Math/cos (/ (* Math/PI y j) height)))) (defn srgb->linear "Linear floating point 0.0-1.0 -> srgb integer (0-255)" [value] (let [fval (/ value 255.0)] (if (<= fval...
null
https://raw.githubusercontent.com/tvirolai/blurhash/f50748b3944d8d7df34435d8c4024a1ebc3e6646/src/blurhash/util.cljc
clojure
(ns blurhash.util) (defn ->basis [x y i j width height & [norm-factor]] (* (or norm-factor 1.0) (Math/cos (/ (* Math/PI x i) width)) (Math/cos (/ (* Math/PI y j) height)))) (defn srgb->linear "Linear floating point 0.0-1.0 -> srgb integer (0-255)" [value] (let [fval (/ value 255.0)] (if (<= fval...
4c18ac689363e001b093ed7894c8ef672f6775c94009ec578c62fd374ca2a471
cabol/dberl
dberl_util.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of ...
null
https://raw.githubusercontent.com/cabol/dberl/8de9a9ee81a8fa5454fe961237b619563c91bf5d/src/dberl_util.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @author < > ( C...
19f42eb2e01fe21a97bc5d3526924b2bb21862a649965a8703198188d54c09fa
yogeshsajanikar/hspark
Stage.hs
-- | Module : Spark . Stage -- module Spark.Stage where import Spark.RDD import Control.Distributed.Process type Stage a = Closure (Partition a) distribute :: Closure (Partitions a) -> Partitions (Closure a) distribute = undefined
null
https://raw.githubusercontent.com/yogeshsajanikar/hspark/43e150ec38a62be3d14a7072787d1a8992f1841e/src/Spark/Stage.hs
haskell
|
Module : Spark . Stage module Spark.Stage where import Spark.RDD import Control.Distributed.Process type Stage a = Closure (Partition a) distribute :: Closure (Partitions a) -> Partitions (Closure a) distribute = undefined
3df424ff84a96f0b470eeca749920d7197ebf057366611e74bf2fe8dcf7afd75
ocaml-flambda/ocaml-jst
consistbl.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/1bb6c797df7c63ddae1fc2e6f403a0ee9896cc8e/utils/consistbl.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc module Make (Module_name : sig type t module Set : Set.S with type elt = t module Map :...
fbb7f0f06581a3c84411ee7088cdf39b176991f16fa848b2d465377635ee8667
thierry-martinez/stdcompat
printf.mli
val fprintf : out_channel -> ('a, out_channel, unit) format -> 'a val printf : ('a, out_channel, unit) format -> 'a val eprintf : ('a, out_channel, unit) format -> 'a val ifprintf : 'a -> ('b, 'a, unit) format -> 'b val sprintf : ('a, unit, string) format -> 'a val bprintf : Buffer.t -> ('a, Buffer.t, unit) format -> '...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.10/printf.mli
ocaml
val fprintf : out_channel -> ('a, out_channel, unit) format -> 'a val printf : ('a, out_channel, unit) format -> 'a val eprintf : ('a, out_channel, unit) format -> 'a val ifprintf : 'a -> ('b, 'a, unit) format -> 'b val sprintf : ('a, unit, string) format -> 'a val bprintf : Buffer.t -> ('a, Buffer.t, unit) format -> '...
ff9bd821f6cc4f4496bdb2feff37cf022ceb6c257bf00e27eed941ed7eb58faf
galdor/tungsten
ffi-sbcl.lisp
(in-package :ffi) ;;; ;;; Shared libraries ;;; (defun %load-foreign-library (path) (sb-alien:load-shared-object path)) (defun %unload-foreign-library (handle) (sb-alien:unload-shared-object handle)) ;;; ;;; Types ;;; (defun %translate-to-foreign-type (type) (case type ((:void) 'sb-alien:void) ((...
null
https://raw.githubusercontent.com/galdor/tungsten/41b1b7f0b68990aeae25b43dee97efaadbde263d/tungsten-ffi/src/ffi/ffi-sbcl.lisp
lisp
Shared libraries Types Memory Callbacks Foreign calls Errno
(in-package :ffi) (defun %load-foreign-library (path) (sb-alien:load-shared-object path)) (defun %unload-foreign-library (handle) (sb-alien:unload-shared-object handle)) (defun %translate-to-foreign-type (type) (case type ((:void) 'sb-alien:void) ((:char) 'sb-alien:char) ((:unsigned-cha...